|
Dessert Rose posted:yeah i hate to sound like a broken record (actually i don't just ask anyone who's ever heard me dj) but ok you've convinced me i'm going to do emacs i like vim a lot i just want something with a concept of a project
|
# ? Feb 8, 2015 02:28 |
|
|
# ? May 27, 2024 02:27 |
|
MALE SHOEGAZE posted:ok you've convinced me i'm going to do emacs emacs, the concept album of editors if you are looking for a hobby, then curating emacs dot files will keep you busy for a long long while a good gateway to emacs is org mode
|
# ? Feb 8, 2015 02:54 |
|
my favorite text editor is emacson, lake, and Palmer
|
# ? Feb 8, 2015 04:35 |
|
Bhodi posted:Because it's not 1995 anymore and we have things called graphical user interfaces with IDEs and editors that have things like tabs and side-by-side windows and MOUSE SUPPORT. vim literally has every one of those features you dipshit. it has probably had them all for years. this really is the terrible programmer thread
|
# ? Feb 8, 2015 04:58 |
|
Tiny Bug Child posted:vim literally has every one of those features you dipshit. it has probably had them all for years. this really is the terrible programmer thread tbc was right/??????????
|
# ? Feb 8, 2015 06:21 |
|
I'll go harder on the irony next time, sorry. I'll make it all caps next time. I've never legitimately used a mouse with vim though because I'm ssh'd into anywhere I'd use it... There was once a guy who who joined the team and wanted to put emacs onto all our servers. The dependency chain resolved and spit back 150mb worth of packages. We laughed and laughed and told him to just use loving vi
|
# ? Feb 8, 2015 06:38 |
|
MALE SHOEGAZE posted:ok you've convinced me i'm going to do emacs install projectile Bhodi posted:I'll go harder on the irony next time, sorry. I'll make it all caps next time. I've never legitimately used a mouse with vim though because I'm ssh'd into anywhere I'd use it... oh man, 150mb that's like, almost one fifth of a gigabyte
|
# ? Feb 8, 2015 07:16 |
|
Bhodi posted:I'll go harder on the irony next time, sorry. I'll make it all caps next time. I've never legitimately used a mouse with vim though because I'm ssh'd into anywhere I'd use it... emacs has remote editing what kind of idiot logs into a server and runs an editor
|
# ? Feb 8, 2015 07:23 |
|
tef posted:if you are looking for a hobby, then curating emacs dot files will keep you busy for a long long while code:
[1] lol oxymoron etc quote:a good gateway to emacs is org mode i keep hearing about org mode and, just, what makes it so amazing? i mean i've wanted vim keybindings in onenote for a while but... maybe i'll try using it to keep track of my accomplishments at work instead of writing them in separate onenote pages and see how it goes
|
# ? Feb 8, 2015 07:23 |
|
MALE SHOEGAZE posted:i like vim a lot i just want something with a concept of a project i use projectile for this it is hardly perfect but it's stupid simple
|
# ? Feb 8, 2015 07:24 |
|
the "elegant" way of doing that thing i just posted:code:
i'm sure there's some justification for it, somewhere
|
# ? Feb 8, 2015 07:56 |
|
it seems it's time to read SICP just to customize emacs I'm kinda surprised that emacs lisp has dynamic binding by default, wasn't rms a big fan of scheme?
|
# ? Feb 8, 2015 08:27 |
|
Notorious b.s.d. posted:what kind of idiot logs into a server and runs an editor it's me, i'm the idiot who does that thing and the editor i run is usually a gui emacs over a forwarded x11 connection you'd think i'd remember to just use tramp but i wouldn't be in this thread if i made good decisions
|
# ? Feb 8, 2015 13:09 |
same only i just sudo vi
|
|
# ? Feb 8, 2015 13:25 |
|
Ugh Jesus Christ the only time I use a remote GUI is to fix relatives macs
|
# ? Feb 8, 2015 13:28 |
|
Notorious b.s.d. posted:emacs has remote editing I do it on my VPS at the very least so that no matter what computer I'm on, I have a full Dev environment ready and waiting for me.
|
# ? Feb 8, 2015 13:56 |
i have terrible coding question. say, there is an hls live feed, which is locked to a fairly bad player. there is a tool that allows me to extract this live feed and pipe it into whatever video player i want. i think of setting up a website with decent (non-flash) player to be able to avoid using monstrosity of a web player that is there now. in case if i do so and succeed to do so, i have one thing i am not sure about - will it cut into my bandwidth or will it work the way i think it would, as in direct client <-> endpoint connection that just uses my server as a means to "locate the signal" ?
|
|
# ? Feb 8, 2015 13:59 |
|
who cares
|
# ? Feb 8, 2015 14:59 |
Blinkz0rz posted:who cares
|
|
# ? Feb 8, 2015 15:06 |
|
kalstrams posted:i care i dont have infinte traffic on my vps sorry not you i was talking about the vim/emacs/whatever debate who cares
|
# ? Feb 8, 2015 15:29 |
|
Is there a remote editing mode that doesn't download the entire file over some head-of-line blocking protocol? No one gives a poo poo, so mosh+vim forever.
|
# ? Feb 8, 2015 15:38 |
Blinkz0rz posted:sorry not you i was talking about the vim/emacs/whatever debate yeah i agree that there isn't much to care in that debate, just use whatever cuts it for you
|
|
# ? Feb 8, 2015 15:38 |
|
Symbolic Butt posted:it seems it's time to read SICP just to customize emacs elisp is really, really dated. It resembles 1970s lisp. there is so much code depending on the badness, they are afraid to improve it. the only hope is that they add guile/scheme/cl as a side by side option with elisp. they're actively working on a port of elisp to guile's interpreter in order to make elisp faster, and I am hoping this means guile-the-language is made available also
|
# ? Feb 8, 2015 15:44 |
|
Notorious b.s.d. posted:they're actively working on a port of elisp to guile's interpreter in order to make elisp faster, and I am hoping this means guile-the-language is made available also
|
# ? Feb 8, 2015 16:44 |
someone look at my terrible code and help me fix it. im taking cs50 at harvard online and none of the resources ive looked at have helped me. im given a card.raw from a camera and need to pull out deleted images. everything is stored in 512 byte blocks and the start of a jpg is guaranteed to be at the start of one of the blocks. im supposed to find 16 jpgs in the card starting at some point after the beginning. i am getting 16 images but only 5 of them are viewable. they have no errors. all the others are unviewable and corrupt. im supposed to look for the first four bytes of a jpg and start writing until i find another header to indicate that i need to make a new jpg. i checked all my output jpgs and they all start with the bytes i need.code:
|
|
# ? Feb 8, 2015 22:33 |
|
PokeJoe posted:someone look at my terrible code and help me fix it. delete all the bools and use outptr to signal when you are writing
|
# ? Feb 8, 2015 23:11 |
|
PokeJoe posted:someone look at my terrible code and help me fix it. im taking cs50 at harvard online and none of the resources ive looked at have helped me. im given a card.raw from a camera and need to pull out deleted images. everything is stored in 512 byte blocks and the start of a jpg is guaranteed to be at the start of one of the blocks. im supposed to find 16 jpgs in the card starting at some point after the beginning. i am getting 16 images but only 5 of them are viewable. they have no errors. all the others are unviewable and corrupt. im supposed to look for the first four bytes of a jpg and start writing until i find another header to indicate that i need to make a new jpg. i checked all my output jpgs and they all start with the bytes i need. let's start with the first line. what does #include do?
|
# ? Feb 8, 2015 23:23 |
Brain Candy posted:delete all the bools and use outptr to signal when you are writing why triple sulk posted:let's start with the first line. what does #include do? it includes a header so i can use those libraries.
|
|
# ? Feb 8, 2015 23:30 |
|
PokeJoe posted:why looks like you copy everything up to the next image? shoudl you be lookign for the end of an image file also? This might be a good use case for a little state machine, have like a reading mode and a finding mode. Im not seeing anything glaringly wrong (probably because I dont code C very often) but maybe you should also check the actual number of bytes read on every fread?
|
# ? Feb 8, 2015 23:38 |
the assignment says not to worry about finding the end of an image separately from the beginning because they're stored contiguously on 512 byte blocks and the block is zeros from the end of the image to the end of the block and it shouldn't affect the output image if that part is included. i just stop writing an image when the start of a new one is found. i just can't figure out why only some of the images are viewable
|
|
# ? Feb 8, 2015 23:42 |
|
Luigi Thirty posted:my favorite text editor is emacson, lake, and Palmer stallman brothers band
|
# ? Feb 8, 2015 23:53 |
|
triple sulk posted:let's start with the first line. what does #include do? this is a sincere question from terrible programmer and pughandler sulk
|
# ? Feb 9, 2015 00:17 |
|
it's hard to tell sometimes
|
# ? Feb 9, 2015 00:18 |
FamDav posted:this is a sincere question from terrible programmer and pughandler sulk lol
|
|
# ? Feb 9, 2015 00:20 |
|
FamDav posted:this is a sincere question from terrible programmer and pughandler sulk we are all terrible programmers and that is why this thread exists but if you really didnt get the joke it refers to atlas
|
# ? Feb 9, 2015 00:21 |
|
PokeJoe posted:why if you're reading from a stream that looks like this [crap] [crap] .... [ jpeg_1] [ jpeg_1 ] ... [jpeg_1] [ jpeg_2] [ jpeg_2 ] you're always writing after you start why do you need two flags to check if you should write a block?
|
# ? Feb 9, 2015 00:53 |
Brain Candy posted:if you're reading from a stream that looks like this the start of the file is junk data so i use a flag to figure out when the first image starts, another to figure out if i need to start a new one, and another to see if i should write more blocks to an existing file. this way i don't write any files until the [crap] is over. so its [crap] [crap] [crap] [jpg] < flag first found + new, write blocks till another [.jpg] is found, close old and write new blocks continuously until another if found. repeat until the file ends.
|
|
# ? Feb 9, 2015 01:04 |
|
PokeJoe posted:the start of the file is junk data so i use a flag to figure out when the first image starts, another to figure out if i need to start a new one, and another to see if i should write more blocks to an existing file. this way i don't write any files until the [crap] is over. you can interpret the problem as figuring out where to put the bytes, even if that's nowhere have some pseudo-code that goes in the while loop code:
|
# ? Feb 9, 2015 01:30 |
Brain Candy posted:you can interpret the problem as figuring out where to put the bytes, even if that's nowhere But doesn't this just simplify my code? I can't see how it makes it functionally any different.
|
|
# ? Feb 9, 2015 01:33 |
|
|
# ? May 27, 2024 02:27 |
|
PokeJoe posted:the assignment says not to worry about finding the end of an image separately from the beginning because they're stored contiguously on 512 byte blocks and the block is zeros from the end of the image to the end of the block and it shouldn't affect the output image if that part is included. i just stop writing an image when the start of a new one is found. i just can't figure out why only some of the images are viewable inspect the first and last byte of the working photos and then do the same for the first one that doesnt work
|
# ? Feb 9, 2015 01:33 |