fredag 27 november 2009
onsdag 25 november 2009
Ruby 1.8 Encoding
def utf8tolatin2(s)
begin
#conv = Iconv.new("ISO-8859-2", "UTF-8")
conv = Iconv.new("CP1250", "UTF-8") #Using Windows latin2 instead of iso
out = conv.iconv(s)
conv.close
rescue
#conv = Iconv.new("ISO-8859-2", "ISO-8859-2")
conv = Iconv.new("CP1250", "CP1250") #Using Windows latin2 instead of iso
out = conv.iconv(s)
conv.close
end
return out
end
begin
#conv = Iconv.new("ISO-8859-2", "UTF-8")
conv = Iconv.new("CP1250", "UTF-8") #Using Windows latin2 instead of iso
out = conv.iconv(s)
conv.close
rescue
#conv = Iconv.new("ISO-8859-2", "ISO-8859-2")
conv = Iconv.new("CP1250", "CP1250") #Using Windows latin2 instead of iso
out = conv.iconv(s)
conv.close
end
return out
end
onsdag 18 november 2009
tisdag 17 november 2009
Stack Overflow
Interesting topic:
http://stackoverflow.com/questions/1722373/how-to-be-a-quality-programmer-in-a-programming-team
http://stackoverflow.com/questions/1722373/how-to-be-a-quality-programmer-in-a-programming-team
torsdag 12 november 2009
tisdag 10 november 2009
Google Maps
To display a location on the map, just enter the coordinates with a space in between.
52.255642 21.172998
http://maps.google.se/
52.255642 21.172998
http://maps.google.se/
torsdag 5 november 2009
Ragel State Machine Compiler
http://www.complang.org/ragel/
Ragel can be used for generating state charts and source code in Ruby, C, C++, Objective-C, D and Java.
Ragel can be used for generating state charts and source code in Ruby, C, C++, Objective-C, D and Java.
Prenumerera på:
Inlägg (Atom)