2011. november 1., kedd

Multiple DropBox accounts for one user on Ubuntu

I like the DropBox, but I have separate personal and work accounts. The old trick does not work any more, but after some tweaking I was able to set up two accounts in KDE/Ubuntu. How it works: for a secondary DropBox account, a "fake" home directory is needed for a "fake" user (-> it is not needed to create new users on the system). Here are the (not so exact) steps:

REPLACE the "USER_NAME" to your own user name in Ubuntu in the commands!!

(0. Create two DropBox accounts.)
1. Install the DropBox client on Ubuntu, start and setup an account.
2. Disable the automatic start in the Dropbox settings and close the sync client from the system tray.
3. Create a new "fake" home directory for your DropBox account:
sudo mkdir /home/USER_NAME-dropbox
4. Give your permissions to the directory:
sudo chown USER_NAME:USER_NAME /home/USER_NAME-dropbox
5. Copy the ~/.dropbox-dist to the new "fake" home directory:
cp ~/.dropbox-dist /home/USER_NAME-dropbox
6. Move the current DropBox user settings to the "fake" home dir:
mv ~/.dropbox /home/USER_NAME-dropbox
7. Create symlinks to the .kde and .config directories:
ln -s /home/USER_NAME/.config /home/USER_NAME-dropbox/.config
ln -s /home/USER_NAME/.kde /home/USER_NAME-dropbox/.kde

9. Start the Dropbox client again, setup the secondary account and disable the automatic start in the settings again.
10. Create a bash script somewhere to start two DropBox clients (don't forget to add executable permission!):
# First client
~/.dropbox-dist/dropboxd 2> /dev/null &
# Secondary client
USER="$USER-dropbox"
HOME="/home/$USER"
$HOME/.dropbox-dist/dropboxd 2> /dev/null &
10. In KDE: Go to System Settings/Startup and Shutdown. In the Autostart menu, add the freshly created bash script to start the client on computer startup.
(11. It is a good practice to change the icon colors in one of the ".dropbox-dist/icons/hicolor/16x16" directories to distinguish the clients in the system tray.)

Probably, there are nicer ways, but it works for me. Using the same principles, any number of clients can be run under the same user account.

2011. szeptember 11., vasárnap

Japán cseresznyefa

Ezt a japán cseresznyefát (Prunus Serrulata "Kiku-Shidare-Sakura") ültettem annak a lyuknak a helyére, amit a Zsuzsa felesleges fakivágása miatt kellett helyrehozni:


2011. július 2., szombat

A Nagy Ho-ho-ho Horgász újra akcióban

Hosszú hallgatás után, ma újra hadat üzentem a halaknak, miután évekig sejlettek fel az emlékek az hajnali horgászatokrúl apámmal. Rövid idő állt rendelkezésemre, csak másfél óra, viszont egy öbölben nagyon jól kaptak a halak a nyári félig napos-árnyékos időben. Kisebb és nagyobb halak is akadtak az úszós szerkómra. A botomat is csak most bontottam ki a csomagolásából és nagyon jó kis cucc, pedig olcsó volt, Lidl rulez!

A fenti képek már tálalásnál készültek, miután otthon a keszegeket kibeleztem és paprikás lisztben kisütöttem.



2011. június 20., hétfő

New technical demo (turn over)

I am happy to produce the first demo of the development version of my new AI for AIBO.

Here are some videos:

Demo video:



Behind the scenes video:



More information

2011. április 25., hétfő

Hóvirág

Magyarországon már régen tombol a tavasz, de itt még csak most jött el, úgyhogy a tavaly ültetett hóvirágaim is most kezdték el kidugni a buksijukat a föld alól virágbontással:



2010. december 19., vasárnap

Porting URBI 2.x for AIBO

I have not been written any blog entry quite long time ago. My research project, AiBO+, was not dead, but I worked hard to update the URBI 1.5 to a 2.x version. The work is not done yet, but I won 3rd price on the Gostai Open Source Contest 2010 with this subproject.

I have performance problems with Urbi 2 on Aibo; the more extensive Urbi script usage in the core of the Urbi 2 seems to slow down everything to unusable. Their plans are to move more and more scripts instead of native implementation, but it kills the performance for embedded robot systems like Aibo. If they will re-implement some performance critical parts in native C++, then the upgrade will be feasible for Aibo.

So was it a waste of time for me to work on the Urbi 2 port? No, I have great achievements like upgrading the Aibo toolchain to gcc 4.x, aggressive compiler optimisations for final binary programs for Aibo and reimplemented linking tools in Open-R. These advances push out almost everything from the RM-7000 CPU in ERS-7. Many times have been spent on these tasks. A great thing would be to upgrade the toolchain to gcc 4.4.x or later to have the MIPS specific PLT optimisations, which would boost the performance a bit more and reduce the final binary size, but I think this task is almost impossible to do without any help from Sony. I have not got any information for my current efforts. I did everything on my own and the work was hard regarding that Aibo does not have a Unix-like system, but a proprietary black-box.

The future is to re-implement some low-level functions to replace the Urbi 1.5 completely and start to implement locomotion functions from zero. I have not found too much reusable open-source software for this, although I will use, if there is something useful. Aibo joints have not been moved since half-year ago, so I am very keen to implement these functions. Aibo movements are hard-coded in the official Sony Mind software and in Urbi, so it will be very interesting to implement such movements affected by the forces in the joints and the environment objects.

Now, the fetching of the sensor data, images are done and I am able to ping my native AiBO+ server on the robot. An other cool thing that the WiFi LED shows if the AiBO+ client is connected to the robot and the LEDs on the back of the robot show the battery status. My general plan with the client-server architecture changed a bit and I will implement many functions on the robot, so if there is no connection to a computer client, only some heavy function will not be available, but the locomotion and other lower level function will work.

Let's see the future!

2010. június 5., szombat

A kertépítés eredménye

Sok hétnyi megfeszített munka után az elmúlt héten feltettem az i-re a pontot a kertben, és csináltam egy bambuszcsobogót. A csobogó mögött egy japán juhar (Acer Palmatum Garnet) lett ültetve, reméljük, hogy megéli a következő évet. Nem valami életerős példányt küldtek a kertészetből, ahonnan neten vettem, de ez lehet, hogy alapból ilyen alfaj. Meglátjuk:



Itt van még néhány kép a többi részről:


Ez az elülső kertben ültetett japán juhar (Acer Palmatum Atropurpurea).


Ez egy kicsit másik nézet ugyanarról a részről. A kép közepefelé egy nagy bokor volt, amit vagy 2-3 hete műtöttem ki, egy egészestés kaland keretében.


A hátsó kert nagyobb látószögből.


Ez megint a hátsó kert egy kicsit más szögből.


A hátsó kert mögötti sövény régen a civilizáció határa volt. Mögötte az évek során felhalmozódott dzsuva. Elég sok erőfeszítésbe telt, de most már kezd normálisan kinézni.


A nagy meténgek (Vinca Major) kezdeti telepei hátul. Meglátjuk, mennyi marad meg jövőre.


Hátul ki lehet menni egy buszmegálló felé, és az esős időben sáros, fűmentes út eléggé kényelmetlen volt. Most egy ad-hoc jelleggel kialakított kavicsos út vezet már hátrafelé.


A kert egyik másik üde színfoltja egy mini sziklakert. A sziklák már adottak voltak, csak a koncepciót kellett közéjük megalkotni.

Egyenlőre ennyi, és inkább nem mondom, hogy ezeket kialakítani milyen hosszú, és drága volt, mert mindenki szívbajt kap. A kert Zsuzsa és az én közös munkánk. :)