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...
CentOS 5.5 is the fifth update to the CentOS 5 distribution series. It contains a lot of bugfixes, updates and new functionality.
New Packages on CentOS 5.5
freeradius2
gsl
postgresql84
python-dmidecode
samba3x
tunctl
xz
gpxe (x86_64 only)
Some package updates
exim 4.63
gcc 4.1.2
kernel 2.6.18
OpenOffice.org 3.1.1
php 5.1.6
xen 3.0.3
yum 3.2.22
httpd 2.2.3
Most interesting update is PostgreSQL 8.4. Of course, many have used the 8.4 version of PostgreSQL on...
One day, I was looking for PostgreSQL database function, which could delay the execution of queries. At first I thought that I will do one myself, because I do not remember ever seen this kind function. But then I found pg_sleep Postgres function which directly delay execution of the server process.
pg_sleep makes the current session's process sleep until seconds seconds have elapsed. Seconds is a value of type double precision, so fractional-second delays can be specified.
pg_sleep...
This is quick tip howto select a random number in a range. Example random number between 1-100 (>= 1 and < 100). This is actually very easy job with PostgreSQL own random() function, which returns random value between 0-1. Following example selects 5 random values using generate_series() function:
SELECT random() FROM generate_series(1,5);
random
-------------------
0.595817462075502
0.350072300527245
0.989073566626757
0.700899163261056
0.940509075298905
(5...
Fedora team promises to bring to you the latest and greatest release of Fedora ever, Fedora 12! Many things are really changed and improved. Fedora 12 also brings lots of new packages.
Here is some highlights from Fedora 12 new stuff
Optimized performance - 32-bit architecture software packages have been compiled with special optimization for the Intel Atom processors without losing compatibility with the overwhelming majority of CPUs.
Smaller and faster updates - Fedora 12 uses...
This new design (using Arras Theme) has just been published and will still develop, so any comments and opinions are very welcome.
In my opinion, the new layout is much lighter and clearer. Also blog's content is intended to bring out clearer for blog readers and users.
Please leave comment and tell your opinion!
Old layout screenshot:
New layout screenshot:
Here is a list of the best Google Chrome Search Engine Optimization (SEO) extensions (plugins).
Search Engine Optimization (SEO) Extensions
Chrome SEO
The Google Chrome SEO Extension. Make your SEO tasks easier with Chrome SEO Tools, includes 'all' the stats and data you need.
Install Extension
(more…)
What is Gnome Shell?
GNOME Shell is the defining technology of the GNOME 3 desktop user experience.
It provides following core interface functions:
Launching applications
Opening files
Switching between open windows
Adding and deleting workspaces
Moving windows between workspaces
Dynamic system-related information display (including transient notifications)
Providing a flat list of user-account related actions
Logging out or switching the session, and stopping or...
I before post 'Twitter Hacked by Iranian Cyber Army', but actually just Twitter DNS records was hacked. I think even twitter.com server headers and tracepath to servers simply prove this, because they are completely different normally when hacked.
Hacked twitter.com headers:
(more…)
« Previous
1
2
3
…
6
7
8
9
10
Next »