Giter Site home page Giter Site logo

parasew / instiki Goto Github PK

View Code? Open in Web Editor NEW
502.0 502.0 111.0 96.51 MB

a basic wiki clone so pretty and easy to set up, you’ll wonder if it’s really a wiki.

Home Page: https://golem.ph.utexas.edu/wiki/instiki/show/HomePage

Ruby 9.32% HTML 4.45% JavaScript 84.35% CSS 1.71% Batchfile 0.01% Dockerfile 0.01% Python 0.08% PHP 0.08%

instiki's Introduction

instiki's People

Contributors

bleything avatar distler avatar jherdman avatar jrblevin avatar jzellman avatar mattmacgillivray avatar mileschou avatar oshino-shinobu avatar sattlerc avatar structuralist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instiki's Issues

Rails g not working

I'm not sure if this is a legitimate issue or more of a local one, but I'm trying to add a new model and new controller to the app, and having no luck. Rails generate doesn't work at all, for neither models nor controllers. Does anyone have insight as to why? I've been digging for a while now and haven't found any clues. Currently looking into how to manually create migration files for entire models as a workaround, but wanted to ask here in the meantime.

Trouble getting Blahtex working with ruby 2.3.0

With a stock build, I get errors within Maruku. Instead of trying to fix these one at a time, I tried using the latest Maruku. This doesn't work at all.

Lots of mysterious "Expired fragment" statements, followed by:

 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Blahtex error: empty output
+---------------------------------------------------------------------------
!/app/vendor/bundle/ruby/2.3.0/gems/maruku-0.7.2/lib/maruku/ext/math/mathml_engines/blahtex.rb:32:in `convert_to_png_blahtex'
!/app/vendor/bundle/ruby/2.3.0/gems/maruku-0.7.2/lib/maruku/ext/math/to_html.rb:69:in `render_png'
!/app/vendor/bundle/ruby/2.3.0/gems/maruku-0.7.2/lib/maruku/ext/math/to_html.rb:106:in `to_html_inline_math'
!/app/vendor/bundle/ruby/2.3.0/gems/maruku-0.7.2/lib/maruku/output/to_html.rb:891:in `block in array_to_html'
\___________________________________________________________________________

And indeed, the math rendering is empty. It looks like:

<span class='maruku-inline'></span>

Can't Run Rake Tasks

Instiki makes the assumption that you are using SQLite in lib/tasks/upgrade_instiki.rake. If you aren't using SQLite, this pooches all of your Rake tasks.

Youtube support and version 0.19.8

I think the version 0.19.8 does not exist in github repo.

The documentation here says that instiki supports youtube embedding from version 0.19.8. It is strange though, because the instiki engine running the documentation site seems to be 0.19.7 as can be seen in the footer.

What am I missing? and how can I upgrade my instiki to the version 0.19.8?

Error "cannot load such file -- admin_helper" with Ruby 1.9.3

I could not make Instiki works with Ruby 1.9.3 but it works with Ruby 1.8.7.

My system is Ubuntu 10.04.
I installed both Ruby through RVM.

I soon as I typed ./instiki, I got this error:

<path to instiki>/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in `require': cannot load such file -- admin_helper (LoadError)

I tried on both the latest git version and the 0.19.3 tag.

textile autolinks do not work anymore

This probably maraoku related regression. With older releases the http://url and [email protected] were automatically made proper html tags.

We have wiki starting from 0.7 releases so we cannot easily switch to different markup language.

Special characters in article names break on HTML export

Hi,

I attempted to do a HTML export of an Instiki instance I had set up, and noticed that special characters in URLs were giving problems.

Example:

The original article name would be bogus, name. This would be URL-encoded into bogus%2C+name. So far so good. However, while the HTML file is (correctly!) saved as bogus%2C+name.xhtml, the URLs to that page on other pages are not further URL-encoded. This leads to the URL to said page on another page leading to bogus%2C+name.xhtml, which is parsed as bogus, name.xhtml which is of course not correct (as no such file exists). The fix for this would be to further encode the % into %25, thereby making the URL bogus%252C+name.xhtml, which would be interpreted as bogus%2C+name.xhtml, the correct filename.

A quick fix until this bug is solved (for others that are encountering the same problem) is to run the following on a directory of exported files:

find ./ -name "*.xhtml" | xargs sed -i.bak -r -e "s/%([0-9A-Z]{2})/%25\\1/g"

Note that this will also affect URL encoding that does not appear in a URL, but elsewhere on the page, so it's by no means perfect - but at least your links will work.

  • Sven

Stack Overflow on LaTeX(?) Parsing

I'm having the following error:

RegexpError (Stack overflow in regexp matcher: /((?:[|${1,2}|\begin{equation})(?:\$|(?!$|]|\end{equation}).)+?(?:]|${1,2}|\end{equation}))/m):
lib/chunks/chunk.rb:52:in gsub!' lib/chunks/chunk.rb:52:inapply_to'
lib/wiki_content.rb:110:in inside_chunks' lib/wiki_content.rb:110:ineach'
lib/wiki_content.rb:110:in inside_chunks' lib/wiki_content.rb:184:inbuild_chunks'
lib/wiki_content.rb:158:in initialize' lib/page_renderer.rb:140:innew'
lib/page_renderer.rb:140:in render' lib/page_renderer.rb:29:indisplay_content'
app/models/page.rb:26:in revise' app/models/wiki.rb:79:inrevise_page'
app/controllers/wiki_controller.rb:323:in save' /dh/passenger/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request'
/dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:516:in accept_and_process_next_request' /dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop'
/dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in start_request_handler' /dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:275:insend'
/dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in handle_spawn_application' /dh/passenger/lib/phusion_passenger/utils.rb:470:insafe_fork'
/dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in handle_spawn_application' /dh/passenger/lib/phusion_passenger/abstract_server.rb:357:insend'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' /dh/passenger/lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:180:in start' /dh/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:149:instart'
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:219:in spawn_rails_application' /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add'
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:214:in spawn_rails_application' /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:82:insynchronize'
/dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize' /dh/passenger/lib/phusion_passenger/spawn_manager.rb:213:inspawn_rails_application'
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:132:in spawn_application' /dh/passenger/lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:357:in __send__' /dh/passenger/lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/dh/passenger/helper-scripts/passenger-spawn-server:99

When I try to save the following page of Markdown:

Step Five: Getting a Thesis Statement

My "thesis statement" is going to be a paragraph long, maybe even two paragraphs. I've sized this thesis statement as a proportionate work-horse for a 25-page paper. One to three sentences for a six-page paper = One to two paragraphs for a twenty-five page paper. To get my thesis, I have to keep condensing all of my little, teeny, wispy, observations into more muscular, specific, logically related ideas. In Step Five, then, I'm going to convert my quotes list into a list of observations (factual commentary) that I will then process into a list of ideas (interpretive ideas).

I won't bore you with the re-organized categories or the "transitional observations" that take me from simple comments to complex interpretation, but I will show you the text I used as a map for constructing my thesis paragraph.

Text Consulted for Writing Thesis

Basic Insight

  • Shirley is a multispecies ethnography of changing times in Ykshr

Politics

  • Class resolution as “multispecies humanity”
  • Of course conservatism in Shirley’s status and $ coded as natural
  • Napoleonic war: 2 French brothers become stewards of English land (Robin Hood narrative prevents French tyranny)
  • Feminism: cosmic female power derived from identification w/nature (Eve = Nature = Shirley’s mother)

Governing concepts: Equilibrium (Caroline, Louis); Stewardship (Robert, Shirley)

  • Both Caroline and Louis must curb Robert and Shirley’s power
  • Shirley-as-animal makes male sexual power desirable and OK for feminist (Humans must accept and savor their animality to be fully human)

All relationships develop by negotiating nature together (esp for Caro’s relations)

  • Not about symbolism but about stewardship
  • Disagreements about plants and animals signify bad relationships
  • All kinds of social strife are a human becoming-animal (Social relations established through natural economy, flowers, trees; the content of human relationships is nature; Paul Rabinow’s biosociality)

Withdrawal from nature is death

  • Humanity cannot be as sensitive as fairies

Narration

  • Not just about word-paintings, but emplotting Nature-as-agent
  • A good writer must be a multispecies ethnographer (real causality) (Brontes are ethnographers of Yorkshire)
  • Writers must contextualize factories within multispecies ethnography (don’t have to like it but do have to tell the history of loss)
  • Narrative of loss is counterbalanced by narrative of equilibrium (There is less romance (cf beginning of book) but more food for thought) (cf end of book) and a call to create a new equilibrium (Chartists)
  • New stories are created when humans are considered in new natural spaces (hence the New World imagery w/Louis and Shirley)

Ifs, Ands, Buts - Potential Problems

  • Critics who dislike Shirley and Louis’s relationship as anti-feminist
  • Factory isn’t portrayed as a wholly positive influence on nature! (Why didn’t I choose Wuthering Heights or Agnes Grey? (because I like a challenge.)
  • Multispecies ethnography (MSE) often privileges animals over plants
  • MSE is often really about race relations/first-third world relations
  • People may see nature as just a symbol in Brontë’s work

Thesis Paragraph

Thoughts?

problem with rules in mathjax array

I have this bit of latex, but neither the hline nor the
vertical rule are being shown in the array.
Instead of the horizontal rule, i see the text "hline".
Any ideas what is going wrong? I am using instiki 0.20.1.

$$
\begin{array}{r|rrrr}
* & A & B & C & D \\
\hline
A & A & B & C & D \\
B & B & 2B & D & 2D \\
C & C & D & C+D & 3D \\
D & D & 2D & 3D & 6D \\
\end{array}
$$

URLs Use Host Name

Suppose in your /etc/hosts file you create an alias for the IP address your wiki is hosted at (e.g. "foo" maps to http://192.168.0.1 -- so I might access my wiki at http://foo/wiki now). After editing a page links will use this host name in the URLs. This poses a problem for other people accessing your wiki as they may not have the same /etc/hosts mapping.

Textile rendering bugs

This for 0.17.0. The textile rendering seems confuse quite easily.

For example:

- a
- b
- c
'*', b, '*'

This all worked fine with redcloth parser, but maraoku fails.

instiki on windows requires nokogiri 1.7.2?

Hi,
When running the
ruby bundle install --path vendor/bundle
on a Windows 7 machine it tries to install nokogiri 1.7.2 (see output below)
I think there are some compatibility issues between nokogiri 1.7.2 and ruby2.4 for windows machines but it was solved with the nokogiri 1.8.1 release which I can successfully install.

Is there a way to make the bundle install use the 1.8.1 version instead ?

Fetching gem metadata from http://rubygems.org/......... Using rake 10.4.2 Using RedCloth 4.3.2 Using abstract 1.0.0 Using bundler 1.16.0 Using daemons 1.2.5 Using erubis 2.7.0 Using eventmachine 1.2.5 (x64-mingw32) Using file_signature 1.2.0 Using iconv 1.0.4 Using itextomml 1.5.6 Using json 2.1.0 Using mini_portile2 2.1.0 Fetching nokogiri 1.7.2 (x64-mingw32) Installing nokogiri 1.7.2 (x64-mingw32) Gem::RuntimeRequirementNotMetError: nokogiri requires Ruby version < 2.4, >= 2.1.0. The current ruby version is 2.4.0. An error occurred while installing nokogiri (1.7.2), and Bundler cannot continue. Make sure that gem install nokogiri -v '1.7.2' succeeds before bundling. In Gemfile: maruku was resolved to 0.7.3.beta1, which depends on nokogiri

Thanks

Heroku Deployment

Hi there,
I'm trying to get the Heroku deployment of Instiki to work. Following the instructions listed in the README gives an ActiveRecord::AdapterNotSpecified: development database is not configured error. I've tried modifying config/database.yml in various ways but I was unable to get it working. Is there any way that I can fix this?
Sorry for the trouble, I'm not that familiar with these tools. Thanks in advance.

Rails 5 Upgrade

Is there any interest in migrating this to Rails 5? As I've found this to be the best Ruby wiki available, I'd be interested in taking this on.

running "instiki" failed

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

instiki (in this step, i met errors)

as3:/instiki# mkdir instiki-site
as3:
/instiki# cd instiki-site
as3:/instiki/instiki-site# ls
as3:
/instiki/instiki-site# instiki
/usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/instiki:6:in load': /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:27: formal argument cannot be a constant (SyntaxError) 'Default: 2500') { |OPTIONS[:port]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:27: syntax error, unexpected '[', expecting '|' 'Default: 2500') { |OPTIONS[:port]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:30: formal argument cannot be a constant 'Default: 0.0.0.0') { |OPTIONS[:ip]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:30: syntax error, unexpected '[', expecting '|' 'Default: 0.0.0.0') { |OPTIONS[:ip]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:33: formal argument cannot be a constant 'Default: production') { |OPTIONS[:environment]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:33: syntax error, unexpected '[', expecting '|' 'Default: production') { |OPTIONS[:environment]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:43: formal argument cannot be a constant 'Default: ./storage/[port]') { |OPTIONS[:storage]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:43: syntax error, unexpected '[', expecting '|' 'Default: ./storage/[port]') { |OPTIONS[:storage]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:46: formal argument cannot be a constant ) { |OPTIONS[:notex]| } ^ /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/script/server:46: syntax error, unexpected '[', expecting '|' ) { |OPTIONS[:notex]| } ^ from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/instiki-0.10.2/instiki:6:in<top (required)>'
from /usr/local/ruby/bin/instiki:23:in load' from /usr/local/ruby/bin/instiki:23:in

'
as3:~/instiki/instiki-site#

how to fix it?
tks a lot

DNSBL check disable

Hello!

Can you add field for disabling DNSBL checking in config files or etc

Oxford brackets

I've been looking for a way to get stmaryrd's \llbracket, \rrbacket (⟦ ⟧) symbols with itex2MML but I have been unsuccessful so far. Am I missing something or is this not possible as of now? If it's not possible can we add a work-around to instiki? Thanks!

Search result page broken (not valid xml)

When I search anything in instiki that results in more than one hit, I get an error page. For example, searching for git in the official instiki results in a page that has a closing </p> without the opening tag:

<!-- ... -->
<ul>
      <li>
        <a href="/wiki/instiki/show/Browsers">Browsers</a>
      </li>
      <!-- ... -->
  </ul>

    <b>Create a new page, named:</b> "<span class='newWikiWord'><a href="/wiki/instiki/new/git">git</a></span>"
  </p>
<!-- ... -->

My browser displays an error page instead of the search results because it is not valid XML.

Instiki doesn't see rubygems at startup under Nginx and Passenger

Hi.

Every time Instiki is loaded at the system's startup it doesn't see the dependencies and returns an error:

Bundler couldn't find some gems. Did you run bundle install?

/home/<username>/www/instiki/config/preinitializer.rb 20 in `rescue in '

If then I reboot Nginx, Instiki starts to work without any problems.

My gems is installed in the custom location. If I reset the location to the default one, Instiki is launched normally.

What is the cause of the problem? How can I fix it?

Debian GNU/Linux 6.0.1;
Ruby 1.9.2;
Ruby on Rails 3.0.5;
Instiki 0.19.1.

GEM_HOME=/home/<username>/.gem
GEM_PATH=/home/<username>/.gem

Windows 10 Ruby 2.3.3-p222 instiki 0.20.1 Intallation problem

Hello,

I've tried to install instiki multiple times without success and being new to Ruby, I am not experienced enough to decipher the 'mkmf.log', so I'd be grateful for some help. Before getting into the issue (iconv failed to compile), I have the following questions and comments:

!) On a Windows system, is there any practical difference between using "ruby bundle" and "ruby bundle install --path vendor/bundle"?
2) The instructions don't explicitly say that you must use the GitHub command shell when executing these commands {which might be helpful to note).
3) The instructions at 'github.com/parasew/instiki' are out of sync with those at 'https://golem.ph.utexas.edu/wiki/instiki/show/Installation' (the former states that Ruby 1.9.3 to 2.3 works, while the latter says Ruby 1.8.7 to 2.1).
4) While attempting to sign up to post to the forums at 'https://golem.ph.utexas.edu/forum/forums/instiki;, the page said I would receive an email with a link, but I never did (and no, it didn't go into my spam directory; I also checked using my 'back button' to verify that my email address was correct (which it was). I was using Firefox in 'Private Browing' mode... is this perhaps the issue?

On to my problem (I have DevKit installed and there are no spaces in the path names to either Ruby or instiki):

This is the output of "ruby bundle":

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

C:\Users\BIA\Documents\GitHub> cd
C:> cd Instiki
C:\Instiki> ruby bundle
Fetching git://github.com/distler/maruku.git
Checking out files: 100% (280/280), done.
Fetching gem metadata from http://rubygems.org/........
Fetching version metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake 10.4.2
Installing RedCloth 4.3.2 with native extensions
Installing abstract 1.0.0
Installing daemons 1.2.4
Installing erubis 2.7.0
Installing eventmachine 1.2.3
Installing file_signature 1.2.0
Installing iconv 1.0.4 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: C:/Instiki/vendor/bundle/ruby/2.3.0/gems/iconv-1.0.4/ext/iconv

C:/Ruby23/bin/ruby.exe -r ./siteconf20170309-10940-igd9ro.rb extconf.rb
checking for rb_enc_get() in ruby/encoding.h... yes
checking for rb_sys_fail_str() in ruby.h... yes
checking for iconv() in iconv.h... no
checking for iconv() in -liconv... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby23/bin/$(RUBY_BASE_NAME)
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--enable-config-charset
--disable-config-charset
--with-config-charset
--without-config-charset
--with-iconvlib
--without-iconvlib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

C:/Instiki/vendor/bundle/ruby/2.3.0/extensions/x86-mingw32/2.3.0/iconv-1.0.4/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/Instiki/vendor/bundle/ruby/2.3.0/gems/iconv-1.0.4 for inspection.
Results logged to C:/Instiki/vendor/bundle/ruby/2.3.0/extensions/x86-mingw32/2.3.0/iconv-1.0.4/gem_make.out
Installing itextomml 1.5.5 with native extensions
Installing json 2.0.3 with native extensions
Installing mini_portile2 2.1.0
Installing syntax 1.1.0
Installing rack 1.4.5
Installing rails_xss 0.4.0
Installing rdoc 5.1.0
Installing rubyzip 0.9.9
Installing sqlite3 1.3.13
Installing test-unit 2.5.5
Using bundler 1.11.2
An error occurred while installing iconv (1.0.4), and Bundler cannot continue.
Make sure that gem install iconv -v '1.0.4' succeeds before bundling.

This is the output of "ruby bundle install --path vendor/bundle":

C:\Instiki> ruby bundle install --path vendor/bundle
Fetching git://github.com/distler/maruku.git
Fetching gem metadata from http://rubygems.org/........
Fetching version metadata from http://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
Using RedCloth 4.3.2
Using abstract 1.0.0
Using daemons 1.2.4
Using erubis 2.7.0
Using eventmachine 1.2.3
Using file_signature 1.2.0
Installing iconv 1.0.4 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: C:/Instiki/vendor/bundle/ruby/2.3.0/gems/iconv-1.0.4/ext/iconv

C:/Ruby23/bin/ruby.exe -r ./siteconf20170309-1956-i8n98z.rb extconf.rb
checking for rb_enc_get() in ruby/encoding.h... yes
checking for rb_sys_fail_str() in ruby.h... yes
checking for iconv() in iconv.h... no
checking for iconv() in -liconv... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby23/bin/$(RUBY_BASE_NAME)
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--enable-config-charset
--disable-config-charset
--with-config-charset
--without-config-charset
--with-iconvlib
--without-iconvlib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

C:/Instiki/vendor/bundle/ruby/2.3.0/extensions/x86-mingw32/2.3.0/iconv-1.0.4/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/Instiki/vendor/bundle/ruby/2.3.0/gems/iconv-1.0.4 for inspection.
Results logged to C:/Instiki/vendor/bundle/ruby/2.3.0/extensions/x86-mingw32/2.3.0/iconv-1.0.4/gem_make.out
Using itextomml 1.5.5
Using json 2.0.3
Using mini_portile2 2.1.0
Using syntax 1.1.0
Using rack 1.4.5
Using rails_xss 0.4.0
Using rdoc 5.1.0
Using rubyzip 0.9.9
Using sqlite3 1.3.13
Using test-unit 2.5.5
Using bundler 1.11.2
An error occurred while installing iconv (1.0.4), and Bundler cannot continue.
Make sure that gem install iconv -v '1.0.4' succeeds before bundling.
C:\Instiki>

This is my "mkmf.log":

have_func: checking for rb_enc_get() in ruby/encoding.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/Ruby23/include/ruby-2.3.0/ruby/backward -IC:/Ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char *argv)
6: {
7: return 0;
8: }
/
end */

"gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/Ruby23/include/ruby-2.3.0/ruby/backward -IC:/Ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <ruby/encoding.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))rb_enc_get; return !p; }
/
end */


have_func: checking for rb_sys_fail_str() in ruby.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/Ruby23/include/ruby-2.3.0/ruby/backward -IC:/Ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <ruby.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))rb_sys_fail_str; return !p; }
/
end */


have_func: checking for iconv() in iconv.h... -------------------- no

"gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/Ruby23/include/ruby-2.3.0/ruby/backward -IC:/Ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))iconv; return !p; }
/
end */

"gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/Ruby23/include/ruby-2.3.0/ruby/backward -IC:/Ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23/lib -L. -lmsvcrt-ruby230 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: extern void iconv();
18: int t(void) { iconv(); return 0; }
/
end */


have_library: checking for iconv() in -liconv... -------------------- no

"gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/Ruby23/include/ruby-2.3.0/ruby/backward -IC:/Ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23/lib -L. -lmsvcrt-ruby230 -liconv -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: int t(void) { void ((volatile p)()); p = (void (()()))iconv; return !p; }
/
end */

"gcc -o conftest.exe -IC:/Ruby23/include/ruby-2.3.0/i386-mingw32 -IC:/Ruby23/include/ruby-2.3.0/ruby/backward -IC:/Ruby23/include/ruby-2.3.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23/lib -L. -lmsvcrt-ruby230 -liconv -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:5:19: fatal error: iconv.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <iconv.h>
6:
7: /top/
8: extern int t(void);
9: int main(int argc, char *argv)
10: {
11: if (argc > 1000000) {
12: printf("%p", &t);
13: }
14:
15: return 0;
16: }
17: extern void iconv();
18: int t(void) { iconv(); return 0; }
/
end */


This is my "extconf.rb" (\instiki\vendor\bundle\ruby\2.3.0\gems\iconv-1.0.4\ext):

require 'mkmf'

dir_config("iconv")

conf = File.exist?(File.join($srcdir, "config.charset"))
conf = with_config("config-charset", enable_config("config-charset", conf))

unless have_func("rb_enc_get", "ruby/encoding.h") || have_func("vasprintf", "stdio.h")
raise "vasprintf is required for Ruby 1.8"
end
have_func("rb_sys_fail_str", "ruby.h")
if have_func("iconv", "iconv.h") or
have_library("iconv", "iconv", "iconv.h")
check_signedness("size_t") rescue nil
if checking_for("const of iconv() 2nd argument") do
create_tmpsrc(cpp_include("iconv.h") + "---> iconv(cd,0,0,0,0) <---")
src = xpopen(cpp_command("")) {|f|f.read}
if !(func = src[/^--->\s*(\w+).\s<---/, 1])
Logging::message "iconv function name not found"
false
elsif !(second = src[%r"\b#{func}\s*(.?,(.?),.?)\s;"m, 1])
Logging::message "prototype for #{func}() not found"
false
else
Logging::message $&+"\n"
/\bconst\b/ =~ second
end
end
$defs.push('-DICONV_INPTR_CONST')
end
have_func("iconvlist", "iconv.h")
have_func("__iconv_free_list", "iconv.h")
if conf
prefix = '$(srcdir)'
prefix = $nmake ? "{#{prefix}}" : "#{prefix}/"
if $extout
wrapper = "$(RUBYARCHDIR)/iconv.rb"
else
wrapper = "./iconv.rb"
$INSTALLFILES = [[wrapper, "$(RUBYARCHDIR)"]]
end
if String === conf
require 'uri'
scheme = URI.parse(conf).scheme
else
conf = "$(srcdir)/config.charset"
end
$cleanfiles << wrapper
end
create_makefile("iconv/iconv")
if conf
open("Makefile", "a") do |mf|
mf.print("\nall: #{wrapper}\n\n#{wrapper}: #{prefix}charset_alias.rb")
mf.print(" ", conf) unless scheme
mf.print("\n\t$(RUBY) $(srcdir)/charset_alias.rb #{conf} $@\n")
end
end
end

Any help would be greatly appreciated. Thank you.

it took me three steps. :(

  1. git clone
  2. cd instiki; mkdir log
  3. ./instiki

=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:2500
/usr/local/lib/ruby/1.8/logger.rb:525:in `initialize': No such file or directory - /home/sysadmin/instiki/log/production.log (Errno::ENOENT)

SWIG Preventing Instiki From Starting

itextomml uses SWIG, which has an outstanding bug where it creates invalid Ruby constants. I am receiving this error when running ruby instiki with Ruby 2.1.4:

./vendor/rails/activesupport/lib/active_support/dependencies.rb:305:in `qualified_const_defined?': "swig_runtime_data" is not a valid constant name! (NameError)

Is there any workaround? Ruby 1.8.7 tolerates SWIG's invalid Ruby constants, but I run into other issues with Maruku. I don't need MML support, but Maruku relies upon itextomml.

3 easy Steps to get the Instiki experience

Well, maybe not so much. Now for 3 hrs I have struggled to install Ruby etc. so the statement is a bit exaggerated.
Then at step 2 Run "instiki" I get a series of errors.
Could you please make a sandbox somewhere so we can try before installing.

Thanks for the good work

Incorrect footnote conversion

Hi.

When creating a footnote a backlink appears on the next line after the descritption instead of the present line.

Example

Markdown:

Ruby on Rails is a web-framework[^framework]. It uses the MVC[^MVC] architecture pattern.

[^framework]: a reusable set of libraries

[^MVC]: Model View Controller

HTML:

<p>a reusable set of libraries</p>

<a href='#fnref:1' rev='footnote'>↩</a>

<p>Model View Controller</p>

<a href='#fnref:2' rev='footnote'>↩</a>

Instead of:

<p>a reusable set of libraries <a href='#fnref:1' rev='footnote'>↩</a></p>

<p>Model View Controller <a href='#fnref:2' rev='footnote'>↩</a></p>

Here is the image which illustrates the issue.

Debian GNU/Linux 6.0.1;

Ruby 1.9.2;

Ruby on Rails 3.1.0rc4;

Instiki 0.19.1.

Issue about markdown nested list

For nested list

* list1
  *  item1.1
  *  item1.2
* list2 

I can get
‧ list1
。item1.1
。item1.2
‧ list2

but with single child

* list1
  *  item1.1
* list2 

I got
‧ list1 * item1.1
‧ list2

Windows 10 run failure caused by install problem (iconv is missing)

I'm trying to run Instiki under Windows 10.
Downloading and installation seem to work fine, but when I run it (instiki --daemon) it complains that iconvdoesn't exist.

[ I had tried doing this about a year ago using Ruby200 and had the same problem. For this attempt I uninstalled and deleted all the old ruby stuff, installed 2.3.1p112, and put Instiki in a fresh directory ]

My particular steps:

  1. I git cloned http://github.com/parasew/instiki.git
    (Latest commit e145916 2016-07-12)
  2. I installed ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32]
  3. I executed DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe, inited and installed it.
    • ruby dk.rb init
    • ruby dk.rb install
  4. I ruby installed Instiki: ruby bundle install --path vendor/bundle

Comparing the output of this install with that shown in issue #36, (Error on start after installation), I find that my output is missing the line:

Using iconv 1.0.4

and has the line

Using rake 11.2.2

instead of

Using rake 10.4.2

I tried changing the Gemfileline

gem "rake"

to

gem "rake", "10.4.2"

but that doesn't help.

The Gemfile might need an edit of the line

gem 'iconv', :platforms => [:ruby_20, :ruby_21, :ruby_22, :ruby_23]

but I have no experience with Ruby and don't know what to do.

Stack Overflow says for some case to add

gem "iconv", "~> 1.0.3"

which is Greek to me. Then again it also says

iconv has been deprecated for a while. It is replaced by (builtin) String#encode

but then again I have no idea what needs to be fixed.

Here is a full log of my attempt (in the "start command prompt with Ruby" shell). I ruby installed instiki twice so that the 2nd time it would just display Usingstatements.

ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32]

C:\nLab\rubyDevKit>ruby dk.rb init
[INFO] found RubyInstaller v2.3.1 at C:/Ruby23

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\nLab\rubyDevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby23'
[INFO] Installing 'C:/Ruby23/lib/ruby/site_ruby/devkit.rb'

C:\nLab\rubyDevKit>cd C:\nLab\instiki2.git

C:\nLab\instiki2.git>ruby bundle install --path vendor/bundle
Fetching git://github.com/distler/maruku.git
Checking out files: 100% (280/280), done.
Fetching gem metadata from http://rubygems.org/........
Fetching version metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake 11.2.2
Installing RedCloth 4.3.2 with native extensions
Installing abstract 1.0.0
Installing daemons 1.2.3
Installing erubis 2.7.0
Installing eventmachine 1.2.0.1
Installing file_signature 1.2.0
Installing itextomml 1.5.2 with native extensions
Using json 1.8.3
Installing nokogiri 1.5.11
Installing syntax 1.1.0
Installing rack 1.4.5
Installing rails_xss 0.4.0
Installing rubyzip 0.9.9
Installing sqlite3 1.3.11
Installing test-unit 2.5.5
Using bundler 1.11.2
Installing rdoc 4.2.2
Using maruku 0.7.3.beta1 from git://github.com/distler/maruku.git (at nokogiri@c67cc83)
Installing thin 1.7.0 with native extensions
Bundle complete! 19 Gemfile dependencies, 20 gems now installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!

C:\nLab\instiki2.git>ruby bundle install --path vendor/bundle
Using rake 11.2.2
Using RedCloth 4.3.2
Using abstract 1.0.0
Using daemons 1.2.3
Using erubis 2.7.0
Using eventmachine 1.2.0.1
Using file_signature 1.2.0
Using itextomml 1.5.2
Using json 1.8.3
Using nokogiri 1.5.11
Using syntax 1.1.0
Using rack 1.4.5
Using rails_xss 0.4.0
Using rubyzip 0.9.9
Using sqlite3 1.3.11
Using test-unit 2.5.5
Using bundler 1.11.2
Using rdoc 4.2.2
Using maruku 0.7.3.beta1 from git://github.com/distler/maruku.git (at nokogiri@c67cc83)
Using thin 1.7.0
Bundle complete! 19 Gemfile dependencies, 20 gems now installed.
Bundled gems are installed into ./vendor/bundle.

C:\nLab\instiki2.git>instiki --daemon

C:\nLab\instiki2.git>set PATH=.\lib\native\win32;C:\Ruby23\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Ruby23\bin;C:\nLab\Ruby200\bin;C:\Program Files\Git\cmd

C:\nLab\instiki2.git>ruby.exe script\server -e production
C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in `require': cannot load such file -- iconv (LoadError)
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in `<top (required)>'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb:1:in `require'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb:1:in `<top (required)>'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb:2:in `require'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb:2:in `<top (required)>'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in `require'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in `block in <top (required)>'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in `each'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support/core_ext.rb:8:in `<top (required)>'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support.rb:56:in `require'
        from C:/nLab/instiki2.git/vendor/rails/activesupport/lib/active_support.rb:56:in `<top (required)>'
        from script/server:7:in `require'
        from script/server:7:in `<main>'

C:\nLab\instiki2.git>

How to disable code section reformatting

I use instiki for documenting some python stuff but I'm not happy about how code sections are reformatted by instiki. For example:

ListOfStrings(
              title = _("A List of some strings"),
              help  = _("A List of strings"),
              orientation = "horizontal"
              )

is reformatted to

ListOfStrings(
    title = _("A List of some strings"),
    help  = _("A List of strings"),
    orientation = "horizontal"
    )

Can someone tell me please where I'm able to disable that?

PS: Btw I tried to ask this question in the instiki forum, I signed up but never got the "activation"-mail and there is no resend option as far as I have seen.

Emojis in wiki pages not working when editing page

When I save a page and insert an emoji (e. g. „😃“), saving works fine for the first time. Loading the page then shows the correct emoji. When I edit the page, however, the emojis is broken and only shown as ?. When saving the page again, the emoji is also broken on the page. This is rather annoying. It seems to me that it’s not a fundamental problem in the database/architecture but rather a problem of the code that prepares the page for editing.

Installation fails

When trying to install instiki on Mac OS Lion, following the two step process as described in http://golem.ph.utexas.edu/wiki/instiki/show/Installation, I end up with the following error message during step two (ruby bundle install --path vendor/bundle):
There was a NoMethodError while loading syntax.gemspec:
undefined method test_suite_file=' for #<Gem::Specification:0x3fe875cc6aa8 syntax-1.1.0> from /path/to/instiki/vendor/bundle/ruby/1.9.1/bundler/gems/syntax-bf39f212ed23/syntax.gemspec:19:in block in

'

Googling "test_suite_file" results in a couple of pages that mention that the method has been deprecated, e.g. this one:
1 0.8.0 2004-08-01 Deprecated "test_suite_file" for "test_files"
"test_file=x" is a shortcut for "test_files=[x]"
(http://rubygems.rubyforge.org/rubygems-update/Gem/Specification.html)

Error on run

With a successful installation, after running instiki, the following error message is displayed:

./config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
    from ./config/boot.rb:62:in `load_initializer'
    from ./config/boot.rb:126:in `run'
    from ./config/boot.rb:26:in `boot!'
    from ./config/boot.rb:139
    from ./script/server:3:in `require'
    from ./script/server:3
    from ./instiki:6:in `load'
    from ./instiki:6

Any help would be greatly appreciated!

Incorrect list conversion

Hi.

The Markdown converter doesn't create the HTML lists if the list entry starts with the Unicode character.

Example

Markdown:

* Один

* Два

* Три


1. Один

2. Два

3. Три

HTML:

<p>* Один</p>

<p>* Два</p>

<p>* Три</p>


<p>1. Один</p>

<p>2. Два</p>

<p>3. Три</p>

Instead of:

<ul>
<li>
<p>Один</p>
</li>

<li>
<p>Два</p>
</li>

<li>
<p>Три</p>
</li>
</ul>

<ol>
<li>
<p>Один</p>
</li>

<li>
<p>Два</p>
</li>

<li>
<p>Три</p>
</li>
</ol>

How can I fix the bug?

Thanks.

Debian GNU/Linux 6.0.1;

Ruby 1.9.2;

Ruby on Rails 3.0.6;

Instiki 0.19.1.

Home page hacked

Please clean it up

Current homepage:

Installation is very easy, whether on MacOSX, Linux or Windows. The package includes a database (SQLite3) and webserver, so you’ll be up and running in minutes.

Keep up the good work, and post more articles like the one you have posted above. I’m quite sure I’ll learn many new stuff right here. Very interesting. Web Hosting Romania. Trustnet Solutions – Premium web hosting services, Brasov, Romania. Premium web hosting starting at just one euro per month, free domain registration. Stiu ca multora le plac vacantele reusite, adica sa fie cat mai frumos, comfortabil, distractie si daca se poate si preturi bune la cazare hajduszoboszlo asa ca va recomand linkul anterior. In Hajduszoboszlo exista cel mai mare parc de stranduri termale din estul Europei. Best way for learning how to tie a tie is the easy way, although it really helps to consult my guide. Don’t Make It Too Complicated If this sharp tie strategy doesn’t appeal to you, get a diagram and attempt a more sophisticated knot. If you search for cleaning services Chicago I recommend Nikys, because he is one of my favorite cleaning services company in Chicago, Illinois, USA. Nikys cleaning services in Chicago Address: 4058 North Keystone Avenue #3, Chicago, IL, 60641, Phone: (773) 822-3618.

Maruku error: undefined method `captures' for nil:NilClass

We're running into what appears to be a Maruku bug on the nLab. Certain pages are giving the following stacktrace when one tries to save them:

undefined method `captures' for nil:NilClass

/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/ext/math/parsing.rb:98:in `block in <top (required)>'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:23:in `call'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:23:in `block in check_span_extensions'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:21:in `each'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:21:in `check_span_extensions'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_span.rb:47:in `read_span'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_span.rb:14:in `parse_span'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_block.rb:289:in `read_paragraph'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_block.rb:154:in `read_text_material'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_block.rb:48:in `parse_blocks'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/ext/div.rb:83:in `block in <top (required)>'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:53:in `call'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:53:in `block in check_block_extensions'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:50:in `each'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/extensions.rb:50:in `check_block_extensions'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_block.rb:29:in `parse_blocks'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_block.rb:20:in `parse_text_as_markdown'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/input/parse_doc.rb:35:in `parse_doc'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bundler/gems/maruku-c16d15a591da/lib/maruku/maruku.rb:15:in `initialize'
/home/nlab/www/nlab-prod/lib/chunks/engines.rb:76:in `new'
/home/nlab/www/nlab-prod/lib/chunks/engines.rb:76:in `mask'
/home/nlab/www/nlab-prod/lib/chunks/engines.rb:20:in `apply_to'
/home/nlab/www/nlab-prod/lib/wiki_content.rb:182:in `build_chunks'
/home/nlab/www/nlab-prod/lib/wiki_content.rb:158:in `initialize'
/home/nlab/www/nlab-prod/lib/page_renderer.rb:140:in `new'
/home/nlab/www/nlab-prod/lib/page_renderer.rb:140:in `render'
/home/nlab/www/nlab-prod/lib/page_renderer.rb:29:in `display_content'
/home/nlab/www/nlab-prod/app/models/page.rb:26:in `revise'
/home/nlab/www/nlab-prod/app/models/wiki.rb:79:in `revise_page'
/home/nlab/www/nlab-prod/app/controllers/wiki_controller.rb:375:in `save'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/base.rb:1333:in `perform_action'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `block in run_before_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:206:in `block in around_proc'
/home/nlab/www/nlab-prod/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'
/home/nlab/www/nlab-prod/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:184:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in `run_before_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in `call_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `block in run_before_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in `run_before_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in `call_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `block in run_before_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:189:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in `run_before_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:615:in `call_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
/home/nlab/www/nlab-prod/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/home/nlab/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
/home/nlab/www/nlab-prod/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_with_filters'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:438:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
/home/nlab/www/nlab-prod/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
/home/nlab/www/nlab-prod/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `block in call'
/home/nlab/www/nlab-prod/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/nlab/www/nlab-prod/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
/home/nlab/www/nlab-prod/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
/home/nlab/www/nlab-prod/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/rack-1.4.5/lib/rack/head.rb:9:in `call'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
/home/nlab/www/nlab-prod/vendor/rails/railties/lib/rails/rack/metal.rb:47:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/home/nlab/www/nlab-prod/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call'
/home/nlab/www/nlab-prod/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
/home/nlab/www/nlab-prod/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/unicorn-5.3.0/lib/unicorn/http_server.rb:606:in `process_client'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/unicorn-5.3.0/lib/unicorn/http_server.rb:702:in `worker_loop'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/unicorn-5.3.0/lib/unicorn/http_server.rb:549:in `spawn_missing_workers'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/unicorn-5.3.0/lib/unicorn/http_server.rb:142:in `start'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/gems/unicorn-5.3.0/bin/unicorn_rails:209:in `<top (required)>'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bin/unicorn_rails:23:in `load'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bin/unicorn_rails:23:in `<main>'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bin/ruby_executable_hooks:15:in `eval'
/home/nlab/.rvm/gems/ruby-2.2.1@nlab-prod/bin/ruby_executable_hooks:15:in `<main>'`

The offending line of code seems to be

eqid = src.read_regexp(RegEqref).captures.compact.first

in lib/maruku/ext/math/parsing.rb.

Error on start after installation

linux: debian jessie

$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [armv7l-linux-eabihf]
@instiki$ ruby bundle install --path vendor/bundle
Using rake 10.4.2
Using RedCloth 4.3.2
Using abstract 1.0.0
Using daemons 1.2.3
Using erubis 2.7.0
Using eventmachine 1.2.0.1
Using file_signature 1.2.0
Using iconv 1.0.4
Using itextomml 1.5.2
Using json 1.8.3
Using nokogiri 1.5.11
Using syntax 1.1.0
Using rack 2.0.1
Using rails_xss 0.4.0
Using rubyzip 0.9.9
Using sqlite3 1.3.11
Using test-unit 2.5.5
Using bundler 1.11.2
Using rdoc 4.2.2
Using maruku 0.7.3.beta1 from git://github.com/distler/maruku.git (at nokogiri@c67cc83)
Using thin 1.7.0
Bundle complete! 19 Gemfile dependencies, 21 gems now installed.
Bundled gems are installed into ./vendor/bundle.
@instiki$ ruby instiki
=> Booting Thin
=> Rails 2.3.18 application starting on http://0.0.0.0:2500
instiki/vendor/plugins/bundler/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir instiki/vendor/bundle/ruby/2.3.0/bin in PATH, mode 040777
instiki/vendor/plugins/bundler/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir  instiki/vendor/bundle/ruby/2.3.0/bin in PATH, mode 040777
=> Call with -d to detach
=> Ctrl-C to shutdown server
Thin web server (v1.7.0 codename Dunder Mifflin)
Maximum connections set to 1024
Listening on 0.0.0.0:2500, CTRL+C to stop
/!\ FAILSAFE /!\  2016-07-11 22:04:32 +0000
  Status: 500 Internal Server Error
  wrong number of arguments (given 2, expected 1)
     instiki/vendor/rails/actionpack/lib/action_controller/request.rb:518:in `parse_query'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/request.rb:319:in `GET'
     instiki/vendor/rails/actionpack/lib/action_controller/request.rb:426:in `GET'
     instiki/vendor/rails/actionpack/lib/action_controller/request.rb:385:in `parameters'
     instiki/vendor/rails/actionpack/lib/action_controller/base.rb:1290:in `assign_shortcuts'
     instiki/vendor/rails/actionpack/lib/action_controller/base.rb:527:in `process'
     instiki/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_with_filters'
     instiki/vendor/rails/actionpack/lib/action_controller/rescue.rb:65:in `call_with_exception'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:90:in `rescue in dispatch'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:96:in `dispatch'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
     instiki/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `block in call'
     instiki/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
     instiki/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
     instiki/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
     instiki/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/metal.rb:47:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:99:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/lock.rb:15:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/urlmap.rb:68:in `block in call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/urlmap.rb:53:in `each'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/urlmap.rb:53:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:86:in `block in pre_process'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `catch'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `pre_process'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:53:in `process'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:39:in `receive_data'
     instiki/vendor/bundle/ruby/2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run_machine'
     instiki/vendor/bundle/ruby/2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/backends/base.rb:73:in `start'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/server.rb:162:in `start'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/handler/thin.rb:22:in `run'
     instiki/script/server:119:in `<top (required)>'
    instiki:6:in `load'
    instiki:6:in `<main>'
/!\ FAILSAFE /!\  2016-07-11 22:04:32 +0000
  Status: 500 Internal Server Error
  wrong number of arguments (given 2, expected 1)
     instiki/vendor/rails/actionpack/lib/action_controller/request.rb:518:in `parse_query'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/request.rb:319:in `GET'
     instiki/vendor/rails/actionpack/lib/action_controller/request.rb:426:in `GET'
     instiki/vendor/rails/actionpack/lib/action_controller/request.rb:385:in `parameters'
     instiki/vendor/rails/actionpack/lib/action_controller/base.rb:1290:in `assign_shortcuts'
     instiki/vendor/rails/actionpack/lib/action_controller/base.rb:527:in `process'
     instiki/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_with_filters'
     instiki/vendor/rails/actionpack/lib/action_controller/rescue.rb:65:in `call_with_exception'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:90:in `rescue in dispatch'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:96:in `dispatch'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
     instiki/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `block in call'
     instiki/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
     instiki/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
     instiki/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
     instiki/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/metal.rb:47:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:99:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/lock.rb:15:in `call'
     instiki/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/urlmap.rb:68:in `block in call'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/urlmap.rb:53:in `each'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/urlmap.rb:53:in `call'
     instiki/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:86:in `block in pre_process'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `catch'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `pre_process'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:53:in `process'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:39:in `receive_data'
     instiki/vendor/bundle/ruby/2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run_machine'
     instiki/vendor/bundle/ruby/2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/backends/base.rb:73:in `start'
     instiki/vendor/bundle/ruby/2.3.0/gems/thin-1.7.0/lib/thin/server.rb:162:in `start'
     instiki/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/handler/thin.rb:22:in `run'
     instiki/script/server:119:in `<top (required)>'
    instiki:6:in `load'
    instiki:6:in `<main>'
^C^CStopping ...
Stopping ...
Exiting


Instiki and Postgres

When I run rake db:migrate I get following error:

PGError: ERROR: type modifier is not allowed for type "text"
: ALTER TABLE "revisions" ALTER COLUMN "content" TYPE text(16777215)

The error is caused by the :limit in modify_text_types.rb line 3, after removing it the migration works well.

Over-aggressive Spam Filter

I am using Instiki to manage a class of literature students who are tracking themes in the novels of the Bronte sisters. We've found problems with Instiki's spam filter. For instance, in talking about "gambling" (a major theme in several of their novels), students' edits won't get through the spam filter because of the mention of the word "gambling" (even if it's only used once in an edit). Any way to control for this behavior?

From the logs, the edit is getting through the DNSBL, but the following line appears:

<Instiki::ValidationError: Your edit was blocked by spam filtering>

This occurs even with one mention of the word "gambling" and even from users who have made good edits in the past. It seems that the spam filtering is too aggressive.

File or folder link doesn't work

I want to place links for files or folder/directory on a wiki page. I want to do something like below

[file_link](file://///3dbuildlib/s3dtesting/Results/432/SM3D)

For this, a sort of link is created. Hovering mouse doesn't show finger pointing or the link.

It looks like markdown supports this as I checked with their dingus

I am using version 0.18.1 on windows xp.

id attributes on the generate <math> (for Formula Search).

We are currently discussing adding a formula/keyword search facility to nlab. For that it would be very helpful if the elements would carry id attributes (see the e-mail below).

Dear Bas, dear all,

Here is the overall plan for enabling MathWebSearch on nlab, and nothing 
_needs_ to be changed for that, but there is room for improvement.

0. the current nlab situation:
   - nlab web pages are HTML with MathML generated by iTeX
   - MathML is presentation MathML and contains the original
      iTeX snippets for reference.
   - The MathML does not contain any id attributes.
1. the current MathWebSearch (MWS) Situation:
   - MWS indexes content MathML (natively) and bags of words (via ElasticSearch)
   - MWS needs the content in "MWS Harvests" (special format)
   - MWS has an UI that can be embedded into HTML pages (see [1])
   - MWS UI uses a LaTeXML (LaTeX->XML) daemon to transform
2. Obtaining MWS harvests for nlab
    - KWARC downloads nlab web pages
    - we run LaTeXML over the embedded iTeX snippets --> CMML
    - from page text and and CMML produce harvests (custom harvester)
3. Initial System Setup
    - KWARC provides a nlab search demo like [1] running on our servers
    - nlab provides a means of keeping the KWARC nlab copy up to date
       (e.g. nightly exports of the pages + change reports)
    - nlab links to the demo for community evaluation
4. Stable System (if nlab likes MWS)
    - nlab integrates MWS UI into nlab proper (or replaces by custom UI)
    - we migrate the MWS server and the LaTeXML server to nlab machines
    - tighter integration of the update process.

This experiment (up to 3.) can work out of the box with minimal effort from the nlab side: 
the only investment from nlab is the update process and we can even experiment 
with manual updates (re-download) for evaluation. In particular, no semantic markup is 
necessary on the nlab side.

There is one improvement to nlab I would like to suggest: adding id attributes to MathML.

Background:  Essentially, the MWS server is a daemon that takes Formula Schemata as 
input and gives URIs of the hits as output. Currently we only really have page URIs for this.
It would be much nicer to have URIs that point to particular formulae. This is possible with 
XPath, but having id attributes on Math formulae would simplify this considerably.

Concretely: change the first line in

<math class="maruku-mathml" display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
  <semantics>
    <mrow>
      <mi>X</mi>
      <mo>∈</mo>
      <mi>S</mi>
    </mrow>
    <annotation encoding="application/x-tex">X\in S</annotation>
  </semantics>
</math>

(copied from [2]) to

<math id="m315" class="maruku-mathml" display="inline" 
     xmlns="http://www.w3.org/1998/Math/MathML">

where the string "m3015" is unique in the page. This way, we could index 
https://ncatlab.org/nlab/show/indexed+category#m315 instead of mere [2] and 
use the fragment information e.g. for highlighting the results in the page. 
Even better would be to add such id attributes to all of the MathML sub-elements,
but that is optional. Adding id attributes is something that should be relatively easy 
to add to either iTeX or the page creation process.

I hope this helps you assess the situation.

Michael

[1] http://jupiter.eecs.jacobs-university.de/arxiv-ntcir/
[2] https://ncatlab.org/nlab/show/indexed+category

Ruby 2.5 Compatibility

Rather naively I updated to the current Ubuntu LTS 18.04, but this broke Instiki.
Ruby 2.3 was unavailable from default repositories, so I investigated getting it to run under 2.5.
It does install without warnings, but when you run "instiki" it throws

instiki/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal/conversions.rb:16:in block in included': undefined method yaml_as' for BigDecimal:Class (NoMethodError)

which is no wonder, as yaml_as is long deprecated and should be yaml_tag as of Ruby 2.5. The problem is: If I change just this occurence of yaml_as to yaml_tag, I get instead this error:

instiki/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in `require': cannot load such file -- iconv (LoadError)

The file at
https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb
looks rather different (no yaml_as or yaml_tag), so I don't know how to proceed.

In this commit the line with yaml_as is simply removed:
rails/rails@452dba7#diff-c6f87b8b0f89054619bb646c9387318c
But it doesn't change the next error message for me if I do this.

Sadly, I don't know any Ruby or Rails, so I can not fix this. Since this kind of problem has appeared in other projects, I would guess that simply updating Rails or the activesupport thing could make this work... but I also don't know how to do that.

If there is an easy way to get Instiki to run on Ruby 2.5 I would be very happy. It seems that this should be a somewhat long-term goal anyway, if Instiki is supposed to live longer...

In the meantime I will have to investigate installing Ruby 2.3 on Ubuntu 18.04 :-(

Spacing when typesetting $f:S \to T$

When I typeset $f:S \to T$ and view this in Safari the arrow is too close to T, same for $\mapsto$. In Chrome this looks fine, however. What is a bit strange now is that the same code in the nLab looks fine on Safari. Any ideas how to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.