Android

Review: SparkleShare.

SparkleShare icon

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.

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...

Android is Magic!

Mobil var en mobiltidning som jag läste väldigt mycket när jag gick i högstadiet. Jag var då inbiten mobilnörd och satt hemma och ritade på mina egna mobiler och vad de skulle ha för funktioner.

Idag har det faktiskt kommit så långt som jag då tänkte på. Video, bättre webb, stor fet touch färgskärm osv.

Jag är ofta väldigt kräsen när det gäller tekniska saker. Som en laptop måste ha specifika egenskaper och hårdvara för att jag ska bli nöjd (se relaterat nedan) och mobilen likaså.

En mobil som jag verligen vill ha är HTC's nya "Magic". Den har allt jag vill ha. Verkligen - allt!

  • Linux på mobilen - Android.
  • Standardminne - miniSD.
  • Stor och fet touchskärm i färg.
  • GPS + Google Maps
  • WLAN
  • Bluetooth v.2.0 och med steroljud.
  • Accelerometer.
  • Synkat med min Gmail (och övriga google docs).
  • En liten kamera för festbilder när den stora inte är med.

Mobil har nu iallfall testat den nya HTC Magic och det är verkligen den mobilen som jag ska ha!

Länkar:

Sidor