    <?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>Balbu Web Solutions &#187; solution</title>
	<atom:link href="http://bws.balbu.eu/tag/solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://bws.balbu.eu</link>
	<description>Our values are what the clients feel value. We have a creative team, but we always keep in mind what our clients want. We always try to improve our skills and we can use the latest techniques, but we won’t drop the long standing way to be successfull. Our main goal is to build sites where the needs and the working solutions can meet for the satisfaction of the client.</description>
	<lastBuildDate>Fri, 10 Jan 2014 06:09:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Make picture desaturate with pure CSS</title>
		<link>http://bws.balbu.eu/make-picture-desaturate-with-pure-css/</link>
		<comments>http://bws.balbu.eu/make-picture-desaturate-with-pure-css/#comments</comments>
		<pubDate>Fri, 19 Apr 2013 10:50:47 +0000</pubDate>
		<dc:creator>Zsolt Nagy</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[bws]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[desaturate]]></category>
		<category><![CDATA[fedaein]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://bws.balbu.eu/?p=278</guid>
		<description><![CDATA[In the BWS developing process, I had to make the images desaturate and then fade them to color at hover. It is possible to make without javascript, only have to use filter and CSS transitions. How it is possible? First, we have to style the image for it&#8217;s final place, and then the magic happens: [...]]]></description>
				<content:encoded><![CDATA[<p>In the BWS developing process, I had to make the images desaturate and then fade them to color at hover. It is possible to make without javascript, only have to use filter and CSS transitions.</p>
<p>How it is possible? First, we have to style the image for it&#8217;s final place, and then the magic happens: we can use a desaturate filter for the images, and for hover, we can make it to fade in with CSS transitions.</p>
<p><span id="more-278"></span></p>
<pre class="brush: css; title: ; notranslate">

#single_blog img {

 display: inline-block;
 float: left;
 filter: url(&quot;data:image/svg+xml;utf8,&lt;svg xmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filter id=\'grayscale\'&gt;&lt;feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale&quot;); /* Firefox 10+ */
 filter: gray; /* IE6-9 */
 -webkit-filter: grayscale(100%); /* Chrome 19+ &amp; Safari 6+ */
 -webkit-transition: all 0.5s ease-in-out;
 transition: all 0.5s ease-in-out;
 -moz-transition: all 0.5s ease-in-out;
 -o-transition: all 0.5s ease-in-out;
 -ms-transition: all 0.5s ease-in-out;

}

</pre>
<p>What have we done here? We used a filter for the #single_blog_image. With the -webkit solution, all of the browsers can use the filtered image, and at the end of the style we have used some transition to have the desaturated effect fade out and the original color fade in. This works in all of the major browsers except in Firefox, because it is not a standard method to have the filters fade.</p>
<pre class="brush: css; title: ; notranslate">
#single_blog img:hover {
 filter: url(&quot;data:image/svg+xml;utf8,&lt;svg xmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filter id=\'grayscale\'&gt;&lt;feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale&quot;);
 -webkit-filter: grayscale(0%);
 filter: alpha(opacity=50);
}

</pre>
<p>To be honest, I couldn&#8217;t find any standard solution to fade the filters, so Chrom, Safari and Opera just simply use it, but not Firefox.</p>
<p>Maybe it is not the best solution, but in this case I dont&#8217;t need to use some extra script, so at the moment this is the best solution for Us, and it is possible with pure CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://bws.balbu.eu/make-picture-desaturate-with-pure-css/feed/</wfw:commentRss>
		<slash:comments>250</slash:comments>
		</item>
		<item>
		<title>Mysql dump to separate files with archive exclusion</title>
		<link>http://bws.balbu.eu/mysql-dump-to-separate-files-with-archive-exclusion/</link>
		<comments>http://bws.balbu.eu/mysql-dump-to-separate-files-with-archive-exclusion/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 12:55:57 +0000</pubDate>
		<dc:creator>oliver nadj</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://bws.balbu.eu/?p=218</guid>
		<description><![CDATA[We run some LAMP server mostly on EC2 infrastructure. Considering the servers in different locations and environments there are no unified automate service for backpacking Mysql databases into separate files. And the other hand we don&#8217;t want to regular backup handle the fat archive tables. So what we need is a mysql backup solution, probably [...]]]></description>
				<content:encoded><![CDATA[<p>We run some LAMP server mostly on EC2 infrastructure. Considering the servers in different locations and environments there are no unified automate service for backpacking Mysql databases into separate files. And the other hand we don&#8217;t want to regular backup handle the fat archive tables.</p>
<p>So what we need is a mysql backup solution, probably a bash script what makes separate files per each db and ignores archive and memory engines of course with possibilities of gzipping.</p>
<p><span id="more-218"></span></p>
<p>I googled but I didn&#8217;t found what exactly we need, fortunately I found some similar like this one: <a title="How to dump all MySQL databases into separate files" href="http://carrotplant.com/en/blog/how-to-dump-all-mysql-databases-into-separate-files">http://carrotplant.com/en/blog/how-to-dump-all-mysql-databases-into-separate-files</a> and I combine them together.</p>
<p>Finally there are the dump script.</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash

############
# Settings #
############

# mysql parameters
MYSQL_USER=&quot;root&quot;
MYSQL_PASSWORD=&quot;******&quot;
MYSQLDUMP=&quot;/usr/bin/mysqldump&quot;
MYSQL=&quot;/usr/bin/mysql&quot;
BACKUP_LOCATION=&quot;/var/backups/ervername/mysql/&quot;
BACKUP_SQLDIR=$BACKUP_LOCATION$(date +%Y-%m-%d_%H-%M)
EXCLUDE_DBS=&quot;(Database|information_schema|phpmyadmin|mysql)&quot;
EXCLUDE_EGX=&quot;(MEMORY|ARCHIVE)&quot;
GZIP_ENABLED=1

##############
# THE SCRIPT #
##############

echo &quot;sophisticated dump of mysql databases&quot;
echo &quot;destination: $BACKUP_SQLDIR&quot;
echo &quot;ignore these databases: $EXCLUDE_DBS&quot;
echo &quot;ignore these engines: $EXCLUDE_EGX&quot;
echo &quot;gzipping: $GZIP_ENABLED&quot;

#returns list of ignired tables
ignoredtables () {
   local IGNORES
   TABLES=`$MYSQL --user=$MYSQL_USER --password=$MYSQL_PASSWORD -e &quot;USE $1; SHOW TABLE STATUS;&quot;  | grep -E $EXCLUDE_EGX | awk '{print $1}'`
   for CURRENT_TB in $TABLES; do
       IGNORES=&quot;$IGNORES --ignore-table=$1.$CURRENT_TB&quot;
   done
   echo $IGNORES
}

if [ ! -d &quot;$BACKUP_SQLDIR&quot; ]; then
    echo &quot;make dir: &quot;$BACKUP_SQLDIR
    mkdir -p $BACKUP_SQLDIR
fi

# get a list of databases
DATABASES=`$MYSQL --user=$MYSQL_USER --password=$MYSQL_PASSWORD -e &quot;SHOW DATABASES;&quot; | grep -Ev $EXCLUDE_DBS`

# dump each database in turn
echo &quot;dumping databases...&quot;
TIME_SPENT=`date +%s`
OVERAL_SPENT=`date +%s`
for CURRENT_DB in $DATABASES; do
    echo $CURRENT_DB
    IGNORED_TABLES=`ignoredtables $CURRENT_DB`
    if [ $GZIP_ENABLED == 1 ]; then
        $MYSQLDUMP --force --opt --routines --user=$MYSQL_USER --password=$MYSQL_PASSWORD $IGNORED_TABLES $CURRENT_DB | gzip &gt; &quot;$BACKUP_SQLDIR/$CURRENT_DB.sql.gz&quot;
    else
        $MYSQLDUMP --force --opt --routines --user=$mYSQL_USER --password=$MYSQL_PASSWORD $IGNORED_TABLES $CURRENT_DB &gt; &quot;$BACKUP_SQLDIR/$CURRENT_DB.sql&quot;
    fi
    TIME_SPENT=$((`date +%s` - $TIME_SPENT))
    echo &quot;spent: &quot;$TIME_SPENT&quot;s         overal: &quot;$((`date +%s` - $OVERAL_SPENT))&quot;s&quot;
    TIME_SPENT=`date +%s`
done

# removes previous backup older then 7 days
find $BACKUP_LOCATION -mtime +7 -type d -exec rm -Rv {} \;

echo &quot;[done]&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bws.balbu.eu/mysql-dump-to-separate-files-with-archive-exclusion/feed/</wfw:commentRss>
		<slash:comments>254</slash:comments>
		</item>
	</channel>
</rss>
