Friday 16 November 2012

next page 1 MoreNext Blog»ogebest2011@gmail.comDashboardSign Out 闲来无事 / Nothing to Do with 耐心生活, 小心生活, 关心生活, 粗心生活, 生活生活~ Firefox 免插件 发 新浪 weibo 大法 Firefox 具有 Smart Keywords这个功能。她让我们可以 定义一个关键字 并用这个关键字来标示一个特定的网址。 利用这个功能,我们实际上可以做很多有趣的事情,比如发Sina围脖。 具体步骤如下: 1. 使用 Firefox 2. 打开 baidu.com 在搜索框上点右键 3. 点 "Add Keyword for this Search..." 4. 这时会弹出一个对话框, 在 "Name" 项输入 "sina weibo" 其实输入什么都可以, “keyword" 可以选 wb 5. 然后保存 6. 用 bookmark manager 打开这个新建的 Smart Keyword, 打开 properties 属性 对话框。然后在 “Location” 里面输入 下面的代码: javascript:(function(){f='http://v.t.sina.com.cn/share/share.php?url='+encodeURIComponent(window.location.href)+'&title=%s';a=function(){if(!window.open(f,'location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})() 这就全部搞定了! 今后 在任何一个网页, 你只要切换到Address Bar。 可以用Ctrl+D/Ctrl+L 快速切换。 然后输入: wb 任何你想输入的文字。 回车, 这就会打开一个新的窗口/tab 提示你 围脖的内容。Over! No comments: Links to this post Posted by Yi Zhao at 4/12/2012 04:59:00 PM How to create a MS Windows local account by program There are several ways to make it happen: 1. PowerShell solution: http://stackoverflow.com/questions/383390/create-local-user-with-powershell-windows-vista 2. .Net solution: http://msdn.microsoft.com/en-us/library/bb384369.aspx#Y200 3. Using Active Directory Service Interfaces (ADSI) COM: http://msdn.microsoft.com/en-us/library/aa705985(v=vs.85).aspx No comments: Links to this post Labels: Windows Posted by Yi Zhao at 5/06/2011 11:47:00 AM Pointers to class member functions are always interesting This FAQ show us lot of interesting things. No comments: Links to this post Labels: CXX Posted by Yi Zhao at 4/22/2011 05:25:00 PM Celerbrate my StackOverflow.com account get over 500 reputations 费尽九牛二虎之力 终于让我在StackOverflow的账号reputation 过了500!!! No comments: Links to this post Labels: Life Posted by Yi Zhao at 4/20/2011 02:12:00 PM List of freely available programming books Meta-List *. How to Design Programs: An Introduction to Computing and Programming *. 25 Free Computer Science Ebooks *. Free Tech Books *. MindView Inc (List of Free Books) *. Wikibooks: Programming *. Cheat Sheets (Free) *. CodePlex List of Free E-Books *. Book Training - On Video! *. Sofware Program Managers Network - Free EBooks *. EBook Share @ linbai.info *. FreeBooksClub.Net *. Theassayer.org (Free Online books) *. O'Reilly's Open Books Project *. TechBooksForFree.com *. Galileo Computing (Free Downloadable German Books) Graphics Programming *. Nvidia GPU Gems 1 *. Nvidia GPU Gems 2 *. Nvidia GPU Gems 3 *. Graphics Programming Black Book *. Wolfgang Engel ShaderX Language Agnostic : *. Object-Oriented Reengineering Patterns *. Foundations of Programming by Karl Seguin *. Computer Musings (Lectures by Donald Knuth) *. The Cathedral and the Bazaar (Introduction to Open Source Software) *. Patterns and Practices: Application Architecture Guide 2.0 *. Security Engineering *. Digital Signal Processing For Engineersand Scientists *. Getting Real (Courtesy 37 Signals ) *. Structure and Interpretation of Computer Programs *. Domain Driven Design Quickly *. OO Design *. Best Kept Secrets of Peer Code Review *. NASA Software Measurement Handbook *. NASA Manager Handbook for Software Development *. Introduction to Functional Programming - Class Lectures and Slides *. How to Design Programs - MIT Press *. Guide to the Software Engineering Body of Knowledge - IEEE Computer Society Press *. Online Course Materials - MIT *. Algorithms (Draft Copy) *. Data Structures and Algorithms *. Essential Skills for Agile Development *. Programming Languages: Application and Interpretation *. Learn to Program *. Patterns of Software: Tales from the Software Community *. How to write Unmaintainable Code *. The Art of Unix Programming *. The Definitive Guide to Building CodeQuality *. How to Think Like a Computer Scientist *. Planning Algorithms *. The Little Book of Semaphores *. Mathematical Logic - an Introduction *. An Introduction to the Theory of Computation *. Developers Developers Developers Developers *. Linkers and loaders *. Beej's Guide to Network Programming *. Domain Driven Design Quickly *. Let's Build a Compiler *. Producing Open Source Software *. How to Write Parallel Programs *. Don't Just Roll the Dice *. 97 Things Every Programmer Should Know *. How Computers Work *. Introduction to Information Retrieval - Cambridge University Press. 2008. *. Is Parallel Programming Hard, And, If So, What Can You Do About It? *. Matters Computational - Springer, 2010 *. Type Theory and Functional Programming - Addison-Wesley, 1991 ASP.NET MVC : *. NerdDinner Walkthrough Assembly Language : *. ProgrammingGroundUp *. Paul Carter's Tutorial on x86 Assembly *. Software optimization resources by Agner Fog Bash *. Advanced Bash-Scripting Guide *. Lhunath's Bash Guide C/C++ *. The new C standard - an annotated reference *. The C book *. Thinking in C++, Second Edition *. C++ Annotations *. Software optimization resources by Agner Fog *. Introduction to Design Patterns in C++ with Qt 4 (Open Publication License) ( PDF ) C# *. See .NET below Django *. Djangobook.com Erlang *. Learn You Some Erlang For Great Good F# *. F# Forth *. Starting Forth *. Thinking Forth Git *. Pro Git *. The Git Community Book Grails - Getting Start with Grails Haskell *. Learn You a Haskell *. Real World Haskell HTML *. Dive Into HTML5 Java *. Sun's Java Tutorials *. Thinking in Java *. How to Think Like a Computer Scientist *. Java Thin-Client Programming *. OSGi in Practice (CreativeCommons Attribution Non-commercial Share Alike License) JavaScript *. Eloquent JavaScript *. Crockford's JavaScript *. jQuery Fundamentals (starts with JavaScript basics) *. JavaScript Guide (Mozilla Developer Network) *. Essential Javascript & jQuery Design Patterns for Beginners Linux *. Advanced Linux Programming Lisp *. Practical Common Lisp *. On Lisp *. ANSI Common Lisp *. Common Lisp the Language, 2nd Edition *. Successful Lisp *. Let Over Lambda - 50 Years of Lisp Lua *. Programming In Lua (for v5 but still largely relevant) *. Lua Programming Gems not entirely free, but has a lot of free chapters and accompanying code. Maven *. Better Builds with Maven *. Maven by Example *. Maven: The Complete Reference *. Repository Management with Nexus *. Developing with Eclipse and Maven Mercurial *. Mercurial: The Definitive Guide *. HGInit - Mercurial Tutorial by Joel Spolsky .NET (C#) *. Free C# Book Covers C#1.0 and 2.0 (Courtesy of Programmers Heaven ) *. Visual Studio Tips and Tricks (VS 2003-2005 only) *. Entity Framework (514 pages) *. Charles Petzold's .NET Book 0 *. Threading in C# *. C# Yellow Book (Intro to programming) *. C# Programming - Wikibook *. C# Essentials *. Data Structures and Algorithms with Object-Oriented Design Patterns in C# *. Illustrated C# 2008 (Download) ( .ZIP ) [dead link] *. O'Reilly's C# Pocket Reference Manual ( Free Ebook courtesy of Red Gate Software ) [dead link] NoSQL *. CouchDB: The Definitive Guide Objective-C *. The Objective-C Programming Language Oracle Server *. Oracle Guides and Manuals Oracle PL/SQL *. PL/SQL Language Reference *. PL/SQL Packages and Types Reference *. Steven Feuerstein's PL/SQL Obsession - Videos and Presentations Parrot / Perl 6 *. Perl 6 (Work in progress) Perl *. Higher-Order Perl *. Perl The Hard Way *. Extreme Perl *. Perl Free Online EBooks Meta-List *. The Mason Book *. Practical mod_perl *. Beginning Perl *. Embedding Perl in HTML with Mason (Open Publication License) *. Perl & LWP *. Perl for the Web *. Web Client Programming with Perl *. Modern Perl 5 PHP *. Practical PHP Programming (Wiki that contains O'Reilly's PHP In a Nutshell ) *. Zend Framework: Survive the Deep End PowerShell *. Mastering PowerShell Prolog *. Building Expert Systems in Prolog *. Adventure in Prolog *. Prolog Programming A First Course *. Logic, Programming and Prolog (2ed) *. Introduction to Prolog for Mathematicians *. Learn Prolog Now! *. Natural Language Processing Techniques in Prolog *. Prolog techniques *. Applications of Prolog *. Simply logical PostgreSQL *. Practical PostgreSQL Python *. Dive Into Python *. Dive Into Python 3 *. Byte of Python *. Building Skills in Python Version 2.5 *. Python Free Online Ebooks Meta-List *. Python Bibliotheca *. Think Python *. Data Structures and Algorithms in Python *. How to Think Like a Computer Scientist: Learning with Python *. Python for Fun *. Invent Your Own Computer Games With Python *. Learn Python The Hard Way *. Thinking in Python *. The Django Book *. Snake Wrangling For Kids *. Natural Language Processing with Python (nltk-book) Ruby *. Programming Ruby *. Why's (Poignant) Guide to Ruby ( Mirror via Scribd ) *. Mr. Neighborly's Humble Little Ruby Book *. Ruby Best Practices *. MacRuby: The Definitive Guide *. Ruby on Rails Tutorial: Learn Rails By Example Scala *. A Scala Tutorial for Java programmers *. Scala By Example *. Programming Scala *. Xtrace (Github) *. List (Github) *. Pro Scala: Monadic Design Patterns for the Web *. Exploring Lift (published earlier as"The Definitive Guide to Lift", pdf ) Scheme *. The Scheme Programming Language (Edition 4) Smalltalk *. Smalltalk Free Ebooks Courtesy of Stéphane Ducasse *. Squeak By Example (Smalltalk IDE) Subversion *. Subversion Version Control: Using theSubversion Version Control System in Development Projects *. Version Control with Subversion SQL (Implementation agnostic) *. Developing Time-Oriented Database Applications in SQL ,Richard T. Snodgrass *. Use The Index, Luke! - A guide to SQL database performance for developers Vim *. A Byte of Vim 1 comment: Links to this post Labels: Reading Posted by Yi Zhao at 2/28/2011 11:27:00 AM Access Ubuntu GPG Keyserver behind restrict firewall Ubuntu PPA is a very good apt source-list expansion mechanism, but it requires to install new GPG public key for the PPA repository. It isn't a big problem for user without a restrict firewall. ubuntu keyserver is using standard GPGkeyserver port keyserver.ubuntu.com:11371. It will beblocked by restrict firewall. While Ubuntu.com has enable the 80 on the keyserver, we should add some optionsto let gpg to use hkp:80 to access the keyserver. For my example, gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options http-proxy=http://webproxy.yourdomain.com:80 --recv 36E81C9267FD1383FCC4490983FBA1751378B444 We will be able to retrieve the GPG keythrough restrict firewall. :) No comments: Links to this post Labels: Linux , network Posted by Yi Zhao at 1/28/2011 11:04:00 AM A shell script to extract JDK/JRE.pack files under MSYS #!/bin/sh if [ ! -x $1/bin/unpack200.exe ];then echo "Usage: $0 " exit 1 fi for i in `find $1 -name '*.pack'`;do echo $i $1/bin/unpack200.exe $i ${i/%.pack/.jar} rm -f $i done 1 comment: Links to this post Labels: shell Posted by Yi Zhao at 10/18/2010 06:47:00 PM How to Crack Excel VBA Password Let's make it faster! I did a Perl script to handle the string replacement for you! #!/usr/bin/perl -W use strict ; use warnings ; use IO::File; print " Reset .XLA Password AS: ZZZZXXXX \n " ; my $fname ; while ( $fname = shift ) { my $fh = new IO::File; my $fx = new IO::File; # backup #qx(copy $_ $_.orig) if [ -f $_ ]; # open file if ( $fh ->open ( " < $fname " )) { $fh ->binmode (); $fx ->open ( " > $fname .new " ) || die qq( unable to create $fname .new! $@ \n ) ; $fx ->binmode (); my $l ; while ( $l = < $fh >) { $l =~ s/ CMG=" \w + " / CMG="C2C06EAE34B234B230B630B6" / ; $l =~ s/ DPB=" \w + " / DPB="848628F028AF45AF4550BBB0458ED7A55404135266B71BBB11B340F5CB0445BD26CDE2C6BA5A" / ; $l =~ s/ GC=" \w + " / GC="4644EA326E363137313731" / ; # write into new file. print $fx $l ; } $fh ->close (); $fx ->close (); # rename qx( ren $fname $fname .orig ) ; qx( ren $fname .new $fname ) ; # print ok print " $fname ... done! \n " ; } } No comments: Links to this post Labels: Perl Posted by Yi Zhao at 9/06/2010 06:56:00 PM Google I/O 2010 Keynote, pt. 1 No comments: Links to this post Posted by Yi Zhao at 5/20/2010 06:17:00 PM My First Perl XS module In recent days, I created my first Perl XS module -- Perl Win32::Oleaccxs. Win32::Oleaccxs is a module which depended on Microsoft Active Accessibility UI API to go through all the GUI widgets in Microsoft Windows system. This module is just a simple wrapper to the client APIs. By using this module, you can navigate most of the Windows GUI widgets by using Perl. This is very early version -- v0.01, It is undocumented yet. I will finish the document and upload it to CPAN some times later. :) No comments: Links to this post Labels: Perl , Windows Posted by Yi Zhao at 3/15/2010 11:23:00 AM TCP 状态混淆 看图说话: http://img.ly/images/152662/full 客户端在收到服务器的 SYN+ACK 响应之后,注入一个非法的RST 和另一个非法的ACK包, 服务器端会针对这个非法的ACK报文发出RST报文。 这样从中间人的角度看, 客户端和服务器都通过RST结束了TCP通讯。 太强大了~~~ No comments: Links to this post Labels: network Posted by Yi Zhao at 3/15/2010 11:13:00 AM 《后来》 北电2010年年会版 感慨中...... 《后来》 后来 你还是选择了分拆拍卖, 可惜你辉煌远去, 消失在未来 后来 终于在竞争中落败 有时侯一旦倒下就不再 无线网,光网络 纷纷落入他人口袋 “爱你” 我轻声说 但无奈你欠了太多的债 百年悠久的品牌 两千亿市值 巅峰时的那个北电 让我往后的时光 每当有感叹 总想起当年的光环 那时候的光纤 为什么就能那么好卖 而又是为什么不差钱后 还有财务丑闻让人发呆 在这场金融风暴中 你是否一样 也在苦苦裁员简政 如果当时我们能不聘用MikeZ 现在也不至于破产 让我如何拯救你 你的Logo被摘去 时光倒流有没有可能让你再选择 后来, 你还是选择了分拆拍卖, 可惜你辉煌远去, 消失在未来 后来 我终于习惯了等待 有些事历练之后才明白 No comments: Links to this post Labels: NORTEL Posted by Yi Zhao at 2/08/2010 04:43:00 PM sub GetTreeViewItemRect of Win32::GuiTest functions Win32::GuiTest is a powerful tool for Windows GUI testing. I love it! This is asmall function which allow GuiTest to send Mouse Events to the item inside TreeCtrl. #!/usr/bin/perl ## Initially generated by Win32-GuiTest Recorder (v1.03) ## Pragmas/Directives use strict ; use warnings ; use 5.010 ; next page 1

Thursday 25 August 2011

Wednesday 17 August 2011

Hidden informations in gsm

How to identify fake phones and period of usuage.
Option:
for all nokia phones
press *#0000# or *#92702689#
for samsung phones
press *#06# or *#0837#
for other phones
press *#06#