Tic-Tac-Toe 0.2 released

August 31, 2008 at 6:05 pm (fedora, game download, linux, windows) (, )

right after I released the 0.1 version, I discovered some (major?) bugs in networking. So here’s the fix pushed into a new version. The 0.2 revision uses a different way of connecting to the host computer.

And the download link:
http://code.google.com/p/onlinetictactoe

(the link itself is on the right pane, the green section)

P.S. just to keep records: 1778 lines of code in 15 files

Permalink Leave a Comment

Tic-Tac-Toe 0.1 released

August 27, 2008 at 6:13 pm (fedora, game download, linux, windows) (, , )

Last night I squashed some little bugs here and there (including the one I mentioned in the previous post) and just an hour ago I added a player checking feature, that is when you are playing online with someone else, and if you are player X, you can’t put O on the board, BUT you have to wait till the other person finishes his/her move.

Other than that, I added some files and organized the folder a little bit putting sources in a src folder and added some files, COPYING, which contains the license (GPLv3), INSTALL, the compilation instructions and a Changelog.

That’s all for now, and here’s the project link. For some name conflicts with another project I had to change the project name to onlinetictactoe rather than the simple tictactoe.

http://code.google.com/p/onlinetictactoe/

And as always, report bugs :) you can report bugs directly from the project website (above link) in the issue section!

happy Tic-Tac-Toe-ing! :D

Permalink 2 Comments

Online Tic-Tac-Toe game

August 27, 2008 at 2:21 am (fedora, linux, windows) (, , , , , )

I’ve been very silent for a week or two now.  But I have a good reason for it :)   I’ve been working on a Tic-Tac-Toe game.  At first, it was supposed to be a I-learn-something-with-it type of program, now, it’s much more than that.  Please note that the idea of making it multiplayer rather than single player came from one of my friends and was not my own idea!!  But, as a matter of fact he’s on last-off-days vacation.

Anyway, no news is complete without screenshots :D

Tic-Tac-Toe main window

Tic-Tac-Toe main window

this is the main window.

Making server

Joining a game

This is how you would join a game.  You should know the IP address of the server and what port it is using to create the game.

Joining a game

Creating server

And this is how you make a server (and then others join ;) ).  Quite simple, just specify a port, and if you don’t know anything about ports, just put a 0, it will find an appropriate port for you!  When you create a server, the port you’re using is shown on the status bar and remains there until someone joins your game.  You can give that port to the other person (he needs it to join your game).

And that was mostly what I was up to!  The funny thing is, only 9 months ago, writing something like this was just a distant dream!

And I didn’t forget to tell you where the source is, I didn’t yet upload it.  Why?  because it has some VERY visible bugs I should fix before releasing it.  One of the most annoying ones being that when starting a new game (pressing the ‘new game’ button on tool bar), both players have to start a new game for it to work.  Anyway, I don’t really know where the problem is (or do I?) but I will try to fix it hopefully by tomorrow and by tomorrow night (canada eastern time) I will have the sources uploaded somewhere, most probably google code.

And it’s worth to note that this will run on all platforms that support Qt (Mac, Windows, Linux, Solaris, BSD, etc.)

P.S. the whole thing is 1628 lines of code including headers distributed in 15 files.  It’s released under GPLv3, so if you want the source now, leave a comment!

P.P.S. to download it, go to http://code.google.com/p/onlinetictactoe/ and download tictactoe-o.1.tar.gz

Permalink Leave a Comment

HowTo: diff and patch!

August 16, 2008 at 4:57 am (console, fedora, linux) (, , )

For so long I was wondering what is this ‘patch’ and ‘diff’ people talk about.  So with asking on IRC (freenode, and credit goes to MathStuf on #fedora-kde) and a little research over internet, I figured it out.  It’s very simple, just type these in Konsole/Terminal:

$ diff foo bar > baz.patch

$ patch < baz.patch

the first command ‘diff’s two files (finds the differences) and the second command applies the diff!!  the > and < marks are redirecting output.  For example the output of `diff foo bar` goes to file `baz.patch` in the same directory!!

There are, of course, other GUI utilities for diff/patch but I prefer this simple method over them!  You can find the GUI solutions all around the web!

More updates to come on this issue as I still don’t understand it fully!

Permalink Leave a Comment

backed-up 0.2?

August 16, 2008 at 4:51 am (Uncategorized) ()

yes, I uploaded it right now (http://code.google.com/p/backed-up/).  I added a new feature to it, which is that now you can log in to remote computer with another username, which was not possible with the previous version.  You can do it very simple with –user [USERNAME] option.  For example:

$ backedup –user me

you can download the new version from the link above!

Permalink Leave a Comment

the truth about Georgia

August 14, 2008 at 7:13 pm (Uncategorized) ()

it’s quite sad to watch such a thing, and watch that the interviewer doesn’t even give the woman the time to talk. I’m quite surprised how the let them talk in a live broadcast!

Permalink Leave a Comment

backed-up 0.1 released

August 9, 2008 at 8:24 pm (console, fedora, linux) (, , , , , )

Backed-up…first time I’m hearing this name!!! It’s because I just made it up. Yes, I released the backup script I’ve been using for months now. At first, it was just for personal use, specifically made to work with my desktop and laptop. So I thought it would do good to some other people like me, as it helped me a lot and saved me a lot of time!! So, here it is, called backed-up and this is the project URL hosted by google code:
http://code.google.com/p/backed-up/

hope you enjoy it :) and of course, comments and suggestions and most definitely patches, are very welocme!!

Ps. and because this is the first software I’ve release in my life (yayy milestone!) I would really appreciate it if someone out there would explain to me how I can create and apply patches!

Permalink Leave a Comment

I can haz bling bling?

August 4, 2008 at 6:10 pm (fedora, linux) (, , , , , )

Many people have asked, on the forums and mailing lists, this question: How can I setup compiz?

So instead of replying to them one by one, I decided that I’m going to write this post, and link them here, so they would also have a reference to it if they needed it later.

before doing anything, you have to make sure that your driver is compatible (which in most case it is) and also that you have the latest drivers for it. If you use nVidia cards, from livna repository install kmod-nvidia or if you use ATI cards, install kmod-fglrx from livna repository.

the trick is (on fedora at least), you install these packages:

compiz
compiz-fusion
fusion-icon
compiz-fusion-extras-gnome
gnome-compiz-manager

and that’s all!! done! very easy wasn’t it?
now if you also want to have some extra decorations for your windows (windows as in the plural of window), install these packages also:

emerald
emerald-themes

now you can go to Applications > System tools > compiz fusion icon
and compiz will run! if you want to change some settings, you can right-click on the fusion icon in your system-tray, and bring up the configuration dialog :)

and that’s all!

SUMMARY:
just do this:

$ su -c ‘yum -y install compiz compiz-fusion fusion-icon compiz-fusion-extras-gnome gnome-compiz-manager emerald emerald-themes’

Permalink 2 Comments

fedora 10 release name

August 2, 2008 at 9:33 pm (Uncategorized) (, , , , )

I know it’s old news now, but just in case you haven’t found it anywhere else…these are the results of the naming vote:

1. Cambridge 1547
===
2. Nile 1503
3. Farnsworth 1435
4. Water 1408
5. Nitrate 1295
6. Whiskey Run 1281
7. Mississippi 1145
8. Saltpetre 1076
9. Terror 953

I in fact like the chosen name very well, and it was supposed to be the release name of RedHat Linux 10. If I could vote, I would vote this way:

1 Cambridge
2 Nile
3 Water
4 Nitrate
5 Mississippi
6 Terror
7 Farnsworth
8 Whiskey run
9 Saltpetre

well, it’s a range voting!! :)

Permalink Leave a Comment