<?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>Frederic VUONG - IT Blog</title>
	<atom:link href="http://vuong.fr/myitblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://vuong.fr/myitblog</link>
	<description>My IT &#38; Internet blog</description>
	<lastBuildDate>Thu, 17 May 2012 11:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Broken WordPress Admin dashboard (no CSS loaded)</title>
		<link>http://vuong.fr/myitblog/2012/05/broken-wordpress-admin-dashboard-no-css-loaded/</link>
		<comments>http://vuong.fr/myitblog/2012/05/broken-wordpress-admin-dashboard-no-css-loaded/#comments</comments>
		<pubDate>Thu, 17 May 2012 11:53:20 +0000</pubDate>
		<dc:creator>fred</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://vuong.fr/myitblog/?p=1892</guid>
		<description><![CDATA[When I connected on my WP admin dashboard, it was displaying in a simple HTML page (no CSS loaded). I found a great solution on the wordpress forum. &#160; Simply add the following line in the wp-config.php file before the first require_once function call:  define(&#8216;CONCATENATE_SCRIPTS&#8217;, false); &#160; Hope this will fix your problem. &#160; Source: http://wordpress.org/support/topic/wp-admin-broken-displays-plain-html-css-java-not-loading &#160;]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When I connected on my WP admin dashboard, it was displaying in a simple HTML page (no CSS loaded). I found a great solution on the wordpress forum.</p>
<p>&nbsp;</p>
<p>Simply add the following line in the <strong>wp-config.php</strong> file before the first <strong>require_once</strong> function call:</p>
<blockquote><p> define(&#8216;CONCATENATE_SCRIPTS&#8217;, false);</p></blockquote>
<p>&nbsp;</p>
<p>Hope this will fix your problem.</p>
<p>&nbsp;</p>
<p><em>Source: <a href="http://wordpress.org/support/topic/wp-admin-broken-displays-plain-html-css-java-not-loading" target="_blank">http://wordpress.org/support/topic/wp-admin-broken-displays-plain-html-css-java-not-loading</a></em></p>
<p>&nbsp;</p>
<div class="shr-publisher-1892"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F05%2Fbroken-wordpress-admin-dashboard-no-css-loaded%2F' data-shr_title='Broken+Wordpress+Admin+dashboard+%28no+CSS+loaded%29'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F05%2Fbroken-wordpress-admin-dashboard-no-css-loaded%2F' data-shr_title='Broken+Wordpress+Admin+dashboard+%28no+CSS+loaded%29'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F05%2Fbroken-wordpress-admin-dashboard-no-css-loaded%2F' data-shr_title='Broken+Wordpress+Admin+dashboard+%28no+CSS+loaded%29'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://vuong.fr/myitblog/2012/05/broken-wordpress-admin-dashboard-no-css-loaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need to schedule a Drupal post?</title>
		<link>http://vuong.fr/myitblog/2012/03/need-to-schedule-a-drupal-post/</link>
		<comments>http://vuong.fr/myitblog/2012/03/need-to-schedule-a-drupal-post/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 18:00:03 +0000</pubDate>
		<dc:creator>fred</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Modules]]></category>

		<guid isPermaLink="false">http://vuong.fr/myitblog/?p=1882</guid>
		<description><![CDATA[&#160; &#160; &#160; &#160; &#160; &#160; Scheduler is a module that will allow you to schedule your content publication. It can unpublish them as well! &#160; 1. Download and install the module 2. Set permissions (if needed) 3.  Configure the timezone and test the cron (configuration &#62; Content Authoring &#62; Scheduler module settings) 4. Go to [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignleft size-thumbnail wp-image-1883" title="schedule" src="http://vuong.fr/myitblog/wp-content/uploads/2012/03/schedule1-150x150.jpg" alt="" width="150" height="150" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Scheduler is a module that will allow you to schedule your content publication. It can unpublish them as well!</p>
<p>&nbsp;</p>
<p>1. Download and install <a href="http://drupal.org/project/scheduler" target="_blank">the module</a></p>
<p>2. Set permissions (if needed)</p>
<p>3.  Configure the timezone and test the cron (configuration &gt; Content Authoring &gt; Scheduler module settings)</p>
<p>4. Go to each content type, edit it and enable the scheduler if needed</p>
<p>&nbsp;</p>
<p>More information and download at: <a href="http://drupal.org/project/scheduler" target="_blank">http://drupal.org/project/scheduler</a></p>
<div class="shr-publisher-1882"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F03%2Fneed-to-schedule-a-drupal-post%2F' data-shr_title='Need+to+schedule+a+Drupal+post%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F03%2Fneed-to-schedule-a-drupal-post%2F' data-shr_title='Need+to+schedule+a+Drupal+post%3F'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F03%2Fneed-to-schedule-a-drupal-post%2F' data-shr_title='Need+to+schedule+a+Drupal+post%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://vuong.fr/myitblog/2012/03/need-to-schedule-a-drupal-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a &#8220;Who is online&#8221; block in Drupal 7</title>
		<link>http://vuong.fr/myitblog/2012/03/create-a-who-is-online-block-in-drupal-7/</link>
		<comments>http://vuong.fr/myitblog/2012/03/create-a-who-is-online-block-in-drupal-7/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 10:48:49 +0000</pubDate>
		<dc:creator>fred</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://vuong.fr/myitblog/?p=1875</guid>
		<description><![CDATA[&#160; &#160; &#160; &#160; &#160; Based on this article, you can create a block in Drupal to show who is online. Create a block, use PHP Code as text format and paste the following code. &#160; Note there was a bug in the line #7. In order to make it work, I had to changes [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="size-thumbnail wp-image-1878 alignleft" title="Who's online?" src="http://vuong.fr/myitblog/wp-content/uploads/2012/03/1291831969.who_online-700x7001-150x150.jpg" alt="" width="150" height="150" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Based on <a href="http://scito.ch/comment/24" target="_blank">this article</a>, you can create a block in Drupal to show who is online. Create a block, use PHP Code as text format and paste the following code.</p>
<p>&nbsp;</p>
<p><em>Note there was a bug in the line #7. In order to make it work, I had to changes the double quotes to single quotes.</em></p>
<p>&nbsp;</p>
<blockquote><p>&lt;?php<br />
/* Code based on http://www.phpcodester.com/2011/04/drupal-7-block-for-whos-online-with-guests/ */<br />
if (user_access(&#8216;access content&#8217;)) {<br />
$spiders=array(&#8216;google&#8217;, &#8216;fatlens&#8217;, &#8216;yahoo&#8217;, &#8216;altavista&#8217;, &#8216;yandex&#8217;, &#8216;baidu&#8217;, &#8216;bing&#8217;, &#8216;thefind&#8217;, &#8216;bot&#8217;, &#8216;spider&#8217;, &#8216;crawl&#8217;);<br />
$interval = REQUEST_TIME &#8211; variable_get(&#8216;user_block_seconds_online&#8217;, 900);<br />
$authenticated_count = db_query(&#8220;SELECT COUNT(DISTINCT s.uid) FROM {sessions} s WHERE s.timestamp &gt;= :timestamp AND s.uid &gt; 0&#8243;, array(&#8216;:timestamp&#8217; =&gt; $interval))-&gt;fetchField();<br />
$output=&#8221;&lt;div class = &#8216;visitor-ips&#8217;&gt;&#8221;;<br />
$max_users = variable_get(&#8216;user_block_max_list_count&#8217;, 10);<br />
/*if ($authenticated_count &amp;&amp; $max_users) {<br />
$output.=&#8221;&lt;h3&gt;Registered Users&lt;/h3&gt;&#8221;;<br />
$items = db_query_range(&#8216;SELECT u.uid, u.name, MAX(s.timestamp) AS max_timestamp FROM {users} u INNER JOIN {sessions} s ON u.uid = s.uid WHERE s.timestamp &gt;= :interval AND s.uid &gt; 0 GROUP BY u.uid, u.name ORDER BY max_timestamp DESC&#8217;, 0, $max_users, array(&#8216;:interval&#8217; =&gt; $interval))-&gt;fetchAll();<br />
$output .= theme(&#8216;user_list&#8217;, array(&#8216;users&#8217; =&gt; $items));<br />
}*/<br />
$guest_count = db_query(&#8220;SELECT COUNT(DISTINCT s.hostname) FROM {sessions} s WHERE s.timestamp &gt;= :timestamp&#8221;, array(&#8216;:timestamp&#8217; =&gt; $interval))-&gt;fetchField();<br />
$output.=&#8221;$guest_count visitor(s)&#8221;;<br />
$sData=array(); $gData=array();<br />
if ($guest_count &amp;&amp; $max_users) {<br />
$items = db_query_range(&#8216;SELECT DISTINCT s.hostname, MAX(s.timestamp) AS max_timestamp FROM {sessions} s WHERE s.timestamp &gt;= :interval ORDER BY max_timestamp DESC&#8217;, 0, 10000000, array(&#8216;:interval&#8217; =&gt; $interval))-&gt;fetchAll();<br />
$i=0;<br />
for ($i=0;$i&lt;count($items);$i++){<br />
$ips[$i]=$items[$i]-&gt;hostname;<br />
}<br />
$ips=array_unique($ips);<br />
foreach ($ips as $ip){<br />
$host=preg_replace(&#8216;/[^a-zA-Z\.]/&#8217;, &#8221;, gethostbyaddr($ip));<br />
if ($host==&#8221;&#8230;&#8221;) $host=&#8221;Unknown Hostname&#8221;;<br />
$spider=0;<br />
foreach ($spiders as $spider){<br />
if (strpos($host, $spider)!==false){<br />
$spider=1;<br />
break;<br />
}<br />
}<br />
if ($spider==1){<br />
$sData[]=array(&#8216;ip&#8217;=&gt;$ip, &#8216;host&#8217;=&gt;$host);<br />
}else{<br />
$gData[]=array(&#8216;ip&#8217;=&gt;$ip, &#8216;host&#8217;=&gt;$host);<br />
}<br />
}<br />
}<br />
if (isset($gData) &amp;&amp; count($gData)&gt;0){<br />
// $output.=&#8221;&lt;h3&gt;Guests&lt;/h3&gt;&#8221;;<br />
$output.=&#8221;&lt;ul&gt;&#8221;;<br />
$i=0;<br />
foreach ($gData as $d){<br />
$output.=&#8221;&lt;li&gt;&#8221;.$d['host'].&#8217;, &#8216;.$d['ip'];<br />
$loc=unserialize(file_get_contents(&#8216;http://www.geoplugin.net/php.gp?ip=&#8217;.$d['ip']));<br />
if ($loc['geoplugin_city'].$loc['geoplugin_region']!=&#8221;){<br />
$output.=&#8221;, &#8220;.$loc['geoplugin_city'].&#8221;, &#8220;.$loc['geoplugin_region'];<br />
}<br />
if ($loc['geoplugin_countryName']!=&#8221;){<br />
$output.=&#8221;, &#8220;.$loc['geoplugin_countryName'];<br />
}<br />
$output.=&#8221;&lt;/li&gt;&#8221;;<br />
if ($i&gt;$max_users){break;}<br />
$i++;<br />
}<br />
$output.=&#8221;&lt;/ul&gt;&#8221;;<br />
}<br />
if (isset($sData) &amp;&amp; count($sData)&gt;0){<br />
$output.=&#8221;Spiders:&#8221;;<br />
$i=0;<br />
$output.=&#8221;&lt;ul&gt;&#8221;;<br />
foreach ($sData as $d){<br />
$output.=&#8221;&lt;li&gt;&#8221;.$d['host'].&#8221;, &#8220;.$d['ip'].&#8221;&lt;/li&gt;&#8221;;<br />
if ($i&gt;$max_users){break;}<br />
$i++;<br />
}<br />
$output.=&#8221;&lt;/ul&gt;&#8221;;<br />
}<br />
$output.=&#8221; &lt;/div&gt;&#8221;;<br />
return $output;<br />
}<br />
?&gt;</p></blockquote>
<div class="shr-publisher-1875"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F03%2Fcreate-a-who-is-online-block-in-drupal-7%2F' data-shr_title='Create+a+%22Who+is+online%22+block+in+Drupal+7'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F03%2Fcreate-a-who-is-online-block-in-drupal-7%2F' data-shr_title='Create+a+%22Who+is+online%22+block+in+Drupal+7'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fvuong.fr%2Fmyitblog%2F2012%2F03%2Fcreate-a-who-is-online-block-in-drupal-7%2F' data-shr_title='Create+a+%22Who+is+online%22+block+in+Drupal+7'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://vuong.fr/myitblog/2012/03/create-a-who-is-online-block-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
