Skip to content

Instantly share code, notes, and snippets.

@leikind
leikind / Cat FSM.md
Created January 5, 2015 17:07
Cat FSM
@leikind
leikind / Dog FSM.md
Last active August 29, 2015 14:12
Dog FSM

DECEMBER 13, 2011

Learn You Some Erlang for Great Good by MononcQc is a really good alternative to the two canonical Erlang Books Erlang Programming by Francesco Cesarini and Simon Thompson and Programming Erlang: Software for a Concurrent World by Joe Armstrong, especially when you need to jump into the language quickly. It gives you enough knowledge to build upon reading other people's code, documentation, and coding.

Things taken for granted by Erlang programmers can be confusing to newcomers to concurrent and functional programming. Needless to say, jumping from, say, C# to Ruby is far less adventurous than from any of the two to Erlang. While reading the book I found out that readability of certain

@leikind
leikind / WiceGrid version 3.2.0.pre1.md
Last active August 29, 2015 14:12
WiceGrid version 3.2.0.pre1

JULY 24, 2012

WiceGrid version 3.2.0.pre1 has been released, and the WiceGrid testbed application has been updated.

Here is the changelog:

  1. Support for Prototype has been dropped. No hard feelings, Prototype, no matter what others say, I liked you, and I am perhaps the last one to have dumped you :)
  2. All assets are in the asset pipeline. All javascript is now coffeescript. No more Rails 2 legacy in the form of obtrusive javascript in the HTML page. The styles file is copied to the application asset directory by a generate task so that is it easy to modify it to the application needs. The javascript and images are loaded from the plugin. Read the Installation section in README for details. Thanks to the asset pipeline taking care of loading assets for us, methods include_wice_grid_assets, `names_of_wice_grid_sty
@leikind
leikind / whats new in wicegrid.md
Last active August 29, 2015 14:12
what's new in wicegrid

JUNE 20, 2010

The following features have just been merged into the master branch of WiceGrid:

  1. Support for Rails 2.3.8 with or without rails_xss.
  2. Auto-reloading filters. Filters can be configured to reload the grid once they get changed without clicking the Reload button. This works for dropdown lists, text fields, and the JS calendar ( not with the standard Rails date/datetime helpers). See an example here. Read the documentation.
  3. New helper export_to_csv_javascript which works in a fashion similar to submit_grid_javascript and reset_grid_javascript, generating javascript which would trigger CSV export. This enables custom "Export To CSV" buttons anywhere on page.
  4. Option :hide_csv_button to complement export_to_csv_javascript and to hide the de
@leikind
leikind / Better late than never.md
Last active August 29, 2015 14:12
WiceGrid versions 0.6 and 3.0.0.pre1
@leikind
leikind / WiceGrid version 3.2.1.pre1.md
Last active August 29, 2015 14:12
WiceGrid version 3.2.1.pre1
@leikind
leikind / WiceGrid: jQuery support autoreloading filters.md
Last active August 29, 2015 14:12
WiceGrid: jQuery support & autoreloading filters

SEPTEMBER 12, 2010

The other day "an experimental branch was merged into master, adding support for jQuery, in addition to Prototype. Now WiceGrid contains two different generators installing two different javascript files, and a constant in the configuration file specifying which javascript dialect should be used for the JS code injected into the page.

Read more in the README file.

The only missing component is the JS calendar which would be similar to the Prototype version. Among the vast number of date and time related widgets existing for jQuery I haven't been able to find one with both date and time, and with a simple and sane UI, and I just don't feel like repeating the story with Calendarview which I had to rewrite heavily adding missing features in order to use it for WiceGrid.

The default jQuery Datepicker seem

@leikind
leikind / WiceGrid and I18n.md
Last active August 29, 2015 14:12
WiceGrid and I18n

NOVEMBER 08, 2009

Since today WiceGrid supports localization, however, without breaking compatibility with pre-I18n versions of Rails (2.1.0 and older).

Command

./script/generate wice_grid_assets
@leikind
leikind / What OSes Russian speaking Rails developers use.md
Last active August 29, 2015 14:12
What OSes Russian speaking Rails developers use

JULY 14, 2010

Recently in a mailing list for Russian speaking Rails developers a survey took place on what OSes are used for development, and what OSes run on servers that the developers deploy to.

Here are the results:

Development

  • 34 OS X
  • 30 Ubuntu
@leikind
leikind / total_entries of will_paginate and WiceGrid.md
Created January 4, 2015 23:15
:total_entries of will_paginate and WiceGrid

NOVEMBER 11, 2009

will_paginate normally runs 2 SQL queries - one to retrieve a limited number of records, and one to count all records. To avoid the second COUNT query one can submit parameter :total_entries to method paginate. Today :total_entries was also added to parameters of initialize_grid in order to be able to use this functionality of will_paginate.