Alias, JiTR and Spunge!

Project news galore!

Alias
I have been using linux in the labs rather a bit lately at uni, doing most of the work in the terminal. So after a while I got annoyed when I went to windows and ran ls instead of dir.

If only there was a way for me to have an alias-like command for windows like there is in linux and mac, thought I. And after a breif google I found a few ways to do it. But why not fiddle with a batch file to make my own!

So here it is: http://software.palmnet.me.uk/module/alias

JiTR
JiTR has been seen before by a few Palmnet readers. Only before it was QTR and never really worked properly!

The update came when a guy on my corridor left his USB stick with me when he went out, foolish mistake to make.

I got the old QTR source and changed it so instead of simply replacing set words with set word replacements, now it would randomly replace any word typed with a word chosen at random from a random word list. It ended up that 10% of the words he would type would be altered to things like "moo" or "underpants", and much hilarity would ensue as he tried to explain his computer problems with his friends/family on MSN.

Unfortunately the plan backfired as UAC on vista flagged it up as I installed it on his PC so it would start running every time the PC started. But I updated the code after that late night prank just for you lot.

Now it can do random replacements as well as set replacements, and unlike QTR, this thing works rather well! Though it is still kept hidden so it can be used for pranks too.

Feel free to give it a whirl: http://software.palmnet.me.uk/module/JiTR

Spunge
Yup, Spunge is still being worked on. Shockingly.

Not much left to do now really, just a few tweaks left to do and I still have to start the file manager bit, but the rest is done and working. Will post more about that soon hopefully. In the mean time, have a snippet of code:

  1. <?php
  2. $page_id = 'Index';
  3. include "methods/page_render.php";
  4. ?>
That's all the code Spunge will need to make a page. Awesome eh? :)


JS, PHP, API's, AJAX, JSON...web 2.0 keyword time!

So, long time no post, coming up to 1 month now.
However, 10 days early I'm posting regardless of the little amount of interesting stuff I have to blog about.

Javascript Testbox
Well, part of my course here in wintery ol' Loughborough is a module called "Programming for the world wide web", which starts off with JavaScript. Not very fun really as the lecturer seems insanely dense and the teaching material is about as good as giving a 2 year old a chinese recipe book to try and learn the alphabet!

So, as I'm an evil and stubborn kinda guy I decided rather than to complain or perhaps just ignore whatever he said I'd write my own system to beat his. My system would kick arse and be standards complient while doing it too!

Comparrison (Mine on top, His below):
JS Testbox comparrison

As you can see, mine uses the spunge theme, as that's what I had laying about at the time. It has nice looking buttons, silk icons, enough JavaScript to sink a ship, error reports, lessons, an output box to save on annoying alerts, syntax highlighting thanks to codepress and a bunch of functions already written for things like AJAX and outputting arrays.

His testbox is a textbox and a button on a yellow background...that's it. Awesome...or not.

Anyway, the lessons on my system aren't really written, apart fromt he first which was done in a hurry at 4am after an all-nighter so I could test the lesson system. I will write more when I can, but basically, my system rocks, his fails.

And if you want to use my JavaScript testbox you can find it here: http://sandbox.palmnet.me.uk/testbox/js_tester/

Codebox updates
As the title says with all it's jargon I did some PHP too, I wrote a little API.

If it was secure I would put it up here for fellow people to tinker with, but it was written in a hurry and the code is a complete shambles, but a working shamble never the less.

Basically I wrote a little API for the codebox so I can send scripts from the JS testbox to be saved on the codebox, and then a little search and open function on the API so scripts can be loaded back into the testbox with the use of AJAX. Well, AJAJ as I used JSON and not XML.

I also fixed a bug or two on the codebox but forgot to remember what! Something about plus signs going AWOL when saving and a little security fix was added too I recall.

Other stuff
Not much else has happened geek-wise. We have a little LAN set up in my halls on my corridor which is fun, UT2004 only so far though. Might start to branch out into other games soon though as not everyone likes FPS.

I might also try and crack out C++ or similar and make a mini game for the LAN too, perhaps something similar to duotris but for multi-player. Maybe even a little RPG-type thing if I can.

Not made any stand-alone apps for ages so that might be good fun ^^

If anyone else who reads this has any ideas on things to code to keep my mind active then please post away! All ideas will get coded at one point...hopefully :3




Page :  1