Re: [O] Invalid Markup Validation with footnotes

2015-07-13 Thread OSiUX
El lun, 13 jul 2015, Rasmus decía:

 Hi,
 
 OSiUX xu...@osiux.com.ar writes:
 
  Hi everybody, using a W3C validator the footnotes are invalid. :(
  [...]
  How should define the footnote?
  Is an exporter error?
 
 Thanks.
 
 I tried to fix it in commit fd990a81e38ad80892519395ed52fbef5aca6545.  It
 produces error-free and visually correct results in with my init.el and
 with emacs -q.  Let me know if it works for you.

Awesome!

This document was successfully checked as XHTML 1.0 Strict!

Thank you!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] Invalid Markup Validation with footnotes

2015-07-12 Thread OSiUX
Hi everybody, using a W3C validator the footnotes are invalid. :(

Example link validator:


http://validator.w3.org/check?uri=http%3A%2F%2Fosiux.com%2Ftmux-terminator-awesome.html

W3C Error:

Line 329, Column 121: document type does not allow element p here;
missing one of object, ins, del, map, button start-tag

...ss=footnum href=#fnr.11/a/sup p class=footparap
class=footpara

The source:


https://raw.githubusercontent.com/osiris/osiux-blog/master/tmux-terminator-awesome.org

Example code:

[fn:awesome] [[file:awesome-es-increible.org]]

Org-mode version:

8.3beta release_8.3beta-1266-g122171

How should define the footnote?
Is an exporter error?

Thanks!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] howto disable infojs

2015-04-21 Thread OSiUX
I try in the .org file:

#+OPTIONS: html-use-infojs:nil

... and the .emacs rc file:

(setq org-html-use-infojs nil)

any configuration does not work :(

Org-mode version 8.3beta
(release_8.3beta-1055-g797023 @ /home/osiris/org-mode/lisp/)

GNU Emacs 24.4.1
(x86_64-pc-linux-gnu) of 2015-03-07 on trouble, modified by Debian

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] batch export one file to ics

2015-04-07 Thread OSiUX
Hi!

In the past, I used this command for export ICS:

  /usr/bin/emacs --batch -q --directory=/home/osiris/org \
--visit=/home/osiris/org/print3d.org \
--eval '(org-export-icalendar-this-file)'

Now does not work, even changing to function
org-icalendar-export-to-ics:

  /usr/bin/emacs --batch -q --directory=/home/osiris/org \
--visit=/home/osiris/org/print3d.org \
--eval '(org-icalendar-export-to-ics)'

How should I?
Thanks!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] org.css for mobile-friendly

2015-03-04 Thread OSiUX
El mié, 04 mar 2015, Rasmus decía:

 OSiUX xu...@osiux.com.ar writes:
 
  Testing my blog [0] (org-mode publish) in
  mobile-friendly [1] obtain bad result. :(
 
  Same result for orgmode.org, maybe somebody have
  better CSS for org-mode export?
 
  thanks!
 
  [0] http://osiux.com
  [1] https://www.google.com/webmasters/tools/mobile-friendly/?url=orgmode.org
 
 Did you try to add viewport?  E.g.:
 
 meta name=viewport content=width=device-width, initial-scale=1

^ this meta is the begining for OK in mobile-friendly
I play with CSS for adapt images sizes.

thanks Rasmus!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] org.css for mobile-friendly

2015-03-04 Thread OSiUX
Testing my blog [0] (org-mode publish) in
mobile-friendly [1] obtain bad result. :(

Same result for orgmode.org, maybe somebody have
better CSS for org-mode export?

thanks!

[0] http://osiux.com
[1] https://www.google.com/webmasters/tools/mobile-friendly/?url=orgmode.org

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] Bug?/performance issue in org-icalendar-export-current-agenda

2014-08-26 Thread OSiUX
El mar, 26 ago 2014, Richard Lawrence decía:

 Hi all,
 
 I pulled from master recently (for the first time since the spring), and
 since the update, I have noticed a performance/lockup issue.  The
 problem occurs when exporting an agenda view to iCalendar format.
 
 My Emacs version is 23.4.1 and my Org version is 8.3beta (I am
 currently on commit 767895...)
  
 I have traced the problem down to a call to
 `org-icalendar-export-current-agenda', though I don't know if the
 problem is in this function or in another function called by it.
 Somewhere during the execution of this function, Emacs goes to 100% CPU
 usage (on one core) and memory usage starts growing until I kill the
 process.
  
 Here's what my setup looks like.  I have just one entry in
 `org-agenda-custom-commands' that defines the files field.  It looks
 like:
 
  (Z Export to iCalendar file tags +event|+appointment nil
   (~/Documents/website/public_html/lib/attachments/calendar.ics)
 
 I normally only call this command via a cron job that exports my agenda
 files to .ics, which until recently was working fine.  But I have
 noticed I can reproduce the lockup interactively by building an agenda
 view with this command, and then calling
 `org-icalendar-export-current-agenda' on it (which is also what happens,
 a few steps down the call chain, during the cron job).
 
 I have run some tests by manually setting org-agenda-files, then
 building this agenda and eval'ing
 
 (org-icalendar-export-current-agenda /tmp/agenda.ics) 
 
 in the agenda buffer.  The results:
 
 1) Using just a simple three-entry test file, the export completes quickly
and I don't see the lockup.  
 2) Using an agenda file which contains plenty of real data
(about 1000 lines) but no headlines tagged event or appointment
(i.e., a file for which this agenda view is empty), the call to
`org-icalendar-export-current-agenda' takes about 5 seconds to
complete, even though there are no entries to export.  During those
5 seconds, the Emacs process goes to 100% CPU usage.
 3) Using a different agenda file (of about 4000 lines) which contains
about 75 matching headlines, the call to
`org-icalendar-export-current-agenda' does not complete within
several minutes, during which time I see 100% CPU usage and rapid
memory usage growth.  
 
 So it looks to me like maybe some part of the export process uses
 exponentially more time and memory, depending on the input, since a
 minimal test case does not produce the problem.

 What's the next step for debugging this?  Please let me know if I can
 provide more information.  
 
 Thanks! 
 
 -- 
 Best,
 Richard

I use a bash script: =agenda-ascii= [0] to
reduce the list of file to export, first =grep=
current =year-month= pattern in the *.org
files:

  #+BEGIN_EXAMPLE
ORG_FILES=$($GREP -l $YEAR-$MONTH *.org)
echo $ORG_FILES

if [ $EXPORT_ICS = TRUE ]
then
for AGENDA in $(echo $ORG_FILES)
do
echo EXPORT $AGENDA ...
ARCHIVO=$DIR/$AGENDA
$EMACS --batch -q --directory=${DIR} --visit=${ARCHIVO} --eval 
'(org-export-icalendar-this-file)' /dev/null 21
done
fi
  #+END_EXAMPLE

Actually the process, cosume 42%-97% CPU, for
526 appoinments, takes 0m 30.396s

  Org-mode version 8.3beta (release_8.3beta-264-g7a5f3f
  GNU Emacs 24.3.1 (x86_64-pc-linux-gnu) of 2014-06-06 on barber, modified by 
Debian


[0] https://github.com/osiris/org-bash-utils/blob/master/agenda-ascii

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] Org release 8.2.6

2014-04-22 Thread OSiUX
Work fine, but =org-export-time-stamp-file: nil= don't work [0]

Adding =#+OPTIONS: timestamp:nil= to every file work fine.

Now my blog is updated to  8.2.6 (release_8.2.6-898-g69700e)

Thanks!

[0] http://lists.gnu.org/archive/html/emacs-orgmode/2013-06/msg00460.html

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] bash alias and history in code block (again)

2014-04-22 Thread OSiUX
El jue, 17 abr 2014, Bastien decía:

 OSiUX xu...@osiux.com.ar writes:

  #+BEGIN_SRC sh :cmdline -i :session :results output

 From a quick look, this should rather be:

 #+BEGIN_SRC sh :cmdline -i :session session_name :results output

 Can you test this?

Don't Work :-(

** DONE test =bash -i=
   CLOSED: [2014-04-22 mar 14:56]
   :LOGBOOK:
   - State DONE   from NEXT   [2014-04-22 mar 14:56]
   CLOCK: [2014-04-22 mar 14:51]--[2014-04-22 mar 14:54] =  0:03
   :END:

   #+BEGIN_SRC sh :cmdline -i :session xyz :results output
 export | grep -i shell
 alias | wc -l
 history | wc -l
   #+END_SRC

   #+RESULTS:
   : declare -x SHELL=/bin/bash
   : 0
   : 0

   #+BEGIN_SRC sh :session :results output
 export | grep -i shell
 alias | wc -l
 history | wc -l
   #+END_SRC

   #+RESULTS:
   : export SHELL=/bin/bash
   : 0
   : 0

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] bash alias and history in code block (again)

2014-04-15 Thread OSiUX
Hi, in the past I ask *How to use alias and bash builtin functions?*

http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00205.html

The solution:

  (setq org-babel-sh-command bash -i)

But now don't work anymore :-(

My Org-mode version:

8.2.5h release_8.2.5h-660-gef207f

Looking the source:

b896bd4 2014-02-09 20:12 schulte.ericadd :cmdline support to shell code 
blocks
5f0ca0e 2014-01-31 17:02:03 +0100 theonewiththeevillook  Renaming of ob-sh to 
ob-shell: various fixes
1a9a666 2014-01-21 09:52 schulte.ericmention ob-sh renamed to ob-shell in 
ORG-NEWS
80754a8 2014-01-18 10:26 schulte.ericupdated names in test-ob-shell
2ebae7b 2014-01-18 10:25 schulte.ericrenamed test file for shell code blocks
fb09863 2013-12-13 16:04 schulte.ericmore shell names
b319475 2013-12-13 10:03 schulte.ericfix tests with the renamed ob-shell.el
583e7ab 2013-12-13 09:54 schulte.ericrename ob-sh to ob-shell
7a6c0e3 2013-12-13 09:52 schulte.ericmultiple code block types for multiple 
shells
d286d81 2013-12-13 09:18 schulte.ericRevert change default sh code block 
shell to bash
1f498c9 2013-11-23 09:14 schulte.ericchange default sh code block shell to 
bash

I change my ~/.emacs

  (setq org-babel-sh-command bash)

... and try the new :cmdline parameter:

#+BEGIN_SRC sh :cmdline -i :session :results output
   history | wc -l
   alias | wc -l
#+END_SRC

#+RESULTS:
: 0
: 0

*How to use alias and bash builtin functions?*

thanks!

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] Org Bash Utils

2014-03-11 Thread OSiUX
Try: org-clock | org-timeline

https://github.com/osiris/org-bash-utils

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] export ICal without evaluate code block

2014-02-26 Thread OSiUX
El mié, 26 feb 2014, Nicolas Goaziou decía:

 Hello,

 OSiUX xu...@osiux.com.ar writes:

  Calendar can be exported without evaluating
  babel code blocks?
 
  I try setting in .emacs:
 
(setq org-confirm-babel-evaluate nil)
(setq org-export-babel-evaluate nil)
 
  but always evaluate when exports iCalendar :-(

 You could use something like this:

   (defun my-toggle-off-babel (backend)
 (when (org-export-derived-backend-p backend 'icalendar)
   (org-set-local 'org-confirm-babel-evaluate nil)
   (org-set-local 'org-export-babel-evaluate nil)))

   (add-hook org-export-before-processing-hook #'my-toggle-off-babel)

Thanks Nicolas, your workaround don't work for me:

  Debugger entered--Lisp error:
(void-variable org-export-before-processing-hook)
(add-hook org-export-before-processing-hook (function my-toggle-off-babel))

Looking the source I found this commit:

  commit 69ebb265be118ea1a37afb9603c4582d25d33d09
  Author: Bastien Guerry b...@altern.org
  Date:   Wed Apr 10 18:40:47 2013 +0200

  ox-icalendar.el (org-icalendar-export-current-agenda): Do not evaluate 
babel co$

  * ox-icalendar.el (org-icalendar-export-current-agenda): Do
  not evaluate babel code blocks.

  Thanks to Nicolas for directions about this.

should work with the export current file option
but does not work :-(

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] export ICal without evaluate code block

2014-02-26 Thread OSiUX
El mié, 26 feb 2014, Nicolas Goaziou decía:

 OSiUX xu...@osiux.com.ar writes:
 
  El mié, 26 feb 2014, Nicolas Goaziou decía:
 
  You could use something like this:
 
(defun my-toggle-off-babel (backend)
  (when (org-export-derived-backend-p backend 'icalendar)
(org-set-local 'org-confirm-babel-evaluate nil)
(org-set-local 'org-export-babel-evaluate nil)))
 
(add-hook org-export-before-processing-hook #'my-toggle-off-babel)
 
  Thanks Nicolas, your workaround don't work for me:
 
Debugger entered--Lisp error:
  (void-variable org-export-before-processing-hook)
  (add-hook org-export-before-processing-hook (function 
  my-toggle-off-babel))
 
 I forgot a quote:
 
 (add-hook 'org-export-before-processing-hook #'my-toggle-off-babel))

oops! OK thanks, now it works great!

  Looking the source I found this commit:
 
commit 69ebb265be118ea1a37afb9603c4582d25d33d09
Author: Bastien Guerry b...@altern.org
Date:   Wed Apr 10 18:40:47 2013 +0200
 
ox-icalendar.el (org-icalendar-export-current-agenda): Do not 
  evaluate babel co$
 
* ox-icalendar.el (org-icalendar-export-current-agenda): Do
not evaluate babel code blocks.
 
Thanks to Nicolas for directions about this.
 
  should work with the export current file option
  but does not work :-(
 
 No, this patch is about calling icalendar exporter on the agenda.
 I guess you are calling it on an Org buffer, which is different.

No problem, I use batch mode export:

  ORG - ICS - REM - TXT

https://github.com/osiris/org-bash-utils/blob/master/agenda-ascii

 Regards,

thank you!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] export ICal without evaluate code block

2014-02-24 Thread OSiUX
Hi!

Calendar can be exported without evaluating
babel code blocks?

I try setting in .emacs:

  (setq org-confirm-babel-evaluate nil)
  (setq org-export-babel-evaluate nil)

but always evaluate when exports iCalendar :-(

thanks!

Org-mode version 8.2.5h 
(release_8.2.5h-631-g076b8e @ /home/osiris/data/dev/emacs-lisp/org-mode/lisp/)

GNU Emacs 23.4.1
(i486-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on murphy, modified by 
Debian 

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] value of cell/spreadsheet as property value?

2014-02-13 Thread OSiUX
El mar, 11 feb 2014, Bastien decía:

 Hi Michael,
 
 Michael Brand michael.ch.br...@gmail.com writes:
 
  Cool, thank you. I added a sentence in org.texi to point out the
  dependency on the format specifier.
 
 Thanks for this,

thanks for the patch, but I do not work for me :-(

- Org-mode version 8.2.5h (release_8.2.5h-631-g076b8e @ 
/home/osiris/data/dev/emacs-lisp/org-mode/lisp/)
- GNU Emacs 23.4.1 (i486-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on 
murphy, modified by Debian

Integers, ok:

  #+COLUMNS: %STATUS(Estado) %46ITEM(Descripción) %10COST(Estimado) 
%10CASH(Real){+; %5d}

  E | Descripción | Estimado   | Real   |
| ** 2014-02  ||447 |
| *** income  ||   1000 | ...
| *** expenses||   -553 |
|  dinner ||   -110 | ...
|  party :-)  ||   -400 | ...
|  lunch  ||-43 | ...

Decimals, bad align:

  #+COLUMNS: %STATUS(Estado) %46ITEM(Descripción) %10COST(Estimado) 
%10CASH(Real){+; %5.2f}

  E | Descripción | Estimado   | Real   |
| ** 2014-02  ||  447.00|
| *** income  ||  1000.00   | ...
| *** expenses||  -553.00   |
|  dinner ||  -110.00   | ...
|  party :-)  ||  -400.00   | ...
|  lunch  ||  -43.00| ...

is there any way to debug this?
thanks again!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] value of cell/spreadsheet as property value?

2014-02-13 Thread OSiUX
El jue, 13 feb 2014, Michael Brand decía:

 Hi OSiUX
 
 On Thu, Feb 13, 2014 at 3:29 PM, OSiUX xu...@osiux.com.ar wrote:
  {+; %5.2f}
 
 Try %7.2f

yes, now it works fine, thank you!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] value of cell/spreadsheet as property value?

2014-02-11 Thread OSiUX
El mar, 11 feb 2014, Bastien decía:

 Hi,
 
 OSiUX xu...@osiux.com.ar writes:
 
  is possible to use a cell reference to a table
  or spreadsheet as a property value?
 
  Example:
 
  * lunch
:PROPERTIES:
:CASH: #lunchtable:@$2
:END:
 
#+NAME: lunchtable
| date |cash |
|--+-+
| [2014-02-10 lun] |   16.00 |
| [2014-02-07 vie] |   27.00 |
|--+-+
|  |   43.00 |
#+TBLFM: @$2=vsum(@I..@II);%0.2f
 
 No, this is not possible.

would be useful to be able to do this
 
  ... and align numbers in the columns view?
 
  *** 2014-01...
| *** 2014-02  | 447.00  |
|  income  | 1000.00 | ...
|  expenses| -553.00 |
| * dinner | -110.00 | ...
| * party :-)  | -400.00 | ...
| * lunch  | -43.00  |
 
 I'm not sure I understand -- you want numbers to be aligned
 on the left instead of the right in the column view?

default is left-aligned, I want to right align the numbers.

my properties por columns:

#+COLUMNS: %46ITEM(Descripción) %10COST(Estimado){$}
%10CASH(Real){$}

  thanks and sorry, English is not my language :-(
 
 No, problem, examples somehow speak for themselves.

:-D
  
thanks Bastien

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] value of cell/spreadsheet as property value?

2014-02-10 Thread OSiUX
is possible to use a cell reference to a table
or spreadsheet as a property value?

Example:

* lunch
  :PROPERTIES:
  :CASH: #lunchtable:@$2
  :END:

  #+NAME: lunchtable
  | date |cash |
  |--+-+
  | [2014-02-10 lun] |   16.00 |
  | [2014-02-07 vie] |   27.00 |
  |--+-+
  |  |   43.00 |
  #+TBLFM: @$2=vsum(@I..@II);%0.2f

... and align numbers in the columns view?

*** 2014-01...
  | *** 2014-02  | 447.00  |
  |  income  | 1000.00 | ...
  |  expenses| -553.00 |
  | * dinner | -110.00 | ...
  | * party :-)  | -400.00 | ...
  | * lunch  | -43.00  |

thanks and sorry, English is not my language :-(

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] bash alias and history in code block

2013-12-06 Thread OSiUX
How to use alias and bash builtin functions?

 #+BEGIN_SRC sh :session :results output
   echo $SHELL
   echo $HOME
   source ~/.bashrc
   alias | wc
   env | grep HISTTIMEFORMAT
   history | wc
 #+END_SRC

 #+RESULTS:
 : /bin/bash
 : /home/osiris
 :   0   0   0
 : HISTTIMEFORMAT=%Y-%m-%d %H:%M
 :   0   0   0

Thanks!

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] bash alias and history in code block

2013-12-06 Thread OSiUX
El vie, 06 dic 2013, Sebastien Vauban decía:

 OSiUX wrote:
  How to use alias and bash builtin functions?
 
   #+BEGIN_SRC sh :session :results output
 echo $SHELL
 echo $HOME
 source ~/.bashrc
 alias | wc
 env | grep HISTTIMEFORMAT
 history | wc
   #+END_SRC
 
   #+RESULTS:
   : /bin/bash
   : /home/osiris
   :   0   0   0
   : HISTTIMEFORMAT=%Y-%m-%d %H:%M
   :   0   0   0

 Just throwing an idea (as I don't know enough about that): play with the
 variable `org-babel-sh-command' (default: bash) and add options such as
 --login or --interactive (or stuff like that)?

Ok, add a bash -i and now is working well:

   #+BEGIN_SRC sh :session :results output
 grep bash ~/.emacs
 echo $SHELL
 echo $HOME
 alias | wc
 env | grep HISTTIMEFORMAT
 echo $BASH_VERSION
 shopt -s histappend
 set -o | grep history
 history | wc
 alias dia
 alias hh
 hh | tail
 history -a
   #+END_SRC

   #+RESULTS:
   #+begin_example
   (setq org-babel-sh-command bash -i)
   /bin/bash
   /home/osiris
   5343236   29894
   HISTTIMEFORMAT=%Y-%m-%d %H:%M
   4.2.37(1)-release
   history  on
  8275   44194  338107
   alias dia='date +%Y-%m-%d'
   alias hh='history | egrep $(dia)  | cut -c 19- | sort -u'
   17:10 set -o | grep history
   17:10 shopt -s histappend
   17:10 ssh sugar-mant
   17:10 sudo chown osiris.osiris config -R
   17:10 sudo chown osiris.osiris .* -R
   17:10 sudo chown osiris.osiris /var/run/screen/S-osiris
   17:10 sudo chown osiris.osiris /var/run/screen/S-osiris.*
   17:10 sudo -s
  #+end_example

Sometimes I forget to start clock in a task,
then I use the history to know the timestamp
:-P

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] Network Diagram

2013-09-30 Thread OSiUX
El lun, 30 sep 2013, Noorul Islam K M decía:

 Esben Stien b...@esben-stien.name writes:
 
  Any way to create something like a network diagram with org-mode?
 
  I looked in the manual and found state change diagrams and sequence
  diagrams, but nothing that would help me plan a network with routers and
  switches. 
 
  Any pointers?
 
 You can find example here http://doc.norang.ca/org-mode.html for the
 tools others mentioned in this thread.
 
 Thanks and Regards
 Noorul
 

A good tool is blockdiag:

- http://osiux.com/img/osiux-network.png
- http://pub.osiux.com/osiux-network.diag
- http://blockdiag.com/en/nwdiag/index.html

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] how to disable timestamp html export

2013-06-11 Thread OSiUX
El mié, 05 jun 2013, Nick Dokos decía:

 OSiUX xu...@osiux.com.ar writes:
 
  When export using org-publish-project,
  Org add a comment with timestamp in HTML:
 
   # git diff
 
   html xmlns=http://www.w3.org/1999/xhtml; lang=es xml:lang=es
head
titleviewing two years of orgmode with gnuplot/title
   -!-- 2013-06-05 mié 12:10 --
   +!-- 2013-06-05 mié 12:38 --
meta  http-equiv=Content-Type content=text/html;charset=utf-8 /
meta  name=generator content=Org-mode /
 
  In my .emacs, I have:
 
  (setq org-publish-project-alist
(quote ((osiux-blog-org
  ...others...options...
  :with-timestamps nil
 
  How I can disable this feature?
 
 
 To do it globally, customize org-export-time-stamp-file and set it to
 nil.
 
 Per file, you can use an option:
 
 --8---cut here---start-8---
 #+OPTIONS: timestamp:nil
 --8---cut here---end---8---
 
 or through a local variable by adding this at the *end* of the file:
 
 --8---cut here---start-8---
 # Local Variables:
 # org-export-time-stamp-file: nil
 # End:
 --8---cut here---end---8---
 
 You will need to close and reopen the file in this case, for it
 to take effect.
 
 OTOH, it's just a comment: org is trying to be helpful and tell you
 when the html file was produced. Why do you want to get rid of it?
 At some point, it might save you hours of debugging (ok, rhetorical
 exaggeration perhaps, but still...)

Nic, currently Orgmode is regenerating all .html
files, not just modified (.org), maybe that's
the error?

I use git as version control for html files
because it facilitates the deploy of my blog and
was going to be detected modified files when in
fact they were exactly the same except for the
timestamp.

Thanks!

org-export-time-stamp-file: nil works as I need.

The source files *.org:

http://github.com/osiris/osiux-blog

The HTML files with images:

https://github.com/osiris/osiris.github.com

The main site:

http://osiux.com

The git mirror:

http://git.osiux.com

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] how to disable timestamp html export

2013-06-05 Thread OSiUX
When export using org-publish-project,
Org add a comment with timestamp in HTML:

 # git diff

 html xmlns=http://www.w3.org/1999/xhtml; lang=es xml:lang=es
  head
  titleviewing two years of orgmode with gnuplot/title
 -!-- 2013-06-05 mié 12:10 --
 +!-- 2013-06-05 mié 12:38 --
  meta  http-equiv=Content-Type content=text/html;charset=utf-8 /
  meta  name=generator content=Org-mode /

In my .emacs, I have:

(setq org-publish-project-alist
  (quote ((osiux-blog-org
...others...options...
:with-timestamps nil

How I can disable this feature?

Thanks!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] INCLUDE directives in new org-mode

2013-05-06 Thread OSiUX
El lun, 06 may 2013, Wiskey 5 Alpha decía:

Hello all,
   I am trying to use the #+INCLUDE directives to have template
information for a series of orgmode files that I want to export.  Prior to
upgrading to v8, the below minimal example was working.   But as of the
upgrade, any text in an included file is just copied in verbatim.
 
--- [1]foo.org
 
#+INCLUDE: [2]date.org

The new syntax:

 #+INCLUDE: date.org

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


Re: [O] How to analyze clocking reports (e. g. with spreadsheet application)?

2013-04-28 Thread OSiUX
El sáb, 27 abr 2013, Martin decía:

 I'm using the org-mode clocking features (in org-mode 7.9.4) extensively 
 to document how much time I spent with which task and when.
 
 I wonder how I can export the data (e. g. to MS Excel) for further analysis;
 * time consumed by different projects
 * interruptions and jumping from task to task
 * time consumed by tasks with a special tag
 etc.
 
 I searched the internet and this list, but I did not find any description 
 from someone who has already 
 done that (however I'm quite sure that I'm not the first one with this idea).
 
 Any hints on how to do it or tutorials/reports from others are welcome.
 
 Martin

is possible to obtain statistics using a bash
script and plot by gnuplot, an article about it
in Spanish:

http://www.osiux.com/visualizando-org-mode-con-gnuplot.html

and a graph of each month regarding the same
color for each task over a year

http://www.osiux.com/img/org-task-by-day-2012.png

soon publish a new article in English...

recently created a public repository with some
bash scripts:

https://github.com/osiris/org-bash-utils

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] Invalid syntax in INCLUDE keyword

2013-04-16 Thread OSiUX
After upgrading, when publish a project I get
the error:

org-export-expand-include-keyword:
Invalid syntax in INCLUDE keyword  

I try delete all lines with:

#+INCLUDE: header.org

But the error persists. Anyone know how to fix it?

org-version: 8.0-pre (release_8.0-pre-410-g87e84c)
Emacs 23.4.1

thanks!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net


signature.asc
Description: Digital signature


[O] How to remote tags from calfw?

2012-03-29 Thread OSiUX
Using calfw [0], i do not know how to remove remove tags from function
cfw:open-org-calendar

Anyone can help me?

[0] https://github.com/kiwanami/emacs-calfw

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


[O] relative row reference in table formula

2012-03-01 Thread OSiUX
is possible to define the reference to the last row of the following @II+$3, to 
avoid
having to change the number of row (@4$3)?

in this example does not calculate:

  | date | item  |cost |
  |--+---+-|
  | [2012-03-01 jue] | item 1|   30.00 |
  | [2012-03-01 jue] | item 2|   20.00 |
  |--+---+-|
  |  |   |   30.00 |
  #+TBLFM: @II+$3=vsum(@I..@II);%0.2f

thanks!

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


Re: [O] Hierarchical calculations

2012-02-07 Thread OSiUX
El mar, 07 feb 2012, Rick Moynihan decía:

Hi all,
I recently wanted to use org-mode to do some simple calculations where
estimate values would hierarchically bubble up a tree, in a similar way to
checkbox percentages e.g.
* Total Effort [110]
** Task 1 [45]
*** Task 1.1 [20]
*** Task 1.2 [10]
*** Task 1.3 [15]
*** Task 1.4 [10]
** Task 2 [65]
Non leaf nodes would have their values automatically updated on a C-c C-c
to the sum of their children.  Is there a way of doing something similar
to this at the moment?  Maybe with property drawers or otherwise?  
R.

Try this:

#+begin_example

  #+COLUMNS: %50ITEM %10Effort{$} %10CASH{$}

  * DONE my item
CLOSED: [2012-01-03 mar 14:46]
:LOGBOOK:...
:PROPERTIES:
:Effort:   10.50
:CASH: 20.20
:END:

#+end_example

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


Re: [O] org-jira.el

2012-01-09 Thread OSiUX
El vie, 06 ene 2012, Bao Haojun decía:

 Hi, OSiUX
 
 OSiUX xu...@osiux.com.ar writes:
 
  El lun, 02 ene 2012, Bao Haojun decía:
 
  Hi, all
  
  I have implemented org-jira.el, bringing org-mode and Jira system
  together.
  
  Wrote a Wiki page for it on emacswiki:
  http://www.emacswiki.org/emacs/OrgJiraMode
  
  Hope somebody find it useful, if he/she is also using Jira and loves
  org-mode.
  
  
  
 
  after running Mx jira2-login, I get the following error:
 
  Symbol's function definition is void: auth-source-search
 
  howto configure login?
 
 I have fixed it. The auth-source-search is a new API from emacs24.
 
 With the new code, you will be prompted for username and password if you
 are using a lower version of EMACS.
 
 BTW, I have also renamed jira2 to jiralib, so after you check out the
 new code, you need change your .emacs accordingly:
 
 #+begin_src emacs-lisp
 (setq jiralib-url http://jira-host;)
 (require 'org-jira) ;jiralib is not explicitly required, since org-jira will 
 load it
 #+end_src
 
 Thanks.
 
 -- 
 All the best
 
  Bao Haojun

Hi Bao Haojun,

I finally discovered the error, I was using an anonymous proxy server
and JIRA apparently did not return the correct xml.

Does not work in emacs, but in emacs 24 enabling the debug managed to
capture the error::

  (let ( (url-request-method GET) (url-package-name)) 
  (let ( (soap-client.el) (url-package-version 1.0)  )) 
  (let ( ((url-mime-charset-string utf-8;q=1, iso-8859-1;q=0.5))) 
  (let ( ((url-request-coding-system (quote utf-8))  )) 
  (let ( ((url-http-attempt-keepalives nil)) (let ( (buffer  )) 
  (let ( ((url-retrieve-synchronously url))) (with-current-buffer)) 
  (let ( (buffer (declare (special url-http-response-status)))) 
  (let ( ((if ( url-http-response-status 299) (error Error )) 
  (let ( (retrieving WSDL: %s url-http-response-status mime-part)) 
  (let ( ((mm-dissect-buffer t t))) (unless mime-part (error Failed )) 
  (let ( (to decode response from server)) (unless (equal (car  )) 
  (let ( ((mm-handle-type mime-part)) text/xml) (error Server )) 
  (let ( (response is not an XML document   )) 

... then disable the proxy, start using emacs and execute
org-jira-get-projects got the list of projects and then some issues.

Excellent work, I hope that the error messages to help correct for
emacs23 org-jira.

Finally I would like to know where to change the path for the projects,
actually: /home/.org-jira

Thank you very much!
I'll stop now copy and paste from jira to  org-mode. ;-)


Enviroment Emacs23:

- Org-mode commit: 258aad0b9a428cec9195b22063e42df77dee19c2
- GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.6) of
  2011-10-25 on trouble, modified by Debian
- org-jira commit: 6fd1fd891eb716871dc5d6d680f99585f1f3602e

Enviroment Emacs24
- Org-mode commit: 56c73255c0bdd27ac42af0a02ecea9336c4594d6
- GNU Emacs 24.0.92.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.3) of
  2012-01-05 on zelenka, modified by Debian
- org-jira commit: 6fd1fd891eb716871dc5d6d680f99585f1f3602e

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


Re: [O] org-jira.el

2012-01-05 Thread OSiUX
El lun, 02 ene 2012, Bao Haojun decía:

 Hi, all
 
 I have implemented org-jira.el, bringing org-mode and Jira system
 together.
 
 Wrote a Wiki page for it on emacswiki:
 http://www.emacswiki.org/emacs/OrgJiraMode
 
 Hope somebody find it useful, if he/she is also using Jira and loves
 org-mode.
 
 
 

after running Mx jira2-login, I get the following error:

Symbol's function definition is void: auth-source-search

howto configure login?

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


Re: [O] Generating burndown charts using org mode

2011-12-31 Thread OSiUX
El sáb, 31 dic 2011, Marco Craveiro decía:

 Hi Org-Moders,

 I've been using Org-Mode quite a bit, but I'm afraid I'm not an advanced
 user. I'm trying to generate burndown charts [1] which basically follow
 coding progress over a bounded period of time (an iteration).

 I started by generating a file for each iteration:

 snippet_of_org_file
 * Tasks in iteration
 - [[file:list_1.org]]
 - [[file:list_2.org]]

 #+tblname: test_chart
 | Day | Expected | Actual |
 |-+--+|
 |   0 |4 |  4 |
 |   1 |3 |  4 |
 |   2 |2 |  1 |
 |   3 |1 |  0 |
 |   4 |0 |  0 |
 /snippet_of_org_file

Marco, try this:

snippet_of_org_file
*** burndown

#+srcname: burndown
#+begin_src sh :session
cd ~/org
MONTH=$(date +%m)
DAYS_DONE=$(egrep -A1 \* DONE gca.org | egrep -o CLOSED: 
\[[0-9]{4}-$MONTH-[0-9]{2} | cut -c 10- | sort -u)
echo day expected actual
for DAY in $DAYS_DONE
do
  NEXT_BY_DAY=$(egrep -A1 \* NEXT gca.org | egrep -o SCHEDULED: $DAY | 
wc -l)
  DONE_BY_DAY=$(egrep -A1 \* DONE gca.org | egrep -o CLOSED: \[$DAY | 
wc -l)
  echo $DAY $NEXT_BY_DAY $DONE_BY_DAY
done
#+end_src

#+results: burndown
|day | expected | actual |
| 2011-12-01 |5 |  1 |
| 2011-12-05 |3 |  1 |
| 2011-12-12 |4 |  2 |
| 2011-12-13 |2 |  1 |
| 2011-12-14 |2 |  2 |
| 2011-12-15 |2 |  2 |
| 2011-12-16 |2 |  1 |
| 2011-12-19 |1 |  2 |
| 2011-12-20 |0 |  4 |
| 2011-12-21 |0 |  6 |
| 2011-12-22 |0 |  1 |
| 2011-12-26 |0 |  2 |
| 2011-12-27 |0 |  3 |

#+begin_src gnuplot :var data=burndown :file burdown.png
reset
set xdata time
set timefmt %Y-%m-%d
set format x %d
set title burndown
set xlabel days
set ylabel taks
set xtics nomirror
set ytics nomirror
plot data using 1:2 with lines lw 2 lt 3 title col(2), \
 data using 1:3 with lines lw 2 lt 1 title col(3)
#+end_src

#+results:
file:burdown.png
/snippet_of_org_file

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


Re: [O] Spanish translation of Bernt's document

2011-12-15 Thread OSiUX
El mar, 13 dic 2011, Bastien decía:

 Dear all,
 
 just to advertise these two facts:
 
 1. Bernt kindly put his document under GNU FDL v1.3 (or later).
 
 2. Alvar (cc'ed) started a spanish translation of Bernt's doc,
please check the git repo here:
 
https://github.com/alvarmaciel/org-mode-doc-es
 
 If there are any native spanish writer/speaker, please give a hand 
 to Alvar!  Having more translations of this wonderful document will
 certainly help more people enjoy Org.
 
 Best,

Since my beginnings with org-mode, this text has been very helpful and
often thought of translating it, now I can assist in the update.

My first org-mode and rst talk slides:

- http://pub.osiux.com/charlas/todo-txt-rst+org-mode-slides.pdf
- http://osiux.com/todo-txt-rst+org-mode

I have a copy in rst/html format in my blog:

- http://osiux.com/raw/emacs-orgmode-organize-your-life-in-plain-text
- http://osiux.com/emacs-orgmode-organize-your-life-in-plain-text

Thanks for translation!

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


[O] howto integrate blockdiag in org-babel?

2011-12-06 Thread OSiUX
Hi everybody! I recently discovered blockdiag [0] and org-export-diag,
how to integrate it as a new language of babel?

[0] http://blockdiag.com/en/
[1] https://github.com/xcezx/org-export-diag

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


[O] howto paste html table in org-mode

2011-07-26 Thread OSiUX
How to paste (and convert automatically) html table in org-table?

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org



Re: [O] Calendar-like view of the org-agenda

2011-07-15 Thread OSiUX
CFW it's AWESOME!

When change the name of days and months, emacs crash!!::

 (setq calendar-week-start-day 7
  european-calendar-style t
  calendar-day-name-array
  [Dom Lun Mar Mie Jue Vie Sab]
  calendar-month-name-array
  [Ene Feb Mar Abr May Jun Jul Ago Sep Oct Nov Dic]
 )

-- 
::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature