Register

Mar 2005 10

Tracks 1.02a is out

I’ve just posted Tracks 1.02a here. I was hoping to add a few more features before 1.02a, but there’s still quite a lot of new stuff, and I wanted people to be able to take advantage of Rails 0.10.0. So this version of Rails is a requirement for Tracks 1.02a, and it will hopefully solve the problems people had when trying to downgrade to a compatible Rails version with Tracks 1.01.

Have fun, and as usual, let me know if I’ve broken anything. In case you’re wondering (and I can tell that you are…) the ‘a’ suffix is due to the fact that I messed up the first tagged version in svn, and couldn’t figure out how to delete a tag wink.

20 Comments

Ahh excellent, after scratching my head trying to figure out the error message I was getting with the 1.01, a fresh install of 1.02a (after upgrading rails to 0.10.0) worked fine. Very nice work smile

Now to see if I can get it working a little faster wink

Mark: Glad it’s working for you. The mismatch between 1.01 and the latest Rails was a pain.

It’s not too bad on FCGI, but it could definitely do with a speed tweak. One of the problems is that the main page (todo/list) is a summary of all the data and so has a lot of queries. If you’ve got any ideas about refactoring, do let me know or send me a patch.

Hi,

I just installed everything fine, but I can’t simply login into the application, in the README_LOGIN, you talk about some “db/user_model.sql” file that I can’t find …

I tried to add it manually but it looks like it’s not working …

 

Also, I cannot signup, when trying through login/signup, I get :

 

“You don’t have permission to sign up for a new account.

Please contact the site administrator by email to get permission.”

 

thanks for any help,

 

k.

Sweet app, but I was wondering if you (or anybody else) has looked into using XmlHttpRequest on the client side to automate adding/updating items without having to reload page. I know this is a bit less clean than a straight-up rails app, but it gets the app out of disrupting flow when tagging/entering tasks. This is what makes tadalist pretty cool.

Anyhow, I am interesting if learning more about XmlHttpRequest and Rails, so I was wondering if I could help out here or otherwise join the effort in any capacity. Let me know what works best. Thanks! And great job!

Jacob, you might be interested to know that the lead developer of Rails has said he wants to include native xmlHTTPReq support in the 1.0 release. So it might be better to just wait.

See: http://weblog.rubyonrails.com/archives/2005/03/09/lets-ajax-baby/

Grrr. I’ve got things installed, but I still can’t make it work. Hitting foo.com/tracks/public/login/signup only gets me the 404 page. My error log says:

Processing Base#index (for [IP] at [timestamp])

  Parameters: {“login/signup.html/signup”=>nil}

 

ActionController::RoutingError (No route for path: “dispatch.cgi”):

 

Can anybody throw me a rope? I sort of wonder if the RewriteRules (et al) don’t need tweaking, but I’m out of my depth.

I finally modified signup.rhtml and other files to be able to signup.

Great Work !

 

k.

kris: The README_LOGIN is a generic file distributed with the login system I used. If you import the tracks-1.02a/db/tracks_1.0.2_tables_mysql.sql file into your database, that should set up the table needed for users. Then just visit /login/signup to signup for the first (admin) user. I’ve just tried doing exactly that with a fresh install of tracks 1.02a, and it worked. Anyhow, if you’ve sorted it out some other way, that’s fine.

Jacob Harris: I have been tinkering with some XMLHttpRequest stuff in the dev version (for checking off done items), but I’m probably going to wait until it’s included in Rails (as jsp says) before going mad with it.

 

Andrew Willett: A problem with the default routes would be my guess. They work fine for most setups, but if you have Tracks in a subdirectory while running with Apache, you might need to edit public/.htaccess to give the full path to dispatch.cgi here:

 

RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]

 

However, the URL in that error is odd: it should be login/signup, not login/signup.html/signup. I don’t know why that’s happening. Anyone else?

If it makes the debugging any easier, here’s the full set of rewrites from my .htaccess:

RewriteBase /tracks/public/dispatch.cgi

RewriteRule ^$ index.html [QSA]

RewriteRule <sup>([</sup>.]+)$ $1.html [QSA]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ dispatch.cgi?$1 [QSA,L]

 

(And thanks!)

Just installed – Very cool! I love the minimalist aesthetic.. It’s a beautiful app. Although, I’ve run into a few bugs that make it unusable – anything I can do to help make it better I will. Disclaimer: I have no programming skills – So I don’t know quite how I could help – but I will

.

PS Be nice to have Tracks install as easily as instiki..

Sagres: What would be helpful is if you could tell me exactly what the bugs ‘that make it unusable’ are wink I know that several people (including me!) are using it without problems, so it may be a problem with your installatin which I can help you with.

As for the ease of installation, this has been discussed before, and I am looking in to packaging the app sometime in the future.

Just installed and I really love the app. This is just what I have been looking for. Thanks for a great app.

Some of what I experienced:

Directly after installing Tracks, I made my way to the context list. From there I deleted Library and Lab using the delete box. I then selected the home link; Add next action, notes, context pulldown menu; and the deleted context items were still in the list.

 

Hope this helps.

It seems if I edit or delete a context, the home/context/pulldown menu does not update.

For those new users who are trying the SQLite dump, here’s one that worked for me (as the one supplied in the 1.02a download is broken):

CREATE TABLE ‘contexts’ (

  ‘id’ INTEGER PRIMARY KEY,

  ‘name’ varchar(255) NOT NULL default ‘’,

  ‘hide’ tinyint(4) NOT NULL default ‘0’

  );

CREATE TABLE ‘projects’ (

  ‘id’ INTEGER PRIMARY KEY,

  ‘name’ varchar(255) NOT NULL default ‘’

  );

CREATE TABLE ‘todos’ (

  ‘id’ INTEGER PRIMARY KEY,

  ‘context_id’ int(11) NOT NULL default ‘0’,

  ‘description’ varchar(100) NOT NULL default ‘’,

  ‘notes’ text,

  ‘done’ tinyint(4) NOT NULL default ‘0’,

  ‘created’ datetime NOT NULL default ‘0000-00-00 00:00:00’,

  ‘due’ date default NULL,

  ‘completed’ datetime default NULL,

  ‘project_id’ int(11) default NULL

  );

CREATE TABLE ‘users’ (

  ‘id’ INTEGER PRIMARY KEY,

  ‘login’ varchar(80) default NULL,

  ‘password’ varchar(40) default NULL,

  ‘word’ varchar(255) default NULL,

  ‘is_admin’ tinyint(4) NOT NULL default ‘0’

  );

 

The quotes in there need to be changed to normal single quotes in order to make it work (the above has been munged by TextPattern).

 

Also, I’ve found a nifty cross-platform app called SQLiteBrowser that can graphically create databases, import and export data. It’s been especially helpful in helping me format the SQL for the transition between 1.01 and 1.02.

Sagres: Yes, others have reported the same thing. I didn’t come across it myself, so I suspect that it’s down to a caching issue. I’m in the process of developing a new version now, so I’ll check that it doesn’t occur there.

Alan: The SQLite table and content db is fixed in the development version, thanks to some great work by lolindrath (see changeset 63 and changeset 64. Thanks for the link to SQLiteBrowser—that looks like a really useful tool.

bsag: I couldn’t figure out how to get the updated sqlite.sql out of svn. Have to get to grips with that at some point.

Also wanted to say that 1.02 is quite a bit faster, and looks nicer, than 1.01. Thanks!

Alan: Just go to this URL then go to the bottom of the page and click the link for ‘Plain text’. That will render the file in plain ASCII text in your browser. All you need to do then is use your browser’s ‘Save As…’ command to save the page as a file. Don’t forget to keep the filename as tracks_1.0.2_sqlite.sql.

Any ideas on how I can get the app to autostart upon boot? So far, the only way I know how to start is: ruby/script from terminal.

Sagres: Not so far. You could try calling a script from startup items to change to the tracks directory and issue the command, but someone else tried that with no success. Does anyone else have any better ideas?
——-

You need to log in before you can post a comment. Please use the form at the top of the page to log in, or to register as a user.