Recent Posts

Subscribe to Recent Posts 455 posts found

posted almost 4 years ago
Trich 1 post

Forum: Instiki – Topic: ubuntu upgrade broke instiki

Seems like the upgrade switched ruby from 2.5 to 2.7. I’ve been using instiki on LAN as a wiki for our home business. And now it’s kaput. I’ve tried redownloading and running a test.

The output from my local installs:

/home/rich/instiki/vendor/rails/activesupport/lib/active_support/core_ext/uri.rb:7: warning: URI.escape is obsolete
/home/rich/instiki/vendor/rails/activesupport/lib/active_support/core_ext/uri.rb:7: warning: URI.unescape is obsolete
=> Booting Thin
=> Rails 2.3.18 application starting on http://0.0.0.0:2500
Traceback (most recent call last):
	26: from ./instiki:6:in `<main>'
	25: from ./instiki:6:in `load'
	24: from /home/rich/instiki/script/server:86:in `<top (required)>'
	23: from /home/rich/instiki/script/server:86:in `eval'
	22: from /home/rich/instiki/config.ru:1:in `<top (required)>'
	21: from /home/rich/instiki/config.ru:1:in `new'
	20: from /home/rich/instiki/vendor/bundle/ruby/2.7.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
	19: from /home/rich/instiki/vendor/bundle/ruby/2.7.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
	18: from /home/rich/instiki/config.ru:3:in `block in <top (required)>'
	17: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
	16: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
	15: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
	14: from /home/rich/instiki/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
	13: from /home/rich/instiki/config/environment.rb:14:in `<top (required)>'
	12: from /home/rich/instiki/vendor/rails/railties/lib/initializer.rb:113:in `run'
	11: from /home/rich/instiki/vendor/rails/railties/lib/initializer.rb:194:in `process'
	10: from /home/rich/instiki/vendor/rails/railties/lib/initializer.rb:402:in `load_view_paths'
	 9: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/paths.rb:40:in `load!'
	 8: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/paths.rb:40:in `each'
	 7: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:69:in `load!'
	 6: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:86:in `templates_in_path'
	 5: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:86:in `each'
	 4: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:87:in `block in templates_in_path'
	 3: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:92:in `create_template'
	 2: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:92:in `new'
	 1: from /home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:119:in `initialize'
/home/rich/instiki/vendor/rails/actionpack/lib/action_view/template.rb:119:in `gsub!': can't modify frozen String: "" (FrozenError)

I’ve also installed via apt and get this output:

Traceback (most recent call last):
	3: from /usr/local/bin/instiki:23:in `<main>'
	2: from /usr/local/bin/instiki:23:in `load'
	1: from /var/lib/gems/2.7.0/gems/instiki-0.10.2/instiki:6:in `<top (required)>'
/var/lib/gems/2.7.0/gems/instiki-0.10.2/instiki:6:in `load': /var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:27: formal argument cannot be a constant (SyntaxError)
...    'Default: 2500') { |OPTIONS[:port]| }
...                        ^~~~~~~
/var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:27: syntax error, unexpected '[', expecting '|'
...   'Default: 2500') { |OPTIONS[:port]| }
...                              ^
/var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:30: formal argument cannot be a constant
... 'Default: 0.0.0.0') { |OPTIONS[:ip]| }
...                        ^~~~~~~
/var/lib/gems/2.7.0/gems/instiki-0.10.2/script/server:30: syntax error, unexpected '[', expecting '|'
...'Default: 0.0.0.0') { |OPTIONS[:ip]| }
...                              ^

Any help would be appreciated. If I can’t get instiki running again I’ll need help extracting the latest revision from the sqlite3 so I can migrate.

 
posted 5 years ago
admin 63 posts

edited almost 5 years ago

Forum: Heterotic Beast – Topic: Tikz

Here’s the new Tikz picture feature in action.

is produced by

+--{: style='text-align: center'}
\begin{tikzpicture}
\useasboundingbox (-4,-3) rectangle (4,4.75);
\draw[thick] (-3.46410,-2) -- (0,4) -- ( 3.46410,-2) -- (-3.46410,-2);
\draw[thick] (0,0) circle (2);
\draw[thick] (0,4) -- (0,-2);
\draw[thick] (-3.46410,-2) -- ( 1.73205,1);
\draw[thick] ( 3.46410,-2) -- (-1.73205,1);
\filldraw (-1.73205,1) circle (3pt) node[anchor=south east, scale=1.5] {$e_1$};
\filldraw ( 1.73205,1) circle (3pt) node[anchor=south west, scale=1.5] {$e_2$};
\filldraw (0,-2) circle (3pt) node[anchor=north, scale=1.5] {$e_3$};
\filldraw (0,0) circle (3pt) node[anchor=west, xshift=7pt, scale=1.5] {$e_4$};
\filldraw (3.46410,-2) circle (3pt) node[anchor=north, scale=1.5] {$e_5$};
\filldraw (-3.46410,-2) circle (3pt) node[anchor=north, scale=1.5] {$e_6$};
\filldraw (0,4) circle (3pt) node[anchor=south, scale=1.5] {$e_7$};
\end{tikzpicture}
=--

If you need additional Tikz libraries, put a \usetikzlibrary{...} in the body of your figure. See this blog post for more details and examples.

 
posted almost 6 years ago
distler 123 posts

Forum: Instiki – Topic: Some problem with Windows !??

Some more details would be helpful.

Are you using RubyInstaller?

 
posted almost 6 years ago
johnwicky 1 post

edited 5 years ago

Forum: Instiki – Topic: Some problem with Windows !??

hiazzzz

 
posted 6 years ago
handy 9 posts

Forum: Instiki – Topic: Using instiki.desktop to autostart at login

@distler I’m actually using the OpenRC init system, so the changes to most (would have to be close to 100% of) distros go beyond just those (the vast majority) that use systemd.

Again my apologies to readers for the mess that my instiki.desktop file presents as in the OP. You should be able to work out what it looks like by looking at a .desktop file in your own ~/.config/autostart/

 
posted 6 years ago
distler 123 posts

Forum: Instiki – Topic: Using instiki.desktop to autostart at login

Definitely should update those instructions for systemd, which seems to have replaced init in most Linux distros.

 
posted 6 years ago
handy 9 posts

Forum: Instiki – Topic: Using instiki.desktop to autostart at login

The formatting is messed up,

Path=

should be on its own line (I obviously haven’t yet learned markdown).

 
posted 6 years ago
handy 9 posts

Forum: Instiki – Topic: Using instiki.desktop to autostart at login

I looked at the wiki page on autostarting instiki at login & it is somewhat out of date.

So I thought I’d see if I could kludge my way to an autostart by using a ~/.config/autostart/instiki.desktop file.

& it works fine. So it should be a simple autostart method for all Linux distros (I just run instiki on my local machine for personal use).

I’m sure that the following instiki.desktop file that I created could be improved & made more correct. But it works great as it is & instiki uses next to no resources when run in the background, which makes me happy.

So hopefully the following is useful to someone (be sure to change the path to that of where you have instiki installed on your system): ________________________________________

[Desktop Entry] Name=instiki GenericName=Wiki software Comment=Contains indexed information Path=/home/handy/instiki Exec=ruby ./instiki –daemon Type=Application StartupNotify=true Categories=Network;WebBrowser;Wiki ____________________________________

 
posted 6 years ago
handy 9 posts

Forum: Instiki – Topic: Installation problem

Thanks for your help. We got it this time. :)

I used the command you suplied above, & started the setup again & it is working fine now.

Thanks for your time.

 
posted 6 years ago
distler 123 posts

edited 6 years ago

Forum: Instiki – Topic: Installation problem

Can you access

http://127.0.0.1:2500/web_list

? If so, what are all the links on that page?

(Clearly, something got screwed up in creating your first wiki. If we can’t straighten this up, I’d suggest reinstalling.)

Edit: To be clear, a full reinstall is probably not necessary. A simple

kill <pid-of-instiki>
git checkout -- db/production.db.sqlite3
ruby ./instiki

will suffice to reset the database.

 
posted 6 years ago
handy 9 posts

Forum: Instiki – Topic: Installation problem

Thanks for your reply.

I have only one “web”.

Unfortunately I still get exactly the same result when using the address that you provided in the above post?

 
posted 6 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 6 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 6 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 6 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 6 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 6 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 7 years ago
distler 123 posts

edited 7 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 7 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 7 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 7 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 7 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 7 years ago
natebottman 5 posts

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

Oh, GreaseMonkey looks promising. Thanks!

 
posted 7 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 7 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 7 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 7 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 almost 8 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 almost 8 years ago
ryuwaraimasa 1 post

edited 7 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 almost 8 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.