Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "stdin"
I fucking hate online editors for recruitment challanges!!
2 fucking hours I spend on developing a architectural problem but nothing came up on stdout!!
Why? Because the runtime added some functions to HELP me with stdin and stdouts. They were being called by the driverscripts and reading everything up beforehand!!
I was reading empty stdin from there!!!
Worst part is the code was kept at the last of the editor space hidden as a gray shade with no indication that there was code minimized.
After fucking my brain so long, realised the issue when I had 2 mins left!
Ended up with a compilation error while hurrying to change!!
I hate the hackerrank platform!!🤬🤬🤬😡🤯1
php -r 'for(;$r=fread(STDIN,16);)printf("%08x %s $r\n",$i++*16,join(unpack("h*",$r)));'8
>finally gets around to installing vsftpd on home server RPi
>confusing as fuck template documentation
>man page isn't much better
>gets it working
>goes to log in
(What? It's a home file/command server isolated from the Internet. Sue me.)
>sees small raw-command log in bottom-right of phone FTP client
>tries again, watches log
>goes to change user pass over SSH
about half a second later
"passwd: auth token manipulation denied"
>the delay tho
>WAIT A SECOND
one time i got past some parental software bullshit on a tablet by abusing the delay between opening a banned app and the redirect to the normal software at like age 7. (Doing so let me enable remote wipe through Google. bye bye software!)
>*inner 7 year old has autistic screech*
# nano temp
^O Y ^X
# passwd < temp
>logs in to FTP server successfully
>does the one file download that was needed
why and how did that fucking work
WTF, Rust. You are so fucking hard to write, and TBH, your docs are not understandable. Please writte your docs to be understandable, and make it fun to read, like golang does.
WTF, Rust. I am now looking, for 5 hours straight, for a solution for reading stdin into a variable. Nothing. 6 fucking solutions for 6 different rust versions of which not one works. Nothing is readable. Explain the philosophy of you language! What the hell is this?! Is your language based on the C family? On which is it based?! fucking idiots6
So i'm trying to upload a file to an SSH server using node. First I try the obvious putFile method provided by the obvious node-ssh package. On any other server this would work fine but this server doesn't have sftp installed so that doesn't work.
So I log into the server and check and the file isn't there. I try again several times, file still isn't there. I try running scp -t manually on the server, typing in exactly what my program is sending, and it works. This goes on for a while until I realize that I've been sending a file to one server and logging into a different server to check if the file was sent. grrr4
I don't understand how I/O streams work. I mean as a userspace developer i saw the stdin/stdout streams as magical objects that i could read or output infinetely in a continuous way, without caring how much data i write or read (ok, not entirely true because overflows)... But now i'm making an os kernel and i really don't know how i'll implement them..... :(1
Traceback (most recent call last):
File "<stdin>", line 1, in <module> NameError: name 'generateRant' is not defined
My search for a solution to mintty terminal compatibility seems to be coming to a close (thank god). I know now that having compatibility with cygwin doesn't make sense as far as I can see. Because it's about mintty not cygwin.
But now I have to figure out how to interface with mintty for setting the non-canonical flag and switching stdin to non blocking mode
Oh boy... It's getting closer!1