I signed up for Software Science at a university for next year.
They are going to teach me Java.
I tried to find another university, but they ALL said they will going to teach me Java.
Have mercy on my soul :smith:
[editline]19th January 2011[/editline]
[QUOTE=nekosune;27521715]i meant via == whch just about every other language does. and because it is natural way to assume it works, well thankyou, am back on track now.[/QUOTE]
It doesn't in C :downs:
[QUOTE=Shammah;27521733]I signed up for Software Science at a university for next year.
They are going to teach me Java.
I tried to find another university, but they ALL said they will going to teach me Java.
Have mercy on my soul :smith:
[editline]19th January 2011[/editline]
It doesn't in C :downs:[/QUOTE]
Hence why I said about every not just every, though I believe C has the weirdest string support anyway.
[QUOTE=nekosune;27521781]Hence why I said about every not just every, though I believe C has the weirdest string support anyway.[/QUOTE]
IRC C strings are just Char arrays
I've decided to go through with this phone location tracker. My idea is to transmit the coarse location every time it changes (with a minimum interval configured by the client) and send out the fine location when requested from the website. As it doesn't use SMS, your only costs are network rates, although it should use a minimal amount of data.
Any suggestions?
[QUOTE=Richy19;27521836]IRC C strings are just Char arrays[/QUOTE]
Yeah, null terminated, meaning have to deal with them weirdly.
[editline]19th January 2011[/editline]
[QUOTE=Overv;27521878]I've decided to go through with this phone location tracker. My idea is to transmit the coarse location every time it changes (with a minimum interval configured by the client) and send out the fine location when requested from the website. As it doesn't use SMS, your only costs are network rates, although it should use a minimal amount of data.
Any suggestions?[/QUOTE]
on request from the website it starts to log phone calls? not the content but the number/time and send them too?
[QUOTE=nekosune;27521879]Yeah, null terminated, meaning have to deal with them weirdly.[/QUOTE]
Null-terminated strings are incredibly easy to deal with. \0 marks the end of the string and that's it – the only 'difficult' thing is allocating a suitably sized array for said string.
[QUOTE=esalaka;27521956]Null-terminated strings are incredibly easy to deal with. \0 marks the end of the string and that's it – the only 'difficult' thing is allocating a suitably sized array for said string.[/QUOTE]
It's probably just me then, I always found some of the more difficult parts, with string manipulation. it is one reason why I prefer C++. Personal preference mostly really however.
[QUOTE=nekosune;27521879]on request from the website it starts to log phone calls? not the content but the number/time and send them too?[/QUOTE]
No, on request from the website it starts logging the fine (gps) location on intervals of every 30 seconds or less until you tell it to stop that. As the phone sends its location to the server, the server replies with a stack of commands the phone has to execute, like "change interval and location accuracy".
[QUOTE=Overv;27522028]No, on request from the website it starts logging the fine (gps) location on intervals of every 30 seconds or less until you tell it to stop that. As the phone sends its location to the server, the server replies with a stack of commands the phone has to execute, like "change interval and location accuracy".[/QUOTE]
That was a suggestion, like you asked for, not what I thought it did.
[QUOTE=nekosune;27522332]That was a suggestion, like you asked for, not what I thought it did.[/QUOTE]
Oh, I didn't really understand the sentence then. That's a good idea for later.
[QUOTE=Overv;27522491]Oh, I didn't really understand the sentence then. That's a good idea for later.[/QUOTE]
Maybe make it log when its at the same location for more than say 2 hours.
Chances are if its been stolen and is at 1 location for more than 2 hours its either at the robbers house or work place
I'm learning Django to take a healthy break from games. I guess that is more of a web dev thing but whatever.
[QUOTE=Richy19;27522656]Maybe make it log when its at the same location for more than say 2 hours.
Chances are if its been stolen and is at 1 location for more than 2 hours its either at the robbers house or work place[/QUOTE]
Yes, it should also get a fine location automatically when it's at the same place for a long time.
Does anyone know any program to write code together? I had one but can't remember the name "/
[QUOTE=likesoursugar;27525045]Does anyone know any program to write code together? I had one but can't remember the name "/[/QUOTE]
Page 44
excuse me but
Fucking collision detection, i absolutely bloody hate you
>.>
:v:
Game is going badly :v:
[QUOTE=Icedshot;27525418]excuse me but
Fucking collision detection, i absolutely bloody hate you
>.>
:v:
Game is going badly :v:[/QUOTE]
at least you are that far....i am still trying to get a working camera system.....
I skipped the fun collision detection part and used Box2D.
Lazyness works.
[QUOTE=eXeC64;27526466]I skipped the fun collision detection part and used Box2D.
Lazyness works.[/QUOTE]
Yeah. itd be fine if i wasnt going for the deformable terrain outlook, but unfortunately being able to screw around with it adds in some hassle.
[editline]19th January 2011[/editline]
Ok, i came up with a great solution
Move the player
if the player ends up somewhere fucked up, move the player back
:v:
[cpp]public struct Quadratic
{
public double a, b, c;
public override string ToString()
{
return String.Format("a = {0}, b = {1}, c = {2}", a, b, c);
}
}
static class SeqQuadReg
{
static long sumxp(List<int> l, int pow)
{
// sum x^p
long n = 0;
for (int i = 0; i < l.Count; i++)
n += (long)Math.Pow(i, pow);
return n;
}
static long sumx2y(List<int> l)
{
// sum x^2*y
long n = 0;
for (int i = 0; i < l.Count; i++)
n += i * i * l[i];
return n;
}
static long sumxy(List<int> l)
{
// sum x*y
long n = 0;
for (int i = 0; i < l.Count; i++)
n += i * l[i];
return n;
}
static long sumy(List<int> l)
{
// sum y
return l.Sum();
}
static public Quadratic Get(List<int> l)
{
double s4 = sumxp(l,4), s3 = sumxp(l,3), s2 = sumxp(l,2), s1 = sumxp(l,1);
double s0 = l.Count, sa = sumx2y(l), sb = sumxy(l), sc = sumy(l);
// holy fuuuuuuuuuuuuuuuck
return new Quadratic() {
a = (sa*(s2*s0-s1*s1)-sb*(s3*s0-s1*s2)+sc*(s3*s1-s2*s2))/(s4*(s2*s0-s1*s1)-s3*(s3*s0-s1*s2)+s2*(s3*s1-s2*s2)),
b = (s4*(sb*s0-sc*s1)-s3*(sa*s0-sc*s2)+s2*(sa*s1-sb*s2))/(s4*(s2*s0-s1*s1)-s3*(s3*s0-s1*s2)+s2*(s3*s1-s2*s2)),
c = (s4*(s2*sc-s1*sb)-s3*(s3*sc-s1*sa)+s2*(s3*sb-s2*sa))/(s4*(s2*s0-s1*s1)-s3*(s3*s0-s1*s2)+s2*(s3*s1-s2*s2))
};
}
}[/cpp]
specific-purpose quadratic regression. not to hard to refit for general purpose.
More mario!
[img]http://maurice.workrum.net/toortle.png[/img]what is your head doing inside the ground, turtle? Your head is not ground-compitable.
You can now kill enemies and get killed by enemies. Also die by falling in a hole.
Dying will just restart the level because I have nothing else yet.
Editmode is now kind of seperate by pressing E, it won't spawn enemies though. Save with K.
And if you download NOW you also get turtle shell kicking and stuff related to it!!!
[url]http://maurice.workrum.net/marioR8.zip[/url]
If it crashes, delete users/you/appdata/roaming/LOVE/mario/map.txt. Again it's not my fault.
If it still crashes, then it's totally my fault and you should give me info.
[editline].[/editline]
I just noticed that the version I posted 2 days ago didn't have enemies at all.. so that's new too I guess! Woooh.
[QUOTE=Rohans;27528371]Needs faster acceleration! D:[/QUOTE]
Press and hold C to sprint
I did raise it after Naelstrom told me it was too low.
And I'm pretty sure the walk acceleration is fine too. I'll check again.
Just finished getting the perlin noise program to a state where im satisfied with it.
So without further ado.
Perlin noise now with 100% more UI
[img_thumb]http://img529.imageshack.us/img529/3766/sfdfe.png[/img_thumb]
A friendly note: it's "adieu", not "outdo"
lol I think you mean ado
[QUOTE=geel9;27529179]A friendly note: it's "adieu", not "outdo"[/QUOTE]
Without further goodbye? Doesn't make sense bro.
[QUOTE=Maurice;27528252]More mario!
[img_thumb]http://maurice.workrum.net/toortle.png[/img_thumb]what is your head doing inside the ground, turtle? Your head is not ground-compitable.
You can now kill enemies and get killed by enemies. Also die by falling in a hole.
Dying will just restart the level because I have nothing else yet.
Editmode is now kind of seperate by pressing E, it won't spawn enemies though. Save with K.
And if you download NOW you also get turtle shell kicking and stuff related to it!!!
[url]http://maurice.workrum.net/marioR8.zip[/url]
If it crashes, delete users/you/appdata/roaming/LOVE/mario/map.txt. Again it's not my fault.
If it still crashes, then it's totally my fault and you should give me info.
[editline].[/editline]
I just noticed that the version I posted 2 days ago didn't have enemies at all.. so that's new too I guess! Woooh.[/QUOTE]
Awesome.
[QUOTE=geel9;27529179]A friendly note: it's "adieu", not "outdo"[/QUOTE]
It's ado.
[QUOTE=geel9;27529179]A friendly note: it's "adieu", not "outdo"[/QUOTE]
did they teach you that at veritas?
Sorry, you need to Log In to post a reply to this thread.