Android Failed to Build Eclipse Android Project Fix

[2013-11-02 08:26:51 - SearchViewDemo] Dx
trouble writing output: already prepared
[2013-11-02 08:26:51 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2013-11-02 08:26:51 - SearchViewDemo] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

Well that happend to me as I tried to build my latest project.
Solution was quite simple but... strange.
Just remove all newer Android SDK build-tools (i.e. 19) until the Version 18.1.1 with the Android SDK Manager.
Restart Eclipse. And it will work.

If not, try to add the Support Libraries (Right click on your Android Project in Eclipse, choose Android Tools, Add Support Library)

Issue and solutions found here: https://code.google.com/p/android/issues/detail?id=61710

[RaspPi] OpenWRT Trunk with latest Raspberry Pi 3.10.18+ #585 Kernel - as Image download

THIS POST IS OUTDATED! A NEW IMAGE HAS BEEN POSTED! PLEASE USE THE SEARCH FUNCTION TO FIND THE LATEST VERSION!

As I found out that the old tutorials weren't helpful and either the OpenWRT Trunk OR the Raspberry Pi Kernel broke the build process (you can still build it successfully, but you won't be able to use the RPi after boot!) - I sat down and found an new way. This time I don't let the kernel build by the OpenWRT enviroment, but insert an healthy and prebuilt one by the RPi Team ;)!

You can just download and use the (7zip-ed) image here: rpi_openwrt.7z [ 6.1 MB ]

There are several changes to the normal version:
- opkg list does contain the current stable package list for the OpenWRT RPi port of the latest stable release and will work out of the box (opkg update, opkg install..) Most packages like apache should work out of the box - but kernel moduls could/will probably fail. I won't build an package mirror and won't build packages because of limitied time. Sorry!
- Other than the normal behavior, the RPi does use DHCP to get its IP Adress. To connect for the first time, use nmap to find your RPi in your network. (Then connect via telnet, set an password with passwd and you're good to use SSH finally!)
- The main partition size has been changed from 48 MB to 64 MB - giving you additional space

All the best,

Nico

[Win7] Upgrade Error in Android SDK for Windows

Recently I got an error on trying to upgrade my Android SDK, claming that I would not be able to access an URL. I was looking around the Internet and got the information that I should first upgrade the Eclipse Plugin. OK!

Upgrading AVT:
1. In Eclipse go to Help
2. Install New Software ---> Add
3. inside Add Repository write the Name: ADT and Location: https://dl-ssl.google.com/android/eclipse/
4. after loading you should get Developer Tools and NDK Plugins
5. check both if you want to use the Native Developer Kit (NDK) in the future or check Developer Tool only
6. click Next
7. Finish and Restart Eclipse

Source: http://stackoverflow.com/questions/14869929/update-android-sdk-tool-to-22-0-4latest-version-from-22-0-1

Ok, that got my Plugin to the latest version. But I still could not upgrade to the latest SDK. And thats when I found out that you need to start the SDK Manager as Administrator (right click, run as Administator) - and voilá: Upgrade successfully.

Source: http://stackoverflow.com/questions/4771895/android-sdk-manager-not-installing-components

[Win7] Asus EEEPC 1015PN: Getting Optimus working (again) on Windows 7 Pro

Optimus is a really nice concept: Having installed an low-power Intel GMA3150 next to an "high-end" (compared to the Intel ;)) NVIDIA ION2 with 512 MB RAM (and CUDA!) is very nice - switching between both cards on the fly depending on the application - awesome. But getting it to work can be quite painful. I had to reinstall the drivers on my EEE PC and got it wrong. And now that it is working, I just want to write it down. Just in case, you never know ;)!

1.) Get Windows 7 Pro or better installed
2.) Get all the Updates on your system
3.) Install and start the GraphicsSwitch for Windows 7 from Asus for your EEEPC 1015PN
4.) Choose Optimus Mode and reboot your system.
5.) Install the Intel Driver. Latest and working version is the GMA3150 15.12.75.50.7.2230
You can download that here: https://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=19494&lang=eng&wapkw=gma+3150 After that, reboot!
6.) Install the Nvidia Driver. Latest and working version (for me) is the Verde 301.42 driver. You get that here: http://www.nvidia.com/download/driverResults.aspx/44972/en-us - Could be that a newer version does work to, but thats what I came up with after trying a lot of different versions. After installing, reboot.
7.) You should be done. Right-click on your Desktop, choose NVIDIA Systemsettings. In these settings you can enable two cool options from the "Desktop" menu:
a.) "Start with graphics processor to context menu" - with right click on an Application you can choose to start that program with your highend gpu
b.) "Show Actitivy Symbol in Infobar" - that does show you whenever the GPU is working on something. And if that symbol does not show up some boots later - well, that mostly says that some update broke your Optimus Setup.

But by now, I think you know how to get that up and running again! 🙂

elektor Live 2013

You can find my slides from the elektor Live 2013, Raspberry Pi 101 Workshop here: elektor_RPi_2013_Maas.pdf [ 6,1 MB ]

The handout or "cheat-sheet" can be downloaded here: elektor_RPi_2013_Maas_Cheat_Sheet.pdf [ 0,4 MB ]

... and finally, you find the Sourcecode of the Sample Projects here: elektor_RPi_2013_Maas_Sourcecode.zip [ 0,03 MB ]

Videorecording of the talk can be found here

[Google Music] Or: How do I get all my music online?

I appreciate art and I love music. And I just can't get enough of it: I really love to listen to my collection on "near all devices": On the Netbook while doing work at the University, on the Tablet while sitting on the couch or on my Phone - while running or commuting. That said, there is always the little and persistent problem of synchronizing data.

Google solved that problem by starting "Google Music": You can upload 20.000 Songs from your collection and listen to them - again and again - for free. Awesome!

But before you rush out and start getting your uplink glowing - let me share  two "words of advice":

1.) Clean your collection and tags. Yeah, you saw that comming and you hate it. Everyone does. But it is the only way to get fun out of your collection. Don't try to upload and correct that stuff later. It just won't work and will frustrate you. So do yourself a favor and work out that little errors and problems. Get in some cover pictures, too. MP3tag ( http://www.mp3tag.de/ ) was my tool of choice and works awesome. While using the latest WinAMP to convert Audiofiles from foreign Formats to MP3 - and to look for "a little too strange songs" via the Autotagger - you will get these files ordered in reasonable time.

2.) Your only way to upload your music to Google is by using the Music Manager Tool. It seems straight forward and easy - but it is kind of buggy. Look out for "not uploaded" files by checking files from your HDD against your Google Music Account. Music Manager tends to "overlook" files and can't be pushed to upload certain missing files by adding another folder with the same, missing files. The only thing that is working out is browising to C:\Users\%username%\AppData\Local\Google\MusicManager and deleting the files there [Win 7 Path]. Especially the Database / db File. After restarting Music Manager, the tool will reindex your files and upload missing ones. If "Johnfail" wouldn't had found this Workaround, I would still be sitting ducks. Here is the original post: http://johnfail.wordpress.com/2012/01/12/more-google-music-upload-failure/

Thanks a lot :)!

Other than that - enjoy your music! 🙂