a game of backgammon

I just felt like posting some interesting photos of the backgammon games I had.  Some of them are really funny.

Take a look.  in all of these, I’m white and my dad is black.

click on the images to see them in detail.  Notice the dice!

this is what I call “perfect chance”

this is what I call “perfect chance”

A bad mars

a bad mars…

look at the bar…hahahaha

hahahaha look at the bar!

funny dice

last step = 5 more steps!!! O_O

first drawing!

ok, here it is:  my first drawing with inkscape, on my own ( no tutorials ;) )

my first vector drawing

if you want a tutorial on how I made it, leave comments :)  I’ll write that if you want.

But if you get the concepts of nicubunu’s tutorial ( refer to last entry ), you’ll be fine with this one too!

a baby step into vector graphics

ok, a few days ago I tried inkscape. A vector drawing program. It’s really powerful, and much easier to use than CorelDraw! Anyway, I followed this tutorial ( click on “this” to get this specific tutorial and click on “tutorial” to get the latest list of his tutorials ;) ) Following this tutorial was easy and well, taught me many things about inkscape. Follow it, you’ll enjoy it very much, just like I did.

being organized

let me tell you a story,
yesterday, some of my friends decided to go to TimHorton’s today afternoon. They posted it in “facebook” as a thread and, naturally, I thought it’s something I can have in mind when planning other things. Just to have that in mind as I “thought” it would be a rock-solid plan, so called! Yesterday night, however, they decided to not to go to TimHorton’s and that they would go to some local concert. OK! still OK! Now, get this, yesterday late at night, they just decided to play soccer! ( notice how “rock-solid” their plans are ). NOW, as I’m writing this, they are in University ( yes they are in university and they study there ) and eating lunch, while as of ONE day ago, they should have been in three places. TimHorton’s, Gym, and also Concert. And I have literally NO idea what they are planning to do. Honestly speaking, I don’t care anymore. But just notice how they “plan” things. Really funny. I don’t even know why do I even THINK about it! do you know why?

Another attempt: building KDE 4 option 2

There also an easier way to get KDE 4 which I used myself. For this one, you don’t need to change your .bashrc or anything else. Just checkout sources wherever you want and you’re done ( of course you must install dependencies first ).

after you checkout SVNs in ‘/home/KDE4devel/SRCs/KDE/’ you can just make another folder, let’s say ‘/home/KDE4devel/Build/KDE/’
open Terminal/Konsole and then type:
su -
cd /home/KDE4devel/Build/KDE
cd kdelibs
cmake && make && make install
cd ..
cd kdepimlibs
cmake && make && make install
cd ..
cd kdebase
cmake && make && make install
cd ..
cd “yourmodule”
cmake && make && make install

OR if you have changed your .bashrc, you can do for each one:

cd /home/KDE4devel/SRCs/KDE/4.0/yourmodule
cmakekde

(it MIGHT work, I just made it up right now ;) )

WARNING: THIS WILL REPLACE YOUR KDE 3.5 DESKTOP.
WARNING: YOU WILL NEED ROOT PRIVILEGES.

If you try this one, leave comment for me whether if it worked for you or not. Thanks :)

Another attempt: building KDE 4 option 1

now we get to really build KDE 4.
first of all, you should change you ~/.bashrc file and I’ll tell you how and what to change.

go to your home directory and
View > Show hidden files
now if you look closely, you’ll find a file called “.bashrc” among the hidden files.
open that with a text editor ( in 99% cases just double click it )

copy the .bashrc in you original home ( /home/username/ ) into your KDE4devel account ( /home/KDE4devel/ ) it should replace it.

copy/paste the contents of this .bashrc into your .bashrc, after “#user-specified commands” ( or something like that ).

now you’re ready to go. By the way, this .bashrc you just did, was only to make life easier but it is in fact necessary and you HAVE TO do it ;)

Building kdelibs
the first module ( package ) you should make/compile, is kdelibs. You SHOULD make this first of all.
to compile kdelibs, just do this:

cd
cs
mkdir KDE && cd KDE
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdelibs
cd kdelibs
cmakekde

note: cs is not a typo. you made this command available by editing your .bashrc file, look into that for more info.
for troubleshooting stuff look into here.

Building kdepimlibs
next comes the kdepimlibs. the recipe is this:

cs KDE
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdepimlibs
cd kdepimlibs
cmakekde

again, for troubleshooting stuff go here.

Building kdebase
next goes to kdebase.
recipe:

cs KDE
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdebase
cd kdebase
cmakekde

troubleshooting stuff -> here.

from now, you can build all of the modules you want with the same fashion. For a minimal KDE 4 session you only needed those 3 modules and that’s all.
after you finished compiling all the modules you want, you just log out, and log in again, hopefully everything will be fine and you will have your KDE 4 session :D

Good Luck with your building :D ( building as in compiling ;) )
note: I got this information from here.

Another attempt: building KDE 4 SVN checkout

NOTE: LOOK AT Another attempt: building KDE 4 part 3 AND part 4 TO SEE WHICH ONE YOU’RE INTERESTED IN DOING. YOU WILL NOT NEED THIS IF YOU’RE GOING TO USE THE SAFER PART 3.

ok, here we have all the dependencies ready to go and there just remains our time to be spent on compiling KDE 4 itself :)
WARNING: THIS STEP MUST BE DONE IN ONLY NORMAL USER. NO ROOT USER PLEASE. IF IT NEEDS YOU TO ENTER ROOT PASSWORD, REVIEW AND SEE WHAT YOU HAVE DONE WRONG.

first thing you should do, is that you should make a new user account to be used by KDE 4 ( just in case ).
to do it, go to ( for KDE ) Kmenu > system > users and groups ( for GNOME ) System > Administration > users and groups

make a new account and login to that account ( simply log out, and then log in again )
make a new folder wherever you want ( definitely not in root folder ) that you put your sources in it.
for this “tutorial” I will use /home/KDE4devel/SRCs/
go to that folder and open a Terminal/Konsole which points to that folder by using this command

cd /home/KDE4devel/SRCs/KDE/

now, you should download the sources of KDE 4 into this folder you just created. if you want to use fancy names, call it check out SVNs ( es-vi-enz )
to do this, just open Terminal/Konsole and type:
1) svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE
2) svn co -N svn://anonsvn.kde.org/home/kde/branches/KDE/4.0

if you want it really new and cutting edge, go for the first one, but if you prefer to back down a little bit ( not really much difference though ) go for the second one. But generally I’d suggest second one ;)

now just type:

cd 4.0
svn list
svn up kdebase kdepimlibs kdelibs

if you want other packages also to be checked out, you can just put them in svn up. for example if you want to also checkout kdemultimedia and kdegraphics, you just type

svn up kdebase kdepimlibs kdelibs kdemultimedia kdegraphics (etc.)

wait for quite a long time till it finishes ;)

you have just downloaded the source code of KDE 4. Next post, will be about compiling KDE 4.
Good luck :D

rewriting everything, top to bottom

I finally know how to use classes :D yay, the only trick is that you should put it BEFORE int main() which I didn’t know and I used to put it AFTER int main(). The result? error: no “Something something1;” has not type! where Something is a class and something1 is an object. Anyway, I did it and therefore, I rewrote every single line of autopoker.cpp and also created a new header file player.h for it. Today, however, I was talking to my friend on the phone and he accidentally brought up a good point. He said that I can make a card class and instantiate ( create ) 52 objects of that class. Just think about it, FIFTY TWO OBJECTS!!! O_O that’s a lot and takes a lot of time! I might do that though, but first I try to fix the current one!

Another attempt: building KDE 4 dependencies

right now I decided to give it another try. I’m now installing the dependencies I need for compiling KDE 4. The list I gathered so far is as follows:

alsa-lib-devel aspell-devel avahi-devel boost-devel bzip2-devel cdparanoia cdparanoia-devel cmake cups cups-devel cyrus-sasl-devel dbus-devel doxygen enchant-devel fontconfig-devel freetype-devel gamin-devel gettext-devel giflib-devel glib2-devel gpgme-devel hal-devel imake krb5-devel libacl-devel libart_lgpl-devel libattr-devel libfontenc-devel mesa-libGLU-devel libICE-devel libjpeg-devel libmng-devel libpng-devel libraw1394-devel libsmbclient-devel libSM-devel libtiff-devel libusb-devel libXcomposite-devel libXcursor-devel libXdamage-devel libXext-devel libXfixes-devel libXinerama-devel libxklavier-devel libxml2-devel libXpm-devel libXrandr-devel libXrender-devel libXres-devel libXScrnSaver-devel libxslt-devel libXt-devel libXtst-devel libXxf86misc-devel lm_sensors-devel mysql-devel nas-devel NetworkManager-devel OpenEXR-devel openldap-devel openssl-devel pam-devel pcre-devel pkgconfig postgresql-devel samba shared-mime-info soprano-devel sqlite-devel strigi-devel unixODBC-devel xorg-x11-font-utils xorg-x11-proto-devel zlib-devel sane-backends-devel exiv2-devel lcms-devel ruby-devel qt4-devel libXft-devel blitz blitz-devel qimageblitz-devel xine-lib xine-lib-devel mesa-libGL mesa-libGL-devel libxkbfile-devel libXxf86vm-devel gcc gcc-c++ svn

just do a Ctrl+C and then in Terminal/Konsole, do a yum install and paste this thing into the Terminal/Konsole after yum install:

yum install “Ctrl+Shift+V”

and then [ENTER]

it will install everything you need to compile KDE 4 successfully!

Next post will be about the compiling itself ( the good and loooooooooong part ;)

God bless OOP

I’m still having difficulty implementing OOP ( stands for Object-Oriented Programming ) into my sources. But if you think about it, OOP makes life much easier and faster! Well it doesn’t make life faster but programming at least. And that, in turn, makes life more “enjoyable” specially when you don’t have compile-time errors as I just had! I don’t know why it just doesn’t work! OOP I mean. And that is exactly why I’m passionately waiting for my book C++ How to Program ( a great book by the way ) to come. Its early classes approach is what I was looking for. I doesn’t really make you wait years ( figuratively ) to know what is a class and what is an object, which are, in fact, what make C++, a real C++. Anyway, I gave up on classes and OOP for now till my book comes and I can finally see how to work efficiently with objects. For now, I think the development of autopoker.cpp ( refer to previous posts && the same as poker.cpp just changed the name ) is in a soft freeze ;) because of the fact that I can’t think of ANY way to continue it without classification ( implementing OOP ). And because I don’t know how to work with objects, therefore, it’s stalled!

« Previous entries