Search Results
Posted by root Mon, 13 Oct 2008 00:06:00 GMT
The search result for ‘vidul’ shows some ut2be clip!? (in contrast to the relevant results that I get from yahoo). “Thank you” google!
Posted by root Mon, 13 Oct 2008 00:06:00 GMT
The search result for ‘vidul’ shows some ut2be clip!? (in contrast to the relevant results that I get from yahoo). “Thank you” google!
Posted by root Wed, 08 Oct 2008 21:13:00 GMT
IT manuals (mostly programming)
Yes it takes a lot of time (in my case almost 5 hours) to get into the goog search manuals and goog appengine. But that’s ok goog is doing fine.
Posted by root Sun, 28 Sep 2008 19:09:00 GMT
#!/usr/bin/ruby
host_port = ARGV[0]
host = host_port.split(':').first
port = host_port.split(':').last
puts %x[nmap -p #{port} #{host}]#!/usr/bin/ruby
host, port = ARGV[0].split(':')
puts %x[nmap -p #{port} #{host}]./scan_proxy 202.105.182.87:808Posted by root Wed, 24 Sep 2008 17:49:00 GMT
All of us (the people that hate vista and apple styled aliased fonts) have seen the ugly fonts in some KDE apps (Firefox for example). But this is not the case with XFCE where evreything works fine.
So here is a fix for KDE (just run the following command):
xfce-mcs-manager
Posted by root Sat, 20 Sep 2008 14:39:00 GMT
#!/usr/bin/env ruby
class Hash
def search(arg)
self.select { |k,v| k =~ /#{arg}/ or v =~ /#{arg}/ }
end
end
search = ARGV[0]
search =~ /^[0-9]+/ and search = search.to_i
phones = {
"me" => "359880101020406",
"Hitler" => "+49 666",
"Van Gog" => "+31",
"devil" => "666",
"God" => "1",
}
phones.search(search).each do |person|
print "person:#{person.first}\tnumber:#{person.last}\n"
end
Posted by root Mon, 15 Sep 2008 16:58:00 GMT
Technology, which is prohibited by the Geneva Convention. Unfortunately, there are still countries in the world where such technology is used to torture animals and developers.
According to the FMI study, 23 monkeys may make random chatter on the keypad to write the language compiler for a maximum of 292 hours.
the original text (in Bulgarian)
Posted by root Fri, 22 Aug 2008 16:04:00 GMT
module Kernel
RE_THIS_DATA = lambda{ |number| /^__DATA#{number}__\n/ }
RE_THE_DATA = /^__DATA\d+__/
def __data__(num="")
data = File.read($0).split(RE_THIS_DATA.call(num))
data[1].split(RE_THE_DATA)[0] if data[1]
end
end
puts "DATA"
print __data__()
puts "DATA1"
print __data__(1)
puts "DATA2"
print __data__(2)
__END__
__DATA__
data_1
data_2
data_3
__DATA1__
data1_1
data1_2
data1_3
data1_11
__DATA2__
data2_1
data2_2
data2_3
data2_31Posted by root Fri, 22 Aug 2008 15:13:00 GMT
# temporary changes the cwd to '/tmp',
# adds content to a file and finally restores cwd
p Dir.getwd
Dir.chdir("/tmp") do
p Dir.getwd
File.open("test.txt", "a") do |f|
f << Time.now << "\n"
end
end
p Dir.getwd
Posted by root Thu, 21 Aug 2008 20:46:00 GMT
Thank to Opera plugins’ implementaion I had over 100% CPU laod (dual core).
The solution: rm /usr/lib/opera/9.52/operaplugincwrapper
Posted by root Tue, 19 Aug 2008 13:06:00 GMT
module Kernel
def random_uc(size=16)
Array.new(size){ rand(26)+65 }.pack('C*')
end
def random_lc(size=16)
Array.new(size){ rand(26)+97 }.pack('C*')
end
def random_num(size=16)
Array.new(size){ rand(10) }.join
end
end
random_uc => "HRTWYJBJEZDKYPTJ"
random_lc => "onxkvkezqukspmcx"
random_num => "5862195932579950"