Saturday, 24. November 2007, 07:02:45
java, python, game engine, lonewolf
...

Ok so I originally has this MMORPG game called darkcore, I did much of the artwork and my online friend wanted to help, she would do the writing. I started doing the artwork and 3d modeling and worked on the game in Blender 3D. The problem was network issues and it would have to be opensourced. So I said forget it lets do 2d, the whole point of this game is to make it accessable to almost everyone, small download, large game play. So I worked on the browser to create an ajax'd game engine... Didn't go so well developing for Firefox, Opera, IE6 ... well okay it was going pretty good. I had a decent demo up in hope to finally recuit someone (a pixel artist). She wrote the story, I did the art and programming, and yet no one responded. Well they did, and very positive but no one joined. All those that was thinking about it sucked ass at graphics and just wanted to join for the hell of it.
The game idea died and so did the feeling of the friend too. She was upset I had given up, yet she failed to understand that for ever 1 hour she put into the game, 10 hours of mine went into it. So After months I finally got motivated again but this time work with a group of "artists" (different game), the problem was none of them could draw as well as I could and well let face it im a programmer. I offered to teach them with weekly meetups but that ended in was a pile of weapon art, no story and a few spells. I got a small game engine developed in python but before my breaking point, the engine was too slow and my team was falling apart because they wanted faster results. So yet Another attempted failed.
So here I am yet again, Java equiped and everything on my own. I developed the story, art and ported the game engine from python to Java. I've written up a website, and web apps to help handle development tasks between team members. And in the end, I am all alone.
Monday, 29. October 2007, 10:47:11
mootools, programming, javascript
This was just an old task I wanted to finish and that was to finally learn pathfinding correctly (A* that is). Dumped my old code and read an article on A* and after 5 months it all made since... not like I learned anything new about programming, just that I finally understood it. Its all done in javascript and I used mootools to help with html generation

. Overall I am very happy I finally got around to this, I just wish I understood this before when I was working on the web client for a mmorpg.
Check it out:
http://darkoria.labs.gorilla3d.com/pathfinder.php
Monday, 29. October 2007, 04:31:19
xml, json, php, javascript
...
This is just helpful tips to making you web apps run better. When you are sending data to the browser from php & your server use JSON, but when you are sending data to your server from a browser you might get the idea that json would be idea? Wrong, although it will save you 15% data transfered, the overhead from Php decoding the JSON responce is far slower then using a Xml responce. The example below gave a whole 3 seconds difference between the xml vs json decoding.
Note: Requires Php 5
<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', True);
$xml = "<?xml version='1.0' encoding='UTF-8'?>
<response>
<status>get_auth_token_ok</status>
<auth_token>9byo5bg8d2o3otp0voji0ej0v49bqcmo</auth_token>
<user>
<login>stas@itscript.com</login>
<email>stas@itscript.com</email>
<access_id>453</access_id>
<user_id>453</user_id>
<space_amount>2147483648</space_amount>
<space_used>1024</space_used>
</user>
</response>";
$json = "
{
responce: {
status: 'get_auth_token_ok',
auth_token: '9byo5bg8d2o3otp0voji0ej0v49bqcmo',
user: {
login: 'stas@itscript.com',
email: 'stas@itscript.com',
access_id: 453,
user_id: 453,
space_amount: 2147483648,
space_used: 1024
}
}
}
";
$json = trimall($json);
$xml = trimall($xml);
$time_start = microtime(true);
$json_obj = json_decode($json);
$time_end = microtime(true);
$time = $time_end - $time_start;
echo "Decoded JSON in $time seconds<br>";
$time_start = microtime(true);
$xml_obj = simplexml_load_string($xml);
$time_end = microtime(true);
$time = $time_end - $time_start;
echo "Decoded XML in $time seconds\n";
function trimall($str, $charlist = "\t\n\r\0\x0B")
{
return str_replace(str_split($charlist), '', $str);
}
?>
Saturday, 11. August 2007, 10:37:23
anime, development

I am and have been think of adding the ability to allow people to post and host their own blogs on www.animereign.com. I have a lot of work todo, with adding anime themes and just changing the system to handle multiple admins using one set of files. Hopefully this project wont stall.
Thursday, 9. August 2007, 02:41:16
Your meaning to me is not fetched in fantasy but in the rendition of happiness. This happiness is bound in the hope of a future in our presence. And yet this presence is the rope we shared, has been deeply cut, mainly by my own means, but I have no purpose in letting this rope break. Although a knot will fix the cut, it will forever show and for this I am truly sorry.
My solitude is abut to whom I am, not meaning to corrosively bind my hidden emotions. The preemptive walls we meant for well being, keeping us harbored, have been tainted with belief in each other. And for that I am sorry. I am sorry for our uncertain future, our uncertain present and just the uncertainly uncertainness I have left your mind. For the things we have been through and for the things we will go through I am sorry.
An importance of apology to you,
Joseph Montanez
Saturday, 4. August 2007, 12:00:00
coding, Linux, development, software
...
In the world of wanting information faster, there is no faster way then going CLI. I recently melted my CPU and stuck with a laptop, but I am a web developer so I am the person with 10+tabs (Plus 4 browsers running), Eclipse, Pigeon (6 IM Services connected at once), and music playing. Well on my laptop I can't even get away with a browser with 10 tabs open, so I have to rework how I worked. Now thanks to these CLI's I can work faster without the lag of waiting for information to load.
links2A text browser that supports cookies, javascript and tables. It does a hell of a good rendering job, downloading media, getting past all those ads for the vital information you search for!
$ links2 myspace.com
mplayerListen to music without the graphical interface, it can be a radio station, folder of music... you can even records the radio streams you listen to!
$ mplayer /path/to/music.mp3
$ mplayer /path/to/folder/*.mp3
$ mplayer http://217.71.208.37:8006
porkAIM in a terminal, damn awesome!
$ pork
$ /connect username
$ password: ___________
"Press tab to switch to the buddy list move up/down arrows and press enter to chat"
vimIf vim was a god I would believe in it.
$ vim /path/to/file
$ vim ftp://username@mysite.com//public_html/index.php
$ password: ______________
ircIIIf you hate AIM then IRC all the way, I just wish names were colored and stuff. There are spin offs that use ircII as base-code but I felt like this should be mentioned anyways.
$ ircII
$ /SERVER irc.freenode.net
$ /msg NickServ IDENTIFY mypassword
$ /j #linux
Friday, 3. August 2007, 16:57:21

I figured I'd upload a few of my images from my website here, this blog just got a little too technie and needs some art

I also need to update the header to my own. Yeah thats all for today
Thursday, 2. August 2007, 19:04:24
You think 60c (120f) is hot for a computer, try 112c (233.6 degrees Fahrenheit). That how hot my cpu got every day, it often resulted in my computer restarting and did for 2 years. I got the point of having the casing off and an everyday fan blowing on it to help cool. Well yesterday it started beeping, the kinda beeping you get when you overclock a cpu more then it can handle. So I let it cool, and turned it back on and started doing my work. My computer froze AGAIN and I went to touch my cpu fan & cooler, ice cold... Why would it be ice cold and freeze. I turned it off and back on, starts beeping. I try it again, starts beeping. So I got to touch the cpu heatsink... ICE COLD. So I start to take everything out my computer (I have to just to get to the cpu). and I can't get the heatsink/cooler off... its stuck... So I give it a good YANK and off it comes WITH THE CPU!!! WTF THE CPU CAME WITH IT!!
Yeah.. I'm in tears at this point, the thermal paste seems to have help bind my heatsink to my cpu. I try alcohol to dissolve the thermal paste, but no help. Ok so I dont need my cpu I can buy another but my heat/cooler is the only kind made for the special box and is no longer in production. So I did what anyone would do.. took a hammer and chisel to busted the cpu off my heatsink.
I could have saved my cpu, but given that my computer was so fucked anyways I might was well invest into some new hardware. So Monday when I get payed I will see what I will do.
Wednesday, 1. August 2007, 23:37:20
Design
nice templates you use from other people there guy..
come up with something original
Wow, I guess I am getting popular... The only site I have that uses a design not of my own but someone else is Shabb & Surfin Fire, Shabb is not released nor even near done. So where is this hate coming from? I offer an anonymous way for people to contact me and yeah... I get this and the email address of "me@me.com".
If this guy owned the templates I can understand, but im sure they would have left a valid email address. For www.AnimeReign.com when it first ran it used a template from
http://www.oswd.org/, which went into 2 other designs which I did myself. Creator of the template which I got from
http://www.oswd.org/ expressed some feeling on wishing to be credited, so I did. In web design and development I see so little bashing when it comes to coding, those that have less skills then you will not bash you, just because.
So this leads me to this, whom ever sent that email own up, show yourself, prove that you can design better then me and I will bow to you. I in no way shape or form think I am a "designer" I like drawing and that's about it, layout design is not what I do best.
Tuesday, 31. July 2007, 22:09:25
mysql, JOIN, php, GROUP BY
The next thing I see quite a lot, you want to list all the categories and right next to the category you want to list the number of applications. They fetch all the categories and then after each row then query for a count of all the applications in that category. Figure 1 shows ruff idea of what I mean, while Figure 2 is a much better approach
Figure 1.
$sql = 'SELECT * FROM categories';
$result = mysql_query($sql);
$categories = array();
while($row = mysql_fetch_assoc($result)){
$categories[$row['cat_id']] = $row;
}
foreach($categories as $category){
$sql = “SELECT COUNT(*) AS total_apps FROM applications WHERE cat_id = {$category['cat_id']}”;
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
$categories[$category['cat_id']]['total_apps'] = $row['total_apps'];
}
Figure 2.
$sql = 'SELECT categories.* , COUNT(applications.app_id) AS app_total
FROM categories, applications
WHERE applications.cat_id = categories.cat_id
GROUP BY categories.cat_id';
$result = mysql_query($sql);
$categories = array();
while($row = mysql_fetch_assoc($result)){
$categories[$row['cat_id']] = $row;
}
cat_id |
cat_name |
app_total |
1 |
Accessibility |
1 |
9 |
Accessories |
7 |
7 |
Graphics |
2 |
Showing posts 1 -
10 of 22.