Re: [O] Cooperating with oneself using the cloud?

2014-09-15 Thread Phil Mason
Hi Martin,



 That should work if I can find a free Git repository allowing me to keep 
 files secret.



I use the free private repos from https://bitbucket.org/ to do something very 
similar to what you require.



All the best



Phil



Re: [O] Counting total number of projects

2012-10-19 Thread Phil Mason
Hi Chris,

 Is there any way to calculate total number of projects in real-time such that,

If you don't mind marking your projects as TODO then you can use statistics 
cookies like this:

* Projects [%] [/]
** TODO project 1
   + foo
** DONE project 2
   + bar
** TODO project 3
   + baz
** TODO project 4
   + qux

And then the projects line should show (4 projects, 3 in progress, 1 completed):

* Projects [25%] [1/4]

There is more on the checkboxes page of the manual here:

http://orgmode.org/manual/Checkboxes.html#Checkboxes

I tend to have todo lists for each projects so I need the recursive property 
after the projects line like this:

* Projects [%] [/]
:PROPERTIES:
:COOKIE_DATA: recursive
:END:
** TODO project 1
...

Hope this helps

Phil



[O] Shell script block gives no output when evaluated

2012-02-08 Thread Phil Mason
Hello all,

If I evaluate the following source block in emacs 23.1.1, org mode v7.8.03 it 
reports that it produces no output:

 #+begin_src sh :results replace
   foo=1
   if [[ -n $foo ]]; then
   echo foo has been defined (and has value $foo)
   else
   echo foo has not been defined
   fi   
   if [[ -n $bar ]]; then
   echo bar has been defined (and has value $bar)
   else
   echo bar has not been defined
   fi   
 #+end_src

Confusingly if I remove either if block then the results for the remaining one 
is correct and if I run the same code from within an actual script it works as 
I expect (foo is defined, bar is not). Can anybody provide any clues about what 
I'm doing wrong.

Thanks in advance

Phil