<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4691234901819948366</id><updated>2011-11-28T01:59:37.044+01:00</updated><category term='install'/><category term='tour'/><category term='Popmundo'/><category term='Google Maps'/><category term='flash'/><category term='MarkerClusterer'/><category term='tools'/><category term='kalaha'/><category term='adobe flash player'/><category term='smb'/><category term='travel route'/><category term='ISO'/><category term='network printer'/><category term='firefox3'/><category term='gwt'/><category term='printing'/><category term='adobe'/><category term='wine'/><category term='cups'/><category term='firefox'/><category term='thunar'/><category term='windows share'/><category term='Google Maps Api'/><category term='mount ISO'/><category term='cm'/><category term='printer'/><category term='script'/><category term='planner'/><category term='irc'/><category term='linpus'/><category term='eclipse'/><category term='basics'/><category term='share'/><category term='linpus lite'/><category term='xml'/><category term='hibernate'/><category term='ppd'/><category term='mysql'/><category term='Javascript'/><category term='jdk'/><category term='mancala'/><category term='mount'/><category term='ISO file'/><category term='acer aspire one'/><category term='Java'/><category term='game'/><category term='jvm'/><category term='xchat'/><category term='cm 01/02'/><category term='aspire one'/><category term='software'/><category term='flash player'/><category term='championship manager 01/02'/><category term='samba'/><category term='manila'/><category term='online game'/><category term='ubuntu'/><category term='championship manager'/><title type='text'>useful and useless stuff</title><subtitle type='html'>I reinstalled my Acer Aspire One with Linpus Lite recently. I want to share my tips and tricks I found on the internet to help others, and for myself, in case I need it some other time. Besides posts about the AA1 there is also useless stuff.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-4232476023803894523</id><published>2011-10-09T10:47:00.006+02:00</published><updated>2011-10-09T11:15:52.207+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='flash player'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus'/><category scheme='http://www.blogger.com/atom/ns#' term='adobe flash player'/><category scheme='http://www.blogger.com/atom/ns#' term='adobe'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus lite'/><title type='text'>Linpus Lite, Update Adobe Flash Player</title><content type='html'>The other day, my &lt;a href="http://usefulanduselessstuff.blogspot.com/2009/07/install-firefox3-on-acer-aspire-one.html"&gt;FireFox&lt;/a&gt; updated itself and told me I should update Adobe Flash Player.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-NL79l40BbsU/TpFkcnqhyMI/AAAAAAAAABE/ynv6UTTjAd0/s1600/flash1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://3.bp.blogspot.com/-NL79l40BbsU/TpFkcnqhyMI/AAAAAAAAABE/ynv6UTTjAd0/s320/flash1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5661416649427896514" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Just click the link &lt;span style="font-style:italic;"&gt;get the free update now&lt;/span&gt; and I chose &lt;span style="font-style:italic;"&gt;.rpm for other Linux&lt;/span&gt;. I chose rpm since Linpus Linux is based on Fedora which uses the Redhat Package Manager (rpm).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-NvEn82Sro4w/TpFkc7_2LGI/AAAAAAAAABM/wJfGXn0XW04/s1600/flash2.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://1.bp.blogspot.com/-NvEn82Sro4w/TpFkc7_2LGI/AAAAAAAAABM/wJfGXn0XW04/s320/flash2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5661416654886022242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The default program to open rpm files is the package manager of Linpus. This is fine. Click OK to download.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-TSy3P_0C5jI/TpFkcyVHekI/AAAAAAAAABU/GVjL25RYTAU/s1600/flash3.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://2.bp.blogspot.com/-TSy3P_0C5jI/TpFkcyVHekI/AAAAAAAAABU/GVjL25RYTAU/s320/flash3.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5661416652290882114" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It then downloads the file and you will be prompted for the root password for using the package manager.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-t_JnaBRo1zo/TpFkdJGpSCI/AAAAAAAAABc/JaSmzOxu-dI/s1600/flash4.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://1.bp.blogspot.com/-t_JnaBRo1zo/TpFkdJGpSCI/AAAAAAAAABc/JaSmzOxu-dI/s320/flash4.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5661416658404198434" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Click Apply, click away a warning and the Adobe Flash Player will install. It actually amazed me how simple it was.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-DJHv0NNcZEw/TpFkdM75BQI/AAAAAAAAABk/fG4ILzvfbhE/s1600/flash5.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 187px;" src="http://1.bp.blogspot.com/-DJHv0NNcZEw/TpFkdM75BQI/AAAAAAAAABk/fG4ILzvfbhE/s320/flash5.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5661416659432834306" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-4232476023803894523?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/4232476023803894523/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2011/10/linpus-lite-update-adobe-flash-player.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4232476023803894523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4232476023803894523'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2011/10/linpus-lite-update-adobe-flash-player.html' title='Linpus Lite, Update Adobe Flash Player'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-NL79l40BbsU/TpFkcnqhyMI/AAAAAAAAABE/ynv6UTTjAd0/s72-c/flash1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-1016926926939546187</id><published>2011-05-01T10:53:00.002+02:00</published><updated>2011-05-01T11:37:43.439+02:00</updated><title type='text'>Wireless network dongle for Argosy HV335T</title><content type='html'>Recently I bought an Argosy HV335T media player, and since it isn't near a wired network point, I thought it would be a good idea to use a wifi dongle.&lt;br /&gt;&lt;br /&gt;Argosy USB Wireless Dongle support:&lt;br /&gt;● 802.11g (Realtek RTL8187B only)&lt;br /&gt;● 802.11n (Realtek RTL8192/RTL8191SU only)&lt;br /&gt;But not all network adapters with these chipsets work. I tried three different wifi adapters before I finally found one that works. The first three I bought because of the chipset (twice at &lt;a href="http://www.mycom.nl/"&gt;mycom&lt;/a&gt;, who have great service; the helped trying to find the right one and returning non-working ones was no problem, and one at amazon.de I ordered &lt;a href="http://www.amazon.de/gp/product/B000YT0Z7A/ref=as_li_qf_sp_asin_tl?ie=UTF8&amp;tag=usefulandusel-21&amp;linkCode=as2&amp;camp=1638&amp;creative=6742&amp;creativeASIN=B000YT0Z7A"&gt;LogiLink W-LAN 54MBit USB 2.0 Adapter, Realtek Chip&lt;/a&gt;&lt;img src="http://www.assoc-amazon.de/e/ir?t=usefulandusel-21&amp;l=as2&amp;o=3&amp;a=B000YT0Z7A" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt;.&lt;br /&gt;&lt;br /&gt;On the &lt;a href="http://argosy.multiforum.nl/viewtopic.php?p=9&amp;sid=0cedf5dbdc285c6b6553662bd75c7a84&amp;mforum=argosy"&gt;Argosy forum&lt;/a&gt; I found a list with tested and working adapters. Here's the list, for future reference:&lt;br /&gt;Airlink AWLL6075&lt;br /&gt;Airlink AWLL6077&lt;br /&gt;Belkin F5D8053v6&lt;br /&gt;Cnet WU906&lt;br /&gt;D-Link DWA-130&lt;br /&gt;D-Link DWA-131&lt;br /&gt;Encore ENUWI-G2 (802,11g)&lt;br /&gt;MIMO network adapter 300Mbps&lt;br /&gt;Monoprice USB Wireless Lan 802,11N1 1T2R adapter&lt;br /&gt;Zonet ZEW2546&lt;br /&gt;Zxtreamer wireless Antenna ( tested by end-user) &lt;br /&gt;&lt;br /&gt;Finally, at amazon.co.uk I bought the &lt;a href="http://www.amazon.co.uk/gp/product/B002RCKDEC/ref=as_li_qf_sp_asin_tl?ie=UTF8&amp;tag=usefulandus04-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=B002RCKDEC"&gt;AirLink101 AWLL6075 Wireless N Mini USB Adapter&lt;/a&gt;&lt;img src="http://www.assoc-amazon.co.uk/e/ir?t=usefulandus04-21&amp;l=as2&amp;o=2&amp;a=B002RCKDEC" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt; which is nice and small, 54n so quick and works perfectly with the Argosy HV335T!&lt;br /&gt;&lt;br /&gt;&lt;iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=usefulandus04-21&amp;o=2&amp;p=8&amp;l=as1&amp;asins=B002RCKDEC&amp;ref=qf_sp_asin_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-1016926926939546187?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/1016926926939546187/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2011/05/wireless-network-dongle-for-argosy.html#comment-form' title='1 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/1016926926939546187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/1016926926939546187'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2011/05/wireless-network-dongle-for-argosy.html' title='Wireless network dongle for Argosy HV335T'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-7365891619535691056</id><published>2010-01-28T14:17:00.007+01:00</published><updated>2011-05-01T11:45:00.469+02:00</updated><title type='text'>Bluetooth on the Acer Aspire One 110 (Linpus)</title><content type='html'>I bought a small and cheap &lt;a href="http://partnerprogramma.bol.com/click/click?p=1&amp;t=url&amp;s=4301&amp;url=http%3A//www.bol.com/nl/p/computer/konig-mini-bluetooth-2-0-usb-adapter-20m/1003004006152753/index.html%3FReferrer%3DTDRd1fb0e425c1740c0c7c7965ad6d37f731771733&amp;f=TXL&amp;name=konig%20bluetooth"&gt;mini Bluetooth usb adapter by Konig&lt;/A&gt; for my desktop pc. I thought it would be fun -since it lacks a functional use- to use Bluetooth on my Aspire One also.&lt;br /&gt;&lt;br /&gt;On the internet there aren't a lot of tutorials for Bluetooth on the AAO. A good one to solder a permanent one inside is &lt;a href="http://tnkgrl.wordpress.com/2008/08/14/modding-the-acer-aspire-one-bluetooth/"&gt;over here&lt;/a&gt;. I don't think I will be doing this, because opening the netbook was a bit tricky. I used the tutorial to increase my memory by 1GB. But if you really like the Bluetooth option, you might want to use this tutorial. Another tutorial, which I'll imitate, is &lt;a href="http://andrewhague.wordpress.com/2009/04/08/bluetooth-working-on-linpus-aspire-one-a150/"&gt;over here&lt;/a&gt;. It almost does exactly what I want.&lt;br /&gt;&lt;br /&gt;I inserted the bluetooth adapter in an empty usb slot. Running the &lt;code&gt;lsusb&lt;/code&gt; command will result in (amongst others):&lt;br /&gt;&lt;code&gt;ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)&lt;/code&gt;&lt;br /&gt;It seems like my dongle uses a CSR chipset.&lt;br /&gt;&lt;br /&gt;Ok, let's install the software we'll need.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ sudo yum install bluez-gnome bluez-hcidump bluez-libs bluez-utils gnome-bluetooth&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now, we need to install new kernel modules. For more information on kernel modules look in &lt;a href="http://en.wikipedia.org/wiki/Loadable_kernel_module"&gt;wikipedia&lt;/a&gt; and of course the original blog.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ cd /lib/modules/2.6.23.9lw/kernel/drivers/net/&lt;br /&gt;$ sudo wget http://arcadia.anime.fi/~n/aspireone/bluetooth.tgz&lt;br /&gt;$ sudo tar -zxvf bluetooth.tgz&lt;br /&gt;$ cd /lib/modules/2.6.23.9lw/kernel/drivers/&lt;br /&gt;$ sudo wget http://arcadia.anime.fi/~n/aspireone/bluetooth2.tgz&lt;br /&gt;$ sudo tar -zxvf bluetooth2.tgz&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;We extracted the bluetooth.tgz in the directory /lib/modules/2.6.23.9lw/kernel/drivers/net/bluetooth/, which it created.&lt;br /&gt;Bluetooth2.tgz is extracted to /lib/modules/2.6.23.9lw/kernel/drivers/bluetooth/&lt;br /&gt;&lt;br /&gt;Now, we have to run depmod, which handles dependency descriptions for loadable kernel modules. Then we can run the module.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ sudo depmod&lt;br /&gt;$ sudo /etc/init.d/bluetooth start&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Well, now should everything be installed and able to work. I had to restart my AA1 to load the kernel modules, though. First, load the kernel module by hand. From the bluez-package, we have a program called bluetooth-applet (in /usr/bin), which uses /usr/bin/bluetooth-properties.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ sudo /etc/init.d/bluetooth start&lt;br /&gt;$ bluetooth-applet&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;In another console, I started to try to connect with my phone. First, I determined it's address, with hcitool. Then, I edited the config file rfcomm.conf, after that I tried to connect.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ hcitool scan&lt;br /&gt;Scanning ...&lt;br /&gt;        00:15:B9:90:43:50       SAMSUNG SGH-D600E&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Very nice, I found my phone.&lt;br /&gt;Then I edited &lt;code&gt;$ sudo vim /etc/bluetooth/rfcomm.conf&lt;/code&gt; with my properties.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;rfcomm0 {&lt;br /&gt; bind no;&lt;br /&gt; device 00:15:B9:90:43:50;&lt;br /&gt; channel 1;&lt;br /&gt; comment "Samsung Phone";&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then I connected:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ rfcomm bind rfcomm0&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In my phone, I went to the bluetooth detect page and could find the AA1. And I could connect to it as a serial port!&lt;br /&gt;Well, I did have fun installing the bluetooth. Now, I hope I could find a use for the bluetooth, and it would be even better.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var bol_pml={"id":"bol_1304243082279","secure":false,"baseUrl":"partnerprogramma.bol.com","urlPrefix":"http://aai.bol.com/aai","productId":"productid=1003004006152753&amp;","site_id":"4301","target":true,"rating":false,"price":true,"link_name":"konig bluetooth plaatje","link_subid":"","image_size":true,"image_position":"left","width":"250","cols":"1","background_color":"#FFFFFF","text_color":"#CB0100","link_color":"#0000FF","border_color":"#D2D2D2","letter_type":"verdana","letter_size":"11"};&lt;/script&gt;&lt;script id="bol_1304243082279" src="http://partnerprogramma.bol.com/partner/static/js/aai/clientProductlink.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-7365891619535691056?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/7365891619535691056/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2010/01/bluetooth-on-acer-aspire-one-110-linpus.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/7365891619535691056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/7365891619535691056'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2010/01/bluetooth-on-acer-aspire-one-110-linpus.html' title='Bluetooth on the Acer Aspire One 110 (Linpus)'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-3655343526239462735</id><published>2009-11-05T13:22:00.006+01:00</published><updated>2009-11-05T14:19:07.455+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='basics'/><title type='text'>Java + MySQL + Hibernate</title><content type='html'>&lt;a href="http://usefulanduselessstuff.blogspot.com/2009/11/java-and-mysql-in-eclipse.html"&gt;Last time&lt;/a&gt; I explained how to set up your system so you could feed queries to a MySQL database from your Java application. Now, to make it prettier and easier, I added &lt;a href="https://www.hibernate.org/"&gt;Hibernate&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Hibernate will let you get and put Java objects from and into the database.&lt;br /&gt;&lt;br /&gt;Ok, download Hibernate Core &lt;a href="https://www.hibernate.org/6.html"&gt;here&lt;/a&gt; and maybe read &lt;a href="http://docs.jboss.org/hibernate/stable/core/reference/en/html/tutorial.html"&gt;this tutorial&lt;/a&gt; for extra information.&lt;br /&gt;&lt;br /&gt;I will be using the database table I made in last example, a table named 'phonebook', with contents:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;mysql&gt; SELECT * FROM phonebook;&lt;br /&gt;+----+-------+----------+&lt;br /&gt;| id | name | number |&lt;br /&gt;+----+-------+----------+&lt;br /&gt;| 1 | Barry | 555-1234 |&lt;br /&gt;| 2 | Bob | 555-5678 |&lt;br /&gt;+----+-------+----------+&lt;br /&gt;2 rows in set (0.00 sec)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now, create a new Java project and add the jars of Hibernate Core and the MySQL Connector/J connector. Our project consists of 5 files, which are 1. a SessionFactoryUtil, to connect with our database, 2. a class which describes a entry of the database table, a phonebook entry, 3. a hibernate config file which lets our program connect to the database, 4. a hibernate mapping file, which maps a database row to the object made in 2. and 5. a test class to show (how) it works.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SessionFactoryUtil&lt;/span&gt;&lt;br /&gt;This file creates a connection to the database.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;package com.example.phonebook;&lt;br /&gt;&lt;br /&gt;import org.hibernate.SessionFactory;&lt;br /&gt;import org.hibernate.cfg.Configuration;&lt;br /&gt;&lt;br /&gt;public class SessionFactoryUtil {&lt;br /&gt;   &lt;br /&gt;       private static final SessionFactory sessionFactory = buildSessionFactory();&lt;br /&gt;&lt;br /&gt;          private static SessionFactory buildSessionFactory() {&lt;br /&gt;              try {&lt;br /&gt;                  // Create the SessionFactory from hibernate.cfg.xml&lt;br /&gt;                  return new Configuration().configure("hibernate_phonebook.cfg.xml").buildSessionFactory();&lt;br /&gt;              }&lt;br /&gt;              catch (Throwable ex) {&lt;br /&gt;                  // Make sure you log the exception, as it might be swallowed&lt;br /&gt;                  System.err.println("Initial SessionFactory creation failed. " + ex);&lt;br /&gt;                  throw new ExceptionInInitializerError(ex);&lt;br /&gt;              }&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;          public static SessionFactory getSessionFactory() {  &lt;br /&gt;              return sessionFactory;  &lt;br /&gt;          }  &lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The PhoneBookEntry object&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;package com.example.phonebook;&lt;br /&gt;&lt;br /&gt;public class PhoneBookEntry {&lt;br /&gt; private Integer id;&lt;br /&gt; private String name;&lt;br /&gt; private String number;&lt;br /&gt; &lt;br /&gt; /*public PhoneBookEntry(String name, String number) {&lt;br /&gt;  this.name = name;&lt;br /&gt;  this.number = number;&lt;br /&gt; }*/&lt;br /&gt; &lt;br /&gt; public Integer getId() {&lt;br /&gt;  return id;&lt;br /&gt; }&lt;br /&gt; public void setId(Integer id) {&lt;br /&gt;  this.id = id;&lt;br /&gt; }&lt;br /&gt; public String getName() {&lt;br /&gt;  return name;&lt;br /&gt; }&lt;br /&gt; public void setName(String name) {&lt;br /&gt;  this.name = name;&lt;br /&gt; }&lt;br /&gt; public String getNumber() {&lt;br /&gt;  return number;&lt;br /&gt; }&lt;br /&gt; public void setNumber(String number) {&lt;br /&gt;  this.number = number;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public String toString() {&lt;br /&gt;  return "Name: " + getName() + " Number: " + getNumber();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The hibernate config file&lt;/span&gt;&lt;br /&gt;I called my file hibernate_phonebook.xml.cfg. I needed to name this file in the SessionFactoryUtil, because by default hibernate looks for the file hibernate.xml.cfg.&lt;br /&gt;In this file, there's all the data to connect to the database.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE hibernate-configuration PUBLIC&lt;br /&gt;          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"&lt;br /&gt;          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&amp;gt;&lt;br /&gt;&amp;lt;hibernate-configuration&amp;gt;&lt;br /&gt;&amp;lt;session-factory&amp;gt;&lt;br /&gt; &amp;lt;property name="connection.url"&amp;gt;jdbc:mysql://192.168.1.74/test2&amp;lt;/property&amp;gt;&lt;br /&gt; &amp;lt;property name="connection.username"&amp;gt;root&amp;lt;/property&amp;gt;&lt;br /&gt; &amp;lt;property name="connection.password"&amp;gt;password&amp;lt;/property&amp;gt;&lt;br /&gt; &amp;lt;property name="connection.driver_class"&amp;gt;com.mysql.jdbc.Driver&amp;lt;/property&amp;gt;&lt;br /&gt; &amp;lt;property name="dialect"&amp;gt;org.hibernate.dialect.MySQLDialect&amp;lt;/property&amp;gt;&lt;br /&gt;    &amp;lt;property name="transaction.factory_class"&amp;gt;org.hibernate.transaction.JDBCTransactionFactory&amp;lt;/property&amp;gt;&lt;br /&gt;    &lt;br /&gt;    &amp;lt;!--  thread is the short name for&lt;br /&gt;      org.hibernate.context.ThreadLocalSessionContext&lt;br /&gt;      and let Hibernate bind the session automatically to the thread&lt;br /&gt;    --&amp;gt;&lt;br /&gt;    &amp;lt;property name="current_session_context_class"&amp;gt;thread&amp;lt;/property&amp;gt;&lt;br /&gt;       &lt;br /&gt;    &amp;lt;!-- this will show us all sql statements --&amp;gt;&lt;br /&gt;    &amp;lt;property name="hibernate.show_sql"&amp;gt;true&amp;lt;/property&amp;gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;!-- mapping files --&amp;gt;&lt;br /&gt; &amp;lt;mapping resource="phonebook.hbm.xml" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/session-factory&amp;gt;&lt;br /&gt;&amp;lt;/hibernate-configuration&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The hibernate mapping file&lt;/span&gt;&lt;br /&gt;I called this file phonebook.hbm.xml. I maps the database rows to the object PhoneBookEntry.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE hibernate-mapping  &lt;br /&gt;   PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"  &lt;br /&gt;   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&amp;gt;&lt;br /&gt;   &lt;br /&gt; &amp;lt;hibernate-mapping&amp;gt;&lt;br /&gt; &amp;lt;class name="com.example.phonebook.PhoneBookEntry" table="phonebook"&amp;gt;&lt;br /&gt;   &amp;lt;id name="id" column="id" type="java.lang.Integer"&amp;gt;&lt;br /&gt;     &amp;lt;generator class="increment"/&amp;gt;&lt;br /&gt;   &amp;lt;/id&amp;gt;&lt;br /&gt;   &amp;lt;property name="name" column="name" type="java.lang.String" /&amp;gt;&lt;br /&gt;   &amp;lt;property name="number" column="number" type="java.lang.String" /&amp;gt;&lt;br /&gt; &amp;lt;/class&amp;gt;&lt;br /&gt;&amp;lt;/hibernate-mapping&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The test&lt;/span&gt;&lt;br /&gt;The last file is a test. What it does: create a connection, read all entries from the table in the database, add an entry and display all entries again.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;package com.example.phonebook;&lt;br /&gt;&lt;br /&gt;import java.util.Iterator;&lt;br /&gt;import java.util.List;&lt;br /&gt;&lt;br /&gt;import org.hibernate.HibernateException;&lt;br /&gt;import org.hibernate.Session;&lt;br /&gt;import org.hibernate.Transaction;&lt;br /&gt;&lt;br /&gt;public class PhoneBookTest {&lt;br /&gt; public static void main(String[] args) {&lt;br /&gt;  listEntries();&lt;br /&gt;  PhoneBookEntry entry = new PhoneBookEntry();&lt;br /&gt;  entry.setName("Jay");&lt;br /&gt;  entry.setNumber("555-8912");&lt;br /&gt;  addEntry(entry);&lt;br /&gt;  listEntries();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; private static void listEntries() {&lt;br /&gt;  Transaction tx = null; &lt;br /&gt;  Session session = SessionFactoryUtil.getSessionFactory().getCurrentSession(); &lt;br /&gt;  try {&lt;br /&gt;   tx = session.beginTransaction();&lt;br /&gt;   List entries = session.createQuery("select e from PhoneBookEntry as e").list();&lt;br /&gt;   for (Iterator iter = entries.iterator(); iter.hasNext();) {&lt;br /&gt;    PhoneBookEntry element = (PhoneBookEntry) iter.next();&lt;br /&gt;    System.out.println(element.toString());&lt;br /&gt;   }&lt;br /&gt;   tx.commit();&lt;br /&gt;  } catch (RuntimeException e) {&lt;br /&gt;   if (tx != null &amp;&amp; tx.isActive()) {&lt;br /&gt;    try {&lt;br /&gt;     // Second try catch as the rollback could fail as well&lt;br /&gt;     tx.rollback();&lt;br /&gt;    } catch (HibernateException e1) {&lt;br /&gt;     //logger.debug("Error rolling back transaction");&lt;br /&gt;    }&lt;br /&gt;    // throw again the first exception&lt;br /&gt;    throw e;&lt;br /&gt;   } else throw e;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; private static void addEntry(PhoneBookEntry entry) {&lt;br /&gt;  Session session = SessionFactoryUtil.getSessionFactory().getCurrentSession();&lt;br /&gt;  Transaction tx = session.beginTransaction();&lt;br /&gt;  session.save(entry);&lt;br /&gt;        session.getTransaction().commit();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The result&lt;/span&gt;&lt;br /&gt;After running, the result is &lt;br /&gt;&lt;code&gt;&lt;br /&gt;Hibernate: select phonebooke0_.id as id0_, phonebooke0_.name as name0_, phonebooke0_.number as number0_ from phonebook phonebooke0_&lt;br /&gt;Name: Barry Number: 555-1234&lt;br /&gt;Name: Bob Number: 555-5678&lt;br /&gt;Hibernate: select max(id) from phonebook&lt;br /&gt;Hibernate: insert into phonebook (name, number, id) values (?, ?, ?)&lt;br /&gt;Hibernate: select phonebooke0_.id as id0_, phonebooke0_.name as name0_, phonebooke0_.number as number0_ from phonebook phonebooke0_&lt;br /&gt;Name: Barry Number: 555-1234&lt;br /&gt;Name: Bob Number: 555-5678&lt;br /&gt;Name: Jay Number: 555-8912&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;First, we see the SELECT query and the result, 2 entries. Then we see the INSERT query, and then another SELECT, now with 3 entries. Just as planned.&lt;br /&gt;&lt;br /&gt;Of course, this is a very simple example. You could/should include functions to UPDATE and REMOVE entries in the database, and try to catch more Exceptions. This is just the very basics, to see if it works, and if you understand the basics.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-3655343526239462735?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/3655343526239462735/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/11/java-mysql-hibernate.html#comment-form' title='1 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3655343526239462735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3655343526239462735'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/11/java-mysql-hibernate.html' title='Java + MySQL + Hibernate'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-4536276226711449471</id><published>2009-11-04T15:28:00.005+01:00</published><updated>2009-11-09T08:23:21.313+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='jdk'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='jvm'/><title type='text'>Java and MySQL in Eclipse</title><content type='html'>Here's an example how to work with Java and MySQL in Eclipse, in my case on a Ubuntu machine. My original idea was to create an example with Java, Hibernate, Google Web Toolkit and MySQL in Eclipse, but because a lot of errors I decided to split up the project. Maybe later I'll post the intended example.&lt;br /&gt;&lt;br /&gt;So, Eclipse, Java and MySQL, it don't sound that difficult, and actually it isn't.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Installing Eclipse&lt;/span&gt;&lt;br /&gt;I started downloading Eclipse from &lt;a href="http://www.eclipse.org/downloads/"&gt;http://www.eclipse.org/downloads/&lt;/a&gt; I received the file &lt;code&gt;eclipse-jee-galileo-SR1-linux-gtk.tar.gz&lt;/code&gt;&lt;br /&gt;I extracted the file in &lt;code&gt;~/&lt;/code&gt; so I got a directory &lt;code&gt;~/eclipse&lt;/code&gt; there.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;MySQL&lt;/span&gt;&lt;br /&gt;I already had MySQL installed. Information on installing MySQL is found over here &lt;a href="http://dev.mysql.com/downloads/"&gt;http://dev.mysql.com/downloads/&lt;/a&gt;&lt;br /&gt;I downloaded the &lt;span style="font-style:italic;"&gt;MySQL Connector/J connector&lt;/span&gt;. It is the official JDBC driver for MySQL. (&lt;a href="http://dev.mysql.com/downloads/connector/j/5.1.html"&gt;http://dev.mysql.com/downloads/connector/j/5.1.html&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Sun JDK&lt;/span&gt;&lt;br /&gt;Make sure you are using the Sun java 6 JDK. As a Ubuntu user I installed the package sun-java6-jdk from the repository.&lt;br /&gt;&lt;br /&gt;Now we have installed everything we need.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Create database&lt;/span&gt;&lt;br /&gt;Login to MySQL as root:&lt;br /&gt;&lt;code&gt;$ mysql -u root -p&lt;/code&gt;&lt;br /&gt;Create a new database: &lt;br /&gt;&lt;code&gt;mysql&gt; CREATE DATABASE test2;&lt;/code&gt;&lt;br /&gt;Open the database: &lt;br /&gt;&lt;code&gt;mysql&gt; connect test2;&lt;/code&gt;&lt;br /&gt;Create a new table: &lt;br /&gt;&lt;code&gt;mysql&gt; CREATE TABLE phonebook (id INT(8) UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(32) NOT NULL, number VARCHAR(32) NOT NULL, PRIMARY KEY(id));&lt;/code&gt;&lt;br /&gt;The table is a very simple phonebook, containing name and number and a unique id.&lt;br /&gt;Now insert 2 rows for testing:&lt;br /&gt;&lt;code&gt;mysql&gt; INSERT INTO phonebook (name, number) VALUES ('Barry', '555-1234');&lt;br /&gt;mysql&gt; INSERT INTO phonebook (name, number) VALUES ('Bob', '555-5678');&lt;/code&gt;&lt;br /&gt;If you type the query &lt;span style="font-style:italic;"&gt;SELECT * FROM phonebook;&lt;/span&gt; you should see something like this:&lt;br /&gt;&lt;code&gt;mysql&gt; SELECT * FROM phonebook;&lt;br /&gt;+----+-------+----------+&lt;br /&gt;| id | name  | number   |&lt;br /&gt;+----+-------+----------+&lt;br /&gt;|  1 | Barry | 555-1234 | &lt;br /&gt;|  2 | Bob   | 555-5678 | &lt;br /&gt;+----+-------+----------+&lt;br /&gt;2 rows in set (0.00 sec)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Starting Eclipse&lt;/span&gt;&lt;br /&gt;First of all, set up Eclipse so it uses the Sun JDK, because the default GNU JDK will produce errors. A nice howto is over here: &lt;a href="https://help.ubuntu.com/community/EclipseIDE#Eclipse%20and%20Sun%20Java"&gt;https://help.ubuntu.com/community/EclipseIDE#Eclipse%20and%20Sun%20Java&lt;/a&gt;&lt;br /&gt;It took me a long long time to realise the default VM was the cause of all kind of connection errors. So learn from it.&lt;br /&gt;&lt;br /&gt;Now it's time to create a new project. &lt;span style="font-style:italic;"&gt;File &gt; New &gt; Project&lt;/span&gt; opens a wizard. Just choose Java project and Next. I named the project mysqltest.&lt;br /&gt;Include the downloaded JDBC driver for MySQL. Right-click on the project and select properties. Choose &lt;span style="font-style:italic;"&gt;Java Build Path &gt; Libraries &gt; Add External JARs&lt;/span&gt;. Include the file &lt;span style="font-style:italic;"&gt;mysql-connector-java-&lt;version&gt;.bin.jar&lt;/span&gt; from the location you extracted the JDBC driver earlier on.&lt;br /&gt;In the directory src, create a new class Test1. Test1.java can be the following.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;package com.example.mysqltst;&lt;br /&gt;&lt;br /&gt;import java.sql.Connection;&lt;br /&gt;import java.sql.DriverManager;&lt;br /&gt;import java.sql.ResultSet;&lt;br /&gt;import java.sql.SQLException;&lt;br /&gt;import java.sql.Statement;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class Test1 {&lt;br /&gt; public static void main(String [] args) {&lt;br /&gt;  try {&lt;br /&gt;   // load the driver&lt;br /&gt;   Class.forName("com.mysql.jdbc.Driver").newInstance();&lt;br /&gt;   &lt;br /&gt;   // create a connection to the db&lt;br /&gt;   Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/test2", "root", "password");&lt;br /&gt;   &lt;br /&gt;   // get some results&lt;br /&gt;   Statement stmt = conn.createStatement();&lt;br /&gt;      ResultSet rs = stmt.executeQuery("SELECT * FROM phonebook");&lt;br /&gt;      while (rs.next()) {&lt;br /&gt;          System.out.println(rs.getString(1) + " " + rs.getString(2) + " " + rs.getString(3));  &lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;  } catch (SQLException ex) {&lt;br /&gt;   // handle any errors&lt;br /&gt;   System.out.println("SQLException: " + ex.getMessage());&lt;br /&gt;   System.out.println("SQLState: " + ex.getSQLState());&lt;br /&gt;   System.out.println("VendorError: " + ex.getErrorCode());&lt;br /&gt;  } catch (Exception e) {&lt;br /&gt;   System.out.println("Other exception: " + e.getMessage());&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Running the code will result on the stdout:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;1 Barry 555-1234&lt;br /&gt;2 Bob 555-5678&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;A useful link to get more in depth information (old, but still good): &lt;a href="http://www.kitebird.com/articles/jdbc.html"&gt;Writing JDBC Applications with MySQL&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-4536276226711449471?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/4536276226711449471/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/11/java-and-mysql-in-eclipse.html#comment-form' title='1 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4536276226711449471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4536276226711449471'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/11/java-and-mysql-in-eclipse.html' title='Java and MySQL in Eclipse'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-3849795109976344673</id><published>2009-11-03T20:17:00.002+01:00</published><updated>2009-11-03T20:20:12.193+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='online game'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='kalaha'/><category scheme='http://www.blogger.com/atom/ns#' term='gwt'/><category scheme='http://www.blogger.com/atom/ns#' term='mancala'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Online mancala game</title><content type='html'>I wanted to train my java, gwt, junit and mockito skills. The result is an online mancala (or kalaha) game. It's a game for two players. You can try and play the mancala game over here: &lt;a href="http://www.xs4all.nl/~jjokkema/mancala/"&gt;mancala game&lt;/a&gt;. Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-3849795109976344673?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/3849795109976344673/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/11/online-mancala-game.html#comment-form' title='1 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3849795109976344673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3849795109976344673'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/11/online-mancala-game.html' title='Online mancala game'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-3013950872814304358</id><published>2009-10-09T09:31:00.002+02:00</published><updated>2009-10-09T10:30:51.192+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ppd'/><category scheme='http://www.blogger.com/atom/ns#' term='network printer'/><category scheme='http://www.blogger.com/atom/ns#' term='acer aspire one'/><category scheme='http://www.blogger.com/atom/ns#' term='aspire one'/><category scheme='http://www.blogger.com/atom/ns#' term='cups'/><category scheme='http://www.blogger.com/atom/ns#' term='printer'/><category scheme='http://www.blogger.com/atom/ns#' term='printing'/><title type='text'>How to install a printer on your Aspire One</title><content type='html'>I decided it's useful to install a printer after I wanted to print an e-mail. I have a network printer so it should be easy.&lt;br /&gt;&lt;br /&gt;On the site of &lt;a href="http://www.linuxprinting.org/"&gt;www.linuxprinting.org&lt;/a&gt; there are a lot of install guides and drivers.&lt;br /&gt;&lt;br /&gt;My Linpus installation already had the 'cups' installed. Probably by default. Cups is the &lt;br /&gt;printing system that's being used. I downloaded the ppd driver I needed.&lt;br /&gt;&lt;br /&gt;I just opened the cups configuration website in a browser. The url is &lt;code&gt;http://localhost:631/admin&lt;/code&gt;. I added a new printer with the Internet Printing Protocol (ipp), which my printer supports. It seems like a lot of modern printers are supported by cups. I had to provide the downloaded .ppd file though, because my printer wasn't.&lt;br /&gt;&lt;br /&gt;After logging in as root on the install webpage, there's an option to set printer options, like paper size and double sided printing. After that, go to the tmenu item 'Printers' to test the installation with 'Print Test Page'. Mine worked fine!&lt;br /&gt;&lt;br /&gt;So it's actually quite easy. Cups is already installed, and if you don't have an exotic printer, you shouldn't even have to look on the internet for drivers, and just follow the directions on http://localhost:631/admin&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-3013950872814304358?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/3013950872814304358/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/10/how-to-install-printer-on-your-aspire.html#comment-form' title='1 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3013950872814304358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3013950872814304358'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/10/how-to-install-printer-on-your-aspire.html' title='How to install a printer on your Aspire One'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-3903615579409416746</id><published>2009-08-14T15:49:00.003+02:00</published><updated>2009-08-14T15:56:29.879+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Popmundo'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='manila'/><title type='text'>New PopMundo city</title><content type='html'>I've updated my PopMundo tools at &lt;a href="http://www.xs4all.nl/~jjokkema/popmundo/"&gt;http://www.xs4all.nl/~jjokkema/popmundo/&lt;/a&gt;&lt;br /&gt;It now includes the new city Manila. There are 2 new travel routes, Manila-Shanghai and Manila-Singapore.&lt;br /&gt;I upgraded the tools so I'll only have to update an xml file with all travel routes instead of adding the travel routes in the code and recompiling and uploading it all.&lt;br /&gt;Xml and google web toolkit was a pain right now, but in the long run, I'll reap the fruits.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-3903615579409416746?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/3903615579409416746/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/08/new-popmundo-city.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3903615579409416746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3903615579409416746'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/08/new-popmundo-city.html' title='New PopMundo city'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-6825215648907079845</id><published>2009-08-13T15:53:00.001+02:00</published><updated>2009-08-13T15:54:47.760+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cm 01/02'/><category scheme='http://www.blogger.com/atom/ns#' term='championship manager'/><category scheme='http://www.blogger.com/atom/ns#' term='cm'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus'/><category scheme='http://www.blogger.com/atom/ns#' term='championship manager 01/02'/><category scheme='http://www.blogger.com/atom/ns#' term='wine'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus lite'/><title type='text'>How to play Championship Manager 01/02 on Linpus Lite</title><content type='html'>Last time, I showed how to mount an ISO file. My intention was to install Championship Manager 01/02, a Windows 95 football manager I was addicted to at the time. I'm playing it now again. Many say the 01/02 version is the most playable version.&lt;br /&gt;&lt;br /&gt;As a promotion for the newest version of the game, the &lt;a href=”http://www.championshipmanager.co.uk/”&gt;creators&lt;/a&gt; decided to give the 01/02 game away for free. You will have to register on their site, though. Once you're registered and logged in, you can download the original cd from &lt;a href=”http://www.championshipmanager.co.uk/server/show/nav.527“&gt;this page&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;In order to have our Linpus Lite be able to run Windows applications, we'll install &lt;a href=”http://www.winehq.org/”&gt;Wine&lt;/a&gt;. The yum repository doesn't have the newest version (I have 0.9.47), but it's new enough to run CM01/02. Install it in a terminal screen by typing&lt;br /&gt;&lt;code&gt;sudo yum install wine&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;I have mounted my ISO of the game on /mnt/iso/. I now can install the game with&lt;br /&gt;&lt;code&gt;sudo wine /mnt/iso/Setup.exe&lt;/code&gt;&lt;br /&gt;Just install the default directories.&lt;br /&gt;&lt;br /&gt;Wine installed the game in ~/.wine/drive_c/Program Files/Championship Manager 01-02/&lt;br /&gt;We can now start the game by typing&lt;br /&gt;&lt;code&gt;cd ~/.wine/drive_c/Program Files/Championship Manager 01-02/&lt;/code&gt;&lt;br /&gt;sudo wine cm0102.exe&lt;/code&gt;&lt;br /&gt;Unfortunately, when the guys at championshipmanager.co.uk decided to release the free version of the game, they didn't remove the cd check. If the original cd isn't in a cd drive, the game won't start. Since the Aspire One does not have a built in cd drive, it is impossible to have a cd in a drive. So i'm afraid a no cd crack is necessary. Although I don't like hacks en cracks, I don't see another option.&lt;br /&gt;But first we're going to upgrade the game to the latest version.&lt;br /&gt;&lt;br /&gt;The best site to find all kind of things for Championship Manager 01/02 is the fan site &lt;a href=”http://www.champman0102.co.uk/”&gt;www.champman0102.co.uk&lt;/a&gt;. It's here I downloaded the &lt;a href=”http://www.champman0102.co.uk/forum/showthread.php?t=51”&gt;SI Games Official Patch v3.9.68 &lt;/a&gt; which is the newest patch. All other patches and updates on the champman0102.co.uk site need this patch. I installed the patch:&lt;br /&gt;&lt;code&gt;sudo wine /home/user/Downloads/242.exe&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;I'm thinking about downloading and  installing the &lt;a href=”http://www.champman0102.co.uk/forum/showthread.php?t=1157”&gt;Tapanified March 2009 Patch&lt;/a&gt;, which includes the current players (to start the season at 2008 instead of 2001). The game on my desktop computer also has this patch. It should enable me to use the other savegames, maybe save them to a server so both games can access them.&lt;br /&gt;&lt;br /&gt;What is necessary is a no cd patch. I downloaded the file ppfcm68.rar from &lt;a herf=”http://m0001.gamecopyworld.com/games/pc_championship_manager_0102.shtml”&gt;gamecopyworld&lt;/a&gt;. Unformtunately .rar was the only choice, so I extracted the file on my Windows desktop computer and rename the old .exe files and replaced them with the patched ones.&lt;br /&gt;&lt;br /&gt;You can now play the game. Unfortunately you can't alt-tab in and out of the game, it will lock up. Windowed mode (cm0102.exe -windowed) also didn't help. So I'll play the game without multitasking. You can get the Linpus taskbar out of the screen by clicking on the arrow in the bottom left of the screen, the left of the taskbar. You'll have a full screen game then.&lt;br /&gt;You can play the game:&lt;br /&gt;&lt;code&gt;sudo wine ~/.wine/drive_c/Program\ Files/Championship\ Manager\ 01-02/cm0102.exe -nosound&lt;/code&gt;&lt;br /&gt;I disabled the sound, I guess you will too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-6825215648907079845?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/6825215648907079845/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/08/how-to-play-championship-manager-0102.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/6825215648907079845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/6825215648907079845'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/08/how-to-play-championship-manager-0102.html' title='How to play Championship Manager 01/02 on Linpus Lite'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-4379508049792473297</id><published>2009-08-12T20:29:00.003+02:00</published><updated>2009-08-12T20:58:07.075+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus'/><category scheme='http://www.blogger.com/atom/ns#' term='ISO file'/><category scheme='http://www.blogger.com/atom/ns#' term='ISO'/><category scheme='http://www.blogger.com/atom/ns#' term='mount ISO'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus lite'/><title type='text'>How to mount iso files in Linpus Lite, a script</title><content type='html'>&lt;a href="http://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html"&gt;This page&lt;/a&gt; showed me it is really simple to mount an ISO image in Linux, just type in the following line.&lt;br /&gt;&lt;code&gt;$ sudo mount -o loop &amp;lt;iso-file&amp;gt;&lt;/code&gt;&lt;br /&gt;Of course, the blog adds some code around it to create a new directory and such.&lt;br /&gt;&lt;br /&gt;I decided to use the mount call and create a script, for my -and maybe your- convenience. First, I'll give the script, then I'll explain, in case you're interested.&lt;br /&gt;&lt;code&gt;#!/bin/bash&lt;br /&gt;FILENAME=$1&lt;br /&gt;&lt;br /&gt;if ! [ -f $FILENAME ]; then&lt;br /&gt;  echo "ISO file does not exist, exiting."&lt;br /&gt;  exit&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ $# != 1 ]; then&lt;br /&gt;  echo "No ISO file given, exiting."&lt;br /&gt;  exit&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if ! [ -d /mnt/iso/ ]; then&lt;br /&gt;  sudo mkdir -p /mnt/iso/&lt;br /&gt;  echo "/mnt/iso/ did not exist, created."&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [[ $(mount | grep -c /mnt/iso/) -ge 1 ]]&lt;br /&gt;then&lt;br /&gt;  sudo umount /mnt/iso/&lt;br /&gt;  echo "/mnt/iso/ was already mounted, unmounted."&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;sudo mount -o loop $FILENAME /mnt/iso/&lt;br /&gt;echo "$FILENAME is now mounted on /mnt/iso/"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;A script always starts with #!, this script uses /bin/bash.&lt;br /&gt;The location and name of the iso file the user is required to give is begin remembered in a variable, FILENAME.&lt;br /&gt;&lt;br /&gt;The script starts with two tests. Is a file given and does the given file exist. If the tests (or one of the tests) fail, the program exits.&lt;br /&gt;&lt;br /&gt;Then the mountpount is being checked. The script mounts the iso by default at /mnt/iso/. If the directory doesn't exist, it's created.&lt;br /&gt;&lt;br /&gt;Next we have the block which checks if there's already a mount active on /mnt/iso/. If so, it is being unmounted.&lt;br /&gt;&lt;br /&gt;Now we're finally ready to mount the iso file. A message is printed the mount was successful.&lt;br /&gt;&lt;br /&gt;You can place the script in your homedir, for example. Don't forget to make it executable by (I called the file 'mountiso')&lt;br /&gt;&lt;code&gt;$ chmod 755 mountiso&lt;/code&gt;&lt;br /&gt;I placed an iso on a usb stick, which mounted as /media/UDISK/ (the name of the usb stick was UDISK, don't ask me why), and mounted it with the command&lt;br /&gt;&lt;code&gt;$ ./mountiso /media/UDISK/iso/CM0102.iso&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-4379508049792473297?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/4379508049792473297/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/08/how-to-mount-iso-files-in-linpus-lite.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4379508049792473297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4379508049792473297'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/08/how-to-mount-iso-files-in-linpus-lite.html' title='How to mount iso files in Linpus Lite, a script'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-4405780903323456836</id><published>2009-07-28T16:09:00.008+02:00</published><updated>2009-07-29T08:51:20.693+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='thunar'/><category scheme='http://www.blogger.com/atom/ns#' term='share'/><category scheme='http://www.blogger.com/atom/ns#' term='windows share'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='smb'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus lite'/><title type='text'>Samba shares in Thunar (file manager of Linpus Lite)</title><content type='html'>Wow, I just found &lt;a href="http://www.aspireoneuser.com/forum/viewtopic.php?f=5&amp;amp;t=5505"&gt;this very handy forum&lt;/a&gt; posting explaining how to mount a Windows (or Samba) share on Linpus. I don't know if Linpus has been updated, because earlier I wasn't able to let Thunar (the default file manager) open smb shares.&lt;br /&gt;&lt;br /&gt;I will be using the words Samba or smb because I have my shares on a Linux computer.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Part 1: create a script which will mount the samba share&lt;/h3&gt;&lt;br /&gt;First of all, create a directory in /mnt/. For example /mnt/windows, /mnt/samba or /mnt/&amp;lt;servername&amp;gt;&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo mkdir /mnt/samba&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now, create a new file called /root/samba-share.sh with the following content&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;#!/bin/bash&lt;br /&gt;/bin/df -k | /bin/grep /mnt/samba &amp;gt; /dev/null&lt;br /&gt;if [ $? != 0 ]; then&lt;br /&gt;    sudo /sbin/mount.cifs //&amp;lt;server&amp;gt;/&amp;lt;share&amp;gt; /mnt/samba -o user=&amp;lt;user&amp;gt;%&amp;lt;password&amp;gt;&lt;br /&gt;fi&lt;br /&gt;/usr/bin/launch-thunar.sh /mnt/samba&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You will have to insert your own servername (or ip address), share, username and password. If your server allow anonymous logins, you can replace "user=&amp;lt;user&amp;gt; password=&amp;lt;password&amp;gt;" by "guest".&lt;br /&gt;Let's go through the script. The first line checks if the share is already mounted. If so, the mounting by mount.cifs is skipped.&lt;br /&gt;Finally the graphical file manager Thunar is opened at your samba share.&lt;br /&gt;&lt;br /&gt;You will have to make this file executable with the command&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo chmod 755 /root/samba-share.sh&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Part 2: create a desktop item and show it in the interface&lt;/h3&gt;&lt;br /&gt;We will create a file called /usr/share/applications/sambashare.desktop&lt;br /&gt;In this directory all desktop items are placed. These items are used by the default interface.&lt;br /&gt;In this file we'll put&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;    [Desktop Entry]&lt;br /&gt;    Name=My Samba Share&lt;br /&gt;    Comment=Files shared on Samba server&lt;br /&gt;    Exec=/root/samba-share.sh&lt;br /&gt;    Icon=mydownload.png&lt;br /&gt;    Terminal=0&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now, just add this desktop item to the files menu. Open the file &lt;code&gt;/home/user/.config/xfce4/desktop/group-app.xml&lt;/code&gt; and add the following line to the group with id=8 (search for &amp;lt;id&amp;gt;8&amp;lt;/id&amp;gt;).&lt;br /&gt;&lt;code&gt;    &amp;lt;app sequence="6"&amp;gt;/usr/share/applications/sambashare.desktop&amp;lt;/app&amp;gt;&lt;/code&gt;&lt;br /&gt;This will have added an icon the the files menu. A reboot is needed to show it, though.&lt;br /&gt;&lt;br /&gt;Clicking the icon will open Thunar at the samba share.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-4405780903323456836?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/4405780903323456836/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/samba-shares-in-thunar.html#comment-form' title='1 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4405780903323456836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/4405780903323456836'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/samba-shares-in-thunar.html' title='Samba shares in Thunar (file manager of Linpus Lite)'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-2422613830709744564</id><published>2009-07-27T11:10:00.003+02:00</published><updated>2009-07-27T11:34:01.210+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Google Maps Api'/><category scheme='http://www.blogger.com/atom/ns#' term='MarkerClusterer'/><category scheme='http://www.blogger.com/atom/ns#' term='Google Maps'/><title type='text'>Too many markers in Google Maps</title><content type='html'>When creating an application with the &lt;a href="http://code.google.com/apis/maps/"&gt;Google Maps Api&lt;/a&gt; I, as many, stumbled upon the problem of having too many markers on a maps. In some cases over 1000. On the web there are some good solutions.&lt;br /&gt;&lt;br /&gt;Here's &lt;a href="http://www.svennerberg.com/2009/01/handling-large-amounts-of-markers-in-google-maps/"&gt;&lt;/a&gt;&lt;a href="http://www.svennerberg.com/2009/01/handling-large-amounts-of-markers-in-google-maps/"&gt;a blog&lt;/a&gt; with some solutions. I decided to try MarkerClusterer, which was added later to the article. The screenshots look good and it should work fine for my project.&lt;br /&gt;&lt;br /&gt;Here's &lt;a href="http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/docs/reference.html"&gt;a blog of the creator of MarkerClusterer&lt;/a&gt;. It describes the use briefly.&lt;br /&gt;&lt;br /&gt;A real good example of simple use, excellent to start out with, is &lt;a href="http://http://nandokakimoto.wordpress.com/2009/04/26/google-maps-marker-cluster/"&gt;over here&lt;/a&gt;. It shows the url of the script to include and how to display a bunch of markers on the map.&lt;br /&gt;&lt;br /&gt;When you're somehow familiar with Google Maps and the MarkerClusterer, here's a good &lt;a href="http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/advanced_example.html"&gt;advanced example&lt;/a&gt;. The source code describes how to use the advanced setting, for example how to show your own markers instead of the colored circles that are standard for MarkerClusterer.&lt;br /&gt;&lt;br /&gt;With these links, you should be able to create some nice applications.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-2422613830709744564?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/2422613830709744564/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/too-many-markers-in-google-maps.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/2422613830709744564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/2422613830709744564'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/too-many-markers-in-google-maps.html' title='Too many markers in Google Maps'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-5322787200395776983</id><published>2009-07-24T09:09:00.003+02:00</published><updated>2009-07-24T10:38:49.739+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='acer aspire one'/><category scheme='http://www.blogger.com/atom/ns#' term='aspire one'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox3'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus lite'/><title type='text'>Install FireFox3 on the Acer Aspire One</title><content type='html'>Also, a good thing to do with your Aspire One is to install Firefox 3. Firefox 2 is installed by default, but since several Linpus programmes (like email) depend on Firefox 2 libraries, you cannot just upgrade 2 to 3.&lt;br /&gt;I found a very good &lt;a href="http://macles.blogspot.com/2008/07/installing-firefox-3-on-acer-aspire-one.html"&gt;tutorial&lt;/a&gt; you can use, or you can follow my summary of the tutorial.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mozilla.com/en-US/firefox/all.html#languages"&gt;On the Firefox site&lt;/a&gt; you can choose the newest Firefox in your favorite language. Make sure you choose a download with &lt;span style="font-style: italic;"&gt;os=linux&lt;/span&gt;. In this example, I'll use version 3.5.1 in US English. I downloaded via the link&lt;span style="font-family:courier new;"&gt; http://www.mozilla.com/products/download.html?product=firefox-3.5.1&amp;amp;os=linux&amp;amp;lang=en-US&lt;/span&gt; and put it in /tmp.&lt;br /&gt;&lt;br /&gt;Now extract the file as superuser to the directory /opt.&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo tar -jxf firefox-3.5.1.tar.bz2 --directory /opt&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Set the default user as owner of all the files with&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo chown user -R /opt/firefox&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;I choose to rename the old startup script /usr/bin/firefox to firefox2. Then I set a symbolic link from /usr/bin/firefox to the newly installed one.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo mv /usr/bin/firefox /usr/bin/firefox2&lt;/span&gt;&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo ln -fs /opt/firefox/firefox /usr/bin/firefox&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The next step links all plug-ins (not to be confused with extensions) to Firefox 3.&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo ln -s /usr/lib/mozilla/plugins/* /opt/firefox/plugins&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Launch the profile manager using the command below. Create a new profile, name it anything you like and select it. If you want to keep your bookmarks export them via the bookmark manager first. You can then delete the old default profile.&lt;br /&gt;The old profile has some things disabled, including the "check for updates".&lt;br /&gt;&lt;code&gt;firefox -profilemanager -no-remote&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now, I'm going to change the connect menu. First, copy the old .desktop file to a new one. I want to keep the old one, just in case.&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo cp /usr/share/applications/&lt;/code&gt;&lt;code&gt;&lt;span style="font-family:courier new;"&gt;linpus-web.desktop /usr/share/applications/firefox3.desktop&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Edit the linpus-web.desktop file with your favorite editor. Search the line with "Exec=firefox" and edit it to "Exec=firefox2".&lt;br /&gt;In the file firefox3.desktop, replace the old icon with a new one.&lt;br /&gt;&lt;code style="font-family: courier new;"&gt;sudo sed '/Icon/ s/acs_//' -i /usr/share/applications/firefox3.desktop&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now, edit the menu. Edit the file ~/.config/xfce4/desktop/group-app.xml.&lt;br /&gt;Optional: I copied the line &amp;lt;app sequence="0"&amp;gt;/usr/share/applications/linpus-web.desktop&amp;lt;/app&amp;gt; to the bottom of the block, replacing 0 by 11 (my last menuitem was 10).&lt;br /&gt;We want to have the new FireFox icon on the first spot (replacing the old browser). Edit the line &amp;lt;app sequence="0"&amp;gt;/usr/share/applications/linpus-web.desktop&amp;lt;/app&amp;gt; and replace "linpus-web.desktop" by "firefox3.desktop".&lt;br /&gt;&lt;br /&gt;Now, after a reboot of the system, it should work. You'll have a nice Firefox logo in the connect menu, which will open Firefox3.&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-5322787200395776983?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/5322787200395776983/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/install-firefox3-on-acer-aspire-one.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/5322787200395776983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/5322787200395776983'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/install-firefox3-on-acer-aspire-one.html' title='Install FireFox3 on the Acer Aspire One'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-2637215620531715691</id><published>2009-07-24T09:02:00.002+02:00</published><updated>2009-07-24T09:08:51.143+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tour'/><category scheme='http://www.blogger.com/atom/ns#' term='Popmundo'/><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='travel route'/><category scheme='http://www.blogger.com/atom/ns#' term='planner'/><title type='text'>Popmundo tools</title><content type='html'>For players of the online game &lt;a href="http://www.popmundo.com/"&gt;Popmundo&lt;br /&gt;&lt;/a&gt;, there are a few tools. Two of them are a &lt;a href="http://www.xs4all.nl/~jjokkema/popmundo/PopmundoGraph.html"&gt;travel route planner&lt;/a&gt; (to plan the quickest route between two Popmundo cities) and a &lt;a href="http://www.xs4all.nl/~jjokkema/popmundo/TourPage.html"&gt;tour planner&lt;/a&gt;.&lt;br /&gt;I find them quite useful.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-2637215620531715691?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/2637215620531715691/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/popmundo-tools.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/2637215620531715691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/2637215620531715691'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/popmundo-tools.html' title='Popmundo tools'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-2722045229759380261</id><published>2009-07-23T15:13:00.005+02:00</published><updated>2009-07-24T10:39:16.602+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='acer aspire one'/><category scheme='http://www.blogger.com/atom/ns#' term='irc'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='xchat'/><category scheme='http://www.blogger.com/atom/ns#' term='linpus lite'/><title type='text'>How to install software in Linpus Lite on the Acer Aspire One</title><content type='html'>I wanted to install an irc-client on my AA1. I decided xchat was an ok option. I will post a step by step installation.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;First open a terminal screen. This can be done with &lt;span style="font-family:courier new;"&gt;Alt-F2&lt;/span&gt; and run program &lt;span style="font-family:courier new;"&gt;xterm&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Use the software package manager yum to install xchat. Yum is installed with Linpus. On the command line, type &lt;span style="font-family:courier new;"&gt;yum install xchat&lt;/span&gt; to install.&lt;/li&gt;&lt;li&gt;Now the program is installed, but it's nice to have an icon in the connect-menu. The install made a file named &lt;span style="font-family:courier new;"&gt;/usr/share/applications/xchat.desktop&lt;/span&gt; with a desktop entry, containing links to an icon and the executable. This file we want to present to the menu.&lt;/li&gt;&lt;li&gt;The menu is located in &lt;span style="font-family:courier new;"&gt;/home/user/.config/xfce4/desktop/group-app.xml&lt;/span&gt;, an xml file.  Now look for the group where the first app is &amp;lt;app sequence="0"&amp;gt;/usr/share/applications/linpus-web.desktop&amp;lt;/app&amp;gt;. You can put the icon at the end, by adding the line &lt;span style="font-family:courier new;"&gt;&amp;lt;app sequence="9"&amp;gt;/usr/share/applications/xchat.desktop&amp;lt;/app&amp;gt;&lt;/span&gt; at the end of the apps, but I preferred to give it sequence=2 and give the other sequences an increase of 1, so xchat is displayed on the home screen.&lt;/li&gt;&lt;/ol&gt;Well, this installed xchat for me. In this way, you should be able to install most of the programmes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-2722045229759380261?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/2722045229759380261/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/how-to-install-software-in-linpus-lite.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/2722045229759380261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/2722045229759380261'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/how-to-install-software-in-linpus-lite.html' title='How to install software in Linpus Lite on the Acer Aspire One'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4691234901819948366.post-3582077839542660668</id><published>2009-07-23T15:10:00.002+02:00</published><updated>2009-07-23T15:13:25.756+02:00</updated><title type='text'>First post!</title><content type='html'>&lt;span&gt;I reinstalled my Acer Aspire One with Linpus Lite recently. I want to share my tips and tricks I found on the internet to help others, and for myself, in case I need it some other time. For example, how to install software, how to add memory, etc.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Sometimes, I won't suppress the urge to post other useful or even useless stuff.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4691234901819948366-3582077839542660668?l=usefulanduselessstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulanduselessstuff.blogspot.com/feeds/3582077839542660668/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/first-post.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3582077839542660668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4691234901819948366/posts/default/3582077839542660668'/><link rel='alternate' type='text/html' href='http://usefulanduselessstuff.blogspot.com/2009/07/first-post.html' title='First post!'/><author><name>Sjeed</name><uri>http://www.blogger.com/profile/14306365897455315843</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
