53 posts found

Forum: Instiki – Topic: installation problems (mac osx lion)

You need the latest development version ( .tar.gz, bzr or git).

Forum: Instiki – Topic: Windows 8 and Instiki

Forum: Instiki – Topic: Debugging uninterruptible sleep

Attach gdb to the process and try to figure out where it’s stuck. It would be interesting to me if there was an Instiki-specific reason these processes were getting stuck.

But, so far, there’s no evidence for that.

Forum: Instiki – Topic: S5 vertical alignment

I don’t know of a totally robust way to do it. My CSS-fu is weak.

But

Test Vertical Alignment
------------------------

This is centered on the slide
{: style="margin-top:25%;text-align:center;}

is a pretty good approximation to what you want.

Forum: Instiki – Topic: Bugs

And another one, this time in how maruku parses its meta-data.

This was actually only a problem for IALs attached to <li> elements. Fixed in the latest Maruku.

(This commit gives the complete solution. Its predecessor was only a partial fix.)

(N.b.: Maruku is now unvendored, so a

ruby bundle update

I’m unable to run the inbuilt SVG editor on my computer (running Mac OS X, Lion).

Works fine for me under Lion. (I haven’t updated to Mountain Lion, so I can’t make any promises about that. But I’d be surprised if there were any OS dependence of this; it ought to be a function of the Javascript engine in your browser. Or perhaps I misunderstood: were you running the server on Lion, or just the client?)

Forum: itex2MML – Topic: weird math fonts

Perhaps you need to install the STIX fonts (see here for some slightly out-of-date, but still useful instructions).

I see those calligraphic letters all set in the same font. And, moreover $ℙ$ and $ℚ$ are set upright (as, for that matter, are $𝔸$ and $𝕓$).

Alas, what you see is strongly-dependent on what fonts you have installed.

In more detail:

On my system, ℬ (U+212C) is available in STIXGeneral, Apple Symbols and Arial Unicode MS. But 𝒜 (U+1D49C) is only available in STIXGeneral. In current versions of Firefox, I believe the default value of font.mathfont-family is

MathJax_Main, STIXNonUnicode, STIXSizeOneSym, STIXSize1, STIXGeneral, Asana Math, Symbol,
DejaVu Sans, Cambria Math

so the version in STIXGeneral is what I see.

Forum: itex2MML – Topic: Bugs

That’s a “feature”, not a bug.

As described here, $ab$ is a single token in itex (tranlated to <mi>ab</mi>); $a b$ are two tokens (translated to <mi>a</mi><mi>b</mi>). MathML is semantically-richer than (La)TeX, and this convention gives you the ability to enter multi-character tokens, which will be interpreted as such, when translated to MathML.

Forum: Instiki – Topic: How could I preview/undo changes?

Every page has a “History”, a “Diff” between successive Revisions, and the ability to Rollback to a prior Revision.

Instead of a Preview, successive edits, within 1/2 hour, by the same user, do not create a new Revision.

So save your work, as you go and you’ll be able to see your progress and still not lose anything (remember, with other wikis, changes which have been previewed, but not saved, will be lost).

Forum: Instiki – Topic: Instiki 0.19.4

I’ve released Instiki 0.19.4.

This is a security and bugfix release. Everyone should upgrade.

Forum: Instiki – Topic: Installation/Upgrade Issues

Launchd doesn’t play well with RVM. There are workarounds, e.g. here.

Forum: Instiki – Topic: Installation/Upgrade Issues

Hmm. And does

# irb
> require 'iconv'

return 'true'? What does

#  /usr/bin/env ruby -v

return?

Forum: itex2MML – Topic: itex and other languages

That’s cool. I’m sure other people would be interested in your PHP extension. So you should think of packaging it for distribution (Pear?).

Forum: Instiki – Topic: Feature Requests

You’ll note that another bug that I fixed, in the same commit, was Maruku’s section numbering (disabled by default; see vendor/plugins/maruku/lib/maruku/defaults.rb). Dunno whether that’s of interest.

Forum: Instiki – Topic: Feature Requests

Ah.

That is indeed a bug. Fixed (in Instiki and Heterotic Beast, too). Thanks.

Forum: Instiki – Topic: Feature Requests

The issue of needing ids to keep theorem numbers in step has been raised (again).

I’m not quite sure what the issue is.

So if I write

+-- {: .num_theorem}
###### Theorem
$X$ is nuclear and Banach if and only if it is finite dimensional
=--

your theorems still get numbered (correctly, I hope).

Since there’s no label, there’s no easy way to refer to this theorem, but maybe you don’t care. And if you do care, wouldn’t you want to avoid the fragility associated to an automatically-generated id (which will change if someone re-orders the theorems, adds a new one, or whatever)?

I must be misunderstanding…

Forum: Instiki – Topic: Feature Requests

That sounds like a request for macro-support in itex. For a variety of reasons, that’s unlikely to happen.

On the other hand, perhaps you have something else in mind …

Forum: Instiki – Topic: Bugs

Q: what do I need to do to get Instiki chosing a normal font size for my Web by default?

You might try setting the font-size on #Content. But I’m puzzled: is the font-size different from what you see on my Instiki site (which should be the same as the font-size here). Or are those also too large for your taste?

Forum: Instiki – Topic: Bugs

Hi, I’m trying out Instiki 0.19.3 on Mac OS X Snow Leopard and am running into an issue when publishing a Web. On each page (at the top) I get displayed: …

That’s a bug, which was fixed in Revision 770.

Grab a copy of the latest development version (or get it from my BZR repository or from Github).

Another issue: after installing a new version if Instiki I wanted to import the extisting content from the old installation.

Forum: Heterotic Beast – Topic: How can I arrange the order of forum ?

When logged-in as admin, click on the “edit” link, next to a forum in the list of forums.

Forum: Heterotic Beast – Topic: redirecting bug ??

Evidently, the default mailer configuration isn’t working for you.

In the latest revision, I’ve made the configuration easier to customize (edit config/initializers/mail.rb). That should do it for you.

Forum: Heterotic Beast – Topic: redirecting bug ??

Right!

http://localhost:3000/

resolves to a “site” named “localhost”, which is what you created when you ran the bootstrap script (with the default responses).

Connecting to

http://127.0.0.1:3000/

gets you to a different site (“127.0.0.1”) which doesn’t exist.

Since you want the URL for your site to be

http://peppercode.net:3000

that’s what you have to input, when you run the bootstrap script.

Later, you could set up another site (by going to http://peppercode.net:3000/sites), say:

http://foo.peppercode.net:3000

(where foo.peppercode.net resolves to the same IP address as peppercode.net), and run both forum sites off the same HB installation. I’m running three different sites (each with multiple forums), off this one Heterotic Beast installation.

Forum: Heterotic Beast – Topic: redirecting bug ??

When I do a virgin install of Heterotic Beast, launch the application, and then connect to port 3000, I get the following on the console:

script/rails server
=> Booting Mongrel
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

Started GET "/" for 127.0.0.1 at 2011-11-30 10:50:11 -0600
Processing by ForumsController#index as HTML
Site Load (0.3ms)  SELECT "sites".* FROM "sites" WHERE (host = 'localhost' or host = '')
Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from
<class:User> at /Users/distler/src/heterotic_beast/app/models/user/states.rb:2)
Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from
<class:User> at /Users/distler/src/heterotic_beast/app/models/user/states.rb:2)
Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from
<class:User> at /Users/distler/src/heterotic_beast/app/models/user/states.rb:2)
Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from
<class:User> at /Users/distler/src/heterotic_beast/app/models/user/states.rb:2)
Forum Load (0.2ms)  SELECT "forums".* FROM "forums" WHERE "forums"."site_id" = 1 ORDER BY position
User Load (0.3ms)  SELECT "users".* FROM "users" WHERE (users.last_seen_at >= '2011-11-30 16:40:13.336189'
and users.site_id = 1)
Rendered forums/index.html.erb within layouts/application (256.5ms)
...

What do you get?

Forum: Heterotic Beast – Topic: redirecting bug ??

Hmmm.

cp config/database.sample.yml config/database.yml
ruby bundle exec rake app:bootstrap

and respond that you want to keep the existing database.yml file. This will use SQLite3, instead of MySQL (it also uses separate database files for development and for production, but you could change that by editing the file).

If you can get Heterotic Beast to work with SQLite3, then we can narrow down the problem to your MySQL setup.

Forum: Heterotic Beast – Topic: redirecting bug ??

Hmmm…. Well, that’s puzzling.

Try running the server in the foreground in development mode; ie

script/rails server

script/rails server -d -e production

and report back what you see on the commandline.

I’ve done a fresh install of Heterotic Beast twice, now, and I can’t seem to reproduce your behaviour. My suspicion is that something is f%#@’d up with the communication between HB and MySQL.

Forum: Heterotic Beast – Topic: redirecting bug ??

And, if you paid attention, as the bootstrap script executed, it told you exactly what the problem was:

Time to create your administrator account.

*****
The user didn't validate for whatever reason. Fix and call user.save!
Password is too short (minimum is 6 characters)

You failed to create the initial “admin” user, whose presence is needed, in order for Heterotic Beast to function.

Forum: Heterotic Beast – Topic: redirecting bug ??

Well, the first strange thing is that you’re running Rails 3.0.7. The Gemfile for the current version of Heterotic Beast calls for Rails 3.1.1.

I don’t know why, but something seems to be f%@#’d up with the Git repository on Golem. (Update: Fixed, now. Evidently, I can’t read instructions.)

Try using the one from GitHub instead

git clone git://github.com/distler/heterotic_beast.git

I also assume that you have successfully run

bundle exec rake app:bootstrap

If not, then nothing will work correctly.

Forum: itex2MML – Topic: Bugs

According to Frédéric, it’s a feature, not a bug. I could change \widehat{} (and its cousins) to wrap their output in an <mstyle displaystyle='true'>, but that might have unintended side-effects.

Forum: Instiki – Topic: Bugs

Forum: itex2MML – Topic: Bugs

‘Cept it’s not a Firefox bug; it’s a Gecko Core (MathML Component) bug. As filed, no one relevant will see it. If you, as the Reporter of the bug, can reclassify it, maybe it will have a fighting chance of getting some attention.

Forum: itex2MML – Topic: Bugs

Correct.

The accents work correctly when accenting an <mi> (see this old bug), but not when accenting an <mo>, unless the style is displaystyle.

Thus:

MathMLDisplay
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mover><mo>⊗</mo><mo>^</mo></mover>[/itex]$\stackrel{^}{\otimes }$
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mstyle displaystyle='true'><mover><mo>⊗</mo><mo>^</mo></mover></mstyle>[/itex]$\stackrel{^}{\otimes }$
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mover><mo>⊗</mo><mo>^</mo></mover>[/itex]$\stackrel{^}{\otimes }$
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mstyle textstyle='true'><mover><mo>⊗</mo><mo>^</mo></mover></mstyle>[/itex]$\stackrel{^}{\otimes }$

You should file a bug report.