Category Archives: Software

How to make a network game of Starcraft without Battle.net

I and few colleagues at the university, old school gamers :) decided to play Starcraft Broodwar over the net. The idea was to create our own privite game without accessing Battle.net servers. This scenario is currently unavailable because there is no option to set the IP address of the server. So after some googling and tryign various solutions I found Battle.LAN program. It’s a small app that was what we are looking for.

Battle.LAN

So how this whole thing works?

First you shoud have Starcraft Broodwar version 1.14 or Starcraft version 1.09 or higher. Your firewall (if you have one) shoud allow connections on UDP port 6111. Here is how to enable this port if you are using GNU/Linux machine as your firewall/router:

iptables -t nat -A PREROUTING -o $internet_connection_dev_here -p udp –dport 6111 -j DNAT –to your_internal_pc_ip

In the IP Address box add your Internet IP addres (not local) and click the “Add” button, repeate the same with the IP’s of all the game players, click “Save” and then start. Minimize the application if you like and start Starcraft or Broodwar, then under “Multiplayer” select “Local Area Network (UDP)”, if everithing is ok in the “Game” list all available games shoud be listed. Select one and enjoy :)

Download Battle.LAN from here.

Sylpheed fast and light mail client part 1

From long time I was thinking to write down my impression of using Sylpheed mail client. So here it is.

The story
First heard of Sylpheed form a friend on our regular GNU/Linux Geeks meeting, I was looking to change Evolution with something light and functional. And to get rid of Evolution Data Server and all that stuff eating RAM espesialy swap space and doing nothing. So when I was back home I done:

paskov@oziris(2):~> equery depends evolution && equery depends evolution-data-server && equery depends evolution-webcal

to see wich packages depends on evolution and friends.

The equery reply was:

[ Searching for packages depending on evolution… ]
gnome-base/gnome-2.12.2
[ Searching for packages depending on evolution-data-server… ]
app-office/openoffice-2.0.0
gnome-base/gnome-2.12.2
gnome-base/gnome-panel-2.12.2
gnome-extra/evolution-webcal-2.4.1
mail-client/evolution-2.4.2.1
net-im/gaim-1.5.0
[ Searching for packages depending on evolution-webcal… ]
gnome-base/gnome-2.12.2

I opened my /etc/make.conf file and added a global USE flag -eds.

Then emerge -C gnome (it’s virtual package containing all components of GNOME desktop) evolution evolution-webcall evolution-data-server && emerge –update –deep –newuse world.

While I was waiting applications wich depends of already removed packages to be recompiled and system to be updated, I opened another gnome terminal tab and typed su to become root and then echo “app-mailclient/sylpheed ~x86″ >> /etc/portage/package.keywords wich will tell emerge that I want to use not latest stable version of Sylpheed but latest available version in portage tree. In other words to unmask the masked versions of app-mailclient/sylpheed.

After that I typed emerge -av sylpheed wich sow me the available use flags for sylpheed package an ask me If I want to emerge the package. Since all USE flags wich I needed was activated I tell portage to proceed with the operation. After 2 – 3 minutes sylpheed was compiled and ready to use on my system.

End of part one…

Access ext2 and ext3 partitions from Window.

Because of the tasks I have to do at the university, I was forced to install Windows operating system on one of my PC’s. But shortly after the instalation I needed acess to my documents, music, projects and other stuff wich was on my GNU/Linux partitions. And then after a short googling, I found this exelecnt program called Explore2fs.

Explore2fs is a utility wich allow’s you to view the content of your’s ext2 or ext3 partitions under Windows(R). It have Explorer like GUI and and ability to save files to your Windows partition. Explore2fs is released under the terms of GNU Genereal Public License.

Explore2fs web site is: http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm.

Ефективност и използваемост за потребителите.

До сега не се бях замислял над това какво значат ефективността и използваемосттта на даден софтуеър за неговия успех. Това са можеби двете най-важни крачки към успеха, на софтуеърът ориентиран към потребителите, и двете неща които приложният програмист (application developer) трябва знае добре. Кодът трябва да е ефективен, да се използват различни алгоритми за съкращаване на времето изискващо се за извършване на дадена операция. Макар днешните компютри да са много бързи, по-бързи от тези на които започвах своя път, все още има нужда от ефективност и време спестяване при изпълнение на приложението. Благодаря на хората от “Клуб Компютър”, които ми разкриха колко е важно кодът ти да бъде ефективен. Другата важна точка над която се замислих днес е дизаинът на графичния интерфеис.

Когато се създава графичен интерфеис, е необходимо тои да бъде изграден от гледната точка на потребителите, не от гледната точка на програмиста. Защото разработчика намира за функционален един тип интерфеис, а потребителя друг, важно е да се работи в тясно сътрудничество с потребителя, важно е да уважаваш и изслушваш неговите искания и питания. Свободния модел на разработка на софтуеър помага точно за това, тои създава точно тази близост, м/у разработчик и потребител. Пример за това е проекта GTodo, този проект започна преди повече от година, и по-време на активната му разработка аз бях свидетел на една обширна дискусия на тема, дизаин на графичния интерфеис, в която разработчика на приложението в продължение на седмица си общуваше с потребителите за това как да изглежда приложението визуално, е разбирасе при такива малки проекти, ефективността не е от голямо значение, но все пак се говореше и за това.

Със всяка изминала година все повече, харесвам отворения модел на разработка на софтуеър, а преди да започна бях напълно скептично настроен, подсъзнателно си казвах: “Това да споделяш кода си с другите е чисто пропиляване на идеи”, да времената от тогава до сега се промениха много, идеята за свободен софтуеър вече ме е обзела изцяло.