# Recent Posts by distler

100 posts found

 posted 5 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues The whole point of rbenv (or rvm) is to set up your paths correctly so that, when you type ruby, you get the desired executable. I don’t know anything about Dreamhost, and didn’t really read the rbenv installation instructions that you followed, but evidently they didn’t quite achieve the desired result. posted 5 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues OK. So let’s assume you’ve gotten that far correctly. cd to your Instiki directory and try ruby --version ruby bundle install The first command should return the version of Ruby you’re using (hopefully 2.2). The second should run the included version of Bundler (as opposed to the one you installed via rbenv). posted 6 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues rbenv is certainly the preferred way to get multi-version Ruby support. So I would go with that, and target Ruby 2.1 or 2.2. posted 6 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues I think it would be better to start with a more recent version (≥1.9.3) of Ruby. What are your options for that? posted 6 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues “… although if I want to run Ruby 2.1 or 2.2 I think I’m going to have to build it from source, which I don’t know how to do yet.” Build Ruby from source? I don’t think you want to do that (unless you really have to). It would be better to have a known-working version of Ruby, so that we don’t have to debug possible problems in your Ruby installation as well (well, OK, technically we are already doing that, since your versions of Ruby and Rubgems aren’t totally compatible). Instiki should work fine with Ruby 1.9.3, if that’s really the most recent version you have access to. We’d just need to modify a line in config/boot.rb to take care your problem with Rubygems. posted 6 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues I’m sorry. I am quite confused as to your configuration. In your first message, you indicated that You had willy-nilly modified your Gemfile. Did you revert that modification before trying again? Your Ruby version was 1.8.7. Now you tell me that progress was made by downgrading your Ruby version to “<2.0”?!? That said, I sorta understand the error about Gem.source_index. The version(s) of Rubygems which came with Ruby < 2.0 had that method. Later versions do not. So there’s a monkey-patch in config/boot.rb to supply the missing method for Ruby ≥ 2.0. Evidently, you have the odd combination of an old (1.9.3) version or Ruby and a recent version of Rubygems. Maybe you should start again with an unmodified installation of Instiki. a recent version of Ruby: I recommend 2.1 or 2.2. Run ruby bundle install and see what happens. If that fails, post your errors here. If it succeeds, but then ./instiki fails, post your Gemfile.lock, so we can see what got installed. posted 6 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues On the other hand, if you’re just using ASCII characters, you can replace [[:word:]] with \w on lines 263 and 267 of vendor/bundle/ruby/1.8/bundler/gems/maruku-aa33367fa89e/lib/maruku/input/parse_span.rb and not run into any problems. posted 6 months ago distler 100 posts Forum: Instiki – Topic: Dreamhost installation issues Hmmm. I’m afraid that Maruku no longer supports Ruby 1.8.x (which is EOL). I think you need at least Ruby 1.9.3. I guess I should update the documentation accordingly … posted 10 months ago distler 100 posts Forum: Instiki – Topic: HTML/PHP comments? Short answer: no. You can try embedding (X)HTML comments in the source, but they get escaped (for a variety of security-related reasons) and hence are “visible” on the page. Longer answer: Metadata about the page can be placed in a way that does not appear in the rendered output. The syntax is that of email headers (key-value pairs, at the beginning of the page, separated from the main text by a newline): Author: Me Subject: My personal musings Blortnaz: Whatever you want to put here And now begins the main text ... This is not quite what you asked for, but it may serve your purpose, depending on what use-case you had in mind. posted about 1 year ago distler 100 posts Forum: Instiki – Topic: instiki_session cookie overflows after some editing I only replaced the /app folder of my current wiki… Well, since the changeset that I linked to above also involves changes to vendor/plugins/form_spam_protection/lib/form_tag_helper_extensions.rb , just updating files in /app/* won’t actually work. Moreover, updating all of the files in /app to the latest version(s) drags in other changes. The particular error that you are seeing is due to this changeset, which introduces a nice feature for wikilinks, but required some changes in /lib as well. I think I will wait for the 19.8 release on this one. This is not a huge problem. Currently I am awaiting the release of Passenger 5.0.7, to see whether it resolves some issues with Instiki, or whether changes on the Instiki end are also required. If all goes according to plan, I’ll roll another release sometime in the early summer. For whatever it’s worth, though, this site runs on the latest development version of Instiki (with Passenger 4.0.59) and is perfectly stable. If you’re having issues with Instiki 0.19.7, I’d recommend updating now. posted about 1 year ago distler 100 posts Forum: Instiki – Topic: instiki_session cookie overflows after some editing Try using the latest Development Version. (Grab it either from my BZR Repository, from Github or as a tarball.) There are some changes that should fix the problem. Someday, I’ll get around to releasing 0.19.8 …. posted over 1 year ago distler 100 posts Forum: Instiki – Topic: Instiki hyperlinks failures I did figure out that if I tried to upload a file into instiki (which automatically creates a ‘files’ folder in the Webs directory, and moved the html file to the newly created ‘files’ folder … Oh. I think I misunderstood your problem. Of course you can’t create an HTML link to some random file in (a random subdirectory of) the instiki directory. That would be stupid and dangerous. As you can see from URLs for the CSS and javascript files on your Instiki pages, you can link to files in the public directory. You can also link to files in the webs directory (as you can see from the file links that you created). I guess also a functionality thing I noticed is that if you click on the hyperlink to an local hosted html page. Instiki calls up a download box within the browser and asks the user if they want to save the html file locally, instead of actually opening the page within the browser as an actual webpage. Is this an issue or just how instiki displays local html files? That’s for security. You ought to be able to trust that the content of an Instiki page is safe. Thus (for instance) you can’t edit an Instiki page and add malicious javascript to it. This protection would be vitiated, if you could put the malicious javascript in an HTML file that opened in the user’s browser as if it were just another page on the Instiki wiki. This restriction does not apply to files in the public directory. Those had to have been placed there by the system administrator and are assumed to be safe. posted over 1 year ago distler 100 posts Forum: Instiki – Topic: Instiki hyperlinks failures How about "Environment Configuration":/aces/wiki_files/environments/AcesEnvironments.html ? I don’t know how well Textile handles the “:” in the URL you were using. posted over 1 year ago distler 100 posts Forum: Instiki – Topic: How do I bulk-clear the Instiki cache How about: rm instiki/storage/* That should be fine. rm -r instiki/cache/views/azimuth As should that. There’s a whole structure of directories and files under the last directory, that’s okay to wipe out? All of those will be recreated, as needed. posted over 1 year ago distler 100 posts Forum: Instiki – Topic: Idle Instiki was using 17% of CPU on a shared host Hmmm. Both of those sound bad. Are they related? What version of Passenger are you running? posted over 1 year ago distler 100 posts Forum: Instiki – Topic: Feature Requests Try adding the entry 'dnsbl.tornevall.org' => 'https://dnsbl.tornevall.org/scan?ip=' to the DNSBLS hash in vendor/plugins/dnsbl_check/lib/dnsbl_check.rb. Apparently, the http://www.stopforumspam.com/ data is shared with that dnsbl list, and hence can be queried with the same kind of dnsbl lookup. If that works, we can incorporate that in an update to Instiki. If not, we can look into implementing the API. posted over 1 year ago distler 100 posts Forum: Instiki – Topic: Requirements for a server-side Instiki scripting package You might want to look at this page % ruby bundle exec rake db:fixtures:export_all ... % ruby bundle exec rake db:fixtures:import_all which, mind you, is about exporting a whole Instiki instance (rather than just the pages in a category). But it should give you the general idea. More generally, it seems that what you want to do is write a few Rake tasks for the sort of administrative functions that you want to perform. That may be worthwhile, even if you eventually get SSL running properly. posted over 1 year ago distler 100 posts Forum: Instiki – Topic: How to develop an ABC music plugin for Instiki? The Markdown+Blahtex engine works similarly: shelling out to Blahtex to produce png images for the equations (which are cached on the server. So you might look closely at the Blahtex Math Extension in (my version of) Maruku. posted over 1 year ago distler 100 posts Forum: Instiki – Topic: How to develop an ABC music plugin for Instiki? There is a hierarchy of processing of inputs in Instiki The chunk handler processes various bits of “Wiki Syntax.” It is extensible, by writing new handlers and including them, by name, in lib/wiki_content.rb. A content engine (Markdown, by default, but Textile and RDoc are also available). New content engines can be added in lib/chunks/engines.rb. Within one of the Markdown content engines, itextomml handles equations. Maruku (our Markdown processor) has an extension mechanism. Math support is implemented as an extension. But so is the div syntax, as are fenced codeblocks and citations. Presumably, what you want is an ABC extension for Maruku. That would be much easier to create, if there were a Rubygem implementation of ABC notation. But there doesn’t seem to be one. Is there a good library in Python/Perl/… that might be worth porting to Ruby? posted over 1 year ago distler 100 posts Forum: Instiki – Topic: Question marks in Instiki page titles? I can’t think of a reason why question marks in the page name would be a problem. The name is CGI-escaped when forming the URI. posted over 1 year ago distler 100 posts Forum: Heterotic Beast – Topic: Evaluating HB for Azimuth Forum Heterotic Beast supports the following hierarchy Sites ⊃ Forums ⊃ Topics ⊃ Posts Different Sites have different URLs (virtual hosts, in Apache parlance), and different user-lists. For instance, the LHC Forum is another Site, running under the same Heterotic Beast instance as this one. The thing closest to Vanilla’s “categories” is Heterotic Beast’s “Forums”. I’m not sure we need both. But we can discuss it. posted over 1 year ago distler 100 posts edited over 1 year ago Forum: Heterotic Beast – Topic: Bugs The culprit is  before_validation :normalize_login_and_email in app/models/user/validation.rb. The point is that we don’t want a “David Tanzer”, a “david tanzer” and a “dAvid tanzEr”. The normalize_login_and_email downcases both the login name and email address, associated to an account, to put them in canonical form (before checking the database to see if there is already an account with that name/email). While downcasing the email address is clearly the right thing to do, it’s not so clear that’s the “right” thing to do for the login name. I’ve fixed it so that we just make a case-insensitive check on uniqueness. posted almost 2 years ago distler 100 posts Forum: Heterotic Beast – Topic: Can I view the source text for other people's posts? That might be a worthwhile feature to add. But, as an Instiki user, you are probably well-familiar with the syntax. Heterotic Beast uses Maruku as its Markdown processor and itex2MML to process equations. It even has the same WYSIWYG SVG editor that Instiki uses. So, except for a few bits of Wiki syntax ([[...]] for wikilinks, [!include ...] to include other wiki pages, etc), it should work exactly the same as what you’re used to. posted 2 years ago distler 100 posts Forum: Instiki – Topic: Debian installation I love this software so much I’m starting to worry, when are you going to grow tired of maintaining it? Thank you! My problem is lack of time, not lack of enthusiasm. posted 2 years ago distler 100 posts Forum: Instiki – Topic: Debian installation Sorry. You can try replacing gem "mongrel", ">=1.2.0.pre2" with gem "thin" in the Gemfile and see if that allows a successful bundle install. posted 2 years ago distler 100 posts Forum: Instiki – Topic: Debian installation Hmm. Well, I’m thinking of ditching mongrel in favour of thin, which is being maintained. You might try changing that line in the Gemfile and seeing if that fixes your error. It would be one more motivation for making the switch. posted 2 years ago distler 100 posts edited 2 years ago Forum: Heterotic Beast – Topic: Rails 3.1.0 Heterotic Beast is now a Rails 3.2 application. (There’s an updated acts_as_state_machine gem, among other things which make this transition smooth.) This forum is currently running on Rails 3.2.16. posted 2 years ago distler 100 posts Forum: Instiki – Topic: Ruby 2.0 and 2.1 The current development version of Instiki runs (and the next release will run) just fine on Ruby 2.0 and 2.1. This is important for (among others) MacOSX Mountain Lion users, whose default version of Ruby is 2.0. posted 2 years ago distler 100 posts edited 2 years ago Forum: Instiki – Topic: installation problems (mac osx lion) Well, that was fun… I think I have instiki now running successfully on Ruby 1.8.7 Ruby 1.9.3 Ruby 2.0.0 It was quite a juggling act getting it to work on all three. But I think I’ve succeeded. Let me know if you encounter further problems. (In an attempt to eat my own dogfood, I have switched this forum and the copy of Instiki running on Golem, to run under Ruby 2.0.0.) posted 2 years ago distler 100 posts edited 2 years ago Forum: Instiki – Topic: installation problems (mac osx lion) I actually had tried the development version, too… Please try again. The relevant feature of the development version is that it changes. (only I was prompted to update Ruby when I first tried to run the bundler; which I did; my current version is 2.0.0) Oh! I haven’t tested Instiki on Ruby 2.0. Works fine on 1.9.x, but there may be issues with 2.0.