Clever Algorithms: Nature-Inspired Programming Recipes
A handbook of algorithmic recipes from the fields of Metaheuristics, Biologically Inspired Computation and Computational Intelligence that have been described in a complete, consistent, and centralized manner. ∞
Inline Resize and Crop with ImageMagick
convert photo.jpg -resize 64x64^ -gravity center -extent 64x64 avatar.jpg
Rails Uygulamalarında iPhone için Özelleştirilmiş Arayüz
Rails uygulamalarında iPhone girişinin algılanması ve özelleştirilmiş sayfaların görüntülenmesi için;
ApplicationController’da;
before_filter :detect_iphone_request
protected
def detect_iphone_request
request.format = :iphone if iphone_request?
end
def iphone_request?
request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/]
end
config/initializers/mime_types.rb dosyası içindeki Mime::Type.register_alias "text/html", :iphone satırı başındaki “#” kaldırılır.
Daha sonra gelen istekle bağlantılı arayüzü çağırmak için;
respond_to do |format| format.html # index.html.erb format.iphone # index.iphone.erb end
şeklinde format tanımlaması yapılır. Şablonlar için de aynı şekilde (ör. application.iphone.erb) isimlendirme yapılır.
Coloration
Editor/IDE color scheme converter. It can convert Textmate color themes (in XML plist format) to Vim, JEdit and Kate/KWrite/KDevelop color schemes. ∞
Adjust Textmate's Line Height
“0” is default.
defaults write com.macromates.TextMate OakLineHeightDelta 2
Harvest Upgrades to Rails 3
Metalworkers know that sometimes the material needs to cool down before you can do interesting things with it… ∞
Micetrap
Micetrap is a Ruby-based tool by Josep M Bach that sets ‘traps’ (open ports simulating fake vulnerable services), notifies you about scans and misleads potential attackers by giving them false information about services and versions running behind those ports. ∞
CSS3 Buttons
A collection of buttons that show what is possible using CSS3 while also maintaining the simplest possible markup. ∞
Git Immersion
Git Immersion is a guided tour that walks through the fundamentals of Git, inspired by the premise that to know a thing is to do it. ∞
Currency Codes Seed for Rails Apps
Currency codes seed for Rails apps, CSV data file and a convert script.
Resesif: The Missing Theme for Textmate
Another Textmate theme based off of the theme by idlefingers.
Rack Issue with Dreamhost's Passenger Installation
To solve the Rack issue with Dreamhost’s Passenger installation follow steps below:
On your local machine;
bundle package
On Dreamhost;
bundle install —path vendor/bundle —local
Ubuntu üzerine Ruby Enterprise Edition, Nginx ve Passenger kurulumu. ∞
Loremify
is a one-click tool to copy Lorem Ipsum. It lets you wrap in html, specify the amount of text, and copy it to your clipboard—all in one click. It runs as a Dashboard Widget in Mac OS X. ∞
MissingDrawer
A Textmate plugin that provides Xcode-like project window interface without drawer and adds “Open Terminal Here” button to the file list’s button panel. ∞
Close Pixelate
Script that converts an image into a pixelated version using an HTML5 canvas element by David DeSandro. ∞
Solution to the Photoshop "Save For Web" color shift. ∞
The Ultimate CSS Gradient Editor created by Alex Sirota. ∞