« first day (1476 days earlier)      last day (3533 days later) » 

12:04 AM
0
Q: How can I perfectly center an image in a window using Slick2d?

StyncDividing the window's width by two to position it in the middle of the x-axis did not work. What else can I do?

 
@IcyDefiance What about it?
 
that's almost the first thing I learned how to do with code, right after hello world
imagePosition = windowSize / 2 - imageSize / 2
on the other hand, he's also the guy who asked this, which was a great question: gamedev.stackexchange.com/questions/80415/…
 
#define _ -F<00||--F-OO--;
int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
{
            _-_-_-_
       _-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
Best code ever
 
12:19 AM
@IcyDefiance I don't think that was a "great"question... I thought it was good, but with a minute amount of research he could of found the answer
 
yeah, but in only a month it's been viewed 2174 times. that means googling it probably lights up that question now.
 
@IcyDefiance It's simple, but I suppose it's valid.
 
In a database of knowledge, no harm in having it
 
I think it doesn't follow the "Do your research" rule
And neither do any of his other questions:P
 
^^
 
12:45 AM
@IcyDefiance I actually wrote an answer
0
A: How can I perfectly center an image in a window using Slick2d?

hasherrYou're on the right track. Not only do you have to divide the window's width and height in half, but you also have to divide the image's dimensions in half. Pseudocode would resemble something like this. // Center image in middle of screen. image.setCoordinates((screenWidth / 2) + (image.Width /...

 
40 mins ago, by Icy Defiance
imagePosition = windowSize / 2 - imageSize / 2
you wrote a +, not -
 
Yep, thanks for that, fixed.
Been up since 4, need coffee.
 
This is amazing
3
 
awesome and I'll put money on it being fake
 
@IcyDefiance It was a very well fake if it was. The momentum looks completely real
 
1:39 AM
tryin to play LoDF but server seems to be down
@AlexM. The type of stereo.
 
2:09 AM
hi
 
hi
 
lo
 
hi
 
lo
 
2:34 AM
hi
 
hi
 
lo
 
hi
 
Ending this now.
 
Better
So, about that netflix :\
@AlexM. There's a lot of it, you basically have to want to make things look bad though.
 
2:39 AM
You are a jerk :(
 
:'(
 
Anyways, trying to send an email to an old teacher. No idea what to say lol
 
My old teacher thought I was still a student when I sent him a message on facebook :(
 
LOL
 
My 5th grade teacher :\ - I think he's a principal now though
 
2:41 AM
LOL what?
what kind of sense does that make?
 
i forgot what year it was
 
@Noctrine I wish netflix had a speed control
 
I think it's broken :(
 
netflix
 
2:48 AM
dat throttle
 
Can someone who is decent with JS explain whats going on with the arguments parameter being passed into THREE.Path.apply? It doesn't even look like it defined anywhere. Would THREE.Path.apply(this, undefined); be equivalent?
 
@ClassicThunder arguments is automatically defined in JS, it's an array containing the arguments passed to the current function
 
3:04 AM
So in the case of var bla = new Shape() would it be null?
 
no it would be [ ]
function test() {console.log(arguments);}
test()
> []
test(1,2)
> [1, 2]
 
Awesome thanks
 
simple examples FTW
 
4:10 AM
Holy shit, these guys are releasing a dreamcast toolkit to make cross platform games
 
I was wondering why I saw a few kickstarter games with Dreamcast listed as a build target
 
4:55 AM
Lighting a room like that is harder than it looks
not really happy with it though
 
5:23 AM
@AttackingHobo Did you just hear about these guys?
 
I watched some stuff by them years ago when I was getting started.
They are pretty much the most popular gamedevs on youtube as far as I can tell.
 
all I know is that i want to make a game for dc now
 
A while ago they were anyways.
Largely because of this:
They have been working on that since about as long as I can remember.
That would have been like 2010 maybe.
Yeah, only four years. LOL
Well it would have been longer, but that's when I probably started watching.
Around then.
I may have started my programming adventure as early as 2009 however.
 
never seen em
 
5:28 AM
Wish I could have got a really young start though.
 
@AidanMueller yeah wish I had been able to younger as well
 
I used to spend a lot of time watching random gamedev vids.
I was like 11 when anything got started.
I started with batch scripts.
 
my parents were very anti video game and computers for a while
 
My parents were...well...I wouldn't say anti video game.
But yeah.
Basically I stayed off the internet when I was really young.
They are great though.
Not saying anything bad.
I know that when I was like 4 or so I think we still had dial-up.
@AttackingHobo Did you ever have dial-up?
 
No. my family first got a computer in 1999(?) and we were lucky and got cox cable
 
5:32 AM
Why did it have to make that stupid sound when you connected to the internet? I mean, I know it used phone lines and all, but still. If it was playing through your computer, it doesn't need to make that stupid sound. Just mute it.
 
My friends had dial up
it was from the hardware sound chip
 
Why would it produce that sound though?
Why does it really need to have a speaker?
 
not all dial-up modems did make that sound, but the ones that did were probably trying to say "yeah it's taking forever, but we're doing something, see?"
at least that's my theory
 
Maybe.
 
134
Q: Why did dialup modems make noise?

CeleritasI know that the signal was just tone pulses but why was it when (back in the 90s) when you first connected to the internet you heard a bunch of funny noises. After that if you were to use the internet, it still was using the telephone line, why no funny noises then?

"The sounds were there all the time, you just needed to pick up the phone to hear it. The reason they played it over a loudspeaker to start with is so you could hear if somthing went wrong with the connection (busy signal, wrong number, a person picked up instead of a modem on the other end, etc)."
 
5:35 AM
you'd think they could just pick that up with the software and display an error message
not a priority, perhaps
 
@AttackingHobo So it had function?
Hmm.
I guess you do learn something everyday. That is, if it wasn't for the fact that I didn't learn anything yesterday.
 
wow spent 2h on a bug and the problem was I was passing in a color instead of putting the color into object and then passing that in.
waste an evening x.x
 
@ClassicThunder should have used types
 
@ClassicThunder I hate those bugs that are just so obvious. Then when you fix them, you feel like:
 
@ClassicThunder what language you using?
 
5:39 AM
Its Kotlin compiled to JS.
 
@ClassicThunder are you giving your data types?
 
Yes but I have to define what the type is based on what the JS library is expecting. And I made a bad assumption.
 
Hmmm. that just sounds like a bug that I like my compilers to catch
 
I like my compiler to catch all bugs
but my compiler is like "nah I'm not a user"
 
I remember this one error where I had a loop in a loop (for X and Y coordinates). I don't remember exactly what happened, but apparently I was using some X and Y variables that were declared outside of the loops, when I should have been using the iterator itself.
 
5:45 AM
One of the first bug I encountered that really stumped me was put a ';' after an if statement in C++.
Basically just skips the if statement and runs what should be the body every time.
 
@ClassicThunder thats why you do sanity checks. change the if statement to if(false) and see what happens, usually if you have to do that you will be looking close enough to spot the mistake
and step through it
I still don't know if I have the lighting down
 
@AttackingHobo Why do you constantly post these images mapped onto a sphere?
 
to see the entire room and lighting setup
@AidanMueller I am rendering a standard perspective now
 
Looks like it could be G-man's brother:
 
Looks more like the dude from Taken
 
5:55 AM
Taken?
Sorry, I live under a rock.
 
What do you like in particular under a rock?
 
Liam Neeson
http://upload.wikimedia.org/wikipedia/commons/5/58/Liam_Neeson_TIFF_2008.jpg
 
@William'MindWorX'Mariager LOL.
Fixed.
What does he say?
 
Yipyipyipyipyip?
 
6:01 AM
I don't know. I think I heard one outside of my window once.
It was like a screaming sound if it was.
 
6:23 AM
@William'MindWorX'Mariager Maybe he says this:
I used an ascii converter, and then I overlayed that onto the picture.
 
I dunno what's up with SE, but some images just show up as "Image not found".
Pretty annoying.
 
Hmm. That's weird.
Could be your browser.
I had that issue a while ago.
It seemed to happen more on chromium.
 
@OMGTechy has the problem as well.
I'm on Firefox right now.
 
Weird. I'm on Iceweasel (weird name that linux/debian gave to firefox).
I kind of like it in 8 colors.
 
That one works :P
 
6:29 AM
Maybe it's a random chance.
Refreshing it should fix it.
@William'MindWorX'Mariager Is your internet slow today?
Could possibly have an effect.
Or maybe it's just magic/more magic.
 
Not as far as I know. I'm at school though, so it's possible someone are hogging the connection.
 
Maybe it's the computer just randomly saying "ok let's be stupid and screw this up.
 
Happens both here on my laptop, and at home on my desktop. :P
I'm partial to it being a SE problem :P
 
7:10 AM
Morning
 
 
1 hour later…
8:23 AM
good morning everyone
 
9:03 AM
@Almo that's stereo type at most
 
 
2 hours later…
10:50 AM
I think my coding style changes while I'm working on my current project (I started a few months ago). Do you guys experience that too?
 
not being able to control myself?
nope
 
I don't think it goes that far as losing control of myself...
 
yes it does
you should be the one writing code and you should know what you're writing
if what you want to do is change coding styles on the fly, then there is no point in wondering about it
 
Maybe I'm also just learning
 
or maybe you can't control yourself
enforce a single style at the beginning of the project and follow that
but even without it
not following the same style as the rest of the project out of a sudden leads to inconsistently written code
which is bad from any POV
 
10:58 AM
lol @IcyDefiance see our styles of assholing are way different :P
 
here's the rule I follow
if you notice something bad in code
step one: evaluate the cost of fixing everything to ensure correctness and consistency
if it's worth it, discuss the fix with everyone involved and see if they agree
if it's not worth it, keep consistency and make sure to discuss about not repeating the same mistakes later on with everyone else
if it's urgent and/or a showstopper obviously this does not apply
and is fixed right away
 
I'm alone (optional rubber duck), so I guess I'm currently just using the "not worth it" route
 
if you're learning be sure to keep project scopes small
and throw code away as often as possible
you write something, you throw it away
and later on write it better
 
I've found a more efficient rubber duck: Write the technical documentation and test that carefully
 
I've written lots of complicated code that got simpler and more generic over time and that is what I've been using for the longest time now. Then I start writing something new,try to make it generic from the beginning, and it turns out crappy
 
11:04 AM
well boohoo
repeat the process then
the point is to drive yourself towards outputting great solutions straight from the beginning
not after 2 years of continuously fixing crappy code
 
generic and crappy are closely related
 
that's probably true @MickLH
 
probably being the keyword
> I've written lots of complicated code that got simpler and more generic over time
> if you're learning be sure to keep project scopes small
no wonder if you start writing from scratch again the result is crappy
you've lingered for a long time on the same complicated shit trying to fix it
if you don't want to throw code away or can't
at least think about the fixes you've done and how you'd integrate them right away in a new project
 
It's more important to be decoupled than generic. Even then, there are some arguments to be made towards coupling your objects together depending on the project
 
I think it's because generic code usually isn't being applied to a real use case, or else it would force you to evaluate the actual situation of the solution at every point where you think about the goal
silly things happen, like designing a Normalize utility that takes one triangle in and gives one normal out, when your application needs to do them all in a batch with adjacency information so they can be smooth instead of flat only
I recently switched from hard paper to PowerPoint as my scratch space while thinking.
 
11:21 AM
inb4 you use Adobe AfterEffects to paste screenshots in
 
I can't possibly reccomend a move like this enough actually, it's less cumbersome than the paper believe it or not
 
I received a notebook (paper) from work
every employee gets one
 
Being able to move pieces around without having to get out your scissors is definitely a step up.
 
I wanna use it but I dunno how
 
11:22 AM
So I think what I'm experiencing is a learning process but I'm not always drawing the right conclusions from the things that go wrong. Sometimes that leads to crappy solutions again, sometimes to something better. As @SpartanDonut said decoupling is important, because what I could improve was usually code that had a very well defined purpose and usable interface
 
I hope I'll get a tshirt or hoodie soon
they look awesome
 
@Christoph If you know you're learning it means you're improving. Keep it up.
Never assume you know everything and always assume your ideas are crap. Bouncing ideas off of more experienced developers is a fantastic way to receive insight to how you are doing. That said, take other people's advice with a grain of salt because different solutions solve different problems and the people you are talking with don't always have the full story.
 
also people are opinionated, or worse: people are chimpanzees ready to punish you for being "wrong" about something they don't even actually understand but just flame about religiously
 
let me just optimize the shitload of text that was written by our colleagues
> you follow others' advice at your own risk
 
11:29 AM
@AlexM. yes I know!
 
Pip
heyhey
 
hi pip
 
hey
 
Pip
sup?
 
so I'm writing up design documents for the project I'd like to collab on here
 
11:40 AM
You're crazy
 
I'm not a nazi, but it seems like it's not gonna happen without leadership
like proper leadership, planning, etc
 
I would certainly agree
 
and even if nobody helps, I'll still just finish the document and implement it myself
 
what project is that?
 
actually if everyone keeps circlejerking about whatever is the popular C# project at the time, I'd enjoythe implicit competition :P
@AlexM. that's where I'm trying to be least nazi, the actual game design is very flexible to me
 
11:44 AM
Economy MMO or riot.
 
I enjoy basically anything between text puzzle game, and crysis graphics MMORPFPS
 
Pip
A few of us are doing some voxel stuff
Some are writing the SharpDX/OpenGL wrapper
 
Yeah I know, but I've nagged wardy about documenting the structure...
that just shows me there is no structure
and worse, nobody wants to admit theres no structure
 
Pip
and some are working on UI (Using Awesomimerrgnuerbge.... whatever)
and I am working on some 2D voxel stuff
 
I am working on nothing because I have no project or motivation
I might throw something really simple together for LD this weekend...
We'll see
Probably not though
 
11:48 AM
If burning years and years of my life writing engines taught me anything (except a lot about math and coding)... it's that with a project the size of an engine, your succes is directly correlated to how good your plan is
 
@MickLH I have instigated internal nagging, and now some internal documentation is appearing.
RE: Wardy's project
 
I still don't enjoy a project leader who emotionally resists logic because it hurts their ego to accept that they didnt think of it first
And honestly, just like people think they can magically be good at system design without practice, people think they can be good at documentation without practice
I don't want to suffer through complete docs-nub documentation
I'll gladly set aside all my expectations the moment I see a nice clean visual aid for each component of the architecture
 
a year and a half later
mick still goes on about emotions and shit
 
I think the challenge there is that people don't really know what they want to document
 
and how they affect development
in god knows what ways he thinks they do
 
11:55 AM
@SpartanDonut Hence needing actual skill at documentation
 
Yeah I realized that after I said it xD
And for better or worse, getting better at documentation isn't done well solo.
You get better by reading other peoples documentation and either seeing how good it is or trying to implement something from it and seeing where all the holes are, and also by having someone else follow your documentation and them asking you a whole bunch of questions on things you left out.
 
ugh god I can't even imagine going through that with someone who's defensive about their architecture design
 
Depends on the exercise you are looking to go through lol
But yeah if you are reading documentation where not only is the documentation crap, but the underlying design is crap AND you have to implement it... it would be terribly frustrating.
 
I could get past that, as long as the underlying design is also liquid. But so far I've never in my life ever period no exceptions no exaggeration EVER have I worked with a C# coder who was readily willing to make large structural changes to their program under any strength argument.
I think the inherent desire to save time that causes one to choose a language like that, also causes one to become invested in not actually writing too much code
 
I'm not sure laziness is what causes us to choose to use C#
 
12:03 PM
lol better?
 
A bit
For me its really a desire to focus on the problem at hand and not all the underlying parts... it probably does boil down to save time
Honestly if I wrote everything with C++ I'd have a shit ton of libraries that would amount to my own smaller version of .NET because I don't want to deal with underlying boilerplate
 
I really have nothing against C#, I actually enjoy using it a lot
But I use it to hack things together ASAP
 
It's definitely good for that
 
Sadly, hacking shit together overnight is where I shine
Cool story time, bro: At a job I had in the past, the guy above me didn't respect my skill level, and I called him on it, because he just plainly was trying to micromanage and was putting the wrong people on the wrong tasks. Eventually after growing disrespect some stupid challenge idea came up, he said something like: "Fine, design the whole site databases and all in a few days if you really can."
I took this seriously, I went to the guy above him and talked about the situation, and given that I was the new guy, he too was skeptical. Actually he was so sure I was just some ego-dumbass that we shook hands on a cash money bet on the spot lol...
 
oh boy lol
I'm curious if we'd actually get along on a team...
 
12:10 PM
So a couple days later, I deliver early and it's already more performant than the solution they had been working on for over a month before I arrived
So I take the money, and they are all like "sorry sorry can I suck yo dick"..... and I'm all like "nawbish"
 
Cute
 
Took the money from the bet, didn't charge them for the website, told them I couldn't waste my life dealing with their immaturity.
Told them they need to make SEVERE changes to almost every aspect of their company or else it's gonna fall apart
Tried to hit them up like a year later, they had already fallen apart :P
Fuck it feels good to get that off my chest haha
 
12:38 PM
So I don't know why but I just wrote a minified credit card keygen in javascript by hand :P

for(;;){var L=0,Z="",Q=16;while(Z.length<Q)Z+=Math.floor(Math.random()*9.99);while(Q--){var T=parseInt(Z.charAt(Q-1),10)*2;if(T>8)T--;L+=T+parseInt(Z.charAt(Q--),10);}if(L%10===0&&L>0){Z=Z.substr(0,4)+"-"+Z.substr(4,4)+"-"+Z.substr(8,4)+"-"+Z.substr(12,4);console.log(Z);break;}}
 
Looks more like something that generates 16 random numbers that look like a creditcard number.
But where are the provider ids?
I want it to generate VISA cards specifically!
YOU
 
I encoded the tables into math lol
 
It generates a number that passes Luhn check only
 
this is good
 
12:54 PM
@AlexM. yeah but just being missing a space is why all thought of it. :)
 
I kinda regret answering with UML stereotypes
it would have been better to go with something like
"all Canadians are nice people"
 

« first day (1476 days earlier)      last day (3533 days later) »