ma_weee2005 | 2 Jan 2011 16:17
Picon

Re: todo.txt web app w/ dropbox integration

Here's a simple todotxt wicket web app using oauth and dropbox that might be of interest.

# setup:
git clone git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:magh/dropbox-api.git
git clone git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:magh/todo.txt-java.git
git clone git <at> github.com:magh/todo.txt-wicket.git

# install deps
.../dropbox-api$ mvn clean install
.../todo.txt-java$ mvn clean install

# run web server for development testing
.../todo.txt-wicket$ mvn clean jetty:run

# open localhost:8080 with browser and authenticate with dropbox over oauth.


On Thu, Dec 30, 2010 at 6:33 PM, tim.bocoup <tim-9MNsz74a2FPQT0dZR+AlfA@public.gmane.org> wrote:
 

Hi todo.txt community,

Next week I'll be starting a todo.txt open source project that will hopefully be available in the Google Chromium Store.

The features that will separate it from the existing web/touch projects are:
- Dropbox integration (cloudsync your todo.txt)
- Initially designed/developed as a Chromium Web App

I have a large list of other features I'd like to implement, but I'm being cautious as to not clutter the scope of the project.

It would be great to get some community feedback before/during/after development, please let me know what you think as users of todo.txt!




__._,_.___


http://todotxt.com



Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
evilninjaphil | 5 Jan 2011 00:26
Picon
Favicon

Blank Lines in Todo.txt file

This is my first port of call for some help, it might be something else but I've got to start somewhere!

I am using todo.sh for my Todo list, Cygwin to run the command line and Samurize to embed it on my desktop which
is running Windows 7. I have my todo.txt file and have set up a 2011goals.txt file so I can move bigger
goals/tasks from my daily todo list to the other .txt file with both shown on the desktop.

Now, I've noticed that when I've moved the tasks from todo to 2011goals it's leaving blank lines in the main
todo file. So when I use ls to list my tasks they show up like this;

1.
2.
3.
4.
5.
6.
7.
10.

So it looks like when I use the command 't move 8 2011goals.txt' it's moving the task but leaving the line
behind and not re-assigning the number to the next new task. If I look at the .txt file there's nothing
there, just the plain text (naturally) but I'm not sure if it's the script leaving the blank lines behind or
Samurize not reading the file right. I've pretty much no experience when it comes to Cygwin or the scripts
so I'm working blind hence the plea for help! Is there a way to set it to remove the blank line numbers or
refresh the file to remove the blanks? Or is this a formatting error with Samurize which means I have to
check with their support forum?

Thanks for any help you can give me! I've been really getting into using the todo.txt way of organising
things and it seems to be working better then the other Todo systems I've tried, hopefully this will be just
a little speedbump!

------------------------------------

http://todotxt.comYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/todotxt/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/todotxt/join
    (Yahoo! ID required)

<*> To change settings via email:
    todotxt-digest@... 
    todotxt-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    todotxt-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Ingo Karkat | 5 Jan 2011 08:34
Picon
Favicon
Gravatar

Re: Blank Lines in Todo.txt file

On 05-Jan-2011 00:26, evilninjaphil wrote:
> This is my first port of call for some help, it might be something
> else but I've got to start somewhere!
> 
> I am using todo.sh for my Todo list, Cygwin to run the command line
> and Samurize to embed it on my desktop which is running Windows 7. I
> have my todo.txt file and have set up a 2011goals.txt file so I can
> move bigger goals/tasks from my daily todo list to the other .txt file
> with both shown on the desktop.
> 
> Now, I've noticed that when I've moved the tasks from todo to
> 2011goals it's leaving blank lines in the main todo file. So when I
> use ls to list my tasks they show up like this;
> 
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 10.
> 
> So it looks like when I use the command 't move 8 2011goals.txt' it's
> moving the task but leaving the line behind and not re-assigning the
> number to the next new task. If I look at the .txt file there's
> nothing there, just the plain text (naturally) but I'm not sure if
> it's the script leaving the blank lines behind or Samurize not reading
> the file right. I've pretty much no experience when it comes to Cygwin
> or the scripts so I'm working blind hence the plea for help! Is there
> a way to set it to remove the blank line numbers or refresh the file
> to remove the blanks? Or is this a formatting error with Samurize
> which means I have to check with their support forum?

By default, TODOTXT_PRESERVE_LINE_NUMBERS is set, so that the task numbers only
change when you explicitly archive done items - this makes tasks easier to
recognize by their fixed numbers. You can turn this off via the todo.sh -n
option, or by setting
    export TODOTXT_PRESERVE_LINE_NUMBERS=0
in your todo.cfg, or explicitly request a clean up via 'todo.sh archive'.

You seem to directly include the file contents of todo.txt in Samurize. Instead,
you could have Samurize execute the "C:\cygwin\bin\bash.exe todo.sh -p ls"
command periodically (say, every minute). This takes more of a performance hit,
but you would get all the filtering, numbering, sorting, (yes, and suppression
of empty lines) of todo.sh. For example, I only put the prioritized tasks
(todo.sh lsp) on my desktop.

-- regards, ingo

------------------------------------

http://todotxt.comYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/todotxt/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/todotxt/join
    (Yahoo! ID required)

<*> To change settings via email:
    todotxt-digest@... 
    todotxt-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    todotxt-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

evilninjaphil | 5 Jan 2011 23:03
Picon
Favicon

Re: Blank Lines in Todo.txt file


--- In todotxt@..., Ingo Karkat <swdev <at> ...> wrote:
>
> On 05-Jan-2011 00:26, evilninjaphil wrote:
> > This is my first port of call for some help, it might be something
> > else but I've got to start somewhere!
> > 
> > I am using todo.sh for my Todo list, Cygwin to run the command line
> > and Samurize to embed it on my desktop which is running Windows 7. I
> > have my todo.txt file and have set up a 2011goals.txt file so I can
> > move bigger goals/tasks from my daily todo list to the other .txt file
> > with both shown on the desktop.
> > 
> > Now, I've noticed that when I've moved the tasks from todo to
> > 2011goals it's leaving blank lines in the main todo file. So when I
> > use ls to list my tasks they show up like this;
> > 
> > 1.
> > 2.
> > 3.
> > 4.
> > 5.
> > 6.
> > 7.
> > 10.
> > 
> > So it looks like when I use the command 't move 8 2011goals.txt' it's
> > moving the task but leaving the line behind and not re-assigning the
> > number to the next new task. If I look at the .txt file there's
> > nothing there, just the plain text (naturally) but I'm not sure if
> > it's the script leaving the blank lines behind or Samurize not reading
> > the file right. I've pretty much no experience when it comes to Cygwin
> > or the scripts so I'm working blind hence the plea for help! Is there
> > a way to set it to remove the blank line numbers or refresh the file
> > to remove the blanks? Or is this a formatting error with Samurize
> > which means I have to check with their support forum?
> 
> By default, TODOTXT_PRESERVE_LINE_NUMBERS is set, so that the task numbers only
> change when you explicitly archive done items - this makes tasks easier to
> recognize by their fixed numbers. You can turn this off via the todo.sh -n
> option, or by setting
>     export TODOTXT_PRESERVE_LINE_NUMBERS=0
> in your todo.cfg, or explicitly request a clean up via 'todo.sh archive'.
> 
> You seem to directly include the file contents of todo.txt in Samurize. Instead,
> you could have Samurize execute the "C:\cygwin\bin\bash.exe todo.sh -p ls"
> command periodically (say, every minute). This takes more of a performance hit,
> but you would get all the filtering, numbering, sorting, (yes, and suppression
> of empty lines) of todo.sh. For example, I only put the prioritized tasks
> (todo.sh lsp) on my desktop.
> 
> -- regards, ingo
>

That's fantastic, thanks very much! The "C:\cygwin\bin\bash.exe todo.sh -p ls" command, do you run that
as a Console Program or an Active Script?

The archive command worked a treat, thanks again!

------------------------------------

http://todotxt.comYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/todotxt/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/todotxt/join
    (Yahoo! ID required)

<*> To change settings via email:
    todotxt-digest@... 
    todotxt-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    todotxt-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Ingo Karkat | 6 Jan 2011 12:59
Picon
Favicon
Gravatar

Re: Blank Lines in Todo.txt file

On 05-Jan-2011 23:03, evilninjaphil wrote:
> --- In todotxt@..., Ingo Karkat <swdev <at> ...> wrote:
>> You seem to directly include the file contents of todo.txt in
>> Samurize. Instead, you could have Samurize execute the
>> "C:\cygwin\bin\bash.exe todo.sh -p ls" command periodically (say,
>> every minute). This takes more of a performance hit, but you would
>> get all the filtering, numbering, sorting, (yes, and suppression of
>> empty lines) of todo.sh. For example, I only put the prioritized
>> tasks (todo.sh lsp) on my desktop.
> 
> That's fantastic, thanks very much! The "C:\cygwin\bin\bash.exe
> todo.sh -p ls" command, do you run that as a Console Program or an
> Active Script?

Console Program; I didn't know about Active Script, this seems to be
limited to VBScripts etc.
Precisely, I am running a todo.cmd wrapper from within Samurize; this small
batch file then launches bash.exe and todo.sh, and passes all of my todo.sh
arguments (-p is important, because Samurize does not understand the ANSI color
sequences). I had to do this because I needed to add some directories to PATH,
as my .bashrc somehow wasn't sourced properly. Having a small batch wrapper also
makes this easier to troubleshoot from outside Samurize.

-- regards, ingo

------------------------------------

http://todotxt.comYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/todotxt/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/todotxt/join
    (Yahoo! ID required)

<*> To change settings via email:
    todotxt-digest@... 
    todotxt-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    todotxt-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Gina Trapani | 6 Jan 2011 19:22
Picon
Gravatar

Todo.txt Touch update

I've just merged magh (aka ma_weee2005)'s latest commit into my
repository, which has much-improved Dropbox support:

https://github.com/ginatrapani/todo.txt-touch

The apk magh made available for download here works perfectly on my
Android device. I'm really loving it:

https://github.com/magh/todo.txt-touch/downloads

However, when I compile the project and try to sign into Dropbox in
the emulator, it doesn't work. I added a log line to output the
exception message. Here's what logcat tells me:

I/System.out(  229): authorizeDropbox:
https://www.dropbox.com/0/oauth/authorize?oauth_token=[REDACTED]&oauth_callback=
D/dalvikvm(  229): GC freed 5135 objects / 375728 bytes in 61ms
I/Resources(  229): Loaded time zone names for en_US in 1529ms.
I/System.out(  229): token get statusCode: 200
D/dalvikvm(  229): GC freed 3772 objects / 220712 bytes in 62ms
I/System.out(  229): post statusCode: 200
D/dalvikvm(  229): GC freed 2084 objects / 406288 bytes in 54ms
I/System.out(  229): no redirect?
I/System.out(  229): WARN: no redirect
I/System.out(  229): auth url: https://www.dropbox.com/0/oauth/authorize
I/System.out(  229): statusCode: 500
I/System.out(  229): Unauthorized?
I/global  (  229): Default buffer size used in BufferedReader
constructor. It would be better to be explicit if an 8k-char buffer is
required.
I/NotificationService(   53): enqueueToast
pkg=com.todotxt.todotxttouch
callback=android.app.ITransientNotification$Stub$Proxy <at> 438fc6b8
duration=1
I/TodoApplication(  229): Request token or token secret not set in
server reply. The service provider you use is probably buggy.

I get the same result if I use the current state of magh's repository
(though without the extra log line). Any ideas what I'm doing wrong?

-- 
http://ginatrapani.org
http://twitter.com/ginatrapani

------------------------------------

http://todotxt.comYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/todotxt/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/todotxt/join
    (Yahoo! ID required)

<*> To change settings via email:
    todotxt-digest@... 
    todotxt-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    todotxt-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Gina Trapani | 6 Jan 2011 20:55
Picon
Gravatar

Re: Todo.txt Touch update

On Thu, Jan 6, 2011 at 10:22 AM, Gina Trapani <ginatrapani@...> wrote:
> However, when I compile the project and try to sign into Dropbox in
> the emulator, it doesn't work. I added a log line to output the
> exception message. Here's what logcat tells me:

Update: if I disconnect the app from my Dropbox account on
Dropbox.com, and set the emulator to clear all user data and start all
over from scratch, I am able to authenticate and get my todo.txt file
synced, though the process removes the current Todo.txt folder and
recreates it.

One more note: We shouldn't be including my Dropbox key and secret in
the source code, so I just committed a change which puts it in a
configuration file which is not included in the repository:

https://github.com/ginatrapani/todo.txt-touch/commit/4dd1824cd21e88d27f739d5fd5cd094926eebb23

Soon I will delete the current app and each dev will have to use
his/her own key/secret for development purposes and the official
distribution keys won't be public.

-- 
http://ginatrapani.org
http://twitter.com/ginatrapani

------------------------------------

http://todotxt.comYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/todotxt/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/todotxt/join
    (Yahoo! ID required)

<*> To change settings via email:
    todotxt-digest@... 
    todotxt-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    todotxt-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

ma_weee2005 | 8 Jan 2011 17:13
Picon

Re: Re: Todo.txt Touch update

I believe the official twitter oauth consumer key/secret was easily found in the twitter apk file by doing a regex string search on it. Basically I'm not sure how important it is keep em secret since if someone wants to find it he/she will (since it's an embedded app). We could add the functionality to configure your own consumer key/secret for extra security.

How can a hacker exploit the dropbox oauth consumer key/secret?

Can a users traffic be sniffed/monitored to obtain the users access key/secret? I don't think so since https is used.

It's possible to create a malicious app that uses the todotxt consumer key/secret, this shouldn't be that big of an issue for us.

Currently the todotxt app only have access to /Dropbox/Todo.txt which is a good thing.



On Thu, Jan 6, 2011 at 8:55 PM, Gina Trapani <ginatrapani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
 

On Thu, Jan 6, 2011 at 10:22 AM, Gina Trapani <ginatrapani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> However, when I compile the project and try to sign into Dropbox in
> the emulator, it doesn't work. I added a log line to output the
> exception message. Here's what logcat tells me:

Update: if I disconnect the app from my Dropbox account on
Dropbox.com, and set the emulator to clear all user data and start all
over from scratch, I am able to authenticate and get my todo.txt file
synced, though the process removes the current Todo.txt folder and
recreates it.

One more note: We shouldn't be including my Dropbox key and secret in
the source code, so I just committed a change which puts it in a
configuration file which is not included in the repository:

https://github.com/ginatrapani/todo.txt-touch/commit/4dd1824cd21e88d27f739d5fd5cd094926eebb23

Soon I will delete the current app and each dev will have to use
his/her own key/secret for development purposes and the official
distribution keys won't be public.



__._,_.___


http://todotxt.com



Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
digichrome64 | 8 Jan 2011 19:58
Picon
Gravatar

New here and need a little help

Hi all. New to the project and wanted to get involved with the Android version of todo.txt. Though new to
Android and Java programming I have background on other platforms and have been doing iphone/ipad
programming for the last 18 months. 

So far I've set up GIT, forked my project and have been able to compile and run it (yay!). The problem I'm
encountering is on the setup for the dropbox integration. Though I've verified I'm using my correct ID and
password I can't get the app to connect using either my own compile (yes, I set up dropbox.xml) or the build
from the github project. The error is: "Cannot create Dropbox account". 

Any tips on what I can look at?

Thanks!

Chris Grey

------------------------------------

http://todotxt.comYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/todotxt/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/todotxt/join
    (Yahoo! ID required)

<*> To change settings via email:
    todotxt-digest@... 
    todotxt-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    todotxt-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Gina Trapani | 8 Jan 2011 20:59
Picon
Gravatar

Re: Re: Todo.txt Touch update



On Sat, Jan 8, 2011 at 8:13 AM, ma_weee2005 <ma_ya-UUlZlT2S5vs@public.gmane.org> wrote: 

I believe the official twitter oauth consumer key/secret was easily found in the twitter apk file by doing a regex string search on it. Basically I'm not sure how important it is keep em secret since if someone wants to find it he/she will (since it's an embedded app).


I'm honestly not sure either, I just didn't feel comfortable having it hardcoded in the source, and easily found on the web just by browsing on GitHub.

We could add the functionality to configure your own consumer key/secret for extra security.


 We could, but that seems like overkill...

Currently the todotxt app only have access to /Dropbox/Todo.txt which is a good thing.


Agreed. I'm not sure why this is the case, though--is that what "Sandbox" access means for that consumer key/secret? Because if I create a new Dropbox app, it gets full access (and it doesn't work with the current app). I'm thinking this is because authentication got built during the Dropbox API's beta stage. Speaking of, we should check we're using the most current version of the Dropbox library...

 
On Thu, Jan 6, 2011 at 8:55 PM, Gina Trapani <ginatrapani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
 

On Thu, Jan 6, 2011 at 10:22 AM, Gina Trapani <ginatrapani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> However, when I compile the project and try to sign into Dropbox in
> the emulator, it doesn't work. I added a log line to output the
> exception message. Here's what logcat tells me:

Update: if I disconnect the app from my Dropbox account on
Dropbox.com, and set the emulator to clear all user data and start all
over from scratch, I am able to authenticate and get my todo.txt file
synced, though the process removes the current Todo.txt folder and
recreates it.

One more note: We shouldn't be including my Dropbox key and secret in
the source code, so I just committed a change which puts it in a
configuration file which is not included in the repository:

https://github.com/ginatrapani/todo.txt-touch/commit/4dd1824cd21e88d27f739d5fd5cd094926eebb23

Soon I will delete the current app and each dev will have to use
his/her own key/secret for development purposes and the official
distribution keys won't be public.




--
http://ginatrapani.org
http://twitter.com/ginatrapani


__._,_.___


http://todotxt.com



Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Gmane