« first day (429 days earlier)      last day (4524 days later) » 

5:02 AM
I have a small wrapper around some of the OpenGL API that I grew up organically in the past week. Now I've been cleaning things up a bit.
 
5:20 AM
anything converting the ogl api into something useful would have to be huge
 
It's just a small subset for my experiments.
I'm not crazy.
 
argh, hurry up, stupid torrents and shitty swarms
 
When I started working at my very first full time software developer job I started refactoring the core of the backend.. as a hobby during nights and weekends
I ended up rewriting the whole thing, gave my boss an USB drive with the new code and said "I think you might want to take a look at this"
 
And then he told you take a hike?
 
2 days later we had deployed the new version of our backend api, my boss was happy
 
5:30 AM
Oh, it was a decent boss then.
 
though I didn't get a raise :-/
I got beer, unlimited access to cigarettes while working and was allowed to play hiphop as load as I wanted to for 2 weeks
it was worth it.
 
user406009
How did you prevent tons of regressions in your new version?
To me it seems that something like refactoring a whole backend would cause tons of problems.
 
It's easy! Don't test.
 
yeah
just ignore the failing tests, then you don't have to fix the problems
 
@EthanSteinberg Well, there were bugs we/I didn't think of while writing it, though the performance gain was enough to throw out the old one and launch the new one. (we were in a state where we rapidly needed to improve execution speed since the load was getting higher and higher for each day, the sales departement had worked faster than the developers in the past)
 
5:36 AM
this also involves ignoring the customers whose product no longer works
 
we had backups though, and automates tests that ran every 2 hours
if something went wrong with one api instance all future requests was redirected to the old api until a developer had flagged the instance as functioning again
the automated tests made everything go fairly smooth
 
user406009
So basically a mix of automated tests and switching to the old code temporarily when errors are found.
 
@EthanSteinberg yes, pretty much
I got home from the office 05:00 am, it's now 06:40 am, need to be back at the office for a morning meeting at 9:30
maybe I should get some emergency sleep..
 
You what?
5AM?
 
I like working nights, it's quite.. dark.. and I can play my music without using headphones
and walk around in the long dark corridors feeling lonely, just me, my thoughts and the code I write
but as said; need to sleep now, and oh.. happy monday everybody! :-(
 
5:44 AM
Oh, right, and it's Sunday!
 
I turned the heating on an hour ago
and it's still tits cold in here
 
Warm tits are much better.
 
at this juncture, I'd likely settle for either tits or warmth
 
lol.
> I think if Chat has rep, that's another story. Rep in the SO site is purely for the best question answer's. Its earned over time making it trust worthy. Except for Jeff who has access to the database... and cheats. Anywho... Rep in chat should be bettable... it would add fun and keep people on the Chat more often. Maybe divi-out a certain amount of rep to each person in chat. The more in chat the more rep can be exchanged. I think it's a fun idea. – Justin 17 mins ago
 
6:05 AM
@RMartinhoFernandes hey, wait a second, did Jeff increase his rep. by cheating?
 
It's surprising how there are already two proposals to actually make this betting nonsense part of the system.
@IntermediateHacker I don't think so.
Oh, and finally, an answer I can actually accept!
4
A: Can we bet rep?

waffles Would it be frowned upon if I became a bookie? Yes, totally. This kind of activity would be suspension worthy. It would pollute our reputation economy and decrease the "measure of trust" associated with your reputation number.

 
amagad dexter finale
 
You're done watching it?
 
yep
 
Cliffhanger at the end, huh?
 
6:15 AM
yes!
 
What will happen to Deb?
(I have no idea what I'm talking about btw, I never watched Dexter.)
 
uh
I don't entirely know, but it's suddenly very important to me
 
Hah, I guess you'll have to wait a few months.
 
so irritating when they do that
 
They know that.
They also know that you'll be there for the seventh season.
Though you're not a paying customer...
 
6:21 AM
heh
technically speaking, that's not actually true
 
What's not true?
 
as a Sky customer, my parents have an account where they can watch Sky on demand, and if I wanted to, I could just use that
although the schedule for airing shows on Sky is often entire seasons behind the US
 
0
A: Can we bet rep?

IntermediateHackerNo , no and No. The system should never support this. This should not be happening. Here are my reasons. Everyone will jerk the newbie around Newbies and amateurs with low rep. will be possible victims of the big players. Same as it happens in casinos and cricket. This may greatly decrease ...

@IntermediateHacker WTF dude? You took me seriously too? "Gambling addiction"?
 
It's not that serious, read it.
Ok, maybe it is serious.
 
It looks pretty serious to me.
But I'm not an expert at this communication thingy.
Wow, I got 14 downvotes.
 
6:26 AM
here, a +1 from me.
 
I'm not worried. I got 19 upvotes. That makes a total of 190-28 = 162 rep.
> This can/will be gamed. - Probably. But unfortunately I make money faster than I make reputation.
lol
 
oh... damn. why doesn't anyone upvote my questions reputation is overrated.
 
-6
Q: How to Buy Rep Only for Use as a Bounty?

Rob OlmosI would like to offer a bounty (incentive) and would like to purchase it instead of offering my own reputation as the bounty. I see that Careers.SO already has a system to accept transactions for posting a job listing so it shouldn't be far fetched to hook bounties up to the transaction system....

 
Dude, you have plenty of simoleans to sell to that guy.
PayPal saves the day.
 
Is that The Sims currency?
 
6:34 AM
I mean imaginary interwebular currency. What's this "The Sims" you speak of?
 
$imoleans
@keithlayne u don't know about "The Sims" ?
 
seriously, dude?
 
The Sims is a strategic life-simulation video game developed by Maxis and published by Electronic Arts. Its development was led by game designer Will Wright, also known for developing SimCity. It is a simulation of the daily activities of one or more virtual persons ("Sims") in a suburban household near SimCity. Gameplay The Sims uses a combination of 3D and 2D graphics techniques. The Sims themselves are rendered as 3D objects, but the house, and all its objects, are pre-rendered, and displayed dimetrically. Neighborhood screen, Build and Buy modes While gameplay occurs in the game's...
 
ARGH why couldn't they have just made the finale like two minutes longer
 
@DeadMG who and what are u talking about?
 
6:38 AM
People.
 
can I spam the unanswered questions with stupid historical comments?
 
What's a stupid historical comment?
And no, you probably can't.
 
@RMartinhoFernandes I kind of like the "buy rep for a bounty" thing. I would totally be a repwhoring rep broker. It's like being a paid consultant, but you don't have to do anything. You get paid, someone else does the work. For imaginary cheddar.
 
@RMartinhoFernandes e.g Hitler was a racist! God save the Queen! The oil boom was the best thing that ever happened to the Arabs
can I downvote a Java question because it's related to Java?
-1 for using Java
-1
Q: logging out session across cross domain through jsp

izharI have a application in which the user who logs in is actually belongs to other application.Now I want to logout session of that user by hitting the other application page through the help pf ajax request making a call to my application. And that application should make a call to other applicatio...

 
I have downvoted answers for using particular features of languages.
But downvoting a question because of Java is pushing it.
If you don't want to see Java questions, don't look at them.
 
6:44 AM
@RMartinhoFernandes that seems highly context-sensitive
 
ok then. guess I'll take the downvote back. :(
 
I wouldn't even necessarily criticize a question about a bad language feature, if it were the right question. But when it comes to those questions, they're almost necessarily dupes.
 
@keithlayne Well, if you answer something using: macros, malloc or anything from <string.h> (for C++), pre-generics collections (C#), it's likely you'll end up with a downvote of mine.
@IntermediateHacker WTF just delete the comments!
That's just noise.
 
ah, I totally misread you, you said answer, I was thinking question, my bad.
You know, if my kids can't get the attention they want, they will act up to get any attention. Just sayin.
 
6:48 AM
:)
 
@RMartinhoFernandes lol, I deleted them. Thanks, I don't know why I didn't think of that.
 
Yeah, I'm probably a genius.
 
or maybe I'm just an idiot.
 
hmmm....<string.h> made me thing of something...I think STL in his videos includes <stdXXX.h> instead of <cstdXXX> every time...I always like to use the C++ versions, you know, namespaced and all that. Seems odd he would do that, unless I'm missing something.
 
STL does adult videos?
2
 
6:52 AM
They are pirate-themed.
 
@keithlayne They still pollute the global namespace in all implementations I know of.
It is suck.
 
you mean <cstd...>?
oh, they make them global and in std, don't they?
 
It's not mandated, but they all do it.
And it's allowed.
:(
 
I'm still confused why he used it like that. I mean, c support is in the standard, with those C++ headers set aside for that. Seems incongruent. I like to consistently use the C++ versions when using C++, and when using C, not to use C.
 
6:57 AM
The global namespace smells of communism to me for some reason.
 
Oct 22 at 19:05, by Alf P. Steinbach
@StackedCrooked no, when you include <math.h> you are guaranteed to have the names in the global namespace. which you would have to assume they also are if you include <cmath> (which you shouldn't). e.g. relying on assumption of non-polluting <cmath> trips up those who define functions in the global namespace. change compiler and your code fails to compile. that is not an issue with good old <math.h>
^ Related
 
Thanks @StackedCrooked
 
I never define functions in the global namespace.
That is, unless I really have to.
 
I tend to rely on bad assumptions over actually reading anything. Way more fun that way.
 
I remember putting in the global namespace: operators for scoped enums and operator<< for durations.
That's all. Those don't collide with C library things.
 
7:01 AM
That sounds fancy.
 
Just being silly, don't mind me.
 
The operators for the enums need to be in the global namespace, because that's the only place they'll be found.
 
that makes me think of relops though. Is there any way to use that cleanly in library code? Seems not worth it.
 
And operator<< for durations cannot be put in namespace std.
 
7:03 AM
yeah, I understood.
 
@keithlayne using namespace std::rel_ops;
Or using every operator individually.
 
at namespace/class/whatever scope?
 
I rather define conversion functions for enum, e.g. std::string Color2String(Color c). Being explicit avoids potential implicit conversion to integer.
 
what I mean is, cleanly using relops to provide clients with the operators without explicitly defining them and without having std::relops potentially define unwanted operators.
 
Namespace scope.
@keithlayne Ah, probably not.
But I think non-patological code should be safe.
 
7:06 AM
See, if only I could master English you'd know WTF I was saying, and I wouldn't seem so dumb.
 
I use Boost.Operators anyway. Completest, and safer.
 
"Most complete." English n00b.
 
@StackedCrooked My operators are for strong typed enums. There's no implicit conversion.
@keithlayne Yeah, but I mean "more complete".
 
@RMartinhoFernandes Ah, C++11 again.
 
Ah, you tricked me by writing the wrong wrong thing. Nice one.
 
7:08 AM
:P
> +1 for silliness. – Benjol 1 min ago
 
It's funny, when people are like "I don't want to create new dependencies on Boost" I'm like "you're a dumbass" but in the back of my mind I have the same thought creeping in sometimes. It's hard to just bang it into my head as a standard extension of the standard library.
 
@keithlayne It's the standard third-party library.
 
yeah
 
7:26 AM
0
A: php check for a valid date, weird date conversions

Pradeep@ martin did you test your function for 2011-11-31? it thinks it is valid date.

 
fuck man
I'm supposed to be travelling home today
but I really need to sleep for a week insted
 
stupid stupid stupid of me to buy food that keeps me up all night
 
School vacation?
 
yeah
I'll just message my parents and tell them that I feel sick and put it off for a day
it's no big deal
 
7:28 AM
lol
 
train station is in walking distance of their home anywayso it's no big deal
 
Speaking of food, it's 7:30. The bakery should be open by now. I'm out.
 
bb
 
 
1 hour later…
sbi
8:32 AM
@RMartinhoFernandes Clutches are a kludges.
@RMartinhoFernandes No, but I had seen it. The guy is still at it, though, posting old C performance arguments in a C++ debate.
@RMartinhoFernandes Why would I kill him? He's @Dead already! (Really, I'm neither Uncle FAQ nor Lounge Daddy. I think having more owners than what fits on the frequently in room tab is silly, but if you feel @Kerrek's been around enough...)
@DeadMG Who is that "he" you're referring to there? Stern Look.
@keithlayne Yeah, the old saying that you need to give them positive attention or they'll make you give them negative attention was something I heard and understood, but still had to learn the hard way.
I'm such a failure. After years of training and badgering, my father still sends directions to a web page instead of pasting a link. #fb
 
"Hey babe, you're really callipygous." Hmm, no, that wouldn't work as a pick up line.
 
sbi
@RMartinhoFernandes No, it wouldn't. Take a hint from an old man:
Do not, not even positively, refer to a female's physical appearance until she expresses uncertainty about her physical appearance. (But remember: Females often express themselves in roundabout ways. So be on your toes.)
Anyway, I was just baffled by the offer to explore "callipygous" in a visual dictionary. Whatever that means.
 
@sbi you retweet a good tweet sir
 
@sbi they probably have pics :-)
 
sbi
@thecoshman As a matter of principle, I only ever retweet good tweets.
@AlfPSteinbach Yeah, that's what I was musing about.
 
sbi
@RMartinhoFernandes Did you get when immage-googling for the word? :)
 
any chance any one can help me work out which kindle to get my SO? Not sure if it is worth forking out extra for the 3G and funny keyboard thing. Other then those two features, what do you really get extra?
 
@sbi First result.
Btw, I never heard the term Lounge Daddy before. That one is even sillier than Uncle FAQ.
 
sbi
@RMartinhoFernandes It's what I felt when I read that.
But seriously, we have 14 room owners now. On that tab of frequent users only 10 users fit. I'm all for keeping it to those. But this isn't my place, so mine's only an opinion, even though it's the opinion of The Grumpy Old Man.
 
14 room owners... that has got be one of the highest room owners to room users ratios ever
 
8:56 AM
There are usually around 30 users in the room.
 
sbi
@thecoshman I'm not sure. We had a lot of users here recently. Often it was >30 at common weekday European afternoons.
 
I've seen 40+.
 
sbi
@RMartinhoFernandes Dang, beat me again.
 
@RMartinhoFernandes TIL a new word :)
 
@sbi ah, but you did it in style :P
secret secret things have been secretly purchased ¬_¬
I like to think this will earn me some serious boyfriend points :D
1
Q: Error when trying to use VBO "array vertex_buffer_object must be disabled to call this method"

thecoshmanEDIT I have effectivley re-wrote this question in order to greatly imrpove its quality - see revision logs if you must I have narrowed down my problem to the initialisation phase of my program, when I am trying to create my vertex buffer. The code that I am currently using is... vaoID = new in...

plug
 
9:06 AM
Oh, you still haven't got an answer to that?
 
@RMartinhoFernandes no :(
 
My graphics card doesn't support VAO, so I haven't read much on them. I don't think I can help yet.
 
@RMartinhoFernandes how old is it?
 
Oh, I was about to ask why were you newing up an array of one int. Then I noticed the Java.
@thecoshman Four or five years I guess.
 
@RMartinhoFernandes yeah ¬_¬ Java makes this soo much fun
I'm stating to think that seeming as I would need to use JNI for openGL anyway... I may as well look at making my engine in C++ and wrapping it for Java
but that would set me even further back
 
9:12 AM
15
A: For what reasons should I choose C# over Java and C++?

Yam MarcovicThe question should be "Which language is better suited for modern, typical application development?". Edit: I addressed some of the comments below. A small remark: consider that when you have a lot of things natively, as idioms, it's a big difference than implementing or downloading and using t...

Added a comment about std::bind if anyone is interested.
 
@thecoshman ShortBuffer.allocate? You can't even use Java arrays to hold your data?
 
@RMartinhoFernandes it's something to do with the way you need to pass the data to openGL
 
In C# you could just open an unsafe block, pin the array, and grab a pointer to it that you couldd then pass on to the C API directly. I guess maybe you can't do it easily in Java.
gl.glBindBuffer(GL4.GL_ARRAY_BUFFER, 0); Won't this set the current buffer to none?
 
@RMartinhoFernandes yeah, but I am doing that after I have done work with the buffer I want bound. When I want to draw with these buffers, I rebind them
 
@FredOverflow added another comment
 
9:25 AM
@thecoshman No, you haven't done all the work! You still have to set the vertex attribute pointer!
> The buffer object binding (GL_ARRAY_BUFFER_BINDING) is saved as generic vertex attribute array state (GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) for index index.
 
@FredOverflow "bind" - it's ridiculous, it can't replace lambda-functions x => x.foo(1), x => o.foo(x)
 
@thecoshman Can you obtain the value of GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING (using glGetVertexAttribiv)?
 
@Abyx You can use lambda functions in C++11 if you want to.
 
@RMartinhoFernandes I think that if I try to set the vertex atrrib whilst the VBO is bound, I get an error... let me just fire up the code
 
@FredOverflow no, C++11 lambdas can't infer argument types, so they can't replace bind
 
9:29 AM
I see. Not an expert on lambda functions here.
 
@DeadMG "For example, IEnumerable isn't IDisposable, so if you want to enumerate something that needs disposing, you're fucked." You now that foreach calls Dispose() if the enumerator you're enumerating is actually IDisposable also?
So, you're not fucked if you need to enumerate something that needs disposing. You get it done for free.
 
What? Every time I foreach over something that is IDisposable, it always gets disposed? That doesn't sound right.
 
@FredOverflow Ooops. Slight term confusion.
 
@Abyx But the C# syntax of lambda functions is sooo nice, I'm a bit envious here ;)
 
@RMartinhoFernandes yeah, trying to set the vertex atrib whilst the VBO is bound course an error. How do I get this value?
 
9:33 AM
@thecoshman In C it would be glGetVertexAttribiv(0, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, &result);. You'll have to do the Java-ification yourself :)
 
@Abyx What is the type of x => x.foo(1) in C#? Does it depend on the context it is used in? Or is it some "incomplete" type or something?
 
Do that after setting the attrib pointer.
 
@FredOverflow it uses context to infer type of x, the actual type is delegate
 
@FredOverflow typeof(x => x.foo(1)) does not compile. It needs clues for deduction.
 
Okay so what if I pass x => x.foo(1) to an overloaded function? Compiler error?
 
9:34 AM
If it has two overloads with compatible delegate types, yes.
 
@FredOverflow then you should use (int x) => x.foo(1)
 
I really need to learn C# someday. Why do I keep putting it off? :(
 
No, wait, that can actually be made compilable.
 
Does int have member functions? Can I extend int with extension methods?
 
@FredOverflow Yes, I forgot that for a moment :)
static class xxx { public static void foo(this int x) {} }
 
9:38 AM
You really can? How awesome is that?
 
Super awesome.
 
Let's design a language that combines the advantages of C++ and C# and call it ++C# or something.
 
@RMartinhoFernandes what sort of value are you expecting from this function? might help me Javaise it
as in, what data type is result
 
Ah, lemme see.
@thecoshman GLint.
 
so just a single int... well then... stupid bindings...
 
9:42 AM
It tells you what vertex buffer is the attribute array bound to. I suspect it will give you 0, while it should give you what you have in vboID[0].
 
sbi
Damn, a mod locked my answer on PSE now. So I can't get any votes on it anymore. :(
 
@RMartinhoFernandes yeah, 0 seems to be what it is giving me
 
See, you can't call glBindBuffer there.
Now, do you have to call glEnableVertexAttribArray?
AFAIK that should be enabled when rendering.
 
> Inheritance is wrong in every way imaginable.
 
9:46 AM
// gl.glEnableVertexAttribArray(0);
gl.glVertexAttribPointer(0, 4, GL.GL_FLOAT, false, 0, null);
 
Hehe, @DeadMG has become hardcore. Stepanov-hardcore :)
 
that compiles and runs with out exception, so I guess that is not needed
 
Did you remove the glBindBuffer that binds 0 too?
 
not the first time, but I did so and it crashes with the same error array vertex_buffer_object must be disabled to call this method
 
9:49 AM
yeah, my thoughts exactly
 
sbi
@thecosh that is funny:
☑ Kim Jong Il ☑ Khaddafi ☑ Osama Bin Laden ☑ Saddam Hussein ☐ Internet Explorer
:)
 
@sbi it's funny when the text displays properly ¬_¬
 
sbi
@thecoshman ??
It displays fine here.
 
well, for me, rather then ticks, I am getting empty boxes... and rather then an empty box, I get "
strange... when I copy and paste in the typing box... it displays just fine ¬_¬
 
sbi
@thecoshman What do you display Twitter with?
 
9:53 AM
@sbi twitter... and it works fine there
very strange...
 
sbi
@thecoshman Your browser? Mhmm.
 
☑ = tick...
☐ = no tick...
well... very strange...
 
> Note: Changing the GL_ARRAY_BUFFER binding does not affect VAO state. This is different from the GL_ELEMENT_ARRAY_BUFFER binding, which is directly part of VAO state. It is only when calling one of these two functions that the GL_ARRAY_BUFFER binding matters to the VAO.
 
> ☑ = tick...
> ☐ = no tick...
 
I think that Java crap API is playing tricks on you.
 
sbi
9:55 AM
 
@RMartinhoFernandes ¬_¬ I think I will look for updates to the library... it's doing fairly regular releases as it updates
@sbi yeah... works for me ¬_¬
very strange
 

« first day (429 days earlier)      last day (4524 days later) »