Piloting servo motors using Arduino. Update

Hi there, sorry long time not spoken about this.

I am about to be finished with this project. I am awaiting a motor for the camera rotation as my first one’s was alittle flimsy (a rotisserie motor bah). The kit’s all fitted and test runs worked well.

I still need to enable a web interface to pilot the servos and we should be all good to go.

Thanks for reading…

Ipod on Kubuntu 11.04

Suffering with Ipod on Kubuntu? Me too!

This is the receipe to sync an Ipod Nano (second generation) with Kubuntu:

Create a playlist with Amarok

Load playlist into banshee and sync the IPOD

If “0” songs on Ipod after sync:

Check Ipod with gtkpod and save changes…

Hopefully by this time all should be where it should Yell

It does for me.

Can we have Amarok ablility to copy a playlist on an Ipod please?

Kmail migration – for the record

Transfer mail and settings to another computer (or another user account on the same machine)

Solution: The messages are typically in ~/.kde/share/apps/kmail/. For very old installations of KMail, the messages can also be in ~/Mail. Note that KMail uses hidden sub-directories inside that directory, so you need to make sure to copy hidden directories as well.

For settings you will need to copy the following files:

  • ~/.kde/share/config/kmailrc,
  • ~/.kde/share/config/mailtransports, (since KDE 4.0)
  • ~/.kde/share/config/emaildefaults and
  • ~/.kde/share/config/emailidentities .

Your address book is usually stored in ~/.kde/share/apps/kabc/. Calendar data is in ~/.kde/share/apps/korganizer

Be aware that some distributions use ~/.kde4 instead of ~/.kde/ for their KDE configuration data.

From version 4.4 you may have some Akonadi-controlled entries that also need to be kept. Add to the above list –

  • Everthing under ~/.local/share/
  • Everything under ~/.config/akonadi/.
  • ~/.kde/share/config/nepomukserverrc
  • Everything under ~/.kde/share/apps/nepomuk/ (KAddressBook stores contact groups in Nepomuk.)

Piloting servo motors using Arduino.

New project on the rails, a system to control a webcam movement using motors and servos to switch them on and off…

As a reference I have found  here.

Here are the step used to make the servo work, on an (K)ubuntu machine:

  1. Install arduino repository:
    sudo add-apt-repository ppa:arduino-ubuntu-team
  2. Install arduino:
    sudo apt-get install arduino
  3. Start arduino in the command line:
    > arduino
  4. Select the correct port in Tools> Serial Port (tick the box)
  5. Copy/paste the code, compile and upload it
  6. Install pyserial (you may need to install easy_install with sudo apt-get install easy_install* python-setuptools:
    easy_install -U pyserial
  7. cwd to the servo.py path and call python:
    python
    >>>import servo
    >>>servo.move(1,0)
  8. Your servo should move

I will update when I have done more work

* apparently apt-get install python-setuptools is enough, don’t insert “easy install” in the cmdline

Network manager not enabled on Kubuntu 10.04

For some unknown reason, kubuntu network manager caked on me, the way to restore it is to do the following:

sudo service network-manager stop
cd /var/lib/NetworkManager/
sudo rm NetworkManager.state
sudo service network-manager start

After these commands, the network manager was back on. Now why would this be needed? This is the one thing that really gets me to think that Windows might be bloated but it always kind of “works”

New Blog

I have decided to move the Blog from a free host (blogspot) to my own hosted solution, I am not comfortable with someone else looking after my stuff…Wink

In reply to “Why Windows is not yet ready for the Desktop”

In reply to Why Windows is not yet ready for the Desktop

The fundamental argument about Windows vs. Linux will always remain, what I find amazing are the replies to Why Windows is not yet ready for the Desktop

The fundamental argument about Windows vs. Linux will always remain, what I find amazing is the stance taken by non-Linux users in the replies to your “tongue in cheek” post. This is sad, yet not surprising, as Windows is designed for idiots, by extremely intelligent people that make a lot of money from those idiots. So they have the right to be as rude as they can be, after all they paid for the privilege.

More to the point, I think as a both Windows and Linux (Kubuntu 10.04 presently) user, I am able to put a couple of things into perspective of the whole debate, regrettably I am not a Mac user, but I heard that it’s quite good in its own right, (now why would I want to say that MacOS is rubbish by not knowing about it? well, I am not an idiot I suppose).

Yes Windows is friendly and does work well for most of the planet population, there is a driving market behind it called capitalism and B. Gates has always been quite clear about his business model: Why would you want to give your software for free? Although it makes sense if you want to garnish your bottom line, it throws a lot of other ugly things into the picture, I shall no go there.

Yes Linux is friendly and does work pretty well for a minority of the people of this planet, there is a driving market called freedom of choice which does not generate as much money, rather, it brings a different kind of capitalism geared towards “services” and “support”, this is a model which is not really geared to cope with millions of potential idiots that cannot be bothered getting help to a perfectly valid problem (usually generated by themselves), “hit re-install instead”, that solves it.

Historically MS Windows was designed to be open (to clarify: open as “friendly” not open as “hackable”), work on a single PC with a printer connected to it, “Put a PC on every desktop in every home” (Bill Gates sometimes in the 80’s).

For that, Windows was good(ish).

Then the Internet came to the masses, seen as a “fad” by the very same B. Gates. That’s where it went wrong: Windows, by it’s very open nature is extremely bad for the web and thus, changing the engraved habits of millions of users that grew used to this freedom of movement, failed miserably and put Windows in the situation it is today: big, bloated and goodish(ish), think of the (failed) attempts of Internet Explorer to “acquire the web” with it’s non-standard compliant Browser engine, but I digress.

On the other hand, Linux, or Unix, from the very start, had always been designed to “network” and be a closed system that needed to be opened, which makes it a pretty good system to work on the Web as a matter of course, it is not as friendly as Windows and a bit less “idiot proof”, you needed to have a couple of brain cells interacting with each other to work with it, also, reading a lot of manuals were de rigueur, something hard to do and digest for most people.

I like Windows to do non-web stuff and things I cannot do with Linux; I like Linux and it is my OS of choice to do all the rest. Besides Linux is getting better and better; take a mid range piece of kit these days and you’ll find that pretty much everything’s detected and working straight from an install. Windows (7) does that also. Where Windows falls flat is, again, with networking. For example: I have an HP printer located on another Windows XP machine, Win 7 is able to see it but yet cannot seem to be able to install the driver for some weird and (not so) wonderful reasons, whereas (k)Ubuntu not only sees the said printer but installs and readies it without a fuss.

And what is this new attempt to redefine the wheel with Windows 7 new “network sharing”? What’s it called again?

Things I don’t like when I work on Windows:

  • Lack of default middle mouse button paste (my personal pet hate, Yes! I am sure I can customise…)
  • Independent windowing (e.g. does not need to close every subsequent child windows to see the parent)
  • Post install reboots
  • Drivers hell
  • Lack of advanced command Line Interface (however there’s a power shell, but it’s not “true” CLI)
  • Having to install an anti-virus
  • Windows update, (by this I mean I don’t know what Windows’ up to), OK for idiots, not for me, sorry.

Things I don’t like when I work on Linux:

  • Sometimes you need to compile some software sources (dependencies hell), and then it fails miserably which is a big waste of time.
  • Lack of good Games, although I am not a “Gamer”.
  • Vast choices of seemingly identical applications, some of them, frankly a waste of time

Windows Likes:

  • You know if a program will work or not, if you can’t install it, then you cannot use it.
  • Windows 7 seems to be fast and works well (emphasising “seem”)
  • Good Games and lots of them

Linux Likes:

  • No need to worry about dodgy websites.
  • No need to worry about dodgy email attachments
  • Most hardware works nowadays, without “drivers”
  • Plenty of help on-line
  • Safety
  • Need a server? Got old hardware? No budget? Need to keep it legit? Use Linux OS!
  • No DRM

To end this rather long comment, I would say that there is no “good” neither is there any “bad” OS, there’s a choice of OS’es and I wished that the Morons constantly slating one another just got on and the world would be a happier place, although I can understand if some of them are frustrated, after all they’re working on a OS designed for idiots.