Using Squeel or Meta_where with Sinatra - sinatra

I am using the ActiveRecord stuff in Sinatra and I'm wondering if it will work with meta_where or (preferably) squeel?
I'm going to start trying but I was hoping perhaps someone could short circuit me.

Bo,
You can use Squeel with ActiveRecord in any framework you like. It's not Rails-specific. :)

Related

Is there any caching mechanism in Slick?

I'm new in Slick and Play and I can't find any references about caching in docs(2 and 3rc). Is there any native way in Slick for cache organization or if not tell me, please, why and whats the reasons for not having it? Summary, I hope that somebody help me in this question or show another better way.
I don't think Slick has got anything, it is just for interacting with a RDBMS. But since you are using play framework you have the play cache API:s that you can use, for example in a DAO that wraps Slick. You can read more about it in the play framework docs here: https://www.playframework.com/documentation/2.3.x/ScalaCache
Also see http://slick.typesafe.com/doc/2.1.0/orm-to-slick.html#read-caching and the following section

play framework atmosphere

There is a list of usable frameworks in the creators blog of Atmosphere. I want to use scala and the Play Framework included with Atmosphere. In the blog he writes that Atmosphere works with "every" framework. Could it be that easy to integrate Atmosphere, and how?
I understand that this isn't necessarily the answer you were looking for, but I would suggest you look at Play's native comet support.
http://www.playframework.org/documentation/2.0/ScalaComet
http://www.playframework.org/documentation/api/2.0/scala/play/api/libs/Comet$.html
Do you have a particular use case that Atmosphere can solve more elegantly? If so, here's a thread that might help.
https://groups.google.com/forum/m/?fromgroups#!topic/atmosphere-framework/GM6fC6-eSLE
Yes, take a look at this project - it's a native implementation of Atmosphere running on top of Play!
I'm looking for this too. The benefits it would give are graceful degradation from websocket to long polling and a common api for these both client and server side.

How do I build EmberJS app with REST-like back-end?

I've not looked into BackboneJS or EmberJS in detail, but as I understand, it is possible to have BackboneJS seamlessly work with a REST back-end. Whereas EmberJS doesn't seem to have anything I can use out of the box.
Can anyone offer any advice how to achieve this with EmberJS?
If you just need a simple REST adapter without much complexity, then
https://github.com/cerebris/ember-rest
is great for the job.
I've written an article about Ember.js on InfoQ, that goes through the basics. The article used Ember 0.9.5, so not everything will be working with the newest Ember 1.0-pre release.
It goes through the basic structure of an Ember-app as well as the very basics with Ember Data.
http://www.infoq.com/articles/emberjs
I think you're looking for something like Ember-rails
https://github.com/emberjs/ember-rails

Data grid for zend framework

Guys
Can you advise good data grid in zend framework expect the zdgrid. I an trying to use Dojo. no result none of them is working.
As zend framework developer which one is best choise in term of functionality and implementation?
It got less to do with ZF more to do which java-script library you know better . If you are good at jquery then I ill advice jqGrid . Its robust with tons of functionality which can be easily implemented both client and server side easily.

Kohana event system in Erlang?

I want to implant a framework in Erlang that is similar to Kohana event system. Anyone know how to do that or have any idea? I really like how Kohana is structured.
EDIT
The Kohana event system have been documented here : http://docs.kohanaphp.com/general/events . If I understand it correctly, I can replicate Kohana in Erlang like this:
kohana.erl
event.erl
router.erl
profiler.erl
[system (a directory)]
ready.erl
routing.erl
execute.erl
post_routing.erl
404.erl
pre_controller.erl
post_controller_constructor.erl
post_controller.erl
send_headers.erl
display.erl
shutdown.erl
log.erl
redirect.erl
I'm not sure whether this is better than Python wsgi like Django middleware and there is already ewgi for Erlang. I just want to make a framework for fun. I'm more familiar with Kohana 2 but interested in implanting HMVC or Kohana 3 for erlang.
Basically the event system in kohana is just a collection of functions/methods to run at a future point in time. I don't know anything about Erlang, but if you can write a collection class, and put function/method callbacks into it, it should be trivial to port the event system over.