LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

Not sure if this is off-topic or even "over-topic" cause it involves plenty of non-perl technology.

I'd like to be able to create, edit, update and delete text-files on my mobile device and to keep them synchronized with a folder on my desktop computer.

I'm not sure about the easiest way to achieve this:

Here some brainstorming:

Suggestions welcome! :)

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

╣) this would be handy cause I could implement some JS logic in DHTML too, but the standard browser doesn't even support the file:// protocol

Replies are listed 'Best First'.
Re: Using Perl to access notes/memos on my mobile (sqlite)
by tye (Sage) on Jul 31, 2014 at 03:00 UTC

    Android apps usually store their data in sqlite DBs. I've certainly copied those files off a (rooted) Android phone and pulled text note contents out of them. It wasn't particularly hard to figure out.

    - tye        

      Hello tye

      > Android apps usually store their data in sqlite DBs.

      Thanks, thats a great idea to pull stored informations out of native applications. Not sure if putting data into sqlites is always as easy, I'll try as soon as I rooted my mobile. :)

      Cheers Rolf

      (addicted to the Perl Programming Language and ☆☆☆☆ :)

Re: Using Perl to access notes/memos on my mobile
by Corion (Pope) on Jul 31, 2014 at 06:48 UTC

    For text-only, you could also store the notes in localStorage (or even localForage) and use (say) Server-Sent Events to reconnect from the web page to the server automatically and synchronize the notes.

    The harder part of this would be to wrap the HTML page in an "app" that can also run and synchronize in the background without needing the browser open.

    Personally, I've used an IMAP server together with the K9 mail application for storing notes. It's a simple protocol that knows how to deal with network interruptions.

      Hi Corion

      Thanks for pointing me to localStorage, it works quite well in Firefox and default browser (tested it with 2048 game webpage ;-)

      > ... without needing the browser open.

      True but ATM I'd prefer to see conflicts ASAP, so initiating a synchronization manually from HTML seems reasonable.

      > K9 mail application

      wow, thanks for showing me K9, nice client! :)

      > It's a simple protocol that knows how to deal with network interruptions.

      Indeed, that's also the way I'm going now! :)

      I need a working solution ASAP, but localStorage is a technology I'll certainly can use in future projects!

      Cheers Rolf

      (addicted to the Perl Programming Language and ☆☆☆☆ :)

Re: Using Perl to access notes/memos on my mobile
by wrinkles (Pilgrim) on Jul 31, 2014 at 01:04 UTC
    I use firefox to connect to my WebDav TiddkyWiki. Firefox requires a "TiddlyFox" extension to allow saving the tiddler back to the filesystem. I haven't tried it on a mobile device.
      Hello wrinkles

      thanks for pointing me to TiddlyWiki,

      As a feedback:

      Using it with the default Android2 Webkit Browser is problematic, cause I can't open the once saved files again (the HTML viewer is the default here)

      I was able to make it kind of work with a Firefox App, but I have still to figure out how to save with new names. ATM I need to click the download button, so I get multiple numbered instances of the original name.

      TiddlyWiki is certainly an interesting technology,thanks again! :)

      Cheers Rolf

      (addicted to the Perl Programming Language and ☆☆☆☆ :)