Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
~fumi/ChangeLog / 2003-07-20
[go: Go Back, main page]

2003-07-20 Sun

[別の年の同じ日: 2006 2007 2008 2009 2010

Linux 免罪符始めました by SCO はてぶ

- Linux免罪符始めました by SCO
  http://slashdot.jp/articles/03/07/19/1328219.shtml?topic=17
- SCO readies new Linux licensing program
  http://www.infoworld.com/article/03/07/18/HNscolicense_1.html

URI decode はてぶ

Ruby について Part 4
http://pc2.2ch.net/test/read.cgi/tech/1056944114/191-202 より

URI.decode を使う

require 'uri'
$KCODE = 's'
str = '\x95\x5c\x94\x5c'

p URI.decode(str.gsub(/\\x/, '%'))


pack を使う

str = '\x95\x5c\x94\5c'
puts str.scan(/[0-9A-Fa-f]+/).collect{|x| x.hex}.pack('C*')


eval を使う

src = "\\x95\\x5c\\x94\\x5c" ; dst = eval("%(#{str})")