Recent Posts by bcs

Subscribe to Recent Posts by bcs 11 posts found

posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: Page with multiple SVGs doesn't render properly

Ohh. That was a stupid miss on my part. I never thought to look at ids! I changed them and it all works fine now. Thanks a lot

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: Page with multiple SVGs doesn't render properly

Please find here the link to the page. And the link to the two individual figures: fig1, fig2

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: Page with multiple SVGs doesn't render properly

I have a page which includes two SVG images that were generated by tikz and then converted to SVG online. Both of them render perfectly if they are the only images on the page. But when both of them are included, the second image does not render correctly at all. All the math in the image is wrong and includes weird symbols. Is there a fix for this?

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: tex2svg on Heroku

Thanks a lot! This works for now. I will ask in Heroku forums in case the timeouts grow inconvenient.

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: tex2svg on Heroku

I deployed the tex2svg server on Heroku as per the instruction given here by creating a separate app. What exactly do I now need to put in the config/environments/production.rb file? When I gave the path to the tex2svg Heroku app with port number 9292, it timed out during testing. How do I start the tex2svg server on Heroku? Please guide.

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: Heroku hosting fails

It works now! Thanks!

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: Heroku hosting fails

I followed the exact instructions on the site. The Gemfile.lock that I can see on my machine also doesn’t have the “BUNDLED WITH” line. The code seems to be running BUNDLED_WITHOUT :


remote: Running: BUNDLE_WITHOUT=‘development:test’ BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4


But I do not know what BUNDLED_WITH version it is removing in a previous line. None of the files (Gemfile or Gemfile.lock) seem to have either BUNDLED_WITH or the BUNDLED_WITHOUT line. I found a dicussion on stackoverflow but the accepted answer says the same thing the log file says. I did not run bundle install at any point.

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: SVG editor doesn't work

No I do not have any wiki (web) of that name. Or even a page. I got the same error when I tried it with different browsers also (with and without any extensions/addons).

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: Heroku hosting fails

I tried it again and got this error:


—–> Building on the Heroku-20 stack

—–> Determining which buildpack to use for this app

—–> Ruby app detected

—–> Installing bundler 1.17.3

—–> Removing BUNDLED WITH version in the Gemfile.lock

—–> Compiling Ruby/Rack

—–> Using Ruby version: ruby-2.7.1

—–> Installing dependencies using bundler 1.17.3

   Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4

   You are trying to install in deployment mode after changing

   your Gemfile. Run `bundle install` elsewhere and add the

   updated Gemfile.lock to version control.

   

   If this is a development machine, remove the /tmp/build_34292e11/Gemfile freeze 

   by running `bundle install --no-deployment`.

   

   Bundler is unlocking ruby

   

   You have added to the Gemfile:

   * rubyzip (~> 2.3.0)

   

   You have deleted from the Gemfile:

   * rubyzip  (~> 2.3.0)

   Bundler Output: You are trying to install in deployment mode after changing

   your Gemfile. Run `bundle install` elsewhere and add the

   updated Gemfile.lock to version control.

   

   If this is a development machine, remove the /tmp/build_34292e11/Gemfile freeze 

   by running `bundle install --no-deployment`.

   

   Bundler is unlocking ruby

   

   You have added to the Gemfile:

   * rubyzip (~> 2.3.0)

   

   You have deleted from the Gemfile:

   * rubyzip  (~> 2.3.0)

!

! Failed to install gems via Bundler.

!

! Push rejected, failed to compile Ruby app.

! Push failed


I am not sure now if this was a problem from my side.

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: SVG editor doesn't work

When I try to add an SVG graphic in a page using the Create SVG button, the popup windows doesn’t display anything. From the log it seems that it is unable find the css file


Processing WikiController#editor (for 127.0.0.1 at 2021-09-25 09:55:03) [GET] Parameters: {“web”=>“svg-edit”, “id”=>“jgraduate/css/jGraduate.css”} Rendering template within layouts/error Filter chain halted as [:connect_to_model] rendered_or_redirected. Completed in 4ms (View: 1, DB: 3) | 404 Not Found [http://localhost/svg-edit/editor/jgraduate/css/jGraduate.css]


Could someone please look into the issue and help?

 
posted 2 years ago
bcs 11 posts

Forum: Instiki – Topic: Heroku hosting fails

I followed the instructions on the instiki site to create and host a wiki on heroku. But there seems to be an error which is probably to do with the gemfile? Here is the build log


—–> Building on the Heroku-20 stack

—–> Determining which buildpack to use for this app

—–> Ruby app detected

—–> Installing bundler 1.17.3

—–> Removing BUNDLED WITH version in the Gemfile.lock

—–> Compiling Ruby/Rack

—–> Using Ruby version: ruby-2.7.1

—–> Installing dependencies using bundler 1.17.3

   Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4

   Fetching gem metadata from https://rubygems.org/...........

   Unable to use the platform-specific (x86_64-linux) version of nokogiri (1.11.4) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config set specific_platform true` and install again.

   Fetching https://github.com/distler/maruku.git

   Fetching rake 12.3.2

   Installing rake 12.3.2

   Fetching RedCloth 4.3.2

   Using bundler 2.1.4

   Fetching abstract 1.0.0

   Fetching daemons 1.3.1

   Installing abstract 1.0.0

   Installing daemons 1.3.1

   Installing RedCloth 4.3.2 with native extensions

   Fetching erubis 2.7.0

   Installing erubis 2.7.0

   Fetching eventmachine 1.2.7

   Installing eventmachine 1.2.7 with native extensions

   Fetching file_signature 1.2.0

   Installing file_signature 1.2.0

   Fetching mime-types-data 3.2018.0812

   Installing mime-types-data 3.2018.0812

   Fetching multi_xml 0.6.0

   Installing multi_xml 0.6.0

   Fetching iconv 1.0.8

   Installing iconv 1.0.8 with native extensions

   Fetching itextomml 1.6.0

   Installing itextomml 1.6.0 with native extensions

   Fetching json 2.2.0

   Installing json 2.2.0 with native extensions

   Fetching mini_portile2 2.3.0

   Installing mini_portile2 2.3.0

   Fetching syntax 1.1.0

   Installing syntax 1.1.0

   Fetching pg 1.0.0

   Installing pg 1.0.0 with native extensions

   Fetching rack 2.2.3

   Installing rack 2.2.3

   Fetching rails_xss 0.4.0

   Installing rails_xss 0.4.0

   Fetching rdoc 4.3.0

   Installing rdoc 4.3.0

   Fetching rubyzip 0.9.9

   Installing rubyzip 0.9.9

   Fetching test-unit 2.5.5

   Installing test-unit 2.5.5

   Fetching mime-types 3.2.2

   Installing mime-types 3.2.2

   Fetching nokogiri 1.11.4

   Fetching thin 1.7.2

   Installing thin 1.7.2 with native extensions

   Fetching httparty 0.16.4

   Installing httparty 0.16.4

   Downloading nokogiri-1.11.4 revealed dependencies not in the API or the lockfile

   (racc (~> 1.4), mini_portile2 (~> 2.5.0)).

   Either installing with `--full-index` or running `bundle update nokogiri` should

   fix the problem.

   Bundler Output: Fetching gem metadata from https://rubygems.org/...........

   Unable to use the platform-specific (x86_64-linux) version of nokogiri (1.11.4) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config set specific_platform true` and install again.

   Fetching https://github.com/distler/maruku.git

   Fetching rake 12.3.2

   Installing rake 12.3.2

   Fetching RedCloth 4.3.2

   Using bundler 2.1.4

   Fetching abstract 1.0.0

   Fetching daemons 1.3.1

   Installing abstract 1.0.0

   Installing daemons 1.3.1

   Installing RedCloth 4.3.2 with native extensions

   Fetching erubis 2.7.0

   Installing erubis 2.7.0

   Fetching eventmachine 1.2.7

   Installing eventmachine 1.2.7 with native extensions

   Fetching file_signature 1.2.0

   Installing file_signature 1.2.0

   Fetching mime-types-data 3.2018.0812

   Installing mime-types-data 3.2018.0812

   Fetching multi_xml 0.6.0

   Installing multi_xml 0.6.0

   Fetching iconv 1.0.8

   Installing iconv 1.0.8 with native extensions

   Fetching itextomml 1.6.0

   Installing itextomml 1.6.0 with native extensions

   Fetching json 2.2.0

   Installing json 2.2.0 with native extensions

   Fetching mini_portile2 2.3.0

   Installing mini_portile2 2.3.0

   Fetching syntax 1.1.0

   Installing syntax 1.1.0

   Fetching pg 1.0.0

   Installing pg 1.0.0 with native extensions

   Fetching rack 2.2.3

   Installing rack 2.2.3

   Fetching rails_xss 0.4.0

   Installing rails_xss 0.4.0

   Fetching rdoc 4.3.0

   Installing rdoc 4.3.0

   Fetching rubyzip 0.9.9

   Installing rubyzip 0.9.9

   Fetching test-unit 2.5.5

   Installing test-unit 2.5.5

   Fetching mime-types 3.2.2

   Installing mime-types 3.2.2

   Fetching nokogiri 1.11.4

   Fetching thin 1.7.2

   Installing thin 1.7.2 with native extensions

   Fetching httparty 0.16.4

   Installing httparty 0.16.4

   Downloading nokogiri-1.11.4 revealed dependencies not in the API or the lockfile

   (racc (~> 1.4), mini_portile2 (~> 2.5.0)).

   Either installing with `--full-index` or running `bundle update nokogiri` should

   fix the problem.

!

! Failed to install gems via Bundler.

!

! Push rejected, failed to compile Ruby app.

! Push failed


Could someone help with this issue?