<?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>Dimitri.eu &#187; Technical</title>
	<atom:link href="http://www.dimitri.eu/category/categories/technical/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dimitri.eu</link>
	<description>About personal and IT-related occupations</description>
	<lastBuildDate>Fri, 30 Jul 2010 18:20:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Configure Ruby on Rails with Phusion Passenger (mod_rails)</title>
		<link>http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/</link>
		<comments>http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 18:20:49 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=169</guid>
		<description><![CDATA[The configuration of a new Ruby on Rails (RoR) environment has always been a bit of a struggle thanks to mongrel, mod_ruby,&#8230; but thanks to Phusion Passenger the configuration and deployment of RoR applications has become an easy job. I will describe how to configure Ruby on Rails with Phusion Passenger on a Debian (Debian [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/"><img class="alignright size-full wp-image-217" title="rails" src="http://www.dimitri.eu/wp-content/uploads/2010/07/rails.png" alt="rails" width="87" height="111" /></a>The configuration of a new Ruby on Rails (RoR) environment has always been a bit of a struggle thanks to mongrel, mod_ruby,&#8230; but thanks to Phusion Passenger the configuration and deployment of RoR applications has become an easy job.</p>
<p>I will describe how to configure Ruby on Rails with Phusion Passenger on a Debian (Debian GNU/Linux 5.0.4 (lenny)) server.</p>
<p><span id="more-169"></span></p>
<p><strong>1. We start by resynchronizing the package index files with their sources </strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get update</pre>
<p><strong>2. Then we check if MySQL is installed </strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># mysql -V
mysql  Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2</pre>
<p>You should run the following command if MySQL isn&#8217;t installed</p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get install mysql-server-5.0</pre>
<p>Please choose a secure MySQL root password when this question is asked by the MySQL installer</p>
<p><strong>3. We can now start by installing ruby </strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get install ruby irb rdoc</pre>
<p>These 3 packages will be configured automatically on your server so no further configuration is required. After the installation of these packages you should be able to run the ruby-command</p>
<pre class="brush:bash; gutter: false; toolbar:false"># ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]</pre>
<p><strong>4. We now need to install the rubygems module</strong>. Gems is the package manager for ruby which gives the users an easy way to install additional ruby modules.There are 2 methods to install gems onto your system. There is the apt-get method, and there is the manual one. We could use apt-get to install gems but this has a limitation, you won&#8217;t be able to update your ruby configuration using</p>
<pre class="brush:bash; gutter: false; toolbar:false"># gem update --system</pre>
<p>So we choose the manual method to install gems. Don&#8217;t copy the next link before you have checked the rubyforge.org website for the most recent version of rubygems.</p>
<pre class="brush:bash; gutter: false; toolbar:false; auto-links:false"># cd /usr/src
# wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz
# tar -xvzf rubygems-1.3.7.tgz
# cd rubygems-1.3.7
# ruby setup.rb
RubyGems 1.3.7 installed

ï»¿=== 1.3.7 / 2010-05-13

NOTE:
...
New features:
...
Bug fixes:
...
RubyGems installed the following executables:
        /usr/bin/gem1.8</pre>
<p>Now for the ease of use we will create a link to run the binary gem1.8 as the command gem.</p>
<p># ln -s /usr/bin/gem1.8 /usr/bin/gem # gem -v 1.3.7</p>
<p><strong>5. We will now move on to the installation of Rails</strong>, this component can be easily installed by launching the following command</p>
<pre class="brush:bash; gutter: false; toolbar:false"># gem install rails</pre>
<p>It can take several minutes before you will see any output but you just have to be patient.</p>
<pre class="brush:bash; gutter: false; toolbar:false">Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.8
Successfully installed activerecord-2.3.8
Successfully installed rack-1.1.0
Successfully installed actionpack-2.3.8
Successfully installed actionmailer-2.3.8
Successfully installed activeresource-2.3.8
Successfully installed rails-2.3.8
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.8...
Installing ri documentation for activerecord-2.3.8...
Installing ri documentation for rack-1.1.0...
Installing ri documentation for actionpack-2.3.8...
Installing ri documentation for actionmailer-2.3.8...
Installing ri documentation for activeresource-2.3.8...
Installing ri documentation for rails-2.3.8...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.8...
Installing RDoc documentation for activerecord-2.3.8...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for actionpack-2.3.8...
Installing RDoc documentation for actionmailer-2.3.8...
Installing RDoc documentation for activeresource-2.3.8...
Installing RDoc documentation for rails-2.3.8...</pre>
<p>We can now check if rails was installed succesfully.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># rails -v
Rails 2.3.8
</pre>
<p><strong>6. It is now time to test by creating a rails application. </strong>My webroot is configured under /var/www so I&#8217;ll use this in my test but you should verify your webroot before following these steps.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># cd /var/www
# rails hello
# cd hello
# script/server
</pre>
<p>This will result in the following output</p>
<pre class="brush:bash; gutter: false; toolbar:false; auto-links:false">=&gt; Booting WEBrick
=&gt; Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:271:in `require_frameworks': no such file to load -- net/https (RuntimeError)
</pre>
<p>We get this error because the ruby openssl library is required so we install this.</p>
<pre class="brush:bash; gutter: false; toolbar:false; auto-links:false"># apt-get install libopenssl-ruby
# script/server -d
=&gt; Booting WEBrick
=&gt; Rails 2.3.8 application starting on http://0.0.0.0:3000
</pre>
<p>The &#8220;-d&#8221; parameter starts rails and detaches the process so that you can continue working within your shell.</p>
<p>7. <strong> We can now move on to installing Phusion Passenger</strong> (mod_rails) as the configuration of Ruby and Rails has succeeded.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># apt-get install ruby-dev
# gem install passenger
# passenger-config --version
2.2.15
</pre>
<p>We now need to configure the Passenger apache module, this can be done by the following command. You&#8217;ll probably get some errors that certain modules are missing but you can easily install them to comply with the Passenger requirements.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># passenger-install-apache2-module
The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/bin/ruby1.8

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!

Press ENTER to continue.
</pre>
<p>Check if your apache config (mine is /etc/apache2/apache2.conf) has the line <em>/etc/apache2/mods-enabled/*.load.</em> If not you can just add this line to your apache config.</p>
<p><strong>8. We will now create the apache Passenger module and activate it.</strong></p>
<pre class="brush:bash; gutter: false; toolbar:false"># cd /etc/apache2/mods-available/
# touch passenger.load
# vi passenger.load
</pre>
<p>enter the following lines and save the file.</p>
<pre class="brush:bash; gutter: false; toolbar:false">LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/bin/ruby1.8

# ln -s ../mods-available/passenger.load passenger.load
# /etc/init.d/apache2 restart
# a2enmod</pre>
<p>You can now find &#8220;passenger&#8221; in this list so just type &#8220;passenger&#8221; and press enter to activate this apache module. Now restart apache.</p>
<pre class="brush:bash; gutter: false; toolbar:false"># /etc/init.d/apache2 restart</pre>
<p><strong>9. The final step is to let apache know where to find your app.</strong> Therefore you need to modify the apache configuration file of the vhost that will run your app, for example /etc/apache2/sites-enabled/000-default. Following this manual the following lines need to be configured in this config file:</p>
<pre class="brush:bash; gutter: false; toolbar:false">DocumentRoot /var/www/hello/public
PassengerAppRoot /var/www/hello/
</pre>
<p><strong>10. You now have a working Ruby on Rails environment with Phusion Passenger.</strong> If you want more information about Phusion Passenger there is always the user guide at <a title="Mod_rails user guide" href="http://www.modrails.com/documentation/Users%20guide%20Apache.html" target="_blank">http://www.modrails.com/documentation/Users%20guide%20Apache.html</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/configure-ruby-on-rails-with-phusion-passenger-mod_rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide alt-tab previews in Windows 7</title>
		<link>http://www.dimitri.eu/hide-alt-tab-previews-in-windows-7/</link>
		<comments>http://www.dimitri.eu/hide-alt-tab-previews-in-windows-7/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:00:04 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Alt-tab]]></category>
		<category><![CDATA[regedit]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=165</guid>
		<description><![CDATA[I recently changed from Windows XP to Windows 7 on my office computer and I like the smooth interface of Windows 7 but there was one thing that bothered me. The usage of alt-tab has changed from the default icons in Windows xp to a window preview in Windows 7. Fortunately for me there is [...]]]></description>
			<content:encoded><![CDATA[<p>I recently changed from Windows XP to Windows 7 on my office computer and I like the smooth interface of Windows 7 but there was one thing that bothered me. The usage of alt-tab has changed from the default icons in Windows xp to a window preview in Windows 7. Fortunately for me there is a way to use the classic alt-tab function.</p>
<p>Just follow these steps to configure the classic alt-tab in Windows 7:</p>
<ul>
<li>Open the command line (windows-button + r OR start &gt; run)</li>
<li>Type in the command <strong>regedit</strong></li>
<li>navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer</li>
<li>Now add a new DWORD value in Explorer with the name <strong>AltTabSettings </strong>and set the value to <strong>1</strong></li>
<li>Now close regedit</li>
</ul>
<p>You will now be able to use the classic alt-tab.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/hide-alt-tab-previews-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox tab tricks</title>
		<link>http://www.dimitri.eu/firefox-tab-tricks/</link>
		<comments>http://www.dimitri.eu/firefox-tab-tricks/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 16:52:23 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=155</guid>
		<description><![CDATA[If you&#8217;re used to the tab-behavior that firefox had a few versions ago then you would need to change your habits with the newer versions of this browser. The recent versions of firefox (I use 3.6.6) open tabs just next to the tab you are working on instead of the far end of your tab [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re used to the tab-behavior that firefox had a few versions ago then you would need to change your habits with the newer versions of this browser. The recent versions of firefox (I use 3.6.6) open tabs just next to the tab you are working on instead of the far end of your tab bar.</p>
<p>Fortunately it isn&#8217;t a big issue to modify the tab behavior yourself. Just type <strong>about:config</strong> in your address bar and press enter. you&#8217;ll get a warning from firefox to be careful on the next page.<br />
You have now entered in the configuration panel of firefox which lets you modify more than the default options.</p>
<p>Here are some modification options to optimize the tab behavior to your likings, each op the parameters can be modified by double-clicking on it. Modified settings can be recognised as they are in a bold font.</p>
<ul>
<li><strong>browser.allTabs.previews</strong>: if <strong>true </strong>your browser will show a preview of each tab if you click on the allTabs button on the far right end of your tab bar. If <strong>false </strong>a list of open tabs will be shown.</li>
<li><strong>browser.allTabs.previews</strong>: if <strong>true </strong>your browser will show a preview of the pages as you use ctrl+tab to navigate between your tabs. If <strong>false </strong>you can just cycle through your open tabs.</li>
<li><strong>browser.tabs.insertRelatedAfterCurrent</strong>: if <strong>true </strong>firefox will open every new tab next to the current working tab on your tab bar. If <strong>false</strong> firefox will open every new tab at the far end of your tab bar.</li>
</ul>
<p>These are just some options I modified to optimize my personal behavior but you can use this <strong>about:config</strong> page to modify more settings but be aware of what settings you modify.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/firefox-tab-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure Lighttpd with PHP5 and MySQL5</title>
		<link>http://www.dimitri.eu/how-to-configure-lighttpd-with-php5-and-mysql5/</link>
		<comments>http://www.dimitri.eu/how-to-configure-lighttpd-with-php5-and-mysql5/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 23:00:15 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=82</guid>
		<description><![CDATA[Over the years Apache has become somewhat of a standard web-server on unix servers but since the end of 2007 a worthy alternative to apache was born, called Lighttpd. Lighttpd has been proven to handle webrequests more efficiently than apache, resulting in a smaller memory footprint and a lower cpu load. For the moment a [...]]]></description>
			<content:encoded><![CDATA[<p>Over the years Apache has become somewhat of a standard web-server on unix servers but since the end of 2007 a worthy alternative to apache was born, called Lighttpd. <a href="http://www.lighttpd.net/" target="_blank">Lighttpd</a> has been proven to handle webrequests more efficiently than apache, resulting in a smaller memory footprint and a lower cpu load. For the moment a lot of large websites (more than 10 millions requests per day) are running on a lighttpd webserver, a few examples of these sites are:</p>
<ul>
<li><a href="http://www.imageshack.us" target="_blank">imageshack.us</a></li>
<li><a href="http://www.wikipedia.org" target="_blank">wikipedia.org</a></li>
<li><a href="http://www.mininova.org" target="_blank">mininova.org</a></li>
<li><a href="http://www.myspace.com" target="_blank">myspace.com</a></li>
<li><a href="http://www.youtube.com" target="_blank">youtube.com</a></li>
<li><a href="http://www.sourceforge.net" target="_blank">sourceforge.net</a></li>
</ul>
<p>This already is a fine curriculum so I thought it was time to configure a lighttpd server (with MySQL5 and PHP5 support) myself although I don&#8217;t come across any customers (I work at a hosting provider) who are using this at the moment.</p>
<p>We start of knowing that I usually work on debian-servers so some commands will not work on fedora, red-hat, and others.</p>
<p><span id="more-82"></span>First of all we check if apache isn&#8217;t already installed which it is in a lot of cases.</p>
<pre class="brush:bash; gutter: false; toolbar:false">dpkg -l | grep apache

ii  apache2-doc            2.2.3-4+etch6    documentation for apache2
ii  apache2-mpm-prefork    2.2.3-4+etch6    Traditional model for Apache
ii  apache2-utils          2.2.3-4+etch6    utility programs for webservers
ii  apache2.2-common       2.2.3-4+etch6    Next generation, scalable,</pre>
<p>If apache seems to be installed we will need to remove it to avoid conflicts on port 80.</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get remove apache2-doc apache2-mpm-prefork apache2-utils apache2.2-common</pre>
<p>Now we will install MySQL (The &#8220;-y&#8221; parameter avoids questions during the install by answering &#8220;yes&#8221; to every question.</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get install –y mysql-server mysql-client</pre>
<p>We start MySQL.</p>
<pre class="brush:bash; gutter: false; toolbar:false">/etc/init.d/mysql start</pre>
<p>We configure the MySQL root password.</p>
<pre class="brush:bash; gutter: false; toolbar:false">mysqladmin -u root password ''password_of_your_choice''</pre>
<p>After the succesfull installation of MySQL we continue the configuration by installing lighttpd.</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get install -y lighttpd</pre>
<p>Just as a test we can now surf to the hostname or ip-address of your server to verify the succesfull installation.</p>
<p><img class="size-full wp-image-104 alignnone" title="lighttpd" src="http://www.dimitri.eu/wp-content/uploads/2009/10/lighttpd.jpg" alt="lighttpd" width="598" height="381" /></p>
<p>The default document root is /var/www/ and the configuration file is /etc/lighttpd/lighttpd.conf.</p>
<p>We will now install PHP5 as a fastCGI module, we will also add some other PHP5-modules so that these can also be addressed by PHP..</p>
<pre class="brush:bash; gutter: false; toolbar:false">apt-get install -y php5-cgi php5-mysql php5-curl ...</pre>
<p>After this installation we will need to modify the configuration files of PHP and lighttpd. In the PHP configuration file (eg. /etc/php5/cgi/php.ini) we add the following line (preferably at the end of the file.</p>
<pre class="brush:bash; gutter: false; toolbar:false">cgi.fix_pathinfo = 1</pre>
<p>In the lighttpd configuration file (/etc/lighttpd/lighttpd.conf) we modify &#8220;server.modules&#8221; by adding a new line</p>
<pre class="brush:bash; gutter: false; toolbar:false">"mod_fastcgi",</pre>
<p>At the end of this file we also need to add a few lines to tell the webserver that all files with the .php extension need to be handled by the FastCGI module.</p>
<pre class="brush:php; gutter: false; toolbar:false">fastcgi.server = ( ".php" =&gt;((
"bin-path" =&gt; "/usr/bin/php5-cgi",
"socket" =&gt; "/tmp/php.socket"
)))</pre>
<p>After saving this configuration file we can restart the lighttpd service.</p>
<pre class="brush:bash; gutter: false; toolbar:false">/etc/init.d/lighttpd restart</pre>
<p>We can now test be creating a basic php-file like info.php with the following content</p>
<pre class="brush:php; gutter: false; toolbar:false">&lt;?php phpinfo(); ?&gt;</pre>
<p>We can now witness a working lighttpd webserver with PHP5 loaded.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/how-to-configure-lighttpd-with-php5-and-mysql5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking: iFrames containing .cn domains / meta redirects</title>
		<link>http://www.dimitri.eu/hacking-iframes-containing-cn-domains-meta-redirects/</link>
		<comments>http://www.dimitri.eu/hacking-iframes-containing-cn-domains-meta-redirects/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 13:02:52 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[.cn]]></category>
		<category><![CDATA[iframes]]></category>
		<category><![CDATA[meta redirects]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=64</guid>
		<description><![CDATA[Because of my job as a support engineer with a hosting provider I often come across websites and servers that are hacked. These hackings can even be divided into trends as I can state that most of the hacked sites in 2008 were hacked due to flaws in scripts, placed on the hostings and servers. [...]]]></description>
			<content:encoded><![CDATA[<p>Because of my job as a support engineer with a hosting provider I often come across websites and servers that are hacked. These hackings can even be divided into trends as I can state that most of the hacked sites in 2008 were hacked due to flaws in scripts, placed on the hostings and servers. But the year 2009 brought along a new trend of hacking.</p>
<p>This year, websitefiles were modified by making a FTP connection towards the hosting or server and adding malicious code within the webserver&#8217;s default documents (index.html, index.php, index.asp, default.html,&#8230;). As a hosting provider we were very annoyed with this situation because we couldn&#8217;t figure out the cause of these hacks at first.<br />
Within normal circumstances we check the logfiles of the webserver (if present) and in 95% of the cases we are able to find the specific cause but now we weren&#8217;t able to find any information. We could only notice that every website that was hacked had iFrames which contained redirects towards websites ending with the .cn extension.</p>
<p><span id="more-64"></span></p>
<p>Until we stumbeled upon the website<a title="unmaskparasites.com" href="http://www.unmaskparasites.com" target="_blank"> www.unmaskparasites.com</a>&#8230; this website has detailed information about this specific issue and we gained more information on the cause of this new trend. Apparently a virus, present on your computer, makes use of a known vulnerability in adobe acrobat reader to retrieve the FTP credentials of your hosting or server and this virus uses these credentials to connect, without you knowing, and modify your default website files.</p>
<p>The injection of iFrames was just one way to hack websites because a few weeks ago another method gained popularity: Meta Redirects. The same virus that abuses the adobe acrobat reader vulnerability gains access to the hosting or server and uploads a PHP script. This script is then used to abuse security flaws of the system-software (PHP, Apache, Linux,&#8230;) so that visitors of a website are ridirected towards webistes such as goscanpark.com, goscansome.com, and many others that look like correct antivirus websites.</p>
<p>If you notice one of these kinds of abuse on your website(s) you should follow the next steps to prevent this issue from escalating:</p>
<ul>
<li>Scan your computer with anti-virus and anti-spyware tools.</li>
<li>Once these scans have cleaned your computer you should modify the FTP-password(s) of your website(s).</li>
<li>Remove the malicious code (iFrames) and malicious scrpts. You can erase the current files and replace them with a recent clean backup.</li>
<li>Contact your hostingprovider or server administrator so they can do a double-check of your hosting or server. This suggestion is very important because some cases are known where scripts are running under a &#8220;crontab&#8221; (or other) user and these can be identified by the hosting provider.</li>
</ul>
<p>You can find more information about these kind of issues on the pages:</p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/04/15/malicious-income-iframes-from-cn-domains/" target="_blank">http://blog.unmaskparasites.com/2009/04/15/malicious-income-iframes-from-cn-domains/</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/07/23/goscanpark-13-facts-about-malicious-server-wide-meta-redirects/" target="_blank">http://blog.unmaskparasites.com/2009/07/23/goscanpark-13-facts-about-malicious-server-wide-meta-redirects/</a></li>
</ul>
<p>I hope this information was helpfull.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/hacking-iframes-containing-cn-domains-meta-redirects/feed/</wfw:commentRss>
		<slash:comments>101</slash:comments>
		</item>
		<item>
		<title>Mac OSX slow, caused by aslmanager</title>
		<link>http://www.dimitri.eu/mac-osx-slow-caused-by-aslmanager/</link>
		<comments>http://www.dimitri.eu/mac-osx-slow-caused-by-aslmanager/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 16:13:41 +0000</pubDate>
		<dc:creator>Dimi</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[aslmanager]]></category>

		<guid isPermaLink="false">http://www.dimitri.eu/?p=51</guid>
		<description><![CDATA[For a while I had been experiencing random slowness on my iMac. This slowness could only been solved by a reboot of my iMac but this was just a temporary solution. I didn&#8217;t look for a specific cause until it began bothering me for a while and I had the time to look into the [...]]]></description>
			<content:encoded><![CDATA[<p>For a while I had been experiencing random slowness on my iMac. This slowness could only been solved by a reboot of my iMac but this was just a temporary solution. I didn&#8217;t look for a specific cause until it began bothering me for a while and I had the time to look into the issue. I opened my activity monitor (be sure to select &#8220;All processes&#8221; from the dropdown) and I noticed that a certain process called &#8220;aslmanager&#8221; was using all of my resources.</p>
<p>The &#8220;aslmanager&#8221; process is Apple&#8217;s System Logfile manager which will be used as a replacement for syslogd in future versions of Mac OSX. But this is a rather new service which contains a few bugs that cause the application to use more than 2GB of virtual memory.</p>
<p><span id="more-51"></span>The solution to this issue isn&#8217;t to kill this process as it can cause data corruption but to restart the process after cleaning out the &#8220;data store&#8221; (where the process keeps its files). This can be done by following these few steps:</p>
<ul>
<li>open the terminal utility</li>
<li>stop the syslog with the following command: sudo launchctl stop com.apple.syslogd</li>
<li>stop the aslmanager with the following command: sudo launchctl stop com.apple.aslmanager</li>
<li>create a new folder on your desktop with a random name like &#8220;temp&#8221;</li>
<li>move all of the files from the folder /var/log/asl/ towards the new folder on your desktop, this can be done with the command: mv /var/log/asl/* ∼Desktop/temp/</li>
<li>you can now start the syslogd with the following command: sudo launchctl start com.apple.syslogd</li>
</ul>
<p>You may have noticed that we didn&#8217;t start the aslmanager manually because this process will be started automatically when this is needed by the syslogd.</p>
<p>This was a solution to the high load on my Mac and I haven&#8217;t encountered this issue until now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dimitri.eu/mac-osx-slow-caused-by-aslmanager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

