Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 16 Sep 2014, 03:44
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
Didiwiki - how do I insert local images?
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
William (Dthdealer)


Joined: 30 Oct 2008
Posts: 148
Location: Australia (GMT +10)

PostPosted: Wed 14 Oct 2009, 05:51    Post subject:  Didiwiki - how do I insert local images?  

The official site is dead (taken over by spammers) and I have looked for any forums for didiwiki to no avail. AFAIK the puppy-linux forums are the only place to ask about it, as it is a central piece of software used in Puppy.

Note this is a Debian system I'm running - although this information would be exact for other users (and myself) when using Puppy.

According to didiwiki syntax, to include an image in a page you simply have to put in its URL. How do I get this to work with local-files? I have a picture of the Pale Blue Dot in my ~/.didiwiki/ directory.

Code:
file:///home/whales/.didiwiki/PaleBlueDot.jpg


This is the official syntax for local files in internet browsers, but it is not interpreted by didiwiki. Nothing appears but a blank line.

Does anyone know how to include images stored locally?
Back to top
View user's profile Send private message 
William (Dthdealer)


Joined: 30 Oct 2008
Posts: 148
Location: Australia (GMT +10)

PostPosted: Wed 14 Oct 2009, 06:07    Post subject:  

Sorry, it seems this isn't didiwiki related at all.

I checked the source of the page. The image tag was setup perfectly, but the browser console said permission was denied. Same on both Firefox and Midori.

Possibly because the url isn't either a local file or localhost (instead my hostname) the system is setup to not allow retrieval of local files to avoid unwanted retrievals from alien websites. Darn.

Mods can delete this topic - it is neither puppy nor didiwiki related.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2247

PostPosted: Wed 14 Oct 2009, 06:47    Post subject:  

Hmm, that seems to work for me.
didiwiki uses an internal server, so it should be immune from whatever settings you have for other servers. Try using dillo to view the wiki.

Yes, the official didiwiki pages and files are gome, but I recently brought it back to life, fixed some things and added some features. You can get the sources attached in this thread:
http://www.murga-linux.com/puppy/viewtopic.php?search_id=1293481732&t=47185

Let me know if you have problems, comments or suggestions -you can email me at <amigo> AT <ibiblio.org>
Back to top
View user's profile Send private message 
William (Dthdealer)


Joined: 30 Oct 2008
Posts: 148
Location: Australia (GMT +10)

PostPosted: Wed 14 Oct 2009, 07:58    Post subject:  

Thankyou - many improvements in .8
But, for some reason the DidiWiki files for version .5 were not kept in ~/.didiwiki. After a sudo apt-get remove didiwiki I realised all of my pages probably went with it.

Where are the pages held (other than in my home directory) for v.5?
Back to top
View user's profile Send private message 
William (Dthdealer)


Joined: 30 Oct 2008
Posts: 148
Location: Australia (GMT +10)

PostPosted: Thu 15 Oct 2009, 00:50    Post subject:  

Ahhh! I'm getting creeped out by ghosts.
After a re-boot they all came back! Yay!

Thankyou much amigo for extending Didiwiki - it is now better than ever.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2247

PostPosted: Thu 15 Oct 2009, 04:24    Post subject:  

If you start didwiki as a daemon, it will use /var/lib/didiwiki as the default directory to store files. Otherwise ~/didiwiki is used.

Since you are running debian, you may want to install the didiwiki conf and init files from debian when you build it.

http://packages.debian.org/sid/didiwiki

I appreciate the feedback!
Back to top
View user's profile Send private message 
William (Dthdealer)


Joined: 30 Oct 2008
Posts: 148
Location: Australia (GMT +10)

PostPosted: Fri 16 Oct 2009, 19:28    Post subject:  

Even after un-installing the deb it still comes up with the old wiki on boot Smile I think I'll just remove the didiwiki script from boot (/etc/init.d/didiwiki) and manually start it when I login - much easier.

However attempts to get locally stored images to work are futile. I've tried both firefox (gecko) and Midori (webkit) to no avail.

Both file:///directories/image.jpeg and http://hostname:8000/image_in_.didiwiki_folder.jpeg don't work. Opening the image up from the index gives me four unknown characters.

On the good side of things the inclusion of a stylesheet is a godsend - being able to customise the look of didiwiki is amazing.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2247

PostPosted: Sat 17 Oct 2009, 02:59    Post subject:  

Uninstalling the deb or other package won't usually remove files created by the program after installation. The first time you run didwiki it creates the basic starting wiki page.
If you are not using the init script to start it, you may need/want to specify the didiwiki 'home' using the '--home' option.
Back to top
View user's profile Send private message 
oui

Joined: 20 May 2005
Posts: 2076
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Fri 05 Feb 2010, 05:40    Post subject: external wiki working as didiwiki  

hi

what kind of wiki uses exactly the same wiki text code as didiwiki? examples of realisations available?

bye
Back to top
View user's profile Send private message 
oui

Joined: 20 May 2005
Posts: 2076
Location: near Woof (Germany) :-) Acer Laptop emachines 2 GB RAM AMD64. franco-/germanophone, +/- anglophone

PostPosted: Sat 06 Feb 2010, 20:11    Post subject:  

Hi Amigo

I did find a new application for didiwiki for me:

As I am writing in different languages, I have no dictionary to check the orthography. If I write into the edit windows of an empty page of didiwiki instead of editor, all the dictionaries from Seamonkey are operable!

But I find the little windows for editing in didiwiki really small (limited in the high direction)! why? I don't understand why! there is no logic reason... the control button for "save" at the bottom of the little windows could be at the top and the edit windows full sized!

I will ask if you know if it would be possible to change this details.

Last point: for this usage a supplementary button "cut all+into clipboard" would be more useful as "save" Idea

Best regards
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0661s ][ Queries: 12 (0.0089s) ][ GZIP on ]