xuedi 的 blog
A BLUG Spammers BLOG

Archive for the ‘blug_planet’ Category

N900: partitioning

Thursday, March 11th, 2010

There are some good guides in the wiki, but they use sfdisk and you have to calculate the blocks yourself, what a pain, here is the way how to install fdisk on tn N900

cd /root
wget http://ftp.de.debian.org/debian/pool/main/u/util-linux/util-linux_2.13.1.1-1_armel.deb
dpkg-deb -x util-linux_2.13.1.1-1_armel.deb root
cp root/sbin/fdisk .
rm -r root/
rm util-linux_2.13.1.1-1_armel.deb

In general it from huge advantage if you have a MicroSD card, then you can copy your MyDocs and the /home stuff first and can delete both partitions, after reboot you are totally free to repartinion as you like, after that mount the new partitions, copy the backup back where they belong and reboot again. It worked well if you change the design, for ex. have the vfat on the secon part, but some 3rd party< programms might not like it, so better keep it: part.1=cfat (MyDocs), part.2=linux (Home), part.3=swap. my actual partition table looks like this:

1. 3G vfat
2. 27G ext3
3. rest swap

N900, too much fun

Thursday, March 11th, 2010

Finally i got my N900 and the first think i tried to do is to swap the 27G (vfat) with the 2G (ext3) partitions, went good so far, but then i messed up and reboot by accident (wrong terminal, wanted to shutdown another machine) and my N900 starts crashing on the initial start (inf. loop), now i need not even flash the normal firmware, but do a full overwrite and reset the whole internal memory card, how embarrassing …

I think this time i got for no vfat and sawp at all, just create a single ext3 over the 32G (minus the 256) and do the sawp as well as the vfat (needed for the camera) in the file system via loop device. So then i will be able to resize them dynamicly in care i need more space for photos or bigger swap if i like to run apache ^^

Filesystem: 32G ext3
- 1,5G /swap
- 1,5G /vfat

I am btw extremely surprised by the speed of the 900 compare to the 800 series, the only sad point is a little offset in the map software.

xuedi

working again on my game

Tuesday, March 9th, 2010

History

long time i did not do anything on my game, i had the idea already in 1999. I had always time where i developed a lot, then ot boring and stoped, after a while i found a new better fitting library and i rewrote the whole shit, that happen about 11 time … so almost a rewrite a year, now i had a chat with a fellow BLUG’er and got some new inspiration. This time i will do it the real way, write a road-map first, and do the easy stuff first and then continue, so i wont stuck in reinventing a HTML kind of parsing and browsing system and give up at the end.

Idea

The idea itself did not change for a long time, its a MMORPG where the character is a spaceship witch is highly customizable it will be cross platform and the inicial server will deal with 1024 clients. It will be a one universe game, no instances, some basic components are:

  • allegro 4.9 (alias 5 based)
  • 2D game more comic than realistic look
  • using raknet network library (interesting fair license)
  • own window system
  • realtime action
  • influence by eve online
  • free and open-source not sure what license yet
  • C++ based (server & client)
  • 3D client possible later
  • open network protocol for 3rd party clients

Roadmap

This is just an pre road map, more an idea collection first step first i will do the basic server client communication with some chat system, then the serves object handling and then the clients object display, following that the objects attributes as well and the client interaction with objects over the server, then its already 2020 and i will think about the rest ;-)

My chat with jabberwacky

Friday, February 5th, 2010

I just was searching through the web and found this learning chatbot, after talking to him for 10 min and he told me about very interesting stuff (He believe that pigs can fly, but still don’t know homer simson) i got some very amazing result that i really did not expect:

[..] long chat [..]
he: You are the one who is confusing.
me: Really?
he: Yes, really.
me: Heng! Ni tau jian!!
he: Shen me ?

This bot really understand girlish Chinese slang!

Have fun chatting: http://international.jabberwacky.com/

Cheers
xuedi

my page got hacked

Wednesday, February 3rd, 2010

Well, i luckily call myself a programmer and not admin, so i don’t feel to bad about what happend ^^

Today i noticed that my Firefox plugin NoScript reported a script that should be executed at my blog, as its my blog i know i never add such a thing. So i checked and now the one year not updateing my WP hit back straight in my face, i was hacked :-(

After checking my server i could confirm that it is just a WP hack (hopefully), most likely i cough one of these WP worms that a recently going around for old WP installations. It was anyway time to do a fresh reinstall, this time i decide to install straight out from the SVN, not the trunk, but the last stable, now i just need to do:

svn co http://core.svn.wordpress.org/tags/2.<new release> .

to keep up to date, i also installed some interesting plugins, and paranoid as i am now read the code in detail of all that plugins ;-)

hopefully this will keep a while running. Soon i will add the old posts as well, and try to post a little more often than before.

Cheers
xuedi