Processing the ideas!

Hey hey, it is a bit late in the night, so I’m going to make this shorter for the sake of my sleep.

There was some time since I did last introduction in Processing. I have had many things to do, so I abandoned it, hoping I will come back to it someday in the future. Awwww, like a tale! 🙂 I almost feel sorry for me! Almost! Anyway, like a good old(young) student I don’t have time to do things I would like, or at least I don’t have enough time… Where is the Processing in this story??? Here it is!

This semester I had to do some seminar on formal languages, automata and language processors. That has to do with computational theory. I had freedom to choose subject of my seminar, and I did. It is about cellular automata. Wolfram’s rules, Rule 30 (not that you would firstly picture in your mind) and Conway’s game of life. Game of life or just Life was very fascinating to me. So fascinating I wanted to make it by myself. I did. I programmed it in C, with the lousy visualization in terminal (with 0 and 1). Then I remembered. Processing! Just the right tool for it!

But wait! I did not know the intermediate techniques for it! That did not scare me, and should not scare you. Very similar to Java. You don’t know Java? Never mind, you will learn it for a short period because it is very intuitive. With knowing the C and Java, and some basics in graphics, programming the game of life took me couple of hours.

Here it is:

Code is quite simple, and I will post it here. Since I don’t like how my wp is formatting the code, I will post link to it, when I figure out how to present it.

At the end, program is not complicated, Processing is not complicated too, but the game is very fun to set and watch.

Bye !:)


Transmission or torrentflux-b4rt|torrent-flux

Huh, finally my wordpress is functional again.

I took some freedom and time, experimenting with torrent flux. For those who are not well informed, torrent flux is a PHP torrent client. Translated better, it is a web torrent client. Ok, if you still don’t get it, you can have it installed on some server, without any window manager (Gnome, KDE,…) and still download files using torrent. Wow, you say! Yes! Isn’t that great. You may ask, could it be installed on Windows? Yes, why not?  But, let me ask YOU a question! Do you want to make your life more complicated than it really should be? 😎 Anyway, all you need is LAMP installed on your server. I used Ubuntu 10.04 LTS server distribution. Installing LAMP is a piece of cake. Installing torrent flux is piece of another, smaller cake! 😀 I’m not going to take you through installation process, although you can ask me any question about it.

Torrent flux GUI is nice. You have everything you would want, when running torrent client. Weeeeell, not everything! Of course, if you are using it once a month, you wont need any neat things you might need if you are using it everyday. Since I upgraded my 8.04 LTS to 10.04, torrent-flux is not functional. I’d have to install it again, but I’m not going to. As I can remember, there was no way you could stop or start more than a one torrent in torrent-flux. It lack some group functions. But hey, it was a great thing when it was made. Anyway, then people made torrent-b4rt. It was upgraded torrent-flux with more options, like those group functions. There were also great thins like general info about upload, download, space on hard disk etc. from the first page torrent-b4rt opened, when you logged in. Nice. Now, I’m not going to talk about advanced properties, but there are many. Lots of thing could be set up in admin panel. From the basic things, which tell torrent-flux how to work, to flux daemon. You can use fluxd (flux daemon) to automate the process of adding new torrents, setting them up and scheduling them. Great! It was the only option for me.

Well it was, until I have found out that Transmission’s web gui is great. It is like, its not the web app at all. To be honest, I haven’t been using torrent on local machine for quit some time! Why not??? Well, since I have dual boot, switching between my OSs would interrupt download 🙂 couldn’t be more simple. When I did use torrent clients, I used kTorrent, deluge, Vuze and even uTorrent with wine! You would be surprised that I left them, but since I have web server, dedicated to web apps development and other stuff, I don’t need them. Where was I…. ah yeas! Transmission’s Web GUI! It is called Clutch. It is written in PHP, HTML and JavaScript. Ajax is so good implemented, that you wont even notice that it is web application. Great! Huh, torrent flux(b4rt) is allso, yeah? Well yeah, but the enjoying in it is little bit more slower. You have to refresh pages, turn on Ajax refresh, and it is still doing reloading page and so on.

You can see that there is a lot of plugins for transmission, but I did not find any use of them for now. You might! So visit and feel free to tell me how did you tweak it.

Bye bye! 🙂