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
Origin: Munich/Germany | |
Connection: 16MBit/s ADSL | |
Provider: Alice/Hansenet (Telecom Italia Germany) | |
rmoriz@Apfelsaft:~$traceroute www.jquery.com | |
traceroute to www.jquery.com (66.199.227.42), 64 hops max, 40 byte packets | |
1 fritz.fonwlan.box (192.168.1.2) 1.267 ms 6.306 ms 0.727 ms | |
2 lo1.br02.muc.de.hansenet.net (213.191.89.9) 6.651 ms 9.997 ms 5.368 ms | |
3 ge-4-1-0-102.cr02.muc.de.hansenet.net (213.191.88.126) 5.883 ms 5.694 ms 12.741 ms | |
4 so-2-0-0-0.cr02.fra.de.hansenet.net (213.191.87.197) 13.434 ms 13.622 ms 25.926 ms |
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
Looks like resource_controller may have problems with rails 2.2.2? | |
I'm using "blank", latest revision. | |
Out of the box, with the vendored Rails 2.1.x all tests work fine. | |
So I did a "rm -rf vendor/rails" and tried it with the gem 2.2.2 version of rails: | |
rake test:functionals | |
(in /private/tmp/the_name_of_my_app) |
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
users GET /users(.:format) {:action=>"index", :controller=>"users"} | |
POST /users(.:format) {:action=>"create", :controller=>"users"} | |
new_user GET /users/new(.:format) {:action=>"new", :controller=>"users"} | |
edit_user GET /users/:id/edit(.:format) {:action=>"edit", :controller=>"users"} | |
user GET /users/:id(.:format) {:action=>"show", :controller=>"users"} | |
PUT /users/:id(.:format) {:action=>"update", :controller=>"users"} | |
DELETE /users/:id(.:format) {:action=>"destroy", :controller=>"users"} |
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
Für unseren Kunden in München sind wir auf der Suche nach einem PHP-Spezialisten (m/w). | |
Dabei geht es um die Umwandlung einer Client-Server-Lösung (z. B. für die Bildarchivierung) in eine webbasierte Lösung und die Erweiterung der webbasierten Lösung (z. B. E-Mail-Tracking-System, Wareneingang, Kontaktpflege usw.). Bei der Erweiterung soll der Spezialist die Module konzipieren, entwickeln, testen und implementieren. | |
Ihre Qualifikation: | |
- PHP 5 | |
- Perl | |
- Linux | |
- MySQL | |
- AJAX |
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
# download and git methods swiped from http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb | |
require 'open-uri' | |
def download(from, to = from.split("/").last) | |
#run "curl -s -L #{from} > #{to}" | |
file to, open(from).read | |
rescue | |
puts "Can't get #{from} - Internet down?" | |
exit! |
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
# Monkey-patch for Passenger to use the EventMachine reactor. | |
# This allows the use of EM timers, EM.system/popen, and other async libraries (amqp, em-http-request, etc) inside a Rails process. | |
# This requires EM.watch which was added to EM's git repo recently. Build an EM gem first: | |
# git clone git://github.com/eventmachine/eventmachine | |
# cd eventmachine | |
# gem build eventmachine.gemspec | |
# sudo gem install eventmachine-0.12.9.gem | |
# Please do not use this in production =) |
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 'nokogiri' | |
require 'open-uri' | |
require 'tempfile' | |
image_url = Nokogiri::HTML(open('http://api.cheezburger.com/xml/category/cats/lol/random')).xpath('/html/body/lol/lolimageurl').first.content | |
file = Tempfile.new('lolcat.jpg') | |
file.write(open('image_url') | |
file.close |
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
#!/bin/bash | |
# | |
# Save in your .bash_profile then: isreg domain.com | |
function isreg { | |
dig soa $1 | grep ^$1 | |
} | |
# examples: | |
# |
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
# http://gist.github.com/16885 | |
# $ ./script/console | |
# Loading development environment (Rails 2.1.0) | |
# >> | |
# >> User.whatis :create! | |
# File: /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/validations.rb:876 | |
# 872: end | |
# 873: | |
# 874: # Creates an object just like Base.create but calls save! instead of save |
OlderNewer