Recent Posts

Subscribe to Recent Posts 564 posts found

posted 8 years ago
distler 123 posts

Forum: Instiki – Topic: Installation problem

I assume you’re running on localhost?

In that case, you should be able to access the URL

http://127.0.0.1:2500/

If you have more than one wiki (“web” in Instiki’s idiosyncratic parlance), this will redirect to

http://127.0.0.1:2500/web_list

If you have only one web configured it will, instead, redirect to the HomePage of that web.

 
posted 8 years ago
handy 9 posts

Forum: Instiki – Topic: Installation problem

OK I read your wiki page on the syntax, so here is my error in full:

<nowiki>No route matches "/handy.wiki/show/HomePage" with {:method=>:get}</nowiki>
 
posted 8 years ago
handy 9 posts

Forum: Instiki – Topic: Installation problem

I’ll try the code option before I read the wiki page again: ;)

‘code’No route matches “/handy.wiki/show/HomePage” with ’/code’

 
posted 8 years ago
handy 9 posts

Forum: Instiki – Topic: Installation problem

Thanks for your reply. :)

I installed git, & then followed your instructions & installed instiki. (The AUR package is certainly out of date!)

Then I ran instiki, intered a wiki name/address for my local wiki & a password.

When I hit the next button I get a “HomePage” with the following error:

Routing Error

No route matches “/handy.wiki/show/HomePage” with

Once again I’m at a loss?

If you could please point me in the right direction I’ll be very grateful?

 
posted 8 years ago
distler 123 posts

Forum: Instiki – Topic: Installation problem

I would not expect the (ancient!) gem version of Instiki to work at all.

What you need to do is

git clone https://github.com/parasew/instiki.git
cd instiki
ruby bundle install  --path vendor/bundle

Then, if all went well,

ruby ./instiki --daemon
 
posted 8 years ago
handy 9 posts

Forum: Instiki – Topic: Installation problem

Hi there,

  • I’m running Arch Linux.

I’ve installed: * ruby 2.4.2p198 * Created ~/.gem/ruby/2.4.0/bin ruby_gems updated (have multiple directories & files in …/2.4.0/ now)

Ran a couple of tests (found on the web) & Ruby seems to be functioning OK.

  • used the following to install instiki: gem install instiki ~/.gem/ruby/2.4.0/bin/

When I enter ./instiki –daemon I get the following errors:

‘code’ [handy@notebang ~/.gem/ruby/2.4.0/bin]$ ./instiki –daemon /home/handy/.gem/ruby/2.4.0/gems/instiki-0.10.2/instiki:6:in load': /home/handy/.gem/ruby/2.4.0/gems/instiki-0.10.2/script/server:27: formal argument cannot be a constant (SyntaxError) 'Default: 2500') { |OPTIONS[:port]| } ^ /home/handy/.gem/ruby/2.4.0/gems/instiki-0.10.2/script/server:27: syntax error, unexpected '[', expecting '|' 'Default: 2500') { |OPTIONS[:port]| } ^ /home/handy/.gem/ruby/2.4.0/gems/instiki-0.10.2/script/server:30: formal argument cannot be a constant 'Default: 0.0.0.0') { |OPTIONS[:ip]| } ^ /home/handy/.gem/ruby/2.4.0/gems/instiki-0.10.2/script/server:30: syntax error, unexpected '[', expecting '|' Default: 0.0.0.0') { |OPTIONS[:ip]| } ^ from /home/handy/.gem/ruby/2.4.0/gems/instiki-0.10.2/instiki:6:in

<top></top>(required)>' from ./instiki:23:in `load' from ./instiki:23:in `<main>' '/code'</main>

Any help will be much appreciated.

 
posted almost 9 years ago
distler 123 posts

edited almost 9 years ago

Forum: Instiki – Topic: macOS nokogiri

Hmmm. That’s unexpected. You can edit the Gemfile to replace the line

gem "nokogiri", '~>1.7.0'

with

gem "nokogiri", '~>1.6.0'

which should work fine.

Or you can install a more recent version of Ruby (current is 2.4.0; you have 2.0.0).

 
posted almost 9 years ago
ifoerster 1 post

Forum: Instiki – Topic: macOS nokogiri

Hello, I try to install instiki on macOS but the gem file always produce an error:

Fetching https://github.com/distler/maruku.git Fetching gem metadata from http://rubygems.org/……. Fetching version metadata from http://rubygems.org/. Resolving dependencies… nokogiri-1.7.0.1 requires ruby version >= 2.1.0, which is incompatible with the current version, ruby 2.0.0p648

Anybody can help here?

 
posted 9 years ago
natebottman 5 posts

Forum: Instiki – Topic: .png files displaying only intermittently

I have been experiencing a weird bug, I wonder if someone knows a fix? On my personal (locally-stored) instiki, I have a bunch of .png files (not huge, all less than 1MB), displayed on various pages. Occasionally I will navigate to a page and instead of displaying the images, it will show me the prompt that shows up when you include an image that has not yet been uploaded – something like nice-pic.png? , in gray. When I click the “?”, it does one of two things: either it initiates a download of the .png file, or it shows me the image in my browser (but on a blank page, with nothing besides the image). In one case this bug resolved itself – after reloading a few times the images showed up again. In another case that didn’t work, and I had to remove the instances of “[[nice-pic.png:pic]]” from my source, submit it, then add the instances back in, and submit one more time.

Any ideas??? Not a big deal, but kinda annoying.

 
posted 9 years ago
distler 123 posts

Forum: Instiki – Topic: Best way to center in markdown?

There are several options. The easiest is

![My former cat](https://golem.ph.utexas.edu/~distler/bree.jpg)
{: style="text-align:center;}

My former cat

 
posted 9 years ago
natebottman 5 posts

Forum: Instiki – Topic: Best way to center in markdown?

What’s the best way to center an image in markdown? Do I need to resort to HTML, or is there something built-in?

Thanks!

 
posted 9 years ago
natebottman 5 posts

Forum: itex2MML – Topic: possible to create web-wide "preamble"?

Oh, GreaseMonkey looks promising. Thanks!

 
posted 9 years ago
distler 123 posts

Forum: itex2MML – Topic: possible to create web-wide "preamble"?

Do you use Firefox?

A GreaseMonkey script could provide that sort of customization (and more).

There are other extensions for using an external editor with textareas, which would be another way to get the sort of customizable editing experience you are looking for.

 
posted 9 years ago
natebottman 5 posts

Forum: itex2MML – Topic: possible to create web-wide "preamble"?

I see, thanks Jacques. Can you think of any workaround that would let me (for instance) type \b every time I want a \bullet ?

 
posted 9 years ago
distler 123 posts

Forum: itex2MML – Topic: possible to create web-wide "preamble"?

No.

Macros are not a feature of itex2MML.

The first reason is security: it’s very hard to protect against the (La)TeX equivalent of the billion laughs attack. This is, of course true of TeX/LaTeX itself, but it’s a much more serious concern when used in a web application (like Instiki, or this forum software).

The second reason is an implementation detail: in the preferred mode of use (as used in Instiki and in this forum software), a separate invocation of itex2MML is used for each formula. A macro defined in one invocation could not be “re-used” in another.

Now, neither of these would be incompatible with implementing a “global” preamble (whose content would be controlled by the website owner and not alterable by ordinary users). On the other hand, that would be rather less-than-useful on a public wiki (or forum), so there hasn’t been much user demand for such a feature either.

I guess a private wiki would be one use-case where it might be desirable …

 
posted 9 years ago
natebottman 5 posts

Forum: itex2MML – Topic: possible to create web-wide "preamble"?

I have a local wiki, with Instiki 0.19.8 and Ruby on Rails 2.3.18 . It would be great if I could create a “preamble” in order to define some tex commands – eg, if I could include a line \newcommand\b{\bullet} , and on every page I could type \b instead of \bullet . Is this already a feature?

 
posted 9 years ago
distler 123 posts

Forum: Heterotic Beast – Topic: Is Heterotic Beast Compatible With RDBMS?

Heterotic Beast supports any RDBMS backend that Rails supports.

 
posted 9 years ago
ryuwaraimasa 1 post

edited 9 years ago

Forum: Heterotic Beast – Topic: Is Heterotic Beast Compatible With RDBMS?

Looking for a forum software that is compatible with database management system software such as Tibero. I want to be able to make the data quantifiable and run it through a program to analyze user data and what not. Let me know if this is possible and if you need more information on the software I will be using click here.

 
posted 9 years ago
weilina 1 post

Forum: Heterotic Beast – Topic: Can I view the source text for other people's posts?

Instead of simulating the edit function where content is shown in place, I would preferably show this in a popup. That way users couldn’t mix up the functionality and get confused. You can also add some information like the Format to the popup.

 
posted almost 10 years ago
distler 123 posts

Forum: Instiki – Topic: Dreamhost installation issues

The whole point of rbenv (or rvm) is to set up your paths correctly so that, when you type ruby, you get the desired executable. I don’t know anything about Dreamhost, and didn’t really read the rbenv installation instructions that you followed, but evidently they didn’t quite achieve the desired result.

 
posted 10 years ago
joelwatsonfish 7 posts

Forum: Instiki – Topic: Dreamhost installation issues

Since I haven’t tried installing Instiki, I don’t have have an Instiki directory, however from my home directory, the following

$ ruby --version

yields

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

However, from /home/username/.rbenv/versions/2.2.0/bin/ the following

$ ruby --version

yields

ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]

 
posted 10 years ago
distler 123 posts

Forum: Instiki – Topic: Dreamhost installation issues

OK. So let’s assume you’ve gotten that far correctly. cd to your Instiki directory and try

ruby --version
ruby bundle install

The first command should return the version of Ruby you’re using (hopefully 2.2). The second should run the included version of Bundler (as opposed to the one you installed via rbenv).

 
posted 10 years ago
joelwatsonfish 7 posts

Forum: Instiki – Topic: Dreamhost installation issues

I tried following the instructions to install rbenv and got stuck at the line

$ bundle install

as it gives the error (in red)

Could not locate Gemfile or .bundle/ directory

I found a Gemfile in a couple of subdirectories of ~/.rbenv/ but it’s not in my ~/websitename/ directory, which is where the script was supposed to be run from. I posted the same question on the forum/comments section there, but it looks like it’s been a year since the guy responded last, so I’m not sure if I’ll get a response. Any thoughts?

[EDIT:] I should add that I was trying to install Ruby 2.2.0

 
posted 10 years ago
distler 123 posts

Forum: Instiki – Topic: Dreamhost installation issues

rbenv is certainly the preferred way to get multi-version Ruby support. So I would go with that, and target Ruby 2.1 or 2.2.

 
posted 10 years ago
joelwatsonfish 7 posts

Forum: Instiki – Topic: Dreamhost installation issues

There aren’t any options that are completely obvious to me (e.g. one click/command install/update etc.). Google searching a bit turns up the following.

  1. Building ruby from source: how to

  2. Another build ruby from source: how to

  3. Installing via RVM how to

  4. Installing via rbenv how to

I think to install RVM I need to run a VPS which increases my monthly costs significantly.

 
posted 10 years ago
distler 123 posts

Forum: Instiki – Topic: Dreamhost installation issues

I think it would be better to start with a more recent version (≥1.9.3) of Ruby.

What are your options for that?

 
posted 10 years ago
joelwatsonfish 7 posts

Forum: Instiki – Topic: Dreamhost installation issues

Okay, I have a fresh account to start with. I set up passenger, backed up all files and folders in ~/BACKUP/ and I’ve done nothing else with the clean account.

$ ruby -v

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

$ rails -v

Rails 3.0.3

$ bundler -v

-bash: bundler: command not found

What should my next step be? Update Ruby, or follow the hosted services instructions?

 
posted 10 years ago
distler 123 posts

Forum: Instiki – Topic: Dreamhost installation issues

“… although if I want to run Ruby 2.1 or 2.2 I think I’m going to have to build it from source, which I don’t know how to do yet.”

Build Ruby from source? I don’t think you want to do that (unless you really have to). It would be better to have a known-working version of Ruby, so that we don’t have to debug possible problems in your Ruby installation as well (well, OK, technically we are already doing that, since your versions of Ruby and Rubgems aren’t totally compatible).

Instiki should work fine with Ruby 1.9.3, if that’s really the most recent version you have access to. We’d just need to modify a line in config/boot.rb to take care your problem with Rubygems.

 
posted 10 years ago
joelwatsonfish 7 posts

Forum: Instiki – Topic: Dreamhost installation issues

I edited the Gemfile because following the instiki Hosted Services instructions caused an error, and google searching the error for a while turned up the suggestion to make the modification the the Gemfile. It seemed to make progress, but maybe not.

Ruby 1.8.7 seems to be the default version on Dreamhost, and so I think because you wrote

Hmmm. I’m afraid that Maruku no longer supports Ruby 1.8.x (which is EOL). I think you need at least Ruby 1.9.3.

they upgraded me from 1.8.7 to 1.9.3, but not to 2.x (at least, I’m assuming that’s an upgrade). Later today I’ll try to uninstall everything, and start from scratch, although if I want to run Ruby 2.1 or 2.2 I think I’m going to have to build it from source, which I don’t know how to do yet. I’m used to installing via yum/apt-get, so if you could point me to a link to build from source, that would be helpful. If not, I’ll figure try to figure it out on my own, and post the output here.

Thank you very much for your help.

 
posted 10 years ago
distler 123 posts

Forum: Instiki – Topic: Dreamhost installation issues

I’m sorry. I am quite confused as to your configuration.

In your first message, you indicated that

  1. You had willy-nilly modified your Gemfile. Did you revert that modification before trying again?
  2. Your Ruby version was 1.8.7.

Now you tell me that progress was made by downgrading your Ruby version to “<2.0”?!?

That said, I sorta understand the error about Gem.source_index. The version(s) of Rubygems which came with Ruby < 2.0 had that method. Later versions do not. So there’s a monkey-patch in config/boot.rb to supply the missing method for Ruby ≥ 2.0.

Evidently, you have the odd combination of an old (1.9.3) version or Ruby and a recent version of Rubygems.

Maybe you should start again with

  • an unmodified installation of Instiki.
  • a recent version of Ruby: I recommend 2.1 or 2.2.

Run ruby bundle install and see what happens. If that fails, post your errors here. If it succeeds, but then ./instiki fails, post your Gemfile.lock, so we can see what got installed.