Two small features were added to Score Keeper this evening:
1. You can now lock games if you want to prevent users from adding matches. This is useful if you have games such as "Foosball, January - March" and want to make sure users don't add matches to the old games.
2. Score Keeper can now keep track of clean sheets (games where one team doesn't get any points) which are called out in the events block. Enable this in the game settings.
Other than that, I upgraded Rails to 2.3.5 and fixed a bug with the caching that caused "Matches played per day" to not update "Today" to "Yesterday" and so forth until a new match was entered.
Lars Sehested
Friday, March 26, 2010
Friday, November 20, 2009
New Drupal module released: Blogtoppen
Rasmus Bang Grouleff, an allround nice guy and former colleague of mine, released a WordPress module on November 15 which outputs the JavaScript tracking code for Blogtoppen.dk.
After reading his post announcing the module I saw no option but to create a similar module for Drupal. This module is now available for download at http://drupal.org/project/blogtoppen.
To get started, go to blogtoppen.dk and register you blog. Then, go to http://yourblog.com/admin/settings/blogtoppen and enter the tracking code you received. Blogtoppen updates stats instantly so can make sure you installed and set up the module properly by verifying that their numbers update when you visit your blog (NB: tracking is turned off for uid 1).
After reading his post announcing the module I saw no option but to create a similar module for Drupal. This module is now available for download at http://drupal.org/project/blogtoppen.
To get started, go to blogtoppen.dk and register you blog. Then, go to http://yourblog.com/admin/settings/blogtoppen and enter the tracking code you received. Blogtoppen updates stats instantly so can make sure you installed and set up the module properly by verifying that their numbers update when you visit your blog (NB: tracking is turned off for uid 1).
Thursday, September 17, 2009
Working with User in Sitecore
Today is the second time I've been looking for the User template because I needed to add a field. This will probably happen again, but next time I have this blog post (HA!):
The User template is located in the Core database at /sitecore/templates/System/Security/User.
If you then need to get a list of all users in the database, run
var userProvider = new UserProvider();
foreach (User user in userProvider.GetUsers())
{
// Do something with user...
}
*NB:* This is based on Sitecore 6.
The User template is located in the Core database at /sitecore/templates/System/Security/User.
If you then need to get a list of all users in the database, run
foreach (User user in userProvider.GetUsers())
{
// Do something with user...
}
*NB:* This is based on Sitecore 6.
Tuesday, June 30, 2009
Performance improvements
This weekend I spent some quality time with Score Keeper working to improve performance.
First of all, memcached was installed and the dashboard is now cached. This lowered the execution time for that page by an order of magnitude from about 300ms on average to 25ms.
All icons are now in a single CSS sprite which is further optimized by running optipng on it. That way, all icons and the logo are in the same 7kb file which saves 10 HTTP requests.
Ruby on Rails was upgraded to the latest version 2.3.2, which saves memory and has a bunch of optimizations of its own.
Other than that, I did some small tinkering, such as moving the Google Analytics javascript below the page's javascript, which means that e.g. table sorting is operational about 1 second faster.
A lot of code was moved around and rewritten during this process, so let me know if you discover any bugs, new or old.
First of all, memcached was installed and the dashboard is now cached. This lowered the execution time for that page by an order of magnitude from about 300ms on average to 25ms.
All icons are now in a single CSS sprite which is further optimized by running optipng on it. That way, all icons and the logo are in the same 7kb file which saves 10 HTTP requests.
Ruby on Rails was upgraded to the latest version 2.3.2, which saves memory and has a bunch of optimizations of its own.
Other than that, I did some small tinkering, such as moving the Google Analytics javascript below the page's javascript, which means that e.g. table sorting is operational about 1 second faster.
A lot of code was moved around and rewritten during this process, so let me know if you discover any bugs, new or old.
Friday, January 02, 2009
"Killed" when running gem install or gem update
Earlier today while moving Score Keeper to a new server, I ran into a hurdle with RubyGems. When I ran the command
I searched Google and found a couple of suggestions, none of them helping me. It then dawned on me that it's been a while since I installed RubyGems on that server, and sure enough,
This is easily fixed by downloading the latest version of RubyGems from http://rubyforge.org/frs/?group_id=126 which, at the time of writing, is 1.3.1. Unpack the file, go to the directory where you unpacked it and run
This fixed the problem. YMMV, of course.
gem install rails -v=2.2.2, I got the following response:Bulk updating Gem source index for: http://gems.rubyforge.orgKilledI searched Google and found a couple of suggestions, none of them helping me. It then dawned on me that it's been a while since I installed RubyGems on that server, and sure enough,
gems -v reported that I was running RubyGems version 1.1.This is easily fixed by downloading the latest version of RubyGems from http://rubyforge.org/frs/?group_id=126 which, at the time of writing, is 1.3.1. Unpack the file, go to the directory where you unpacked it and run
sudo ruby setup.rb installThis fixed the problem. YMMV, of course.
Monday, October 06, 2008
Score Keeper is moving
Due to the horrible performance on the server lately, I will be moving Score Keeper to a new server today.
I will shut down the current server before moving to make sure that no data is lost in the transfer. You could use old-school paper to record played games until Score Keeper is up and running again :-)
Update: The move is now complete and the DNS changes seem to have propagated.
I will shut down the current server before moving to make sure that no data is lost in the transfer. You could use old-school paper to record played games until Score Keeper is up and running again :-)
Update: The move is now complete and the DNS changes seem to have propagated.
Wednesday, May 07, 2008
Support for multiple games per account
It's been about a month since my last post and a lot has happened in Score Keeper land.
Perhaps the biggest change is that Score Keeper now supports multiple games per account. Also, these games can have 1, 2 or 3 members on each team. Implementing this required ripping out a lot of code and re-implementing a lot of existing functionality, so Score Keeper has been unstable for a couple of weeks. Things seem to have improved a lot lately, though.
Other than that, I have made a lot of small changes, fixed some bugs and improved performance.
A couple of tables now have sorting. This means that you can choose to sort by games won, winning percentage, etc. on the dashboard. Also, the team mates table and Teams now have sorting.
Score Keeper now supports time zones. If you set your time zone under Profile, all time stamps will be shown in your time zone.
The match list shows up a lot faster now. Previously, the match count (used for pagination) was fetched through a nasty query, taking more than 5 seconds to perform on some accounts. This is now saved on the Game model so no extra queries are needed.
Go to http://github.com/larssg/score-keeper/tree/master for the source and a full source history or sign up or sign in at http://scorekeepr.dk to check it out.
Perhaps the biggest change is that Score Keeper now supports multiple games per account. Also, these games can have 1, 2 or 3 members on each team. Implementing this required ripping out a lot of code and re-implementing a lot of existing functionality, so Score Keeper has been unstable for a couple of weeks. Things seem to have improved a lot lately, though.
Other than that, I have made a lot of small changes, fixed some bugs and improved performance.
A couple of tables now have sorting. This means that you can choose to sort by games won, winning percentage, etc. on the dashboard. Also, the team mates table and Teams now have sorting.
Score Keeper now supports time zones. If you set your time zone under Profile, all time stamps will be shown in your time zone.
The match list shows up a lot faster now. Previously, the match count (used for pagination) was fetched through a nasty query, taking more than 5 seconds to perform on some accounts. This is now saved on the Game model so no extra queries are needed.
Go to http://github.com/larssg/score-keeper/tree/master for the source and a full source history or sign up or sign in at http://scorekeepr.dk to check it out.
Subscribe to:
Posts (Atom)