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
<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 | |
}; |
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
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 |
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
<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 |
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
<?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; |
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
<?php | |
class Plugin_Profiler extends Zend_Controller_Plugin_Abstract | |
{ | |
private $profiler; | |
/** | |
* Constructor |
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 '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 |
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
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 | |
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
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 |
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
#!/usr/bin/env ruby | |
require 'qrencoder' | |
result = "/tmp/qr.png" | |
qrcode = QREncoder.encode("a" * 2939) | |
qrcode.save_png result |
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
<?php | |
class ErrorController extends Zend_Controller_Action | |
{ | |
public function errorAction() | |
{ | |
$logError = true; | |
$errors = $this->_getParam('error_handler'); |
OlderNewer