Writing Tetris in Clojure
Good evening to everyone. Today I want to guide you step-by-step through the process of writing a game of Tetris in Clojure. My goal was not to write the shortest version possible but the concisest one and the one that would use idiomatic Clojure techniques (like relying on the sequence processing functions and making a clear distinction between purely functional and side-effect code). The result I got is about 300 lines of code in size but it is very comprehensible and simple. If you are interested then fire up your editor_of_choice and let’s get our hands dirty.
The whole code is available here.
Read more…
Raidcall on Wine: problem with dnsapi.dll
Recently I stuck with a problem that had no solution around the Internet. Raidcall, a voice chat program exclusively for Windows, refused to start under Wine referring to the absent (or wrong) library dnsapi.dll. I found out that there is such library in ./wine/drive_c/windows/system32/ folder. Replacing this file with original dnsapi.dll taken from Windows distribution didn’t help. So after that I opened winecfg, switched to Libraries, found dnsapi.dll (native) in the list and just removed it (Remove button is on the right). Then, after applying the changes, Raidcall finally started.
Hope this would help somebody.
Browsers on WM8505 Linux
Being a proud owner of WM8505 mini netbook I spent a lot of time tinkering with it. This little noname machines ship with preinstalled WinCE that is very close to useless, so as soon as I got the netbook I installed this Debian distribution on it. And since I don’t want my time to be utterly wasted I decided to start a series of post concering different aspects of using Linux on WM8505 netbooks. In this very entry I would talk about different browsers available for this installation, from the simplest to the most functional. So, let’s start.
Note: most of the information here should be also relevant for VT8500 netbooks.
Coffee Time with Java – Part 1.5 – Sockets in Clojure
It is almost a year now since I wrote the first part of meant-to-be series of topics concerning Java. I understood that there is no need to write the same stuff over and over again while there is plenty of it on the Net. But this time I’ve got an idea to rewrite that primitive server-client demonstration into Clojure and see how it will look like. Read more…
Show the TO-DO list from your Freemind in conky
Introduction (if you look for instructions, skip this part)
I tried a lot of software (offline and online) to help me with my tasks. I tried using specialized software, I tried different built-in things (like Firefox\Thunderbird plugins), I tried Rememberthemilk and similar services on the Web, but the same problem remained – the information was too far from my eyes. It was either not noticeable, or stayed on my screen for not enough time, or I had to remember myself to view my to-do list.
Then conky came into my sight. I see it everyday, it stays on my desktop all the time, and I got an idea – why not show the to-do list in it? The idea isn’t new, one can say, but there is another problem – I’m too lazy to keep updated one more file for this list. But wait, I regularly work with Freemind, and it is fairly easy to create another branch directly for to-do management. Thus, I wrote this script that eased my life and may someday ease another one’s. Read more…
Go console
Sooner or later every user who got started using Linux with fancy Ubuntu windows has to get acquainted with big and scary Console. White letters on the black background, lots of typing and any sings of light in this long tunnel. But is it so bad? Console is an excellent solution which can help to deal with lots of problems way faster than moving the mouse around. Read more…