« first day (1360 days earlier)      last day (3666 days later) » 

2:00 AM
With incremental updates
Use that to march when possible, or at the very least implement a binary search in "sketchy" cases
combine it with harmonic partitions to trade off even more memory for speed
 
lol
 
I think at this point you should be able to raytrace voxels :P, should be a bit over-engineered for minecraft
 
I need help articulating what to Google
 
that sounds too hardcore for me for the moment
well I am raytracing voxels, kind of
they are just pretty large voxels
 
I need to figure out how to send a string between a PHP webservice and an Android app
What to Google?
 
2:04 AM
lasse if you make the code nice to work in I'll implement stuff for fun
 
how to call web service from android
 
@MickLH I'm doing my best here
@SpartanDonut like, with http request?
 
I was answering @hasherr
 
@SpartanDonut Thanks
 
oh
okay
I didn't pay attention
getting a bit tired, 5am already D:
and I need to implemet something recursive
 
2:05 AM
Have you tried turning into a rocket ship and bombing the russians?
 
Fibonacci111!1
 
@Grey Sounds easy for a Fin
 
@Lasse
 
no not yet
I have thought about it though
 
@Lasse Yeah it would be very boss
 
2:06 AM
Apparently you can't run Network operations on Android's main thread :(
1
Q: Android HTTP-POST

user3476200Good, not much English, but try to be as clear as possible. I am very newbie in java. I started a few days ago. I'm trying to develop a reading of a website a arhico php. But it does not work. Always returns me the catch I think we should do something with Thread, but i do not know how. I'm...

 
@hasherr wouldn't that be blocking, which is bad for user experience
 
@hasherr It's because too many nub devs make bad UX
 
But the answer suggests using an AsyncTask, which sounds really convenient
@Lasse Yeah, it makes sense to think about
 
so us pro devs who do everything in the main thread using select are punished
 
definitely bad UX to do POST requests on the main thread
easier, but bad
 
2:07 AM
Makes sense to think about, but took me a while to figure out
 
select?
wtf is select
switch?
 
some languages use select instead of switch
it's odd
 
no, select is a system call
 
weird
lol
 
You can give a group of file handles and ask which one has data ready, if any
It's the "right" way to do scalable networking
Totally unnecessary for an android app
 
2:16 AM
One of my side goals right now is to alter packet data somewhere in the transport layer.
Only problem is my target has security and I don't know jack about security so I'm learning about it.Once I crack the protocol, I can begin to actually do something with it
 
AsyncTasks are handy
@Grey I got this for you, friend: youtube.com/watch?v=SCD2tB1qILc
 
defatted peanut flour with extra sugar is quite wonderful yes
 
Hello.
 
@MickLH Mick has attained physical enlightment
 
Hello, bag of sheep
lol
 
2:18 AM
Hello sheep of bag
 
Would you guys mind looking at my question?
 
yes
a lot
 
Throw it out there
 
I've been working at it for days, haven't figured it out yet.
 
Post away! Dont ask to ask, sir!
 
2:18 AM
0
Q: Issues with 2D Body/Limb system

BagofsheepIn my game I have programmed Body and Limb classes. The Body is guaranteed to have an origin in the center of its sprite. The Body class has a List of children Limbs, each with their own offset. Every Limb has a Master value which references the parent Body, but it also has a Parent value which r...

 
@MickLH lol, be nice
 
Lol.
 
Ooh, XNA
Where's Vaughan
 
I've been itching to say "your mom" to something all day dude, now I'm all hopped up on peanut butter, watch out!
 
@MickLH You can say it to me if you want
 
2:19 AM
@MickLH I resist the itch to say that in chat all the time
 
Lucky me gets to go to school every day and say it to people all the time.
 
@SpartanDonut your mom didn't resist very much. >.>
 
Your mom gets to go to school everyday
 
beware hash has comebacks
 
@IcyDefiance OH SNAP
 
2:19 AM
:O
 
YER MUM oohhh
^ High school
 
shit got way too real up in here
 
"burned"
?
 
no god damnit
that's been yesterday since forever ago
 
"moded"?
 
2:20 AM
Although I did hear an awesome 'Your mom' the other day
 
XNA indeed. Anyone check it out yet?
 
@Bagofsheep jk <3
 
Somebody said to somebody 'Give me the lunch money in your pocket' and the response was 'all I have is your mom's number'
 
LOL
 
lol
 
2:21 AM
@Bagofsheep looking at it. it seems complicated.
 
@Bagofsheep I still have nothing :(
 
I gave that kid a high five
 
I've read over the code probably a 100 times, changed all sorts of things, and I can't figure out what is wrong. Conceptually it makes sense, it should work.
 
I have drained my brain capacity for today with my recursive octree raycasting T_T
 
But I may be officially flim flammed.
Lol that sounds complicated Lasse.
 
2:22 AM
@Bagofsheep There's a guy in here named Vaughan who is good with XNA
If he comes in here, I'll link him to your question
 
Alright, thanks.
 
void GetInnerCoords(Ray ray, int depth, out Vector3 coords)
{
	if (depth > 0) {
		int childSize = blockSize / 2;


	}


}
this is my last 10 minutes
ffs
 
> return (LocalPosition += Parent.worldPosition());
 
been staring at that
 
what does that even return?
like, it modifies LocalPosition, then does it return LocalPosition?
 
2:23 AM
I have another on the site that has been on there longer and since then given up on it for now, but juuuuuust in case I'll link it as well: gamedev.stackexchange.com/questions/73871/…
 
and why do you even want to modify LocalPosition there?
 
@IcyDefiance In C++, it would return LocalPosition after adding
 
makes sense. I didn't even know it was valid syntax in C# though.
 
It returns its own LocalPosition (which is it transformed coordinates in LOCAL space) added to the parent limb's WORD position.
It is kind of recursive because it continues up the limbs until it reaches the Master body.
 
okay, so why are you modifying LocalPosition
 
2:25 AM
I wish to modify local position because it is the offset transformed by a matrix.
 
@IcyDefiance Yeah I fucking hate that syntax even though I use it in math code often
 
I am only returning the modified-
HOLY
You may have just solved my problem.
 
LocalPosition + Parent.worldPosition()
 
hahahahahaha
 
I used +=.
Lmao.
 
2:25 AM
exactly
 
that HOLY was priceless
 
ALL THIS TIME
 
lol don't worry about it. it's the easy bugs that are the hardest to find.
takes fresh eyes to notice that kind of thing
 
HAHAHAHA, the other limb is showing now.
It isn't in the proper position but both limbs are finally showing now.
Yeah, thanks man. I can't believe it took this long for me or anyone else to notice that.
 
2:27 AM
them moments when stuff progresses
 
I need more of this fucking amazingly wonderful defatted peanut flour with sugar and oil
berb!
 
dat bass
@MickLH check that bassline out, damn!
 
ooh that song plays on Pandora all the time
even on my metal stations, for some reason
good song though
 
Alright Icy, you officially solved my problem. Thanks again. If no one posted an official answer on my question how can I flag it as solved?
 
2:30 AM
You can always post the answer on your own
 
Delete the question
 
shus mick
 
It's too specific to your bug
Not useful to anyone else
 
@Bagofsheep do you have it working now?
 
Everyone already knows "Don't put in += when you want + "
not worth loading a SE page for
 
2:31 AM
Yup, it works now haha.
 
Let Icy post an answer and then you can upvote / mark it as an answer if he's looking for rep
 
Yeah, I mean even I knew that I just screwed up.
 
@MickLH look at how much rep I got from this one: gamedev.stackexchange.com/questions/73741/…
 
Yeah, if you want Icy you can answer it.
Or I can delete it.
 
I'm me, deal with it
#DealWIthIt (I'm totally fucking with you @Bagofsheep, I just wanted to look like a douche since I felt like a prick)
@Lasse when does the bass start?
 
2:32 AM
1:10 or something
 
D-D-D-D-Rrop the Base
 
I figured as much @MickLH.
Icy has not responded so I'll just answer the thing myself lol.
 
Mick is a little off his rocker tonight
 
maybe
 
2:34 AM
yeah that's fine, I don't care about rep, as you can see from my current rep, lol
 
I think I'll go sleep
laters
 
@Bagofsheep you can upvote all my stuff if you like
 
"What it's like being a junior developer in a code review"
 
@MickLH the system will take the votes back and maybe ban him for doing that.
I mean that's amusing in its own way I guess
but kind of mean
 
@IcyDefiance well if he's silly enough to vote for literally all then yes it's amusing
but if he's reasonable then I get well deserved rep and he gets to feel good about his good deed
throws a paper airplane at @hasherr and starts whistling before it even hits him
 
2:38 AM
*opens paper airplane to read note*
DO U LIKE ME?
[ ] FOR YES
[ ] FOR NO
[ ] FOR MAYBE
 
LOL
 
wat
 
grabs paper from @hasherr crumbles it
 
The gif seems pretty accurate.
 
Well humans, this very well might be the end of my productivity tonight
 
2:42 AM
Holy shit, I want to kill Android
Can't stop getting android.os.NetworkOnMainThreadException
 
Sounds like every android user ever #badux
 
Even though I'm using an AsyncTask
Oh
Wasn't using proper execute method
 
learn dat async prog @hash
 
yeehh
Got it!
Alrighty
Now for PHP
Shit
 
2:58 AM
What is a php variable that says something like $_POST called?
 
I'm not sure what you mean
 
I don't know any PHP but maybe this is what you are looking for?
http://www.php.net/manual/en/reserved.variables.post.php
 
$_POST variables?
 
still not sure what you mean
 
@hasherr $_POST is a superglobal that's filled in by the CGI layer into PHP's environment
 
3:01 AM
Icy, I'm trying to send information from an Android device to a PHP web service
 
it's just an array of the parameters the server received from an HTTP POST request
 
A lot of the examples I'm reading have "$_POST" in their keywords
 
yes, it's a superglobal, it's defined everywhere , even inside functions I think'
 
yeah inside functions too
 
Right, so now how do I...
Do that thing.
 
3:02 AM
are you trying to construct the request on the android side?
 
I mean, I have the Android requests done for sending an HTTP response
I just have no idea how to receive it
 
on the PHP side?
 
Right.
I'm looking at this, right now
 
@hasherr have you done PHP hello world yet?
 
But it's using JSON data
 
3:04 AM
ah okay, so $_POST is an array, where the index is the name of the parameter name and the value is the parameter value
 
@MickLH Haha, yeah, I've done a little. I plan on learning a lot of the language over the weekend
@IcyDefiance So kind of like a multi-dictionary
An array of dictionaries, I guess you could say
 
@hasherr make a PHP file with <?php print_r($_POST); ?>
 
multi? dunno about multi. just a dictionary in C#.
so if your request has the parameters "home=Cosby&favorite+flavor=flies"
 
Okay, well I see what you mean
 
you can do

$value = $_POST["home"];
echo $value;
 
3:05 AM
then POST something to the page and see what you get, it's dead simple
 
that will print Cosby
 
Oh, wow
That is simple
Gonna try, real quick
Wtf, for some reason my FTP won't let me upload my new scripts :(
 
parmissins be hard yo
 
What is going on....
It's not working at all, I've tried everything
Restarting FileZilla, reconnecting to host
Modifying HTML file
Making a completel new html
Okay, got it
@IcyDefiance Is that really all I have to do?
 
should be
 
3:20 AM
Okay, so what my program does
is sends a string to the PHP service
and then when I refresh the page, it's supposed to display that value?
But obviously something really isn't working...
 
how is the string being sent? like what does the post request look like?
 
            try
            {
                List<NameValuePair> pairs = new ArrayList<NameValuePair>();
                pairs.add(new BasicNameValuePair("data", "pizza"));
                post.setEntity(new UrlEncodedFormEntity(pairs));

                HttpResponse response = client.execute(post);
            }
Supposed to send the word "pizza" to the "data" post variable
 
okay, and httpresponse should contain the response. what does that look like?
 
What do you want me to look at?
 
uhh...well what library is HttpResponse from?
 
3:23 AM
org.apache.http
 
That's it
What are you exactly looking for?
 
whatever the php file sent back
 
Well... no.
The android sends a string to the PHP
Or are you talking about just a regular response?
 
and the php should send something back. that's what a web server does.
it gets a get or post request, processes it, and sends a response back
 
3:27 AM
How do I obtain the response?
I tried System.out.println(response.getStatusLine());
 
Stare at this line real hard and you tell me
 
04-25 23:27:44.950: INFO/System.out(31478): HTTP/1.1 200 OK
04-25 23:27:45.130: INFO/System.out(31478): HTTP/1.1 200 OK
Which returned that
 
HttpResponse response = client.execute(post);
Damn looks like you got it :P
 
Right :D
I knew this was right
 
okay yeah, that's the status of the response. HTTP 200 OK means the server got the request and sent a response back with no error.
you need the content of the response
one sec
 
3:29 AM
Right, I need the string that I saved
Currently, here's the contents of the PHP
<?php
 	$value = $_POST["data"];

	echo $value;
?>
Saving the content between browser refreshes
 
byte[] responseContent = new byte[response.getEntity().getContentLength()];
System.out.println(response.getEntity().getContent().read(responseContent));
that...seems right
I just put it together from looking at the documentation
no wait
 
04-25 23:31:47.416: INFO/System.out(31642): 164
04-25 23:31:47.596: INFO/System.out(31642): 164
04-25 23:31:47.817: INFO/System.out(31642): 164
I had to put in an (int) cast
Because of the long variables
            byte[] responseContent = new byte[(int) response.getEntity().getContentLength()];
            System.out.println(response.getEntity().getContent().read(responseContent));
 
byte[] responseContentBuffer = new byte[response.getEntity().getContentLength()];
response.getEntity().getContent().read(responseContentBuffer);
String responseContent = new String(responseContentBuffer, "UTF-8");
System.out.println(responseContent);
"UTF-8" may have to be changed, but it should also work just fine with ASCII, so odds are it's fine
 
04-25 23:34:59.554: INFO/System.out(31855): pizzapizza
04-25 23:34:59.554: INFO/System.out(31855): <!-- Hosting24 Analytics Code -->
04-25 23:34:59.554: INFO/System.out(31855): <script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
04-25 23:34:59.554: INFO/System.out(31855): <!-- End Of Analytics Code -->
We did it!
 
there ya go
see, that's what documentation is good for :P
 
3:36 AM
So what is this exactly telling us?
 
that's what the web server returned when you sent it that post request
 
The message received by the PHP and the response sent back, I'm guessing
Okay
 
the analytics thing was added by your host because they wanted to. get a better host and it won't do that.
 
So the goal of this project is to make it so that the site actually updates according to messages sent to it
 
3:37 AM
Fancy
 
LUDUM DARE LUDUMD ARE DUALUERmder.
 
very fancy, Grey
 
@IcyDefiance not me my artist friend
who is doing this hungover
 
lol
Damn good work for a 10% man
 
I will be coding soon but trying to finish stupid psych assignment
 
3:39 AM
@IcyDefiance So how can I make sure that the script saves $value between page refreshes?
 
write it to a database?
 
either with a session (stored on the client, not the server) or with a database
 
Ah
So did I tell you guys about what this is for?
 
No but all of you are working on something other than MT it seems :P
 
Children get busy too
I was asked by my school to help create an app to help people choose courses depending on their fields of interest
 
3:45 AM
Ah nice
 
Along with 2 other kids
 
I'll allow that excuse :P
 
But one of the kids isn't really working on it, and we're worried that he's going to get credit for watching Youtube videos all day.
 
@Grey wow wat's that
 
Not sure how to handle that
 
3:46 AM
"my artist friend"
i see
 
ya he supr cool
 
3:57 AM
holy shit oneclick publishing is awesome. I love this thing.
takes care of installation, updating, everything, and all I have to do is upload a folder to my webhost
 
What is it?
Linkme?
 
functional solitaire game: icydev.net/nicesuite/publish.htm
if it doesn't work, yell at me. I'm still downloading a Win8 installation disk so I can test it on a fresh OS.
 
Codecademy isn't really a great tool for learning a great language, but I kind of like it for just feeling out the syntax of a language
 
Link to windows binaries added to the community highlights thing: meta.gamedev.stackexchange.com/questions/1576/…
I'll test it on a fresh OS once that download finishes, but otherwise I'm happy for tonight
 
Why on a fresh OS?
 
4:02 AM
Because windows bro
 
because that won't have anything already installed on it. I want to make sure the installer takes care of any prerequisites properly.
instead of using something that I already installed to be able to create the thing
this is why VM's are awesome
 
Hyper V in Windows 8 is awesome
 
wait what?
that does look awesome :O
 
Surprise!
 
gotta restart in order to use it... eh screw that, I'll use VMWare
 
4:11 AM
don't do it
i mean... ok :(
 
When I build my computer, will any of you care enough to actually look at pictures if I make an album?
 
if it's novel and exciting
 
4:33 AM
I maek'd drumschetp
 
4:48 AM
If you ever had any doubt that our society is built on drugs, you might like to see that the Wolfram Research guys see this as worthwhile mathworld.wolfram.com/CannabisCurve.html
 
it is fair to pay for good software, right? Sublime is a good text editor
70 bucks is a bit high, but I think it deserves it...
 
> it is fair to pay for good software, right?
yes
> 70 bucks is a bit high, but I think it deserves it...
I don't, but if you do, then yeah pay for it
if I actually did much webdev, it might be worth it
 
5:16 AM
Just wanted to say thanks @Jon Got my pathfinding working :)
Even if my implemantion is garbage
Sublime isn't worth 70 bucks imo
Especially when WebStorm is a full blown IDE and asks for a lot less..
 
but does webstorm let you type in multiple places at once? :O
 
The question is: Do I really need to?
 
yes, always
always
 
take my money, then.
 
user92578
5:34 AM
Morning!
 
Night!
 
user92578
I'm so sad that I can't attend Ludum Dare
 
@BlueBug I'm tempted to pay for Sublime, just not right now lol, need to sell more copies of my game first lol
@VaughanHilts I've tried WebStorm and other JetBrains IDEs but they always bog down and get slower and clunkier, is a shame :( been a couple of years though, maybe I'll try again
 
hurhurhur that sounds like my case as well. I will surely pay for it, once I get to make money with my code lel.
 
@Chris I like IntelliJ the most out of the lot, don't really use WebStorm as much
 
5:42 AM
@BlueBug At least clicking Cancel isn't too much of a hindrance
@VaughanHilts Ah yep, but yeah same engine more or less in the back eh? I think I've tried a couple flavours but they would become crippling slow for me
 
aye, and the fact that they let you continue to use actually promotes the chance that the user will consider&pay for their product, if they arbitrary halted the program, I would have switched to different editor.
 
@Chris What kind of specs is your dev machine?
 
@BlueBug For sure, it's a good implementation
@VaughanHilts Well, 2 years ago it was an AMD64 dual core 3.1GHz, and I still have it... but atm I've a new MacBook Pro so might be a different story :D
 
#IcyDefiance it's a really sweet editor for javasccript/html/python. I am yet to find any other better editor for those languages.
 
Always partial to Notepad++ and sometimes NetBeans on Windows
but yeah, Sublime is nice
 
5:48 AM
I run an i7.. so I guess it's not something I notice :)
Call me a pussy, but I really love IDE features... a text editor just isn't enough for me. :( Especially when INtellisense has spoiled me for so long
 
I do love intellisense... when it's quick and reliable lol.
Sublime has a half-decent implementation of it with some Unity JS plugins... MonoDevelop is really clunky so I've given up on that
 
The two things I use an IDE for is auto complete to learn an API \fast\ and a good, integrated debugger
Honestly, debugging JavaScript can be a hellish thing.
 
Unity's editor gives me errors if the code doesn't compile - a quick double click of the error message and it loads the file and jumps to the line in question

I have a lot of practise debugging JavaScript from creating Chrome extensions heh
also love Unity's documentation cuz it's pretty quick to pick up on, but yeah I know most of the functions I need off by heart these days
autocomplete's just a great time-saver :D
 

« first day (1360 days earlier)      last day (3666 days later) »