klimi
np
Hi! Is it possible to check in C if the string (argv) starts from # or @?
BinaryByter
Hi! Is it possible to check in C if the string (argv) starts from # or @?
if (argv[position][0] == '#' || argv[position][0] == '@' ) {}
BinaryByter
you have to check wether position <= argc
BinaryByter
Dudes I need yar help
BinaryByter
how to call a function that returns a string that can be written to a file to save a NeuralNetwork?
BinaryByter
I can't come up with a good name ;_;
BinaryByter
saveToString maybe
Bader
i think the hardest part of coding is naming things... maybe saveStringToFile?
BinaryByter
So that would be essentially an unexpected behaviour
BinaryByter
it just returns a string
BinaryByter
i think the hardest part of coding is naming things... maybe saveStringToFile?
>i think the hardest part of coding is naming things Meh
if (argv[position][0] == '#' || argv[position][0] == '@' ) {}
Thank you! The problem was in #, because it should be escaped in the console
BinaryByter
lol
klimi
even if youre grabbing stdin?
BinaryByter
even if youre grabbing stdin?
i'm pretty sure that it isnt
klimi
hmmmm
klimi
[klimi@klimistation ~]$ cat /dev/stdin #hello #hello ^C [klimi@klimistation ~]$
klimi
(i only typed once)
klimi
i read your message wrong xD
Anonymous
just use cat _
Anonymous
it does the same thing
BinaryByter
it does not
klimi
[klimi@klimistation ~]$ cat _ cat: _: No such file or directory
BinaryByter
it doesnt exist
klimi
did you mean - ?
BinaryByter
klimi
mhm
klimi
ik that
Anonymous
i barely if ever use cat
Anonymous
no need to
klimi
emacs everywhere
klimi
i use cat
klimi
cuz the name
klimi
but... if i dont want to open something i just do quick cat
klimi
on oneline fine or etc
Anonymous
vim master race
klimi
cat is still faster
BinaryByter
vim master race
vscode masterrace
klimi
would you do vim /dev/stdin?
BinaryByter
would you do vim /dev/stdin?
you nasty little boy
BinaryByter
Ha! it won't work
Anonymous
Anonymous
that is so much things to write
Anonymous
i would just go vim
klimi
mhm
Anonymous
actually you can just do cat by itself
klimi
and do :e /dev/stdin
Anonymous
and it will be stdin
Anonymous
you do not need that
Anonymous
here
Anonymous
it makes the next thing a comment
Anonymous
Hello
Anonymous
so you have to use ' to get around that
Anonymous
.
why would you just not type in? by default any application starts by grabbing stdin
klimi
Hello
hi dolar dolar dolar dolar dolar dolar dolar dolar dolar
BinaryByter
why use such a sign as cmd line argument?
Anonymous
maybe my password is #thisIsNotACTUALLYmyPassword89234
Anonymous
and we have a command line application that takes a username and password and a website and returns back an encrypted version of the password to use for that website?
BinaryByter
maybe my password is #thisIsNotACTUALLYmyPassword89234
That password doesnt work on your mailbox
Anonymous
cock.li i believe works with # signs
BinaryByter
on some it does
you have multiple mailaccounts?
Anonymous
yes
Anonymous
hi dolar dolar dolar dolar dolar dolar dolar dolar dolar
😅😅😅 where are u from
BinaryByter
😅😅😅 where are u from
Hes from a place where dollars aren't abundant
BinaryByter
He can't speak russian