Friday, March 23, 2012
Tuesday, March 20, 2012
Ignore case partially in Ruby
Try phosphorescence: Ignore case partially in Ruby
$ irb irb(main):001:0> /(?i:a)bc(?i:d)/ =~ "AbcD" => 0 irb(main):002:0> $~ => #<MatchData "AbcD"> irb(main):003:0> /(?i:a)bc(?i:d)/ =~ "abcd" => 0 irb(main):004:0> /(?i:a)bc(?i:d)/ =~ "Abcd" => 0 irb(main):005:0> /(?i:a)bc(?i:d)/ =~ "abcD" => 0 irb(main):006:0> /(?i:a)bc(?i:d)/ =~ "ABCD" => nil
Saturday, March 17, 2012
Search reference documentations with DuckDuckGo
DuckDuckGo is a search engine recommended by Linux Mint and PC-BSD. The features of DuckDuckGo are:
And, one more useful feature for IT developers is "Reference Zero-click Info Sources". For instance, DuckDuckGo show results for supported language and for supported command like below:
Please Check supported languages and commands in this page.
But, DuckDuckGo also show results for unsupported languages in its own way if you use ! notations:
If you favorite this, please type https://duckduckgo.com/ or ddg.gg in your address bar!
- Aggregates results of Google, Bing and so forth
- Able to copy link directly in result pages
- DO NOT TRACK
And, one more useful feature for IT developers is "Reference Zero-click Info Sources". For instance, DuckDuckGo show results for supported language and for supported command like below:
Please Check supported languages and commands in this page.
But, DuckDuckGo also show results for unsupported languages in its own way if you use ! notations:
If you favorite this, please type https://duckduckgo.com/ or ddg.gg in your address bar!
Thursday, March 15, 2012
Gel button with mini_magick
Labels:
ImageMagick,
Ruby
"Gel Button" is also popular effect. And of course, mini_magick can do this effect.
This is the original image (from Duck Duck Go).
And, this is the converted one.
require 'mini_magick'
image = MiniMagick::Image.open("http://duckduckgo.com/spread/spread4.png")
width = image[:width]
height = image[:height]
image.write 'spread4.png'
image_cloned = MiniMagick::Image.open('spread4.png')
image_cloned.combine_options do |mogrify|
mogrify.alpha 'off'
mogrify.blur "#{width}x#{height}"
mogrify.shade "#{width}x#{height}"
mogrify.normalize
mogrify.sigmoidal_contrast '8,60%'
mogrify.evaluate 'multiply', '.5'
mogrify.roll "+0+#{(height*0.05).to_i}"
end
image_composed = image_cloned.composite(image) do |c|
c.compose 'Screen'
end
image_composed.write 'gel_spread4.png'
This is the original image (from Duck Duck Go).
And, this is the converted one.
Monday, March 12, 2012
Windows 8 customer preview and ASP.NET MVC4
Labels:
ASP.NET MVC
2 weeks ago, Windows 8 customer preview and Visual Studio 11 beta had been released. The most notable feature for me is that Visual Web Development supports ASP.NET MVC4 by default. Now I'm learning.
Friday, March 9, 2012
Tuesday, March 6, 2012
Timetables of AsiaBSDCon 2012 are revealed
AsiaBSDCon 2012 are revealed now.
The most interest session for me is about PC-BSD.
T2B: Maintaining your own PBI package repository
The most interest session for me is about PC-BSD.
T2B: Maintaining your own PBI package repository
Saturday, March 3, 2012
MariaDB 5.3.5 has been released
Labels:
MariaDB
A few days ago, MariaDB 5.3.5 has been released. MariaDB 5.3.5 is the first stable release of 5.3.x. And, this release is useful for windows user (Let's check this improvements).
Subscribe to:
Posts (Atom)