compass

use compass-lucene as caching technique

Any example of scenarios other than doing search for which I could use "compass"? Lets say we have a page that list top 10 most view article. How to use compass to show this kind of results. Any demo/sample project on this to refer to? definitely Jira would be a good example but its source code is not available. I want to know how to ma...

Library for making static websites with HAML/SASS/CSS framework

I'm looking for a library or a collection of libraries that work together with the following requirements: HAML and SASS can be used. Have a small server capability to see HAML/SASS compiled every time I refresh my browser. (I don't want to start a fresh Rails app, though.) Works with popular CSS frameworks. (Doesn't have to be all, bu...

Configure Compass within a CakePHP project

I've been looking into Compass and the more I look, the more it feels like the way that CSS should be written. As a test case, I'd like to use it in one of my CakePHP projects. Unfortunately, I'm having some trouble with the initial configuration. Specifically, with getting the resources in the right place and referenced properly in the ...

Hibernate Search with index in a different database

I have a database which is readonly (I only have the access to view), but I have to index this database for search. The DAO layer to this table is now using a generic DAO approach with Hibernate+JPA. Is it possible to add hibernate search to this view and store the index in a separate database? I am aware that I may lose the capability ...

iPhone Compass: Adjust Heading to get Correct Reading in Landscape

Does anyone know how to adjust the iPhone's compass reading to adjust if you use it in landscape mode? The heading is always taken from the top of the device, but a true reading should be available if recalculations are made with the accelerometer data. ...

Grails Searchable Plugin - termFreqs for a subset of domain instances?

I'm trying to utilize the termFreqs method provided by the Searchable plugin to generate a keyword cloud for the most popular terms found in an indexed domain class. The problem is, I only want to get the term frequencies for a subset of the records in the database. I have the following classes: class Text { String title String cont...

iphone compass interference detection

How can I tell from my app if the compass has interference and ask the user to re-calibrate it? I want to get the same behavior as the google maps app has when there are compass interferences. Thanks. ...

Show wind direction on Google Maps

I calculated the wind direction and now I want to show the wind direction pointing to 144 degrees (on compass). How can I show this arrow on Google Maps? ...

Getting Direction from Compass

Hello, How do i get the Direction from compass when i rotate my device? i have use : - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)heading { } method but nothing is detected under heading tag? i just want to get the direction (i.e) 90N , 180S etc.. need help Thank you. ...

How do I output compressed CSS from Compass?

How do I configure compass to output smaller or compressed CSS files? I tried compass -s compressed but that didn't work. ...

Compass spinning javascript problem with angle - rotate/translate

Hi i'm building a compass for the iphone, duh, just for experiment purpose and to learn how to do it, in javascript, with phonegap. now i'm already able to get the degrees, i was able to apply the deg 0-360 to a div (let's call it the "wheel") using the webkit-transform translateZ (or i could use rotate) but i have a bug: when the w...

Rotation webkit problem when spinning like a compass

this is my simple function ('mycompass' is a div in my body) function watchCompass() { var suc = function(a){ var r =a.magneticHeading; document.getElementById('mycompass').style.webkitTransform = "rotateZ("+-r+"deg)"; }; var fail = function(){}; var opt = {}; opt.frequency = 50; time...

Is it possible to set different SASS output style for development and production with Compass in rails?

Let say I would like to set nested style for development and compressed for production. There is only one option in Compass configuration file: output_style = :compact # or :nested, :expanded, :compressed ...

Displaying desired properties from search results with grails compass

Hi, I've been stumped with the problem of displaying a selected set of properties returned as a result via a Compass query in grails. I have 300 columns in my domain class and what I'd like to do is to return ONLY THOSE values I specify (around 10 - 15 properties/fields/columns). All the 300 columns have been indexed, btw. I know I ca...

Compass search not working on Lists

Hello, My Compass search does not seem to search inside Java Lists (It searches only the last node in the list) . It works correctly with Sets, but my application needs sorted data. Could some one please tell me what I am doing wrong and how to fix it? Thanks a lot! ...

iphone compass tilt compensation

hi, has anybody already programmed a iphone compass heading tilt compensation? i have got some approaches, but some help or a better solution would be cool! FIRST i define a vector Ev, calculated out of the cross product of Gv and Hv. Gv is a gravity vector i build out of the accelerometer values and Hv is an heading vector built out ...

accessing iPhone compass with JavaScript

Know if it's possible to access the iPhone compass in Safari using JavaScript? I see how the GPS can be accessed, but I can't figure out the compass. Thanks, as always! ...

How do I setup a custom Gem.path using JRuby::Rack?

Hi Nick et al, I've been having some fun looking at to source code of JRuby-Rack and Rubygems to try to figure out how to solve a org.jruby.rack.RackInitializationException: no such file to load -- compass in my rackup script cased by require 'compass'. I'm passing in a custom 'gem.path' as a servlet init parameter and it is being c...

How do I make Rack::Reloader re-load changes to haml files?

My jruby rack sinatra compass haml app correctly reloads changes to *.rb files, but does not detect changes to *.haml files. Is this compass doing some caching or a limitation of Rack::Reloader? Any pointers to how to fix? ...

Have boost effect on lucene/compass field search.

Hi there, In our compass mapping, we're boosting "better" documents to push them up in the list of search results. Something like this: <boost name="boostFactor" default="1.0"/> <property name="name"><meta-data>name</meta-data></property> While this works fine for fulltext search, it does not when doing a field search, e.g. the boost...