Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

error

The Real Answer to All Our Error Code Problems [Humor]
Friday, 02 March 2012 09:00
You're working late into the night, a deadline is approaching. Out of nowhere, your trusty computer collapses in a fit of exhaustion or pique, shouting error message numbers at you in a tourettic fit of indecipherable jargon. What's it all mean? How do you fix it? This. Like this: More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/3tkCI6qSU7E/the-real-answer-to-all-our-error-codes

 
pys60 socket example dns resolver
Saturday, 19 November 2011 03:02
// dns resolver using sockets in pys60


import appuifw
import socket
import sys
def puts(s):
sys.stdout.write(s)
sys.stdout.flush()
def gets(s):
puts(s)
return sys.stdin.readline()
t=appuifw.app.body.get()
appuifw.app.body.set("")
print "**************"
print "dns query by shankar."
#apid=socket.select_access_point()
#print apid
ap=socket.access_point(2)
socket.set_default_access_point(ap)
puts("connecting to network...")
try:
ap.start()
print "OK.\nconnected, our ip:",ap.ip()
a=1
print ""
except:
print "FAILED\nError: unable to connect."
a=None
while a:
name1=gets('domain: ')
try:
ip=socket.gethostbyname(name1)
#appuifw.note(unicode(name1 + ' = ' + ip))
print name1,"=>",ip
a=appuifw.query(u"continue?","query")
except SymbianError:
print "Error: connection error."
a=None
except:
print "Error: query error."
if gets("continue[a/]?")=='a':
a=1
else:
a=None
print ""
print 'script completed.'
print "disconnecting from network."
ap.stop()
print "**************"
appuifw.app.body.set(t)

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/VO17zBvA7qM/13901

 
Ubuntu 11.10 + saslauthd: SASL PLAIN authentication failed: no mechanism available
Friday, 28 October 2011 04:19

Error: Ubuntu 11.10 + saslauthd: SASL PLAIN authentication failed: no mechanism available

You have installed Postfix with saslauthd on Ubuntu 11.10 and get the following error in /var/log/mail.log when you try to send an email:

server1 postfix/smtpd[7868]: warning: unknown[1.2.3.4]: SASL PLAIN authentication failed: no mechanism available

Read more: http://www.howtoforge.com/ubuntu-11.10-saslauthd-sasl-plain-authentication-failed-no-mechanism-available

 
mysql proxy to log failed queries
Monday, 24 October 2011 08:32
// install and start mysql proxy that will log failed queries




#!/bin/sh
# kill the current proxy if any
ps aux | grep "mysql-proxy" | awk '{print "kill -9 ", $2}' | sh

# download and install
cd /usr/share/mysql/ && wget http://mysql.oss.eznetsols.org/Downloads/MySQL-Proxy/mysql-proxy-0.8.1-linux-rhel5-x86-64bit.tar.gz
tar -xvf mysql-proxy-0.8.1-linux-rhel5-x86-64bit.tar.gz

# create an alias
alias myproxy='sh /usr/share/mysql/mysql-proxy-0.8.1-linux-rhel5-x86-64bit/bin/mysql-proxy --plugins=proxy --proxy-lua-script=/usr/share/mysql/mysql-proxy-0.8.1-linux-rhel5-x86-64bit/share/doc/mysql-proxy/failed-query.lua >> /home/failed_query.log &'

# failed query script
cat > /usr/share/mysql/mysql-proxy-0.8.1-linux-rhel5-x86-64bit/share/doc/mysql-proxy/failed-query.lua << "my_here_doc"

local log_file = '/home/mysql.log'
local fh = io.open(log_file, "a+")

function read_query(packet)
if string.byte(packet) == proxy.COM_QUERY then
query = string.sub(packet, 2)
proxy.queries:append(1, packet, {resultset_is_needed = true} )
return proxy.PROXY_SEND_QUERY
end
end

function read_query_result (inj)
local res = assert(inj.resultset)

-- if res.query_status == proxy.MYSQLD_PACKET_ERR then

if (res.query_status == proxy.MYSQLD_PACKET_ERR) or (res.warning_count > 0) then

local query = string.sub(inj.query, 2)
local err_code = res.raw:byte(2) + (res.raw:byte(3) * 256)
local err_sqlstate = res.raw:sub(5, 9)
local err_msg = res.raw:sub(10)

fh:write(string.sub(inj.query, 2), "\n")
fh:write(res.raw:sub(10), "\n")
fh:flush()

print("Query Received -", query)
print("Query Error code -", err_code)
print("Query Error Sqlstate -", err_sqlstate)
print("Query Error message -", err_msg)
print("Query warnings -", res.warning_count)

end
end

my_here_doc

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/XmxWdxwUmXY/13807

 
đoạn mã vb script chạy trên win để change key win (.vbs)
Tuesday, 09 August 2011 21:21
đoạn mã vb script chạy trên win để change key win (sử dụng object window manager)


ON ERROR RESUME NEXT

Dim VOL_PROD_KEY

if Wscript.arguments.count<1 then

VOL_PROD_KEY = inputbox("dien vao cdkey")

else

VOL_PROD_KEY = Wscript.arguments.Item(0)



end if

VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","")

Dim WshShell

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents\OOBETimer" 'delete OOBETimer registry value

for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")

result = Obj.SetProductKey (VOL_PROD_KEY)

if err < 0 then

WScript.Echo Err.Description, "0x" & Hex(Err.Number)

Err.Clear

end if

Next

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/2yQ5N_e_83c/13503

 


Taxonomy by Zaragoza Online