This file contains hidden or 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
#!/bin/bash | |
cd `dirname $0` | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
rvm use ree | |
bundle exec ruby app.rb |
This file contains hidden or 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
SEVERE: Allocate exception for servlet HomeServlet | |
java.lang.SecurityException: Invalid signature file digest for Manifest main attributes | |
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:221) | |
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176) | |
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:288) | |
at java.util.jar.JarVerifier.update(JarVerifier.java:199) | |
at java.util.jar.JarFile.initializeVerifier(JarFile.java:323) | |
at java.util.jar.JarFile.getInputStream(JarFile.java:388) | |
at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2018) | |
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1786) |
This file contains hidden or 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
# Task: fetch html, replace img src | |
doc = Nokogiri::HTML(html) | |
doc.xpath('//img').each do |image| | |
image_url = image.attributes['src'] | |
# fetch correct url | |
image.attributes['src'].value = <new url> | |
end | |
doc.to_html # still contains old url? |
This file contains hidden or 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
client.subscribe(config.queue.name, :ack => 'client') do |msg| | |
begin | |
send_confirmation(data) | |
rescue Exception => e | |
subject = "[ReservationMailer #{config.templates.endpoint}] Error processing message: #{e.message}" | |
DaemonKit.logger.error subject | |
DaemonKit.logger.exception e | |
puts "sending email" |
This file contains hidden or 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
[ERROR] COMPILATION ERROR : | |
[INFO] ------------------------------------------------------------- | |
[ERROR] /home/christoph/platform/ws-bootstrapping/src/main/java/org/insemtives/ws/server/GateWSBootstrappingService.java:[15,16] package org.slf4j does not exist | |
[ERROR] /home/christoph/platform/ws-bootstrapping/src/main/java/org/insemtives/ws/server/GateWSBootstrappingService.java:[16,16] package org.slf4j does not exist | |
[ERROR] /home/christoph/platform/ws-bootstrapping/src/main/java/org/insemtives/ws/server/GateWSBootstrappingService.java:[25,22] cannot find symbol | |
symbol : class Logger | |
location: class org.insemtives.ws.server.GateWSBootstrappingService |
This file contains hidden or 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.rb | |
class User < ActiveRecord::Base | |
# Include default devise modules. Others available are: | |
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :validatable, :omniauthable | |
# Setup accessible (or protected) attributes for your model | |
attr_accessible :email, :password, :password_confirmation, :remember_me |
This file contains hidden or 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
JQ.getJSON(getServer(), args, function(data) { | |
alert("close response received"); | |
}); | |
fired on JQ(window).unload(function() | |
// receiving it from firefox on reload | |
// not receiving it from chrome on reload |
This file contains hidden or 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
body | |
div#container.showgrid | |
div#header | |
| the header | |
div#sidebar | |
| the left | |
div#content | |
form action="/" method="post" enctype="multipart/form-data" | |
| Image Url: |
This file contains hidden or 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
// This import applies a global reset to any page that imports this stylesheet. | |
@import "blueprint/reset"; | |
// To configure blueprint, edit the partials/base.sass file. | |
@import "partials/base"; | |
// Import all the default blueprint modules so that we can access their mixins. | |
@import "blueprint"; | |
// Import the non-default scaffolding module. |
This file contains hidden or 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
// This import applies a global reset to any page that imports this stylesheet. | |
@import "blueprint/reset"; | |
// To configure blueprint, edit the partials/base.sass file. | |
@import "partials/base"; | |
// Import all the default blueprint modules so that we can access their mixins. | |
@import "blueprint"; | |
// Import the non-default scaffolding module. |