Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Using Perl to access notes/memos on my mobile

by LanX (Saint)
on Jul 31, 2014 at 00:23 UTC ( [id://1095669]=perlquestion: print w/replies, xml ) Need Help??

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:

  • using an email client and storing the text as drafts and using Perl to synchronise the folder
  • synchronize text-memos with google-drive, and access that web-folder via Perl
  • trying to figure out where text-memos are stored in the mobiles file system and trying to synchronize that folder directly
  • trying to find a browser-app which can access local html-files¹ and allows to change and safe them somehow
  • using some third party app
  • something I didn't think of yet ...
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 (Patriarch) 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 ☆☆☆☆ :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1095669]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found