This blog is rated 🔞, viewer discretion is advised

Security and Anti-virus

收到关注的东西总是vulnerable,例如个人操作系统和服务器。所以人们发明了软件来保护这些东西,但是从生态角度来看,这些防护性的措施根本不能解决问题。因为病毒样本和行为库总是落后的。同时安全软件起到的作用也只是加快了病毒和木马的进化。

安全软件越强大,木马进化速度越快。现在国内要发一个新木马,一般都能by-pass 80% 的反病毒软件。也就是说,新的木马对80%的安全软件免疫。只有可怜的20%的软件能察觉新的木马。那么,安全软件的进化速度永远是落后于病毒的。

也有木马是针对没有安装反病毒软件的PC机的(“裸奔”用户),但是这部分用户安全意识一般来说都很高。没有那么容易得手的。

所以,Anti-virus和VXer之间的斗争,Anti-virus永远是失败者。

So why bother using Anti-virus software ? 自己的习惯和了解超前时代的技术才是最重要的。

Posted

archive

[youtube]永动机视频

About This Video This is a repost of the original Alsetalokin’s … (more)
Added: January 04, 2008
This is a repost of the original Alsetalokin’s video showing how his implementation of overconfident’s idea looks like so far. (The original video has been taken down by the autor, but he permitted reposting it by others.)

Please note that this is not the final product, the “OC’s Magnetic Perpetual Motion Machine” (which is a bit more complicated and, AFAIK, not unproven to work so far). I admit that this could cause some confusion, but this video really shows only some odd ‘anomaly’ observed during the construction and trying different configurations. There is no over-unity, no infinite long runs, so don’t jump into conclusions. Magnetic perpetual motion machines can’t possibly work, didn’t you know?

* Why is the lighting so bad/not showing the whole device/hidden motors/batteries/whatever?
1. Nobody cares when shooting a video (which proves nothing) for a few interested fellows.
2. Even if there was everything you could imagine to improve, it’s still only a video on YouTube. The world is in serious trouble if that would be enough to convince you.

For more information, visit Steorn’s forum at http://www.steorn.com/forum/, where the always open development has been taking place.

囧,orz,随便推荐一个超猛网站。http://appweblogic.most.gov.cn/gzwd/index.jsp?&page=2

Posted

archive

Wikipedia:7周岁快乐!

wikipedia

今天的新闻:除了Macworld的消息瘫痪了Twitter,还有一件重要的事情:Wikipedia 7 周岁了。从2001年1月15日Wikipedia建站以来,维基百科诞生了2,174,371个英文条目(我写这篇blog的时候),wikipedia.org是世界排名第九的网站(更具Alexa)。Wikipedia诞生了六个子项目::Wiktionary,Wikibooks,Wikinews,Wikiquote,Wikisource和Wikiversity

现在Wikipedia有近250种语言,9百多万文章,150多万图片,一千万注册用户,75,000个作出贡献的作者。

WikiCharts显示当今最流行的条目是它自身的定义:什么是wiki?

Wikipedia同时也记载了当今文化,就像《哈利波特》、《光晕》等。Wikipedia还从侧面反映了事物的流行程度:例如Cloverfield条目的页面,在过去两周每天都有 261,000 PV。

还有更加好玩的:Wikirage。Wikirage可以跟踪条目编辑频繁程度得出:哪些条目争论最多。毫无疑问,今天争论最多的条目是MacBook Air

如果250个语言版本的Wikipedia是个恐怖的数字,那么其中有一个版本是最有用的:简写版(Simple English):用不超过1500个英文单词描述一个条目。例如 Harry Potter 的全文描述是:

“Harry Potter is a series of seven fantasy novels written by British author J. K. Rowling. The books chronicle the adventures of the eponymous adolescent wizard Harry Potter, together with Ron Weasley and Hermione Granger, his best friends. The story is mostly set at Hogwarts School of Witchcraft and Wizardry, an academy for young wizards and witches. The central story arc concerns Harry’s struggle against the evil wizard Lord Voldemort, who killed Harry’s parents in his quest to conquer the wizarding world.”

简化英文版:

“The Harry Potter books are a popular series of fantasy books by J. K. Rowling. The character Harry Potter is the hero in the stories.

In the books, the fantasy is about magic. Harry Potter is born with the power to do magic. He soon discovers that there is a whole lot of magic people in the world, living unknown to most ordinary people. When he is eleven, he is invited to go to a boarding school for young witches and wizards. Each book tells about one year of his life at school, about the people that he meets there, the things that he learns, and his adventures.”

简写版几乎涵盖了完整版的所有内容。但是完整版有超过7000个单词。

恩,WIkipedia生日快乐!虽然wikipedia和传统百科全书相比缺乏权威性和准确性,还是毫无疑问Wikipedia是最方便的 :-)

Source: Read/WriteWeb:Happy Birthday: Wikipedia Turns 7 Today

最后吼一句,Read-only,但是不用翻墙的镜像!http://labs.dormforce.net/wikipedia/Great_fire_wall/

Posted

archive

超级龌龊的Macrovision - 继续扯谈unpack InstallShield的安装包

前年的blog今天又遇到这个问题了,再次下载InstallShield来提取工具……
http://saturn.installshield.com/is/11/windows/premier/wrapped/installshield11.exe
http://saturn.installshield.com/is/12/windows/domestic/premier/installshield12.exe
http://saturn.installshield.com/product/is/2008/domestic/premier/installshield2008.exe

ISCab.exe的用法在这里:http://helpnet.installshield.com/robo/projects/installshield11helplib/ISCabExe.htm

今晚花了3个小时,提取InstallShield 10, 11, 2008里的解包工具,加入UniExtract小工具,建立一个开源项目

Posted

archive

Window Clippings 2.0 截图工具 附注册码

看到小众软件推荐了一款截图软件,PicPick,觉得世界上肯定有更好的替代,所以Google了一个更好的:Window Clippings,支持多屏幕、命令行参数,不用长期驻留内存,开放接口(C++和.NET)等等,难为可贵的是,Windows Clippings只有238KB,实在是杀人灭口居家旅行必备工具,口黑口黑

Features:
Use keyboard hot key
Copy image to clipboard
Save image to disk
Automatically generate file name
Prompt for storage location and file name
Send image to OneNote
Clear window background
Include window shadow
Set background color
Include parent in selection
Include multiple windows in selection
Launch Options window from command line
Launch capture screen from command line
Hide notification icon Yes Yes
Convert to black and white
Include mouse pointer
Allow object selection
Freeze window during capture
Delay before capture (to capture pop-ups)
Copy file to clipboard
Configurable image formats
Post-save events
Register and configure add-ins
Crop or expand selection
Quick select desktop, work area or monitor

32bit 下载 64bit 下载
改天有心情了写个撕裂效果的插件,把SPX截图工具也踢飞了~~~口黑口黑

破解过程
Windows Clippings Serial
注册名:romanogl
注册码:261C0CDF-8D35149F-1C42D8DF-BAFF475A-12FE0CDB

Posted

archive

MySQL5 STOPPING server from pid file 错误


Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
050810 11:29:48 mysqld ended

解决办法:找到MySQL配置文件里的 socket = /tmp/mysql.sock

检查/tmp/mysql.sock权限

Posted

archive

LDAP的MD5算法

和php、MySQL的 md5() 函数不一样,LDAP里用户认证时候的md5算法有点不一样,留个记录。来源:OpenLDAP邮件列表

首先说说php和MySQL的md5函数,例如:
md5("testing") = "ae2b1fca515949e5d54fb22b8ed95575";
这个和Python的 hexdigest() 函数结果是一样的
>>> md5(”testing”).hexdigest()
‘ae2b1fca515949e5d54fb22b8ed95575′

在LDAP里怎么表示的呢?

dn: cn=md5user,dc=my,dc=example,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: md5user
description: MD5USER
userPassword: {MD5}CgIBDAUFBA4NBAsCCA0FBw==
]

怎么得到的呢?

我们研究 字符串 testing 的 MD5 字串:ae 2b 1f ca 51 59 49 e5 d5 4f b2 2b 8e d9 55 75
首先隔一个字符提取一个字符,得到一个新的字符串,例如:
a21c554ed4b28d575
得到:
a  2  1  c  5  5  4  e  d  4  b  2  8  d  5  7
那么把每一位看成十六进制,转换成对应的ASCII字符,例如第一位的 a,十六进制是 \x0A,也就是个回车:\n,把转换后的ASCII字符连起来,那么我们可以得到一串字符,不可显示的:'\n\x02\x01\x0c\x05\x05\x04\x0e\r\x04\x0b\x02\x08\r\x05\x07'

最后把这串不可打印的字符用base64编码之后,就可以得到LDAP标准的MD5字串,例如我们在Python里:

>>> '\n\x02\x01\x0c\x05\x05\x04\x0e\r\x04\x0b\x02\x08\r\x05\x07'.encode('base64'
).strip()
'CgIBDAUFBA4NBAsCCA0FBw=='

strip()是去掉一个没有用的回车符号。

最后我们用Python实现这一算法:

ActivePython 2.5.1.1 (ActiveState Software Inc.) based on
Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from md5 import md5
>>>
>>> mysql_md5 = md5("testing").hexdigest()
>>> mysql_md5
‘ae2b1fca515949e5d54fb22b8ed95575′
>>> binary_md5 = ”.join([ chr(int(mysql_md5[i:i+1],16)) for i in range(0,len(mysql_md5),2)])
>>> binary_md5
‘\n\x02\x01\x0c\x05\x05\x04\x0e\r\x04\x0b\x02\x08\r\x05\x07′
>>> ldap_md5 = binary_md5.encode(”base64″).strip()
>>> ldap_md5
‘CgIBDAUFBA4NBAsCCA0FBw==’
>>>

顺便说下,一个 single sign-on 的系统设计还真麻烦。要实现一个password同步、LDAP认证,AuthSub,等等,ho~~~累!

Posted

archive

100条最有趣的格言

1. The only thing that interferes with my learning is my education.

2. As far as the laws of mathematics refer to reality, they
are not certain; as far as they are certain, they do not refer to reality.

3. Common sense is the collection of prejudices acquired by
age eighteen.

4. The release of atomic energy has not created a new problem.
It has merely made more urgent the necessity of solving an existing one.

5. If you are out to describe the truth, leave elegance to the
tailor.

6. I know not with what weapons World War III will be fought,
but World War IV will be fought with sticks and stones.

Fredrick Nietzsche Quotes

7. In the beginning was nonsense, and the nonsense was with
God, and the nonsense was God.

8. A casual stroll through a lunatic asylum shows that faith
does not prove anything.

9. Ah, women. They make the highs higher
and the lows more frequent.

10. Is man one of God’s blunders? Or is God
one of man’s blunders?

11. Many are stubborn in pursuit of the path
they have chosen, few in pursuit of the goal.

Mark Twain Quotes

12. Be careful about reading health books. You may die of a
misprint.

13. Don’t go around saying the world owes you a living. The
world owes you nothing. It was here first.

14. I didn’t attend the funeral, but I sent a nice letter saying
that I approved of it.

15. I have never let my schooling interfere with my education.

16. The man who doesn’t read good books has no advantage over
the man who can’t read them.

17. “Why do you sit there looking like an envelope without any
address on it?”

Voltaire Quotes

18.
Prejudices are what fools use for reason.

19. If there were no God, it would have been necessary to invent
him.

20. Every man is guilty of all the good he didn’t do.

21. No snowflake in an avalanche ever feels responsible.

22. The true triumph of reason is that it enables us to get
along with those who do not possess it.

23. It is hard to free fools from the chains they revere.

24. There are men who can think no deeper than a fact.

25. Anyone who has the power to make you believe absurdities
has the power to make you commit injustices.

26. Anything too stupid to be said is sung.

27. By appreciation, we make excellence in others our own property.

28. Governments need to have both shepherds and butchers.

Plato Quotes

29. One of the penalties for refusing to participate in politics
is that you end up being governed by your inferiors.

30. No one ever teaches well who wants to teach, or governs
well who wants to govern.

31. This City is what it is because our citizens are what they
are.

32. Courage is knowing what not to fear.

33. The measure of a man is what he does with power.

Winston Churchill Quotes

34. A lie gets halfway around the world before the truth has
a chance to get its pants on.

35. If you are going through hell, keep going.

36. The best argument against democracy is a five-minute conversation
with the average voter.

37. It has been said that democracy is the
worst form of government except all the others that have been tried.

George Carlin Quotes

38. Think of how stupid the average person is, and realize half
of them are stupider than that.

39. A house is just a place to keep your stuff while you go
out and get more stuff.

40. Religion has convinced people that there’s an invisible
man…living in the sky, who watches everything you do every minute of every day.
And the invisible man has a list of ten specific things he doesn’t want you to do.
And if you do any of these things, he will send you to a special place, of burning
and fire and smoke and torture and anguish for you to live forever, and suffer and
burn and scream until the end of time. But he loves you. He loves you and he needs
money.

41. You know the good part about all those executions in Texas?
Fewer Texans.

42. Reminds me of something my third-grade teacher said to us.
She said, “You show me a tropical fruit and I’ll show you a cocksucker from Guatemala.”

43. I never fucked a ten, but one night, I fucked five twos.

44. What year did Jesus think it was?

45. The real reason that we can’t have the Ten Commandments
in a courthouse: You cannot post “Thou shalt not steal,” “Thou shalt not commit
adultery,” and “Thou shalt not lie” in a building full of lawyers, judges, and politicians.
It creates a hostile work environment.

46. Atheism is a non-prophet organization.

47. “No comment” is a comment.

48. If a man smiles all the time, he’s probably selling something
that doesn’t work.

49. The reason they call it the American Dream is because you
have to be asleep to believe it.

Steve Martin Quotes

50. Boy, those French: They have a different word for everything!

51. There is one thing I would break up over, and that is if
she caught me with another woman. I won’t stand for that.

52. Hosting the Oscars is much like making love to a woman.
It’s something I only get to do when Billy Crystal is out of town.

53. I believe that sex is one of the most beautiful, natural,
wholesome things that money can buy.

54. You know what your problem is, it’s that you haven’t seen
enough movies - all of life’s riddles are answered in the movies.

55. First the doctor told me the good news: I was going to have
a disease named after me.

56. Why is it we don’t always recognize the moment when love
begins, but we always know when it ends?
* As Harris K. Telemacher in “L.A. Story” (1991)

Steven Colbert Quotes

57. “To sit here at the same table with my hero, George W. Bush…I
feel like I’m dreaming. Somebody pinch me. You now what, I’m a pretty sound sleeper,
that may not be enough…Somebody shoot me in the face.”
-Roasting Bush at the 2006 White House Correspondents’ dinner

58. On this show, your voice will be heard - in the form of
my voice.

59. There’s a phrase we live by in America: “In God We Trust”.
It’s right there where Jesus would want it: on our money.

60. Folks, the President needs a break. He’s like a Black and
Decker cordless Dirt Devil vacuum. If you don’t recharge his batteries, he can’t
suck.

61. I’ve always been a big fan of beauty. Sure, you can’t judge
a book by its cover but who wants to have sex with a book?

62. Now, I don’t see color. People tell me I’m white and I believe
them because police officers call me “sir”.

63. Asia: Four little letters, three billion little people.

64. “There’s nothing wrong with being gay. I have plenty of
friends that are going to hell.”

65. Jesus forgives sinners, not criminals.

Jon Stewart Quotes

66. I celebrated Thanksgiving in an old-fashioned way. I invited
everyone in my neighborhood to my house, we had an enormous feast, and then I killed
them and took their land.

67. Insomnia is my greatest inspiration.

68. We have it. The smoking gun. The evidence. The potential
weapon of mass destruction we have been looking for as our pretext of invading Iraq.
There’s just one problem - it’s in North Korea.

69. We declared war on terror—it’s not even a noun, so, good
luck.

70. Here’s how bizarre the war is that we’re in in Iraq, and
we should have known this right from the get-go: When we first went into Iraq, Germany
didn’t want to go. Germany. The Michael Jordan of war took a pass.
Jon Stewart’s Stand-up performance at RIT, 2005

Bill Maher Quotes

71. Everything that used to be a sin is now a disease.

72. I think flying planes into a building was a faith-based
initiative. I think religion is a neurological disorder.

73. Religion, to me, is a bureaucracy between man and God that
I don’t need.

74. They’re talking about banning cigarette smoking now in any
place that’s used by ten or more people in a week,
which, I guess, means that Madonna can’t even smoke in bed.

Jerry Seinfeld Quotes

75. Men want the same thing from their underwear that they want
from women: a little
bit of support, and a little bit of freedom.

76. Dogs are the leaders of the planet. If you see two life
forms, one of them’s making a poop, the other one’s carrying it for him, who would
you assume is in charge.

77. There’s very little advice in men’s magazines, because men
don’t think there’s a lot they don’t know. Women do. Women want to learn. Men think,
“I know what I’m doing, just show me somebody naked.”

78. Why do people give each other flowers? To celebrate various
important occasions, they’re killing living creatures? Why restrict it to plants?
“Sweetheart, let’s make up. Have this deceased squirrel.”

Larry David Quotes


79. Anyone can be confident with a full head of hair. But a
confident bald man - there’s your diamond in the rough.

80. If you tell the truth about how you’re feeling, it becomes
funny.

81. I’m surprized Hitler didn’t round up the toupee people.”

Dennis Miller Quotes

82.
A recent police study found that you’re much more likely to get shot by
a fat cop if you run.

83. The average American’s day planner has fewer holes in it
than Ray Charles’s dart board.

84. “The only way the French are going in is if we tell them
we found truffles in Iraq.”

Jay Leno Quotes

85. Here’s something to think about: How come you never see
a headline like ‘Psychic Wins Lottery’?

86. The Supreme Court has ruled that they cannot have a nativity
scene in Washington, D.C. This wasn’t for any religious reasons. They couldn’t find
three wise men and a virgin.

87. Now there are more overweight people in America than average-weight
people. So overweight people are now average. Which means you’ve met your New Year’s
resolution.

88. The New England Journal of Medicine reports that 9 out of
10 doctors agree that 1 out of 10 doctors is an idiot.

Rodney Dangerfield Quotes

89. My father carries around the picture of the kid who came
with his wallet.

90. Oh, when I was a kid in show business I was poor. I used
to go to orgies to eat the grapes.

91. I’m at the age where I want two girls. In case I fall asleep
they will have someone to talk to.

92. A girl phoned me and said, “Come on over. There’s nobody
home.” I went over. Nobody was home!

93. Bisexuality immediately doubles your chances for a date
on Saturday night.


Sarah Silverman Quotes

94. When God gives you AIDS - and God does give you AIDS, by
the way - make lemonAIDS.

95. I was raped by a doctor. Which is, you know, so bittersweet
for a Jewish girl.

Chris Rock Quotes

96. Every town has the same two malls: the one white people
go to and the one white people used to go to.

97. I live in a neighborhood so bad that you can get shot while
getting shot.

98. If a woman tells you she’s twenty and looks sixteen, she’s
twelve. If she tells you she’s twenty-six and looks twenty-six, she’s damn near
fourty.

99. “You know the world is going crazy when the best rapper
is a white guy, the best golfer is a black guy, the tallest guy in the NBA is Chinese,
the Swiss hold the America’s Cup, France is accusing the U.S. of arrogance, Germany
doesn’t want to
go to war, and the three most powerful men in America are named ‘Bush’, ‘Dick’,
and ‘Colon.’ Need I say more?”

100. “You won’t be able to take your eyes off the next four
presenters: Salma Hayek and Penelope Cruz.”
Chris Rock while hosting the Oscars

101. Gas is getting so expensive I’m gonna ride a mexican to
work.

Posted

archive

原来GMA950集成显卡也有性能提升的余地的

好吧,我承认我火星。如果你是用的笔记本,显卡是Intel 945芯片集成的GMA 950的话,那么可以通过这个方式无损提升显卡性能50%以上:
首先安装好最新的Intel显卡驱动
开始 运行 igfxcfg
点击 显示设置 电源设置
拖到最高质量
11.jpg

我是不是有点火星??通过这个方法我成功的将CS 1.5的FPS从30提升到89,嘿嘿

Posted

archive

dbus-python for Windows


ActivePython 2.5.1.1 (ActiveState Software Inc.) based on

Python 2.5.1 (r251:54863, May  1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)] on

win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import dbus

>>> dbus

<module 'dbus' from 'C:\Python25\lib\dbus\__init__.pyc'>

>>>

成功!
把文件解压到 C:\Python25\lib\dbus\

dbus是个消息系统,dbus-python下载在这里。里面的dbus-bindings不是我编译的,是一个老外编译好的 http://www.slurdge.org/comment/reply/42

下载:dbus.rar

Posted

archive

直接下载Flash播放器控件离线完整版,9.0.115.0 支持X264视频

Adobe收购Macromedia以后,做的东西越来越臃肿,下载越来越麻烦。

这次装系统,Windows Server 2008,发现IE7浏览器没有自带Flash的ActiveX控件,于是去官方下载

没想到从Adobe这个JB网站下载下来的是一个 下载程序,这个巨垃圾的下载程序才会去真正的地址下载Flash控件然后安装。想天朝这种网速就别想安装成功了。

所以必须找到真实的安装地址!http://fpdownload2.macromedia.com/get/flashplayer/current/gtb/install_flash.foo.s。但是这个地址的文件被加密了,无法解开安装。

该死的Adobe!!!

经过多方搜索,得到了一个第三方授权下载的页面。有完整的安装包,是最新的9.0.115.0版本支持X264视频。数字签名是2007-11-21日。

execute a new
agreement
.

Downloads

Flash Player 9





Operating System Browsers Languages Installer
Windows Internet Explorer All supported languages
Windows Plugin-based browsers All supported languages
Mac OS X
(Universal binary)
All supported browsers All supported languages
Mac OS X
(PowerPC)
All supported browsers All supported languages
Linux All supported browsers All supported languages
Solaris (Sparc) All supported browsers All supported languages
Solaris (x86) All supported browsers All supported languages

See the

current Flash Player system requirements
for detailed information on
supported operating systems, browsers, and languages.

* Customers using Microsoft Systems Management Server
(SMS) 2003 R2 can import the Flash Player Catalog for use with the Inventory
Tool for Custom Updates.

Flash Player 8

Flash Player 8 is no longer available from this licensing program. All
licensees should distribute Flash Player 9

Flash Player 7

Flash Player 9 is the most current version for Solaris. For licensees who
have not yet begun to distribute Flash Player 9 for Solaris, Flash Player 7 is
still available.





Operating System Browsers Languages Installer
Solaris (Sparc) All supported browsers All supported languages
Solaris (x86) All supported browsers All supported languages

See the

Flash Player 7 system requirements
for detailed information on supported
operating system, browsers, and languages.

Note: If you require a Player installer that is not available
from this page, please
contact a
Player Licensing representative
.

作为普通用户下载这个文件就行了
http://www.adobe.com/go/full_flashplayer_win_msi

像Adobe这种垃圾公司真应该被我们共&产主义国家狠狠的盗版!!!

Posted

archive

I hate Bootstrapper!

Downloading Windows Live components like Windows Live Writer, Windows Live Messenger is fucking slow!!
No matter wtf you selected to download, you always get a ’small’ executable http://g.live.com/1rewlive/en/WLInstaller.exe, and this fucking bootstrapper will ’smartly’ download components background themself. I cannot select a proxy connection, or multi-theaded downloading using third-party tools. Bootstrapper inventors must have an ass in pain!!!!

Sniffering the damned WLInstaller.exe I found out that the HTTP request was encrypted, I cannot get the direct download address!!!!! Shit!!!

So does dowloading Adobe Flash Player OCX control !!
First you get a god-damn bootstrapper http://fpdownload.macromedia.com/get/flashplayer/current/ultrashim.cab
then you go to Macromedia site http://fpdownload2.macromedia.com/get/flashplayer/current/gtb/install_flash.foo.s. God knows what to do with the fucking install_flash.foo.s. It’s neither a valid win32 PE binary nor a compressed package.

Bootstrapper sucks!!!!!

I don’t know what shit is Microsoft and Adobe developers are eating, I cannot download those BIG install files through proxy to bypass firewall, I cannot download with a dowload tool like Orbit Downloader. Why they just can’t provide a complete OFFLINE install package?

Curse you all MS and Adobe !!!! Go To Hell!!!!

Posted

archive

Goodby Vista, hello Server 2008

期末了,复习无聊,装了个Windows Server 2008。

IE默认是高安全性设置,用按钮突破调整到了中

安装桌面体验,打开Aero

Firefox是自己做的portable版本,直接载入老系统的配置文件

可惜Windows Server 2008不支持DrCom

Posted

archive

取消 web.config 的继承

以往栋力无限的首页是 http://www.dormforce.net/homepage,一直很奇怪为什么不直接弄成 http://www.dormforce.net。今天才知道是根路径的 web.config “污染”了下级asp.net程序,所以跳转到一个单独的目录。

网上搜索了下,可以取消web.config的集成,方法是在编辑最顶级web.config的XML文件,把</configSections>后面的所有XML元素用
<location path="." allowOverride="false" inheritInChildApplications="false">

</location>
括起来!

注意,asp.net 1.1和asp.net 2.0不兼容!所以如果在全站asp.net 2.0跑一个 asp.net 1.1的二级路径程序,是不可能配置成功的!微软说这不是一个bug,这是一种“设计”,哈哈~~~

Posted

archive

[地球上最全面]Google Toolbar、Update、Google Gear接口


UserBrokerLib; // UserBroker library

Class UserBroker; // UserBroker coclass object
GUID={44295CB8-D71B-11DA-8750-001185653D78};
function RegCreateOrOpenKey(key_root:ULONG_PTR; key_path:BSTR; key_access:UI4; allow_create:I4; process_id:UI4; out key_handle:^ULONG_PTR): HResult;
function RegDeleteKey(key_root:ULONG_PTR; key_path:BSTR): HResult;
function CreatePath(path:BSTR): HResult;
function CreateFile(file_name:BSTR; desired_access:UI4; share_mode:UI4; creation_disposition:UI4; flags_attributes:UI4; process_id:UI4; out file_handle:^ULONG_PTR): HResult;
function DeleteFile(file_name:BSTR; even_if_in_use:I4): HResult;
function RemoveDirectory(path:BSTR): HResult;
function MoveFileEx(file_name:BSTR; new_name:BSTR; flags:UI4): HResult;
function CopyFile(file_name:BSTR; new_name:BSTR; fail_if_exists:I4): HResult;
function ApplyPatch(patch:BSTR; process_id:UI4; out thread_handle:^ULONG_PTR): HResult;
function FixMenus: HResult;
function SetDefaultSearchToGoogle: HResult;
function Uninstall: HResult;
function CleanVirtualizedPaths: HResult;
function EnableGoogleToolbar: HResult;
function VerifyGoogleSignature(key_res_id:I4; file_path:BSTR): HResult;
function ExecuteGoogleSignedExeElevated(exe:BSTR; args:BSTR; process_id:UI4; out process_handle:^ULONG_PTR): HResult;
function EnsureBrandingParameters: HResult;
function IsUpdaterServiceAvailable: HResult;

Interface IUserBroker; // IUserBroker interface
GUID={45295CB8-D71B-11DA-8750-001185653D78};
function RegCreateOrOpenKey(key_root:ULONG_PTR; key_path:BSTR; key_access:UI4; allow_create:I4; process_id:UI4; out key_handle:^ULONG_PTR): HResult;
function RegDeleteKey(key_root:ULONG_PTR; key_path:BSTR): HResult;
function CreatePath(path:BSTR): HResult;
function CreateFile(file_name:BSTR; desired_access:UI4; share_mode:UI4; creation_disposition:UI4; flags_attributes:UI4; process_id:UI4; out file_handle:^ULONG_PTR): HResult;
function DeleteFile(file_name:BSTR; even_if_in_use:I4): HResult;
function RemoveDirectory(path:BSTR): HResult;
function MoveFileEx(file_name:BSTR; new_name:BSTR; flags:UI4): HResult;
function CopyFile(file_name:BSTR; new_name:BSTR; fail_if_exists:I4): HResult;
function ApplyPatch(patch:BSTR; process_id:UI4; out thread_handle:^ULONG_PTR): HResult;
function FixMenus: HResult;
function SetDefaultSearchToGoogle: HResult;
function Uninstall: HResult;
function CleanVirtualizedPaths: HResult;
function EnableGoogleToolbar: HResult;
function VerifyGoogleSignature(key_res_id:I4; file_path:BSTR): HResult;
function ExecuteGoogleSignedExeElevated(exe:BSTR; args:BSTR; process_id:UI4; out process_handle:^ULONG_PTR): HResult;
function EnsureBrandingParameters: HResult;
function IsUpdaterServiceAvailable: HResult;

Alias ULONG_PTR;
UI4

GUServiceLib; // Google Updater Service 1.0 Type Library

Class GUServiceCtl; // GUServiceCtl Class
GUID={89DAE4CD-9F17-4980-902A-99BA84A8F5C8};
function Execute(file_name:LPWSTR; args:LPWSTR; caller_proc_id:UI4; out proc_handle:^ULONG_PTR): HResult;

Interface ISilentUpdater; // Google Updater ISilentUpdater Interface
GUID={C07A89E4-82A3-4A29-9908-DFC9DEBF8267};
function Execute(file_name:LPWSTR; args:LPWSTR; caller_proc_id:UI4; out proc_handle:^ULONG_PTR): HResult;

Alias ULONG_PTR;
UI4

Class GUSchedulerCtl; // GUSchedulerCtl Class
GUID={B53B7061-6584-46AA-A033-D610EB10BD9B};
function RegisterEvent(app_id:LPWSTR; event_id:LPWSTR; file_name:LPWSTR; args:LPWSTR): HResult;
function UnregisterEvent(app_id:LPWSTR; event_id:LPWSTR): HResult;
function ScheduleEvent(app_id:LPWSTR; event_id:LPWSTR; interval:UI4): HResult;
function CancelEvent(app_id:LPWSTR; event_id:LPWSTR): HResult;
function ScheduleEventNow(app_id:LPWSTR; event_id:LPWSTR; caller_proc_id:UI4; out proc_handle:^ULONG_PTR): HResult;

Interface IUpdaterScheduler; // Google Updater IUpdaterScheduler Interface
GUID={5C8CE0B5-6DA0-49A1-B675-78FD03EA3224};
function RegisterEvent(app_id:LPWSTR; event_id:LPWSTR; file_name:LPWSTR; args:LPWSTR): HResult;
function UnregisterEvent(app_id:LPWSTR; event_id:LPWSTR): HResult;
function ScheduleEvent(app_id:LPWSTR; event_id:LPWSTR; interval:UI4): HResult;
function CancelEvent(app_id:LPWSTR; event_id:LPWSTR): HResult;
function ScheduleEventNow(app_id:LPWSTR; event_id:LPWSTR; caller_proc_id:UI4; out proc_handle:^ULONG_PTR): HResult;

GearsTypelib;

Class BrowserHelperObject;
GUID={E0FEFE40-FBF9-42AE-BA58-794CA7E3FB53};
function QueryInterface(riid:^GUID; out ppvObj:^^void): HResult;
function AddRef: UI4;
function Release: UI4;

Class HtmlDialogHost;
GUID={619C4FDA-4D52-4C7C-BAF2-5654DA16E675};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function GetDialogArguments: BSTR;
function CloseDialog(result_string:BSTR);

Dispatch HtmlDialogHostInterface;
GUID={5D437BB7-8634-46D2-AB33-F854034C73D6};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function GetDialogArguments: BSTR;
function CloseDialog(result_string:BSTR);

Class ToolsMenuItem;
GUID={0B4350D1-055F-47A3-B112-5F2F2B0D6F08};
function QueryInterface(riid:^GUID; out ppvObj:^^void): HResult;
function AddRef: UI4;
function Release: UI4;

Class GearsFactory;
GUID={C93A7319-17B3-4504-87CD-03EFC6103E6E};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function create(class_name:BSTR; class_version:BSTR): IDispatch;
function getBuildInfo: BSTR;

Dispatch GearsFactoryInterface;
GUID={CADD7DF9-B7AF-426D-AE24-5E00CB8CF982};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function create(class_name:BSTR; class_version:BSTR): IDispatch;
function getBuildInfo: BSTR;

Class GearsDatabase;
GUID={B09AFBD8-FBEE-4E91-AA27-7DC433C978AB};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function open([database_name:^variant]);
function execute(expression:BSTR; [arg_array:^variant]): ^GearsResultSetInterface;
function close;
property-get lastInsertRowId: variant;

Dispatch GearsDatabaseInterface;
GUID={DFCF5BD9-9C89-46EC-BC01-8A5E31E6DD3A};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function open([database_name:^variant]);
function execute(expression:BSTR; [arg_array:^variant]): ^GearsResultSetInterface;
function close;
property-get lastInsertRowId: variant;

Dispatch GearsResultSetInterface;
GUID={B8A9C568-C1C1-49BD-A752-FDC3A4022825};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function field(index:INT): variant;
function fieldByName(field_name:BSTR): variant;
function fieldName(index:INT): variant;
function fieldCount: INT;
function close;
function next;
function isValidRow: bool;

Class GearsWorkerPool;
GUID={B76AFB62-9BA2-43E8-B27F-9F1CAC8148B7};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function createWorker(full_script:^BSTR): INT;
function sendMessage(message_string:^BSTR; dest_worker_id:INT);
property-put onmessage(IDispatch);

Dispatch GearsWorkerPoolInterface;
GUID={D9583548-7181-4F86-8C19-C02154D5256F};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function createWorker(full_script:^BSTR): INT;
function sendMessage(message_string:^BSTR; dest_worker_id:INT);
property-put onmessage(IDispatch);

Class GearsLocalServer;
GUID={3A826505-92E3-486A-9FB5-37FE89E971F9};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function canServeLocally(url:BSTR): bool;
function createManagedStore(name:BSTR; [required_cookie:^variant]): ^GearsManagedResourceStoreInterface;
function openManagedStore(name:BSTR; [required_cookie:^variant]): ^GearsManagedResourceStoreInterface;
function removeManagedStore(name:BSTR; [required_cookie:^variant]);
function createStore(name:BSTR; [required_cookie:^variant]): ^GearsResourceStoreInterface;
function openStore(name:BSTR; [required_cookie:^variant]): ^GearsResourceStoreInterface;
function removeStore(name:BSTR; [required_cookie:^variant]);

Dispatch GearsLocalServerInterface;
GUID={A207BB88-9F3B-4B5E-A267-234C4DDDB331};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function canServeLocally(url:BSTR): bool;
function createManagedStore(name:BSTR; [required_cookie:^variant]): ^GearsManagedResourceStoreInterface;
function openManagedStore(name:BSTR; [required_cookie:^variant]): ^GearsManagedResourceStoreInterface;
function removeManagedStore(name:BSTR; [required_cookie:^variant]);
function createStore(name:BSTR; [required_cookie:^variant]): ^GearsResourceStoreInterface;
function openStore(name:BSTR; [required_cookie:^variant]): ^GearsResourceStoreInterface;
function removeStore(name:BSTR; [required_cookie:^variant]);

Dispatch GearsManagedResourceStoreInterface;
GUID={990DC8DD-A97D-4701-962A-53721251821C};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get name: BSTR;
property-get requiredCookie: BSTR;
property-get enabled: bool;
property-put enabled(bool);
property-get manifestUrl: BSTR;
property-put manifestUrl(BSTR);
property-get lastUpdateCheckTime: I4;
property-get updateStatus: INT;
property-get lastErrorMessage: BSTR;
function checkForUpdate;
property-get currentVersion: BSTR;

Dispatch GearsResourceStoreInterface;
GUID={3F84AC4C-F26D-4A75-9E22-6695F6953EDD};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
property-get name: BSTR;
property-get requiredCookie: BSTR;
property-get enabled: bool;
property-put enabled(bool);
function capture(urls:^variant; completion_callback:IDispatch): I4;
function abortCapture(capture_id:I4);
function isCaptured(url:BSTR): bool;
function remove(url:BSTR);
function rename(src_url:BSTR; dst_url:BSTR);
function copy(src_url:BSTR; dst_url:BSTR);
function getHeader(url:BSTR; header:BSTR): BSTR;
function getAllHeaders(url:BSTR): BSTR;
function captureFile(file_input_element:IDispatch; url:BSTR);
function getCapturedFileName(url:BSTR): BSTR;
function createFileSubmitter: ^GearsFileSubmitterInterface;

Dispatch GearsFileSubmitterInterface;
GUID={0747A88C-5033-44F7-94B4-2E2823925996};
function QueryInterface(riid:^GUID; out ppvObj:^^void);
function AddRef: UI4;
function Release: UI4;
function GetTypeInfoCount(out pctinfo:^UINT);
function GetTypeInfo(itinfo:UINT; lcid:UI4; out pptinfo:^^void);
function GetIDsOfNames(riid:^GUID; rgszNames:^^I1; cNames:UINT; lcid:UI4; out rgdispid:^I4);
function Invoke(dispidMember:I4; riid:^GUID; lcid:UI4; wFlags:UI2; pdispparams:^DISPPARAMS; out pvarResult:^variant; out pexcepinfo:^EXCEPINFO; out puArgErr:^UINT);
function setFileInputElement(file_input_element:IDispatch; resource_url:BSTR);

ProtectorExeLib; // ProtectorExe 2.0 Type Library

Class ProtectorHost; // ProtectorHost Class
GUID={FBA44040-BD27-4A09-ACC8-C08B7C723DCD};
function Uninstall2(client:BSTR; sid:BSTR; keep_reg_settings:I4): HResult;

Interface IProtectorHost2;
GUID={91959FBB-853A-4AC7-A082-2DDF787F4CA9};
function Uninstall2(client:BSTR; sid:BSTR; keep_reg_settings:I4): HResult;

Interface IProtectorHost;
GUID={DA69D3CC-7676-4A65-889F-C052977F1AA9};
function GetProtector(out protector:^IUnknown): HResult;
function LockProtector(lock:I4): HResult;
function Uninstall(client:BSTR): HResult;

protector_dllLib;

Class Protector;
GUID={6134CEA9-DD6E-495C-A0D1-4F232027D7D7};
function SetSID(sid:BSTR): HResult;

Interface IProtector3;
GUID={91F39C2A-95E7-497A-A539-0AC715DC66D2};
function SetSID(sid:BSTR): HResult;

Interface IProtector2;
GUID={2212951C-1623-4095-906B-AC50B8F91016};
function SignalToShutdown: HResult;

Interface IProtector;
GUID={2351B346-00E8-4EAC-9B75-B138B465D659};
function Init: HResult;
function EnableProtection(enable:I4): HResult;
function IsProtectionOn(out enabled:^I4): HResult;
function SetNotify(notify:I4): HResult;
function GetNotify(out notify:^I4): HResult;
function SetHostPriority(host_priority:I4): HResult;
function GetHostPriority(out host_priority:^I4): HResult;
function GetVersion(out major:^INT; out minor:^INT; out build:^INT; out revision:^INT): HResult;
function SetOffered(offered:I4): HResult;
function GetOffered(out offered:^I4): HResult;
function SetSearchDomain(domain:BSTR): HResult;
function GetSearchDomain(out domain:^BSTR): HResult;
function IsGoogleDefaultSearch(out is_google:^I4): HResult;
function EnableUsageStat(enable:I4): HResult;

Posted

archive

Vista Easter Egg

Vista users, simply click this link: Vista Easter Egg

Or Win+R run this script:
about:<bgsound src="res://%WINDIR%\System32\Speech\SpeechUX\SpeechUX.dll/WAVE/WELCOMESEQUENCE.WAV">
16.jpg

Posted

archive

让Vista的屏保在桌面运行!Cool!

来源 http://jsbi.blogspot.com/2006/10/make-any-screensaver-as-your-desktop.html

Windows闭源的最大乐趣就是reverse engineering和hacking,这不,一个华人研究出了一个Vista下非常好玩的东东,在桌面运行屏保,不影响工作。

首先打开Spy++,这个工具是人手一份吧?好,找到你桌面的 hwnd ID,如图

15.jpg

然后Win+R运行 calc 计算器,选择 科学计算器,切换到 十六进制,Ctrl+V,切换到十进制,好啦,我们得到了桌面窗体的hwnd十进制ID,这里我得到的是 262216。

2.jpg

Win+R运行CMD,输入 C:\WINDOWS\System32\Ribbons.scr /p 262216,回车。注意这里必须在CMD里运行,在Win+R里运行是没有效果滴(我也很好奇为什么??)

切换到桌面,看看??哇咔咔,漂亮吧??Vista的图形内核Avalon看来是很强大的!mystify.scr, ribbons.scr, aurora.scr 和 SSBranded.scr 同理!

说不定,我们很多程序可以实现免费的DreamScene!

Posted

archive

[Debian Etch]SVN+Apache2.2+MySQL认证 配置指南[mod_authnz_external]

首先说,Apache2.2支持HTTP认证,来源有多种,但是支持第三方MySQL数据表认证的MOD就少了,mod_auth_mysql是最著名的,也是最早烂的,我根本在etch上编译不起;其次是 libapache2-mod-auth-pamlibpam-mysql ,这个也失败,因为PAM也停止开发了。

经过我千辛万苦Google了大半个月,终于发现了最好的Apache2.2验证MOD:mod_authnz_external

原理很简单,mod_auth_external会调用一个外部命令,如果命令以错误代码0退出,那么验证成功;如果以错误代码1等等退出,那么验证失败。OK,开始配置

apt-get install apache2
apt-get install subversion
apt-get install libapache2-svn

编辑 vim /etc/apache2/mods-enabled/dav_svn.conf
内容为

<Location /svn>
  DAV svn
  SVNPath /srv/svn
AuthName "Dormforce SVN" AuthType Basic AuthBasicProvider external AuthExternal auth_dormid require valid-user
</Location>

现在你已经有一个没有authentication的SVN跑起来了,利用的是apache2的DAV模块。

下载mod_auth_external for apache2.2的源码包

apt-get install build-essential
apt-get install apache2-threaded-dev
aot-get install apache2-prefork-dev

然后 tar -xvf mod_authnz_external-3.1.0.tar.gz,进入解压的目录
apxs -c mod_authnz_external.c
apxs -i -a mod_authnz_external.la

编译好了模块,接下来安装到Apache2,vim /etc/apache2/mods-enabled/authnz_external.load,输入

LoadModule authnz_external_module /usr/lib/apache2/modules/mod_authnz_external.so

好了,我们编辑Apache2主配置文件vim /etc/apache2/apache2.conf
在最后加上

AddExternalAuth auth_dormid /srv/auth_dormid/auth_dormid.py
SetExternalAuthMethod auth_dormid environment

OK,自己编写一个小小的python程序,查询MySQL数据库,如果环境变量USER和环境变量PASS和数据库中查询结果是一致的,那么sys.exit(0),否则sys.exit(1)

测试一下,/etc/init.d/apache2 restart重启apache,看看你的网站 /svn 目录,应该可以访问SVN啦。

下面我解释下配置文件里修改的内容对应的含义。
apache2.conf
 AddExternalAuth auth_dormid /srv/auth_dormid/auth_dormid.py
           关键词     执行命令路径
SetExternalAuthMethod auth_dormid environment
             关键词   通过系统环境变量传递认证值,同时可以设置为 pipe,管道

dav_svn.conf
AuthName "Dormforce SVN" 这里是浏览器弹出的提示窗口的文字
AuthType Basic       HTTP Basic认证,使用Basr64加密后传输
AuthBasicProvider external     认证来源是 mod_authnz_external
AuthExternal auth_dormid   上面设置的 关键词
require valid-user      需要成功认证的用户和密码才能访问页面

Posted

archive

编译mod_auth_mysql不成功,原来官方已经确认bug

According to the QA page for libapache-mod-auth-mysql, it was removed From etch because of failed to build From source against apache2.2. You could work around the missing package with libapache2-mod-auth-pam and libpam-mysql

我个人推荐这个方法,100%成功。http://ubuntuforums.org/showpost.php?p=1846046&postcount=18

Update1:
我测试了很久 libapache2-mod-auth-pam,想在apache2整合MySql认证,结果,orz
https://answers.launchpad.net/ubuntu/+source/libapache2-mod-auth-pam/+question/10853

mod_auth_pam is a module that requires access to one's system password file. http://pam.sourceforge.net/mod_auth_pam/ recommends the use of mod_authnz_external as mod_auth_pam is no longer developed/supported

汗啊汗,我辛苦配置了3周的SVN+DAV+Apache2+MySQL认证由光荣的失败喽,现在开始研究 mod_authnz_external

开源路漫漫

Posted

archive

Google官方的词典机器人,很瓜

zh2en@bot.talk.google.com为好友,可以调用Google的全文翻译。

摘录一段:

electronixtar: 中文
zh2en: Chinese
electronixtar: 哈哈
zh2en: You
electronixtar: LOL
zh2en: LOL
electronixtar: b4
zh2en: B4
electronixtar: 瓜货
zh2en: Melon goods
Sent at 4:28 PM on Wednesday

很好很水产~~~

同理的机器人还有 en2zh@bot.talk.google.com,jp2en@bot.talk.google.com等等

Posted

archive

MIT的Walter Lewin

网上名人啊,地球真小

http://www.cnbeta.com/articles/45485.htm

美国71岁的物理学教授沃尔特H•G•莱温在麻省理工拥有大量“粉丝”,并正在成为国际互联网的领袖,这全是由于他通过网络建立的全球物理课堂.
莱温教授的物理课录像最初在马萨诸塞州工业大学的网站上免费发布,很快就受到了来自全国喜爱者的追捧.一位印度网友在他发给莱温的邮件中说:“通过你的那些课程录像,我发现原来物理如此美妙,既令人吃惊又简单易学.”

这位老师的主页是http://web.mit.edu/physics/facultyandstaff/faculty/walter_lewin.html,还有他在wikipedia上的介绍

顺便贴几段视频

M.I.T.-Walter Lewin- Complete Breakdown of Intuition - Part1

还是想说,我天朝什么时候才能出现这样的老师啊 -_-!

Posted

archive

Mind mapping

最近尝试了几乎世界上所有的MindMapper软件,发现没有一款适合我。

可能是我的思维和绝大多数人不一样吧,绝大多数MindMapper软件都是一个中心,引出一点,然后引出另一点,然后另一点……

我的思维完全不同,先是冒出很多个node,然后通过network把这些node结合起来,有可能一个network变成一个新的node,或者几个node形成loop,甚至二维平面不能表现的loop,只有通过3D来想象……

colored mindmap
一旦我开始BrainStorming,几乎没有东西能够结构化的记录我思考到的idea,只有通过hand script按照时间顺序记录basic threading line,所以我很多发散性idea都稍纵即逝。

hand drawn mind map

或许我不会真正的mind mapping,wikipedia上介绍说,Mindmapping分以下步骤

  1. Start in the center with an image of the topic, using at least 3 colors.
  2. Use images, symbols, codes, and dimensions throughout your Mind Map.
  3. Select key words and print using upper or lower case letters.
  4. Each word/image must be alone and sitting on its own line.
  5. The lines must be connected, starting From the central image. The central lines are thicker, organic and flowing, becoming thinner as they radiate out From the centre.
  6. Make the lines the same length as the word/image.
  7. Use colors – your own code – throughout the Mind Map.
  8. Develop your own personal style of Mind Mapping.
  9. Use emphasis and show associations in your Mind Map.
  10. 后来又听说了Concept Mapping,源于programming的东东,看来只有geeky的东西才适合我啊
    concept mapping

    在Concept Mapping中反而有很多我喜欢的概念,summarizing,key concept,relation,hierarchy,source,creation,transform,organize
    等等~~

    我的希望:

    真希望GTD系统,个人海量资料库(如OneNote)、MindMapper,日程日历,语义化tagging能够被一个界面整合到一起……

    思维比较混乱,胡言乱语了一篇blog

    或许,这是碳文明依赖硅文明,生命进化和分化的另一个开端?

Posted

archive

URLProtocolView 看看你的windows有多少协议被注册了

nirsoft出品,必属精品。URLProtocolView是nirsoft在2007年推出的一款软件,可以查看Windows内已经注册的Asynchronous Pluggable Protocols

UrlProtocolView

什么是Asynchronous Pluggable Protocols(APP)呢?举个例子,网页里点击一个eMule的超链接,
ed2k://|file|BBC.Planet.Earth.03of11.Fresh.Water.720p.Divx6.Ac3.avi|2302461952|bd651d4325e14182f101697e18f08391|/
系统是怎么启动eMule的呢?我们通过注册表可以看到HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open\command指向"D:\下载工具\eMule\EMULE.EXE" "%1"那么相当于我们在命令行里运行了>"D:\下载工具\eMule\EMULE.EXE" "|file|BBC.Planet.Earth.03of11.Fresh.Water.720p.Divx6.Ac3.avi|2302461952|bd651d4325e14182f101697e18f08391|/"。这就是APP

APP可能导致很多安全隐患,例如几个月前沸沸扬扬的Mozilla URI漏洞

扫描了一下,我的Vista下注册的APP是相当的多啊。

==================================================
URL Name          : callto
Status            : Enabled
Description       : URL:Callto Protocol
Command-Line      : "D:\Chat\Skype\Skype.exe" "/callto:"%l""
Product Name      : Skype
Company Name      : Skype Technologies S.A.
================================================== 
================================================== URL Name : coll Status : Enabled Description : URL:Directory Opus File Collection Command-Line : D:\Downloads\DOpusInstall\Disk1\data1\dopusrt.exe / dde Product Name : Skype Company Name : Skype Technologies S.A. ==================================================
================================================== URL Name : ed2k Status : Enabled Description : URL: ed2k Protocol Command-Line : "D:\下载工具\eMule\EMULE.EXE" "%1" Product Name : eMule Company Name : http://www.emule-project.net ==================================================
================================================== URL Name : Explorer.AssocProtocol.search-ms Status : Enabled Description : Windows Search Protocol Command-Line : %SystemRoot%\Explorer.exe /separate,/idlist,%I,%L Product Name : Microsoft? Windows? Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : file Status : Enabled Description : URL:File Protocol Command-Line : %SystemRoot%\Explorer.exe /separate,/idlist,%I,%L Product Name : Microsoft? Windows? Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : FirefoxURL Status : Enabled Description : Firefox URL Command-Line : D:\浏览器~1\FIREFOX\FIREFOX.EXE -requestPending - osint -url "%1" Product Name : Firefox Company Name : Mozilla Corporation ==================================================
================================================== URL Name : ftp Status : Enabled Description : URL:File Transfer Protocol Command-Line : "C:\Program Files\Internet Explorer\iexplore.exe" %1 Product Name : Windows? Internet Explorer Company Name : Microsoft Corporation ==================================================
================================================== URL Name : gopher Status : Enabled Description : URL:Gopher Protocol Command-Line : D:\浏览器~1\FIREFOX\FIREFOX.EXE -requestPending - osint -url "%1" Product Name : Firefox Company Name : Mozilla Corporation ==================================================
================================================== URL Name : gtalk Status : Enabled Description : URL:Gopher Protocol Command-Line : "D:\Chat\Google Talk\googletalk.exe" "/%1" Product Name : Google Talk Company Name : Google ==================================================
================================================== URL Name : http Status : Enabled Description : URL:HyperText Transfer Protocol Command-Line : "C:\Program Files\Internet Explorer\iexplore.exe" - nohome Product Name : Windows? Internet Explorer Company Name : Microsoft Corporation ==================================================
================================================== URL Name : https Status : Enabled Description : URL:HyperText Transfer Protocol with Privacy Command-Line : "C:\Program Files\Internet Explorer\iexplore.exe" - nohome Product Name : Windows? Internet Explorer Company Name : Microsoft Corporation ==================================================
================================================== URL Name : IE.FTP Status : Enabled Description : URL:File Transfer Protocol Command-Line : "C:\Program Files\Internet Explorer\iexplore.exe" %1 Product Name : Windows? Internet Explorer Company Name : Microsoft Corporation ==================================================
================================================== URL Name : IE.HTTP Status : Enabled Description : URL:HyperText Transfer Protocol Command-Line : "C:\Program Files\Internet Explorer\iexplore.exe" - nohome Product Name : Windows? Internet Explorer Company Name : Microsoft Corporation ==================================================
================================================== URL Name : IE.HTTPS Status : Enabled Description : URL:HyperText Transfer Protocol with Privacy Command-Line : "C:\Program Files\Internet Explorer\iexplore.exe" - nohome Product Name : Windows? Internet Explorer Company Name : Microsoft Corporation ==================================================
================================================== URL Name : IMTo Status : Enabled Description : IMToProtocol Command-Line : "D:\Chat\Tencent\QQ2007\Timwp.exe" "%1" Product Name : QQOneClickApp 应用程序 Company Name : ==================================================
================================================== URL Name : irc Status : Enabled Description : URL:IRC Protocol Command-Line : "D:\Chat\SysReset\mirc.exe" -noconnect Product Name : mIRC Company Name : mIRC Co. Ltd. ==================================================
================================================== URL Name : joost Status : Enabled Description : URL:IRC Protocol Command-Line : "C:\Program Files\Joost\xulrunner\tvprunner.exe" "C:\Program Files\Joost\application.ini" "%1" Product Name : Joost Company Name : Joost Technologies B.V. ==================================================
================================================== URL Name : lastfm Status : Enabled Description : URL:lastfm Command-Line : "D:\Media\Players\last.fm\LastFM.exe" "%1" Product Name : Last.fm Company Name : Last.fm ==================================================
================================================== URL Name : LDAP Status : Enabled Description : URL:LDAP Protocol Command-Line : "%ProgramFiles%\Windows Mail\wab.exe" "/ldap:%1" Product Name : Microsoft? Windows? Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : mailto Status : Enabled Description : URL:Mail Protocol Command-Line : "d:\chat\google talk\googletalk.exe" /mailto %1 Product Name : Google Talk Company Name : Google ==================================================
================================================== URL Name : mapi Status : Enabled Description : URL:Mail Protocol Command-Line : "d:\chat\google talk\googletalk.exe" /mailto %1 Product Name : Google Talk Company Name : Google ==================================================
================================================== URL Name : maze Status : Enabled Description : URL: maze Protocol Command-Line : "D:\下载工具\Maze\Maze,1.exe" "%1" Product Name : Google Talk Company Name : Google ==================================================
================================================== URL Name : msdigitallocker Status : Enabled Description : URL:Digital Locker Protocol Command-Line : "%SystemRoot%\DigitalLocker\digitalx.exe" %1 Product Name : digital locker assistant Company Name : Microsoft Corporation ==================================================
================================================== URL Name : news Status : Enabled Description : URL:News Protocol Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : nntp Status : Enabled Description : URL:NNTP Protocol Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : OneIndex Status : Enabled Description : Microsoft Office OneNote Protocol Handler for Windows Desktop Search Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : OneNote Status : Enabled Description : URL:OneNote Protocol Command-Line : D:\PROGRA~2\MICROS~2\Office12\ONENOTE.EXE / hyperlink "%1" Product Name : Microsoft Office OneNote Company Name : Microsoft Corporation ==================================================
================================================== URL Name : picasa Status : Enabled Description : Picasa Command protocol Command-Line : "D:\Program Files\Picasa2\Picasa2.exe" "%1" Product Name : Picasa Company Name : Google Inc. ==================================================
================================================== URL Name : pnm Status : Enabled Description : RealNetworks 流协议 Command-Line : D:\Media\Players\RealPlayer\RealPlay.exe "%1" Product Name : RealPlayer (32-bit) Company Name : RealNetworks, Inc. ==================================================
================================================== URL Name : ppstream Status : Enabled Description : URL:ppstream Protocol Command-Line : "D:\Networks\PPStream\PPStream.exe" -ppstream %1 Product Name : Company Name : PPStream.com ==================================================
================================================== URL Name : QSK Status : Enabled Description : QSKProtocol Command-Line : "D:\Chat\Tencent\QQ2007\Timwp.exe" "%1" Product Name : QQOneClickApp 应用程序 Company Name : ==================================================
================================================== URL Name : RealPlayer.AutoPlay.6 Status : Enabled Description : RealPlayer MP3/VCD 自动播放 Command-Line : D:\Media\Players\RealPlayer\RealPlay.exe /autoplay "%1" Product Name : RealPlayer (32-bit) Company Name : RealNetworks, Inc. ==================================================
================================================== URL Name : RealPlayer.CDBurn.6 Status : Enabled Description : RealPlayer 空白 CD 自动播放 Command-Line : D:\Media\Players\RealPlayer\RealPlay.exe /burn "%1" Product Name : RealPlayer (32-bit) Company Name : RealNetworks, Inc. ==================================================
================================================== URL Name : rlogin Status : Enabled Description : URL:RLogin Protocol Command-Line : url.dll,TelnetProtocolHandler %l Product Name : RealPlayer (32-bit) Company Name : RealNetworks, Inc. ==================================================
================================================== URL Name : rtsp Status : Enabled Description : 实时流协议 Command-Line : D:\Media\Players\RealPlayer\RealPlay.exe "%1" Product Name : RealPlayer (32-bit) Company Name : RealNetworks, Inc. ==================================================
================================================== URL Name : search-ms Status : Enabled Description : Windows Search Protocol Command-Line : %SystemRoot%\Explorer.exe /separate,/idlist,%I,%L Product Name : Microsoft? Windows? Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : skype Status : Enabled Description : URL:Skype Protocol Command-Line : "D:\Chat\Skype\Skype.exe" "/uri:%l" Product Name : Skype Company Name : Skype Technologies S.A. ==================================================
================================================== URL Name : snews Status : Enabled Description : URL:Snews Protocol Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : synacast Status : Enabled Description : URL:synacast Protocol Command-Line : "D:\Networks\SynaLive\PE.exe" -peer -url "%1" Product Name : Company Name : ==================================================
================================================== URL Name : telnet Status : Enabled Description : URL:Telnet Protocol Command-Line : url.dll,TelnetProtocolHandler %l Product Name : Company Name : ==================================================
================================================== URL Name : Tencent Status : Enabled Description : Tim Protocol Command-Line : "D:\Chat\Tencent\TM2008\Bin\Timwp.exe" "%1" Product Name : QQ Company Name : TENCENT ==================================================
================================================== URL Name : Thunderbird.Url.mailto Status : Enabled Description : Thunderbird URL Command-Line : "D:\Networks\ThunderbirdPortable\App\thunderbird \thunderbird.exe" -osint -compose "%1" Product Name : Thunderbird Company Name : Mozilla Corporation ==================================================
================================================== URL Name : Thunderbird.Url.news Status : Enabled Description : Thunderbird (News) URL Command-Line : "D:\Networks\ThunderbirdPortable\App\thunderbird \thunderbird.exe" -osint -mail "%1" Product Name : Thunderbird Company Name : Mozilla Corporation ==================================================
================================================== URL Name : tn3270 Status : Enabled Description : URL:TN3270 Protocol Command-Line : url.dll,TelnetProtocolHandler %l Product Name : Thunderbird Company Name : Mozilla Corporation ==================================================
================================================== URL Name : TSBuddy Status : Enabled Description : URL:TN3270 Protocol Command-Line : D:\Chat\Tencent\QQ2006\SBuddyCall.exe %1 Product Name : Thunderbird Company Name : Mozilla Corporation ==================================================
================================================== URL Name : webcal Status : Enabled Description : URL:Webcal Protocol Command-Line : "%ProgramFiles%\Windows Calendar\wincal.exe" / webcal "%1" Product Name : Microsoft? Windows? Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WindowsCalendar.UrlWebcal.1 Status : Enabled Description : URL:Webcal Protocol Command-Line : "%ProgramFiles%\Windows Calendar\wincal.exe" / webcal "%1" Product Name : Microsoft? Windows? Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WindowsMail.Url.Mailto Status : Enabled Description : URL:Mail Protocol Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / mailurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WindowsMail.Url.news Status : Enabled Description : URL:News Protocol Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WindowsMail.Url.nntp Status : Enabled Description : URL:NNTP Protocol Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WindowsMail.Url.snews Status : Enabled Description : URL:Snews Protocol Command-Line : "%ProgramFiles%\Windows Mail\WinMail.exe" / newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WLMail.Url.Mailto Status : Enabled Description : URL:Mail Protocol Command-Line : C:\Program Files\Windows Live Mail desktop \wlmail.exe /mailurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WLMail.Url.news Status : Enabled Description : URL:News Protocol Command-Line : C:\Program Files\Windows Live Mail desktop \wlmail.exe /newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WLMail.Url.nntp Status : Enabled Description : URL:NNTP Protocol Command-Line : C:\Program Files\Windows Live Mail desktop \wlmail.exe /newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WLMail.Url.snews Status : Enabled Description : URL:Snews Protocol Command-Line : C:\Program Files\Windows Live Mail desktop \wlmail.exe /newsurl:"%1" Product Name : Microsoft(R) Windows(R) Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WMP11.AssocProtocol.MMS Status : Enabled Description : URL:mms Protocol Command-Line : "%ProgramFiles%\Windows Media Player\wmplayer.exe" "%L" Product Name : Microsoft? Windows? Operating System Company Name : Microsoft Corporation ==================================================
================================================== URL Name : WPC Status : Enabled Description : URL:Windows Parental Controls URL Exemption Request Protocol Command-Line : %systemroot%\system32\wpcer.exe %1 Product Name : Windows Company Name : Microsoft Corporation ==================================================

Posted

archive

iptables实现TCP端口转发

无聊,想把一个外网的mms在线视频转到内网看,于是在一台debian服务器上做了mms流端口(TCP端口554)转发,用的iptables。

其实我本来不会iptables的,一位前辈指点了一下一火就会了。iptables的本质是三张表,过滤表,改IP头的nat表和修改ttl值的表。其中我们实现端口转发的就是nat表。原理很简单,把所有请求本机TCP 554端口的转向远程外网服务器的554端口,然后把本机返回给内网的IP头改成本机IP。
使用iptables之前先 apt-get update, apt-get dist-update更新系统内核。


iptables -t nat -A PREROUTING -p tcp --dport 554 -j DNAT --to-destination 某外网IP:554
iptables -t nat -A POSTROUTING -p tcp --dport 554 -j SNAT --to-source 本机IP
echo 1 > /proc/sys/net/ipv4/ip_forward

看起来很简单,但是要记住还是很难的。

Posted

archive

手机万能遥控器汉化破解版[适用于部分nokia机型]

来源:中国孝感社区

红外遥控Psiloc irRemote v1.00.S60v3.SymbianOS9.1.Unsigned.Cracked-BiNPDA汉化破解版
此软件可以遥控彩电,功放,DVD,CD,录像机等多种品牌家电设备,(当然手机必须有红外线功能哦!),

Features

irRemoteirRemote turns your phone into a universal remote control. irRemote allows to operate audio and video equipment using one device - Symbian operated smartphone with infrared port.

PowerIt's simple and intuitive. Just select the device From the list and control it using your phone's keypad. The database of supported devices is stored online and you can download new codes directly From the irRemote.

WizardYou can extend the list of supported devices by uploading codes for them through an online wizard. Your uploaded codes can be downloaded directly From irRemote and ranked by other irRemote users.

适用机型:
Nokia 5500 Nokia E50 Nokia E51 Nokia E60
Nokia E61 Nokia E61i Nokia E65 Nokia E70
Nokia E90 Nokia N71 Nokia N73 Nokia N75
Nokia N80 Nokia N92 Nokia N93 Nokia N93i Nokia N95

安装说明:
按顺序安装第一个和第二个文件,,第三个文件签名后再安装,第四个文件是汉化文件,也要签名。

以下是摇控家电对照表
松下的TV 控制 国厂飞鸽空调的开关机
长虹的用TOSHIBA或philips 或 daewoo或LG或GOLDSTAR
老的破牡丹遥控器芯片是SAA3010飞利普的,选择 Philips 就可以
daewoo控制创维34,但不能控制29纯平100hz
TCL的可以用PHILLIPS控制
三洋的用户注意:部分机子可以用SANYO频道按钮开机后,再用SANYO ALT的电源按钮关机。
金星D3406FZ电视机用Philips
创维可以用LG ALT遥控或菲利普遥控
SHARP21寸的,SHARP开不了,但是第一个ADMIRAL就可以
厦华彩电Allsat TV
国产的日立_福日可以用日立的!只是有效距离太小,小于1米!
发射器牌号 发射器电器 遥控存储频道数 彩色中央处理器 (电脑块)
熊猫、北京 日本三菱 30个 M50436-560
M50462

适用机型:
熊猫3631B 3631D 3615D 4640
3642A 54P3 54L5 54P10 54P17
北京8313 8316 8343 2103C 541Y
牡丹49C1 51C5 54C3A 成都C47-851K
54-871 长虹CK49A 53A C2421
环宇47C-2R 51C-4R 54-2R
黄河47-V1 44FS-1 5401 5405 5406
5425 54FS-Ⅱ 海燕C54B-3-R
54B-4-R 如意SGC4400 5402A 福日      
1425 1725 1824 1925 2025 2075      
2125 2175 金星C451 542 543 C4717      
凯歌4C4401 5101 514 飞跃47C21/2-6      
49C2Y21-1 54C2Y2-1 54C2Y21-1      
上海Z654-2A 654-4A 654-5A 656-5A      
青岛5427 赣新KO5401 5406 5409      
康佳T920D1 9538 1826 1926 2109 2110    
2126 2128 孔雀KQ54-38 54-39 654-39      
美乐DS44C-1 1808 4F3A2B1 51CD5A      
54CD6 2108 2188B 乐华FC541-2PD      
西湖51CD5A 54CD6 天鹅CS47-C3 54-S1

下载:


1[1].irRemote.Setup.SIGNED.Do.Not.Resign.rar



2[1].DRMCommonSolutions.SIGNED.Do.Not.Resign.rar



3[1].Crack.Unsigned.rar



4[1].Psiloc.irRemote.v1.00.S60v3.SymbianOS9.1.Unsigned.CHS-ken.rar

est注:以前看到有红外线接口的设备就想到:要是能遥控电视……

Posted

archive

Win98……

在学校机房上微机接口实验课,没想到OS是Win98……

12.jpg

很多软件不能用……

还好putty和mstsc可以用,PuTTY用来开代理,mstsc用来连接我的本本

Posted

archive

Hip-Hop起源于中国

Hip-Hop是一种缘自中国农村,由农民在劳动生产中发明的音乐形式。口说无凭,视频为证。以下是一段纯天然原生态的Hip-Hop Music:

其实,这应该是Nokia中文网站的一个广告。

来源: http://www.hecaitou.net/?p=2137

Posted

archive

[Python]我也来玩玩tinyurl的API

TinyUrl可以把任意长度的URL转换成 http://tinyurl.com/xxxxxx ,后面6位字符是hash。TinyUrl本身不提供API,但是我们可以方便的通过第三方API实现tinyurl的转换

>>> urllib2.urlopen('http://remysharp.com/tinyurlapi?callback=tinyurlCallback&ur
l=http://initiative.yo2.cn/').read()
'tinyurlCallback("http://tinyurl.com/25485h");'
>>> urllib2.urlopen('http://remysharp.com/tinyurlapi?callback=tinyurlCallback&ur
l=http://initiative.yo2.cn').read()
'tinyurlCallback("http://tinyurl.com/22u9vv");'

说几点。
1. TinyUrl最多能表示36^6 = 2176782336 个网址
2. TinyUrl有大量的重复网址,比如 http://initiative.yo2.cn/ 和 http://initiative.yo2.cn 完全是同一个网址,不同之处只是后面的 / 符号。
3. 第三方API的存在造就了Web 2.0

Posted

archive

禁用Windows Vista的错误报告

Vista的错误报告和XP的一样恶心和烦人,而且要关闭它非常麻烦,这里记录下步骤,备查。

  1. 控制面板
  2. 经典视图
  3. 问题报告和解决方案
  4. 更改设置
  5. 高级设置
  6. 通通关闭

那个 高级设置 太TMD不起眼了,害得我找了好久。

附注册表:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting]
"Disabled"=dword:00000001

Posted

archive

Ninjai - The Little Ninja

Here is official download From episode 1 to episode 12

http://www.atomfilms.com/afassets/flash/nj_chapterninjai01_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai02_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai03_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai04_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai05_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai06_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai07_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai08_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai09_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai10_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai11_bb.swf
http://www.atomfilms.com/afassets/flash/nj_chapterninjai12_bb.swf

  《NinJai》讲述的是一个小忍者,武艺出众。他一个人前往一个叫做yumouri的村庄,在路上,他遇到了众多的抵抗,但他凭借出众的本领一一克服,直到引来了强盗的头目,在对方人多势众的情况下,他被抓住了。强盗头子将他放进了一个可怕的死亡之潭,最终他在死亡之潭中复生,而且杀掉了强盗头目。
  由亚洲华人团体制作的Flash巨作《NinJia》因为资金问题中断了1年的连载,但是目前该组织得到了美国原子动画等友好团体的倾力资助,竟然在2005年再次推出续作!
  Ninjai的剧情、画面、音效和Flash创作水平都堪称一流,就是内容血腥了一点 -_-!

Posted

archive

[Python]更新twitter

twitter官方提供了全面的API,我们可以通过python来更新twitter的消息。但是官方的文档似乎相当的简单甚至模糊,研究了几分钟,成功。给出个代码。

Posted

archive

原来Firefox应该叫“小熊猫浏览器”而不是“火狐”

我来火星一下,在TLF软件版看到一片帖子,说Firefox其实并不是狐狸而是“小熊猫”!,摘录如下:

http://en.wikipedia.org/wiki/Red_Panda

red_panda

firefox学名red panda,字面翻译是红熊猫,中文学名叫“小熊猫”。
按照wikipedia上面的解释,如果正确的话其实是现有中文“火狐”这个名字,之后才被英文直接翻译成firefox的。中文还有叫法为“红狐”或是“猫熊”。

现在话说回到firefox网页浏览器上。网上不少人说它那个logo上其实明显是个狐狸,而不是“小熊猫”,也算是起名时候没好好研究动植物学吧,呵呵呵。搞笑一下, firefox浏览器还是很好滴。

firefox logo

ps准备搭建一个wikipedia proxy,平时上wikipedia太麻烦了

Posted

archive

Ajax Mistakes - 容易犯的Ajax错误

翻译来源:http://swik.net/Ajax/Ajax+Mistakes

为了Ajax而Ajax

啥也不说了,鄙视跟风的。

导致 后退 按钮失效

认真学过Ajax的都会处理这个问题

没有直观的点击反映

GMail里点击一封邮件,右上角会有一个Loading...的提示,这样的Ajax才是对用户体验非常好的Ajax

忽略离线用户

GMail提供了POP,所以不能经常online的用户也能得到很好的体验。其他的服务例如SMS短信、Web-Servce都是很好的离线解决方案

不要让我等待

记住:Ajax的A表示:异步。

明文传输敏感信息

建议用https框架页

以为Ajax是单平台建设

JScript, Spidermonkey, Rhino,这些Javascript解析引擎的还是有区别滴

忘记Ajax访问的并发性

可能很多人会同时访问你的同一个Ajax资源

过多JS导致浏览器缓慢

我想说,CSDN的页面真TMD的卡!

欠缺对无脚本环境的考虑

记住noscript标签!

突然变化页面

让用户摸不着头脑

无法添加页面为书签

其实Ajax的出现破坏了URL的“U”。U代表Universal,但是对于一个Ajax页面,同一个URL可能代表不同的内容,所以在设计Ajax的同时请设计好URL。Google Maps就是一个极佳的URL-友好的例子

SEO不友好

过多过滥的Ajax导致搜索引擎对网站无法索引

页面滚动问题

据说某些蹩脚的设计会导致页面滚动消失

发明新的UI

还是符合用户的一贯UI习惯比较好。

标新立异的HTTP请求头

这点我也是深恶痛绝的,很多Ajax应用乱用GET和POST,导致一些robots或者Google Web Accelerator一类的代理软件入法正常工作。ps我讨厌REST标准!很多防火墙、代理只允许GET和POST通过。

页面变化不完整

据说某些蹩脚的Ajax设计会造成文章驴头不对马嘴

错误报告

传统的浏览器中你可以感知每一步错误,但是Ajax应用隐藏了这些细节。

进步还是退步?

如果纯HTML能做的很好的事情,不一定非要改成Ajax不可。

工具,工具!

记住,Ajax只是另一种工具而已。

Posted

archive

Vista下arp -s出现:ARP 项添加失败: 5,附解决方法

C:\Users\est>arp -s 202.115.22.129 00-0d-bc-78-07-3f
ARP 项添加失败: 5
C:\Users\est>netsh i i show in
Idx Met MTU 状态 名称 --- --- ----- ----------- ------------------- 1 50 4294967295 connected Loopback Pseudo-Interface 1 8 20 1500 connected 本地连接
C:\Users\est>netsh -c "i i" add neighbors 8 "202.115.22.129" "00-0d-bc-78-07-3f"
C:\Users\est>arp -a
接口: 192.169.1.120 --- 0×8 Internet 地址 物理地址 类型 202.115.22.129 00-0d-bc-78-07-3f 静态 202.115.22.131 00-17-a4-e2-07-3f 动态 202.115.22.132 00-17-08-2e-78-41 静态 202.115.22.135 00-01-02-fd-4c-d6 动态 202.115.22.141 00-e0-5c-41-0d-98 动态 202.115.22.148 00-f0-4c-85-f4-4e 动态 202.115.22.149 00-0a-e4-fb-90-ac 动态 202.115.22.154 00-0a-eb-4f-1c-e2 动态 202.115.22.191 ff-ff-ff-ff-ff-ff 静态 224.0.0.22 01-00-5e-00-00-16 静态
C:\Users\est>

来源:http://www.alouz.com/weblog/?p=850

只有arp -s网关的时候才会出现 ARP 项添加失败: 5这个错误

Posted

archive

万能文本编码/解码工具

平时老是需要把一些文本字符串作Unicode、UTF-8编码,苦于身边没有一个现成的方便实用的工具,于是自己用C#写了一个。

 

本工具支持以下编码:

  • Unicode转义
  • ASCII转义
  • UTF-8转义
  • HTML转义
  • HTML属性
  • URL
  • URL(Unicode)
  • URL路径
  • Base64
  • MD5 16bit
  • MD5 32bit
  • Punycode
  • 文字反向
  • 自定义

其中自定义即用户可以自行输入编码,本程序将尝试调用当前系统支持的编码格式来处理文本。目前我的Windows Vista Ultimate支持的编码有:

37 IBM037 IBM EBCDIC (美国-加拿大)
437 IBM437 OEM 美国
500 IBM500 IBM EBCDIC (国际)
708 ASMO-708 阿拉伯字符(ASMO-708)
720 DOS-720 阿拉伯字符(DOS)
737 ibm737 希腊字符(DOS)
775 ibm775 波罗的海字符(DOS)
850 ibm850 西欧字符(DOS)
852 ibm852 中欧字符(DOS)
855 IBM855 OEM 西里尔语
857 ibm857 土耳其字符(DOS)
858 IBM00858 OEM 多语言拉丁语 I
860 IBM860 葡萄牙语(DOS)
861 ibm861 冰岛语(DOS)
862 DOS-862 希伯来字符(DOS)
863 IBM863 加拿大法语(DOS)
864 IBM864 阿拉伯字符(864)
865 IBM865 北欧字符(DOS)
866 cp866 西里尔字符(DOS)
869 ibm869 现代希腊字符(DOS)
870 IBM870 IBM EBCDIC (多语言拉丁语 2)
874 windows-874 泰语(Windows)
875 cp875 IBM EBCDIC (现代希腊语)
932 shift_jis 日语(Shift-JIS)
936 gb2312 简体中文(GB2312)
949 ks_c_5601-1987 朝鲜语
950 big5 繁体中文(Big5)
1026 IBM1026 IBM EBCDIC (土耳其拉丁语 5)
1047 IBM01047 IBM 拉丁语 1
1140 IBM01140 IBM EBCDIC (美国-加拿大-欧洲)
1141 IBM01141 IBM EBCDIC (德国-欧洲)
1142 IBM01142 IBM EBCDIC (丹麦-挪威-欧洲)
1143 IBM01143 IBM EBCDIC (芬兰-瑞典-欧洲)
1144 IBM01144 IBM EBCDIC (意大利-欧洲)
1145 IBM01145 IBM EBCDIC (西班牙-欧洲)
1146 IBM01146 IBM EBCDIC (英国-欧洲)
1147 IBM01147 IBM EBCDIC (法国-欧洲)
1148 IBM01148 IBM EBCDIC (国际-欧洲)
1149 IBM01149 IBM EBCDIC (冰岛语-欧洲)
1200 utf-16 Unicode
1201 unicodeFFFE Unicode (Big-Endian)
1250 windows-1250 中欧字符(Windows)
1251 windows-1251 西里尔字符(Windows)
1252 Windows-1252 西欧字符(Windows)
1253 windows-1253 希腊字符(Windows)
1254 windows-1254 土耳其字符(Windows)
1255 windows-1255 希伯来字符(Windows)
1256 windows-1256 阿拉伯字符(Windows)
1257 windows-1257 波罗的海字符(Windows)
1258 windows-1258 越南字符(Windows)
1361 Johab 朝鲜语(Johab)
10000 macintosh 西欧字符(Mac)
10001 x-mac-japanese 日语(Mac)
10002 x-mac-chinesetrad 繁体中文(Mac)
10003 x-mac-korean 朝鲜语(Mac)
10004 x-mac-arabic 阿拉伯字符(Mac)
10005 x-mac-hebrew 希伯来字符(Mac)
10006 x-mac-greek 希腊字符(Mac)
10007 x-mac-cyrillic 西里尔字符(Mac)
10008 x-mac-chinesesimp 简体中文(Mac)
10010 x-mac-romanian 罗马尼亚语(Mac)
10017 x-mac-ukrainian 乌克兰语(Mac)
10021 x-mac-thai 泰语(Mac)
10029 x-mac-ce 中欧字符(Mac)
10079 x-mac-icelandic 冰岛语(Mac)
10081 x-mac-turkish 土耳其字符(Mac)
10082 x-mac-croatian 克罗地亚语(Mac)
12000 utf-32 Unicode (UTF-32)
12001 utf-32BE Unicode (UTF-32 Big-Endian)
20000 x-Chinese-CNS 繁体中文(CNS)
20001 x-cp20001 TCA 台湾
20002 x-Chinese-Eten 繁体中文(Eten)
20003 x-cp20003 IBM5550 台湾
20004 x-cp20004 TeleText 台湾
20005 x-cp20005 Wang 台湾
20105 x-IA5 西欧字符(IA5)
20106 x-IA5-German 德语(IA5)
20107 x-IA5-Swedish 瑞典语(IA5)
20108 x-IA5-Norwegian 挪威语(IA5)
20127 us-ascii US-ASCII
20261 x-cp20261 T.61
20269 x-cp20269 ISO-6937
20273 IBM273 IBM EBCDIC (德国)
20277 IBM277 IBM EBCDIC (丹麦-挪威)
20278 IBM278 IBM EBCDIC (芬兰-瑞典)
20280 IBM280 IBM EBCDIC (意大利)
20284 IBM284 IBM EBCDIC (西班牙)
20285 IBM285 IBM EBCDIC (UK)
20290 IBM290 IBM EBCDIC (日语片假名)
20297 IBM297 IBM EBCDIC (法国)
20420 IBM420 IBM EBCDIC (阿拉伯语)
20423 IBM423 IBM EBCDIC (希腊语)
20424 IBM424 IBM EBCDIC (希伯来语)
20833 x-EBCDIC-KoreanExtended IBM EBCDIC (朝鲜语扩展)
20838 IBM-Thai IBM EBCDIC (泰语)
20866 koi8-r 西里尔字符(KOI8-R)
20871 IBM871 IBM EBCDIC (冰岛语)
20880 IBM880 IBM EBCDIC (西里尔俄语)
20905 IBM905 IBM EBCDIC (土耳其语)
20924 IBM00924 IBM 拉丁语 1
20932 EUC-JP 日语(JIS 0208-1990 和 0212-1990)
20936 x-cp20936 简体中文(GB2312-80)
20949 x-cp20949 朝鲜语 Wansung
21025 cp1025 IBM EBCDIC (西里尔塞尔维亚-保加利亚语)
21866 koi8-u 西里尔字符(KOI8-U)
28591 iso-8859-1 西欧字符(ISO)
28592 iso-8859-2 中欧字符(ISO)
28593 iso-8859-3 拉丁语 3 (ISO)
28594 iso-8859-4 波罗的海字符(ISO)
28595 iso-8859-5 西里尔字符(ISO)
28596 iso-8859-6 阿拉伯字符(ISO)
28597 iso-8859-7 希腊字符(ISO)
28598 iso-8859-8 希伯来字符(ISO-Visual)
28599 iso-8859-9 土耳其字符(ISO)
28603 iso-8859-13 爱沙尼亚语(ISO)
28605 iso-8859-15 拉丁语 9 (ISO)
29001 x-Europa 欧罗巴
38598 iso-8859-8-i 希伯来字符(ISO-Logical)
50220 iso-2022-jp 日语(JIS)
50221 csISO2022JP 日语(JIS-允许 1 字节假名)
50222 iso-2022-jp 日语(JIS-允许 1 字节假名 - SO/SI)
50225 iso-2022-kr 朝鲜语(ISO)
50227 x-cp50227 简体中文(ISO-2022)
51932 euc-jp 日语(EUC)
51936 EUC-CN 简体中文(EUC)
51949 euc-kr 朝鲜语(EUC)
52936 hz-gb-2312 简体中文(HZ)
54936 GB18030 简体中文(GB18030)
57002 x-iscii-de ISCII 梵文
57003 x-iscii-be ISCII 孟加拉语
57004 x-iscii-ta ISCII 泰米尔语
57005 x-iscii-te ISCII 泰卢固语
57006 x-iscii-as ISCII 阿萨姆语
57007 x-iscii-or ISCII 奥里雅语
57008 x-iscii-ka ISCII 卡纳达语
57009 x-iscii-ma ISCII 马拉雅拉姆语
57010 x-iscii-gu ISCII 古吉拉特语
57011 x-iscii-pa ISCII 旁遮普语
65000 utf-7 Unicode (UTF-7)
65001 utf-8 Unicode (UTF-8)

 由于程序使用了 Gnu.Inet.Encoding.Punycode ,所以本程序以GNU开放源代码(其实我的源代码很垃圾……)

有什么好的意见或建议可以给我写邮件 click to email to electroniXtar

[内有附件]

Posted

archive

记住udl三个字就可以不背复杂的数据库连接字串了

原理

Windows自带的OLEDB组件有图形化的界面,直接填写数据库信息,可以自动生成连接字串

步骤

  1. 桌面新建一个文件 1.udl
  2. 双击打开
  3. 填写提供程序,服务器地址,登录用户和密码,选择一个数据库,把 允许保存密码 勾上
  4. 点击 确定,关闭对话框
  5. 用记事本打开 1.udl ,看看第三行,是不是连接字串?呵呵

 

Posted

archive

【原】StarDict绿色免安装便携版

 StarDict is a Cross-Platform and international dictionary written in Gtk2.
It has powerful features such as "Glob-style pattern matching", "Scan selection word,"
"Fuzzy query," etc.

StarDict是一个跨平台的开源国际化词典软件,用GTK2写成。是Linux平台下最流行的词典、翻译软件。

我把他的Windows版本提取出来,并加上了最小化的GTK+运行库,做成了绿色精简版,可以复制到U盘里随身携带。

为了减小体积,我没有添加任何词典:所以你需要到
http://stardict.sourceforge.net/Dictionaries_zh_CN.php
下载 tarbal 安装包,用WinRAR解压到StarDict的 dic\ 目录下即可。

点击下载

Posted

archive