« first day (646 days earlier)      last day (4309 days later) » 

9:01 AM
@keith.layne nice, now I'm happy for the rest of today :)
 
9:19 AM
morning
 
9:34 AM
It's quiet in offices here. Many people are on vacation.
 
The project I'm working on has ~22 instances of x == y ? true : false and one or two x == y ? false : true.
And I think one of the latter is x == false ? false : true.
 
Only 22? You're lucky.
 
Entire project is full of crap like that. Maybe not that, specifically, but it's still suicide bad.
 
oh god
 
9:51 AM
Ubiquitous bad code.
 
Idiotmatic code.
5
 
@R.MartinhoFernandes incidentally, IIRC there is a language where 'fife' is actually the word for banana. Bonus: 21 Ways to use a Banana on a wet Sunday!
 
Best title of the day:
0
Q: this thing is killing me . have to yelp

user1545477would love if you guys can help me solve this problem :) i have the following String name, String word, String gold, String sacks I have to iterate through a log file and count the occurrence of each. JAVA pls. dependencies: one name can have multiple words,gold,sacks How do i store it and inc...

On that note, I'm off to sleep.
 
@CatPlusPlus When I see that kind of issue (not for a while, thankfully), I wonder whether I should fix it or whether it's more considerate to leave it in place as a warning. The only worse thing than idiotmatic code is superficially good code that hides serious design flaws... kind of like painting a skunk.
 
please can u help — user1545477 36 secs ago
Off to sleep for realz...
 
10:05 AM
I have a task to cleanup the code as much as possible.
At least getting rid of this is easy.
I'm afraid to run code duplication analysis on this thing.
 
we got pony!
 
pony?
 
@CatPlusPlus easy. :args **/*.{cpp,hpp} | :silent! argdo %d | wqa, or one of the many alternative approaches :)
 
That's not C++ project, and I don't mean reformatting.
 
@ScottW listening to extremely atmospheric, relaxing ambient sounds FTFY
@CatPlusPlus ? I thought you were a vim user
@TonyTheLion Se, he responds too :)
 
10:12 AM
Java is not writeable without an IDE.
 
Tony the Pony, a Jon Skeet Skit
@CatPlusPlus Blatant lie #317
 
meh, Java
 
Or: I don't want to write Java, I want IDE to generate it for me.
 
I'm no pony, man
 
Mmm, suddenly craving Coffee. Wonder why
 
10:13 AM
@sehe I've had 2 coffees already today
 
@ScottW I think I've heard of Aphex Twin before
@TonyTheLion So, you're still in bed :)
 
euh, I wish :)
 
x == true && y == false ? false : true.
 
@ScottW That qausi partiture is an unrelated joke though :)
 
That's !(x && !y), right?
This is some quality obfuscation right there.
 
10:16 AM
@CatPlusPlus yup
 
yea, the first is more readable
 
@CatPlusPlus Holy crap.
 
but this is terser and less characters
 
@TonyTheLion You've got to be fucking kidding.
 
@TonyTheLion urfff. Depends very much on the naming of the variables. With x and y I very much prefer !(x && !y)
 
10:17 AM
hmmmm
if you put brackets in the first (x == true && y == false) ? false : true its more readable I'd say
anyways, I'd never write it like that
 
That's !x || y.
 
@TonyTheLion You’re also wearing your underwear on your head, don’t you?
 
the other way is how I'd write
it
@KonradRudolph nope
 
Well, whenever you find yourself using x ? false : true, check your caffeine level since you’re producing bullshit
 
Now, if x and y were some 'verbosely' described logical states/conditions, then I might prefer e.g. youAreScrewed = IsTaxFormNotFilled && (youAreOnTheIrsBlacklist == false)? false : true; - contrived... I would never write it like that
 
10:20 AM
Those parentheses are quite misleading.
 
There is no justification for logical-expr ? false : true or logical-expr ? true : false.
 
@R.MartinhoFernandes true. If verbosity was a benefit, I'd probably convert to if() and split the conditions too
 
oh yea, ternary operator. Fuck that shit
meh, I need more coffee it seems
 
Completely disagreed.
 
@TonyTheLion Wrong, you are abstracting the wrong thing out of it
 
10:21 AM
@TonyTheLion Cappucino perhaps?
 
the ternary operator is perfect, but not to negate a boolean expression
 
NO, I don't like cappucino, I prefer black Americano, no sugar
 
It's perfect for identity on a boolean expression!
 
@ScottW What? You prefer ternary with... floats?
 
@KonradRudolph oh
 
10:22 AM
@sehe 0.3333333333, 0.3333333333, and 0.3333333334.
 
@KonradRudolph now I'm totally confused??? Say what?
 
@R.MartinhoFernandes yeah but it wouldn't compile, would it? Or do mean ternary representation (LOL)
 
@TonyTheLion You tried to make me sound as if I reject usage of the conditional operator. But I’m not, I’m a fervent advocate of it where it makes sense.
 
@TonyTheLion Saying cond? false : true is always better written as !cond
 
@TonyTheLion I decided to give coffee another chance two weeks ago. My stomach still can't handle it :S I'll be miserable forever, like Tantalus.
 
10:24 AM
Coffee doesn't help with this code.
I've tried.
 
@KonradRudolph ah. ok
 
@sehe I’d argue for not cond but then I’m the odd duck in the C++ pond …
 
@CatPlusPlus So, it passed the coffee test. Next up: the whiskey test.
 
@KonradRudolph We're even!
 
who cares about being the odd duck
 
10:25 AM
@KonradRudolph Yup - very much so.
 
I'm prime.
 
@CatPlusPlus I'm Ramanujan/Hardy Taxi Cab
 
oh nice :)
 
@sehe I’m not fazed, I take solace from the fact that the whole rest of the programming world laughs their heads off at the stupid C/C++/Java/C# programmers for refusing to use legible conditional operators
 
don't you hate it when people don't answer their phones/email/text messages?
 
10:26 AM
No.
If I did, I'd hate myself.
 
ooh
well, I find it rather annoying
 
Being unreachable by cell phone is my superpower.
 
@KonradRudolph Fazed? Newfangled spelling, not just of logical operators :)
 
if you have a phone, and you don't answer your calls, then what's the bloody point of having a phone in the first place
 
@TonyTheLion Emergencies (like, checking SO chat replies while commuting)
 
10:28 AM
@sehe oh god why
 
@TonyTheLion The vibrate alarm on my Galaxy Nexus is so weak that I don’t notice it :/
 
I don't even check reddit on my phone
 
Galaxy Nexus is le awesome.
 
@KonradRudolph meh
 
Damn. It's the lounge. Always got to flag humour ahead of time, or people will blithely run it over
 
10:29 AM
I'm still in doubt as to what phone I should get next, Android or Iphone?
 
@KonradRudolph My HTC has many virtues. However, when trying to carry a phone conversation on maximum volume, the voice is barely audible. I frequently lower the volume so I can just put the damn thing on loud-speaker
 
WTF is a “two diminutional vector”?
 
@TonyTheLion I was gonna answer: "Depends. Do you like sucking cock? If yes, go for the iPhone" But I thought this could be misinterpreted.
 
@Cicada Yes, except for the weak vibrate setting it’s pretty sweet
 
My phone's battery lasts a week.
Beat that.
 
10:33 AM
@CatPlusPlus My old lasted 2 weeks!
@KonradRudolph I just hate the short battery :<
 
@Cicada Same as for other smartphones, no?
 
@CatPlusPlus !x || y could do with a logical implication operator
Actually, perhaps a ternary would work: x ? y : true
 
@ecatmur VB6 had Imp and Eqv
 
10:35 AM
:4632457 Then Android.
 
@KonradRudolph Score one for VB6 - not often I'd say that.
 
@TonyTheLion Knowing you called when I decide to check if someone called.
And calling you back.
 
@KonradRudolph Yeah but coming for an old, "normal" phone, it was a shock :D
 
See, it's quite useful.
 
oh I see
 
10:36 AM
@ecatmur Well, Eqv is just = (or ==) if you have a dedicated data type for booleans
@Cicada Ah, ok. The phone I had before that didn’t have a battery
 
meh, VB6
 
The thing is, people only call me to bother me with some problem or another.
 
oh
that sucks
 
I don't want to be botherable 24/7.
 
I hate the ternary operator
 
10:39 AM
@thecoshman Well it hates you too
 
@TonyTheLion I get the "good news" from other means: e-mail, or in person. There's practically no one liable of contacting me by phone with good news.
 
I'm glad we understand each other then
 
Uuh, interesting problem
4
Q: Preventing generation of swastika-like images when generating identicons

phpdevI am using this PHP script to generate identicons. It uses Don Park's original identicon algorithm. The script works great and I have adapted it to my own application to generate identicons. The problem is that sometimes swastikas are generated. While swastikas have peaceful origins, people do t...

 
10:52 AM
Too localized.
 
@bamboon Because it’s a good question
 
It's also a dupe.
And it's also on the tag wiki.
 
It's asked every 3 weeks or so.
 
@CatPlusPlus Yep, which kinda proves my point that it is too localized.
 
It's like an annoying kid going "ARE WE THERE YET ARE WE THERE YET" every 15 seconds.
 
10:55 AM
@R.MartinhoFernandes This made me realise that URL shorteners will invariably also generate curse words
 
@CatPlusPlus haha, good comparison
 
I guess "annoying kid" is redundant.
 
Hmmm... a 4487-character regex in javascript... *what could go wrong* ;p /cc @balpha
 
@R.MartinhoFernandes The problem here is actually not the regex but "javascript"
Because javascript has only a rather weak regex flavor
 
@NikiC Meh.. the whole concept of regex is broken in my opinion
 
11:02 AM
@Neil You didn't use them enough then :P
 
I mean it definitely serves a purpose, but sometimes that purpose also includes making programmers cry
@NikiC I use it more often than I'm willing to admit
 
@NikiC I agree that the ECMAScript regex rules are a tad lackluster, but PCRE is overkill.
 
Also one should be aware of the x modifier, named subpatterns and DEFINE assertions
Because that's how you make regular expressions readable ;)
 
The killer is the escaping you have to do on regex strings. At least javascript has the luxury of not having to worry about that
 
And JS doesn't support that :)
 
11:03 AM
What's x? "Whitespace doesn't matter?"
 
They need to add that to other languages
 
@R.MartinhoFernandes yes
 
Yeah, that's cool.
 
and x also enables #-style comments
 
Yeah, .NET has that.
 
11:04 AM
.NET does not have recursion though, if I remember correctly :P
 
That's too much.
 
It is actually very handy ;)
As long as one doesn't take it too far
 
If I want a parser, I don't want a half-assed unreadable language with parser features bolted on.
 
I know, you want boost spirit :D
 
11:06 AM
PCRE is not even regular.
 
@CatPlusPlus Obviously
 
Also, speaking of regex, anyone know any good resources on how to implement a regex engine?
 
All regular expressions a programmer would use aren't regular ;)
 
I'm going to need some features.
 
Not really.
 
11:07 AM
@R.MartinhoFernandes Why would you want to implement a regex engine?
 
If you use a regex for something that's not suited for regex, you should just quit and burn in hell.
 
@NikiC \w+@\w+\.\w+ looks pretty regular to me.
 
Validating emails is one of the most silly applications of regex.
Nobody gets it right anyway.
 
It is actually very easy to be RFC conforming
 
@NikiC To implement these rules here: unicode.org/reports/tr29/#Default_Word_Boundaries (you need to scroll a bit down).
@CatPlusPlus I got it wrong.
 
11:08 AM
But the point point is that conforming to the email RFC is a bad thing
Because not all mails in use are actually valid ;)
 
@R.MartinhoFernandes No.
 
@CatPlusPlus Yes.
:P
 
That's why I prefer to just check that there's an @ in the middle and do an MX record check on the domain ;)
 
SMTP servers will reject invalid emails. Using regex hacks is a waste of time.
Especially for those people who happen to have valid email that doesn't pass MASTER REGEX.
 
@NikiC I'm not implementing an engine, I just want to learn some implementation techniques for a much simpler domain.
 
11:09 AM
It's like limiting password length.
A sign of a moron in charge of the code.
 
@CatPlusPlus As I said, you can write an RFC conforming MASTER REGEX, which (by definition) will let all valid mails through ^^
 
Except it's still waste of time.
And still not regex job.
 
@R.MartinhoFernandes Ah, okay. Afaik simple regular expressions (you know, without backreferences and stuff) are best implemented with a Thompson NFA
 
@NikiC Oh cool, something googleable is nice as well. Thanks.
 
@NikiC The best regular expressions.
 
11:11 AM
But all modern regex flavors use backtracking ;)
 
Black magic that causes regex processing time to not grow exponentially.
 
yeah, not having exponential time is kindof nice (at least if you're bad at regular expressions)
 
Guys, do you know of any well-working solution to get cover art for your ripped CDs, instead of scanning them all 1200 by oneself?
 
@R.MartinhoFernandes I hate unicode :/ Everything is so ... complicated.
 
@sehe Itunes, get Album Artwork?
 
11:16 AM
I got an email about some pills that will make your junk grow exponentially.
 
These aren't very good for you.
 
or Google the album name, and see if the album cover art turns up in the image results
 
@NikiC It's not Unicode's fault.
 
@R.MartinhoFernandes It isn't
It's those damn people with all their languages :P
 
Jul 18 at 1:06, by R. Martinho Fernandes
Btw, after spending lots of time actually studying the thing, I think Unicode is quite good, considering that it is basically an attempt at sanity on a domain that is quite close to being the definition of insanity.
 
11:17 AM
Everything is wrong because of people.
Stupid people.
 
In the words of Jon Skeet, Humanity: Epic Fail.
 
yes, stupid people.
stupid people are stupid.
 
smart people are stupid (too)
 
@keith.layne I suspect I get those everyday, but I don't even check.
 
@TonyTheLion Well, does it work well? Does it work when you got all your albums ripped? I have cddb discids and full toc information saved
I guess i could live with having to reinsert all CDs once.
 
11:19 AM
@sehe it does work when Itunes has the album artwork in their db, which you don't know until you've tried
 
@R.MartinhoFernandes Yeah. Imagine you'd have to try and make all programming languages compatible with one another :D (Though that's probably even harder than making native-languages compatible due to all the flamewars).
 
I'm trying to avoid having to manually scan and postprocess all covers
 
@sehe mp3tag works great for me. but I think that is windows only
 
@sehe I seem to remember this being pretty featureful: musicbrainz.org/doc/MusicBrainz_Picard
 
@bamboon What's the workflow to get cover art?
 
11:19 AM
@sehe I did this once for a friend of mine, took a while
 
Ok, cool Let me check mp3tag and musicbrainz links
I've seen them before, but... I did the digitizing in December 2010
 
@sehe open your folder with the tracks, select all, select get-cover, choose the right one
 
@bamboon Oh sweet. Any way to automate? Like I said ~1200 cds :)
 
$ rm -r music should leave you with covers for all your ripped tracks.
 
Not being helpful :)
 
11:22 AM
@sehe oh, probably. I didn't use it quite sometime and wasn't that kind of hardcore user either
 
@R.MartinhoFernandes :D
 
Also, sadly I have got plenty of backup. It would atually be rather hard to eradicate my music collection
 
hehe
I never do backups :D
I know, I'm going to regret that sometime, but ...
 
The best 'vague' link I had until now was trying to code something up with the MusicBrainz API to get their discid and see whether coverartarchive.org happens to share my taste.
 
write your own piece of software to pick album artwork from Googlez
 
11:24 AM
It seems to be something of a long shot and I hesitate to put in much effort for possibly no gain (since 90% of my collection is classical music, and you know how it goes with that on the interwebs)
 
make millions in the process :P
 
Yeah. Then get sued
 
@sehe You can be sued just for creating the software? Ouch.
 
@R.MartinhoFernandes apple will find a way
 
11:25 AM
you can be sued for pretty much anything.
especially in the USA
 
@R.MartinhoFernandes No but you will when you make millions of copy righted works created by others
 
I was talking about the software, not the albums artworks
silly
 
Doesn't matter whether it makes sense, or is even legitimate.
See the oatmeal?
 
yea the justice system has gone so far in the US that logic has no part in it anymore
 
Big arse companies can and will make your life miserable in the process. So the only viable option is to make it 'free' and get kudos instead
 
11:27 AM
eh
 
But I won't. Unless I stumble on a good way to 'google' images with, say, cddbid's or MBID's
 
so I was supposed to go find a flat to live today, but all the appointments I had today, were cancelled, due to the flats being let already, meanwhile
hopefully the appointments tomo bring me something I like
 
@sehe But you'll get millions of kudos!
 
Don't worry. I know a place to cheaply store them
 
Your heart?
 
11:31 AM
lol
 
Hi,
My name is miss CONFIDENCE, i saw your profile today on stackoverflow.com and i became interested in you,please i want you to send a mail to my email address so that i can give you my picture for you to know whom i am. I believe we can move from here I am waiting for your fast respond.make sure you send me a mail so that i will know you got my message.thanks hoping to hear from you CONFIDENCE.
Great.
 
Maybe I should write in my profile that bad grammar/spelling are turn-offs.
 
0
Q: dynamically changing name of an array in c++

pyCthonHi I have a problem where at compile time, I don't know how many vectors in my program are needed. The number required depends on a data set given at run-time, which will results in the range of vectors needed to be from 1 to N. So if the data set requires ten vectors, it will create vec1,vec2,....

Hehe.
 
11:54 AM
@R.MartinhoFernandes lovely
pyCthon is possibly a Cthulhu reference
 
as in the name?
`_- maybe...
but only just
 
Cthons are Stars Wars creatures.
 
@TonyTheLion it better be -_-
 
12:10 PM
@TonyTheLion nope
 
@TonyTheLion Sorry no sound.
Watching a man talk into a microphone is not funny.
 
hi
 
good afternoon
 
12:26 PM
@Neil listening to him isn't funny either
 
I think I agreed. I tuned out after sampling 2x30 seconds
 
Me too
 

« first day (646 days earlier)      last day (4309 days later) »