Archive for the ‘Howtos’ Category

Create Google Docs document in the old editor

https://docs.google.com/?action=newdoc

This will allow for some features not found in the new editor, such as editing HTML and CSS to alter the way your document is displayed.

How to install Compass on Kubuntu 10.10 Maverick

Is maintenance of your CSS stylesheets driving you insane? There is a killer tool for web developers: SASS, the Syntactically Awesome Stylesheets.
Read more »

CakePHP: Black-holed requests in Security component

CakePHP provides a helpful Security component for advanced security in our web applications. If you need protection against CSRF, form tampering protection, or create secure pages,the Security component is the way to go.
Read more »

Regex to match Unicode characters

Regular expressions matching those fancy non-English Unicode characters are tricky. If you want to match letters like á, é, š, ô, ľ, č – try using this:

$regex = '/^((\p{L}\p{M}*)|(\p{Cc})|(\p{P}\p{P}\p{N}.{3}))+$/ui'

In my tests, this regular expression matches all Slovak letters, including:

  • a-z,
  • á é í ó ú ý ä ô,
  • ď ť ň ľ š č ž

For more background information, read an excellent tutorial on regex and UTF-8 characters.

How to add git support to mercurial on Kubuntu

Installation instructions on mercurial-git in Kubuntu:
Read more »

How to redirect Blogger Beta to WordPress.com

If you are like me and have decided to move your blog from blogspot.com to wordpress.com (the shared WordPress hosting site), you are asking yourself three questions:

  1. How to redirect visitors to the old blog automatically to the new pages.
  2. How to transfer the PageRank of your old blog to the new one.
  3. How to prevent being penalized by Google for duplicate content.

Is it possible ? Read on.
Read more »

How to fix Picasa: failed to connect to server

I tried to upload my newest pictures to the Google Picasa web albums today, but got an error “Failed to connect to server. Please try again later.” Here are the instructions on how to fix it:
Read more »

How to install HP ScanJet 5100C on SuSE Linux

This is how I installed Hewlett Packard ScanJet 5100C scanner on SuSE 10. Presumably, these instructions should be good also for other HP ScanJet scanners (see the list of ScanJet scanners supported by SANE hp-backend).
Read more »

How to install Apache, PHP and MySQL on Linux: Part 1

This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1 operating systems, but most of the steps ought to be valid for all Linux-like operating systems.
Read more »

How to install Apache, PHP and MySQL on Linux: Part 3

This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all Linux-like operating systems.
Read more »