Jul 28, 2014

Useful SMS Commands for Adafruit's Fona

Was playing around with Adafruit's new Fona, a cellphone board for DIY. I wanted to register my T-Mobile SIM card on the T-Mo site so I could check the balance on my pre-paid account.

The T-Mobile sign-up process sends a password SMS to the phone number of the card you're using for the Fona, to be entered on the registration web page. Hmn. I had already sent SMS messages using the nice Adafruit Fona tutorial. But how do I receive an SMS?

Here, LMGTFY: a nice guide found here.

 check if text mode is supported (probably don't need to do this)  
 list SMS modes available for your SIM card  
 +CPMS: ("SM","ME","SM_P","ME_P","MT"),("SM","ME","SM_P","ME_P","MT"),("SM","ME","SM_P","ME_P","MT")  
 at+cpms="sm" <enter>  
 to list #messages received, total msg storage available  
 +CPMS: 2,30,2,30,2,30  
 at+cmgl="all" <enter>  
 to list all message texts received  
 +CMGL: 1,"REC READ","1511","","14/07/27,13:41:39-28"  
 Welcome to T-Mobile! Dial #BAL# to check your balances. Your T-Mobile number is 1925xxxxxxx  
 to read a specific message  
 +CMGR: "REC READ","456","","14/07/28,07:42:58-28"  
 For your security, never share your password. T-Mobile will never contact you to ask for your password. Your My.T-Mobile.com temporary password is xxxxxx  
 to delete a specific SMS message  

Jul 6, 2014

Jul 2, 2014

Sharing Folders with Dropbox

My wife and I have separate Dropbox accounts. Why? We were sharing one Dropbox account for awhile and then she started to use her iPhone camera more and more. I also started documenting my projects with the iPhone. This meant we were each adding off-topic photos that mixed in with the other person's albums. Plus, we were starting to get tight on the free Dropbox space.

The fix for that was separate accounts. This works well with iPhones - Dropbox will automatically backup your iPhone photos if you set it up that way. What's even better for my wife, sharing photos with her friends is a breeze: open Dropbox Photos (Camera Uploads) on your iPhone; select photos to share; click share; email. This will send a link to your photos to the contacts you choose. Slick!

We still had a need to use the same files for some things, like the password manager file. For this, use the sharing feature in Dropbox.

Here's what I did in Ubuntu 12.04:

Share a folder on Linux

You can share a folder right from your computer if you've installed the Dropbox desktop application.
  1. Open your Dropbox folder.
  2. Right-click on the folder you want to share to bring up a menu.
  3. Select Share This Folder.... This will open the Sharing page on the Dropbox website.
    Share this folder option Select Share This Folder... from the contextual menu
  4. Enter the email addresses of the people you want to invite.
  5. Add a personal message if you'd like and click Share folder.
There are a couple of scenarios to stop sharing.
  1. You want to delete a file in the source dropbox and all of the shared locations:
  2. You want to delete a file only in the source and allow the copies to still exist
For scenario 1:
  • Stop sharing the folder(file) on the source dropbox
  • Delete the formerly-shared folder
For scenario 2:
  • Delete the shared folder (don't stop sharing first!)
  • The shared copies will still exist in other Dropbox accounts