Slashdot Mirror


Ask Slashdot: Scripting-Friendly Smartphones?

An anonymous reader writes "I am choosing a smartphone for work, moving up from a long history of just-a-phone phones. This coincides with moving into an environment where I will have a desktop machine in my office, rather using my laptop — so I'll VPN in from home, and am looking forward to not trucking my laptop around everywhere. BUT ... this means I now won't have my laptop all the time. I have gotten used to scripting various little things that make my life easier, and would like to carry that over to the phone. For example, periodically check that a certain machine is online and backing things up the way it is supposed to; if the lab monitoring system sends me an email that the -80 freezer is up to -50, play a sound and run the vibrate system in a specific, arbitrarily chosen pattern; when I press this button, record an MP3, when I release it prep an email with it attached, that sort of thing. Does such a beast exist? Has anyone used one and if so what do you think? Bonus points if you know if I can use it with Rogers (Canadian wireless provider used by my workplace)." I've heard good things about (but never used) the payware Android app called Tasker; what other recommendations do you have for running the world from a smartphone?

33 of 197 comments (clear)

  1. Re:seriously? by Sorthum · · Score: 4, Insightful

    Sometimes.

    I'd argue this is part of the geek/hacker mindset, and while it's a valuable asset, we have to remember that this places us outside of the mass market in some fairly significant ways. As a direct result of this, we're no longer the "target market" for consumer electronics.

  2. Your choices are... by Anonymous Coward · · Score: 5, Informative

    Nokia n900 would be my first choice for reasons that are obvious.

    HTC HD2 would be my second choice. Laugh if you must, but the interface HTC slapped over WM 6.5 makes it halfway decent and the APIs are open for pretty much anything you want to put on it.

    1. Re:Your choices are... by RobbieThe1st · · Score: 5, Informative

      It's as you said: Nokia N900, hands down.
      You get:
      1. Fully unlocked phone, unlocked bootloader and real Linux.
      2. Loads of "hacker" tools and apps.
      3. Busybox ash(stock) or full Bash if you want.
      4. The phone part is fully scriptable with dbus commands. There's even a dbus monitor daemon to run a script when a certain dbus signal is sent.
      5. Hardware keyboard, decent specs(CPU's a bit weak, but greatly overclockable), and good screen.
      6. Debian Chroot gives full LXDE system right on your phone if you need it.
      7. Real web-browser functionality: tablet-friendly stock microB(FF based, renders like FF 3), Firefox Mobile, Chromium(desktop version basically), Opera

      Really, it seems to be the only option.
      The N9 might also be doable, but there you have to enable developer mode, and have no hardware keyboard, screen's poorer(AMOLED vs LCD), and it's just more hassle.

  3. Android Scriptin by Anonymous Coward · · Score: 5, Informative

    Don't forget about sl4a, it's still a legitimate project.

    1. Re:Android Scriptin by bjwest · · Score: 4, Informative

      Don't know who the dumb fuck was going through modding all these posts down, but (s)he needs to have their head smacked.

      This is what I was going to suggest. Using sl4a allows the use of Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl, and shell. That pretty much covers all the good scripting languages except Rexx, and I haven't heard much about Rexx in years.

      Of course, if you stop and think about it, Android's entire API is a scripting language, so...

      --

      --- Keep the choice with the user..
    2. Re:Android Scriptin by timothyb89 · · Score: 3, Informative

      For added fun, Tasker has SL4A integration, so you can have Tasker run arbitrary scripts when various events occur. SL4A also lets you (in addition to its own APIs) lets you install, e.g., additional python modules, and the Java-interpreted scripting languages (BeanShell, Rhino, and probably JRuby) let you directly invoke the Android APIs. The latest Tasker release also has JavaScript support and exposes more device functionality to it than SL4A's APIs do.

      I'm not really sure what all of the hate for device scripting is about, Android is surprisingly scripting-friendly, and it actually has some viable end results.

  4. Nokia N900 no contest by Anonymous Coward · · Score: 5, Insightful

    The Nokia's N900 (not the newer 900) is a full linux distro that happens to also function as a phone. It is the best computer I have ever purchased.

    1. Re:Nokia N900 no contest by hobarrera · · Score: 4, Informative

      AC is quite right (I came to point out the exact same phone actually).
      Another great point is the hardware keyboard; it's really a paint to attempt to script or code or use ssh on a touchscreen-keyboard.

      The OS is not just a Linux kernel with new stuff strapped on; it's a descendant of Debian GNU/Linux inside, so unless you're a windows user, you won't have any issues hacking from this phone.

  5. n900 by Anonymous Coward · · Score: 3, Insightful

    n900. it's open source and has a full slide out keyboard for when you have to write a script on it an emergency. normally i prefer to write such things on my desktop then use ssh to get them over to the phone, but it can be done on the phone itself too.

  6. N9 or N900 -- full *nix by hardaker · · Score: 5, Insightful

    The N9 is a wonderful phone, can certainly be scripted (I ssh into mine all the time to do things), but lacks a physical keyboard. The onscreen one is great, but because it takes half the screen it makes the shell-window smaller. (really, you might want an N950, but those "don't exist" and getting one is difficult, plus the antenna issues make it less useful as a real phone).

    The N900, now hard to locate, has a great screen, a great keyboard and is the predecessor to the N9. But they have a known issue with the USB port breaking over time, so if you do actually succeed in finding one to buy don't expect it to last forever and ever. But this is 2000+ where things aren't expected to last longer than a few years.

    sigh

    --
    The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    1. Re:N9 or N900 -- full *nix by oik · · Score: 3, Informative

      Seconded. I have both phones now and have moved to having the N9 as my phone and the N900 just be my pocket/travel *nix box. I've not (touch wood) seen any problems with the USB port but it's something which is a known issue. The N900, while not perfect, is a damn good little machine.

  7. Another server + SMS + Tasker by swillden · · Score: 3, Interesting

    My suggestion is Tasker, but unless there's a mail parser plugin I haven't come across (or unless you write one), it won't take actions based on the content of e-mail messages. It will, however, react to SMS message content. So one way to handle your custom notifications is to write a script that runs on another always-on, always-connected machine. Have it receive and parse the e-mails and when one of them meets your criteria, have it send you a text message with relevant content, then have Tasker do whatever is appropriate when that message arrives.

    To make sure your script-running server is up, use something like Ping HostMonitor. You can also use that to monitor the status of any Internet-accessible hosts.

    The biggest downside of this approach is that it relies on SMS to reliably notify you. You might also want to have Tasker send an e-mail acknowledgement when you get the SMS, and have your script keep re-sending the texts periodically until it receives the ACK.

    --
    Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  8. Analyze elsewhere and send texts by A+nonymous+Coward · · Score: 4, Interesting

    I've done similar things, where I want my phone to tell me if some external activity has happened or has changed beyond certain parameters.

    I do the analysis elsewhere, such as on that desktop PC, and the alert consists of sending a text message to the phone (or multiple phone numbers). Google for the how, it's a common practice and easy (and free) to do. Depends on the carrier, altho some sites claim to figure that out for you, but I just figure each one out and avoid them. this does mean that if a phone number changes carrier, I have to change the script, but since so far I have only sent texts to my own phone, it's no biggie. Just have one central script to send the actual alert.

  9. Re:seriously? by Lisias · · Score: 5, Insightful

    No.

    The vast majority of the people is used to under thinking about everything.

    --
    Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
  10. Against the flow by ArhcAngel · · Score: 3, Interesting

    You probably won't get many recommendations for BlackBerry but a BlackBerry combined with a PlayBook may just be what you are looking for.

    --
    "A person is smart. People are dumb, panicky dangerous animals and you know it." - K
  11. Re:An inherent limitation of the form factor? by Lisias · · Score: 4, Interesting

    My brother uses a Milestone 2, and now and then he get himself doing some server administration over SSH while commuting on public transportation.

    Of course it sucks, but it sucks less than trying to use a Pad or Notebook on that shitty bus seats. :-)

    --
    Lisias@Earth.SolarSystem.OrionArm.MilkyWay.Local.Virgo.Universe.org
  12. Android Scripting Environment by Cramit · · Score: 4, Informative

    Android Scripting Environment is a layer that allows various scripting languages interact with the Android API. It supports a bunch of languages and allows for a decent level of control over the Android device. http://code.google.com/p/android-scripting/

  13. IFTTT is your friend. by wintersdark · · Score: 4, Interesting

    I'd recommend a two-pronged approach, if you're looking for something user friendly and not requiring building an intermediate server.

    First, check out the unbridled awesomeness that is If This Then That: http://ifttt.com/ It allows you to create simple (or complex) triggers based on all manner of inputs with all manner of outputs. Email, SMS, Social Networking, etc. I use it with a "private"(read: used only for this, and nothing actually private is tweeted) twitter account to pass data about. I originally used SMS, but I moved to twitter later as it's remarkably convenient and can be adapted easily to a number of different devices, whereas SMS is limited to phones (for the most part).

    Then, on your sexy Android phone - I'm using a Note, personally, it's the closest I can get to a tablet but still be able to comfortably put it in a pocket - use Tasker to intercept and act.

    Really, though, the first thing I'd do in your shoes is seriously investigate IFTTT. It's very easy to use and flat out awesome.

    --
    Meh.
    1. Re:IFTTT is your friend. by wintersdark · · Score: 3, Informative

      Unfortunately, I can't remember how to edit a post. Excuse my ignorance, I don't post often.

      Anyways, check this IFTTT.com recipe out: http://ifttt.com/recipes/46081 - it searches a gmail account, and sends results as SMS messages to your mobile number.

      So, you set it to search for From:yourworkaddress or Subject:FreezeTemp or what have you, and poof! Whenever your freezer is getting toasty, you get SMS messages.

      --
      Meh.
  14. I am confused a bit.... by tanveer1979 · · Score: 4, Insightful

    Why would you want to run the script on your phone?
    Of course there are apps for that.... but then why? Here is what I do. I use VPN (Cisco VPN is the one supported in most corporate environments, and is available on linux), and then just ssh to any machine I want.
    There is talk of even remote desktop kind of client coming to android.
    Alternatively, you could just ssh to the machine you want to access, and then do as you please.
    I use a Galaxy note, and since the screen is 5", its very usable. However, on smaller phones(like my older optimus one from LG), such stuff was a pain.

    So all your scripts will run on the server, in your lab, and email will be sent to you. Its far more easy to set up these scripts on the computer in your lab. Heck, you could write the scripts locally, and then ssh to your server and put them there.

    But if you still want to do stuff like access email, parse through it, and then do something(ssh to server blah blah), you may as well write your own app. On the market, most such apps will do only a part of what you want.

    Somebody has suggest N900(linux), and if you want everything on your phone, a linux phone is what you are looking for.

    --
    My Aurora : http://www.youtube.com/watch?v=o91ZsGwJYyg
    FB : https://www.facebook.com/TanveersPhotography
  15. Re:seriously? by datavirtue · · Score: 4, Funny

    Amidst the incoherent rambling I suspect, and look up to confirm yet again, that it is Timothy who has posted this trash. Is this the boss's son or something?

    --
    I object to power without constructive purpose. --Spock
  16. Re:An inherent limitation of the form factor? by gmuslera · · Score: 4, Informative

    Some soft keyboards have transparency, so can take most of the screen while you keep seeing what is below. And some have hard keyboards, some of them pretty good, or can use a bluetooth keyboard. The N900 is more a pocket computer than a cellphone, but could do work for what is needed (and was script friendly too)

  17. why script from your phone? by bmalia · · Score: 3, Insightful

    Seems better to have a separate dedicated machine that runs the scripts and monitors everything and send email alerts that you can receive on your phone.

    --
    There's no place like ~/
  18. Re:An inherent limitation of the form factor? by pantherace · · Score: 4, Interesting

    It's not an inherent limitation of the device.

    It's that the keyboards almost universally are horrible for it, because they are designed for things like natural speaking. Their processing of symbols is subpar.

    The same is true of most small bluetooth keyboards, or built in keyboards. Frankly, my Zaurus SL-5500 from 2003 has a better keyboard on a mobile than almost anything that's come since. (And in fact, the only things I can think of that rival it that I have encountered, are also Zaurus devices.)

    I have found one that I don't think sucks so far, it's "hacker's keyboard" on android. (Most important things it has that seemingly every other keyboard lacks are tab and arrow keys... easily accessible. It has some limitations though, and you'll almost certainly want to enable portrait 5-line keyboard) Though I usually use it more with my table as opposed to with my phone, though it does work there just fine, I use the phone more for email/texting/etc, so having a keyboard (swype) which is better for those things as default means the other isn't used as much.

  19. Re:An inherent limitation of the form factor? by Tough+Love · · Score: 4, Informative

    I think you're a little confused as to what "on-call" actually means. It is not regular work. You don't handle tickets, respond to emails or any of that. On-call is for emergencies, and it is typcially uncompensated. Your job is to respond if called. Otherwise you can do what you want. You are not by any means expected to stay sitting in your room hanging onto a laptop. Or if you are and you're not getting paid straight time for it, it's time to freshen up your resume.

    Now that you understand what on-call is, if all you need to do is reset somebody's password or similar "emergency" and you can do that from your phone, then just do it and get on with life. Of course if you prefer to drive into the office instead then feel free.

    --
    When all you have is a hammer, every problem starts to look like a thumb.
  20. Re:An inherent limitation of the form factor? by AliasMarlowe · · Score: 3, Informative

    I think you're a little confused as to what "on-call" actually means ... it is typcially uncompensated. Your job is to respond if called. Otherwise you can do what you want.

    This must be some new meaning for "on call" with which I am unfamiliar. We pay our people to be on-call for specific off-hours periods, and that pay is by the on-call hour and in addition to their base salary. If they are actually called on, then they get yet another additional payment, depending on how long it took to address the issue. Those eligible for on-call duty are also free to decline any or all on-call duty, if they wish. We expect our people to remain sober and capable when on-call, even if they are attending social events such as parties. This has a price, as it should.

    Which industry/country do you work in, where on-call time is free (and possibly compulsory and/or unlimited)?

    --
    Those who can make you believe absurdities can make you commit atrocities. - Voltaire
  21. Scripts belong on a PC ? by obarthelemy · · Score: 4, Insightful

    I have no clue why everyone is rushing to have you put scripts on a smartphone, which can be lost, stolen, run out of battery...

    You do your scripting on a PC at work, and only receive reports on, or do *emergency* remoting from, your phone. At most you tweak your phone so that if it receives an email/text with keyword "ALERT" from sender my.scripts.at.work, it does something noisy.

    Any phone can do that, it's a matter of finding the right size/features balance. I'd go for a big screen, and maybe a hardware keyboard if you think you'll be doing a lot of remote editing, though the best phone keyboard is a lot worse than any laptop's, so don't plan on using it too much.

    --
    The Cloud - because you don't care if your apps and data are up in the air.
  22. Re:An inherent limitation of the form factor? by TheGratefulNet · · Score: 4, Funny

    every salaried job, that's what!

    I've never been offered extra money to take 'pager duty' (as it was historically called). I hated it, I won't willingly do it again but its still the norm to pay one annual salary and still expect lots of 'free time' from your slaves. I mean employees. I did mean employees, really I did.

    --

    --
    "It is now safe to switch off your computer."
  23. Re:seriously? by jones_supa · · Score: 3, Insightful

    Oh yes. We at slashdot are so much smarter than the common pleb.

    Give me a break. The only thing greater is the undeserved ego.

    Nah. If you don't get too cocky about it, I think it's fine to be slightly proud to be a professional IT dude. ;)

  24. Re:seriously? by mwvdlee · · Score: 5, Insightful

    Name me one professional rally racing team that doesn't install their own shocks on their brand new car.

    If your needs are specific enough, no standard solution will suffice.

    --
    Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
  25. Re:An inherent limitation of the form factor? by WrongSizeGlass · · Score: 4, Funny

    A professional sysadmin on call should have multiple devices ready to roll, and not just depend on one dinky one.

    There's a reason samurai had two swords, or cowboys carried a boot knife...

    Exactly ... just in case they needed to stab a server ... or a user. ;-)

  26. Re:An inherent limitation of the form factor? by jcoy42 · · Score: 3, Interesting

    Maybe you missed the part where they said "looking forward to not trucking my laptop around everywhere"

    A cell phone fits in the pocket. A tablet does not. He'd just be lugging around something lighter. I believe his goal is to not be lugging anything extra around.

    --
    Never trust an atom. They make up everything.
  27. Re:An inherent limitation of the form factor? by RabidReindeer · · Score: 3, Informative

    Which industry/country do you work in, where on-call time is free (and possibly compulsory and/or unlimited)?

    The United States of America. Pick an industry - it probably applies.