# Recent Posts

408 posts found

Forum: Instiki – Topic: Windows installation not working

Thanks for the response.. I have installed sqlite3 per your direction and looks like it has passed the sqlite3 portion of the install.. However looks like every gem listed on the gem file i have to install manually including “rake, nokogiri, and itextomml” however im getting errors now with itextomml so that would be a bit to troubleshoot.

Never had so much trouble for something that is supposed to be so simple.. ugh..

Forum: Instiki – Topic: Windows installation not working

The sqlite3 rubygem won’t compile without thelibsqlite3 C-library. (Unlike many rubygems, which are pure Ruby, this one contains a C extension that links to the aforementioned library.)

Windows (unlike other operating systems) doesn’t come with that library installed. Some Ruby installers, for Windows, install it; evidently, some don’t. For those, you’ll have to install it yourself.

If you google around, you’ll find plenty of useful advice on this topic. Unfortunately (since i don’t have any familiarity with Windows), I’m not a useful source for such advice. But, yes, as far as I can tell, installing the Windows SQLite3 package is a prerequisite for getting the sqlite3 rubygem installed.

How does this installation work? What i gather you use “GIT” to download all the packages or i think bundles is the term and then ruby installs them on the system?

Bundler lets you manage/install rubygems, without installing them on the system. Instead, they are installed in your application’s vendor/bundle directory.

But that’s not where (as far as I can tell) your problem lies.

Forum: Instiki – Topic: Windows installation not working

thanks for the reply. I currently have Ruby 1.8.7-p371 installed with the dev kit.

So are you saying i need to download and install that package then attempt to run “ruby bundle install –path vendor/bundle” again?

Im completly new to everything here.. I have aquired this outdated windows server that i had to upgrade to 2008r2. A week ago i just learned what ruby is so you really have to bear with me.

How does this installation work? What i gather you use “GIT” to download all the packages or i think bundles is the term and then ruby installs them on the system? If thats the case, then my problem is when ruby is tries downloading the package from rubygems.org repository as it cant locate sqlite3. Even though i could manually go to the rubygems website and locate sqlite3.

Forum: Instiki – Topic: Windows installation not working

I don’t know what Ruby installation you have for Windows, but presumably, you are missing the SQLite3 precompiled binaries for Windows.

Presumably, the Windows Installation Instructions could be improved.

Forum: Instiki – Topic: Windows installation not working

I have figured out the above error.. however, now i recieve an error from the gemfile when trying to download the bundles:

D:\instiki-0.19.6>ruby bundle install –path vendor/bundle Updating http://github.com/distler/file_signature.git Updating http://github.com/distler/maruku.git Fetching source index for http://rubygems.org/ Could not reach rubygems repository http://rubygems.org/ Could not find gem ‘sqlite3 (>= 0)’ in any of the gem sources listed in your Gemfi

It cant find sqlite3 in the repository however if i try to modify the gemfile in anyway and give sqlite3 a version number or somthing i receive an syntax error. How should I contruct the gemfile and maybe force it to find the specific version thats in rubygems.org

This is the sqlite portion of the gemfile now:

“source “http://rubygems.org”gem “sqlite3”, :require => “sqlite3”

If i follow the syntax from the other bundles ie.. :require => “sqlite3” , “~> 1.3.7”

Forum: Instiki – Topic: instiki without database?

Maybe You’re right, I’m not a programmer or linux specialist. But I’ve minimum to install the sqlite libraries and perhaps other dependent packages, too. And because of older packages, maybe the need of compiling…

Keep it simple :)

antonio

Forum: Instiki – Topic: instiki without database?

I’m not sure why you think the Madeleine Persistence Layer (which, I believe, is what 0.9.2 uses) is lighter-weight than Sqlite3.

You do need to store the data somewhere. And, with Sqlite3,

• there’s no separate database process
• the data is stored in a single file, db/production.db.sqlite3.

Forum: Instiki – Topic: Feature Requests

Thanks.

Forum: Instiki – Topic: instiki without database?

what a pity; well, version 0.9.2 works ok for my usage.

I’m using a small and older linux installation (puppylinux 4.1.2) on a thin client with CF-Card. I tried some perl-wikis without database and QuickiWiki (the original from Ward Cunningham) but it’s a bit outdated :) . Newer perl-wikis have problems with hiawatha (webserver security) and/or maybe perl 5.8.8. So I give ruby-wikis a try and instiki works nice

antonio

Forum: Instiki – Topic: instiki without database?

No.

You need some database. But the default sqlite3 is as lightweight as humanly possible.

Forum: Instiki – Topic: instiki without database?

Dear,

is there a possibility to run the latest release without database? like 0.9.2?

I’m running version 0.9.2 on a small thin client and don’t want to bloat the system.

Thx antonio

Forum: Instiki – Topic: Feature Requests

Forum: Instiki – Topic: Feature Requests

Okay, so that was a pretty dubious feature request!

How about this one: if a page exists (meaning, really exists - not just a redirect) then a request to <web>/new/page should redirect either to <web>/edit/page or to <web>/show/page. If the page does exist then the effect of going to <web>/new/page and submitting stuff is the same as submitting an edit except that you don’t get the previous edit in the text box so there’s nothing to show that you’re replacing something already there. The argument for <web>/show/page being that if a page exists and you didn’t know it then you should probably have a good look at what’s already there before writing something new.

(This came up most recently because a Google search for a page led to the /new/ link even though the page exists - Google had clearly found the link somewhere and added it to its list, it does this even if a robots.txt file exists since the link exists on a page that it can read.)

Forum: Instiki – Topic: Windows installation not working

Im trying to migrate an existing wiki running on a old outdated server onto a new 2008 r2 x64 server. I have installed Ruby 1.9.3 onto the new computer and ran the Ruby bundle install –path vendor/bundle command as stated on the website however it looks like im getting a no such file or directory. I have verified that the source.rb file is located in the correct location.

D:\instiki-0.19.6\instiki-0.19.6>ruby bundle install –path vendor/bundle Fetching http://github.com/distler/file_signature.git D:/instiki-0.19.6/instiki-0.19.6/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/source.rb:57 8:in “’: No such file or directory - git clone “http://github.com/distler/file_signature.git” “D:/i nstiki-0.19.6/instiki-0.19.6/vendor/bundle/ruby/1.9.1/cache/bundler/git/file_signature-9e3f3d6fbf544 b2242ffca379f5f61bb2971e94e” –bare –no-hardlinks (Errno::ENOENT)

Also If there is any documentation or help on migrating the old wiki to the new server would be great.

Forum: Instiki – Topic: problem running instiki after installation

Probably, those instructions are out-of-date. (Help updating them would be appreciated.)

It would be best to ensure that you have a fully-functioning Ruby (1.9.3 is preferable) installation before proceeding with getting Instiki running. Perhaps these instructions might help.

Forum: Instiki – Topic: problem running instiki after installation

http://golem.ph.utexas.edu/wiki/instiki/show/Installation, the part that talked about ubuntu

Forum: Instiki – Topic: problem running instiki after installation

I followed all the instructions on your installation page for ubuntu.

What page are you talking about?

Forum: Instiki – Topic: problem running instiki after installation

Hi all, first time poster. Sorry if this has been discussed before, but I didn’t find anything on a quick search. I am running ubuntu 10.04, I followed all the instructions on your installation page for ubuntu. Everything seemed to install ok, I did all the apt-get and bundle install, but when I tried to run “./instiki –daemon” I get the following errors, fyi, my version of ruby is 1.8.7, patchlevel 249).

 /usr/lib/ruby/1.8/rubygems/dependency.rb:52:in initialize': Valid types are [:development, :runtime], not nil (ArgumentError) from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:352:in new' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:352:in search' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:346:in gems_size' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:179:in resolve' from /usr/lib/ruby/1.8/rubygems/source_index.rb:95:in sort_by' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:175:in each' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:175:in sort_by' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:175:in resolve' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:160:in start' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:128:in resolve' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:127:in catch' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/resolver.rb:127:in resolve' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/definition.rb:151:in resolve' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/definition.rb:90:in specs' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/definition.rb:135:in specs_for' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/definition.rb:124:in requested_specs' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/environment.rb:23:in requested_specs' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler/runtime.rb:11:in setup' from /home/riovine/instiki/instiki-svn/vendor/plugins/bundler/gems/bundler-1.0.18/lib/bundler.rb:107:in setup' from ./config/../config/preinitializer.rb:18 from ./config/boot.rb:28:in load' from ./config/boot.rb:28:in preinitialize' from ./config/boot.rb:10:in boot!' from ./config/boot.rb:124 from ./script/server:3:in require' from ./script/server:3 from ./instiki:6:in load' from ./instiki:6 

Forum: Instiki – Topic: migration to Rails3.

Here are the steps to follow:

Forum: Instiki – Topic: Feature Requests

It’s been suggested that this is because that is in a div with class name byline.

That seems a pretty thin reed on which to base a request for changing the class names we use.

Forum: Instiki – Topic: Bugs

I am fairly certain that none of my recent updates would affect this scenario..

But I’m happy to hear that it fixed itself.

Forum: Instiki – Topic: Bugs

… and in the time since you asked for clarification, it would appear that you’ve fixed it anyway as it no longer appears having just updated instiki.

Thanks.

Forum: Instiki – Topic: Bugs

Distillation for Distler (sorry, …)

1. Create a page with an apostrophe in the title, say apostrophe's.
2. Edit page.
3. Page magically becomes apostrophe&#x27;s.
4. Edit page, changing its name back to apostrophe's.
5. Page name is now correct.
6. Edit page.
7. Page name is mangled again.

Forum: Instiki – Topic: Feature Requests

Not sure if this is a bug or a feature request …

Google searches now include author information which it tries to glean from the page. It would appear that it uses the “Revised by XYZ” information to do this. It’s been suggested that this is because that is in a div with class name byline. I’m going to try changing this to see if it stops Google from assuming that to be the author. I don’t yet know how to override Google’s ad hoc method (which really does seem ad hoc if it uses a CSS class name as evidence).

I’ll report back on whether or not it works. If it does, consider this a feature request for changing byline to something like revisedby.

Forum: Instiki – Topic: migration to Rails3.

Hi,

I have it working (mostly), today spend some time fixing

• asset pipeline for rails3
• further clean-up
• big issue running with passenger, rvm etc…

so, the test site is running here:

http://test.netxforge.com => This is the front site, which “presents” the wiki pages. http://test.netxforge.com/netxforge/list => The actual wiki

There are a some pending issues, with URL generator, making some links not working.. etc.. so still a bit of work….

Cheers Christophe

Forum: Instiki – Topic: migration to Rails3.

This is extremely interesting.

Porting Instiki to Rails3 has long been on my TODO list. But (as you’ve seen), it’s not a small job. So it keeps getting pushed back in favour of other things. So I’m really happy you’re working on this!

Forum: Instiki – Topic: migration to Rails3.

Ah, found the problem for the issue, I reported earlier. … (took me the better part of the morning grrrr…). Ok, so WikiContent extends ActiveSupport::SafeBuffer. Now this class changed in Rails 3, overriding (Or opening up in Ruby Parlence) with the following code:

def html_safe ActiveSupport::SafeBuffer.new(self) end

So, this produces a different Class type, hence the mixed-in methods get lost! and causes a problem in PageRenderer trying to call this method. Wow, I am happy I found this one.

the file holding this method is called: output_safety.rb in lib/activesupport/kernel. I couldn’t find the alternative for Rails 2.3, to prove my point. but regardless it now works, by commenting out this line in WikiContenr.render!

# self.html_safe

BTW: The teaser screenshot is now shown, in my previous post.

Forum: Instiki – Topic: migration to Rails3.

Hi, (Jacques, I hope you are reading this!)

I am running into a tricky problem in the Rails3 migration. As you likely know, Rails 3 doesn’t load the /lib directory when starting. There are 2 options to auto-load. 1) In application.rb (which is required by Rails 3) put in a config parameter to load. There are some caveats as the names of the files versus the names of the class. 2) there is now a /config/initializers directory, and .rb is executed here.

What I have done now is:

1) config/application.rb

This will load most files, except InstikiErrors and WikiContent as the naming of the files doesn’t fit the rails loading algorithm. To load these I use:

2) config/instiki_init.rb

require ‘instiki_errors’ require ‘wiki_content’

(I also had to rename the wiki.rb class in /chunks/wiki as rails would complain, the file should declare the Wiki class ) “Expected /Users/Christophe/Documents/Spaces/netxforge_aptana/com.netxforge.store/lib/chunks/wiki.rb to define Wiki

This /lib classes are loaded, however I run into a problem when saving a page. What happens is that somehow the methods in WikiChunck Module are not available .. so it seems the mixin of this module into the WikiContent class is not working well… I know it’s a fuzzy description but I get for example the following error. You see this occurs in the PageRenderer, when calling ‘update_references’ while prior to that the method ‘render(…)’ is called which creates the variable ‘rendering_result’ correctly created. (Also some of the mixin methods should have been called by then). I am really puzzled about this. I even consider rewritting it, so that mixin is not used. (I actually wonder why a mixin solution was chosen here, it’s not code re-use is it?).

Can you help me fix this?

Here is the error:

NoMethodError in WikiController#save

undefined method find_chunks’ for #<ActiveSupport::SafeBuffer:0x007ff4863dc368>

Rails.root: /Users/Christophe/Documents/Spaces/netxforge_aptana/com.netxforge.store Application Trace | Framework Trace | Full Trace

lib/page_renderer.rb:122:in wiki_links' lib/page_renderer.rb:102:in find_wiki_words’ lib/page_renderer.rb:150:in update_references' lib/page_renderer.rb:141:in render’ lib/page_renderer.rb:29:in display_content' app/models/page.rb:30:in revise’ app/models/wiki.rb:79:in revise_page' app/controllers/wiki_controller.rb:325:in save’

Teaser below :-), Instiki on rails3.

Forum: Instiki – Topic: migration to Rails3.

Hi,

I am using Instiki, as a sort of content backend for my website. It’s a base for the website application, which needs additional functionality, which I would like to build on the latest rails 3.x. So I rolled up my sleeves and started to migrate Instiki to Rails 3, which is now almost complete. The approach is pragmatic, fixing things when they break in Rails3. I have recorded all the adaptation, and this could be a check list to ‘replay’.

So here is the thought. I would like to share this experience and help out if there is a interrest to push the original instiki to Rails3. I would however need some help from the original developers.

I can clone the original, but then would like to push it back to the original git, of course in another branch, and when all ok, that could become the new official version… what do you say?

Cheers Christophe

Forum: Instiki – Topic: Bugs

Fixed. Thanks!