« first day (769 days earlier)      last day (4182 days later) » 

8:00 PM
Alright, I think i'm about to feel really stupid, but why does this: ideone.com/y14xU4 work, and this: ideone.com/rEtBkp throws an overflow?
the only thing i changed was x-1 to (x-1)
 
Because Haskell
 
@ITNinja That's exactly why.
 
I thought it was C, then I saw 'do' and 'Javascript.'
 
@FredOverflow I know, but why does that change things? :)
do i have to use (arg) with a function inside of an if?
 
He thinks you mean (test x) - 1 which leads to infinite recursion.
 
8:01 PM
why switch case only works with integers?
 
OOOH!
@FredOverflow thank you! I get it now xD
 
@rogcg Because.
 
@ITNinja Just remember that function application binds tightest in Haskell.
@rogcg It also works with strings in Java.
 
@FredOverflow kk :) Thank you!
 
@FredOverflow ??
 
8:03 PM
You can switch on strings in Java.
 
so??
 
You said it only works with integers.
 
._. tr1 doesn't exist in IDEone.
 
@ThePhD boost::function probably is on ideone
 
@ThePhD You should make your own website called IDE_TR_ONE then :)
 
8:04 PM
yes. but why? instead of using switch case, i'd have to use if-else?
 
So what? Just use if/else.
 
aghhh
 
34
Q: Why switch statement cannot be applied on strings?

yesraajint main() { switch(std::string("raj")) //Compilation error - switch expression of type illegal { case"sda": } }

 
@FredOverflow Or I could just make ide0xne.com
 
@Borgleader THANK YOU!!
 
8:05 PM
That answer seems not-good
 
@rogcg What exactly is your use case? Do you have an actual problem, or just wondering in general?
 
Just re-write it as an if statement
 
I was having problems, because I dont like to use if-else if - else - I think it's ugly when you have too much options..

and I tried with switch, but didnt work. =/

but.. whatever. go if-else anyways.
 
If you show us the real code, maybe we can suggest something better.
 
if(str == "foo") {

}
else if(str == "bar") {

}
else if(str == "qux") {

}
^how is that ugly?
 
8:09 PM
Hash it, then switch on the hash. :3c
 
made my day LOL!!!
 
@ThePhD That's exactly what Java does under the hood. switch over the hash and then compare for real in the cases.
 
@rogcg I don't get it....
 
Wow, I'm smart enough to implement Java.
I feel special. :3c
 
@Borgleader what
 
8:11 PM
Sorry, no animated GIFs.
 
@rogcg I don't get what's funny about it
 
@Borgleader hm.. ok.
 
@rlemon Error 404 file not found
 
@rogcg Looks like it was built off of this: youtube.com/watch?v=Z86V_ICUCD4
 
8:13 PM
@rlemon lemon.. the wanderer of all SO chat rooms. hahahh
 
damn, too late to edit old post. i.imgur.com/5mN2U.jpg
 
Well, despite IDEone being a jerkface,
 
@rogcg what? I keep like 9 chats open or something like that
all in one tab. use the "other rooms your in" links to jump rooms
 
I managed to make a pretty simple, KISS Event class that can be used: ideone.com/D7vjia#view_edit_box
 
@rlemon hahahah.. BTW that image makes totally sense.
 
8:15 PM
Still have to finish removal, but after that I just need to figure out how I'm going to expand it for multiple arguments.
Or I can do the .NET thing and just make sure I have DatagramSocketMessagedRecievedEventArgs :3c
 
@rlemon IDK I dont like being in a lot of rooms. only those of the technology I use to work. But it's a preference each one has. ;)
 
@ThePhD Make Add a template and have it return some type of reference handle (index) which can be removed
 
Ohh I hate MinGW
 
@rogcg lol, of all the rooms i'm in, js is the only technology I do very little work in :(
and Android, but I will soon be having to get into it
coincidentally atm I am making a sales presentation using reveal.js ;) it's nice
 
@rlemon I work a lot with Android, but I dont enter too much. I used to join in 2010, and half 2011. But now I dont join anymore. Only in specific cases that are too hard to solve and the folks I met there, are not there anymore.
 
8:20 PM
yea, I am mostly in the js room for kicks. I really really love JS
 
@rlemon BLASPHEMY
 
c# room is because my knowledge of .net has been stale for ~2 years.
PHP room because I have to be. PHP is like part of me from all the years..
and this room because my job makes me write c and c++
 
@rlemon Technologies I work that I dont see too much here: Python and App Engine.
Python has more people than App Engine.. hahh
App Engine existed, but not anymore
 
it's funny, but most of the ubuntu chat guys are big on Python and Ruby
 
@rlemon yeah.. Python is really cool.
 
8:24 PM
I have neglected to learn it because; give me braces and brackets any day - whitespace should be for decoration not functional block denotation
but alas, I know that is a very limiting attitude and I should bite my lip and just give it a try
 
@Pubby Well, that works for something like RemoveAt, but I want to be able to erase based on signature alone. ... WHich, just saying that in my head sounds utterly ridiculous. It might work for when I add support for non-static functions and using bind:: and such for class member functions, because then I can ID on the class instance and stuff,
but for static functions I'd need to figure out another way of free-identification (without having a handle system. Because handles are for squares, yo).
 
Ell
@rlemon I think it's a great idea - it's not like people don't indent anyway
 
i finished the 20 recursive programs
 
Significant whitespace is a real pain unless your editor is smart enough
 
thanks god
oh i am atheist so, undo
 
8:26 PM
@rlemon I love python's identation - actually I'd rather it than braces
 
@AlbertoBonsanto You finish 20 recursive problems by solving one problem and then solving the rest.
 
that's correct
only 1 was missing the hardest
 
@rlemon Python is fun, but I prefer C++
 
You can pseudo python with alternative operators if you'd like that.
 
@Rapptz that's really cool
 
8:29 PM
@Pubby Whitespace is always a pain. All the time. D:
Parsing, lexing, etc etc. Whitespace is an evil monster.
@Ell I dealt with that monster long ago. I hated it. I much prefferred DX9/10's handling of Shader Semantics, but that was dropped in DX11 so you're pretty much in teh same boat either way (though DX seems a tad nicer when writing stuff)
 
@ThePhD You don't believe in Whitespace power? The inferior nonwhitespace must be purged!
 
Ell
@ThePhD I want to learn it :P
 
Is non-whitespace called blackspace?
 
@Rapptz We prefer colored space, thank you.
 
@Ell I do indent, I just don't like that I will now have to be forced into thinking that way. few times I've attempted to learn Ruby it has been super annoying
 
8:32 PM
@Pubby All nonwhitespace will push for equality! You cannot keep us down forever!
 
@ThePhD Are you sure it isn't african-american space?
 
Python has braces, and ";" 's if you fancy it: ideone.com/2TQDMn
;)
 
I do want to learn Haskell just so I can use the Boobs operator.
 
@ITNinja time: 0.08s hnng..
 
Is that a bad timing?
 
8:33 PM
@ITNinja I almost luled.... almost... I think It might have just been gas.
 
:P
 
Haskell has braces except nobody uses them
Instead of having one shitty coding style there's two!
 
@Pubby Code generators do.
 
Can't you just shun everyone who uses one type?
 
g2g.. cya folks!
 
8:42 PM
I shun everyone who isn't me
Mirrors and I have a special relationship
 
@rlemon Solipsism?
 
My mind is guaranteed to exist, existence of a universe outside of my own mind is a fallacy and I cannot prove it either way. All I know is I exists and therefore my mind exists.
I think, therefore I am.
 
lol nice logical fallacy
 
;)
"I think I'm thinking, therefore I am what I think I am." < better?
 
why do Ritchie made us waste too much time fixing string, char, etc scanning in C?
 
8:48 PM
fuck... newegg dropped the quantity limit to 1 before I could submit my order
I don't have any other shipping addresses at school. So I'll need to go in search of a second 3TB internal to pair with it.
 
Xeo
@Mysticial Ew. :(
You can send 1 to me, I'll be sure to send it back to you. :>
 
There's some dirt chip 3TB externals. I don't mind that for the backup copy of the Anime. But my primary copy needs to be in one box since I move it around so much. So I need internals for that.
 
@Xeo @Mysticial It's a lie, he'll keep it forever!
 
$100 3TB externals. USB3. I can pick up a pair of those.
 
@AlbertoBonsanto What do you mean?
 
8:51 PM
But I still need to search for another cheap 3TB internal.
 
What RPM are you looking for?
 
I wonder if type_id can work on function objects...
 
@Rapptz Doesn't matter. I won't be number crunching on it. But the one on Newegg was 7200.
 
Teacher @FredOverflow scanning input sin C is a bit messy, cause the programmer must be very careful :|
 
These are just my innocent Anime drives. They only need to be reliable. Speed doesn't matter.
 
Xeo
8:52 PM
@AlbertoBonsanto "... C is ... messy, cause the programmer must be very careful" -- essential information extracted!
 
My collection of 2TB crunching drives are still good - and sufficient for the near future.
 
it's platters that matter
 
@Xeo thanks for the unneeded sarcasm
 
@AlbertoBonsanto Just use fgets(buffer, sizeof buffer, stdin); and you're fine.
 
@bamboon My 64GB rig has 8 x 2TB 7200 RPM Hitachis - each with 5 platters.
5 platters kinda spells disaster, but they've been unusually reliable.
 
Xeo
8:54 PM
@AlbertoBonsanto Sarcasm is never unneeded.
 
the File family of functions in C f*...() are pretty fast and usually do a good job of being reliable.
 
Why don't you buy 2 TB internals?
 
Ell
@rlemon ruby is awesome & doesn't force indenting!
 
@FredOverflow thanks for your answer :)
 
@Rapptz My Anime box travels with me. So I need to keep it small.
Right now my dual-slot enclosure has 2 x 2TB and is full already.
 
8:55 PM
@Mysticial What magic are you doing with such a system?
 
@ThePhD It was the machine that I developed y-cruncher on.
 
He downloads 1080p anime I guess
 
@Ell I can use {} in Ruby?
 
Oh well that makes sense.
 
Xeo
@Rapptz s/anime/hentai/
 
8:55 PM
WTF. How does extracting the boost zip file take >7 minutes on my i7 2600S, that's Quadcore, Hyperthreading machine with OS on SSD? (Granted I extract to a sata spinning disk, but still. This is ~30 seconds tops on linux)
 
Ell
@rlemon for a lot of stuff, other stuff is if...end
but no indentation forced
 
My 16GB Sandy Bridge rig has 4 x 1TB + 4 x 2TB (all 7200 RPM). Also very good for crunching.
 
Xeo
@sehe Too many small files. :s
 
@sehe Windows -hates- small files, I personally think.
 
@ThePhD Trying to run Windows, acceptably, I guess
 
Xeo
8:56 PM
Maybe the linux one is not .zip but .tar.gz or sth?
 
Ell
@sehe yeah ntfs sucks for lots of files iirc
 
@Rapptz Yes I do. :)
 
@Xeo Well, I hate windows for that
@Ell I.e. everything developers do is slow. Right
 
@Mysticial Eh.
1080p videos are typically 3.8 GB per ~40 minute video for me.
 
@Xeo Not Hentai though. I've never DL'ed any myself, but I can't say I don't have any because I've drag+dropped a lot of Anime from my friend's (without actually looking at them).
 
8:57 PM
hehehe my development machine is a i5 2600K overclocked to 4.2, 16GB Corsair Vengeance blue, 128GB Vertex 3 (needs upgrading), and a NVidia 9800 GTX+
 
Ell
@sehe "NTFS performance severely degrades after after 10,000 files in a directory" not sure if this applies?
 
I learned it is not bad for gaming either.
 
@Ell It doesn't
 
@Mysticial Nice. You don't even know what you have lol
 
@Rapptz Doesn't matter, because he has all the things.
And that's what counts.
 
8:58 PM
But I do have a handful of very raunchy shows that are borderline hentai.
5
 
Xeo
@Rapptz wat. a 2h 1080p movie is 8gig for me (Nanoha Movie 1st, if you're interested).
 
2 WD Black 2TB each, 1 2TB green, 2 ext 1TB WD drives. drawer full of thumb drives... idk... maybe 40 of them between 4 and 32GB
@Mysticial are you also a media collector?
 
Wait, it's now saying it will take another 8 minutes and 20 seconds
 
Nanoha?
 
@ThePhD Nanoha is not raunchy.
 
8:58 PM
FOR CRYING OUT LOUD. DID ANYONE SAY WIN7 WOULD BE BETTER!?
 
@Xeo Only 1080p videos I've downloaded are some anime and porn. It seems to be 2-4 GB per 40 minutes for me.
 
I know, I'm just asking.
 
Here's a hint: IT ISN'T!
 
@sehe Is ti faster on Windows XP? o_O
 
I'm talking about stuff like To LoveRu. That's Raunchy.
 
8:59 PM
Rogers (my ISP) caps your overage charges at $50 but doesn't throttle your speeds. I was for a bit there downloading ~500GB a mo.
 
@Mysticial No such thing as too raunchy in the world of anime.
 
@Mysticial Not... sure how to pronounce...
 
@ThePhD toraburu
 
Ow at the flag...
 
Xeo
Hmm... Rebuild of Evangelion 2.22 1080p is also just 11gig
 
8:59 PM
@ThePhD I don't really know. You know, I stay away from windows when I can. But I might try the same thing on my XP VM - but it isn't operational as my desktop cabinet is out of business
 

« first day (769 days earlier)      last day (4182 days later) »