Few days ago I write about shred, which work fine for old systems, like EXT2, but not so nice with journaled file systems. Modern file systems need something more robust, like dd and srm (a secure replacement for rm). Unlike the standard rm, srm overwrites and rename the files before unlinking them. This makes it very hard to recovery of the data.
Create test file:
echo "secure content" > /tmp/secure.txt
(more…)
This tip is really useful if you need/want to monitor multiple servers at the same time. This Tip works, as the tip, by which you can add the date and time the title of the Linux terminal, but it adds more usefull info to terminal title. Following bash one liner add hostname, date, time, uptime, users and load Average to Linux Terminal Title and updates it every second.
This trick works at least following terminals: Gnome Terminal, xterm, urxvt, rxvt.
Add hostname, date, time, uptime,...
Yum (Yellowdog Update Modified) is RPM Packet Management system for Fedora, CentOS, Red Hat, OpenSuse etc. Yum history (list, info, summary, repeat, redo, undo, new) commands is added on 3.2.25 version. So this works every Linux Distros, which uses yum 3.2.25 or newer. Yum history command is a really useful in situations where the need to example rollback latest yum activity or undelete some deletes or just see what is updated lately.
Yum history and Yum history list
yum history lists...
I noticed that the Fedora Linux with KDE desktop, has reasonably poor support for laptop touchpad adjustment. For example, the KDE > System Settings > Keyboard & Mouse > Mouse options will not be able to enable vertical scrolling and touchpad tapping. So I decided to write this short guide, howto enable Touchpad vertical scrolling and tapping from command line without any GUI.
Enable Laptop Touchpad Vertical Scrolling
(more…)
Updated 26.2.2010, Read First
Currently, the latest version of the KDE desktop in Fedora is 4.3.5. I had some problems with its stability, so I decided to try out, how will work KDE 4.4.0 the latest stable version of KDE. At first I tried to install KDE 4.4 from Rawhide repository, but it failed to install from there. Here is instructions on how to install KDE 4.4 successfully using RPMFusion and KDE Packaging Project Repositories. It may be that RPMFusion repository is redundant, but KDE...
What is Gnome Do?
GNOME Do (Do) is an intelligent launcher tool that allows users to use the keyboard to rapidly perform tasks such as launching applications, manipulating files and data, running scripts, or sending e-mail. It is similar to the applications GNOME Launch Box (Linux Gnome), KRunner (Linux KDE), Quicksilver (Mac OS X), LaunchBar (Mac OS X) and Butler (Mac OS X).
What is Gnome Do - Docky?
Gnome Do - Docky is a nice frontend for GNOME Do (Do) which introduces an entirely new...
I think the most easiest way to upgrade Fedora 12 to Fedora 13 is use Preupgrade, which download needed packages from the server and then just reboot to installer and after install boot the new system. This guide I use preupgrade-cli version, which works from command line. If you want use Preupgrade Graphical version then you can check this Howto upgrade Fedora 11 to Fedora 12 with Preupgrade guide, which works same way with Fedora 13 (Goddard). It's important backup your important files before...
Package change log information is not directly available from the YUM package management. This is short guide howto enable (install) changelog plugin and use changelog information with YUM package management system.
Install YUM Changelog Plugin for Viewing Package Changelogs
Install YUM Changelog Plugin on Fedora (as root)
yum install yum-plugin-changelog
Install YUM Changelog Plugin on CentOS and Red Hat (RHEL) (as root)
yum install yum-changelog
Examples Howto...
This is quick tip, howto downgrade packages using YUM (example) on Fedora, CentOS, Red Hat (RHEL). This works simply with yum downgrade command and is very usefull when package(s) downgrade is needed some reason.
YUM Downgrade Basic Usage
Downgrade is very straightforward when package have not any dependencies, which affect the downgrade.
YUM Downgrade Single Package
yum downgrade package
Example:
yum downgrade hunspell-mr.noarch
Setting up Downgrade...
This is quick tip, howto list contents of tar, tar.gz and tar.bz2 files without unpacking file.
This is very useful on server environment where any graphical tool is not available. This method is also very useful when tar, tar.gz or tar.bz2 packages are really big, something like hundreds of megabytes or gigabytes (for example backups).
Overall, the key is the tar command with -t option.
List the Contents of tar File
List tar contents short command
tar -tvf archive.tar
List...
PHP MongoDB (Mongo Database) Driver Installation on Linux, UNIX, BSD and Mac OS X
MongoDB PHP driver is very simple install on Linux, UNIX, BSD and Mac OS X. You need just PEAR (PHP Extension and Application Repository) with PECL repository. Normally PHP development (dev) package and PHP Pear package installation from package management system is enough to get PEAR working. Also go-pear.php script can be used.
(more…)
It makes sense to optimize the site's cascading style sheets (CSS), as it pages load faster, and it reduce the amount of data transferred, and just combining css files could significantly reduce requests to server. So users benefit from faster page loads and webmaster of the sites benefits from the cheaper price of the transferred data.
I have used CSSTidy on many projects. And CSSTidy is very good tool for packing CSS and it can even fix CSS errors. Sometimes, however, feel that csstidy is...
BitLy (bit.ly) is a service which allows users to shorten, expand, share and track URLs (links). bit.ly can be accessed through bit.ly website and a robust and open API.
Example:
Shorten http://www.if-not-true-then-false.com/ url -> http://bit.ly/8cZ1fb
Expand http://bit.ly/8cZ1fb url -> http://www.if-not-true-then-false.com/
This post deals with bit.ly API usage with a simple PHP Class. This PHP class allows to shorten normal urls, expand bit.ly urls and expand bit.ly hashes.
...
Browser cache is very useful when users download the same CSS and JS files multiple times. Some browsers, however, use the old CSS and JS files from the cache, even though they have been updated. This may lead to unpleasant situations, when the pages are displayed to the user with the wrong styles or pages will work incorrectly.
Fortunately, these unpleasant situations is easy to avoid and let the browsers cache files as long as they are changed.
Basic example with static...
I would like to welcome all new and old visitors to If Not True False Then site Facebook pages. Hopefully, this new Facebook page also helps to follow new blog posts. Of course, there is also other ways to follow this blog posts, simply using RSS Feed and Twitter.
So following step is check out If Not True Then False Facebook page and like it. :)
Like If Not True Then False on Facebook:
This article compares the speed and performance of queries between partitioned and non partitioned PostgreSQL tables. However, it is important to remember that the PostgreSQL tables partitioning has also another benefits, than the better performance on queries. More information about other benefits from the first part 'Howto create PostgreSQL table partitioning (Part 1)'.
This is comparision between partitioned and non partitioned PostgreSQL tables. The same tests were carried out with and...
As Part 1 (Howto create PostgreSQL table partitioning) shows, making of PostgreSQL partitioning needs a lot of SQL commands. So this Part 2 explains how SQL commands for PostgreSQL partitioning can be made with a simple PHP script. This example script make SQL for child tables, indexes, trigger function and parent table trigger. This example script can make PostgreSQL table partitioning with using Date ranges. Script can be configured with following configuration section:
Initial...
PostgreSQL supports partitioning via table inheritance. So the partitioning is made in such a way that every child table inherits single parent table. Parent table is empty and it exists just to describe the whole data set.
PostgreSQL partitioning can be implemented in range partitioning or list partitioning.
Range partitioning can be done for example by ID ranges (like 0-100 000, 100 001-200 000, 200 001-300 000...) or Date ranges (like 2009-11-01 - 2009-11-30, 2009-12-01 -...
PostgreSQL table partitioning means splitting one large database table into smaller logical pieces. PostgreSQL table partitioning will be worthwhile only when a table would be very large.
Here are a few benefits of what can be achieved with partitioning:
Large tables query performance can be improved dramatically
Reducing index size and making it more likely that the heavily-used parts of the indexes fit in memory
Rarely used data can be moved to slower and cheaper storage...
Fedora 13 is released. This is overview, what's new features found on new Fedora 13 release.
Main Software Updates, Changes and Features
New Software
Shotwell - Open source photo manager for GNOME
Deja-dup - Déjà Dup (day-ja-doop) is a simple backup tool. It hides the complexity of doing backups the Right Way (encrypted, off-site, and regular) and uses duplicity as the backend.
Pino - Twitter and Identi.ca client for Linux desktop
Simple Scan - Simple Scanning Utility
New...
« Previous
1
2
3
…
7
8
9
10
11
Next »