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
require "rubygems" | |
require "crack" | |
require "couchrest" | |
db = CouchRest.database!('http://127.0.0.1:5984/ruby_jobmotel') | |
jobs_as_xml = Net::HTTP.get_response(URI.parse('http://ruby.jobmotel.com/jobs.xml')).body | |
parsed_jobs = Crack::XML.parse(jobs_as_xml) |
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
require "rubygems" | |
require "faker" | |
require "couchrest" | |
DB = CouchRest.database!('http://127.0.0.1:5984/contacts') | |
class Contact < CouchRest::ExtendedDocument | |
use_database DB | |
property :first_name |
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
config/database.yml | |
config/*.sphinx.conf | |
config/s3_credentials.yml | |
*~ | |
*.cache | |
*.log | |
*.pid | |
tmp/**/* | |
.DS_Store | |
db/cstore/** |
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
> npm config get root | |
npm it worked if it ends with ok | |
npm cli [ 'config', 'get', 'root' ] | |
npm version 0.1.23 | |
npm config file /Users/ricn/.npmrc | |
npm config file /usr/local/Cellar/node/0.1.104/etc/npmrc | |
/usr/local/lib/node | |
npm ok |
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
~/projects/jruby ➔ gem install -v1.5.5 org.jruby.jruby-complete | |
Installing from Maven using install at /Users/headius/apache-maven-3.0/bin | |
Successfully installed org.jruby.jruby-complete-1.5.5-java | |
1 gem installed | |
Installing ri documentation for org.jruby.jruby-complete-1.5.5-java... | |
Installing RDoc documentation for org.jruby.jruby-complete-1.5.5-java... | |
~/projects/jruby ➔ gem install -v1.5.3 org.jruby.jruby-complete | |
Installing from Maven using install at /Users/headius/apache-maven-3.0/bin | |
Successfully installed org.jruby.jruby-complete-1.5.3-java |
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
In 3.3: | |
http://localhost:8080/alfresco/service/api/server?alf_callback=func | |
returns | |
func({ | |
"data": | |
{ | |
"edition": "Enterprise", | |
"version": "3.3.3 (205)", |
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
11:53:41,087 ERROR [web.context.ContextLoader] Context initialization failed | |
java.lang.NullPointerException | |
at org.springframework.extensions.config.xml.XMLConfigService.removeElementReaders(XMLConfigService.java:478) | |
at org.springframework.extensions.config.xml.XMLConfigService.destroy(XMLConfigService.java:149) | |
at org.springframework.extensions.config.BaseConfigService.reset(BaseConfigService.java:143) | |
at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:243) | |
at org.alfresco.repo.web.scripts.RepositoryContainer.init(RepositoryContainer.java:591) | |
at org.alfresco.repo.web.scripts.RepositoryContainer.reset(RepositoryContainer.java:565) | |
at org.alfresco.repo.web.scripts.RepositoryContainer$4.doWork(RepositoryContainer.java:519) | |
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508) |
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
require "rubygems" | |
require "mongoid" | |
Mongoid.configure do |config| | |
name = "mongoid_bug" | |
host = "localhost" | |
config.master = Mongo::Connection.new.db(name) | |
config.persist_in_safe_mode = false | |
end |
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
User authentication is required in almost every web application. This guide shows you step by step how to implement authentication from scratch with Play 2 and Java. |
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
<project> | |
... | |
<profiles> | |
<profile> | |
<id>qa</id> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<executions> |
OlderNewer