This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rails', '3.2.12' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
#gem 'sqlite3' | |
gem 'pg' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure xCode 4.3 is installed first!!! | |
# Command line tools no longer come bundled with xCode, install it by going to: | |
preferences -> downloads -> command line tools | |
# Install RVM | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
# Then restart terminal | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L.Icon.Default.imagePath = "/assets" | |
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/{styleId}/256/{z}/{x}/{y}.png', | |
cloudmadeAttribution = 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade'; | |
var nightTime = L.tileLayer(cloudmadeUrl, { | |
styleId:999 | |
}); | |
var googleRoadMap = new L.Google('ROADMAP'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO setores_op(descricao, the_geom) VALUES ('Setor 6', | |
(SELECT ST_Union(ARRAY(SELECT the_geom FROM bairros WHERE gid IN (22,23))))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE setores_op | |
SET the_geom=(SELECT ST_Polygon(ST_ExteriorRing(the_geom), 29193) | |
FROM setores_op WHERE gid = 10)WHERE gid = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'pg' | |
gem 'rgeo' | |
gem 'rgeo-geojson' | |
gem 'activerecord-postgis-adapter', '~> 0.6.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT b.id, ROUND(SUM(ST_AREA(e.the_geom)/1000)::numeric,2) as area_ocupada, | |
ROUND(ST_AREA(b.the_geom)::numeric/1000,2) as area_zona | |
FROM areas_ocupadas e, gis.zoneamentos b | |
WHERE ST_INTERSECTS(e.the_geom, b.the_geom) | |
GROUP BY b.id, b.the_geom | |
ORDER BY b.id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT st_astext(lote_vizinho.the_geom) AS lotes_vizinhos | |
FROM lotesvr lvr, lotesvr lote_vizinho | |
WHERE lvr.gid = 46610 AND | |
lote_vizinho.gid <> 46610 AND | |
st_touches(lvr.the_geom, lote_vizinho.the_geom); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id":1, | |
"name":"Jaleco", | |
"description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes", | |
"price":"R$ 999,99", | |
"available":true | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geo@ubuntu-10-teste:/opt/BonitaBPMCommunity-6.5.2-Tomcat-7.0.55/logs$ vim bonita.2015-12-21.log | |
2015-12-21 15:04:02 org.bonitasoft.console.common.server.login.datastore.LoginDatastore | |
SEVERE: Error while logging in the engine API. | |
2015-12-21 15:05:29 org.bonitasoft.console.common.server.login.datastore.LoginDatastore | |
SEVERE: Error while logging in the engine API. | |
2015-12-21 15:43:17 org.bonitasoft.console.common.server.login.datastore.LoginDatastore | |
SEVERE: Error while logging in the engine API. | |
2015-12-21 15:43:33 org.bonitasoft.console.common.server.login.datastore.LoginDatastore | |
SEVERE: Error while logging in the engine API. | |
2015-12-21 15:43:47 org.bonitasoft.console.common.server.login.datastore.LoginDatastore |
OlderNewer