<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MINIMALITE</title>
	<atom:link href="http://minimalite.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://minimalite.com</link>
	<description>Security &#124; Wordpress &#124; Web &#124; Linux</description>
	<lastBuildDate>Thu, 17 May 2012 11:03:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Best Clean CSS Font Styles</title>
		<link>http://minimalite.com/2012/05/css/best-clean-css-font-styles/</link>
		<comments>http://minimalite.com/2012/05/css/best-clean-css-font-styles/#comments</comments>
		<pubDate>Thu, 17 May 2012 11:02:22 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[clean font styles]]></category>
		<category><![CDATA[clean text]]></category>
		<category><![CDATA[clean typography]]></category>
		<category><![CDATA[css font family]]></category>
		<category><![CDATA[css font styles]]></category>
		<category><![CDATA[font styles]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1489</guid>
		<description><![CDATA[1) Smashing Magazine 2) David Walsh Blog font-family: Georgia, Times, serif; line-height: 180%; color: #444; 3) HTML Sniffer font-family: Georgia, serif; font-size: 100%; color: #000; 4) Devdaily font-family: Palatino, Georgia, Times; font-size: 18px; color: #333; 5) Praegnanz font-family: &#34;facitweb-1&#34;,&#34;facitweb-2&#34;,tahoma,&#34;Lucida Grande&#34;,&#34;Lucida Sans Unicode&#34;,arial,sans-serif; font-size: 14px; line-height: 1.64; color: #222; This post will be edited with time.]]></description>
			<content:encoded><![CDATA[<p><b><a href="http://www.smashingmagazine.com/" title="Smashing Magazine" target="_blank"><font color="orange">1)</font> Smashing Magazine</a></b></p>
<p><img src="http://minimalite.com/wp-content/uploads/17_05_2012-12_09_54.jpeg" alt="Smashing Magazine" /></p>
<p><b><a href="http://davidwalsh.name/" title="David Walsh Blog" target="_blank"><font color="orange">2)</font> David Walsh Blog</a></b></p>
<p><img src="http://minimalite.com/wp-content/uploads/David-Walsh-MooTools-Dojo-Consultant_1337249767614.png" alt="David Walsh Blog" /></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">font-family: Georgia, Times, serif;
line-height: 180%;
color: #444;</pre></div></div>

<p><b><a href="http://www.htmlsniffer.com/" title="HTMLSniffer" target="_blank"><font color="orange">3)</font> HTML Sniffer</a></b></p>
<p><img src="http://minimalite.com/wp-content/uploads/17_05_2012-12_21_19.jpeg" alt="HTMLSniffer" /></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">font-family: Georgia, serif;
font-size: 100%;
color: #000;</pre></div></div>

<p><b><a href="http://www.devdaily.com/" title="Devdaily" target="_blank"><font color="orange">4)</font> Devdaily</a></b></p>
<p><img src="http://minimalite.com/wp-content/uploads/17_05_2012-12_26_00.jpeg" alt="Devdaily" /></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">font-family: Palatino, Georgia, Times;
font-size: 18px;
color: #333;</pre></div></div>

<p><b><a href="http://praegnanz.de/" title="Praegnanz.de" target="_blank"><font color="orange">5)</font> Praegnanz</a></b></p>
<p><img src="http://minimalite.com/wp-content/uploads/17_05_2012-12_41_21.jpeg" alt="Praegnanz" /></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">font-family: &quot;facitweb-1&quot;,&quot;facitweb-2&quot;,tahoma,&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,arial,sans-serif;
font-size: 14px;
line-height: 1.64;
color: #222;</pre></div></div>

<p>This post will be edited with time.</p>
]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/05/css/best-clean-css-font-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count unique colors in images with ImageMagick</title>
		<link>http://minimalite.com/2012/05/php/count-unique-colors-in-images-with-imagemagick/</link>
		<comments>http://minimalite.com/2012/05/php/count-unique-colors-in-images-with-imagemagick/#comments</comments>
		<pubDate>Wed, 02 May 2012 15:45:43 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[count unique color image]]></category>
		<category><![CDATA[identify format k]]></category>
		<category><![CDATA[imagemagick]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1486</guid>
		<description><![CDATA[Command: identify -format &#34;%k&#34; image.png Output: identify -format &#34;%k&#34; image.png 9003 References: http://www.imagemagick.org/script/escape.php]]></description>
			<content:encoded><![CDATA[<p>Command:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">identify -format &quot;%k&quot; image.png</pre></div></div>

<p>Output:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">identify -format &quot;%k&quot; image.png
9003</pre></div></div>

<p>References:<br />
<a href="http://www.imagemagick.org/script/escape.php" target="_blank">http://www.imagemagick.org/script/escape.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/05/php/count-unique-colors-in-images-with-imagemagick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DriverPack Solution 12.3 Full &#8211; Automatically install drivers in Notebook</title>
		<link>http://minimalite.com/2012/04/windows/driverpack-solution-12-3-full-automatically-install-drivers-in-notebook/</link>
		<comments>http://minimalite.com/2012/04/windows/driverpack-solution-12-3-full-automatically-install-drivers-in-notebook/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 19:07:40 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1475</guid>
		<description><![CDATA[DriverPack Solution is the most popular program that makes the job of finding and automatically installing drivers a pleasure. DriverPack Solution simplifies the process of reinstalling Windows on any computer. No more problems with searching and installing drivers. Everything will be done in a couple of mouse clicks! Download from: http://drp.su/download.htm]]></description>
			<content:encoded><![CDATA[<p>DriverPack Solution is the most popular program that makes the job of finding and automatically installing drivers a pleasure. DriverPack Solution simplifies the process of reinstalling Windows on any computer. No more problems with searching and installing drivers. Everything will be done in a couple of mouse clicks!</p>
<p><img src="http://minimalite.com/wp-content/uploads/16_04_2012-21_06_27.jpeg" alt="GUI" /></p>
<p>Download from:<br />
<a href="http://drp.su/download.htm" target="_blank">http://drp.su/download.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/windows/driverpack-solution-12-3-full-automatically-install-drivers-in-notebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Assign All Array Key and Value</title>
		<link>http://minimalite.com/2012/04/php/php-assign-all-array-key-and-value/</link>
		<comments>http://minimalite.com/2012/04/php/php-assign-all-array-key-and-value/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 14:15:58 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1473</guid>
		<description><![CDATA[function assign_data( $arr ) { if ( !is_array( $arr ) ) return false; $output = array(); foreach ( $arr as $key =&#62; $value ) $output[ $key ] = $value; return $output; } Usage: $arr = array(); $arr = assign_data($Database-&#62;get_data());]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">function assign_data( $arr )
{
	if ( !is_array( $arr ) ) return false;
	$output = array();
	foreach ( $arr as $key =&gt; $value ) $output[ $key ] = $value;
        return $output;
}</pre></div></div>

<p>Usage:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$arr = array();
$arr = assign_data($Database-&gt;get_data());</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/php/php-assign-all-array-key-and-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL reset AUTO_INCREMENT value and reset ID of table</title>
		<link>http://minimalite.com/2012/04/mysql/mysql-reset-auto_increment-value-and-reset-id-of-table/</link>
		<comments>http://minimalite.com/2012/04/mysql/mysql-reset-auto_increment-value-and-reset-id-of-table/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 18:44:51 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql drop IDs]]></category>
		<category><![CDATA[mysql fix auto_increment]]></category>
		<category><![CDATA[reset auto_increment]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1466</guid>
		<description><![CDATA[Last day when I was working with a mysql database of a client I noted that he imported a .SQL file but it screwed the IDs, the problem was everytime a new data was inserted, its ID was always &#8220;0&#8243;. So to fix this problem we can reset the IDs and reset the AUTO_INCREMENT number [...]]]></description>
			<content:encoded><![CDATA[<p>Last day when I was working with a mysql database of a client I noted that he imported a .SQL file but it screwed the IDs, the problem was everytime a new data was inserted, its ID was always &#8220;0&#8243;. So to fix this problem we can reset the IDs and reset the AUTO_INCREMENT number with the following commands:</p>
<p><b>Method #1</b></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ALTER TABLE `table` DROP `id`;
ALTER TABLE `table` AUTO_INCREMENT = 1;
ALTER TABLE `table` ADD `id` int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;</pre></div></div>

<p>Note that you will delete any relationships you may have with other tables.</p>
<p><b>Method #2</b></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ALTER TABLE `table` AUTO_INCREMENT = 1;</pre></div></div>

<p><b>Method #3</b></p>
<p>If the column is used as a foreign key in other tables, make sure you use ON UPDATE CASCADE instead of the default ON UPDATE NO ACTION for the foreign key relationship in that table.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">SET @count = 0;
UPDATE `table` SET `users`.`id` = @count:= @count + 1;
ALTER TABLE `table` AUTO_INCREMENT = 1;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/mysql/mysql-reset-auto_increment-value-and-reset-id-of-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy MySQL table from one database to another</title>
		<link>http://minimalite.com/2012/04/mysql/copy-mysql-table-from-one-database-to-another/</link>
		<comments>http://minimalite.com/2012/04/mysql/copy-mysql-table-from-one-database-to-another/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 14:56:51 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[copy mysql table]]></category>
		<category><![CDATA[copy table to another db]]></category>
		<category><![CDATA[mysql copy table to other database]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1464</guid>
		<description><![CDATA[Command is: CREATE TABLE `db1`.`table` SELECT * FROM `db2`.`table`;]]></description>
			<content:encoded><![CDATA[<p>Command is:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">CREATE TABLE `db1`.`table` SELECT * FROM `db2`.`table`;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/mysql/copy-mysql-table-from-one-database-to-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apt-get install broken packages: Some packages could not be installed</title>
		<link>http://minimalite.com/2012/04/linux/apt-get-install-broken-packages-some-packages-could-not-be-installed/</link>
		<comments>http://minimalite.com/2012/04/linux/apt-get-install-broken-packages-some-packages-could-not-be-installed/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 09:27:24 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get install broken package]]></category>
		<category><![CDATA[apt-get install errors]]></category>
		<category><![CDATA[some packages could not be installed]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1459</guid>
		<description><![CDATA[Example of error message: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: &#160; The following [...]]]></description>
			<content:encoded><![CDATA[<p>Example of error message:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
&nbsp;
The following packages have unmet dependencies:
xxx : Breaks: xxx (&lt; xxxx-1) but xxxx-2 is to be installed
E: Broken packages</pre></div></div>

<p>To fix this issue, just type:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">aptitude clean &amp;&amp; aptitude update
aptitude -f install
aptitude install [package_name_here]</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/linux/apt-get-install-broken-packages-some-packages-could-not-be-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian 5 Lenny mirrors are gone, how to fix apt-update ?</title>
		<link>http://minimalite.com/2012/04/linux/debian-5-lenny-mirrors-are-gone-how-to-fix-apt-update/</link>
		<comments>http://minimalite.com/2012/04/linux/debian-5-lenny-mirrors-are-gone-how-to-fix-apt-update/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 09:22:15 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-update error lenny]]></category>
		<category><![CDATA[debian 5 apt update error]]></category>
		<category><![CDATA[debian 5 lenny apt-update]]></category>
		<category><![CDATA[mirrors debian 5 lenny]]></category>
		<category><![CDATA[update packages debian 5]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1455</guid>
		<description><![CDATA[Debian 5 Lenny has been removed from ftp.us.debian.org and it has been moved to archive.debian.org that contains all packages that can be downloaded and updated with apt-get update, here is a small text from the announcement: One year after the release of Debian 6.0 alias &#8220;Squeeze&#8221; and nearly three years after the release of Debian [...]]]></description>
			<content:encoded><![CDATA[<p>Debian 5 Lenny has been removed from ftp.us.debian.org and it has been moved to <a href="http://www.debian.org/News/2012/20120310">archive.debian.org</a> that contains all packages that can be downloaded and updated with apt-get update, here is a small text from the announcement:</p>
<blockquote><p>
One year after the release of Debian 6.0 alias &#8220;Squeeze&#8221; and nearly three years after the release of Debian GNU/Linux 5.0 alias &#8220;Lenny&#8221; the security support for the old distribution (5.0 alias &#8220;Lenny&#8221;) came to an end a few days ago. The Debian project is proud to have been able to support its old distribution for such a long time and even for one year after a new version has been released.
</p></blockquote>
<p>Tp update packages with &#8220;apt-get update&#8221; just add this line to &#8220;/etc/apt/sources.list&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://archive.debian.org/debian/ lenny main contrib</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/linux/debian-5-lenny-mirrors-are-gone-how-to-fix-apt-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apt-update Fails with Debian 4 Etch: Use archive.debian.org in Sources.List</title>
		<link>http://minimalite.com/2012/04/linux/apt-update-fails-with-debian-4-etch-use-archive-debian-org-in-sources-list/</link>
		<comments>http://minimalite.com/2012/04/linux/apt-update-fails-with-debian-4-etch-use-archive-debian-org-in-sources-list/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 09:12:20 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian 4 etch apt-update]]></category>
		<category><![CDATA[debian 4 etch mirrors]]></category>
		<category><![CDATA[debian etch package archive]]></category>
		<category><![CDATA[update packages debian etch]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1450</guid>
		<description><![CDATA[Debian 4 Etch has been removed from ftp.us.debian.org and it has been moved to archive.debian.org that contains all packages that can be downloaded and updated with apt-get update, here is a small text from the announcement: We intend to copy Etch to archive.debian.org on the evening (UTC) of Sunday 20th June. Etch will then gradually [...]]]></description>
			<content:encoded><![CDATA[<p>Debian 4 Etch has been removed from ftp.us.debian.org and it has been moved to <a href="http://lists.debian.org/debian-devel-announce/2010/06/msg00003.html">archive.debian.org</a> that contains all packages that can be downloaded and updated with apt-get update, here is a small text from the announcement:</p>
<blockquote><p>
We intend to copy Etch to archive.debian.org on the evening (UTC) of Sunday 20th June. Etch will then gradually disappear from the mirrors; the dists tree will be immediately removed and the files in the pool will be removed in groups over the following few days.
</p></blockquote>
<p>Tp update packages with &#8220;apt-get update&#8221; just add this line to &#8220;/etc/apt/sources.list&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://archive.debian.org/debian/ etch main contrib</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/linux/apt-update-fails-with-debian-4-etch-use-archive-debian-org-in-sources-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Optimization Commands</title>
		<link>http://minimalite.com/2012/04/wordpress-hacks/wordpress-optimization-commands/</link>
		<comments>http://minimalite.com/2012/04/wordpress-hacks/wordpress-optimization-commands/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 22:31:50 +0000</pubDate>
		<dc:creator>X32</dc:creator>
				<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[optimize wp]]></category>
		<category><![CDATA[wordpress optimization]]></category>
		<category><![CDATA[wordpress optimize]]></category>

		<guid isPermaLink="false">http://minimalite.com/?p=1445</guid>
		<description><![CDATA[Delete post revisions: DELETE FROM $wpdb-&#62;posts WHERE post_type = 'revision' Delete auto drafts: DELETE FROM $wpdb-&#62;posts WHERE post_status = 'auto-draft' Delete unapproved comments: DELETE FROM $wpdb-&#62;comments WHERE comment_approved = '0' Delete spam comments: DELETE FROM $wpdb-&#62;comments WHERE comment_approved = 'spam' Example function in PHP: function execQuery( $query ) { global $wpdb; if ( !$query ) [...]]]></description>
			<content:encoded><![CDATA[<p>Delete post revisions:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">DELETE FROM $wpdb-&gt;posts WHERE post_type = 'revision'</pre></div></div>

<p>Delete auto drafts:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">DELETE FROM $wpdb-&gt;posts WHERE post_status = 'auto-draft'</pre></div></div>

<p>Delete unapproved comments:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">DELETE FROM $wpdb-&gt;comments WHERE comment_approved = '0'</pre></div></div>

<p>Delete spam comments:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">DELETE FROM $wpdb-&gt;comments WHERE comment_approved = 'spam'</pre></div></div>

<p>Example function in PHP:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">function execQuery( $query )
{
     global $wpdb;
     if ( !$query ) return false;
     return $wpdb-&gt;query( $query );
}</pre></div></div>

<p>Usage:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">echo execQuery( &quot;DELETE FROM $wpdb-&gt;comments WHERE comment_approved = 'spam'&quot; ).&quot; items deleted.&quot;;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://minimalite.com/2012/04/wordpress-hacks/wordpress-optimization-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

