« first day (1298 days earlier)      last day (3664 days later) » 

12:19 AM
:3
 
1:14 AM
ya I remember people touting macs back in the win 3.1 days. windows would crash constantly and macs were clearly better then
@StackedCrooked probably due to ccNUMA overhead?
 
TIL about ccNUMA.
:P
Numa I've heard of though.
 
ya, cc = "cache coherent"
 
But yeah, I think it's related to cache coherency.
Which I think is expensive due to physical distance between CPUs.
However, I don't know if synchronization always requires a lock on all CPUs.
 
Anyone here use Qt? Need some help with HTTP authentication.
 
1:36 AM
@МикроПингвин I use qt. You mean as a client?
 
@doug65536 Yes, I'm trying to download the source of the page behind the login page. Using QNetworkAccessManager get() and post()
drat, dinner time..
 
@МикроПингвин have you read this
 
@StackedCrooked Without NUMA, cache coherency is normally maintained with a four-state protocol (MESI--Modified, Exclusive, Shared, Invalid). ccNUMA typically adds a fifth state (usually called "Owned") to indicate that a piece of data is owned by a particular CPU. Expense depends. It does require quite a low-latency link between the CPUs.
 
Does four-state protocol without ccNUMA require this link?
 
@StackedCrooked depends, intel's L1 and L2 caches are write-through, so only L3 is snooped. AMD has exclusive caches so all caches must be snooped
on intel, if something is in L1 or L2, it is guaranteed to be in L3, so no need to lookup in L1 and L2
so I guess yes. AMD uses MOESI (O=owned)
 
1:56 AM
@StackedCrooked Yes, they all require some sort of low-latency link to maintain cache coherency. Exclusive vs. inclusive cache doesn't really matter a lot here. From a viewpoint of cache coherence between processors, you just look at a processor as a whole. You ask it about a particular address, and either tells you the data isn't present, or else what state it's in.
Exclusive vs. inclusive caching governs how the processor handles snooping internally, but not really how it looks to the outside world.
@StackedCrooked Sorry, rereading, I think my previous answer was sort of misleading. With only four states, you'd have one of three choices: either ccNUMA would be pretty inefficient, or you'd need an even faster inter-processor link, or else you'd have to add some glue logic to (basically) add the fifth state.
The Owned state basically keeps track of which processor gets updated when some data is dirty and needs to be flushed. Without something to say which one owns it, you'd basically have to flush all dirty data to all processors instead of just the owner.
 
2:17 AM
aha
I'll need some further reading.
But thanks for the initiation :)
 
2:37 AM
Apparently 2 hard to include the library, I am directly copying the source code into the project ~_~
and only the bit that I need ...
It is a great thing that Android is open source :p
 
2:53 AM
@doug65536 Yes, I have. I keep getting redirected to the login page, instead of the page I'm requesting.
 
3:09 AM
yo wondering can anybody help me with opengl for a sec
just wondering how to make it so something happens as long as a button is held down
im trying to make an object move and it moves but only for every time the button is pressed but i want the button to be held
 
3:28 AM
@doug65536 I've used the site Hurl.it to trace the redirects and I believe I need to use cookies.
 
3:47 AM
anyone do anything in bluetooth on win32/64?
 
5:05 AM
Belgian judge suspected of corruption (the real deal). Kinda surprised that this still happens in the Western world.
I must be naive.
A lawyer paid her to judge in his favor. Multiple times.
 
@StackedCrooked I'm not all that surprised at its happening, I guess. Somewhat more so that they'd be stupid enough about it to get caught.
 
yeah
@R.MartinhoFernandes There is this hack to increase Coliru timeout to 60 seconds.
curl http://stacked-crooked.com/timeout -d 60
Post request to /timeout with 60 as payload data.
It resets to 20 seconds after first compilation that follows.
So you have to be quick or someone else gets it.
 
5:21 AM
in opengl how can i detect if the shift button is pressed?
 
If you get all caps when you type.
 
Xeo
whee
 
@AndyOHart OpenGL doesn't have anything to do with the keyboard, so it'll depend on what library/API you use.
 
glut sorry
 
5:30 AM
@AndyOHart For using glut? Yes, you should be sorry. It's a sorry POS too...
 
yeah so i hear ha unfortunately have to use it for an assignment
 
@AndyOHart Change schools.
 
ha i don't think its worth doing since i just finished my last semester
 
@AndyOHart If you just finished, why are you still doing assignments?
 
2 week study period before exams
have final assignment ha
 
5:34 AM
@AndyOHart In that case, yes, re-starting school from the beginning is better than using glut. :-)
 
ha ha so i take it glut is really that bad then
 
@AndyOHart It's badly specified, buggy, and hasn't been updated in something like 15 years so the chances of any of its bugs ever being fixed are essentially nil.
 
worst vacation - study vacation, the week before the final exams
although it is perfect for last minute crammers like myself
 
To answer you question directly, @StackedCrooked was pretty much right. You register a keyboard handler. When it's called, you get no direct indicator of modifiers like alt, control, or shift keys. You just get a keycode, and it's up to you to react to capital A vs a vs control-A, etc.
 
IIRC flipper games use left-shift and right-shift to control the flippers.
How does that work then? :)
 
5:40 AM
ohhh okay i see
 
Oh, I suppose that's just a key-down event.
Which is not the same as checking if shift is held.
 
Xeo
Normally, you get a 'key down' event with the keycode 'NN', and if that keycode translates to 'shift', then you have shift pressed.
Such engines also normally have a long list of predefined keys
 
i basically wanted to detect if shift is being held down and the mouse wheel gets moved up or down
 
@StackedCrooked By using something other than glut. Almost anything else will work. Glut...not so much.
 
Ah, I was just thinking in terms of WinAPI.
 
5:43 AM
@AndyOHart Glut is old enough I don't believe it has any direct support for the mouse wheel.
 
ah it does im using it for 1 part of it
 
Xeo
Jerry not being sarcastic is scary.
 
@StackedCrooked In that case it's trivial.
@Xeo I'm never sarcastic!
 
It's 4 years or so since I last used the WinAPI. But I certainly still have key-handling code laying around somewhere.
 
Okay, I'll admit: that wasn't exactly sarcasm, only irony.
Just keep in mind keyboard input is completely different for windowed vs. console applications (and you can do OpenGL from either one).
 
5:47 AM
I have this
GLfloat lightColor [] = {1.0, 0.6, 0.6, 1.0f};
GLfloat lightColorDefault [] = {1.0, 0.6, 0.6, 1.0f};
and i want to say
lightColor = lightColorDefault
but i get this error
incompatible types when assigning to type ‘GLfloat[4]’ from type ‘GLfloat *’
any ideas
 
Arrays are not assignable. One possible alternative would be std::vector.
std::vector<GLfloat> lightColor {1.0f, 0.6f, 0.6f, 1.0f};
std::vector<GLfloat> lightColorDefault {1.0f, 0.6f, 0.6f, 1.0f };
lightColor = lightColorDefault;
 
any idea what the C equivalent of that is
 
The C equivalent is committing Seppuku.
 
I don't think it is man
 
Sure it is.
 
5:54 AM
@AndyOHart Okay--Seppuku is just the preferable alternative to C. But if you insist, you could write a loop to copy elements from lightColorDefault to lightColor, or you could use memcpy. But trust me, Seppuku is about the same pain level as C, but much quicker.
 
user1899861
Andy, you want to assign lightColorDefault to lightColor?
 
@JerryCoffin haha yeah that does sound like more effort fuck it
@RocketRoy yeah i'm holding different light colours and want to change the colours on a button press so storing different arrays and want to store the default light color
 
user1899861
if so, just use memcpy(), trivial, and no need to make a fool of yourself with your ignorance and arrogance.
 
user1899861
...like "SOME" here.
 
user1899861
memcpy(lightColor, lightColorDefault, sizeof(lightColor));
 
6:00 AM
Yeah okay, let's not start calling names here.
 
lmao.
 
Somewhere deep inside, I'm probably crying right now. Or maybe I'm too ignorant and arrogant to realize I've been insulted. Yeah, that's probably it.
 
Xeo
@Mysticial Something like that happened before.
 
@Xeo Wait. When?
 
Xeo
Where everybody and their dog Puppy would ping me until I got home.
 
6:07 AM
I don't remember.
 
Xeo
Because of a conversation context I wanted to access at home
I asked one person to ping me
 
oh that instance.
I remember that.
It was great.
 
Xeo
so yeah
 
Mar 12 '13 at 17:23, by Xeo
Uhm. Guys.
 
@RocketRoy yeah good man your the king of stack overflow, what you said worked great.
 
6:11 AM
I used to want to write the best code in the universe, nowadays I just want to find the best code to copy from
 
Xeo
@Mysticial Taught me not to try that again.
I should've just manually looked through the transcript
 
I have finally reached the enlightment stage when I get to ask myself the question "why reinvent the wheels"?
 
Xeo
haha
 
So nowadays my strategy is to get the wheel and make it work, then find out what needs improvement
 
6:19 AM
It's all right to reinvent wheels--as long as you ensure they're rounder than the old ones.
 
Xeo
@Mysticial Maybe I should hang out in there sometime
 
:)
 
Xeo
Though I find having 2 chats open enough to keep me occupied at work :P
 
@JerryCoffin that's why I don't reinvent the wheels - because I am sure many people have tried to invent the roundest wheel, so it only makes sense for me to find that roundest wheel - for it to fit on that experimental time machine of mine >_<
 
Me, I like wheel building. Used to be quite good at it, AAMOF. Oh wait, you're probably not talking about lacing up spoked bicycle wheels...
 
6:29 AM
@Mysticial lol, php comment
 
Well, I think I need to go sleep. Later.
 
@JerryCoffin good night
meh
 
Xeo
Btw @Mysticial, have you per chance watched Robot Girls Z (RGZ)?
 
@Xeo nope
I'm guessing that should go on my to-watch list?
 
Xeo
6:40 AM
It's 3 episodes
So yeah
It's a fun and silly homage to Mazinger Z with girls as mahou shoujos in the style of the Mazinger-Robots
Something about the 50th anniversary or so.
I found it really good (read: fun) even though I know nothing of Mazinger Z
 
@Xeo I read that you need to watch at least 3 episodes before deciding to drop a series or not.
I'll let you know if I dropped it or not :)
 
Xeo
haha
@StackedCrooked I usually watch what sounds interesting from the story description, and if anything else is good, I find out pretty soon through the other chat I'm in
Hasn't really happened yet that I started something only to drop it later.
I only forget to finish some series (mostly because I read the manga anyways) :)
 
If I watch too many series at once then I often forget to finish a couple of them.
The only manga I read are Fruits Basket and Nana. (Mostly because those were the only ones in the local store I visited a few years ago.)
They were actually translated in Dutch.
 
Xeo
Read Elfen Lied! :P
 
enqueued
Oh, I actually also read Yokohama Kaidashi Kikō.
But that's about it :P
 
Xeo
6:49 AM
welp, off to work
 
user1804599
7:26 AM
@StackedCrooked why?
 
@rightfold I don't understand the first statement inside __libc_start_main.
 
user1804599
> [RTLD_NEXT] will find the next occurrence of a function in the search order after the current library.
 
The left hand side of the assignment is what I don't get.
 
user1804599
dlsym looks up a symbol by name and returns a pointer to it.
 
user1804599
In this case it returns a pointer to the original __libc_start_main.
 
7:33 AM
So next is a function pointer being assigned.
 
user1804599
Yes.
 
user1804599
Then all arguments are forwarded except argc is first modified to include the password.
 
But the function pointer declaration syntax uses named arguments.
 
user1804599
C has no type inference, hence the unreadable code.
 
int (*next)(int (*main) (int, char * *, char * *), ...)
I would expect: int (* next)(int ( * ) (int, char * *, char * *), ...)
 
user1804599
7:35 AM
@StackedCrooked That's perfectly possible.
 
user1804599
The names are just ignored.
 
user1804599
 
If there is an ugliest pet competition, let me know
 
@R.MartinhoFernandes ok, that's cool. Why is the template version so much slower in your case? I consistently had it be faster than everything else :-/ Oh well, I hope it's not nasal demons :-P
@JerryCoffin "trust me"... Do you have machinal intestines?
 
7:55 AM
std::function always requires malloc. I thought SBO would kick in for small sizes.
 
user1804599
[dialog.find('.submit')~click, dialog.find('label')~dblclick]
|> each (<| !-> ...) /* gotta love sections :3 */
 
8:11 AM
> Another approach we tried in windows was using the fact that the jars get locked when classes are loaded. Run the application and try to delete from runtime area. If it was used, delete should fail. Not sure how safe this is- I know that it does not work on linux etc, the files can be deleted without problem
Much controlled. Such wow.
@StackedCrooked dat -Wl,-soname -- does that serve a purpose?
 
@sehe I copy pasted that from some so post on how to override malloc. (In hindsight, I should have just overloaded operator new).
 
or just use strace
 
malloc is not a system call is it?
strace doesn't show the allocs (after the initial mmap etc)
or is that just stderr and stdout not being in sync...?
nah, mallocs aren't shown by strace
 
user1804599
@StackedCrooked No.
 
user1804599
OS X implements it in terms of mmap.
 
user1804599
8:24 AM
Dunno about Linux and inferior operating systems.
 
@rightfold All operating systems are inferior. No exceptions.
 
@rightfold Linux tries to be mostly POSIX compliant.
 
user1804599
I would be surprised if POSIX dictates how malloc must be implemented.
 
mmap is a posix call
I think mmap is an essential ingredient here.
 
user1804599
Unless the OS provides another non-standard system call for allocating memory.
 
Xeo
8:33 AM
@StackedCrooked Isn't that usually implemented in terms of brk?
 
user1804599
8:49 AM
_.once is nice.
 
user1804599
Kind of memoization special case for zero-argument functions.
 
Xeo
Does it call the function on the call to once or on the first call to the returned function?
i.e., is it lazy
if it's not lazy, that would be pretty simple to implement
 
user1804599
_.once = function(f) {
    var flag = false, result = undefined;
    return function() { return flag ? result : flag = true, result = f(); };
};
 
user1804599
This is a possible implementation.
 
Can you please obfuscate it more?
 
user1804599
9:06 AM
Wait huh.
 
user1804599
Oh, LiveScript's scoping is different from JavaScript's. Oops.
 
user1804599
It's more like Python's.
 
@R.MartinhoFernandes did you have some knowledge about fast std::fabs implementations? stackoverflow.com/q/23490339/85371
@StackedCrooked ltrace
@Griwes cough GNU/Hurd cough
 
lol
GNU/High Und Really Drunk?
 
I think so
 
9:14 AM
Last time some folks in #osdev tried it, Firefox generally murdered it. It was several months ago, but I doubt that with their current coding pace anything changed since then.
 
@StackedCrooked SBO should kick in. Maybe libstdc++ doesn't implement SBO?
 
9:37 AM
maybe Hurd is like Minix: an acadamic toy OS
Nothing wrong with that
 
What a coincidence. Just yesterday I did some timings on various abs implementations on my box: manwe.flamingdangerzone.com:9999/abs.htmlR. Martinho Fernandes 3 mins ago
 
Thanks! Synergy: through da roofs
 
port 9999, I see
 
How. Very. Observant.
 
Xeo
@DeadMG Refcounted implementation
 
9:46 AM
"When i intervals for a few time to visit it again" - I have no idea what that means — sehe 7 secs ago
 
Morning.
 
Moanings
 
@rightfold, that was an enlightening talk.
 
@Xeo Not sure if that's legal.
 
where
what
 
9:53 AM
Architecture: The lost years.
3
 
The one with the hyperactive monad beer lover?
@Jefffrey Uncle Bob?
 
Yup.
 
Xeo
@DeadMG It was in C++03, not in C++11. libstdc++ hasn't updated std::string to C++11 (yet, IIRC)
ABI compatibility etc
 
I can't seem to find the book he talks about, online.
 
@Xeo std::function has no ABI compatibility issues.
 
9:54 AM
I may order it.
 
user1804599
It's extremely abstract.
 
@BartekBanachewicz it's textbook "language barrier"-ception to me. I usually give people a chance to clarify before ban-hammering — sehe 12 secs ago
 
user1804599
I don't know whether you like that at all.
 
Xeo
Oh wait, std::function, not std::string
 
9:55 AM
@rightfold "A Use Case Driven Approach" -- Didn't seem abstract :c
 
user1804599
It is most abstract.
 
I see.
Nevermind.
 
10:14 AM
FWIW I edited his question to a more edible form.
Doesn't change the fact it's not a particularly good question.
also hi.
 
@Cat: builds don't see to be triggering on the CI server.
 
@BartekBanachewicz hi
 
YouTrack integration is cool, though.
Pity GitHub doesn't do that.
 
@JohanLarsson clever :)
 
10:26 AM
yeah it was a douche way to dump it
 
I have a question that sits on +2 and 0 answers :(
I've even bountied it, but still no movement around
fuck people upboating shit into oblivion
 
what language?
 
user1804599
jQuery sucks.
 
@JohanLarsson ACNE-script
that looks better
 
jQuery ftw, it's the only true way to add numbers
 
10:33 AM
@BartekBanachewicz ok the only advice I can give for JS is: Run.
 
user1804599
@BartekBanachewicz HippopotomonstrosesquipedaliophobiaScript.
 
user1804599
Because Java makes hippopotomonstrosesquipedaliophobes quake in fear.
 
@JohanLarsson So you suggest I run my code? ;)
 
run it through a format X:?
 
10:52 AM
eloh
 
Hey there!
Long time no see.
 
Yea, times have certainly changed
How are you?
 
0
Q: Little Endian Character in external file to INT32

user3560626so i have a little endian formatted character in external file. Suppose 65535 (0x00 00 FF FF). In the external file, printed "0xFF 0xFF 0x00 0x00" (in ascii of course). How can I convert the character of the external file to INT32-bit number? the file reading must be in %c mode. The program "must...

fire!
 
I'm doing great.
 
Awesome, I see that the channel has a wiki and everything
 
10:57 AM
@JohanLarsson well
 
@R.MartinhoFernandes Yea I was just reading it, I'm afraid I can't come, since I'm finishing up a project and then moving to another country.
The famous Icelander no longer going to live in Iceland anymore.
But If it would be held in europe again, then I would be closer
 
Oooh. Where are you moving to?
 
Malmö, Sweden
got a job at Ubisoft Massive
 
@ÓlafurWaage ooocool
 
11:10 AM
I like the game jam ideas
new game jam soon?
or has the attendance dropped
 
game jam #3 was an epic failure
haven't scheduled any more
 
how so?
 
basically nobody participated
 
yea, I see the participation from #2 to #3 is a lot lower
 
I think a few people came around but no organizer
So like ... nothing happened ~_~
 
11:19 AM
@BartekBanachewicz hi
 
sbi
@presiuslitelsnoflek Yes, of course I know you under that name. And I do remember that we had a nice chat (with the robot, IIRC). I wouldn't assume you said you suck at C++, so I'd see no reason for you to not to apply for the job. You certainly speak English well enough, AFAIK you've been abroad before, so you can deal with living in a furrin country, and if you already know some German, then that'd be a nice extra.
I think you had my contact data from when you were in Berlin. Drop me a note if you're interested.
Ok, so I'll be back to hacking Python scripts...
 
@DeadMG We might take a shot at #4 nevertheless, I wouldn't surrender after one lost battle
Going back to ASCII, prolly.
and making it more about funky ideas than coding problems
 
Okey, here is a dilemma. If you are hungry & there is a chicken and it is yours, but not your pet chicken. Will you kill it and eat it when no other food are easily accessible?
 
Yes.
Luv me some tjikken.
 
whatever tjikken is
 
11:26 AM
Chicken.
 
> You can download the this service archive named “samlple05.aar” from here oh god, dat pun
 
I know it is easy to say "yeah sure", but assume it is a real life situation (I assume most of you have never killed a chicken in your entire life)?
 
now you said it, it's almost time for launch
 
11:27 AM
I'm with you @BartekBanachewicz, going to get me some post killed chicken wrapped in mashed corn breadding.
 
Me neither. Don't worry, nothing is going to happen to my pet chooks and even if I am hungry I can afford KFC. But I am using this metaphor for a dilemma I am facing ...
 
ah my launch card is showing exceptional amount
time for a royal feast
 
Is it overflowing?
 
@presiuslitelsnoflek Woot for the masters!
> launch card
 
@telkitty.exe dont know about your dilemma but kill dat chicken good.
 
11:29 AM
That's kerosine, dummy
 
From a language purity point of view, using either "a standpoint" or "a point of view" would be preferable. — sehe 14 secs ago
 
11:49 AM
fuck lol I forgot my badge again
had to tailgate
it went better than last time anyway, I was knocking at the glass door for like 3 minutes before someone had mercy to let me in
@sehe isn't that spelled kerosene?
 
Xeo
@BartekBanachewicz He's talking about a frog-shaped sine-wave (I'm pretty sure nobody is going to guess how I got to the 'frog' here).
 
is a manga written by Maguro Fujita. A 30-episode anime series of the same title is based on the manga. Plot Aoi, a normal school boy, is cursed by a wizard named Makaeru from the Land of Frogs, who tells him that if he wants to remove the curse he is to find Mimori, who is later discovered to be the sister of Makaeru. The curse causes Aoi to transform into a frog whenever he is wet, changing back into a human when he dries off. Makaeru then casts Aoi into the Land of Frogs, where he meets Mimori, the princess of the land. Aoi asks if she knew about the curse. However, Mimori remembe...
 
Xeo
Not that specifically, no
 
ah, that seemed fitting well enough
 
Xeo
But 'kero' is the Japanese onomatopoeia for the sound a frog makes
So it's kinda related
 
12:04 PM
> If x is a complete object, then x is the complete object of x.
it's just brilliant
 
@passy We'd lose our security certificate if we allowed pasting. It could leave us open to a "brute force" attack. Thanks ^Steve
8
this is brilliant
@Xeo OIC
 
Gosh what idiots.
 
Xeo
@BartekBanachewicz Hilarious.
 
@BritishGasHelp Brute force attack wouldn't be using a browser and keyboard to 'paste' values. You are idiots.
2
There, someone said it.
 
@R.MartinhoFernandes probably it's some state-level security policy. i.e. it's not their policy
 
12:10 PM
@Abyx That doesn't make their explanation any less nonsensical.
 
hm I am going to have to pay for my domain soon
 
Their explanation was not "it's not our policy, it's someone else's policy that we're forced to comply with".
It was "technical reason X means we can't do that".
So, yes, idiots.
It's smoke-and-mirrors PR.
 
@R.MartinhoFernandes but they said "We're following standard password policy" ... "We'd lose our security certificate if we allowed pasting."
 
And "It could leave us open to a "brute force" attack."
 
@R.MartinhoFernandes :D
 
12:12 PM
basically it's an organization which issued that certificate makes them follow that policy.
 
ugh fuckers let me renew my domain
take my money damn it
 
but well that "bruteforce" thing is funny
 
They could also tell us who we can complain call an idiot to, then.
I don't use British Gas and my password manager doesn't use pasting, but I still think doing one of hijacking basic browser functionality or enforcing any password policy other than minimum length automatically makes you an idiot.
 
user1804599
On a scale from PHP to Haskell, is Kotlin any good?
 
As great as this chicken
 
12:19 PM
@BartekBanachewicz no doubt!
 
@rightfold dunno, as it was described in their presentation it was fucking awesome (better than Haskell), but it's JVM so I don't wanna touch it
 
user1804599
I'm going to try it right now.
 
user1804599
It looks like some kind of Scala but more like Python.
 
> You often hear people wonder if their such-and-such pedal is true bypass or not. Sometimes I wonder if this is the same “I need to know” urge that makes us want to know if the fridge light actually goes out when we close the door.
lol
 
@randompunter @khellang "masturbation - the oldest brute force technique known to man"
3
 
12:39 PM
Dinner, dragon fruit or cold water (or all of them) something is making me really sick
 
user1804599
Kotlin seems most uninteresting.
 
I want an acoustic guitar
 
Just threw up everything
 
that is a big word
dinner here is a slow cooked leg of lamb
went into the oven at noon
 
@Abyx: surely that would be "rape"
 
12:49 PM
I am feeling awful :'( ... food poisoning ... ~yike~
 

« first day (1298 days earlier)      last day (3664 days later) »