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
<div class="box_export"> | |
<ul> | |
<li> | |
<a href="javascript:void(0);" title="<%= t_(:extras) %>" class="actions"><span><%= t_(:extras) %></span></a> | |
<ul class="submenu"> | |
<li><span id='chart'><%= link_to t_(:generate_graphic), chart_link, :class => :chart %></span></li> | |
<li><%= link_to t_(:export_to_excel), params.merge(:format => :xls), :class => :excel %></li> | |
<li><%= link_to t_(:export_to_pdf), params.merge(:format => :pdf), :class => 'no_border pdf' %></li> | |
</ul> | |
</li> |
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
command finished | |
*** [before_symlink] rolling back | |
*** [deploy:update_code] rolling back | |
* executing "rm -rf /home/amomar/rails_app/amomar/releases/20100504064406; true" | |
servers: ["amomar.com.br"] | |
[amomar.com.br] executing command | |
command finished | |
failed: "sh -c 'cd /home/amomar/rails_app/amomar/releases/20100504064406 && rake db:migrate RAILS_ENV=production'" on amomar.com.br |
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
TypeError in Rsvp::participantsController#save_group | |
nil can't be coerced into Fixnum | |
RAILS_ROOT: /Users/raulsouzalima/Sites/dmc_dev | |
Application Trace | Framework Trace | Full Trace | |
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `-' | |
/Users/raulsouzalima/Sites/dmc_dev/app/models/job.rb:342:in `count_left_participants' | |
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/associations/association_proxy.rb:217:in `send' |
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
require "openssl" | |
require "net/smtp" | |
Net::SMTP.class_eval do | |
private | |
def do_start(helodomain, user, secret, authtype) | |
raise IOError, 'SMTP session already started' if @started | |
#check_auth_args user, secret, authtype if user or secret | |
no_args = method(:check_auth_args).arity |
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
require 'smtp_tls' | |
ActionMailer::Base.delivery_method = :smtp | |
ActionMailer::Base.default_content_type = "text/html" | |
ActionMailer::Base.smtp_settings = { | |
:address => "smtp.gmail.com", | |
:port => 587, | |
:authentication => :plain, | |
:user_name => "[email protected]", #Você pode usar o Google Apps! | |
:password => 'suasenha' | |
} |
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
[raulsouzalima@~]$ sudo gem instal curb | |
Password: | |
Building native extensions. This could take a while... | |
ERROR: Error installing curb: | |
ERROR: Failed to build gem native extension. | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb | |
"-arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common $(cflags)" | |
checking for curl-config... yes | |
checking for curlinfo_redirect_time... no |
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
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo | |
aula. Ele pratica. Instrumentistas geniais nao aprendem a tocar tendo | |
aula. Eles praticam. Pratique. Chegue em casa depois do trabalho e da |
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
Vende-se Mac Mini, 10 meses de uso e sem nenhum problema. Foi comprado na própria apple store e acompanha todos os cds de instalação. | |
Especificações | |
- Processador Intel Core 2 Duo de 2.26 Ghz; 3MB de cache L2 | |
- 2GB de DDR3 SDRAM 1066MHz | |
- Disco rígido Serial ATA de 160GB | |
- Unidade Superdrive 8x de carregamento por ranhura(DVD+-R DL/DVD+-RW/CD-RW) | |
- Processador gráfico NVIDIA GeForce 9400M com 256MB de DDR3 SDRAM | |
- Porta de saída Mini DisplayPort e mini-DVI (Adaptador mini-DVI para DVI incluso) | |
- Uma porta FireWire 800; cinco portas USB 2.0 de alta velocidade (+2 no teclado) |
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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |
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
function find_git_branch { | |
local dir=. head | |
until [ "$dir" -ef / ]; do | |
if [ -f "$dir/.git/HEAD" ]; then | |
head=$(< "$dir/.git/HEAD") | |
if [[ $head == ref:\ refs/heads/* ]]; then | |
git_branch=" (${head#*/*/})" | |
elif [[ $head != '' ]]; then | |
git_branch=' (detached)' | |
else |