KDE 4: A stylish disappointment

I am now giving KDE4 a shot. Installing from this repository and instructions. Why? Because I am so damn lazy.

  • Installation.
  • Under Arch installation was pretty harmless. I had to fix manually some file conflicts by removing the packages that owned the problematic files.
    Generally, when you encounter an error like this:

    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    __PKGNAME__: __FILENAME__ exists in filesystem

    You can fix it by:

    [root@archbox pacman]# pacman -Qo __FILENAME__
    __FILENAME__ is owned by __PKG__ __VER__
    [root@archbox pacman]# pacman -R __PKG__

    This can get complicated if there are other file conflicts and/or dependency conflicts. But you should fix them, however you can.

Random wisdom

Firefox quick fix for scroolbar bug when using gtk-qt-engine.

scrollbar slider
{
margin-left: -1px;
border-left: 1px solid #8C8D90;
margin-top: -1px;
border-top: 1px solid #8C8D90;
}

Clearing pacman cache.

pacman -Sc - clean cache (old files)
pacman -Scc - clean cache (all files)

On Second Hand Clothes

Today I was walking with Valia in the center of Sofia. It was cold and i was with a short-sleeved shirt and was long way from home (and I didn’t feel like going home just to get a upper garment, so I would’nt be cold). So I decided I’ll buy something with a long sleeve (a hoody or a shirt or something else). So we were walking around looking at the clothing stores.

As we were walking by, we saw a store with some interesting clothes. We went in. The clothes seemed of quality. We started looking around. I liked a few shirts. The prices were very,very low,so I thought it could be a store for defected clothes or contraband (yeah, stupid, I know, but I am just being honest - this is what I actually thought) merchandise. Then I saw that there were clothes, with a price for a kilo (weight). So, this being a second hand store crossed my mind. But I somehow wanted this not to be so, because I didn’t see a label on the store. And because I liked those shirts.

I tried the two shirts on. They fit me perfectly, so I bought them. I payed about 20 leva (10 EUR or 15 USD) for them. One was short-sleeved (cooler than the other, in fact) and one long-sleeved. Valia liked a few clothes for herself, so she said she may be coming by next month to get herself a shirt she liked (I also liked it) or something else.

As we were walking out, I saw the inscription “Second Hand Clothes”. So, when I saw it written black on white, I realized it was so. I would’ve never gotten in this store in the first place, if I had seen this label. I was a bit disappointed and frightened, but after all I thought I hadn’t made a mistake going in there. I have some prejudice concerning wearing clothes that somebody else wore, but my shirts seemed so clean and preserved, they could’ve been sold in a regular shop as new ones, no problem. Actually, I think some shops might do this.

The clothes in the store were really good. I mean, not all of them, but some were really cool, and so cheap (understandably so).

I put up my shirt (not very wise, when I think about it now, but I have no skin problems by now), the one with the long sleeves. I was still kind of cold, though. It’s green on white small checked shirt. The other one is also checked, but it has different (smooth, soft) colors. Yeah, i suck at describing stuff.

At the end of the day, I feel satisfied with my purchase. I like those shirts and they look like brand new. I think I don’t have a problem with wearing clothes that were worn by other people before me, as long as they look clean, and in good shape. I am thinking about buying some stuff from this store again. It feels like something is wrong with that, but I think that this is mostly because of most people’s opinion and shit. I shouldn’t care about that. This started to become a rant. I’m stopping now.

PS: My opinion has changed. Today my mother found that my shirt, after I’ve washed it, had some kind of stains - black, she said. That’s kind of… well, disgusting. I’m having second thoughts about wearing it.

PS2: My opinion has changed again and I feel honest enough to admit it. I think I’ll wear the shirts. Also, I think I am very very influenced by other people’s opinion, which is not good at all.

Building a Package in Arch linux

Copied from ArchWiki
To build a package you either need to create one as described at “The Arch package making HOWTO”, or obtain one from AUR or ABS (see above) or some other source. You should be careful where you obtain your packages from and only install those from people and sources you trust.

Say you found an excellent package on AUR that you wanted to build and install (in this example we will use “rufus”, a Python based bit torrent client). You can obtain the PKGBUILD and all files needed from its AUR page, click on the “Tarball” link.
cd /path/to/file
tar -zxf rufus.tar.gz
cd rufus

You will notice there are a number of files located under this directory, including the PKGBUILD script that is used to build your package. To build this package just issue (as your normal user):
makepkg

which will then set up, download and attempt to build your package. If you don’t have all the required dependencies installed, makepkg will warn you before failing. To build your package and install these dependencies, simply use the command:
makepkg -s

Note that these dependences will need to be in your configured repositories. Alternatively, you can manually download the packages first using pacman -Sy dep1 dep2 etc.

Once you have satisfied all the dependencies and your package builds successfully you should now have the rufus-0.7.0-1.pkg.tar.gz file in the directory you run makepkg in. To install it (as the root user) issue:
pacman -U rufus-0.7.0-1.pkg.tar.gz

Amarok Append and Play as a default action in konqueror

This will set the default handling to mp3 files to the following beahviour:

When you click on a mp3 file in Konqueror:

  • If Amarok is running, append the file to the current playlist and play the file.
  • If Amarok is not running, do nothing.

1) In Konqueror, go to settings -> configure -> file associations.

2) Navigate to mp3.

3) Choose Add… to add a new command to handle mp3

4) type in dcop amarok playlist playMedia %U

That’s it. Click on a mp3 and see that it is being added to amarok’s playlist. Note that this only works if Amarok is already running. Kinda dumb, but it does the job for me.

Why I prefer Linux

I have never been good at giving arguments and reasons, but I will try to list the simplest reasons why I prefer GNU/Linux as a desktop system.

  • Free as in Freedom
  • No blue screen of death
  • No red screen of death
  • Usable restricted user permissions /much harder for a regular user to make a serious harm to the system, keeping great usability and configurability/
  • No slowdown in long runtimes
  • No restart needed for every software installation
  • No need for disk “defragmentation”
  • No real malware threat
  • A few major graphical envirnoments to choose from /KDE, Gnome, XFCE being the most popular ASFAIK/
  • More configurable
  • No dependency on the GUI /using a terminal is faster and easier for many things, although many users would avoid this/
  • Penguins are cool.
These are nothing but my personal beliefs. I am not trying to impose them on anybody.
As most of the things I like, there’s a great deal of intuition involved. And, also, I tend to not like things that are too popular.

Input data check in C++

This is stupid, but self-explainable:

while ((cout << “Hint “)&&(cin >> foo)) {

//exploit foo

}

Arnold Schwarzeneger parody on MadTV

Here’s a cracking up parody by MadTV. Arnold is crazy, man. Aghai hai.

Morphine - Buena

This is Buena by Morphine. A very good song, not my favourite by Morphine, but with the coolest video, in my opinion.

A working mplayer config file

This goes into .mplayer/config:

#============
#General setup
#============
ao=”alsa” #audio out
mixer-channel=”PCM”
srate=48000
#really-quiet=”1″ #Very very little console output
vo=”xv” #video out
#zoom=”1″ #Allow sofware scaling if I use x11 for vo
#aid=”1″ #audio channel
#sid=”0″ #subtitle set
#Display
Continue reading ‘A working mplayer config file’

Next Page »