« first day (1607 days earlier)      last day (3341 days later) » 

Xeo
1:02 PM
@AlexM. JoJo, manga of fabulous poses.
 
I don't know what's happening on this picture
2anime4me
 
Xeo
Just Dio crossing the street
 
26
Q: Javascript negative number

ÁdámI want to check if a number is negative. I'm searching for the easiest way, so a predefined javascript function would be the best but I didn't found yet anything, here is what I have so far but I don't think that this is a good way: function negative(number) { if (number.match(/^-\d+$...

This is one of those "you shouldn't be a programmer" moments
 
@Xeo I finished nekopara btw, it's my first 100% achievements game on steam
I'm going to call my next game with dogs "inupara" in memory of that
 
@BartekBanachewicz I suggest Pantera
 
1:11 PM
@CatPlusPlus That is one of those "you are being trolled" moments, I think
 
Incompetence is more likely
 
lol 31 upvotes
 
Also being unfunny is even worse
 
@BartekBanachewicz Did you lower the OpenGL version?
 
is Javascript so bad that several Javascript programmers are incapable of immediately classifying this question as dumb?
 
1:14 PM
Yes
 
They are playing along
 
@CatPlusPlus wtf
 
or was it upvoted and favorited (by 18 people) because it's really fun trolling?
 
"fun"
 
@Jefffrey not yet. This was just the improvement I already made before + quick fix from kbok
I'm just too swamped and tired to finish the implementation of the backends
 
1:15 PM
@CatPlusPlus well, assuming they found it funny for some reason
 
minus one not enough jquery. — Alex M. just now
 
I don't see a better motivation for upvoting that question
 
I have to tweak shaders and pipelines and ensure this thing won't collaps
 
snack overflow
 
also I blame cat for everything
 
1:16 PM
lol at the answer, too
2 appendices
 
because I got it to work with existentials but now I have a codebase with existentials
which can be arguably seen as worse than not working at all :P
 
> Because JavaScript is such a small language, yet with incredible complexity, you should be able to ask relatively basic questions and find out if they are really that good based on their answers.
you wouldn't believe how complex JS is
 
@AlexM. dat reference
 
¬_¬ this was used to test me... IMO it's not a question for SO, so should stay closed.
 
@ParkYoung-Bae People that cannot handle even email well want to do foreign policies and diplomacy? :)
 
1:23 PM
apparently
 
@thecoshman definitely not a question for SO, it's a bug report.
 
@Borgleader yeah, voted off-topic
 
I don't know much about the topic, but it does seem a legitimate question to me
We often ask questions when we encounter a compiler bug and need to work around it
 
(or get a confirmation that it is indeed a bug)
 
1:27 PM
@AndyProwl it's asking about VirtualBox though, it's a question for serverfault or super user
it's not a programming thing at all
 
oh
I see
yeah you're right
 
> Unable to access this site due to the profanity in the URL? goshdarnblocksyntax.com is a more work-friendly mirror.
 
1:42 PM
From the 3.6 release notes: "Clang can now self-host using the msvc environment on x86 and x64 Windows. This means that Microsoft C++ ABI is more or less feature-complete, minus exception support." ._.
 
oh well who needs exception support anyway
 
I've seen some review request that implemented them (for HEAD, obviously, not the 3.6 branch :P), can't find it right now, though.
 
the 3.7 notes say "minimal" support for exceptions, rethrowing yes, throwing no
 
I'd link to it if I was at home :P
 
should I use std::basic_string<uint32_t> if I'm using UTF-32 internally?
 
1:50 PM
char32_t exists, you know.
 
@Griwes maybe he doesn't
 
didn't know
std::u32string it is then
 
@melak47 trunk has full exception support AFAIK
 
I'm actually tempted to keep a clear distinction in my program, and use std::basic_string<uint8_t> for raw input/output, and std::basic_string<uint32_t> to hold UTF-32 string data for internal processing, and doing all conversion to raw <-> string as to/from UTF-8
 
uint8_t rarely is what you want.
(Usually you actually want either char or unsigned char, really.)
 
2:04 PM
no? I want binary data in octets
I get my input and do my output in UTF-8 - octets
uint8_t seems perfect for that
 
@Mgetz rly? :D
 
@orlp except for it being unsigned char? :)
 
things I don't understand, part 426: "how the hell did this code ever appear to work correctly? "
 
@melak47 it was on hacker news recently
 
@Mgetz neat, guess I'm gonna try building clang sometime :)
 
> Herbert Schildt is the world's leading programming author. He is an expert on the C and C++ languages and Windows programming
> Other reviewers have been more positive, with one ACCU reviewer saying about Schildt's C: The Complete Reference, Fourth Edition that Schildt "has learnt something, not enough to receive positive acclaim but enough to remove the 'positively detrimental' epithet".
hahaa
gg
 
> And the 2-megapixel front camera is made for selfies.
god
 
2:31 PM
What else would it be for?
 
@R.MartinhoFernandes video calls?
 
People use those?
 
@BartekBanachewicz Bandwidth is expensive around these parts.
 
Xeo
@BartekBanachewicz That's just a bunch of selfies in quick succession!
 
@R.MartinhoFernandes yeah?
@EtiennedeMartel there's the thing called wifi
by video calls i also meant skype or hangouts
 
2:36 PM
lol video calls
on a phone
what are you, George Jetson?
actually, regardless of the physical device used, I can't stand video chats. Can't stand them.
 
@R.MartinhoFernandes the 70's have to come true at some stage... Shirley
 
@LightnessRacesinOrbit have you tried sitting down
 
@BartekBanachewicz hmm i'll give it a go
 
@BartekBanachewicz ¬_¬ apparently it hasn't tried shutting up
 
@Mgetz thanks
 
2:48 PM
who's up for a warmup someday before the jam
 
Id like a colddown
Also -1 for video calls
 
0
Q: Multitask-Process in C++ with Windows Form and Winsock

ChristophI have to write a program which includes communication using TCP/IP and which is controlable through a Windows form. Therefore i have written a multithread-program using "pthread.h". The one thread is for windows-form, the other for the winsock-stuff. int main(int argc, char* argv[]) { ...

bad ideas seem to rampant lately
pthreads and CLR in the same app
 
Oh it's C++/CLI
Then yeah dumb
 
3:01 PM
@BartekBanachewicz isn't that like just another jam
 
@LightnessRacesinOrbit for me jams are about people doing things at the same time, the whole atmosphere
doing things alone is much less fun, but I'm crazy enough I like to do it anyway
 
ahhhh this is still pissing me off
no wait just figured it out
maybe
I wanna make something like a bandwidth usage plot, but instead somehow plot the number of "actions" taking place each second. each action takes some amount of time that may be substantially lower than 1s or higher than 1s.
and I can't decide whether to plot Number Actions Started per second, Number Actions Ended per second, Max Actions Under Execution during each second, or what
 
E. S. Posthumus is cool
 
yes indeed
used to love playing CS 1.6 with that in the bg
Maybe I could average Number Actions Started per second and Number Actions Ended per second and continually apply that as an increment/decrement to each previous plot point
well, not even average I guess. just aggregate
but then if I have 10 actions all start and end within a single 1s window then they wouldn't show up at all
ffs
asdgasdgailushdfasdfa this is so pissing me off
what would you do
 
3:22 PM
> taking place each second
for actions that started before and ended after, add +1 to the bar. For short actions, add +1 or a smaller amount
 
but then if an action takes, say 2.5 seconds (so two bars) isn't that indistinguishable from two actions that took <1 second each?
I guess it's the number of actions taking place that I'm interested in before than their duration
but if an action started that doesn't mean it'll end (it could fail)
 
@LightnessRacesinOrbit do you care? (Also "or a smaller amount")
 
and if an action ended then it could have started ages ago (theoretically) so +1'ing a bar at 00:00:50 is misrepresentative of the fact that all the associated preparation and message dispatch actually took place at, say, 00:00:20
 
this needs more example diagrams
 
I can't think of any diagrams :(
until I know what I'm trying to do
I wonder whether the core problem is melding frequency with duration
 
3:27 PM
@LightnessRacesinOrbit that helps yes
 
FUCK YOU MICROSOFT FUCK YOU SO MUCH ARGH
 
huh maybe if I just round start times down and round end times up (both to the nearest second) and do a strict count, that'll be sufficient
blah no again - during execution nothing's really happening that i want to measure and it'll look like x more actions started
do you see how i'm confusing myself at least
Perhaps one graph which has a started per second plot and an overlain ended per second plot
Then another graph altogether, showing total count of actions under execution (rounded) in each second. i don't know what i'd call that one
 
Interesting how any message that's essentially in the form "<Expletive> Microsoft" instantly gets starred.
6
 
-3
Q: The differences between if else and #if #else #endif in c++

XingchenQ: I am confused about the if else and #if #else #endif.It seems that they have the same logic functionality. Can I ask what's the differences between them? What kind of specific situations for me to choose each of them? Thanks. :)

 
@EtiennedeMartel It's not an expletive, though.
If you remove it, the sentence is no more.
 
3:43 PM
@R.MartinhoFernandes I'd argue that "fuck you" fits the definition pretty well.
 
@EtiennedeMartel Not in "fuck you Microsoft".
 
Right.
"Microsoft so much argh" doesn't pack the same punch.
 
suggested an improvement to our Lua API at work
> can't see it on my roadmap
> meh no use
> deadlinedeadline
sigh
 
@BartekBanachewicz Sacrificing stuff on the Altar of Deadlines is pretty common.
 
@R.MartinhoFernandes YOU MICROSOFT YOU SO MUCH ARGH
 
3:46 PM
lol
 
@EtiennedeMartel too bad that a) there are always some deadlines b) no one really cares
 
actions plot #1:
  - line: actions started per second
  - line: actions ended per second
actions plot #2:
  - stacked area: instant scheduled vs due vs executing
that's reasonable I think
 
user1804599
Hehehe.
 
user1804599
Awesome.
 
user1804599
What do you do if you want to like, not commit in Git but you do want to continue working on a different computer?
 
user1804599
3:52 PM
@R.MartinhoFernandes Don't worry, I'd love to take that job.
 
user1804599
Perl is awesome.
 
user1804599
Meh, I'll put a diff in a gist and patch it on the other computer.
 
@райтфолд Commit
 
@BartekBanachewicz if you want improvements, you just have to slip them in yourself
 
user1804599
3:59 PM
@CatPlusPlus Contradiction detected.
 
@райтфолд you can commit to some side branch, push/pull taht across then merge it in.
If you keep that commit to yourself, it'll be grand
 
user1804599
hmm
 
user1804599
synchronized or volatile
 
Commit commit commit
Commit always commit everything
 
@райтфолд don't be bad
@CatPlusPlus everything?
 
4:01 PM
HALP
 
user1804599
Fuck it, synchronized it is.
 
@райтфолд oh, one solution is to work on something else
 
user1804599
How does synchronized work in Java? Does it use like a global hash table of (object, mutex) pairs?
 
user1804599
Since last time I checked object overhead is only a vptr.
 
no idea :P
it just sort of does
 
4:09 PM
lol dat camo
took me ~30 seconds to spot
 
heh, not bad
 
lol found this
if (!result)
{
	return false;
}
return result;
6
lovely
 
that is so bad
 
@AlexM. lol this shit always upsets me
cause I never find the hidden object
 
it's easier full-sized
 
4:15 PM
yep
 
@TheForestAndTheTrees like, if you follow the link?
 
@AndyProwl it's a bit more than an object though
try to zoom in on the tab when you open the image
it helps
 
I guess it's some kind of animal?
 
-spoiler-
-spoiler-
 
lolwat
 
4:17 PM
see history for spoiler
 
I don't see anything
 
is he wearing a hat or something?
 
his weapon gave it away for me
 
the rifle still looks like a stick to me
 
4:19 PM
you can see the rifle scope near the hat you mentioned
 
yeah
 
jesus christ andy, were you a soldier there you'd be dead a hundred times by now!
 
totally
I'd probably walk around him without noticing him
in fact I still look at the picture and don't recognize it as a human with a rifle
 
it's like, a thing with a stick
 
4:21 PM
@AlexM. waiting for Bartek to claim that this is good idiomatic code in some obscure language
 
also dat indentation
 
@LightnessRacesinOrbit hmpfh
said someone who claims "FP code is unreadable"
it's funny because in FP code you can just assume every function starts with a return
 
I'm laffin
 
I'm muffin
 
I'm pizza
 
4:31 PM
Pleased to eat you, pizza
 
> How Well Do You Remember The Lyrics To “Sk8er Boi”?
 
I don't know the song
 
I remember the lyrics to soulja boy
 
@AndyProwl are you one of those people that were never a teenager
 
crank dat
 
4:33 PM
I suppose you're not one the people like me who never ceased being one
 
@BartekBanachewicz I've been one yes, but mostly not when I was in my teen age
 
I so don't like it when people take params by ref and modify them
like there's this crap that modifies a char array solely to do what std::replace does
 
Also I'm afraid when I was a teenager Avril Lavigne was a toddler
 
@AlexM. ~ Ƹ̵̡Ӝ̵̨̄Ʒ ~ fuck ~ Ƹ̵̡Ӝ̵̨̄Ʒ ~ mutability ~ Ƹ̵̡Ӝ̵̨̄Ʒ ~
 
4:36 PM
and I want to get rid of it
 
hm, age 30
 
@BartekBanachewicz huh that's been going around today
 
she's actually older than I thought
 
@BartekBanachewicz oh, this post is what i was remembering
lol nm
 
@BartekBanachewicz is that a butterfly
 
4:36 PM
yes
 
@AndyProwl yeah man she was "grown up" a decade ago when her songs were old
 
@AndyProwl NO
@AndyProwl NEVER
 
@BartekBanachewicz Don't butterflies mutate a lot during development?
 
@BartekBanachewicz GOOGLE TOLD ME
 
user3010322
> /* Evaluation */
Score: 100
Comments: You should use only the only the knowledge we have discussed so far in the class. That was the main challenge.
 
user3010322
4:38 PM
Well, glad he didn't take any points off for that.
 
what did you do
used C++ on C test again
 
what's that word
 
user3010322
typedef struct string_ {
	char data[2048];
	ptrdiff_t size;
} string;
 
when you're trying to do too much
 
user3010322
We never covered structs.
 
4:38 PM
ambitious
thanks
 
@ThePhD fucking.
 
"Waste of effort"
Also that goddamn ptrdiff_t
 
anyway why is that char data[2048] not char* data
 
user3010322
ptrdiff_t ♥
 
also yes should be size_t
 
user3010322
4:39 PM
@BartekBanachewicz We didn't cover malloc.
 
ptrdiff_t is semantically wrong imho
 
Just int will do
Fuck unsigned
 
@ThePhD neither structs but you used them
 
user3010322
@BartekBanachewicz It was a 1 hour exam, I was pressed for time!
 
Also it should be struct { int size; char data[0]; } actually
 
4:40 PM
@CatPlusPlus why 0 now
 
@CatPlusPlus Not necessarily, depending on what functions act on that 'string' struct.
 
Why is the typedef necessary?
 
@ThePhD newb
@AndyProwl it's C
 
user3010322
@AndyProwl Old C rules.
 
@BartekBanachewicz Flexible last member
 
4:40 PM
@BartekBanachewicz I got that, but I don't know C so I'm wondering why is the typedef necessary
 
You do malloc(that_struct, sizeof(int) + data_size) instead of indirecting twice
 
Yeah - should have the data last, so can be malloced to any size.
 
user3010322
Writes this down
 
user3010322
This'll come in handy for exam 2.
 
@AndyProwl Structs are in a different namespace
 
user3010322
4:41 PM
Hopefully by then we'll have malloc under our belts.
 
If you just do struct x { }; then you later need to refer to it as struct x, not just x
 
oh
got it, thanks
 
user3010322
@CatPlusPlus I've been bitten by that in some poorly engineered libraries.
 
user3010322
Like libev
 
@ThePhD malloc always makes me think of the sound frogs make
 
4:42 PM
lol libev is not poorly engineered
 
mmmmalloc
 
user3010322
@CatPlusPlus It's user interface is.
 
user3010322
struct struct struct all over the place.
 
@AlexM. Romanian frogs are weird
 
Not really, no
 
user3010322
4:43 PM
All they would have to do to make the syntax cleaner is just do the typedef struct {} blah; way.
 
@CatPlusPlus mmm
didn't know about that one
 
@BartekBanachewicz um why not
 
Actually it should be [] not [0] in C99
And [1] in C89
 
I have a strange urge to go out to the pond at the top of the field, though I suspect there will be no frogs for a couple months. I gotta try the Romainian frog-call!
 
it might work if they're using C
 
4:50 PM
@CatPlusPlus k
 
@AlexM. All the animals round here are particularly stupid, so I'm in with a chance.
 
@LightnessRacesinOrbit Just Merlin, across the road in shed.
Why? Is there a lib call for goats?
 
I got rid of the char* thing, feelsgoodman.jpg
it was this while loop changing characters if they met a condition
the most superfluous shit I've seen
 

« first day (1607 days earlier)      last day (3341 days later) »