Re: [Zim-wiki] problems installing zim0.55 on mac OS 10.7.3

2012-03-01 Thread Jaap Karssenberg
On Thu, Mar 1, 2012 at 1:06 AM, Robert Corty rco...@gmail.com wrote:

 I did so and got the following error:

 ERROR: Could not find python module files in path:
 list of paths
 long list of paths
 Try setting PYTHONPATH


So does the list of paths contain /path/to/zim-0.55 or . ? Because the
files that is where the missing files are.

-- Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Multi user?

2012-03-01 Thread Svenn Bjerkem
On Thu, 2012-03-01 at 09:17 +, João Santos wrote:
 Either way, ideally,  zim should support simultaneous access to the
 files, for example in a NFS or SMB shared filesystem.

Yupp, that what it all boils down to.

-- 
Svenn


___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Feature suggestion - outliner

2012-03-01 Thread mowestusa
I may be missing a point that is being made in this feature request, but 
couldn't you do something similar with just simple renaming of sub-pages since 
ZIM will rename the links for you if you did link pages.

For example, your book starts as a single file under a name space:

(Namespace) Great Novel
(sub-page) book body

Realize that your writing has turned into chapters:

(Namespace) Great Novel
(sub-page) Chapter 1
(sub-page) Chapter 4

Realize that things need to be broken up more:

(Namespace) Great Novel
(sub-page) 01 Chapter
(sub-page) 02 Chapter
(sub-page) 04.01 Chapter
(sub-page) 04.02 Chapter
(sub-page) 04.03 Chapter

I mention this because I use a similar system to track all of my open projects. 
Most of my projects have a date (like meeting prep) or a month in which they 
need to be completed. So I name all of my projects using date codes that 
automatically reshuffle and stay in chronological order.

(Namespace) Projects
(sub-page) 2012-03-01 Faculty Meeting

(sub-page) 2012-04 Open House Follow-Up

If a date gets changed for a meeting, I simply change the date, and it 
reshuffles the projects so that it is always in chronological order.
 

| Steve |
| mowest...@yahoo.com  |




 From: Ulf Bro ulf@web.de
To: zim-wiki@lists.launchpad.net 
Sent: Tuesday, February 28, 2012 3:01 AM
Subject: [Zim-wiki] Feature suggestion - outliner
 
I find Zim very useful for saving a lot of data in my everyday situation at 
work. There are a lot of things to keep in written form somewhere like when 
the customer wants this and that, then have him fill this form and call that 
telephone number at these particular weekdays and hours or these things are 
ordered by this or that company, ordering is sent by fax at Mrs. so and so. 
Thousands of small details, my data base is growing all the time. One namespace 
is enough for that.

Now there is one additional feature which could be added to zim with only minor 
programming.

If someone is writing a book and just starts to write the book not from the 
beginning but in the middle then he at some time will determine that his work 
has now grown to a size that he has to split it in two chapters.

Sooner or later he has 5 chapters and some of the things in chapter 2 really 
belongs in chapter 4 and have to be moved. Then chapter 4 must be split in 3 
sections, 4.1, 4.2 ,nd 4.3. Et cetera.

For such purposes you normally use an outline editor.

Now Zim can do some of that too. You can make pages and sub-pages and move them 
around like you want to. You can link them to each other or not link them as 
you like.

Just one thing you can't do is to change the order of files appearing in the 
same namespace (physically they are files in the same folder). They always 
appear in alphabetical order. If Zim were to be changed so that pages can be 
swapped (and thus appear in another order in the index file) then Zim would 
actually be an outline editor. We would then just need a function to export 
everything into one big text file, or one big html file, that's all. It would't 
be difficult to program.

This means you could write a complete book without linking any files at all (if 
you want). Or link as many as you want.

There are other outliners out there but they aren't particularly good at cross 
linking and updating links when pages are moved.

Ulf 

___
Mailing list: https://launchpad.net/~zim-wiki
Post to     : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Multi user?

2012-03-01 Thread João Santos
I've made a simple lock mechanism. I believe this lock mechanism should
work both on Windows and Linux (I've only tested on Linux and only on a
local filesystem). I'll test it in windows and shared filesystems later.


2012/3/1 Jaap Karssenberg jaap.karssenb...@gmail.com

 On Thu, Mar 1, 2012 at 11:01 AM, João Santos j...@jsantos.eu wrote:

 Wouldn't this module: http://packages.python.org/lockfile/lockfile.htmldo 
 the job?


 Afraid not. This module will do locking between multiple processes on the
 same system, but it is not suitable for .e.g. multiple systems accessing
 the same share drive.

 I think the most important use case for this multi-user sharing is each
 user having his or her own computer, but sharing a share drive.

 So locking needs to be platform independent, and can only use the (shared)
 file system.

 Regards,

 Jaap


import os
import uuid
import shutil


class LockFailedError(Exception):
pass


class NotMyLockError(Exception):
pass


class CrossLock(object):

def __init__(self, name):
Represents a lockfile with a name
self.lock = .{0}.lock.format(name)
#We will have a unique id to assure that the lock
#belongs to the instance
self.id = uuid.uuid1()
self.filename = {0}/{1}.format(self.lock, self.id)

def _create_lockfile(self):
Creates the lock dir and file
#mkdir is atomic on windows and linux
#and will fail if dir already exists
os.mkdir(self.lock)
os.mknod(self.filename)

def acquire(self):
Tries to acquire lock.
try:
self._create_lockfile()
except:
raise LockFailedError

def break_lock(self):
Removes the lock directory
shutil.rmtree(self.lock)

def is_locked(self):
Tests if the file is locked
return os.access(self.lock, os.F_OK)

def is_my_lock(self):
Tests if the lock belongs to the instance
return os.access(self.filename, os.F_OK)

def release(self):
Removes the lock but only if owned by the instance
if not self.is_my_lock():
raise NotMyLockError
else:
self.break_lock()

if __name__ == '__main__':
lock = CrossLock(teste)
lock2 = CrossLock(teste)

print Trying to get get lock
try:
lock.acquire()
print Correct (Succeeded)
except:
print Incorrect (Failed)

print Trying to get a lock again
try:
lock.acquire()
print Incorrect (Succeeded)
except:
print Correct (Failed)

print Trying to release the lock with the wrong instance
try:
lock2.release()
print Incorrect (Succeeded)
except:
print Correct (Failed)

print Tryng to release the lock with the correct instance
try:
lock.release()
print Correct (Succeeded)
except:
print Incorrect (Failed)
raise

print Testing if it's locked
if lock.is_locked():
print Incorrect (True)
else:
print Correct (False)

print Trying to get get lock again
try:
lock.acquire()
print Correct (Succeeded)
except:
print Incorrect (Failed)

print Testing if it's locked
if lock.is_locked():
print Correct (True)
else:
print Incorrect (False)

print Trying to break the lock
try:
lock2.break_lock()
print Correct (Succeeded)
except:
print Incorrect (Failed)
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Zim 0.55 released !

2012-03-01 Thread Damien Accorsi

Hello all,

I wrote an article presenting the 0.55 release for the french site 
LinuxFR. It should be online in the next hours.


Damien


On 02/28/2012 09:57 PM, Jaap Karssenberg wrote:

Dear all,

I just uploaded version 0.55 of zim to the website. This release add
support for numbered lists, adds Markdown as export format (and Copy
As format). Also the index is now sorted naturally (so 10 sorts
below 9) and there is a new plugin to show a table of contents per
page. The search dialog has been fixed so it no longer hangs while
searching, results are now shown incrementally and the search can be
canceled. Fixed bugs with the export dialog, and for case sensitive
rename on windows.

Enjoy!

Jaap


CHANGELOG:

=== 0.55 - Tue 28 Feb 2012 ===
* Numbered lists are now supported
* The index now has natural sorting, so 9 goes before 10
* Added new plugin to show a Table Of Contents per page, and allows
modifying the outline
* Added Markdown (with pandoc extensions) as an export format
* New context menu item move text for refactoring text to a new page
* Tasklist now supports a next: keyword to indicate dependencies,
   and it can hide tasks that are not yet actionable
* Made zim taskbar icons and trayicon overloadable in theme - Andrei
* Fixed behavior of Recent Pages pathbar in cases where part of the
history is dropped
* Fixed behavior of the Search dialog, it no longer hangs and also
allows cancelling the search
* Fixed bug where replacing a word (e.g spell correction) could drop
formatting
* Fixed behavior of case-sensitive rename on a case-insensitive file
system (windows)



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Feature suggestion - outliner

2012-03-01 Thread Ulf Bro
 but couldn't you do something similar with just simple renaming of
 sub-pages since ZIM will rename the links for you if you did link
 pages.

I could
 
 For example, your book starts as a single file under a name space:
 
 (Namespace) Great Novel
 (sub-page) book body
 
 Realize that your writing has turned into chapters:
 
 (Namespace) Great Novel
 (sub-page) Chapter 1
 (sub-page) Chapter 4
 
 Realize that things need to be broken up more:
 
 (Namespace) Great Novel
 (sub-page) 01 Chapter
 (sub-page) 02 Chapter
 (sub-page) 04.01 Chapter
 (sub-page) 04.02 Chapter
 (sub-page) 04.03 Chapter

This is very well possible. When you work with very large texts you
offen decide that Chapter 04.03 can be split in two. The second half of
this chapter can be joined to Chapter 07.03 whereas the first half of
it can be pushed between 03.02 and 03.03. So the old 03.03 must be
renamed to 03.04. The old 03.04 must be renamed to 03.05 et cetera.

After doing that you may decide that the contents of Chapter 2 and 3
should be rearranged. The first half of Chapter 2 should be Chapter 2.
The second half together with the first half of Chapter 3 should be
Chapter 3. The rest should be Chapter 4. The old Chapter 4 must now be
renamed to Chapter 5 et cetera.

With an outliner like MaxThink these operations are a work of about 10
seconds in all. They can be done without lifting the fingers off the
keyboard, you don't need a mouse for that.

MaxThink users mostly type all the ideas they have so fast as possible
without caring for if the ideas are in any way related to one another.
After having touch typed for a certain time you review what you have
done. With help of the built in functions like sort, or prioritize
or gather etc. you collect ideas into bins or containers. When you
look at the contents of every container you see what is missing. Then
you add the missing ideas, splitting the container where necessary.
Then again you join the containers into chapters.

As time goes by your work gets more and more structure.

So when you are asked to write an article about your city you don't
start with the concept: first I write about where the city is, then how
many inhabitants, what language they speak, and then the history. Then
afterwards the industry and the cultural things.

No, no. You write about the particular zoo that's very famous. Then you
think about one particular park where the skateboarders meet. At once
you remember that this is in the vicinity of the freemason lodge, that
again lets you remember a famous freemason who discovered the
Neanderthal Man. Which again is not far from the new Mosque. This again
leads to think about the problems that arose last year as there was a
heavy snowfall so that your grandmother hurt her leg. And so on. You
just sit there and hammer in all kinds of ideas and only later you care
to structure your work. Then, after having written 80 pages, you come
to mention where the city is at, and what's the mayor's name and all
that. Afterwards. Completing the task and rounding it off. Start in the
middle and work forwards and backwards at the same time. Or start at
the end and work backwards. Or write everything at the same time. How
ever you want.

This is a very creative way of writing. Often the end product looks
quite different from your original notion. 

See the MaxThink homepage for examples of how this software enhances
thinking. According to its creator Neil Larson, higher thinking
consists of 4 tasks: (1) sorting (2) prioritizing (3) analysis
(= splitting) and (4) synthesis (= joining). (Lower thinking includes
such no-brainers like learning 8000 anatomical structures with their
Latin names by heart, or knowing how to cure a tonsillitis or an
atrial re-entry tachycardia). This lower thinking is nothing but
storing a lot of data in the head or on paper or in a file, and
retrieving it again. Telephone books do that. Higher thinking, on the
contrary, is gaining wisdom from data already there - prioritizing what
is important and what not, sorting to do the first things first,
analysing to break down a problem to self defined components, and
synthesis in collecting the pieces to new components of realization.

On Linux I use gjots, on Windows MaxThink.

Now you can't do that with Zim (yet), can you?

Ulf

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Call for user cases ?

2012-03-01 Thread hansbkk
On Thu, Mar 1, 2012 at 4:49 PM, Dotan Cohen dotanco...@gmail.com wrote:

 The dataloss and the fact that Zim cannot handle arbitrary text for input
 are the reasons why Zim is unsuitable for use. The mislabel icon and
 reappearing links are reasons why Zim seems only half-baked.


One of my many use cases is storing code samples. If this is considered a
 valid use case then the two primary issues that I mention must be addressed.


It is possible that your IMO overly forceful style of expressing your ideas
will work against your goals.

 cannot handle arbitrary text

While I'm not storing code in the normal sense at this point, many of my
source file trees **are** marked up with other syntaxes, so in those cases
I'd prefer to be able to turn off Zim's rendering. However I haven't yet
come across any arbitrary **changes** to my data or actual data loss - so
far they're just issues visual appearance - could you be more specific
about any issues where Zim actually changes your data against your wishes
(other than the headers of course)?
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Call for user cases ?

2012-03-01 Thread Dotan Cohen
On Fri, Mar 2, 2012 at 03:29,  hans...@gmail.com wrote:
 On Thu, Mar 1, 2012 at 4:49 PM, Dotan Cohen dotanco...@gmail.com wrote:

 The dataloss and the fact that Zim cannot handle arbitrary text for input
 are the reasons why Zim is unsuitable for use. The mislabel icon and
 reappearing links are reasons why Zim seems only half-baked.


 One of my many use cases is storing code samples. If this is considered a
 valid use case then the two primary issues that I mention must be addressed.


 It is possible that your IMO overly forceful style of expressing your ideas
 will work against your goals.


Possibly, and I appreciate your telling me that. I don't see where I
have been forceful but I'm sure that you're right. I am certainly no
diplomat!


 cannot handle arbitrary text

 While I'm not storing code in the normal sense at this point, many of my
 source file trees **are** marked up with other syntaxes, so in those cases
 I'd prefer to be able to turn off Zim's rendering. However I haven't yet
 come across any arbitrary **changes** to my data or actual data loss - so
 far they're just issues visual appearance - could you be more specific about
 any issues where Zim actually changes your data against your wishes (other
 than the headers of course)?

This bug has a real-life example:
https://bugs.launchpad.net/zim/+bug/585300

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp