Android

Sponsrad Video: Mer Star Wars-kul på denna dag.

Jag fick nys om att det nu finns en applikation för smartphones för att läsa Facebook-inlägg och Twitter-feeds Star Wars-style - alltså som introsekvensen. Passar väl bra idag, inte sant?

Det är ett extra knep för att knipa fler köpare för Kinect Star Wars. För att vara ärlig så är jag lite ledsen att samma möjligheter inte finns för mitt PS3. Inte "native" iallfall. Det finns ju de som skaffat sig en Kinect, kopplat in den i en Linux-powered dator och skickat dess signaler till USB-porten på ett PS3.

För visst skulle det vara gött att få leka med force push och dyl. igenom att faktiskt röra på sig, hellre än att pilla med en handkontroll.

Sponsrad av Microsoft.

Review: SparkleShare.

I have a lot of images, code projects, documents, game saves and such, and I want to take good care of them, especially my images - they are the most valuable possession I've got. That's why I need a simple and safe backup solution. Earlier I just had an external harddrive, but thats not simple, nor have the security that I need. That's why I used Dropbox for a while. It was rather cheap and had everything that I needed, except encrypted transfer and I didn't know what happened with them across the Atlantic Ocean. So I started to look for alternatives - safe, secure, encrypted and I also wanted them to be Open Source so that I could have it running on my own server. GNU/Linux support and a client for Android was also needed.

I found SparkleShare that seemed to be a great solution and had pretty much all that I needed: Open Source, using SSH, rather simple to set up on my own server, webui and an Android client. I started to use it and have been using it since late september, 2011. But...

SparkleShare uses Git to store files and keep a history of changes made to my files. Git is created by the same author as of the Linux kernel, Linus Torvald, and were created for the development of the Linux kernel. Keep revision history, a linear development with the possibility to maintain paralell development branches - version control. For this, it's perfect! I use Git for my project nowdays (I used Bazaar before). The company I work for has started to use it, too.

That Git is created to development of software does, however, not make it capable as storing files, in my opinion. Now I have 60GB+ of images from the past ten year of my life - that is not optimal for Git and it's version control. For the everyday user that want's a Dropbox alternative, this is really not the best solution. Perhaps for a person writing his/her Ph D, it would be great. But with a lot of files, which itself creates much data and uses a lot of storage, you dont need to have a history larger then the files/directory itself.

Installation
Installing SparkleShare (server) is pretty straight forward (I'll post a guide soon). Just install SSH, Git and a few other packages on your server, and you're good to go. This is a real plus. Also the client is also very easy to install. It comes with packages for most of the well used GNU/Linux distros, and also Mac OS X - not Windows yet. It's also to build from source. You just install the client, copy the SSH key to your server and start a guide to add your share.

But I'd say this is too hard for new users. Well, if you're already running your own server, I suppose it's not that hard, but using its own SSH keys - without a password - is not something I like to do. But that can also be taken care of, altough it also might be a little to hard for the faint of heart.

Installing the WebUI - that is necessary for the Android client - is a little harder. It has a strict dependancy of package version, which I've had som issues with. Once up and running, it is incredibly easy to add your Android device, just by scanning a QR code.
The Android client is somewhat a different project - the WebUI too - then SparkleShare. It works to download your stored files, not anything more. You can't upload any files, which I very much would like. Perhaps in an later version.

Usage
Once installed and up and running, SparkleShare takes care of your files. By using Git the files are compressed before uploaded, and the transer is safe by it's usage of SSH. But I'm not satisfied. It's hard to upload a lot of files. I wanted to upload all of my 60GB+ images at once, but SparkleShare didn't seem understand that I added the files. Instead I had to remove them and upload them seperately. It worked, but the compression takes a long time, and if the connection between server and client gets broken during upload, the compression has to be restarted. Also, as I was saying, having a history copy of the files on the client, takes of a LOT of storage space.
Smaller files, like my documents is no problem - of course since the're smaller.
With the Nautilus addon, it is easy to get back an old version of an edited file just by right clicking on it.

SparkleShare is just a indicator applet, which is simple and works great. Altough I would like to see some info about the sync, like transfer speed, which files, just like the Dropbox indicator. Also I miss sync over LAN, bandwith limit and being able to pause specific shares - ie. so that I can start SparkleShare to only sync my documents while in school, when I don't want to use up my battery and all of my CPU to compress my images.

Besides that, SparkleShare runs fine in the bakground. If I were to already have uploaded all of my images, the compression wouldn't take so much time, nor would it be as big of a problem, but the local Git history copy, and Git itself, makes it a little less of "fun".

Conclusion
SparkleShare is great for easy sync of small files, not for bigger ones. It's also great if you're developing some small software, which you don't really use Git for yet, but still want's the version controll and being able to upload it - automatically - to GitHub or perhaps your own Git server.

I would say that SparkleShare is not yet ready for daily use and to drop out of you Dropbox use, or alternative.

Git is simply not the best way to get people from the closed, you-dont-know-where-or-what-theyre-doing-with-your-files, clients like Dropbox, and start to use free and open source ones. For me, version controll is not as important as a simple and secure backup solution. I'd say SparkleShare using Rsync would be a better way of doing this.

Perhaps Rsync could be used together with a simple script that saves a deleted file for a while, before it's completely deleted. And perhaps having preferences to set which files/dirs needs to have version control.

I'm sorry to say that I'm leaving SparkleShare to find, or develop, a new backup solution not using Git.

Skicka SMS med hjälp av GMail eller Gtalk.

Jag har tidigare skrivit om hur man skulle kunna använda sin dator för att skicka SMS via sin Android-mobil. Då jag inte riktigt uppskattade användargränssnittet i det förra programmet, lade jag det hela åt sidan, samtidigt som jag funderade på att skriva en egen applikation för ändamålet.

Nu har utvecklaren bakom ROM Manager skrivit en applikation som använder Gmail eller Gtalk för att kunna skicka och ta emot SMS via sin Android-mobil - DesktopSMS.

Applikationen är fortfarande i betastadiet, men fungerar bra.

Idén är smart, men jag stör mig lite på att när jag då får ett SMS så får jag både mail och chattmeddelande till både dator och mobil - vilket gör att jag får tre notifieringar.

Mail har en liten latens och när man får det första SMSet ifrån en kontakt så måste man autentisera denne.

EDIT: Man kan låt DesktopSMS att synka med ens kontakter, vilket gör att man slipper autentisera varje nummer som SMS kommer ifrån. Låter man bara meddelandena skickas över Gtalk och dessutom är inloggad på Gtalk via en annan klient så får man bara en notifiering vid SMS - och det är SMSet.

Fix MMS in CyanogenMod Rom 7.x.

When I flashed my HTC Desire HD to CyanogenMod 7, I lost the feature to both send and recive MMS. After some looking around, poking here and there, I finally solved it rather easy. The issue was that the URL for the MMS settings in the Access point names (APN).

  1. Go to Settings -> Wireless & Networks -> Mobile Networks -> Access Point Names.
  2. See if the MMSC, MMS proxy and MMS port is right by comparing them with a list of settings, based on your operator.
    Sweden: http://www.swedroid.se/wiki/index.php?title=APN-inst%C3%A4llningar
    I have only tried this for a Swedish operator, and I haven't a list with the rest of the world, so just google for 'APN list android'.
  3. Change it if somethings wrong and then you're good do go.

 

Example:

3 Sweden
MMSC: http://mms.tre.se
MMS proxy: 172.016.053.011
MMS port: 8799

Skicka och ta emot SMS med datorn ifrån din Android-mobil.

Jag har länge sökt efter ett program, med vars hjälp, jag kan skriva och skicka SMS på datorn via min mobil. Jag har vetat hur man skulle kunna lösa det med hjälp av kommandon till mobilen, men jag kom aldrig till att koda och ville ha det trådlöst.

Nu har ett sådant program kommit: AndroidPC. Jag har ännu inte testat programmet så jag vet inte hur det funkar, utan ville bara tipsa det vidare.

  1. Du behöver klienten för din mobil. Bara att installera.
  2. Och den för datorn du ska använda. Du behöver Java, med.
  3. Konfiguera och kör!

Leker med SMS.

Nu är det lek på gång igen! Ett litet nöje jag ska ha på min resa hem till Göteborg ikväll.

Jag har velat kunna skicka SMS ifrån min dator via min mobil. Alltså att inte behöva använde en tredjepart eller dyl, utan att det går på min mobilkostnad och dessutom kunna ha all tillgång till mina kontakter, tidigare SMS osv, ifrån min mobil.

Efter lite sökande så fann jag ett väldigt intressant alternativ - EasySMS. Det är en liten webbserver som man installerar och kör på sin Androidbaserade mobil och som man sedan använder en vanlig webbläsare för att komma åt. Därigenom sköter man sedan sina meddelanden.

Man kan använda sig av både Wifi, Bluetooth och USB. Dock så har jag bara testat USB, och Wifi lär inte vara några problem alls. Bluetooth kan bli värre i ett GNU/Linux-system, men ska testas senare.

Men nu ska jag se efter om jag inte kan snygga till det och även skapa en liten snyggare mindre webbläsare med hjälp av WebKit och Python. Har redan funnit ett script igenom Acire.

Mer senare.

Flasha din Android i GNU/Linux.

Ordlista:
Recovery ROM/Image - Detta är filen som är en typ av "återställnings ROM". Det är via denna man kan göra backuper, formatera SD-kortet, flasha telefonen mm.
ROM - SJälva "Operativet". Är i princip som en GNU/Linux-dist. Nya funktioner, program och annat kul.
32A/B - Det finns två versioner av telefonmodeller, i form av deras chip. HTC Dream är 32B och det finns också en Google brandad HTC Magic som är 32B. Men har du en telefon som det står HTC och inte Google på (vilket alla i Sverige ska vara) så är det en 32A.

1. Recovery filen.
Ni kan välja lite vad som - det finnas hur många som helst att finna och använda. Men jag rekommenderar denna då den har lite extra funktioner och är vältestat och go.
http://forum.xda-developers.com/showthread.php?t=530492
http://www.cyanogenmod.com/
http://forum.xda-developers.com/showthread.php?t=537204
Välj senaste versionen.

2. ROM.
I detta läge tänkte jag lägga in den senaste versionen (4.2.4) av CyanogenMod. Den är laddad med gosaker, optimisering mm. Dock är den egentligen tänkt för 32B telefoner. För vidare utförande se längre ner.
CyanogenMod: http://forum.xda-developers.com/showthread.php?t=567610
Samling av en massa olika ROMs:http://forum.xda-developers.com/showthread.php?t=534464

3. Installera Android SDK.
Ladda först ner Linux versionen härifrån: http://developer.android.com/sdk/index.html
Packa sedan upp den på valfri plats.
Skaffa ned 'fastboot' och lägg den i 'tools'-mappen i android-sdk mappen som du nyss packade upp.
Finner du här: http://android-dls.com/files/linux/fastboot

4. Aktivera USB debugging på din mobil igenom att gå in i Setttings > Applications > Development och klicka i USB Debugging. Koppla sedan in din mobil till datorn via den tillhörande USB-kabeln.

5. Fastboot.
Välj nu på mobilen att montera filsystemet på datorn. När din sedan har kontakt så kopierar du över de eller den ROM filen du valt till mobilen. Avmontera sedan på både dator och mobil.

Stäng av mobilen och starta upp den igen igenom att hålla in både power-knappen och sänk-knappen.
Nu ska mobilen starta i "fastboot".
Klicka ev. på tillbaka knappen så ska det stå Fastboot USB.

6.Flash!
Börja med att kopiera in den recovery-fil du vill använda till tools mappen i Android SDK-mappen. Öppna sedan en terminal och cd in i 'tools'-mappen i Android SDK-mappen och kör:
$ sudo .fastboot devices
Finner du den där så kör du:
$ sudo ./fastboot boot recovery...img (vad nu din recoveryfil heter)

Nu kommer det att hända grejer på din mobil.

Använda trackpaden för enkel navigering i menyerna.

OBS! Nu är ett bra tillfälle att göra en backup av det du hade på mobilen så att du enkelt kan återställa det när du vill till precis som su hade det innan. När backupen är klar så startar du om och sedan kopierar över filen till din dator ifrån mobilens SD-kort. Går att göra med USB-kabeln. Mobilen måste då dock startas upp som vanligt igen. När du har kopierat över den filen så startar du upp mobilen i fastboot igen, precis som i steg 6 och sen fortsätter framåt.

7. Nu ska vi ta bort ALLT som finns på telefonen. Sista chansen för att spara.
Välj 'Wipe data/factory reset' i listan.

8. Ladda den nya ROMen.
Efter Wipe är klart så scrollar du ner till "Apply sdcard:update.zip". Nu laddas den nya romen in på mobilen,

9. Starta om din mobil.

10. Starta den igen som vanligt. Nu kan det ta ett tag vid första uppstarten, så ta det lugnt. När det väl är igång så ska allt funka som smort ;)
Du kan dock ha USB-kabeln i pluggad och köra:
$ sudo ./adb lolcat
för att se vad som sker på mobilen för tillfället.

Skulle ni under instruktionsdelen, där man får logga in på sitt Gmail-konto, märka att ni inter har internet så är det pga. APN-inställningarna. Hjälp med det finner ni här: http://www.swedroid.se/forum/showthread.php?t=28

Extra tips:
De flesta nya ROMar tillåter att man numera använder SD-kortet för att lagra program smidigare. För detta så krävs det först ett SD-kort (givetvis) och sedan att man har två partitioner på detta. Det måste dessutom vara i ordningen; FAT32 och sen Ext2. Den första partitionen är den som du lagrar alla filer och dyl på, medans den andra kommer att vara den som innehåller dina progam.

Senare CyanogenMod ROMs (4.1.99):
Detta blir nu iallfall ett steg extra.
1. Så måste du ladda ner en orginal ROM av din tillverkare: http://www.androidspin.com/downloads.php?dir=enomther/ROM/&file=HTC_ADP_...
2. Ladda ner Cyanogen ROMen som du vill använda.
Om du nu också har en 32A så behöver du ladda ner patchfilen: http://forum.xda-developers.com/showthread.php?t=568032
3. Lägg över alla två(/tre) filer till ditt SD-kort.
4. Boota up mobilen via fastboot som ovan.
5. Wipe/Restore to factory.
6. Format ext-partitionen (om du har en).
7. Flasha först tillverkare-ROMen.
8. Flasha sen med din valda CyanogenMod ROM.
9. Om du har en 32A så flashar du med porten med.
10. Starta om och du är igång.

Problem:
Skulle du vara klantig nog att ta och flasha din mobil med en 32b ROM (hänt mig) så är det ingen fara. Antingen så flashar du om den med en annan 32a ROM eller nedgraderar till den förra som funkade (då måste du Wipe igen). Det finns även små ROMs som egentligen bara innehåller skillnaderna mellan 32a och 32b ROMarna. Skillnaden är föresten bla. en fil för WLAN. Då följer man instruktionerna för själva flashingen ovan, men när man bootat upp recovery-img så väljer man att flasha mobilen med vald .zip fil, som då är 32a filen. Den ska givetvis lagts på SD-kortet innan detta.

Länkar:
http://www.cyanogenmod.com/
http://code.google.com/p/cyanogen-updater/
http://www.swedroid.se/sa-har-flashar-du-htc-magic

Massa ROMs:
http://forum.xda-developers.com/showthread.php?t=534464
Patch/Port ROMs:
http://forum.xda-developers.com/showthread.php?t=568032

Testar 'Drupal Editor'.

Som så många av er säkert vet så använder jag mig av Drupal för min hemsida. Tyckte att det var en fantastisk lösning och kärlek uppstod. Nu har jag dessvärre vara dålig på att uppdatera min hemsida och tillhörande blogg. Dels för att min trogna laptop börjat bli gammal och krasslig (ny beställd), dels för att jag inte hur som helst velat eller kunnat skriva på mobilen (förens nu!), och dels för att det är mycket plugg och annat här i livet. Nu skriver jag dock faktiskt ifrån just mobilen - något som jag har längat efter. Programmet heter 'Drupal Editor' och finns på Android Market. Funkar helt ypperligt! Imorgon har jag dock ett roligt och intressant ämne att posta. Sussa sött, godnatt.

Share internet over Wifi using HTC Magic.

Note: This guide was based on a HTC Magic with the unoffical Hero ROM, but should be the same thing on an "normal" HTC Magic with the "usual" Cupcake ROM. HTC Dream aka. G1 or DevPhone already has a kernel with Iptables so this guide wont be necassary on that device.

The guide is also meant using a computer installed with Ubuntu, but shouldn't ither be impossible to use with another dist. (or OS). The main thing on the actual computer is support for ad-hoc-networking and able to set proxy-settings.

One other thing is that if ad-hoc was supported out-of-the-box on Android, we wouldn't have to use the Wifi-tethering application.

Set up your Android-phne:

Begin with installing 'Proxoid' from Android Market and Wifi-Tethering from here: http://code.google.com/p/android-wifi-tether/

We need the Wifi Tethering to create a ad-hoc network between the phone and the laptop. Proxoid is a HTTP-Proxyserver, which will handle the actual internet.

Set up your laptop:

  1. Open your Proxysettings. Open 'System>Settings>Networkproxyserver'.
  2. Create a new place and call it whatever you want. Then set it to manual config of proxy and also choose to use the same proxy for every protocoll.
  3. Now set the HTTP-proxyserver to 192.168.2.254 (the default IP for the Wifi-tethering network).

Go online:

  1. Start Wifi-Tethering on your phone.
  2. Connect to your ad-hoc system on your laptop.
  3. Start Proxoid on your phone.

Now you should be online!

Hope that this help - I love it!

EDIT: Since I posted this, I got a few errors and didn't got it to work since I did it like this:

  1. Connect your phone to the computer using the USB-cable. (Debugging mode on!)
  2. Start the proxy and Wifi tether. Then connect to the ad-hoc-network.
  3. You will have to have the Android SDK installed and the "adb"-file in the tools dir. Change dir to this dir.
  4. Run;
    $ sudo ./adb forward tcp:8080 tcp:8080
  5. Open the proxysettings and change it as above, with the phones IP as the SOCKS server.
  6. Now enjoy the connection to internet.

Mobil har testat HTC Magic (G2)

Idag har tidningen Mobil publicerat ett litet test av HTC's Android Mobil G2, eller Magic som den kallas.

Jag har varit kär i den mobilen ända sedan jag såg den första gången och den mobil som jag riktar in mig på - den ska jag ha. Är så jävla trött på den mobilen jag har nu. Samtal bryts, mobilen starar om sig hela jävla tiden osv. Blir verkligen helt tokig.

För de som inte vet så är Android ett Linux-baserat operativsystem för mobilen som har skapats i ett samarbete mellan Google och Open Handset Alliance.

Testet kan läsas här: http://www.mobil.se/ArticlePages/200903/26/20090326170918_MOB423/2009032...

Sidor