Archive for the ‘Coding’ Category

yEd – Graph Editor

Monday, November 30th, 2009

Just found a great piece of software : yEd.

It’s the best graph editor I’ve found after about an hour of searching the web. It’s free, it looks amazing, exports to different formats ( some XML-based) and most importantly the usage is straightforward and fun.

I’m trying to create a network of waypoints for NPCs in a 2d game. A pretty basic AI: Lil guys walking around, following paths and doing stuff. There’s a ton of graph editors out there but most of them are very very academic, hard to use and overly complex – I’ve tried a bunch. yEd really sticks out – It feels like a program that should cost a lof ot money but .. it’s free!

Notepad++: AutoComplete for ASP files

Friday, March 27th, 2009

In case you also have to code ASP pages ( I really don’t like VB but what can you do…)…:

My favorite editor is Notepad++ because its fast, and has some cool features, like the styler. It also comes with a Auto-Completion feature. See this blog post on how to switch it on.It doesn’t work for *.asp files with the standard settings. But there’s a quick way to fix this:

All you need to do is go to C:\\Program Files\\Notepad++\\plugins\\APIs and copy vb.xml to asp.xml and restart Notepad++.

Another thing that I did : I deleted all functions except the ones that I use a lot from the list in asp.xml because I never use 80% of the functions in that list anyways. In addition you can add brackets after functions where you definately need them, e.g. for Replace(). I also added these “XXXXXXXX”s, because this way I can easily double-click-select them and replace these blocks with variables.

So the “R”-part of my asp.xml looks like this:

<KeyWord name=”Public Sub” />
<KeyWord name=”Public” />
<KeyWord name=”QUERY_STRING” />
<KeyWord name=”Response.Write XXXXXXXXXXX & br” />
<KeyWord name=”Response.Redirect” />
<KeyWord name=”Response.ContentType” />
<KeyWord name=”Replace(XXXXXXXX,XXXXXX,XXXXXXXX)” />
<KeyWord name=”Randomize” />
<KeyWord name=”Rnd” />
<KeyWord name=”Round(XXXXXXXX)” />
<KeyWord name=”RTrim” />
<KeyWord name=”ScriptEngine” />

….

These little tricks make writing VBScript code so much more pleasant…

LOL@Android

Monday, November 10th, 2008

I really like developing for Google’s Android Platform.

It’s a fun platform. Check this out:

http://blogs.zdnet.com/Burnette/?p=680

Unbelieveable!