• What are you working on? V4 (HTML ISN'T PROGRAMMING)
    2,003 replies, posted
[QUOTE=Blynx6;18004512]You're a retard. Why do you even come into the Programming forum? You don't do anything but troll. But wait, I can tell what you'll say next. "Why do you even come into the programming forum? You just steal code"[/QUOTE] Ouch. ): Why do you even come into the programming forum? To find code to steal.
Just finished a really nice Pythagoras and Quadratic solver, with different options in each. Also now for practice on arrays I'm doing a Star Wars KOTOR 2 game calculator. :smile:
[QUOTE=efeX;18004689]Ouch. ): Why do you even come into the programming forum? To find code to steal.[/QUOTE] Predictable as ever. Yes I come looking for code to steal, completely. It's so obvious since I don't program C++ shit anymore.
[QUOTE=Blynx6;18004791]Predictable as ever. Yes I come looking for code to steal, completely. It's so obvious since I don't program C++ shit anymore.[/QUOTE] So you're saying you don't steal C++ shit anymore... hmm. What DO you steal? [editline]03:20AM[/editline] whoops I forgot, XNA/C# tutorials. my bad! [editline]03:22AM[/editline] why are you bringing this up again seriously? GeT OvEr It We KnOw The TruTh~ [highlight](User was banned for this post ("Trolling" - Jaanus))[/highlight]
I'm pretty sure blynx is wingless
I´ve fixed my file/image host, it now displays the correct link: [url]http://kweb.clan-host.co.uk/[/url]
[QUOTE=Blynx6;18004791]Predictable as ever. Yes I come looking for code to steal, completely. It's so obvious since I don't program C++ shit anymore.[/QUOTE] At least efeX is funny, you're just an annoying idiot with a big ego. [editline]10:43AM[/editline] and theft skills
[QUOTE=r4nk_;18005012]I'm pretty sure blynx is wingless[/QUOTE] i second that, it's pretty obvious don't you say?
Could you guys have your programming blood fued somewhere else? Thanks to the guy who gave the link to portable python, I'll be sure to check it out.
[QUOTE=ddrl46;18005073]I´ve fixed my file/image host, it now displays the correct link: [url]http://kweb.clan-host.co.uk/[/url][/QUOTE] It points me to [b]web[/b].clan-host.co.uk/ and not [b]kweb[/b]
Just finished finishing touches on my Pythagorean Theorem program. [code]program Project2; {$APPTYPE CONSOLE} uses SysUtils; Var A, B, C, An: Real; Choice: string[10]; FIN: string[3]; Begin Repeat Write('Do you want to find the hypotenuse, the width or the height: '); Readln(choice); If choice=('Hypotenuse') then Begin Repeat Write('Enter a: '); Readln(a); Write('Enter b: '); Readln(b); c:=sqr(a) + sqr(b); If c <= 0 then Writeln('You cannot square root a negative number.'); Until c > 0; An:=sqrt(c); Writeln; Writeln('The hypotenuse is: ',An:3:2); Writeln; Writeln('Press <return> to continue.'); Readln; End Else If choice=('Width') then Begin Repeat Write('Enter c: '); Readln(c); Write('Enter b: '); Readln(b); a:=sqr(c) - sqr(b); If a <= 0 then Writeln('You cannot square root a negative number.'); until a > 0; An:=sqrt(a); Writeln; Writeln('The width is: ',An:3:2); Writeln; Writeln('Press <return> to continue.'); Readln; End Else If choice=('Height') then Begin Repeat Write('Enter c: '); Readln(c); Write('Enter a: '); Readln(a); b:=sqr(c) - sqr(a); If b <= 0 then Writeln('You cannot square root a negative number.'); Until b > 0; An:=sqrt(b); Writeln; Writeln('The height is: ',An:3:2); Writeln; Writeln('Press <return> to continue.'); Readln; End; Writeln; Write('Are you finished? '); Readln(FIN); Until FIN=('Yes'); Writeln; Writeln('Press <return> to continue'); Readln; End. [/code] The program requires some basic knowledge of English, enough that you have to use a capital letter for your first and final choices. Upon a finished result you will be asked if you are done or not. The program also recognises that when you are asking it to square root a negative number, it cannot do it. If you input anything that isn't what the program is asking for, then it will just repeat, or assume you don't know what you're doing and ask if you want to finish. [img]http://img5.imageshack.us/img5/5065/86124952.jpg[/img] Basic, I know...but I like it and it's useful.
You can't get a negative number from the sqr(a) + sqr(b) calculation because any negative number multiplied by itself = positive number. So that "if( c <= 0 ) ..." is useless.
I figured that out moments after I tested it. :v:
Just programmed some collision detection for fun because I haven't done anything like that in a long time. [media]http://www.youtube.com/watch?v=JeywRYzj-og[/media]
Someone kept uploading a image with <script etc> trying to hack my website, if it's you, i've blocked your ip. [editline]02:42PM[/editline] I made some sort of random terrain generator in VB.net [img]http://www.kweb.clan-host.co.uk/image.php?file=9b87aec29b9403807023adb205d93a5fca476253[/img]
[QUOTE=ddrl46;18006401]Someone kept uploading a image with <script etc> trying to hack my website, if it's you, i've blocked your ip.[/QUOTE] Are you making it so that your script reads all of the image file (from a database/filesystem) and writes it to the page as an image (with header) or something? I don't really understand how javascript would be ran. This one time someone uploaded an image to my site with PHP in it and named it <something>.php.jpg (it didn't run obviously) but it had like, eval(some_decrypt_function("pages of encrypted code")); and in the decrypted code was more decrypted code. I couldn't write a script to decode it properly, it either fatal error'd or it was encrypted a ton. Edit: Would anyone like to see the php?
My script just reads the file and echo's it. Javascript works like: [code] <script type="text/javascript"> document.write("Win"); </script> [/code] Can you maybe show your PHP?
[QUOTE=cas97;18006962]Are you making it so that your script reads all of the image file (from a database/filesystem) and writes it to the page as an image (with header) or something? I don't really understand how javascript would be ran. This one time someone uploaded an image to my site with PHP in it and named it <something>.php.jpg (it didn't run obviously) but it had like, eval(some_decrypt_function("pages of encrypted code")); and in the decrypted code was more decrypted code. I couldn't write a script to decode it properly, it either fatal error'd or it was encrypted a ton. Edit: Would anyone like to see the php?[/QUOTE] Maybe you could've found the decoded script using a memory viewer, but post that anyway please.
[QUOTE=Anthony Kiedis;18005158]big ego.[/QUOTE] Ironic.
[QUOTE=VoiDeD;18000170][cpp] #ifdef _WIN32 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) #else int main(int argc, char *argv[]) #endif { [/cpp] Is always an option, I've seen that used in some places. I don't know if it's the preferred or proper way of doing it though. :P[/QUOTE] I don't see a reason for it. I mean instead of outputting stuff to the debug console window just output it to the output window. That is what it is there for.
Iso-World Update [img]http://davidjokinen.com/GameAlpha8.png[/img] Update: -added rocks -added scrolling with arrow keys -Improved AI ==Cutting wood has been improved somewhat ==They try to space out houses ==other small things -while in game hit space to get out and in of "god mode" Yep. Small update. And here is the link to play it: [url=http://www.playisoworld.com/play.php]http://www.playisoworld.com/play.php[/url]
Fuck yeah guru-guru
Being a long time lurker watching episodes after episodes of this epic thread, I thought I'd participate after having registered this account.. :v: (YES, finally used that smiley) [QUOTE=Guru-guru;18008277]Iso-World Update ..awesomeness..[/QUOTE] Doesn't work with google chrome (3.0.195.27) for some reason, every time I try to open it I get a white screen after the applet loads; worked in firefox though (albeit a little laggy).. Some observations: * Scrolling could use some work.. * I hate the way it captures the mouse cursor, I think it should allow the cursor to leave the game screen without scrolling into emptiness, I'm multi-tasking as I'm writing this and I thought it had crashed a couple of times when I switched back to the game only to find a gray screen; made me think it was crashing.. * I wouldn't exactly know about this, but I caught a guy lighting a campfire on a field, looks like a bug to me.. P.S: Thanks to everyone who posts here, best way ever to combat my late 'programmer's block' by putting my coding spirit to shame. I really can't describe the inspiration I get after seeing what other people are working on.
Post your stuff Voodoo you got me interested :v:
[QUOTE=r4nk_;18008961]Post your stuff Voodoo you got me interested :v:[/QUOTE] Well, I'm working on a little project at the moment, I'll post about it once there's something to show. For now, let's say that it involves Google V8, Box2D, SFML and has "Arena" in it's name. Could also use an OpenGL version of scintilla. :ninja:
[img]http://i35.tinypic.com/2w50cjn.jpg[/img] Mainly just updated the backend. Before I had the datatype storing the data which was stupid :P. Not really sure how I should store the data yet. I think I am going to have a class that inherits TreeNode and has a dictionary for data storage. I also plan on allowing you to do things like <int name="StrSize"/> <string name="Str" Length="StrSize"/> Also I am going to have to figure something out for when the same id has 2 different structures.
[QUOTE=high6;18009260]Mainly just updated the backend. Before I had the datatype storing the data which was stupid :P. Not really sure how I should store the data yet. I think I am going to have a class that inherits TreeNode and has a dictionary for data storage. I also plan on allowing you to do things like <int name="StrSize"/> <string name="Str" Length="StrSize"/> Also I am going to have to figure something out for when the same id has 2 different structures.[/QUOTE] Not sure if I'm getting this right, my .Net is a bit rusty, but I'd advise against deliberately tying your data/storage back-end to Windows.Forms.* classes. I'd advice you to only store references to your own data objects using the TreeNode.Tag property, and implement your own data management scheme, your own implementation of a tree class would be good for XML serialization too, best for performance and cleaner encapsulation that way.
[QUOTE=voodooattack;18008936]Doesn't work with google chrome (3.0.195.27) for some reason, every time I try to open it I get a white screen after the applet loads; worked in firefox though (albeit a little laggy)..[/QUOTE] It seems to run under google chrome for me, both the Windows and Linux version. Do any Java applets run for you in Chrome? Also, welcome to the forums.
[QUOTE=voodooattack;18009646]Not sure if I'm getting this right, my .Net is a bit rusty, but I'd advise against deliberately tying your data/storage back-end to Windows.Forms.* classes. I'd advice you to only store references to your own data objects using the TreeNode.Tag property, and implement your own data management scheme, your own implementation of a tree class would be good for XML serialization too, best for performance and cleaner encapsulation that way.[/QUOTE] Well it is just a Dictionary<String, Object> for storing data so that the other nodes have a way to access the data. Although I may need to use something a bit different. But ya, I don't plan on making the inheriting class handle/process/etc the data. I simply just want to implement a field to store the data.
[QUOTE=voodooattack;18008936] Doesn't work with google chrome (3.0.195.27) for some reason, every time I try to open it I get a white screen after the applet loads;.[/QUOTE] Try refreshing. Upon the first page load I got a white screen, so I refreshed and it worked as expected.
Sorry, you need to Log In to post a reply to this thread.