« first day (1304 days earlier)      last day (3706 days later) » 

12:22 AM
 
12:51 AM
1
Q: Call a method without calling it

Alex M.Inspired by a now deleted StackOverflow question. Can you come up with a way to get a particular method executed, without explicitly calling it? The more indirect it is, the better. Here's what I mean, exactly (C just for exemplification, all languages accepted): //Call this. void the_function(v...

someone might have an idea
 
o_o teens now days r wild.
 
1:12 AM
hey @MickLH MHIO ;)
 
1:22 AM
@AlexM. lol wut
 
that's my new meme
next time when Pip comes to tell us about Kivy
I'll say "Are Kivy really powerful? If so I want some."
 
Is that what he's been doing lately?
Please tell me I didn't know.
facepalm
I rarely like Breaks, but this stuff is the shit.
 
1:51 AM
0
A: Call a method without calling it

grcimport sys def the_function(*void): print 'Hi there!' sys.setprofile(the_function) This sets the_function as the profiling function, causing it to be executed on each function call and return. >>> sys.setprofile(the_function) Hi there! >>> print 'Hello there!' Hi there! Hi there! Hi ther...

a non-C answer!
 
@AlexM. Is that your SO account in that picture?
 
no, it's
 
Okay, I was going to say.
 
o_o 145k that's like a dragonborn, yeah, with his Fus Ro Dah! he can blow the entire server.
 
That's an awful lot of rep for a game dev who mainly lives on GD.SE
@BlueBug He is literally Dovahkiin
 
1:55 AM
check out Mysticial's profile
> I'm also the author of y-cruncher - a program that computes Pi and other constants. It was used to set the world record for the most digits of Pi ever computed: 5 trillion digits (August 2010) and 10 trillion digits (October 2011).
 
Is there anybody on SE that has achieved more than 1Mil?
 
also his answer on branch prediction
10887
A: Why is processing a sorted array faster than an unsorted array?

MysticialYou are the victim of branch prediction fail. What is Branch Prediction? Consider a railroad junction: Image by Mecanismo, from Wikimedia Commons: http://commons.wikimedia.org/wiki/File:Entroncamento_do_Transpraia.JPG Now for the sake of argument, suppose this is back in the 1800s - before...

 
Holy literal fuck. That is the longest answer to a question that I have ever seen
@AlexM. TIL that Mystical is the inventor of the circle, lol
 
that python thing in the answer sure is interesting
I thought of so many shortcuts I could take
using that thingie
 
2:00 AM
So far I'm having fun with HTML.
It's pretty easy.
 
of course it is
 
lol, it's just markup
 
it's one of those things that any developer, ever, can do
but it takes an expert to get a great result
 
I also bought this book
Have you read it, Alex?
 
nope
 
2:03 AM
It's interesting.
 
might take a look at it later
 
It's basically just a book about how computers work, which means you probably know most of the things in it.
But I really like it. It talks about other things too, like different kinds of codes and history.
 
2:16 AM
Raspberry Pi marks 2nd birthday with plan for open source graphics driver
$10,000 offered to first person who can run Quake III on Pi with new driver. http://arstechnica.com/information-technology/2014/02/raspberry-pi-marks-2nd-birthday-with-plan-for-open-source-graphics-driver/
 
2:32 AM
Christ, you should go for it.
 
shrug not sure I can do something like that
 
I thought OpenGL was open source.
 
besides, I dunno what to do with $10k
 
Buy more games and chocolate
 
I mean after I'll get my new phone and GPU
 
2:34 AM
And then give it to me.
 
all I'll need more is food
 
2:47 AM
hi
is there somebody using libgdx ?
 
I use it :P
 
hi hasherr
 
@LeSam How'd you change your identicon?
 
I have no idea
it changes everydays
 
Waayyy I want a new identicon
 
2:51 AM
well Do you know if it's possible (on android) to execute a HttpClient request async in libgdx ?
in libgdx not in the android activity
 
I need a little bit more context than that
What exactly are you trying to do?
 
I'm trying to get a JSON information on the web, and use it in my libgdx game
I must take this a way async
 
Hmm... I don't see why not.
 
I just want to know if it's possible to do it directly inside libgdx class
 
I'm not sure. However you do it, you just need to be careful about it so that you don't violate Android standards.
But I don't really see why not.
 
2:56 AM
ok, I've made it outside libgdx (on android activity, and I don't know how to send the information to libgdx)
 
I need an idea for an App for a competition.
 
I have no idea
btw, do you know how to send information from android activity to libgdx ?
 
What kind of information are we talking about?
 
any information, a Integer if you want
 
Well, my guess would be to make a constructor in you ApplicationListener class and then send the information there initially when you start your activity
 
3:00 AM
yes but I would like to send informations after that libgdx class has been launched
is it possible ?
 
Well, first of all, why are you messing with your Activities?
I don't even touch mine in my game.
 
sometimes you need to do somethings that libgdx can't do itself
like take a picture, write a message
do you see what I mean ?
 
Yeah.
 
In my case it's write a message
 
I don't know. Try googling it, or trying to do it in your own way without paying attention to how other people do it.
Did I tell you what I did for my UI?
 
3:05 AM
this is the concept, the PLAYER write his name, and the name is sent to the libgdx class
no you didn't
 
I found LibGDX's documentation for their skin-based UI to be useless.
So I literally wrote my own UI classes
 
me too
I did that too
 
You agree with me?!?!
 
I recreated buttons, checkboxes etc.
 
That's what I did too.
 
3:07 AM
Yes I agree
because it's not enought documented for me ! not enought exemples
with images !
only exemples with codes
 
They're pretty simple, it's just a class called Button which extends Sprite and then when you instantiate it you give it a LibGDX Action which acts kind of like an ActionListener from vanilla Java.
@LeSam That's pretty much flawed documentation.
I would argue that examples are part of that.
 
I even made my own Sprite class
to add more methods
 
Really?
I made my own Screen classes because I don't like how LibGDX's Screen classes don't have an update() method
They only have a render() method, which bothers me immensely.
 
I also remade the sprite class because I didn't like the Origins coords
it was reversed
 
Oh that's dumb
 
3:10 AM
in fact I don't like the Scene2d, I don't use that !
 
So you could probably agree with me when I say that LibGDX is great for multiplatform and general game dev, but that it's best to hack it a little bit to make it work best :P
 
yes, I fact, for me, libgdx is just a Graphic library, not a GAME engine (or should I say : libgdx is a bad GAME engine)
 
I agree. I use it as a library, not a framework. I don't build my game around LibGDX, I build LibGDX around my game.
 
true
me too, I only use graphics and sounds classes, the others is just bullshit !
 
UI is terrible, manual screen switching is terrible
It does a lot of other things wrong as well
But it is without a question the best way to put your game on multiple platforms.
 
3:14 AM
yes
without a doubt
 
It's so cool how I can debug a game on my computer and then play it on my phone in less than 2 minutes
 
another thing ! I don't know if it's libgdx or my devices, but The InputListener is so buggy when you use multiples fingers !
 
Oh, it's tricky.
I learned a bit about it when I wrote a pong
 
I use it good (with pointers and all), but It got some bugs
I thing it's from the devices
 
Yeah. You know what's weird? LibGDX is the only thing I've ever seen where the developers recommend the nightly builds over the release builds
 
3:17 AM
ahaha
I realised that when I used box2d
I had to download a script, inside there was a libgdx function that my eclipse couldn't find
 
Yeah. Isn't that strange? I don't trust it, my developer instinct told me to stay the hell away from nightly when I saw it
@LeSam NOW THATS WHAT I CALL REVOLUTIONARY - libgdx devs
 
ahah
The best things is ( I ) couldn't find the way to know which version of libgdx I was using
It's written nowhere
GENIUS !
 
COMPLETELY MIND BLOWING
ITS SO MIND BLOWING THAT IT BLEW OUR USERS' FACES OFF
LITERALLY, THEY'RE EXPLODING OUT OF EXCITEMENT
 
you have to remember the version when you clicked on the DOWNLOAD button, 7 months ago
GENIUS
 
COMPLETELY REVOLUTIONARY
They should hire Johnny Ive to make it even more revolutionary
 
3:21 AM
inside the libgdx RAR, there is a README, LICSENSE, NOTE files, none have the version number
GENIUS
 
ReadMe - This is LibGDX. lol.
License - Lol don't steal
Note - lol
^LibGDX RAR file contents
 
I FORGET
AUTHOR
CONTRIBUTORS
so, you don't know if you have the last official release or if there is a new one !
it's genius
genius !!!!!!
 
I know we're bashing LGDX here, but seriously, I love it.
It has it's flaws, but they're easily forgiven due to how overridable it is.
 
me too
:)
but seriously scene2d is totally a bullshit !
actors
what ?
 
I don't use it.
 
3:27 AM
action ?
 
I use action for my custom UI
Ooohh, I had an idea. What If I wrote my own UI library for LibGDX.
 
what the f* is that ? why actors ? do you think it's a mothfu movie ?
 
LIGHTS CAMERA LIBGDX
 
@hasherr you should keep your code for yourself !
 
Huh?
 
3:29 AM
because your code must be your secret
it's your thang !
 
I try to keep things as open source as possible actually
 
ok, then share it on facebook everywhere
 
lol, not like that
Okay, so I'm really fucked right now.
 
me, I can help someone give him some codes, but I can't give all my games codes
 
I have this retainer that I have to wear on my bottom teeth because they shifted after I got my braces off
I haven't worn it in like a week and I'm wearing it now and it's getting sore and if I take it out I'll probably die
Because it's literally stuck on my jaw and it's going to hurt like hell if I even attempt it
 
3:32 AM
how will you sleep with it ?
 
I will sleep with it.
 
what If you move it
in your sleep
 
It won't do that.
 
what if you dream about your mouth broken, and you wake up with a broken mouth ?
 
Okay, I have to take this out
But I'm terrified of dieing
 
3:34 AM
why you didn't put it early ?
 
I put it on like 6 hours ago
 
yes but why just 6
instead of a weak ago
 
Oh you mean
Because I was lazy
 
nevermind
 
lololollololl
 
3:38 AM
this one !
CS players
 
haha
 
only CS players can understand
 
CS players are some hard motherfuckers, let me tell you that
You'd think that in real life they're all Navy Seals or something like that
 
ahaha
 
When in reality they're neckbeards renting their parents' basement.
 
3:42 AM
ahahah
have you already finished an android game ?
 
AHHHH
AHHHHHHHHHHHHHHHHHH
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
IM DEAD
 
?
it's a serious question
 
I just took it out
Oww...
 
I mean, have you already finished to make an android game ?
 
It's technically done I guess
But it could use some polish
I get my debit card in a week or two, so I'll put it up when it's done
 
3:45 AM
? what are you talking abou
 
The screaming was when I took my retainer out
Everything else was about the app
@LeSam I can't put the app up until I have a way to get my developer license, which I need my DEBIT CARD for. :P
 
ok
I have already mine
25$
 
yeah
 
(android)
Iphone it's expensive
 
I could use my parents' card I guess, but I kind of want to make this transaction with my ownmoney
@LeSam It's like 100 and then more for each app I think
100/year I should say
 
3:50 AM
well
if you develop for iphone there is no place for opensource projects !
 
Nope. You also need an overpriced twitter machine to make them.
 
you didn't heard about 'mini mac' ?
 
wat
Whoa
I want one
 
'low price' mac
I project to buy one
they are just a bit slower than real mac
just a bit
 
That's still pretty fast
That's pretty cool actually
 
4:01 AM
yeah
Do you know something about async thread
is it the only solution with libgdx ?
 
I haven't used it,, no
:(
 
ok
I come back
 
4:19 AM
I'm here
 
5:03 AM
And here is what I accomplished in day 1:
I need the more rocks, and the rocks need to be smaller. I think I'll soften up the ground a bit too. Still a lot to do yet.
Good enough for day one.
 
5:15 AM
@AidanMueller Is that a game or models?
 
 
4 hours later…
user92578
8:54 AM
Morning
 
mornin'
 
user92578
 
user92578
More colors start to appear :DDD
 
Have you tried if some other image would work?
 
user92578
Acutally other image works...
 
user92578
9:02 AM
Acutally
 
user92578
hmm
 
user92578
What could cause this? The other file I tested was also a PNG file, but it's not created by me... Maybe Paint.NET does some weird stuff to PNGs?
 
Maybe the importing library does not support something
 
user92578
What should my bit depth be?
 
32
with rgba
 
user92578
9:05 AM
That did it... Paint.NET had set the bit depth to 8
 
user92578
but the sprite appears upside down... :D
 
user92578
 
user92578
My blending doesn't work?
 
do you have blending enabled?
also which blending mode are you using?
 
user92578
nvm, I forgot a line
 
user92578
9:14 AM
glEnable(GL_BLEND)
glBlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD)
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO)
 
so it works?
 
user92578
yeah
 
10:33 AM
windows had to do that chkdsk at startup to fix stuff again
I keep on postponing buying an ssd lol
 
user92578
I hate it when my windows does that chkdsk
 
user92578
lol
 
it does it because my hdd is broken and it fucks itself up
a month ago I had to re-install the whole shit because of a few corrupt files
 
10:58 AM
An Engineer Explains Why You Should Always Order the Larger Pizza lifehacker.com/…
 
user92578
Buttons!
 
user92578
 
@AlexM. Can growing a partition cause data loss in that partition
 
no idea
 
Just want to get the ubuntu partition deleted and my windows partition grown
takes about 2 hours
they gave me a warning that this could make a data loss but I think that is mostly when you shrink a partition. Dont you?
 
11:09 AM
you will find out when it's done
 
yep
 
if you actually had important data to lose you wouldn't have attempted it in the first place
 
Actually it doesn't grow the partition it just copies my stuff over to another partition
Maybe I should had made a backup
Well well. To late to regret now
Some good games I can play while I wait?
 
11:26 AM
 
LOL
 
user92578
11:50 AM
F*cking DotA
 
user92578
ragequit
 
user92578
12:21 PM
I load 3 sprites to OpenGL and my computer starts to scream like it's on fire or something...
 
user92578
Nice
 
user92578
I might have some optimization ahead
 
12:45 PM
:D
 
 
2 hours later…
3:05 PM
anyone could tell me how does float4 works? which fields do they have?
in hlsl
chances are that fields are r,g,b,a?
 
I think float4 is just made of 4 floating point components, and you can interpret them however you want
either r, g, b, a or x, y, z, something else
when working with colors, float4 would most likely be rgba
 
ya, that was my guess
but in this code you can see that it access a precise field of a float4
float4 controlMap = IN.color;

half4 col = lerp(rock, gravel, controlMap.g);
 
shrug never did shaders, no idea
 
3:46 PM
wow
Donation pack features:

4,050+ assets!
Everything in the pack licensed CC Zero (CC0).
Includes every asset ever released, even retired ones.
Some hard to find assets (like all fonts) included.
Unified folders (PNG, Vector, Spritesheet).
Added missing vector files for 'Medals'.
1 Exclusive preview of future asset pack.
 
hi
 
@LeSam Is that your real identicon?
 
what do you mean by real ?
there is fakes ?
 
too cute to be randomly generated I meant. sick cute identicon >< ><
 
it is a random one
:)
 
3:55 PM
I don't think identicons are "random"
 
mine change everydays
 
An Identicon is a visual representation of a hash value, usually of an IP address, that serves to identify a user of a computer system as a form of avatar while protecting the users' privacy. The original Identicon was a 9-block graphic, and the representation has been extended to other graphic forms by third parties. Invention Don Park came up with the Identicon idea on January 18, 2007. In his words: Releases The original Identicon source package 0.1 was server-side Java. Version 0.2 was cleaned up, added some documentation, fixed a color bug, added a cache, and a runtime jar...
 
" usually of an IP address" so in principle I could generate particular pattern I desire, if I know the algorithm of SE. dat's cool. Well then you had manually forced to have a cool avatar. There's a difference between a natural born beauty and plastic surgery pretty face.
 
or you know
just get a real avatar
 
not that getting plastic surgery to look pretty to cover something u significantly consider as a flaw is wrong but if you could choose to "born" pretty without plastic surgery, then why not; choose unique IP pattern to get pretty identicon.
 
4:00 PM
wat
 
I should get a fake identicon avatar, is what I am trying to say, I think.
 
One of the mods on gaming had a fake one for a while.
 
omg that pattern, oh wait.. :(
 
4:36 PM
I'm almost sold for this
If it only was C++
 

« first day (1304 days earlier)      last day (3706 days later) »