sobota, 14 listopada 2009

Frappe Killer

Ha! Now it's time for something useful:) The Frappe Killer drink.

Ingredients:
  • Cold Milk
  • IceCoffee (i.e. Nescape Frappe or so)
  • Malibu

Fill the glass or shaker whatever proportions you like, mix them and that's it!

Now sit down and drink. If You can stand up then, take another Frappe Killer.

Enjoy!

niedziela, 8 listopada 2009

Shift-Enter never ever

Allright, there is one special keyboard shortcut in word processors, such as OOWriter or Word, which makes me angrrry: SHIFT-ENTER. It creates a soft-linebreak, without paragraph break (hard-linebreak), which in most cases is a total distaster when preparing a document to print. When you turn on view of non-printing chars, you will see soft-linebreak as a down-left-arrow, similar to the arrow of an ENTER key. Hard-linebreak shows up as a reversed P.

The problem is, when user uses SHIFT-ENTER to create line breaks, and not an ENTER. Then you'll have many many soft-linebreaks to remove. Doing it by hand is a simple, but time wasting task. Fortunately we have a Find&Replace tool in OOwriter which will help us.

What we have to do?
1) Open Find&Replace tool
2) Show more options
3) Use regular expressions
4) In "Find" put '\n' (without quotes)
5) In "Replace to" put '\n' (without quotes)
6) Replace all. And THAT'S IT! All SHIFT-ENTER breaks will turn to hard linebreaks.

Uff. Then I have more time for coffee breaks:)

wtorek, 13 października 2009

Restoring /home

Ok, here is what I've done to restore my /home partition.

What was the problem?
All of partitions where successfully mounted except one -- the /home. It looked as a total disaster, because I didn't have a recent backup. Remember! Always do a backup of your important data.

I use reiser3 type partition, and we have excellent tools such a resierfsprogs to manage such partitions. Because first error came from bad superblock, I did:
reiserfsck --restore-sb /dev/hda8

then

reiserfsck --check /dev/hda8

and the partition looked ok. Tried to mount it. Couldn't.
Ok, few minutes of googling, tried upgrading reiserfsprogs to 3.21 (gentoo machine) and did:
reiserfsck --restore-tree

Went for a tea. Another tea, meet some friends, came back home, and voila! Tried to mount /home. Mounted successfull.

Then, plugged in external drive, and did a backup with rsync.

This should save me some time next time...

środa, 23 września 2009

Drupal 7 and Gentoo

I was wondering about huge changes in Drupal core, so I tried to install D7 development 9 (September 15th). However, the documentation of D7 doesn't currently describe few issues you may encounter when using Gentoo.

Remember: You have to enable these USE flags for dev-lang/php: pdo, json, filter if you want to properly set up D7 and test its new features:)

Edit:
If You want install D7 with sqlite database support You need to enable "sqlite" flag as well.

Wow, D7 works with sqlite!

poniedziałek, 24 sierpnia 2009




It looks great. It runs fast. Faster than Firefox and Opera. Comparable to Arora. The development version of Google Chrome for Linux, which I installed today and work in it all day without a crash or other browsing problems.

I spent most of my day work on the Internet. Working with websites, searching for information etc, thus I need my main web browser to be fast, efficient, powerful and good-looking. I like Opera for its design, but its heavy. I like FF because of capability of extending its functionality by add-ons, and for great add-ons like Web Developer and AdBlock/NoScript. But it's heavy and slows down and look ugly in default configuration (I reconfigured the skin etc., but it is not the way). I track the development of Arora, which runs in a second, looks simple, but still, has some lacks and currently I cannot work on it as a webdeveloper.

When I first use GoogleChrome on my VirtualBox with WinXP I was amazed. Fast and well-looking, I discovered then themes. Today I installed the developer snapshot and worked all day. It has built-in webdeveloper tools, maybe not so great like FF add-on mentioned above, but it is usefull. Currently there is no stable flash support, but it is a matter of coding time;) . Minimalistic, great design, fast engine, runs in a second too:) For a web developer it is a good alternative for FF/Opera.

It was just a good day without spending time on arguing with FF or Opera. Just try it:)

sobota, 15 sierpnia 2009

Ubuntu 9.04, I'm impressed

Ok, my friends are scared when I tell them about Linux. Probably because they've seen my Gentoo box with Enlightenment17, where almost nothing works like they expect.

Ok, I've set up my Gentoo box to suit up only my needs. Thus, I don't have automatic mount, music/video players which looks similar to popular apps, even my Desktop look great, but this is strange... So, where do You have StartMenu?

Ok, I've observed Ubuntu for some time, I tried install it on my laptop almost 3 years ago, but it failed on X configuration. I've tried then several Linux distributions, and only on Gentoo I've managed everything to work OK. And Gentoo suits my needs, administration, package managment and philosphy. I'm not tired about compilations of software. This is my choice. And I'm happy with my Linux box, even I have to mount usb sticks manually, even I don't have F-spot or Digikam for managing my pictures (and I do a lot of pictures), even I use Xmms2 for managing my music and Smplayer for videos. Even, I use everyday command line. This is the most production suite I've ever found, and I will not change it to something else...

Just, I'm only waiting for stable and full operational E17 and one photo managment app without KDE or Gnome dependencies. I believe, it's just a matter of coding time.

Thus, I'm impressed of first look on Ubuntu 9.04. I downloaded live cd and unpack it. Because my CD doesn't work at all, I tried to manual add to my grub.conf entries with Ubuntu-Live, reboot the machine and try it. Just try it. I didn't want any effort to put it working. I gave it a chance. And I'm impressed. Again.

Everything just works. Out-of-the-box. Do you know what it means? It means, that any person without any knowledge about computers, and Linux, will find Ubuntu user-friendly. Just imagine:

  • Graphical interface works, not to mention, that Compiz effects work too
  • Automounting usb sticks works, not to mention, Ubuntu will ask what I want to do, i.e. if I put my photocard it will ask if I want to import photos to F-spot
  • Detecting mp3-players. Works too. However, mp3 is not supported, but two clicks and I can listen to my favourite music in RhythymBox, even Jamendo works!
  • Alright, now the crash test - the network. And I'm impressed again. Ethernet connection works, Ubuntu will notify if the cable has been plugged or not. Ok, that was easy. Time for wireless. I have an IPW2200 card with light-button. I push the button. Orange led lights up. Ubuntu notifies me about working card. I have only to put my password to the network. Have I written I'm impressed?

Remembering all stuff I had to do with Fedora/Debian and finally Gentoo 2 years ago, and my happinnes of making orange led working I can say, and I'm sure I'm right, that Ubuntu 9.04 is one of the easiest operating systems on that planet. Installing it on your hard drive will be easier than installing Windows Vista and you'll have after the installation, desktop ready to work. OpenOffice suite, Firefox, music and video player, email app, some games, photo managment app, network connection apps, cd/dvd recorder app and much more. For Linux geeks -- suspending and CPU-scaling works out-of-the-box. What do you want more?

I don't want to change my Gentoo with E17 to Ubuntu, but for you, if you don't have time for setting up operating system, and you want it to just works, I recommend you Ubuntu 9.04 or Fedora 11. Next time, I'll try Fedora 11 and Kubuntu 9.04.

Edit:
Kubuntu seems to be not-finished, at least for events notifying. KDE Plasma effects work very good, but first contact was not so easy as with Ubuntu. It is not intuitive where to click to find my usbstick! And Amarok didn't search for propertiary codecs...

poniedziałek, 1 czerwca 2009

Lorem Ipsum

And another blog about completely nothing has just landed.