« first day (823 days earlier)      last day (4115 days later) » 

user142019
 
user142019
@TonyTheLion comprezzion
 
@Zoidberg exactly how I feel.
 
user142019
lol
 
user142019
I want a job.
 
user142019
9:03 AM
Let me work.
 
@TonyTheLion punishment for not saying it correctly :P
 
user142019
Because school doesn't work.
 
work doesn't work either
believe me
I speak from experience
 
agreed
school is teh awesome
 
user142019
 
9:05 AM
lol
 
user142019
It is meme wednesday.
 
one day, I will make a point of watching that episode
 
user142019
lol
 
you mean memesday?
 
room topic changed to Lounge<C++>: Meme Wednesday. [c++] [c++11] [c++-faq] [get-out] [no-questions]
 
9:06 AM
some boring person will just change it
(╯°□°)╯︵ ┻━┻
 
user142019
 
user142019
This is a good song.
 
eventually it will load I am sure
¬_¬ what is this...
 
user142019
I like the and tags.
 
does ssh support 8192 bit keys?
 
user142019
9:10 AM
Wait a moment. I'm looking for a machine capable of generating that within a reasonable time span.
 
@thecoshman what for?
 
@Abyx ... what do you mean what for?
 
you can encrypt entire message with that key
 
@Zoidberg :P didn't ask if it was practicle
just wondering if it supports it
 
user142019
Setting a limit on the size of keys would be silly.
 
user142019
9:13 AM
It's like limiting password lengths to n characters.
 
user142019
Anyway, ssh-keygen can generate 32768 bit RSA keys. Sauce.
 
lol
 
user142019
bboooomm
 
o_0 you know the image of your key you get after ssh_keygen has done... mine kind of looks like four boobed dancing robot
 
user142019
It's for people to compare.
 
user142019
9:21 AM
Because humans are terrible at comparing long and boring hex strings.
 
@Zoidberg I know that ¬_¬
but usually they are fairly random looking
 
Well, last time I mentioned that digital oscopes suck because of resolution my friend said that they're only for reference. And I was like NO. I can stare more at sinusoid than at TV
So maybe these pictures have some meaning too
 
@BartekBanachewicz digital o'scopes are the win, you just ned a very good one for it to be worth it
 
anyone have experience w/gnu parallel?
going to run some tests before using, but I was wondering if it is mature/robust...
 
@thecoshman I had to get up to 2500 Euro price range before I could say I like what I see.
which is kind of ... a lot
I know they can autocalibrate and statistics and shit
but still... people were able to do that with analog ones, too. I did that.
 
9:24 AM
@BartekBanachewicz like I said, you need a good one for bother
 
That's why my first scope will probably be soviet.
 
analog o'scopes are not that cheap either
 
Soviet ones are.
 
I missed out on a chance to nab some when my school was having a bit of a clear out
they where good scopes
 
@thecoshman :< WAT I would totally buy ones from my school.
 
user142019
9:26 AM
lol oscilloscope made of cast iron
 
I took 4 servers from our lab in highschool
 
and they are great for making your desk look smart
@BartekBanachewicz they where giving them out :P
 
@thecoshman Hm, and cluttering it. Point is, I really could use one.
 
I just didn't know about it unti; they where gone
 
@thecoshman WAAAAAAAAAT. :/
 
9:26 AM
@BartekBanachewicz I don't need one, but I need one :P
maybe a small stack of them
 
I have to take my circuit to our lab to test it, but I don't have time for it.
Hm, maybe we have one here at work
But i doubt it, honestly.
 
right
got a new blood test and an ultrasound of my gall bladder
 
I think at some stage, I want to get a pi and a uC and pair the two together allong with a fuck tone of server to make a hexapod...
one day...
@DeadMG ooh, stones would be a total bitch
 
pfft, I already know that what I have is a total bitch
at least gallstones can be also cured with ultrasound, I believe
 
depends
if they are huge, they may operate
ultrasound can break up the small ones
but the tiny bits ultimately need to pissed out
and from what I understand, 'small' stones is not that acurate
 
9:33 AM
pissed out? definitely not a problem for me
 
@DeadMG unless you are into sounding, you are going to have a tear in your eye to say the least
erm... do I have to enable scp or something?
fucking case sensitive parameters (╯°□°)╯︵ ┻━┻
 
user142019
Case-sensitivity is good.
 
Where can I find a draft of C++03?
The robot only links to the latest draft
 
user142019
MoMA
 
@thecoshman small is relative, so to speak
 
9:41 AM
@Zoidberg it is, but still gets on my tits :P
@LuchianGrigore the latest draft can be found in through the robots profile
 
@LuchianGrigore andrew wrote up a list of the differences 98 -> 03, and I found that quite informative for a while
 
@thecoshman I'm looking for C++03
 
i'm not sure where i got my standards docs from
i never bought the holy standard
just on principle
 
Me neither, I have both at home
and here I only have C++11
 
@LuchianGrigore I know :P
 
9:44 AM
Actually maybe someone here can clear the air - stackoverflow.com/questions/14352373/…
 
i could put c++03 temporarily on google docs
 
@LuchianGrigore As I recall it's accurate.
 
@LucDanton so C++03 makes no mention of ordering?
 
For POD it does.
 
I'd still like to check to rephrase the answer then.
 
9:47 AM
^ i'll just remove it in a few hours or so
 
now really, are you just dumping code here?
 
user142019
@CodeJack It means that the argument is invalid.
 
It means, welcome to the Bin.
 
y does this errror occur...? i mean...invalid ?
 
user142019
Because the argument is invalid.
 
user142019
9:49 AM
That's why.
 
@CodeJack u slow or somth ?
 
@CodeJack Please read the rules before posting anything else. You'll find them on your right.
 
user142019
@CodeJack Also, read the tags of this room.
 
why are parked domains always occupied by really smug looking people?
 
user142019
It clearly says and .
 
9:50 AM
sorry..
 
they're business students
 
got it
 
C++98 standard says in 9.2/12 "non static members ... declared without intervening access-specifier ... allocated so that later have higher addresses"
 
@CodeJack I suggest you just ask on SO.
 
user142019
BUT LOUNGE IS ON SO
 
9:51 AM
@Abyx same in c++11
 
@Zoidberg did I mention I'm an expert in Prolog since yesterday?
 
ok sir @Bartek
 
user142019
@BartekBanachewicz Yes.
 
@Zoidberg I felt I need to emphasize it more.
 
user142019
Okay.
 
Xeo
9:53 AM
Gawd, always this "sir"... I dunno why, but it's getting on my nerves.
 
hm... "ISO/IEC 14882 first edition 1998-09-01" - is it a tradition to publish standard Sept. 1 ?
 
user142019
I feel the need to emphasize the fact I don't give a fuck about it.
 
@Xeo I quite agree, sir. SCNR
 
Xeo
@Abyx That's ISO standard stuff, I think.
@BartekBanachewicz :s
 
oh my... now I know exact date of C++14
 
9:54 AM
@Abyx 2014?
 
2014-09-01
 
Besides, I'm a fan of C++17. They should do it properly.
 
FUUU~ it's sooo looong time =\
and VC++ will support it only in '16
 
@Abyx where'd ya get it, anyway?
@Abyx I'll be more than happy to get C++11 support in 2016 :P
 
Xeo
2 mins ago, by Abyx
hm... "ISO/IEC 14882 first edition 1998-09-01" - is it a tradition to publish standard Sept. 1 ?
2 mins ago, by Xeo
@Abyx That's ISO standard stuff, I think.
 
9:56 AM
@Xeo euhmwhwhh..... Coffee.
 
@Cheersandhth.-Alf thanks, got what I came for. C++03 makes a different guarantee.
 
@BartekBanachewicz yeah... =(
 
awesome!
 
@Luchian, happy birthday, btw.
third time the charm; I really need to drink it asap.
 
user142019
Holy fuck this is handy. remlab.net/op/integer.shtml
 
10:08 AM
@Zoidberg fuck C.
 
user142019
Care. printf is awesome.
 
By the way, you were coding in Obj-C, weren't you?
 
user142019
No?
 
Hm, maybe it was someone else.
I will need to build something in C++ for iOS soon
 
user142019
I know like everything about Objective-C, but I never use it.
 
10:09 AM
damn. I need the other part (XCode and all that shit)
 
user142019
Xcode is terrible.
 
you don't say.
I'm going to code the whole project in vim or vs anyway
it just needs to build for iOS
 
user142019
You cannot deploy without Xcode.
 
user142019
You can build without it, but not deploy.
 
@Zoidberg what does deploy mean then? (I have iOS dev acc.)
 
user142019
10:11 AM
It means that you put it on an iOS device or submit it to the App Store.
 
user142019
Also, I'm not aware of an iOS Simulator that runs on Windows or Linux.
 
I have a (not mine) mac
I also have an iPad
pretty much everything I need.
except for know-how
 
user142019
You also need a cable to connect them.
 
Regular one, I presume?
 
@Zoidberg well for android (that's not apple) there's an emulator. it's not very good but it makes possible to run the app
 
user142019
10:19 AM
There is an iOS Simulator for OS X.
 
similar for windwoes ce or whatever that was, perhaps window phone?
 
Anyway, I think I found another bug in driver. I think folks will start to dislike me soon
 
Is parashift a reliable source for information?
 
@StackedCrooked mostly. it's the most extensively peer-reviewed collection of info on the net, i think.
 
Good :)
 
10:29 AM
there are some known bad advices, like restricting access to constructors instead of destructors. it reflects the common practice before marshall got a bit ill.
some years ago
i envied him his attractive nurses, it seemed they were all over him
but anyway
:-)
 
user142019
What do you think of my file I/O interface? gist.github.com/4546217
 
user142019
(Currently only for binary files.)
 
knowing something, worthless
proving someone wrong, pricless
 
@Zoidberg Please clarify : std::vector<MyClassWithOverloaded<<Operator> V; io::file("lol.bin").read(V) <- legal?
If yes, have my +1.
 
user142019
@BartekBanachewicz that's a fucking syntax error. Of course it won't work.
 
10:39 AM
@Zoidberg What a shame, even Clang would show me column of error, and you can't?
 
user142019
You have three <'s and only one >.
 
"Fucking syntax error" looks like a nice message though.
 
user142019
lol
 
@Zoidberg Oh damn, it's just for illustrative purpose.
 
user142019
And how would file know how to convert bytes to your type?
 
10:40 AM
Change it to MyClassWithOverloadedStreamLoadOperator
this ^
 
user142019
Conversion is not the domain of a file class.
 
user142019
You read bytes into a buffer, then what you do with that buffer is up to you.
 
user142019
Print it, parse it, whatever.
 
I thought it will implictly call that operator.
 
user142019
eww
 
user142019
10:41 AM
Though std::vector is a good point.
 
you'll never not be caught by this baby
 
It would make sense: you supply a collection<T> variable, and the file treats the contents as supplied type, in this case : vector of classes.
It doesn't have to be operator<<, it can be BinaryLoadable trait
with .loadFromMemory() = 0
 
user142019
write(std::vector<T> const& buffer, std::size_t count = buffer.size()); is that legal?
 
Why would you want to use it anyway?
 
user142019
Because I/O streams are fucking terrible.
 
10:44 AM
@TonyTheLion Y U DOUBLE NEGATIVE?
 
user142019
They do everything and they do it badly.
 
I meant that example. You're back to pointer-size, instead of iterators.
 
because, my brain doesn't not like double negative
 
user142019
Something should do one thing and do it well.
 
Anyway, it isn't legal, but I'm thinking about best reason why it's not.
Probably because exceptions.
 
user142019
10:46 AM
std::vector<io::byte> bytes;
io::file file{"hello.txt"};
file.read(bytes, 1024);
 
user142019
As for reading an entire file at once, that will be a free function.
 
@Zoidberg that is okay then.
 
user142019
Orrrr I can return an std::vector<T> instead of taking one as parameter.
 
Still, I want to be able to load n objects, not n bytes
 
user142019
A file totally consists of objects.
 
10:47 AM
Yes!
Bytes are as arbitrary as anything else
So... why not, Zoidberg?
By the way, what's the licence of that snippet? Because I just forked it.
 
user142019
I just edited it. gist.github.com/4546217
 
user142019
Converting to your types is something you do. You know more about your types than the file class.
 
@Zoidberg But I'm not just calling file::read
I'm calling file::read<MyType>
Or, file::read<std::list<MyType>, MyType>
 
user142019
Well,
 
Or, WAIT-FOR-IT, file::read<ptr_vector<MyType>, MyType>
 
user142019
10:52 AM
io::file file{"hello.txt"};
std::vector<io::byte> bytes = io::read_file(file); // reads entire file
MyType obj = parse_to_obj(bytes);
 
user142019
Problem solved.
 
@Zoidberg what if the object size is 177 bytes?
 
user142019
ugh read_file takes no size. xd
 
What if I want precisely 3 objects?
Are you really telling me to write sizeof(MyType) * count?
I.E. are you telling me to write in C again?
 
user142019
How would file know how to parse the file you give it?
 
user142019
10:54 AM
It cannot do that, ever.
 
user142019
It would need to have a description of the file format.
 
@Zoidberg I'm telling you for the fourth or fifth time : I'm supplying the compatible type to read
That class inherits from file::binary_loadable_trait
 
user142019
Oh you're assuming the objects are serialized one after another?
 
And so, the read<T> will call appropriate method
@Zoidberg well, yes, but the parsing can still fail
Which will again be returned by bool file::binary_loadable_trait::load
or s/bool/load_result/.
 
user142019
eww
 
user142019
10:56 AM
Having read only work for a subset of file formats.
 
@Zoidberg wat?
 
user142019
I want to read bytes.
 
So write specialization for T = unsigned char.
 
user142019
file is for files, and files are made up of bytes.
 
@Zoidberg bullshit.
 
user142019
10:57 AM
Oh?
 
Files are made of whatever makes sense.
 
user142019
Your files are not made up of bytes?
 
He handwrote some of his replies
 
My files are made from data.
 
gotta be awesome to do that :)
 
user142019
10:58 AM
You must have some exotic hard drive, since mine totally stores bytes.
 
user142019
Also
 
@Zoidberg It's implementation-defined. It can store qubits, AFAIC
 
@TonyTheLion what he do? scan them in and upload to imgur?
 
@Zoidberg storage nowadays often uses units much larger than byte
 
user142019
How is type obj = file.read<type>(); different from type obj = parse_type(file.read());, except the former makes the file class a total complex mess?
 
10:58 AM
that was so also with modem transmissions
 
@thecoshman Used iPad to write on a paint type app I guess
 
at the end of the modem era
 
@TonyTheLion I see...
 
It's a fun read
just sayin'
on another note, I actually did some work earlier
how amazing
 
@Zoidberg are you really implying that latter looks nicer?
 
10:59 AM
but ... arnold ... what does he know about ANYTHING?
 
user142019
Yup.
 
user142019
It does.
 
Besides, I meant to automatically create collections too
If I want a list, I can't do it in situ with your proposal
And with my approach I can.
Well, if you're trying to prove otherwise... you read bytes, how are you supposed to know when to create another list element?
 
user142019
Well. push_back.
 
user142019
If you use lists of bytes, you shouldn't expect any good performance anyway.
 
11:04 AM
arnold did some push_back in his day
 
@Zoidberg I use lists of objects.
 
user142019
Again: file works with bytes.
 
@Zoidberg Again: that's you thinking in C terms
let's just cast that bytes. Bytes love casting
 
user142019
Whatever you do with those bytes is up to you, after they are read into a buffer.
 
@Zoidberg That's a fucking nonsense
 
user142019
11:07 AM
It's not.
 
What if I want to stop reading after a specific point?
I don't know where it is in the file
I should use .read(1), right?
that's fucking awesome.
 
user142019
Or you just read in chunks and determine from that chunk where you want to seek back to.
 
<facepalm>
 
user142019
How else do you want to do it?
 
user142019
Reading byte for byte is also possible.
 
11:10 AM
@Zoidberg random access file reading is lame
 
user142019
Except it wouldn't be any different than when you read objects or whatever.
 
read it sequentially
 
while (not eof){ Temporary = Object (); position += Temporary.load(data(position)); Collection.add(Temporary); }
 
user142019
Temporary.load also needs to seek back if it fails.
 
@Zoidberg yup. I got rid of it for sake of clarity
The point is, it's reusable code
 
11:11 AM
@BartekBanachewicz he's right, files are stored and read in bytes.
 
It's the same for every fucking object I will ever gonna read
 
user142019
Custom parse functions are also reusable.
 
You read those bytes in to a buffer, but you can parse them into objects straight away if you wish
 
So I end up writing custom parse functions, which pretty much render your file useless.
 
user142019
Uh, dude.
 
user142019
11:12 AM
You need those anyway, no matter if you call them yourself your let file call them.
 
user142019
The caller is really the only difference.
 
And packing into collection (which is generic)
 
user142019
Except that doesn't work for every file type since one uses padding and another one puts null characters between objects and another one does something completely different.
 
user142019
IOW not that generic at all.
 
So create a file structure descriptor class.
 
11:14 AM
AFAIK directly writing bytes to a file an then reading them is simple enough
 
I really don't get it. You're calling and re-calling C idioms over and over
 
user142019
Oh no a C idiom. It's bad by definition oh no.
 
I think casting void * to my pointer to my struct is safe enough; what's the worst that could happen?
 
if you are reading from a file, you have all ready thrown in the towel you simply have to hope that the data in the file is formatted correctly, and be able to handle when it is not
 
Well, it's his api and his decision; but it has great possibility, that you're overlooking imo @Zoidberg
From point of technical purity, OS is reading files in bytes. But allowing them to have a meaning before even deciding how are they going to be stored in memory has it's advantages
but I can also be terribly wrong, and it might happen that it's impossible or very limited
 
11:31 AM
lol
 
oooh, just realised I was generating ssh keys on my pi, poor little thing
 
Xeo
lol
I want a Pi now. And a pie. Although we had pie yesterday here at work.. yummy.
 
oh you get meals at work
you lucky
 
Xeo
Not meals directly
Just a rule that for certain occassions, you have to bring cake/pie/ice cream for the whole team.
 
@TonyTheLion while we're at it, lunch hour is coming
@Xeo "certain occassions"?
 
Xeo
11:41 AM
like birthday, wedding, child birth, succeed your probation period and probably some other stuff I forgot.
 
@Xeo oh, thank fuck we don't have such a thing, cause I can't cook for shit
 
Never mind penises, silly file structures and Luchian birthday, (congrats BTW), why does my new Samsung 'phone' not correctly process voice calls? I call someone, chat, they hang up the call but my phone keeps it open. This is correct for wirelines but not for cellphones, AFAIK.
 
Xeo
Oh yeah, and when you're first joining the team, which is why we had pie yesterday - I brought it. :)
@TonyTheLion You don't have to cook it.
I bought mine too (because I have no kitchen furniture).
 
@Xeo pi is good, pie too
 
@Xeo that's sad.
 
Xeo
11:42 AM
@BartekBanachewicz Sorry for just having moved here.
 
@MartinJames "phone" 'nuff said
 
Xeo
Also, the pie was fucking delicious.
Even though it was bought, and from a supermarket nonetheless.
 
@MartinJames phones aren't for calling people silly
@Xeo what sort of pie was it?
 
oh damn. They're are shutting water off in our building. Fcking great, I hope somebody will refill the coffe machines
@Xeo Well, at least you can go to some nice shop and buy a lots of kitchen stuff
 
Xeo
@thecoshman I got different ones, they only yielded 8 pieces each, and we have > 30 people here. :) 2 cheese, 2 apple, 1 chocolate-pear.
 
11:44 AM
I fell in love in the blender/mixer I saw lastly.
 
If only pie went on for ever too.
 
Xeo
@BartekBanachewicz Right, like an oven, a sink, the work plate...
The only stuff that is actually inside of my kitchen right now is a microwave oven and a cooler.
@MartinJames It does if you only eat smaller amounts every time.
 
@Xeo hm. Get a mini-oven then. It's much better than a microwave.
And not that pricey
My GF has a muffin maker in her dorm, but that would probably be an overkill
 
Xeo
Did I mention I just moved here, just started my job and thus don't have much money to spare? (the microwave was a present from my parents, so it was for free)
 
@Xeo looks like I am heading to a pie shop soon :P
huh... so I was thinking "let's see what services and shit I can stop from running to free up more ram on this server"... only 94 MB being used...
 
11:47 AM
@Xeo Hey, don't get it so personally :) If you ever find yourself in Gdansk, I will treat you to some of our specials. I just like cooking.
 
I have a small halogen oven. I can cook fish/pie/steak in the bottom and later put a grid full of oven chips on top. Much quicker/cheaper than firing up 'real' oven.
 
Yea, these are nice too.
 
Xeo
@BartekBanachewicz Oh, that was just meant as a reminder. Fact: I like cooking too, and I'd have baked the cake myself if I could.
 
Anyway, I'm going to eat. bb
 
and yet I still want to cut it down further...
 
user142019
11:54 AM
@TonyTheLion at my job we had McDonald's about twice a week.
 
user142019
Not for free, though. :P
 

« first day (823 days earlier)      last day (4115 days later) »