« first day (804 days earlier)      last day (4143 days later) » 

7:00 PM
@Pubby Sure, I guess.
 
user142019
Vapourware Vapourbook
 
Should the lounge write a C++ book? Do you want to help? Decide, discuss, and discover here.
13
 
WINDOWS STOP INSTALLING THIS FUCKING DRIVER OVER AND OVER AGAIN
Seriously there's not even a cancel button
 
user142019
There is. It's called Task Manager.
 
"200 minutes using somewhat brute force in python." lol
 
user142019
7:06 PM
lol
 
Oh yes, killing trusted installer modifying system to install a driver is such a wonderful idea
 
user142019
Hey! No sarcasm!
 
std::arrays are the same as regular arrays right? I shouldn't be like, scared of using them or anything?
 
user142019
No their not the same.
 
user142019
They are much better.
 
user142019
7:09 PM
They have at least a semi-decent interface.
 
user142019
As for memory, they just have one non-static data member if not implemented by an idiot.
 
user1182183
@CatPlusPlus I actually had to play a game in 320x240 on my HD display
 
user1182183
it looked.. quite.... playable..
 
@StackedCrooked I did that one by hand :(
 
7:10 PM
Wait, allocators are no allowed to have state, do they?
 
@StackedCrooked Fixed in C++11.
and a few C++03 implementations supported it anyway.
 
@Rapptz By hand!?
 
Yep.
 
user142019
Do it in Haskell. It's easy.
 
@DeadMG Ah, that's good.
@Rapptz That must've taken quite a while. Lol, it's like a punishment that you'd receive from a first grade math teacher.
 
7:12 PM
I had time to kill, it didn't take that long truthfully.
Just ctrl + f "9"
then you'd find 99879
 
but surely 91111 has a lower product than 88888
ah, pretty hard to beat 99879
 
which is 40,824
 
user1182183
please fix that ctrl+c event-capture crap for internet explorer because it broke my ctrl+c on that page ;F
 
user1182183
(yes on chrome it works...)
 
user1182183
but I'm a proud ie9 user
 
7:14 PM
Punishment for using IE
 
user1182183
@Rapptz I just use it because it looks nicer than chrome
 
I could probably replace my for loop with std::rotate.
Ah well.
 
user142019
pe8 xs = maximum . map product $ map digitToInt (segments xs)
    where segments (y:ys) = (y : (take 4 ys)) ++ segments ys
 
user142019
Only have to solve the fact that at the end there are no more digits left. :P
 
user142019
Wait fuck.
 
user142019
7:18 PM
Sec.
 
You can do #9 by hand too.
I think that one is the easiest one to do by hand. Mathematically speaking.
What's the maximum allotted run-time on Coliru?
I know it's 15s on ideone and like 5 on LWS
 
10 on Coliru I think
 
10 - 20 something
Solved #9. More of a hack job than a thinker though.
 
7:33 PM
@Zoidberg'-- nuked. it was too useful
 
@StackedCrooked Should have done it by hand too!
I forget what kind of triple it is though
 
Right.
My math is not too good.
 
Ah, I see. :(
 
I remember how to solve 2nd degree equations :)
At least..
 
@ShotgunNinja let's trade! Sounds like interesting job for someone with a bit of music affinity. A little too much DRM encumberment for my taste, likely
 
7:35 PM
Brute Force...
Well, we got the processing power for it. :D
 
Ell
I can't even writer brute force algorithms
 
Also, stop making me want to solve Project Euler problems. :c
 
anyone else collecting hats??
I love hats
none here though
 
@ThePhD We're not even using multi-core or SIMD/MIMD stuff. Heck my code isn't even optimized :)
 
user1182183
can someone make a C++ compiler for my casio prism, I want to program all those solutions and more programs into it?
 
7:37 PM
I know, right!
It gives me hope for the future of processing.
 
user1182183
it haz 16 mb whooo!!
 
user142019
@StackedCrooked ideone.com/WnVwmG :^)
 
user142019
Four lines; two could have been omitted since they were explicit type declarations.
 
Nice :) Gotta hand it to ya.
 
I do not understand a thing of that Haskell.
 
7:38 PM
@ThePhD but it's fun.
 
user1182183
haskell looks nice but the syntax sux
 
@Rapptz Liiiies.
 
user1182183
I mean..
 
user1182183
number = "73167176531330624919225119674426574742355349194934"
++ "96983520312774506326239578318016984801869478851843"
 
user142019
@ThePhD it's pretty basic.
 
7:38 PM
@GamErix What
 
user142019
@GamErix its syntax is awesome.
 
user1182183
cmon srsly
 
user1182183
++???
 
!!!
I can do
 
user1182183
7:39 PM
??!!!!!!!!!!!!!!!!!!!!!!!1
 
in-place processing of my audio!
SPEEDUP TIME LET'S GOoooooooooooOOoooOo
 
@jerry got the monarch hat yet?
sup all?
 
user142019
@GamErix concat lists.
 
user142019
And strings are lists of chars.
 
+ is for things that satisfy a + b = b + a
 
user1182183
7:39 PM
why not
number = "7....\
something\
more\
fucking\
lines
 
user142019
++ is the same as in Erlang.
 
Oh yes, line continuations are much better
 
user142019
@GamErix that is possible with {-# LANGUAGE CPP #-} which enables the C preprocessor. xD
 
user142019
And it will fuck up when there is whitespace in front. :^)
 
user1182183
@Zoidberg'-- okay
 
7:40 PM
Hm.. 406 is a bitch.
 
@GamErix Won't it actually insert lineendings into your string?
 
No, but it will insert whitespace from the beginning of the line
 
@sehe What are you trading?
 
user142019
You don't want whitespace in the string.
 
Which means you can't indent in, which means it sucks balls
 
7:41 PM
OH GOD NO I CAN'T DO IN-PLACE AUDIO PROCESSING JESUS CHRIST MY EARS
 
user1182183
@yetihehe well I never had problems with that multi-line method
 
user142019
Though you can use filter to remove the whitespace from the string before passing it to pe8.
 
@Rapptz linkage?
 
user142019
Also
 
7:41 PM
@GamErix That's why I asked. Thanks
 
user142019
LANGUAGES Y U NO SUPPORT MULTILINE STRINGS
 
Don't use line continuations ever
 
user142019
I want multiline string literals with auto-dedent.
 
Ell
I don't see the problem with non acossiative +? ( also I probz got wrong word)
 
user142019
It's not associative.
 
7:42 PM
non-associative?
 
That's reflexivity
 
bah, beat me to it
 
user142019
x + y != y + x is unnatural.
 
Nice lysdexia, @Ell
 
@Ell did you pronounce that in your head?
 
user142019
7:43 PM
You don't expect that to happen ever.
 
Wait, no, not reflexivity
 
user142019
+ not being used for strings is the only thing I like about PHP. xD
 
Commutativity
 
+ is really nice to have on strings, though.
 
+ is a member of Num typeclass in Haskell
Those are expected to follow some laws
 
user1182183
7:44 PM
@ThePhD + is a hell in .net if you have a string and a number mixed
 
Also joining lists like that is rarely used anyway
 
@Rapptz Hmmm. Looks like the winning strategy would always be some variant of binary search, but instead of the "middle", you'd weight the pivot value.
 
(std::string("A") + std::string("B")) != (std::string("B") + std::string("A"))
 
user142019
instance Num String where
    (+) = (++)
 
user142019
:D
 
7:45 PM
Won't work
 
user142019
f"uck
 
user142019
whynot xd
 
Is commutativty really a problem when dealing with strings, though?
 
f"(uck)
 
user1182183
fuck.
 
7:45 PM
> Minimal complete definition: all except negate or (-)
 
@ThePhD Commutativity.
 
f-double-prime of UCK.
 
@ShotgunNinja 2nd derivative of f of uck?
 
Also it's not a number
So there's that
Unless you write an instance that actually behaves like numbers for strings
 
user142019
I'm going to do PE.
 
7:46 PM
@DeadMG I've done something similar to this before (problem 328) but this one's weird
 
Bleh.
 
user142019
I see that I have already solved 1, 2 and 20.
 
I can't decode 8-bit wave files probably.
 
user142019
Some time ago.
 
The volume always shoots to the roof.
 
7:47 PM
@Rapptz Derivative implies WRT-something... I prefer calling it double-prime, which indicates a double-derivative by the given argument.
 
derivative implies continuity.
 
@Rapptz No, it's 328 which is weird.
 
user1182183
it's really that fucking hard for windows to remove my wifi adapter from a brige without disconnecting me.. -.-'
 
it unnecessarily favours quickly finding numbers if they are higher.
in some fashion that I don't quite comprehend
406 should be a straight binary search, with weighting a:b.
 
@ShotgunNinja generic dayjob as C#/C++ dev for various customers on site. usually <10 months (but going on 2 years at the current customer, which is semi govt)
@GamErix you do it better
 
7:48 PM
406 is weird to me because I now have to deal with 2 more variables to keep track of and 2 more parameters that I didn't care about previously.
 
@sehe Semi-gov't meaning you can't tell me anymore or you'd have to kill me?
 
@ShotgunNinja just that it's not govt. proper
 
user1182183
@sehe how hard can it be to maintain connection on a device while you only remove it from a "virtual folder"
 
user1182183
well time to watch Naruto Shippuuden, forgot to watch a new released episode yesterday
 
@GamErix bridges are virtual devices, not folders. They affect routing and need to be registered with the kernel at the IPV4/V6 layers
 
user1182183
7:52 PM
@sehe well ok virtual device :F
 
user1182183
it's still virtual
 
@Rapptz what is 406?
 
@GamErix You do it better then
@JohanLarsson Must be a HTTP error code on PE
Feb 17 at 0:20, by sehe
@Hoxieboy I'm (co)building software that distributes money to educational institutes in the Netherlands. That is a semi-government body, and we transfer EUR 24 Mio each year (was it 34?)
 
@JohanLarsson PE 406?
 
user1182183
@sehe well if I would be leading the windows team I wouldn't release such crap
 
7:53 PM
@Rapptz ty
 
mhm.
 
@GamErix you'd have to, unless you wished to rearchitect the kernel to make the driver model more flexible. Deadlines
afk
 
user1182183
Fuck deadlines.
 
@GamErix It's probably driver implementor who botched the job and was too lazy to properly handle dynamic configuration changes
 
7:55 PM
~/programming/projects/stacked-crooked/ProjectEuler/010 $ time ./test
142913828922

real	1m38.750s
user	1m38.696s
sys	0m0.050s
Those times..
 
real and user are through the roof.
 
Hmm, anybody knows about any materials about good driver model design?
 
@ThePhD That was with -O3 compiled btw.
 
user1182183
error C2177: constant too big
 
Uh.. let me post mine.
 
user1182183
7:58 PM
well fuck you error, my cock is bigger
 
Hm.
 
or to give you a better idea, use the Sieve of Eratosthenes. Spoiler?
 
@Rapptz I haven't heard the term Sieve of Eratosthenes in years... Nostalgia'd.
 
Lol, (headphone review)[http://reviews.cnet.com/headphones/philips-shp2500/4864-7877_7-32596397.html?messageID=10133252] :
Pros:
-Cord length (Easily reaches to the sofa from the tv)
Cons:
-Cord length (Too long for use outside of the house or car)
 
@yetihehe Whoops! You broke the Internet! :(
 
8:02 PM
Best broken link message ever.
 
looks like that
 
@ScottW I have a pair of these they are old now so probably not available. What I like about them is that they are wrapped in cloth so they never feel sweaty. Sounds ok too.
 
When buying headphones, it's best to consider your budget.
 
user142019
boo
 
Also those are rather good and cheap, you should be able to find those 3 times cheaper
 
user142019
8:04 PM
Hey I said boo you should all be scared.
 
I'm really interested in trying out these Grados, especially since they're affordable and award-winningly good.
 
Markdown doesn't work for multiline messages
 
Even if I don't like them, or if something happens to them, they won't set me back too far.
 
user142019
Dammit.
 
God
 
8:04 PM
Yes?
 
@Zoidberg'-- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH
 
Lol. God, I need help with my code. Can you spare some time for me. :c
 
@StackedCrooked Nice.
 
@StackedCrooked One Conditional to save them all.
 
8:05 PM
Ugh, Sennheisers? Good luck having them stolen.
 
@ScottW My sister has those, they have good sound, but don't fit over whole ear.
 
Fair enough.
 
user142019
I wear Sennheisers everywhere and they never got stolen.
 
Shotgun lives in the hood probably
 
user142019
I only use them so I don't hear terrible noise from the douchebags wearing Beats by Dr. Dre.
 
8:07 PM
Nobody steals my shit because it looks all ratty and torn and messed up.
 
Oh Wisconsin.
 
@ScottW A little for me, for her apparently not
 
This particular pair of headphones I have is actually 6-7 years old.
 
user1182183
well no naruto released yesterday... uh, whyyyyyyyyyyyy, whyyyyy, :x
 
It died once, and I soldered the wires back together. The cushioning is falling off hte earphones.
But the sound quality is nice and the ear muffs are gigantic, and I like it
 
MPlayer give me back my screen margins
:<
 
user1182183
@CatPlusPlus Media player classic, NOW
 
Ahahaha you crazy
 
Lemme guess... *nix-user?
 
Just Cause 2 is -75% go buy it
 
user1182183
8:09 PM
@CatPlusPlus if I weren't this world woulddn't exist
 
user1182183
@CatPlusPlus it has no MP so I can just torrent it and enjoy
 
It's literally 5€ stop being a scrub
Prototype is -75% too, it was quite fun
 
user1182183
@CatPlusPlus Cat, you know my gaming style and you know those games aren't my taste
 
I'm talking to everyone
 
user1182183
@CatPlusPlus that includes me
 
user1182183
8:12 PM
(though, I'm a alien, I know)
 
Also Civ5
 
Ell
Are beats headphones particularly high quality?
 
Not for the price you get them at.
 
Ell
I wonder what the price of equivalent unbranded headphones are at wholesale
 
user1182183
$1
 
8:19 PM
Ah
Finally figured out WAV 8bit format
 
Beats headphones are terrible. Never buy them.
@ThePhD It's interesting, isn't it?
 
When the BitsPerSample is greater than the size of a byte, it uses signed types to indicate level and 0 is hte midpoint.
When it's a byte or smaller, it uses the maximum of the bits and sets the midpoint to half of 2 ^ (BitsPerSample) limit.
So you have to subtract half to get data that can go to the audio device.
Not sure why they didn't just make it signed like everything else. ._.
 
user1182183
there is no high/low quality headphones. maye just earphones comfortable for your ears
 
user1182183
and srsly. 5.1 headphones? scam.
 
@GamErix Bullshit.
 
user1182183
8:23 PM
with 2.0 you won't notice the difference
 
@GamErix Technically, no; you only have two ears anyway, though, so how does 5.1 work in the first place?
 
user1182183
@ShotgunNinja a human can actually (thanks to 2 ears) determine where the sound comes from
 
@GamErix There are. I've listened to low and high quality headphones and they DID differ
 
Ell
Have you ever listened to the virtual haircut?
 
user1182183
@yetihehe hm ok, well I don't havve to use headphones, ever :P
 
Ell
8:25 PM
listen to it with headphones
 
user1182183
i'm happy with my broken heaphone-out jack and 14 speakers with 2 subwoofers
 
@GamErix Right; due to triangulation. It's only due to signal processing, however, that we determine how far a sound source is, relative to each ear. Your brain does a filter to isolate unique sounds, then uses a differential filter to determine where they are coming from.
 
@GamErix Just don't tell bartek ;)
 
0
Q: map::emplace() with a custom value type

SchighSchaghI'm having trouble using map::emplace(). Can anyone help me figure out the right syntax to use? I am effectively trying to do the same thing as in this example. Here is my version: #include <map> using namespace std; class Foo { // private members public: Foo(int, char, char) /* ...

 
user1182183
@yetihehe now everyone will star it
 
Ell
8:26 PM
Hmm can we distinguish between a loud sound far away and a quiet one near?
 
@ShotgunNinja I think your brain uses neural networks for this ;)
 
@GamErix Man. Are you going for some kind of trophy tonight? "Most misinformed/ignorant comments in a short timespan"?
 
@Ell Different attenuation of frequencies
 
user1182183
@sehe oh I see you can see through me :D
 
user1182183
Can I get my award now?
 
user1182183
8:27 PM
:P
 
What a relief. Have a cookie
 
I'm just waiting on people to refer to themselves as idiots.
 
user1182183
I hope this room stopped starring "I'm an idiot" posts :F
 
Oh, I do that in the C# room all the time.
 
Testing, 1.2.3. I'm an idiot, 1.2.3...
2
@GamErix It didn't
 
Ell
8:32 PM
Do 5.1 headphuoines hash multiple cables?
 
Stop smoking
 
@Ell Good question. Some of them have attachments for 5.1 analog jacks, while a few others use USB. Some just "pretend" to be 5.1, and are damn liars.
 
user1182183
@ShotgunNinja you professional gamers who play CS all the time that you need 5.1 headphones? ;o
 
@GamErix I haven't played CS in months... thanks for reminding me.
 
user1182183
@ShotgunNinja :P
 
user1182183
8:35 PM
a gamer should know what's on his machine
 
Ell
People call me pothead at school
I don't even smoke
 
Oh, and a lot of headphones also use IR/Bluetooth/custom wireless radios for transmitting, many of which use USB for the transmitter.
@GamErix I know what's on my machine, I just don't have time or motivation to play all of the games I own.
 
Ell
Have you played gw2?
 
@GamErix ...
@Ell names
 
user1182183
@sehe what's wrong with that? ; o
 
8:40 PM
@Ell I refuse to play MMOs, simply because I'm ADD and easily addicted, and once I do, I'll never stop.
 
Ell
Guild wars 2
Fair enough, that's a good reason
I don't really play games yet I'm addicted to the internet anyway
 
user1182183
who here likes classic games and is a classic gamer ? (I AM!)
 
user1182183
(not too classic though)
 
@NolwennLeGuen Eh siboire.
 
I like Quake 2's multiplayer, too bad no one ever plays it anymore.
 
user1182183
8:44 PM
@ShotgunNinja not Q3?
 
Q3 is waaay too spammy.
 
user1182183
@ShotgunNinja what bout strategy games (RTS)
 
Q2 has the "classic hardware 3D" feel to it.
@GamErix I suck at Starcraft... haven't played too many others though.
I also played a lot of Warcraft III.
Now I play LoL, so whatever
 
user1182183
@ShotgunNinja no command and conquer series? :O
 
@GamErix No, unfortunately; I played RTSes mostly from my dad's lap, and he never owned any of the C&C titles.
 
user1182183
8:47 PM
You srsly need to try CNC95, the world shouldn't allow to bypass CNC series for anyone who was born before 1997
 
Ell
Played total annihilation?
 
user1182183
yes cool game
 
user1182183
especially with 5k unit cap
 
user1182183
and the ability to cheat in MP..
 
user1182183
without getting out of sync errors
 
8:48 PM
Now, I'd love to develop an RTS game; they seem absolutely fascinating to me. Only problem is, I don't yet have the time to start.
 
Ell
You played spring RTS?
 
user1182183
@ShotgunNinja then update this one
 
user1182183
@Ell yep
 
Ell
that's an rts engine with TA clone and lots of other games
 
user1182183
however, never got the grip of it
 
user1182183
8:49 PM
so in the weekends now I playe sometimes Dark Reign 2, Red Alert 2 and Red alert 3
 
user1182183
with some friends
 
@GamErix I'd love to, it's just that I never have the time to sit down and start... Maybe during the summer?
 
Ell
I have red alert 3
 
Also, I have played Red Alert 3 at a gaming cafe once.
 
Ell
its just red alert 2
 
8:50 PM
I got my head handed to me.
 
user1182183
@ShotgunNinja can't wait, skype? :P so I can remember you DR2 just in case xD
 
Oh god the code! (tbh it's probably a troll post - too brilliant) stackoverflow.com/questions/14075578/why-strlen-doesnt-work
 
@GamErix I'll give you three guesses what my Skype username is.
 
user1182183
@Ell no, RA2 is much more fun, bt RA3 is the real strategic stuff, I play them randomly
 
user1182183
@ShotgunNinja ShotgunNinja
 
user1182183
8:51 PM
?:P
 
@GamErix Congratulations, you've received a single strip of bacon.
 
user1182183
@ShotgunNinja whoa :D
 
user1182183
ok invitation sent xD
 
Ell
I though ra3 was a remake?
 
user1182183
@Ell you have RA2 too? :P
 
Ell
8:53 PM
Somewhere haha
 
user1182183
@Ell no in Red alert 3 the only thing that is the same with RA2 is that 1) it's an RTS, 2 ) soviet Apocalypse tanks 3) build bases, army & attack enemies
 
Ell
Hmm
I specifically remember Tesla towers and chrono people
 
user1182183
in ra2 you won't find the protocols stuff and unit abilities, and in ra3 you won't have as much fun as in ra2
 
user1182183
@Ell the only chrono bout RA3 is the switch protocol and chronosphere :/
 
Ell
Deploying GI soldiers etc.
 
user1182183
8:55 PM
can't wait for this to be released.
 
Ell
Anyone played trade empires?
 
user1182183
@Ell never heard of that game, is it tycoon like? (especially transport tycoon deluxe, + OPENTTD)
 
^ that's WIN
 
user1182183
@sehe that's cool yes :)
 
Ell
@gam nobody has heard of it I don't think :L you basically build trading posts and production buildings and you set up trade routes . dwellings move in to cities if they have lots of basic commodities. Its essentially all about supply and demand
 
user1182183
8:59 PM
@Ell hm ok will try it ;p (if it has singleplayer AND multiplayer)
 

« first day (804 days earlier)      last day (4143 days later) »