[QUOTE=leontodd;25918249]Whoa! That has everything to do with programming![/QUOTE]
They mention using emacs, so it is! :smugdog:
[QUOTE=TheBoff;25920888]You know by a strange coincidence, I was just planning to write some code to do exactly that! Thank you for this warn, otherwise I would have had to perform a highly inconvenient restart operation![/QUOTE]
[img]http://smileys.on-my-web.com/repository/Love/bed-032.gif[/img]
[QUOTE=likesoursugar;25920846]NEVER EVER DO THIS
[code]
while(1) {
int *a = new int[1000];
}
[/code]
I can hardly type this and I need to restart my computer.[/QUOTE]
Why did you do this...?
[QUOTE=BlkDucky;25921162]Why did you do this...?[/QUOTE]
To see how memory leaks can affect my computer, for fun ofc.
[QUOTE=likesoursugar;25921324]To see how memory leaks can affect my computer, for fun ofc.[/QUOTE]
Run that in valgrind, :v: at the numbers.
[QUOTE=likesoursugar;25921324]To see how memory leaks can affect my computer, for fun ofc.[/QUOTE]
Have you ever heard the expression "Curiosity killed the cat" ?
have you ever heard the expression kill PID
[QUOTE=Dotmister;25913464]If this is for a non-commercial project, I'd recommend Awesomium.
[url]http://www.khrona.com/products/awesomium/[/url]
Check out the demo, and the samples, it's really easy to use and as powerful as Chrome.[/QUOTE]
I fucking love you.
[QUOTE=Soda;25922035]have you ever heard the expression kill PID[/QUOTE]
kill `pidof <executable name>`, even
[QUOTE=simie;25914631]Working on map generation for my RTS..
[img_thumb]http://cl.ly/0f3067e8f60475d2b958/content[/img_thumb]
[/QUOTE]
Did you make the terrain out of voxels?
[QUOTE=esalaka;25922493]kill `pidof <executable name>`, even[/QUOTE]
ever heard of pkill?
[QUOTE=thelinx;25923110]ever heard of pkill?[/QUOTE]
ever heard of killall?
Ever heard of not running shitty programs?
killthread
Does anyone know if notch ever released the code for Minecraft Classic?
Or does anyone know of any open source Java written FPS games?
[img]http://anyhub.net/file/34capture.png[/img]
Finally, no more hurt.
So sublime is pretty cool. I might buy it if it weren't for the complete lack of documentation.
[QUOTE=Robber;25917565]Because I'm so incredibly original I'm making a Minecraft map renderer again. This time I'm using OpenGL though:
[media]http://www.youtube.com/watch?v=IBLafMuGUY0[/media][/QUOTE]
[media]http://www.youtube.com/watch?v=IYtXWhC2e2M[/media]
;)
[QUOTE=likesoursugar;25920846]NEVER EVER DO THIS
[code]
while(1) {
int *a = new int[1000];
}
[/code]
I can hardly type this and I need to restart my computer.[/QUOTE]
Depending on the language, Garbage Collection might kick in.
If you really want to suffocate your computer to death, use this:
(It's C)
[code]
while(malloc(1024));
[/code]
Open Task Manager (Performance tab) and run the program. Watch the Memory graph go up until you crash.
If you really want to get creative, you can use that to make a triangle wave in Task Manager. Just do something along the line of this:
[code]
void* allocs = malloc(1024 * 4);
int i;
while(1) {
for (i = 0; i < 1024; i++)
allocs[i * 4] = malloc(1048576);
for (i = 0; i < 1024; i++)
free(allocs[i * 4]);
}
[/code]
This code is untested, but I've achieved it before. It's pretty fun.
You can even try to make a sine wave.
Square waves are easy though...
Anyone use Sublime? I can only get snippets to work half the time. Sometimes I push tab and nothing happens.
I use Sublime Text, and I can't say much bad about it. It's a little too dark but I can get used to that.
[url]http://megaswf.com/serve/68916/[/url]
I've got this customizable character thing, I just don't know what to do with it.
[IMG]http://filesmelt.com/dl/Screenshot10.png[/IMG]
Woo, binding SFML to Lua.
My favorite media library in my favorite language :)
[QUOTE=Parakon;25928161][url]http://megaswf.com/serve/68916/[/url]
I've got this customizable character thing, I just don't know what to do with it.[/QUOTE]
Side-scrolling RPG or something?
[editline]8th November 2010[/editline]
[QUOTE=Siemens;25928430]I'm learning C++ :eng101:
[cpp]
#include <string>
#include <iostream>
#include "hue/console.hpp"
#include "hue/color.hpp"
#include "TypeHandle.hpp"
#include "ITypeInstantiator.hpp"
#include "HueInstantiator.hpp"
int main(void)
{
(*CreateTypeHandleFromType<hue::console>(new HueInstantiator()))->output << "Hello, world!" << std::endl;
}
[/cpp][/QUOTE]
Where did this hue thing come from? I've seen it a lot lately...
Oh and int main should return something. And that void isn't needed.
[editline]8th November 2010[/editline]
[QUOTE=Siemens;25928430]I'm learning C++ :eng101:
[cpp]
#include <string>
#include <iostream>
#include "hue/console.hpp"
#include "hue/color.hpp"
#include "TypeHandle.hpp"
#include "ITypeInstantiator.hpp"
#include "HueInstantiator.hpp"
int main(void)
{
(*CreateTypeHandleFromType<hue::console>(new HueInstantiator()))->output << "Hello, world!" << std::endl;
}
[/cpp][/QUOTE]
Where did this hue thing come from? I've seen it a lot lately...
Oh and int main should return something. And that void isn't needed.
Edit: Double post, oh noes.
[QUOTE=thelinx;25912632]Can I ask for some source code on that? Maybe you can post it on the LÖVE forums?
I'm not the only one who'd appreciate it.[/QUOTE]
I'm using a compiler app written in C# that pretty much converts the XML layout into a Lua table. Then I just simply 'require' the map .lua file and process the table as needed. The map file ends up looking something like:
[img]http://gyazo.com/cfc2c1410c85db3419227a80609c224d.png[/img]
If you're still interested in using it, I can ask my friend who wrote it for me if he wouldn't mind me releasing it.
[QUOTE=BlkDucky;25928459]Side-scrolling RPG or something?[/QUOTE]
Nah, it has to be a top-down kinda thing, and it'll most likely be an RPG, but I don't know whether to base it in space, modern day or pirates n shit
[QUOTE=Parakon;25928742]Nah, it has to be a top-down kinda thing, and it'll most likely be an RPG, but I don't know whether to base it in space, modern day or pirates n shit[/QUOTE]
Space pirates!
[editline]8th November 2010[/editline]
In the modern day.
[editline]8th November 2010[/editline]
In the modern day.
[editline]8th November 2010[/editline]
Echo.
[editline]8th November 2010[/editline]
Echo.
[QUOTE=BlkDucky;25928459]
Where did this hue thing come from? I've seen it a lot lately...
Oh and int main should return something. And that void isn't needed.
[/quote]
It's my color printing module available [url=http://github.com/mnmlstc/hue]here[/url]
C++ does not require main to return something.
Also while that `void` is technically not necessary, there's nothing wrong with explicity over implicity. :v:
On another note, I finished writing the documentation for [url=http://github.com/mnmlstc/dao]dao[/url].
Next thing I release should be a threading/coroutine library. Might end up being VS2010 though, because I'm going to try to use the new Concurrency runtime. (it's pretty damn awesome :D)
[QUOTE=Chandler;25928807]It's my color printing module available [url=http://github.com/mnmlstc/hue]here[/url]
C++ does not require main to return something.
Also while that `void` is technically not necessary, there's nothing wrong with explicity over implicity. :v:
On another note, I finished writing the documentation for [url=http://github.com/mnmlstc/dao]dao[/url].
Next thing I release should be a threading/coroutine library. Might end up being VS2010 though, because I'm going to try to use the new Concurrency runtime. (it's pretty damn awesome :D)[/QUOTE]
I said should. It doesn't NEED to, but it seems to be good practice.
Sorry, you need to Log In to post a reply to this thread.