LINUKS BLOG

Make progress is the topic for ever...

My Photo
Name:
Location: China

It's a fans of computer/ Computer is my favorite/ Making progress is the topic for ever...

Tuesday, September 25, 2007

关于eclipse连接JDBC的问题

第一步:安装jdbc,我们所需的是SQL Server 2000 Driver for JDBC Service Pack 3

点击java访问sqlserver服务器驱动程序安装程序setup.exe(可以到微软网站下载 http://www.microsoft.com/downloads/details.aspx?familyid=07287B11-0502-461A-B138-2AA54BFDC03A&displaylang=en下载)

第二步:设置系统变量classpath

假设SQL Server for JDBC 驱动程序安装在d:jdbc,安装完毕后应在d:jdbclib下生成3个.jar文件,则classpath应该设置如下:

classpath:=.;…;d:jdbclib; d:jdbclibmssqlserver.jar; d:jdbclibmsutil.jar; d:jdbclibmsbase.jar;

设置时要在最前面的点号和分号

注意:事实上这些工作做完之后并没有数据库连接程序仍然连接不上,正确的做法应该是将JDBC驱动程序安装目录下的3个.jar文件通过Add External JARs添加到Java Build Path中,其它的工作都是多余的。

Tuesday, September 18, 2007

Programming Can Ruin Your Life

There are many essays and articles extolling the virtues of becoming a great programmer. You’ll have a sharp mind, great abstract reasoning skills, and a chance to become wealthy by working mere hours a day. This is what you’ve heard, right?

Sadly, no one ever tells you about the ways in which it will adversely affect your life. The physical effects are obvious. You’ll spend most of your time sitting, probably in an uncomfortable chair that doesn’t promote good posture. You’ll fuel yourself with food that is readily available, meaning it’s more than likely processed and full of sugar and you’ll likely choose either coffee or soda to stave off the drowsiness. A coworker once remarked, “If it doesn’t come out of a vending machine, programmers don’t eat it.”

But I’m not particularly interested in the health risks, as I said, they’re obvious. So what am I talking about? Programming changes more than your body. Programming changes the way you think. You might hear a programmer say, “I like python because it matches the way I think.” Or is it really that they’ve learned to think in python? Regardless of the language employed, you think differently when you program. No decent programmer will deny that. This is why it’s often so hard to explain to someone “how you do that” because, as clear as your explanation may be, you simply think differently. It is this change in thinking that can ruin your life.

The application of programming specific processes and habits to the everyday is where peril lies. The same traits that make you a great programmer can make you an awkward, misunderstood and miserable human being.

Programming presents you with a problem and allows you to eventually solve it provided you don’t quit. A solution is out there somewhere. Make enough attempts and chances are you’ll eventually prevail. Aren’t computers great? They afford a large degree of freedom in problem solving. If nothing else, you are able to make as may attempts as you please and it will happily execute each one. This instills in you a sense that failure is not final. Any obstacle can be hurdled. This is not true in the real world. While you may find second chances now and again, the wheels that turn in the big blue room are largely unforgiving. Time marches on in one direction.

When faced with an interesting programming problem your mind will chew it over in the background. Maybe it’s an algorithm you need to develop, maybe it’s a tricky architecture problem, maybe it’s data that needs to be modeled. It doesn’t matter. Your mind will quietly work the problem over in search of a solution. The “ah-ha!” moment will come when you’re in the shower, or playing Tetris. This practice of constant churning will slowly work its way into the rest of your life. Each problem or puzzle you encounter will start it’s own thread; the toughest and most troubling of which will be blocking.

A program is highly malleable. You can make a nearly unlimited number of changes. You can re-implement. You can optimize. You can run the compile-test-debug cycle ad infinitum. Make a change, see a result. Life is not like this. Every action you take is followed by a commit and the transaction cannot be rolled back. You can continue to make changes and optimizations as you move forward but the effects of these will not be immediately apparent. The instant feedback of development is sorely lacking in real life. Furthermore, your changes might simply be ignored. Data will be skipped. Blocks will not be executed. Optimizations will go unnoticed. The world is resistant to your tinkering.

Programmers become obsessed with perfection. This is why they are constantly talking about rewrites. They cannot resist optimum solutions. Perfection requires tossing aside mediocre ideas in search of great ones. A good programmer would rather leave a problem temporarily unsolved than solve it poorly. A good solution takes into account all predictable outcomes and solves the largest number of them in the most efficient way. This mindset prevents you from writing code with limited utility and life span. While it’s a wonderful trait to have in programming, the demons of scope and efficiency will start to assert themselves on your ordinary life. You will avoid taking care of simple things because the solution is inelegant or simply feels wrong. Time to think will no doubt yield a better result, you’ll say.

The obsession with perfection develops a forward-thinking mindset. The ability to anticipate provides a huge advantage because you won’t waste your time implementing solutions that ultimately fail due to short-sightedness or lack of imagination. You will constantly be mapping out flows and running the permutations through your head. Back in the real world, you will find yourself piecing together plans of breath-taking size and beauty that simultaneously resolve multiple problems and fulfill numerous dreams. You will attempt to kill every bird with one stone. The impossibility of actualizing these plans will be agonizing, yet your mind will continue to pour over every detail as it seeks to anticipate every possible outcome and construct the perfect solution.

Everything is now data. Every bit is worthy of attention. Every interaction is worthy of analysis. Your mind has been trained to do this since it is usually the insignificant or subtle bits that have to be rooted out when debugging. You will find it frustrating that everyone else does not collect and analyze data. You will notice details that others simply gloss over. Your penchant for detail and over-analysis will earn you strange glances and confused shrugs. Your decision making process will resemble that of your peers less and less.

The frantic pace of the software world will instill in you a sense of panic and urgency. You must do everything now. Tomorrow is too late. The thought of working constantly will no longer seem foreign or ridiculous. You will spend your free time feeling guilty about not working. But you will be working. Your hands may not be at the keyboard, but your mind will be.

The romanticized story of young upstarts toiling away in a garage to build the world’s next great company is alluring. It’s easy to convince yourself that the dream is there for the taking. But understand that there are many factors you cannot control. Luck and timing being but two. Don’t miss the life you have in the search for the one you think you want. To quote John Lennon, “Life is what happens while you are busy making other plans.” But perhaps Pascal said it best, “We never keep to the present. We … anticipate the future as if we found it too slow in coming and were trying to hurry it up, or we recall the past as if to stay its too rapid flight. We are so unwise that we wander about in times that do not belong to us and do not think of the only one that does; so vain that we dream of times that are not and blindly flee the only one that is… [We] think of how we are going to arrange things over which we have no control for a time we can never be sure of reaching… Thus we never actually live, but hope to live, and since we are always planning how to be happy, it is inevitable that we should never be so.”

Is programming the road to ruin? Or is it that those with a predilection for detail and mental gymnastics find themselves drawn to it. Perhaps it simply exacerbates a pre-existing mindset. There are certainly other traits (stereotypical or not) that most programmers seem to share. I have focused mainly on the negative impacts, but there are certainly positive ones as well. All things listed as bad can be good if simply kept in check. Obsession is dangerous, and anything great requires obsession. Programming is no exception.

Monday, September 10, 2007

一点心得

7.18

不管东西有多么微小,只要能方便,或者是好的东西都应该积极去学习,不应该采取排斥的态度.

关于windows控制面板的小知识

7.15

control 控制面板
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1添加删除模块

闲着无聊

Music flow around the ear, it's a beautiful thing. I like ,though i was weak in the music distance(才能). Thinking about the cheer life everyday, i know i like to do what, but don't know what i really want to do! Maybe the interesting is disturb(区别) from the i like. The interesting 强调 the long period and the like express the 快感. Touched with the engeener(工程师) made me thinking much. Maybe thinking much more than the (行为) will let people tired. And the failure come from the un-signral(无意义)'s thinking. For me, not thinking much, just do it! do it!

reading book all the time, not for anybody, just for yourself.

小文一篇

静静的调整好彼此的心情,小心问对方,做不了爱人我们做什么?

“那我们做知己吧”!她对他说。他说:“不,我承受不了那份永久的牵挂与思念,没有人能做好一辈子的知己。”

  “那我们做情人吧”!她对他说。他说:“不,因为你是善良的女人,尽管我们的感情没有阳光的青睐,但是这样暧昧的词语是对我们的玷污”。

  “那我们做兄妹吧”!她对他说。他说:“不,我们的爱早已越过了兄妹之间的亲情,会有哥哥用带着柔情爱意的目光看待妹妹的吗?我不会做这样的哥哥”。

  “那我们做朋友吧,我只能给你这个了”她对他说。他说:“不,在我的心里你早已经是我的爱人了,做了朋友的身份,我无法面对你和你的另一半,也无法想象你和你另一半在一起的时候……我也无法抗拒和我的另一半同床共眠的时候不去想你。

  “唉,我们还是做仇人吧”!他对她说。既然我们都改变不了自己的命运,此生注定了没有相互厮守一生的幸福,与其这样相互的念着、痛着,仇恨的远离对方的视线,永远的找寻不到对方,也许会是一种最好的解脱。

  她愕然了,他哭了。无法想象最后能给与对方的竟然是这样的结局。但是他们明白,也只有这样选择,才可以保留住对方的那份善良与纯洁,也不再会去伤害更多的人。
 
  从此,他们消失了,没有相互的祝福,就这样静静的消失在茫茫的人海中。

  两副柔弱的肩膀,承受不住另类的爱情。

  爱就这样不堪承受生命之重。

  也许……恨比爱容易……

Friday, September 07, 2007

Have a rest in my blog for a month

Don't know why clearly for what, stop bloging for the daily in my life . Maybe the busy job, maybe the disinsist character,maybe the bad mood. But i find it should be renew begin today. The life is busy and the time is not enough, but there should not dissort in the future life road.

I said to others i like programing. no ever it is a ture or not, i should not deceive others and myself. Having programing for program is the biggest advantage for the programer. Since i like programing, i should know well and can make full use of the advantage of the programing .Make a long period program for my life , and though my road as the programing exactly......