Home / Blog

Gnuplot is a free, command-driven, interactive, function and data plotting program.

Lets create a graph using Gnuplot based on data we got in a table. You can download the table I'm using here.

qkim@lotta:~> gnuplot

gnuplot> plot  "gnuplot_table.txt" using 1:2 title 'data1' w linespoints, \
"gnuplot_table.txt" using 1:3 title 'data2' w linespoints

Gnuplot does not need so complicated when creating simple graphs.


Screenshot of Gnuplot

I was playing around with a A12E-G2121-2 to set up iscsi when I discovered a Configuration List at the bottom of the RAIDWatch Manager application. It was possible to right-click on this list and select export- and import-XML. When logged in as the Information user, you still have the opportunity to right click and select export- or import-XML. And of course, this is something I needed to try. It was possible to export a configuration, change the XML, and import it again without having access to the configuration section.

WebDAV is an abbreviation for "Web-based Distributed Authoring and Versioning" (published as an open standard under RFC 2518). WebDAV is a set of extensions to the HTTP protocol which allows users to collaboratively edit and manage files on a web server. Using a WebDAV compatible client, the user connects to the server and is able to browse and manage files in a similar way as with a network share or an FTP server. In other words, what this protocol does is that it makes it possible to browse, create, remove, upload, download, rename, etc. files and directories on a web server. One of the most important advantages of this technology is that it uses port 80 for network traffic. This means that if you are able to surf the site from your workstation, you can also use WebDAV to administer it.

Configuration

The first you need to do is to set up a virtualhost for your webserver.

Apache HTTPD

<VirtualHost 89.250.126.18>
ServerName webdav.lotto-kim.net
        <Directory /home/sites/lotto-kim.net/www>
                Options indexes FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from All
        </Directory>
        DocumentRoot /home/sites/lotto-kim.net/www
        RewriteEngine On
        RewriteRule !\.(css|jar|js|html|php)$ 
/home/sites/lotto-kim.net/www/webdav.php
        CustomLog "|/usr/sbin/rotatelogs2
 /var/log/sites/www.lotto-kim.net/www 3600" combined
        ErrorLog "/var/log/sites/www.lotto-kim.net/error_log
        RewriteLog /var/log/sites/www.lotto-kim.net/rewrite_log
        RewriteLogLevel 0
        <Location />
                php_admin_value upload_tmp_dir /home/sites/lotto-kim.net/tmp
                php_admin_value open_basedir /home/sites/lotto-kim.net:
/usr/local/bin:/usr/local/imagemagick/bin:
        </Location>
</VirtualHost>

Lighttpd

$HTTP["host"] == "webdav.lotto-kim.net" {
 var.server_name = "webdav.lotto-kim.net"
 server.name = server_name
 server.document-root = server_root + "lotto-kim.net/www"
 accesslog.filename          = "/var/log/sites/lotto-kim.net/www"
 url.rewrite-once = ("^/.*$" => "/webdav.php")
}

Enable WebDav in eZ Publish

WebDav is disabled in eZ Publish as default, so we need to be enable it to get it working.

# echo -e "[GeneralSettings]\nEnableWebDAV=true\n" >> webdav.ini.append.php

Testing

I'm using cadaver to check if webdav is working on my domain, you can of course use other clients as well.

# cadaver webdav.lotto-kim.net
dav:/> ls site
Listing collection `/site/': Authentication required for eZ publish WebDAV
 interface on server `webdav.lotto-kim.net':
Username: admin
Password:
Retrying: succeeded.
Coll:   Content                                0  Aug 23 21:11
Coll:   Media                                  0  Aug 23 21:11
dav:/> ls
Listing collection `/': succeeded.
Coll:   eng                                    0  Aug 23 21:11
Coll:   site                                   0  Aug 23 21:11
Coll:   siteadmin                              0  Aug 23 21:11
dav:/> cd site
dav:/site/> ls
Listing collection `/site/': succeeded.
Coll:   Content                                0  Aug 23 21:11
Coll:   Media                                  0  Aug 23 21:11
dav:/site/> cd Content
dav:/site/Content/> ls
Listing collection `/site/Content/': succeeded.
Coll:   Blog                                   0  Aug 23 21:47
Coll:   Contact                                0  Aug 27 23:05
Coll:   Photos                                 0  Aug 27 23:06
Coll:   Projects                               0  Aug 27 23:07

New site is up and running, it will properly be a temporary project and will be dead within some few days

Skleed refers us to the NYTimes for an article on the high-stakes case the US is losing before the World Trade Organization. So far the US has lost an initial hearing and two appeals on its policies regarding Antiguan offshore gambling sites. Now the lawyer pressing the case has asked for a rarely invoked, but codified, recourse under WTO rules: letting Antiguans copy and distribute American music, movies, and software. The game may be to get Hollywood and Microsoft, et al., to pressure Washington to cut a deal. But their influence may not be sufficient to move lawmakers on the question of online gambling.

A new study from pro-business think tank Institute for Policy Innovation claims that music piracy accounts for $12.5 billion in lost output to the US economy. That includes 71,060 lost jobs and $422 million in lost tax revenues... if the figures are accurate. Ars Technica's write-up points out a number of flaws in the IPI's reasoning. 'The study makes for some alarming reading, but it suffers from a few significant flaws. First and foremost, it appears to fall into the "illicit downloads = lost sales" fallacy, the view that each song obtained over a P2P network is a lost purchase.' There's more: 'The IPI study also assesses the increased demand for music if piracy didn't exist and assumes the market would remain as "intensely competitive" as it is today. The problem is that music fans are largely disenchanted with the market. By and large, music fans think that music is too expensive, and that much of what is available isn't very good.

Hardware

Benchmark

1. RAID1 - XFS
2. RAID1 - ReiserFS
3. RAID1 - EXT3
4. RAID10 - XFS
5. RAID10 - ReiserFS
6. RAID10 - EXT3

#### Write with Direct I/O  

$ dd oflag=direct if=/dev/zero of=data.out bs=1k count=10000
$ dd oflag=direct if=/dev/zero of=data.out bs=4k count=10000
$ dd oflag=direct if=/dev/zero of=data.out bs=512k count=10000
$ dd oflag=direct if=/dev/zero of=data.out bs=4096k count=10000
$ dd oflag=direct if=/dev/zero of=data.out bs=8192k count=10000
$ ./bonnie++ -r 16384 -s 32768 -u root -d /test/
### Write without Direct I/O
 

$ dd if=/dev/zero of=data.out bs=1k count=10000
$ dd if=/dev/zero of=data.out bs=4k count=10000
$ dd if=/dev/zero of=data.out bs=512k count=10000
$ dd if=/dev/zero of=data.out bs=4096k count=10000
$ dd if=/dev/zero of=data.out bs=8192k count=10000
$ ./bonnie++ -r 16384 -s 32768 -u root -d /test/
### Read

$ dd if=data.out of=/dev/null bs=1k
$ dd if=data.out of=/dev/null bs=4k
$ dd if=data.out of=/dev/null bs=512k
$ dd if=data.out of=/dev/null bs=4096k
$ dd if=data.out of=/dev/null bs=8192k
$ ./bonnie++ -r 16384 -s 32768 -u root -d /test/

Results

Write with Direct I/O - RAID1

Write - RAID1

Read - RAID1

Bonnie++ - RAID1