Here’s the new Tikz picture feature in action.
is produced by
+--{: style='text-align: center'}
\begin{tikzpicture}
\useasboundingbox (-4,-3) rectangle (4,4.75);
\draw[thick] (-3.46410,-2) -- (0,4) -- ( 3.46410,-2) -- (-3.46410,-2);
\draw[thick] (0,0) circle (2);
\draw[thick] (0,4) -- (0,-2);
\draw[thick] (-3.46410,-2) -- ( 1.73205,1);
\draw[thick] ( 3.46410,-2) -- (-1.73205,1);
\filldraw (-1.73205,1) circle (3pt) node[anchor=south east, scale=1.5] {$e_1$};
\filldraw ( 1.73205,1) circle (3pt) node[anchor=south west, scale=1.5] {$e_2$};
\filldraw (0,-2) circle (3pt) node[anchor=north, scale=1.5] {$e_3$};
\filldraw (0,0) circle (3pt) node[anchor=west, xshift=7pt, scale=1.5] {$e_4$};
\filldraw (3.46410,-2) circle (3pt) node[anchor=north, scale=1.5] {$e_5$};
\filldraw (-3.46410,-2) circle (3pt) node[anchor=north, scale=1.5] {$e_6$};
\filldraw (0,4) circle (3pt) node[anchor=south, scale=1.5] {$e_7$};
\end{tikzpicture}
=--
If you need additional Tikz libraries, put a \usetikzlibrary{...}
in the body of your figure. See this blog post for more details and examples.
Heterotic Beast supports any RDBMS backend that Rails supports.
Looking for a forum software that is compatible with database management system software such as Tibero. I want to be able to make the data quantifiable and run it through a program to analyze user data and what not. Let me know if this is possible and if you need more information on the software I will be using click here.
Instead of simulating the edit function where content is shown in place, I would preferably show this in a popup. That way users couldn’t mix up the functionality and get confused. You can also add some information like the Format to the popup.
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.
Also, I’m not evaluating now how important these features are. Once I have a clear picture of what HB can do now, and what it potentially could do without a lot of extra effort, then I’m hoping to adjust our Vanilla-based expectations to the HB.
Regarding categories, for example, we’re very used to it, and take it for granted, but I’m not convinced that it’s a really important feature. For example, although it’s nice to think that I can filter the posts by category, I have never actually done this in practice.
The other uses of categories I mentioned are still valid, though I could probably make a case for workarounds (a separate forum called Technical) or doing without them.
Previewing is just a nice-to-have.
Moreover, we can assess later, now I’m just trying to learn how it works and throw out ideas as they come up.
Thanks
By the way, I meant to change the title of this thread from “Evaluating HB for Azimuth Forum” to “Discussion of HB for Azimuth Forum,” but when I clicked on the Edit link, it takes me right to the Login screen. However, this bug is not present in the instance of HB that we now have running.
Our current software supports a categorization scheme for posts. When you submit a post, you choose a category for it. The category shows in the summary line for the post. The categories can be used to filter the list of posts. I believe that Andrew uses this, for example, to view just the posts in the category Technical. Also, the visibility of posts can be controlled at the category level. For instance, the category Strategy can be made readable only to members.
To what extent are such mechanisms supported in HB? We could have separate forums, e.g., one for Technical, but is there a more fine-grained way to classify the posts?
Feature Request: ability to preview a post before submitting it.
Hi we are currently experimenting with HB, and considering switching over to it. I’m going to use this thread for any feedback, questions or feature requests from the group.
HB provides the essential functionality that we need, which includes Itex and Markdown. So does our current forum software, which is an installation of Vanilla that has been customized by Andrew Stacey to generate MathML and do other good things. We’re happy with the current software, but Andrew is moving on, and we are setting up a new server independently of the nLab. I won’t be able to support this modification of an old version of Vanilla. So we’re motivated to change to a supported package, and Andrew pointed us to the Heterotic Beast.
So the challenge will be to see if I can get the Azimuth group to accept the new package, which is fundamentally similar to what they have now, yet will inevitably differ in form from what they are quite comfortable with now.
I will be posting “feature requests” here that come from that perspective. Please take them with a grain of salt, and don’t do any work on our behalf that you wouldn’t want for yourself – especially because the group might not reach the consensus to make the change. In any case, these feature requests might give you something useful to think about.
That a good resolution. Thanks.
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.
Minor: Account names get lowercased. I created an account “David Tanzer” from the signup page, but it gets recorded as “david tanzer.” I find it somewhat unsettling to see proper names in lower case. But its easy enough to workaround by updating the database.
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.
Hi, is there a way to see a read-only view of source text of other people’s posts, just as it appears when one edits one’s own post? It’s useful for getting ideas from other people, with respect to formulas and formatting.
Thanks,
David Tanzer
Azimuth Project
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.
The latest commits, to Heterotic Beast, upgrade it to MathJax 2.0 (from 1.1). This loads (a little) faster, and also sports a SVG rendering option (selectable from the context menu).
If you’re going to use Heterotic Beast in production, you need to be running MySQL 5.5.3 or later, and follow the advice in this blog post.
Otherwise, the lack of support for Unicode will come back to bite you.
When logged-in as admin, click on the “edit” link, next to a forum in the list of forums.
I’ve create several forums with admin account. It seems to show up on the top with recently created orders. but how can I change the order of forum ? and how can I delete the specific forum ?
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.
Thanks a lot !
Finally I got the forum now ! http://forum.peppercode.net
But another little problem has arisen.
When I sign up for new user, notification mail is failed to deliver.
(development environment works fine. because it ignore to fail)
And site says:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
And production.log is
Started POST "/users" for 118.36.184.24 at Thu Dec 01 07:15:34 +0900 2011
Processing by UsersController#create as HTML
Parameters: {"commit"=>"Sign up", "authenticity_token"=>"ktzSyfq2jKdHmHII7m3EpvxHF3loOUR2rx9P8dkBfGA=",
"utf8"=>"\342\234\223", "user"=>{"openid_url"=>"", "password_confirmation"=>"[FILTERED]",
"password"=>"[FILTERED]", "login"=>"jufoot3", "email"=>"jufoot3@gmail.com"}}
Rendered user_mailer/signup_notification.text.erb (0.3ms)
Sent mail to jufoot3@gmail.com (44ms)
Completed 500 Internal Server Error in 102ms
Errno::ECONNREFUSED (Connection refused - connect(2)):
app/models/user/states.rb:41:in `do_activation'
app/models/user/activation.rb:8:in `set_first_user_as_activated'
app/controllers/users_controller.rb:40:in `create'
PS. Do I have to separate this post from this thread ?..
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.
I did virgin install of HB on my desktop.
And I think I got what the problem is.
When you do bootstrap, set to host name to localhost, launch the server, and then try to connect to 127.0.0.1:3000 (not localhost:3000)
It works fine only on localhost:3000.
When I try to connect to 127.0.0.1:3000 I got infinite redirection.
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 = '')
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead.
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)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead.
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)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead.
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)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead.
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?
I’ve changed MySQL to SQLite3 following your suggestion.
But it doesn’t work too. (emit same log)
FYI. I’m running instiki on the same server. it works fine.
I’m sure HB is definitely running with Rails 3.1.1.
Here is my gem list.
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.1.3, 3.1.1, 3.0.7, 3.0.6, 2.3.12, 2.3.11, 2.3.5)
actionpack (3.1.3, 3.1.1, 3.0.7, 3.0.6, 2.3.12, 2.3.11, 2.3.5)
activemodel (3.1.3, 3.1.1, 3.0.7, 3.0.6)
activerecord (3.1.3, 3.1.1, 3.0.7, 3.0.6, 2.3.12, 2.3.11, 2.3.5)
activeresource (3.1.3, 3.1.1, 3.0.7, 3.0.6, 2.3.12, 2.3.11, 2.3.5)
activesupport (3.1.3, 3.1.1, 3.0.7, 3.0.6, 2.3.12, 2.3.11, 2.3.5)
acts_as_list (0.1.4, 0.1.2)
acts_as_state_machine (2.2.0)
albino (1.3.3, 1.3.2)
arel (2.2.1, 2.0.9)
autotest (4.4.6)
builder (3.0.0, 2.1.2)
bundler (1.0.21, 1.0.12)
cgi_multipart_eof_fix (2.5.0)
daemon_controller (0.2.6)
daemons (1.1.4, 1.0.10)
diff-lcs (1.1.3, 1.1.2)
erubis (2.7.0, 2.6.6)
execjs (1.2.9)
expression_parser (0.9.0)
fastthread (1.0.7)
gem_plugin (0.2.3)
github-markup (0.5.3)
gollum (1.3.1, 1.2.0)
grit (2.4.1)
highline (1.6.8, 1.6.5, 1.6.1)
hike (1.2.1)
i18n (0.6.0, 0.5.0, 0.4.2, 0.4.1)
itextomml (1.4.9)
json (1.6.1)
mail (2.3.0, 2.2.19, 2.2.15)
mime-types (1.17.2, 1.17.1, 1.16)
mongrel (1.2.0.pre2, 1.1.5)
multi_json (1.0.3)
mustache (0.99.4, 0.99.3)
mysql (2.8.1)
mysql2 (0.3.10, 0.2.7)
nokogiri (1.5.0, 1.4.4)
open4 (1.3.0, 1.2.0, 1.0.1)
passenger (3.0.10, 3.0.9)
permalink_fu (1.0.0)
Platform (0.4.0)
polyglot (0.3.3, 0.3.2, 0.3.1)
POpen4 (0.1.4)
posix-spawn (0.3.6, 0.3.5)
prototype-rails (3.1.0)
rack (1.3.5, 1.2.2, 1.1.1, 1.0.1)
rack-cache (1.1)
rack-mount (0.8.3, 0.7.1, 0.6.14)
rack-openid (1.3.1)
rack-protection (1.1.4)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.1.3, 3.1.1, 3.0.7, 2.3.11)
rails3-generators (0.17.4)
railties (3.1.3, 3.1.1, 3.0.7, 3.0.6)
rake (0.9.2.2, 0.8.7)
rdiscount (1.6.8)
rdoc (3.11)
redcarpet (1.17.2)
RedCloth (4.2.9, 4.2.8, 4.2.7)
rspec (2.7.0, 2.5.0)
rspec-core (2.7.1, 2.5.2)
rspec-expectations (2.7.0, 2.5.0)
rspec-mocks (2.7.0, 2.5.0)
rspec-rails (2.7.0, 2.5.0)
ruby-openid (2.1.8)
rubygems-update (1.8.11, 1.4.2)
sanitize (2.0.3, 2.0.1)
sass (3.1.10)
sass-rails (3.1.5, 3.1.4)
sinatra (1.3.1, 1.2.3, 1.2.2)
sprockets (2.1.2, 2.0.3)
sqlite3 (1.3.4, 1.3.3)
sqlite3-ruby (1.3.3)
thor (0.14.6)
tilt (1.3.3, 1.2.2)
treetop (1.4.10, 1.4.9)
tzinfo (0.3.31, 0.3.30, 0.3.27, 0.3.26)
uglifier (1.1.0, 1.0.4)
wikicloth (0.7.1, 0.7.0, 0.6.3)
will_paginate (3.0.2)
ZenTest (4.6.2, 4.5.0)
Hmmm.
How about this? Let’s try to eliminate MySQL from the picture.
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.
I’ve been running server foreground already.
and I created two databases in MySQL with below command.
create database heterotic character set utf8;
create database heterotic_test character set utf8;
create user 'heterotic2'@'localhost' identified by 'my_password';
grant all privileges on heterotic.* to 'heterotic2'@'localhost';
grant all privileges on heterotic_test.* to 'heterotic2'@'localhost';
and then did app:bootstrap.
Here is the my website. http://peppercode.net:3000
Hmmm…. Well, that’s puzzling.
Try running the server in the foreground in development mode; ie
script/rails server
instead of
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.
Sorry for my mistake.
Now admin user created normally.
But same problem.
And, if you paid attention, as the bootstrap script executed, it told you exactly what the problem was:
Time to create your administrator account.
Login: |admin|
Password:
*****
Email: |admin@example.com|
admin@example.com
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.