Skip to content

Instantly share code, notes, and snippets.

<script src="http://www.java.com/js/deployJava.js">
</script>
<script>
var attributes = {
codebase: 'http://localhost/jar',
code: 'it.mebius.uploader.Applet.class',
archive: 'applet.jar, lib/apache-mime4j-0.6.jar, lib/httpmime-4.0.jar, lib/commons-codec-1.4.jar, lib/commons-logging-1.1.1.jar, lib/forms-1.2.1.jar, lib/log4j-1.2.15.jar, lib/httpclient-4.0.jar, lib/httpcore-4.0.1.jar',
width: 600,
height: 480
};
With this configuration works:
Computer-di-Fabio:soccer fabionapoleoni$ rake about
(in /Users/fabionapoleoni/Desktop/work/soccer)
About your application's environment
Ruby version 1.8.7 (i686-darwin10.4.0)
RubyGems version 1.3.7
Rack version 1.2
Rails version 3.0.0
Active Record version 3.0.0
<div data-marker-title="Via di Vigna Fabbri, Roma" data-longitude="12.5249391" data-latitude="41.8706294" class="gmap dynamic-google-map" style="position: relative; background-color: rgb(229, 227, 223); overflow: hidden; z-index: 0;">
<div style="left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%; z-index: 0; position: absolute;">
<div style="position: absolute; left: 0px; top: 0px; z-index: 1; cursor: -moz-grab;">
<div style="z-index: 100; position: absolute; left: 0px; top: 0px;"/>
<div style="z-index: 101; position: absolute; left: 0px; top: 0px;">
<div style='width: 16px; height: 16px; overflow: hidden; background-image: url("http://maps.gstatic.com/intl/it_it/mapfiles/drag_cross_67_16.png"); background-position: 0px 0px; background-repeat: no-repeat; -moz-background-size: auto auto; display: none; position: absolute; left: 348px; top: -9px; z-index: 0;'/>
</div>
<div style="z-index: 102; position: absolute; left: 0px; top: 0px;">
<div style='wid
<?php
/**
* Doctrine logger for FireBug
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Magnus Andersson <mange@mange.name>
*/
namespace My\Namespace;
use Doctrine\DBAL\Logging\SqlLogger;
<?php
class Plugin_Profiler extends Zend_Controller_Plugin_Abstract
{
private $profiler;
/**
* Constructor
@fabn
fabn / login_spec.rb
Created April 20, 2011 11:45
Devise auth spec
require 'spec_helper'
require 'capybara/rails'
describe "Authentication" do
describe "when logged in" do
before(:each) do
@editor = Factory(:editor, :password => 'secret')
visit '/'
fill_in 'Login', :with => @editor.login
@fabn
fabn / deploy.rb
Created May 9, 2011 17:59
Custom task for capistrano
set :application, "set your application name here"
set :repository, "set your repository location here"
set :deploy_to, "set path where to deploy application"
set :scm, :subversion
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "your web-server here" # Your HTTP server, Apache/etc
@fabn
fabn / passenger_standalone.rb
Created May 31, 2011 19:07 — forked from reu/passenger_standalone.rb
Capistrano recipe for passenger standalone
set :rails_env, "production"
set :passenger_port, 9292
set :passenger_cmd, "#{bundle_cmd} exec passenger"
namespace :deploy do
task :start, :roles => :app, :except => { :no_release => true } do
run "cd #{current_path} && #{passenger_cmd} start -e #{rails_env} -p #{passenger_port} -d"
end
task :stop, :roles => :app, :except => { :no_release => true } do
@fabn
fabn / qr-demo.rb
Created June 27, 2011 21:30
Segmentation Fault in QRCode#save_png
#!/usr/bin/env ruby
require 'qrencoder'
result = "/tmp/qr.png"
qrcode = QREncoder.encode("a" * 2939)
qrcode.save_png result
@fabn
fabn / ErrorController.php
Created January 8, 2012 22:15
Standard Zend Framework ErrorController
<?php
class ErrorController extends Zend_Controller_Action
{
public function errorAction()
{
$logError = true;
$errors = $this->_getParam('error_handler');