<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>General Failure</title>
    <link>http://blogit.claymountain.com/sf/</link>
    <description>and other reasons to hate itc</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Sun, 08 Jan 2012 09:35:27 GMT</pubDate>

    <image>
        <url>http://blogit.claymountain.com/sf/templates/coffee_bar/img/s9y_banner_small.png</url>
        <title>RSS: General Failure - and other reasons to hate itc</title>
        <link>http://blogit.claymountain.com/sf/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Fedora 16 - the hard way</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/162-Fedora-16-the-hard-way.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/162-Fedora-16-the-hard-way.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=162</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=162</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;As an optimist I decided to upgrade my F15 installation to F16 installation. As a paranoid person I&amp;#160;made a backup. I started at noon and I&amp;#160;am still doing the upgrade that now has progressed to be a text based reinstall that has wiped my old system completely. Here is how.&lt;/p&gt;
&lt;p&gt;First I&amp;#160;have two displays, both are wide screen displays but have different resolutions. And the &amp;quot;bigger&amp;quot; display is connected with HDMI and the smaller with DVI. This means that when the graphical upgrade boots it results a screen where the buttons are somewhere &amp;quot;under&amp;quot; the both displays. As an optimist I&amp;#160;decided to continue anyway and was able to guess how to &amp;quot;tab&amp;quot; between buttons to get it going. SELinux failed or didn&#039;t, can&#039;t tell as the screen was too small and the progressbar stopped at 100%. A reboot and another try with &amp;quot;text&amp;quot;&amp;#160; upgrade produced grub shell.&lt;/p&gt;
&lt;p&gt;Affer some goofing with rescue I&amp;#160;managed to configure grub2 to try to boot the system but alas the installed kernel immediately fails. Booting with old F15 kernel brings the system up. Playing around with yum update shows that the yum thinks that the system is F15 not F16 althoug the relese-file claims otherwise. With --releasever 16 I get a kernel that installs but the dependencies are completelely borked. Despite --fix-broken and other options the battle is finally lost. Ofcourse I&amp;#160;believe this after a good fight and some googling.&lt;/p&gt;
&lt;p&gt;Then I decide to do a complete reisntall having a small recollection that at least the graphical partition tool lets me to modify the scheme - that is the graphical tool not the curses based tool. Whoops I no longer have any installation left. The right way would probably have been either disconnecting the other display or finding out if there is geometry option for the graphical installer. Then I&amp;#160;might have been able to save the home, backup and opt volumes. Luckily I had backed almost everything to NAS as well.&lt;/p&gt;
&lt;p&gt;&amp;#160;The result with text-based installer is quite bare and you need to know how to start network manually to continue. One way to do it is to &amp;quot;up&amp;quot; the network device. In my case the eth0.&lt;/p&gt;
&lt;p&gt;ifup eth0&lt;/p&gt;
&lt;p&gt;&amp;#160;Then I did the first &amp;quot;yum update&amp;quot; and while it was running fixed the volumes. I resized the home and did a new opt volume.&lt;/p&gt;
&lt;p&gt;lvm&lt;/p&gt;
&lt;p&gt;lvresize -L 100G VolGroup/lv_home&lt;/p&gt;
&lt;p&gt;lvcreate -L 50G -n opt VolGroup&lt;/p&gt;
&lt;p&gt;quit&lt;/p&gt;
&lt;p&gt;These should have been done after unmounting /home. I made fstab-entry for opt and filesystems for both:&lt;/p&gt;
&lt;p&gt;mkfs.ext4 /dev/mapper/VolGroup-lv_opt&lt;/p&gt;
&lt;p&gt;yum grouplist &amp;gt; groups.txt&lt;/p&gt;
&lt;p&gt;vi groups .txt&lt;/p&gt;
&lt;p&gt;while read i;do yum install -y &amp;quot;$i&amp;quot;;done&amp;#160; &amp;lt; groups.txt&lt;/p&gt;
&lt;p&gt;cd /etc/systemd/system&lt;/p&gt;
&lt;p&gt;rm default.target&lt;/p&gt;
&lt;p&gt;ln -s /lib/systemd/system/graphical.target default.target&lt;/p&gt;
&lt;p&gt;shutdown -r now&lt;/p&gt;
&lt;p&gt;To get the google-chrome running:&lt;/p&gt;
&lt;p&gt;&amp;#160;sudo chcon -t textrel_shlib_t /opt/google/chrome/chrome-sandbox&lt;/p&gt;
&lt;p&gt;&amp;#160;Both gconf-editor and gnome-tweaktool should be installed. The latter is used to give the desktop to Nautilus and the former to add virtual desktops to secondary displays as well.&amp;#160;&amp;#160;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 07 Jan 2012 19:04:15 +0200</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/162-guid.html</guid>
    
</item>
<item>
    <title>Fedora 15</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/161-Fedora-15.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/161-Fedora-15.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=161</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=161</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;The two latests updates on Gnome that I have suffered have greatly reminded me of the famous Linus quote&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px;&quot;&gt;&lt;em&gt;&amp;quot;This &amp;quot;users are idiots, and are confused by functionality&amp;quot; mentality of  Gnome is a disease. If you think your users are idiots, only idiots will  use it. I don&#039;t use Gnome, because in striving to be simple, it has  long since reached the point where it simply doesn&#039;t do what I need it to do.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And I&amp;#160;also remember him switching to Gnome when KDE 4.0 hit the fan. I was more than tempted to switch to Windows 7 after my first install of F 15 and having tried KDE with F 14. I was so disgusted with both &amp;quot;UI&amp;quot;s that I switched to MAC&amp;#160;at home but couldn&#039;t at work as it is not supported on the hardware that is blessed by those who know. better. I griped with F 14 Gnome and finally grew into it. At home I found that Mac OS X gui was a bit better on some tasks and sucked more in some other tasks.&amp;#160;&amp;#160;&lt;/p&gt;
&lt;p&gt;After initiial installation nothing worked at work with F 15 as I expected but the lure of first working ALT+TAB switcher finally won me over. Of course this involved a lot google-fu to fix things that really annoyed me:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Desktop should have Icons. How to do this is blogged over and over again. One quite short version of the instructions can be found &lt;a href=&quot;http://www.brighthub.com/hubfolio/matthew-casperson/blog/archive/2011/05/15/gnome-3-tip-showing-icons-on-the-desktop.aspx&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
    &lt;li&gt;If you have two monitors&amp;#160; you probably want workspaces on the other screen as well. Again gconf-editor to the rescue. Instructions can be found &lt;a href=&quot;http://gregcor.com/2011/05/07/fix-dual-monitors-in-gnome-3-aka-my-workspaces-are-broken/&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;Custom launchers. It seems that you can use Alacarte to create the launchers. Unfortunately Alacarte creates the &lt;a href=&quot;http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html&quot;&gt;desktop &lt;/a&gt;files without &lt;strong&gt;Categories&lt;/strong&gt; and the launchers end up in the &lt;em&gt;&amp;quot;Muut&amp;quot;&lt;/em&gt; -section (Others). It seems that you need to conjure the gedit up and add the &lt;a href=&quot;http://standards.freedesktop.org/menu-spec/latest/ar01s03.html&quot;&gt;categories&lt;/a&gt; by yourself. Files are located under your home directory in &amp;quot;.local/share/applications&amp;quot; (Note the dot at the beginning of the path). Just add &lt;em&gt;Categoris=Game&lt;/em&gt; if your custom app is a game.&lt;/li&gt;
    &lt;li&gt;Weather. There was no weather on my taskbar! Now there is with &lt;a href=&quot;http://www.webupd8.org/2011/05/gnome-shell-weather-extension.html&quot;&gt;gmone-extension&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Not gnome related annoyances:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Youtube (in some sense == flash). With my laptop the only way to get it to work was to install gnash-plugin and on my desktop the only way to it to work was to install latest beta from Adobe.&lt;/li&gt;
    &lt;li&gt;The lack of the usual stuff after install. This time I referred several sources Fedora setup &lt;a href=&quot;http://www.fedoraforum.org/?view=fedora_setup&quot;&gt;guides&lt;/a&gt;.&lt;/li&gt;
    &lt;li&gt;Gnucash. It is shocking to find out that you owe 3k euros instead of having 2k euros on your savings account. And it seems that the error is gradual. It is time to say goodbye forever for this piece of shit as soon as I have time to find better alternative. Meanwhile I will continue to use it on Mac and will not update it. It is truly sad that the history will be gone forever as soon as I bury the mac. I guess it will not be Lion for me for a quite some time.&lt;/li&gt;
    &lt;li&gt;&amp;#160;&lt;/li&gt;
&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Wed, 20 Jul 2011 18:15:31 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/161-guid.html</guid>
    
</item>
<item>
    <title>Installing Fedora 14 beta on Hp Elitebook 8740w</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/155-Installing-Fedora-14-beta-on-Hp-Elitebook-8740w.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/155-Installing-Fedora-14-beta-on-Hp-Elitebook-8740w.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=155</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=155</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;The system comes with prepartioned disk - four primary partitions, where windows 7 has been crammed to one small 200G partition.&lt;/p&gt;
&lt;p&gt;The first partition is 300MB and contains something in NTFS, second partition contains the forementioned windows 7, third is 15G recovery partition and the fourth is 2G FAT32 tools partition.&lt;/p&gt;
&lt;p&gt;The new scheme will have shrinked winodws 7 partition and no 2G FAT32 partition. Shrinking is done through windows and so is the obliteration oft he fat-partition. I just simply copied the contents of the tools partition to the windows 7 partition before deleting it.&lt;/p&gt;
&lt;p&gt;Windows 7 is a huge beast, after first shrinking it still required a partition of 113,61G! There a files that the &amp;quot;shrinker&amp;quot; can not move because they are used by the operating system. There is still 74G free space on the disk. Well, I will tackle this later.&lt;/p&gt;
&lt;p&gt;I&#039;ve downloaded the gPXE iso-image, burned it to a cd and will use it as the installation medium. The installer crashes on the graphical mode, so the key here is to use &lt;strong&gt;&amp;quot;text&amp;quot;&lt;/strong&gt;-option or &amp;quot;&lt;strong&gt;vnc&lt;/strong&gt;&amp;quot; to get it going.&lt;/p&gt;
&lt;p&gt;First installation completed while I was having lunch. Quick test with &amp;quot;init 5&amp;quot; confirmed that display works and installation of 64bit flash-plugin confirmed that sounds and network work. Did a resize for the for the ntfs filesystem and forgot to resize the partition. Boot to the windows 7 confirmed that it still worked. Second boot to linux and deleting + recreating the partition with smaller size caused a bluescreen. The reason for this was probably that I used parted to nuke the partition and recreate it which nuked something else than partition table or changed the starting location of the new partition. Mental note, next time use fdisk instead!&amp;#160; Repair with installation cd managed to fix the boot problem.&lt;/p&gt;
&lt;p&gt;The second install of Fedora 14 beta is necessary as the free space I got from the second shrinking is between the extended partition and the shrinked Windows 7 partition. The limit for primary partitions is 4 and this means that the extended partition should be resized. I don&#039;t know any tool to do this so I just start from the beginning and nuke the old extended partition on the reinstall of Fedora 14. Mental note: next time I will use live cd to resize the windows-filesystem and partition.&lt;/p&gt;
&lt;p&gt;The second install went as smoothly as the first one. There was some network traffic so I managed to get bored while waiting the packets to load. Some after installation steps:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Create a user with -G wheel for myself&lt;/li&gt;
    &lt;li&gt;Edit /etc/inittab - replace default boot level from 3 to 5&lt;/li&gt;
    &lt;li&gt;visudo - give wheel group super user&lt;/li&gt;
    &lt;li&gt;Install 64bit Flashplugin by surfing to youtube and following links. Did the &lt;em&gt;personal &lt;/em&gt;install - as there will be no other users on this laptop than me - which means uncompressing the plugin to .mozilla/plugins folder under home folder.&lt;/li&gt;
    &lt;li&gt;Install 32bit wine as not trusting it to work with spotify.&amp;#160; Spotify works with 32bit wine.&lt;/li&gt;
    &lt;li&gt;Freennx-client is still useless.&lt;/li&gt;
    &lt;li&gt;avahi-daemon is not able to resolve anything; sudo service avahi-daemon stop;&amp;#160;sudo chkconfig avahi-daemon off&lt;/li&gt;
    &lt;li&gt;sshmenu-applet requires logoff/logon.&lt;/li&gt;
    &lt;li&gt;komodo won&#039;t install without setenforce 0 and &lt;strike&gt;might have serious trouble with .gvfs-directories&lt;/strike&gt; or the problem is within gvfs itself. Remains to be tested.&amp;#160; Komodo edit-6.0 is not a good idea with .gvfs-directories it clears the contents of the files while saving. Lost two files with it, luckily subversion came to rescue and only the edits where lost. Same goes with Eric and Eclipse, the only editor so far to handle .gvs-files is gedit.&lt;/li&gt;
    &lt;li&gt;Remmina is great!&lt;/li&gt;
    &lt;li&gt;Did not manage to use two external displays with docking station - at least so that one display is in DVI and one is in VGA connector. The Dell display on the VGA connector did not get recognized and got resolution it claimed it could not handle. Probably this is not supported and displays should be connect with some other connector instead. Remains to be seen. Also two different displays is probably not a good idea. Now I have the laptop display and one external display on DVI connector.&lt;/li&gt;
    &lt;li&gt;Bluetooth works - I guess - I was not able to browse my Galaxy S phone. Or send files to it but I was able to receive a file from it. &lt;strike&gt;And android notifier ping did not get through&lt;/strike&gt;. It almos works with ping and some battery events got through. So, it works as badly as it did with previous version of Android notifier.&lt;/li&gt;
    &lt;li&gt;Fingerprint reader not supported by the driver. Perhaps next year - at least on some &lt;a href=&quot;http://www.omgubuntu.co.uk/2010/09/vfs101-fingerprint-reader-driver-coming-for-ubuntu/&quot;&gt;Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Thu, 28 Oct 2010 11:46:35 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/155-guid.html</guid>
    
</item>
<item>
    <title>Another take on installing Magento on CentOS 5.4</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/154-Another-take-on-installing-Magento-on-CentOS-5.4.html</link>
            <category>CentOS</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/154-Another-take-on-installing-Magento-on-CentOS-5.4.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=154</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=154</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;&amp;#160;There are other installation guides: &lt;a href=&quot;http://www.magentocommerce.com/wiki/step_by_step_guide_to_installing_on_centos_5.2_64bit&quot;&gt;CentOS 5.2/64bit&lt;/a&gt;, &lt;a href=&quot;http://www.itgrapes.com/content/index.php/knowledge_base/web_development/install-magento-on-centos-5-4/&quot;&gt;CentOS5.4&lt;/a&gt;&amp;#160;and one from &lt;a href=&quot;http://www.magentocommerce.com/boards/viewthread/8980/&quot;&gt;Magento forum&lt;/a&gt;. This is another take on the matter.&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;Install 32bit &amp;#160;server-gui CentOS 5.4, with SELinux on permissive&lt;/li&gt;
    &lt;li&gt;&lt;code&gt;yum update&lt;/code&gt;&lt;/li&gt;
    &lt;li&gt;&lt;code&gt;yum install mysql-server,&lt;/code&gt; and remember set the password as instructed! Also starting the server and configuring it to start on boot might be a good idea.&amp;#160;&lt;/li&gt;
    &lt;li&gt;Install &lt;a href=&quot;http://www.zend.com/en/products/server-ce/downloads&quot;&gt;ZendServer&lt;/a&gt;
    &lt;ol&gt;
        &lt;li&gt;Create a file &lt;code&gt;/etc/yum.repos.d/zend.repo &lt;/code&gt;with*&lt;/li&gt;
        &lt;li&gt;&lt;code&gt;yum clean al&lt;/code&gt;l&lt;/li&gt;
        &lt;li&gt;&lt;code&gt;yum install zend-server-ce-php-5.3&lt;/code&gt;&lt;/li&gt;
        &lt;li&gt;&lt;code&gt;/usr/local/zend/gui_passwd.sh&lt;/code&gt;&lt;/li&gt;
        &lt;li&gt;&lt;code&gt;/usr/local/zend/bin/zendctl.sh restar&lt;/code&gt;t&lt;/li&gt;
    &lt;/ol&gt;
    &lt;/li&gt;
    &lt;li&gt;create mysql-database for magento: &lt;code&gt;mysqladmin -u root -p create magento&lt;/code&gt;&lt;/li&gt;
    &lt;li&gt;connect the databas&lt;code&gt;e mysql -u root -p magento&lt;/code&gt;&lt;/li&gt;
    &lt;li&gt;create user&lt;code&gt;:&amp;#160;create user &#039;magento&#039;@&#039;localhost&#039; identified by &#039;yourpasswordhere&#039;;&lt;/code&gt;&lt;/li&gt;
    &lt;li&gt;grant privileges:&lt;code&gt;&amp;#160;grant all privileges on magento.* to &#039;magento&#039;@&#039;localhost&#039; with grant option;&lt;/code&gt;&lt;/li&gt;
    &lt;li&gt;Fetch the magento package&lt;/li&gt;
    &lt;li&gt;untar it to the /var/www/html&lt;/li&gt;
    &lt;li&gt;Set permissions: setfacl -R -m user:apache:rwx media &amp;#160;var app/etc/&lt;/li&gt;
    &lt;li&gt;Browse to your server/magento to start the installation. The only catch now is the socket, it is&amp;#160;/var/lib/mysql/mysql.sock&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;*&lt;/p&gt;
&lt;p&gt;[Zend]&lt;/p&gt;
&lt;p&gt;name=Zend Server&lt;/p&gt;
&lt;p&gt;baseurl=http://repos.zend.com/zend-server/rpm/$basearch&lt;/p&gt;
&lt;p&gt;enabled=1&lt;/p&gt;
&lt;p&gt;gpgcheck=0&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;[Zend_noarch]&lt;/p&gt;
&lt;p&gt;name=Zend Server - noarch&lt;/p&gt;
&lt;p&gt;baseurl=http://repos.zend.com/zend-server/rpm/noarch&lt;/p&gt;
&lt;p&gt;enabled=1&lt;/p&gt;
&lt;p&gt;gpgcheck=0&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 03 May 2010 19:21:47 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/154-guid.html</guid>
    
</item>
<item>
    <title>End of the road?</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/153-End-of-the-road.html</link>
            <category>Debian</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/153-End-of-the-road.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=153</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=153</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;&amp;#160;It seems that it has become impossible to run web-services on Debian 64bit platform. The segfaults are now too frequent and repeatable on the same web page. There is something completely broken on Lenny. I even tried using Zend Server instead of regular php and the results are still:&lt;/p&gt;
&lt;pre style=&quot;padding-top: 0px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; line-height: 1.5em; &quot;&gt;
[Sun Apr 25 11:57:37 2010] [notice] child pid 5240 exit signal Segmentation fault (11)
[Sun Apr 25 11:57:38 2010] [notice] child pid 5241 exit signal Segmentation fault (11)
[Sun Apr 25 11:57:38 2010] [notice] child pid 5242 exit signal Segmentation fault (11)
[Sun Apr 25 11:57:39 2010] [notice] child pid 5214 exit signal Segmentation fault (11)
[Sun Apr 25 11:57:40 2010] [notice] child pid 5218 exit signal Segmentation fault (11)
[Sun Apr 25 11:57:40 2010] [notice] child pid 5235 exit signal Segmentation fault (11)
[Sun Apr 25 11:57:41 2010] [notice] child pid 5216 exit signal Segmentation fault (11)
&lt;br type=&quot;_moz&quot; /&gt;&lt;/pre&gt;
&lt;p&gt;I guess I&#039;ve also found this happy camper: &lt;br /&gt;
&lt;a href=&quot;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537794&quot;&gt; http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537794&lt;/a&gt; and it is the end of the road for me.&lt;/p&gt;
&lt;p&gt;Also the second &amp;quot;happy happy joy joy&amp;quot;- moment was that with newer Zend-Framework. The old code stops working completely with &amp;quot;Fatal error: Unsupported operand types in /usr/local/zend/share/ZendFramework/library/Zend/Translate/Adapter.php on line 212&amp;quot;. No trace but I guess it was caused by the very first line in the code. Downgrading and manually removing all cache-files helped with this but the segfault remains.&amp;#160;&lt;/p&gt;
&lt;p&gt;The segfault also happens on CentOS as well and it is not actually related to fore mentioned Debian bug &amp;#160;at all, even though I have that bug as well. Somehow I had managed not to commit a change I had made and a regression bug popped up. This segfault was caused by by a method calling itself in an unending recursion. When the stack runs out, it segfaults the php which I&#039;m actually very happy about.&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 25 Apr 2010 11:39:08 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/153-guid.html</guid>
    
</item>
<item>
    <title>The Nokia Windows experience</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/150-The-Nokia-Windows-experience.html</link>
            <category>Rautatavara</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/150-The-Nokia-Windows-experience.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=150</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=150</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;&amp;#160;The only one thing I keep the original Asus EEEPC windows installation hanging around is the PC Suite. The only thing I do with it is to back the phone up. This means that when I do boot to the Windows the vicious cycle of rebooting starts. What makes this experience even more gratifying (for the masochists) is the Norton Security and the stability and correctness of the PC Suite, the phone and the updater software.&amp;#160;&lt;/p&gt;
&lt;p&gt;I started yesterday and I am still trying to succeed.&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;I have booted the laptop now seven times. And the windows is still updating.&lt;/li&gt;
    &lt;li&gt;The PC Suite has updated itself once and required a boot&lt;/li&gt;
    &lt;li&gt;Norton has expired and it has been uninstalled, that required a boot&lt;/li&gt;
    &lt;li&gt;The Nokia Software updater has updated itself and required a boot&lt;/li&gt;
    &lt;li&gt;&amp;#160;After three boots the computer has lost the connection with the phone and wanted to run the connection wizard and reinstall drivers that are already installed&lt;/li&gt;
    &lt;li&gt;Seven tries for the software updater have had following results
    &lt;ul&gt;
        &lt;li&gt;3 times no connection to the internet&lt;/li&gt;
        &lt;li&gt;1 time identified the phone and found update to install but the whole thing crashed after that&lt;/li&gt;
        &lt;li&gt;2 times &amp;quot;Service not available&amp;quot;&lt;/li&gt;
        &lt;li&gt;1 time direct crash and windows wanting to send bug report to Microsoft&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I have been thinking of buying the N900 phone to replace my current phone but if it requires use of PC Suite for anything my next phone will not be a Nokia.&amp;#160;&lt;/p&gt;
&lt;p&gt;While writing this the eight reboot has finished and the windows is still updating. &amp;#160;And it has now finished and requires the ninth reboot!&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 02 Jan 2010 12:44:24 +0200</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/150-guid.html</guid>
    
</item>
<item>
    <title>Nyt kyrsii jo satasella</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/149-Nyt-kyrsii-jo-satasella.html</link>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/149-Nyt-kyrsii-jo-satasella.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=149</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=149</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;&amp;#160;Dec &amp;#160;7 19:12:38 vcust362 kernel: [465884.894733] php[22592]: segfault at 7fca2b160ac0 ip 7fca2b160ac0 sp 7fff2b6c4b68 error 14 in libtasn1.so.3.0.15[7fca3009d000+f000]&lt;/p&gt;
&lt;div&gt;&amp;#160;&lt;/div&gt;
&lt;div&gt;Yksinkertainen tosiasia taitaa olla, ett&amp;auml; 64bittisien Lennyn php ei toimi. Enk&amp;auml; tied&amp;auml; korjaisiko asian se, ett&amp;auml; k&amp;auml;&amp;auml;nt&amp;auml;isin itse uuden version. T&amp;auml;m&amp;auml; on kertakaikkisesti liian ty&amp;ouml;l&amp;auml;s siirtyminen toimivasta CentOS ymp&amp;auml;rist&amp;ouml;st&amp;auml;. Olen nyt hukannut 8 tuntia siihen, ett&amp;auml; olen yritt&amp;auml;nyt saada edes toimivan ajoymp&amp;auml;rist&amp;ouml;n php+java kilkkeille. Mik&amp;auml;&amp;auml;n ei mene tappelutta, kaikki kaatuu ja segfaulttaa. Kaikki oletukset on v&amp;auml;&amp;auml;nnetty ja k&amp;auml;&amp;auml;nnetty varoiksi viel&amp;auml; niin, ett&amp;auml; suurin osa yleisist&amp;auml; web-ohjeista on v&amp;auml;&amp;auml;r&amp;auml;ss&amp;auml;, kun se debianin tapa vaan tehd&amp;auml; se juttu on niin oikein ja kaikki muut ovat v&amp;auml;&amp;auml;r&amp;auml;ss&amp;auml;.&amp;#160;&lt;/div&gt;
&lt;div&gt;&amp;#160;&lt;/div&gt; 
    </content:encoded>

    <pubDate>Mon, 07 Dec 2009 20:08:37 +0200</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/149-guid.html</guid>
    
</item>
<item>
    <title>Will I ever learn</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/148-Will-I-ever-learn.html</link>
            <category>Debian</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/148-Will-I-ever-learn.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=148</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=148</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;&amp;#160;Debian always fails when you need it most:&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;open(&amp;quot;/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo&amp;quot;, O_RDONLY) = -1 ENOENT (No such file or directory)&lt;/p&gt;
&lt;p&gt;open(&amp;quot;/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo&amp;quot;, O_RDONLY) = -1 ENOENT (No such file or directory)&lt;/p&gt;
&lt;p&gt;open(&amp;quot;/usr/share/locale/en_US/LC_MESSAGES/libc.mo&amp;quot;, O_RDONLY) = -1 ENOENT (No such file or directory)&lt;/p&gt;
&lt;p&gt;open(&amp;quot;/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo&amp;quot;, O_RDONLY) = -1 ENOENT (No such file or directory)&lt;/p&gt;
&lt;p&gt;open(&amp;quot;/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo&amp;quot;, O_RDONLY) = -1 ENOENT (No such file or directory)&lt;/p&gt;
&lt;p&gt;open(&amp;quot;/usr/share/locale/en/LC_MESSAGES/libc.mo&amp;quot;, O_RDONLY) = -1 ENOENT (No such file or directory)&lt;/p&gt;
&lt;p&gt;write(2, &amp;quot;make: &amp;quot;..., 6make: ) &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;= 6&lt;/p&gt;
&lt;p&gt;write(2, &amp;quot;*** [yritykset.imp] Segmentation &amp;quot;..., 38*** [yritykset.imp] Segmentation fault) = 38&lt;/p&gt;
&lt;p&gt;write(2, &amp;quot;\n&amp;quot;..., 1&lt;/p&gt;
&lt;div&gt;It is nice that installed new operating system, installed by the professionals of the virtual machine provider is broken from the very first meters. I haven&#039;t yet met Debian installation that works as specified and Debian is still the only linux distribution I am really afraid to upgrade. Especially if the upgrade contains core pieces and require a boot. Debian has actually wasted more of my time than windows ever has! &amp;#160;To be honest, the reason for that is &amp;#160;that I am more capable of tracing errors and fixing things with Debian than with windows. I am not so sure anymore that this is a good thing. I am usually smart enough to give up with windows in time but Debian being kind of linux is just begging it. And of course I can always bitch and moan afterwards...&lt;/div&gt;
&lt;div&gt;&amp;#160;&lt;/div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 06 Dec 2009 18:44:21 +0200</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/148-guid.html</guid>
    
</item>
<item>
    <title>Installing wink on 64bit Fedora 12</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/147-Installing-wink-on-64bit-Fedora-12.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/147-Installing-wink-on-64bit-Fedora-12.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=147</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=147</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;ol&gt;
    &lt;li&gt;Download and untar as usual&lt;/li&gt;
    &lt;li&gt;Modify installer.sh and comment out architecture-checks*&lt;/li&gt;
    &lt;li&gt;sudo yum install gtk2-devel-2.18.3-21.fc12.i686&lt;/li&gt;
    &lt;li&gt;sudo yum install compat-libstdc++-33-3.2.3-68.i686&lt;/li&gt;
    &lt;li&gt;sudo yum install compat-expat1-1.95.8-6.i686&lt;/li&gt;
    &lt;li&gt;run installer.sh&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In case installer complains something that is still missing apply pattern:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;sudo yum provides &#039;*&lt;em&gt;libexpat.so.0&lt;/em&gt;*&#039;, where replace &lt;em&gt;libexpat.so.0&lt;/em&gt; between asterisk with missing thingie&lt;/li&gt;
    &lt;li&gt;sudo yum install &lt;em&gt;compat-expat1-1.95.8-6.i686&lt;/em&gt;, where replace &lt;em&gt;compat-expat1-1.95.8-6.i686&lt;/em&gt; with result of previous step. Note that there will be several hits. Pick the most promising one with ending .i686, that is the 32bit version...&lt;/li&gt;
    &lt;li&gt;run installer.sh&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Resulting installation may or may not work, I give no guarantees.&lt;/p&gt;
&lt;p&gt;* Section commented out:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# Show error if we are not running on x86&lt;br /&gt;
#case `uname -m` in&lt;br /&gt;
#&amp;#160; i?86) ;;&lt;br /&gt;
#&amp;#160; *) echo &amp;quot;This installer only has x86 binaries. Sorry.&amp;quot;;&lt;br /&gt;
#&amp;#160;&amp;#160;&amp;#160;&amp;#160; exit 1;;&lt;br /&gt;
#esac&lt;/code&gt;&lt;br /&gt;
&amp;#160;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 30 Nov 2009 10:51:46 +0200</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/147-guid.html</guid>
    
</item>
<item>
    <title>How to fail with security?</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/146-How-to-fail-with-security.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/146-How-to-fail-with-security.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=146</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=146</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;Easy. Allow users to install packages without root-password. That means that you can install trojans with root-privileges. Meanwhile add very well tested (NOT!) selinux-rules that make life terribly hard. And update the management commands so that they are not backward compatible&amp;#160; with previous syntax. &lt;/p&gt;
&lt;p&gt;For example let&#039;s say that you try to install Komodo-edit to do some php-work? It will not work. Let&#039;s say that you have donwloaded ZendFramework and installed it to your own-directory. It will not work and even after the instructions given by the selinux to fix the problem you will finally run into a situation where selinux is preventing you to use the fix command given by selinux. &lt;/p&gt;
&lt;p&gt;What is the result? You have a system that will have selinux disabled and root access for package installation without password. FAILURE!&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 24 Nov 2009 09:59:08 +0200</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/146-guid.html</guid>
    
</item>
<item>
    <title>Subsonic wma flac ogg playback</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/145-Subsonic-wma-flac-ogg-playback.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/145-Subsonic-wma-flac-ogg-playback.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=145</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=145</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;I have CentOS 5.3 server with additional repositories, see extended entry for versions of ffmpeg and mplayer. I have written two scripts for playbacks. First one is:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#!/bin/bash&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;song=$1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;bitrate=$2&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#echo $song &amp;gt;&amp;gt; /tmp/songs.txt&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/usr//bin/ffmpeg -i &amp;quot;$song&amp;quot; -f mp3 -ab $bitrate - 2&amp;gt;/dev/null&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;which I call swiss.sh. This is from&amp;#160; &lt;a href=&quot;http://www.activeobjects.no/subsonic/forum/viewtopic.php?t=1498&amp;amp;highlight=ffmpeg&quot;&gt;Activeobjects-forum&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And the second one called wma.ssh is:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#!/bin/bash&amp;#160;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;song=$1&amp;#160;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mplayer -vo null -msglevel all=-1 -quiet -srate 44100 -channels 2 -vc dummy -ao pcm:nowaveheader:fast:file=/dev/stdout &amp;quot;$song&amp;quot; 2&amp;gt;/dev/null&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Sorry, I&#039;ve lost the original source. First one is used with just one step: &lt;strong&gt;&amp;quot;swiss.sh %s %b&amp;quot;&lt;/strong&gt; and the second one requires two steps. First step: &amp;quot;&lt;strong&gt;wma.sh %s&lt;/strong&gt;&amp;quot; and second &amp;quot;&lt;strong&gt;&lt;span style=&quot;font-family: monospace,Verdana,sans-serif; white-space: pre;&quot; class=&quot;Apple-style-span&quot;&gt;lame -r -b %b - -&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: monospace,Verdana,sans-serif; white-space: pre;&quot; class=&quot;Apple-style-span&quot;&gt;&amp;quot;, the &amp;quot;-r&amp;quot; is essential!&lt;/span&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://blogit.claymountain.com/sf/index.php?/archives/145-Subsonic-wma-flac-ogg-playback.html#extended&quot;&gt;Continue reading &quot;Subsonic wma flac ogg playback&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 22 Oct 2009 13:01:49 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/145-guid.html</guid>
    
</item>
<item>
    <title>Jasperreports and PHP a success - kind of</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/144-Jasperreports-and-PHP-a-success-kind-of.html</link>
            <category>Programming</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/144-Jasperreports-and-PHP-a-success-kind-of.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=144</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=144</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;ol&gt;
    &lt;li&gt;&amp;#160;Install iReport 3.6.0&lt;/li&gt;
    &lt;li&gt;Do a report with it and let it compile the report and it&#039;s subreports for you.&amp;#160;&lt;/li&gt;
    &lt;li&gt;Fetch jasperreports-project 3.6.0 and uncompress it&lt;/li&gt;
    &lt;li&gt;Run ant jar at the root of uncompressed directory&lt;/li&gt;
    &lt;li&gt;Copy every jar-file from both dist- and lib-subdirectories to &lt;tt&gt;/var/lib/tomcat5/shared/lib&lt;/tt&gt;&amp;#160;&lt;/li&gt;
    &lt;li&gt;Make sure that tomcat can read copied files&amp;#160;&lt;/li&gt;
    &lt;li&gt;Copy your database jdbc class to same directory&lt;/li&gt;
    &lt;li&gt;Restart tomcat&lt;/li&gt;
    &lt;li&gt;Do a directory that tomcat can write and read from&lt;/li&gt;
    &lt;li&gt;Copy your compiled jasper-reports (.jasper)-fiels to that directory&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
&lt;p&gt;Here is an example that can produce pdf-report with subreports and parameters from Postgresql-database.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;?php&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;require_once(&#039;java/Java.inc&#039;);&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// Get the database connection&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$drv = new Java(&#039;org.postgresql.Driver&#039;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$objDbm = java(&amp;quot;java.sql.DriverManager&amp;quot;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$objDbConnect = $objDbm-&amp;gt;getConnection(&amp;quot;jdbc:postgresql://host/databasename&amp;quot;, &amp;quot;user&amp;quot;, &amp;quot;passwords&amp;quot;);&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// My report has one subreport and requires five parameters&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// they are all STRINGS! I tried dates and timestamps but something chokes&amp;#160;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$company=&#039;1105366-9&#039;;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$toimpiste=&#039;kaikki&#039;;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$startDay=&amp;quot;2009-08-01&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$endDay=&amp;quot;2009-09-01&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;//&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// This is the directory tomcat needs to be able to write and read from&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// it contains the compiled reports (.jasper-files)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;//&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$reportPath=&amp;quot;/web/Pikkusisko2/raporttimallit/&amp;quot;;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// Parameters are passed in java hashmap, one way to generate one is&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// like this&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$parameters=new Java(&amp;quot;java.util.HashMap&amp;quot;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$parameters-&amp;gt;put(&#039;pYritys&#039;,$company);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$parameters-&amp;gt;put(&#039;pToimipiste&#039;,$toimipiste);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$parameters-&amp;gt;put(&#039;SUBREPORT_DIR&#039;,$reportPath);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$parameters-&amp;gt;put(&#039;pAlkupaiva&#039;,$startday);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$parameters-&amp;gt;put(&#039;pLoppupaiva&#039;,$endday);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;// Generate report pdf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$jasperRunManager = new Java(&amp;quot;net.sf.jasperreports.engine.JasperRunManager&amp;quot;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$rep=$jasperRunManager-&amp;gt;runReportToPdfFile(&amp;quot;$reportPath/projektit2.jasper&amp;quot;, $parameters, $objDbConnect);&amp;#160;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;?&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 06 Sep 2009 16:15:36 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/144-guid.html</guid>
    
</item>
<item>
    <title>Matkapuhelin modeemina, Fedora 10</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/142-Matkapuhelin-modeemina,-Fedora-10.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/142-Matkapuhelin-modeemina,-Fedora-10.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=142</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=142</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;Ubuntuporukoilla on oikein hyv&amp;auml;t &lt;a href=&quot;http://wiki.ubuntu-fi.org/Matkapuhelin_modeemina&quot;&gt;ohjeet&lt;/a&gt;. KPPP:t&amp;auml; en l&amp;ouml;yt&amp;auml;nyt ja NetworkManglerilla/graafisella kilkkeell&amp;auml; ei tullut suoraa voittoa, joten loin ohjeen kolme tiedostoa: elisa, elisa-connect-chat ja elisa-disconnect-chat tiedostot. Otin suoraan Elisan mallitiedostot ja vaihdoin bluetoothista kaapeliin. Fedorassa pon- ja poff-skriptat ovat saatavilla, mutta eiv&amp;auml;t ole polussa joten tein pari apuskriptaa:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#!/bin/bash&lt;br /&gt;
sudo service NetworkManager stop&lt;br /&gt;
base=/usr/share/doc/ppp-2.4.4/scripts&lt;br /&gt;
sudo cp /etc/resolv.conf.elisa /etc/resolv.conf&lt;br /&gt;
sudo $base/pon elisa&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;ja&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#!/bin/bash&lt;br /&gt;
base=/usr/share/doc/ppp-2.4.4/scripts&lt;br /&gt;
sudo $base/poff&lt;br /&gt;
sudo service NetworkManager start&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;resolv.conf.elisaan k&amp;auml;vin l&amp;auml;tkim&amp;auml;ss&amp;auml; skriptan testiajon palauttamat nimipalvelimet:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nameserver 193.229.0.4&lt;br /&gt;
nameserver 193.229.0.42&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Tuntuu toimivan.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 31 May 2009 23:03:46 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/142-guid.html</guid>
    
</item>
<item>
    <title>Java, php and Jasper Reports</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/139-Java,-php-and-Jasper-Reports.html</link>
            <category>Programming</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/139-Java,-php-and-Jasper-Reports.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=139</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=139</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;There is a thing called &lt;a href=&quot;http://php-java-bridge.sourceforge.net/pjb/&quot;&gt;java-bridge&lt;/a&gt; that allows you, if I&amp;#160;understood it correctly, to talk to either java runtime or mono runtime from php. And it also provides methods of doing that the otherway around. And if I&amp;#160;understood it correctly there are two ways the php application can access the jvm, either by socket or by using application server. The access method is configured in &lt;em&gt;/etc/php.d/java.ini&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Of course to get to configure anything you have to have java-bridge installed. In my case it meant downloading the latest source, yum installing tomcat and rpmbuilding the java-bridge package from the tarball with &lt;code&gt;sudo rpmbuild -tb php-java-bridge_5.4.4.2.tar.gz&lt;/code&gt;. Build might require some additional packages to be installed, in my case everything was already in place. Build produced four rpm-packages:&lt;/p&gt;
&lt;p&gt;php-java-bridge-5.4.4.2-1.i386.rpm&lt;br /&gt;
php-java-bridge-debuginfo-5.4.4.2-1.i386.rpm&lt;br /&gt;
php-java-bridge-devel-5.4.4.2-1.i386.rpm&lt;br /&gt;
php-java-bridge-mono-5.4.4.2-1.i386.rpm&lt;br /&gt;
&amp;#160;&lt;/p&gt;
&lt;p&gt;I have so far installed php-java-bridge and php-java-bridge-mono. I&amp;#160;have also run the java-bridge examples from tomcat and found out...&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0); &quot;&gt;Update: 02-September-2009, this entry was interrupted by something probably related to leaking dishwasher which stopped this work for whole two months.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 09 May 2009 08:52:44 +0300</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/139-guid.html</guid>
    
</item>
<item>
    <title>Java applets and programs dying after last update</title>
    <link>http://blogit.claymountain.com/sf/index.php?/archives/138-Java-applets-and-programs-dying-after-last-update.html</link>
            <category>Fedora</category>
    
    <comments>http://blogit.claymountain.com/sf/index.php?/archives/138-Java-applets-and-programs-dying-after-last-update.html#comments</comments>
    <wfw:comment>http://blogit.claymountain.com/sf/wfwcomment.php?cid=138</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blogit.claymountain.com/sf/rss.php?version=2.0&amp;type=comments&amp;cid=138</wfw:commentRss>
    

    <author>nospam@example.com (Mauri Sahlberg)</author>
    <content:encoded>
    &lt;p&gt;I was about to play a quick game of &lt;a href=&quot;http://www.daysofwonder.com/en/play/&quot;&gt;Ticket to Ride&lt;/a&gt; but alas after last evening&#039;s update the applet did not work. What was even more evil was to find out that nothing related to java functioned reliable.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;After stracing I&amp;#160;found that java hung on futex() and on read(). That was very warming and cozy but got me nowhere expect to Red Hat&#039;s bugzilla. And there the salvation was on comment &lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=492018#c7&quot;&gt;7&lt;/a&gt;. Now I&amp;#160;just kill the applet before gaming and wait for next update which fixes imsettings applet.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;After couple of updates this issue has gone away...&lt;/span&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 25 Mar 2009 18:00:46 +0200</pubDate>
    <guid isPermaLink="false">http://blogit.claymountain.com/sf/index.php?/archives/138-guid.html</guid>
    
</item>

</channel>
</rss>
