Posted in

PostgreSQL

其实除了MySQL之外,PostgreSQL也是一个免费开源的数据库系统,而且功能非常强大,中文化也做得非常棒。如果需要开发比较复杂的数据库系统和网站时觉得MySQL力不从心就可以用这个。 他们之间的优缺点可以参考下这篇文章http://www.cbi.pku.edu.cn/chinese/documents/PUMA/postgres/my-post.html 我现在说下ubuntu 7.04下PostgreSQL数据库的安装和配置方法,PostgreSQL默认源里面自带了,目前版本是8.2,测试版是8.3beta。 执行sudo apt-get install postgresql-8.2 postgresql-client-8.2 postgresql-client-common postgresql-common 再安装个pgAdmin,源里也有不过版本非常老,执行sudo gedit /etc/apt/sources.list,添加一行deb ftp://ftp.cn.postgresql.org/pub/postgresql/pgadmin3/release/ubuntu/ feisty … PostgreSQLRead more

Posted in

一次特别的学术会议

       昨天晚上,在QQ群里收到如下消息:      “金秋10月,丹桂飘香,为庆祝重阳佳节及**建校55周年,我所特召开”‘枭鸟杯’417水产研究所第一届火锅学术会议”,会期暂定在明晚,欢迎广大所友踊跃参加,联系人:所长兼才女张文艺博士,会务联系人电话:1391397**** ”       从中午开始,大家都在期待着张博士的到来,直到下午五点,我们的才女才出现在我们的视线里,大家都忙着准备炊具和材料了。张博士亲自去采购,L和D去买菜了,其他人准备了三口锅,呵呵,电饭锅等可以加热的锅都用上了。六点钟,会议准时开始,九个人围着一张长桌,暖融融的。外面听说是降温了,很冷,里面大家吃得热火朝天。       没多大一会儿,大家发言的就少了,都要求去休息一会儿,几个人一起打会儿牌,聊会儿天。等饿了就又聚在了一起开始开会了,呵呵!       一直到了十点,因为时间关系,会议不得不结束了。       总结一下这次学术会议,一个是庆祝了党的十七大的胜利召开,另一个就是祝愿大家都有个好的未来吧。       同事们在一起生活,还是要抽时间好好聚聚的,开会也是联络感情的一种方式吧。

Posted in

朋友

        记得以前看到过一个故事,是关于古时一个书法家的故事。        这个书法家临终的时候,朋友们都在他身边。他拿出自己的作品给了每人一幅,作为纪念吧,唯独没有给自己最要好的朋友。他对自己这个朋友说,其他人都是因为字而认识我的,唯独你是因为我而认识我的字的,我不敢用片纸去沾污你。然后举起一杯洒,饮毕而没。        真正的朋友是什么呢?英语中说,“A friend in need is a friend indeed”,我觉得可没有那么简单。       不过在这样的一个社会中能找到在自己需要帮忙时能出手的朋友也是不错了,自己也觉得很满足了。       我理想中的朋友是像管仲和伯夷那样,互相帮助,互相了解。管仲说过,“生我者父母,知我者伯夷也。”       虽然现在还没有这样的朋友,但我也很欣慰了。人常说,人生得一知已足矣,我说人生有几个可交的朋友也够了。       昔李斯害韩非,庞涓害孙膑之类“妒人之能,幸人之失”的人,如果做为朋友交了,那可有你难受的时候。这时我会偷偷的庆幸,这样的人有的我还没有碰到,有的已经被我排除在了朋友圈之外。       交朋友还是要交君子的,因君子之爱人也以德,小从之爱人也以姑息。这就是交朋友的另一个好处了,当你在迷途,或者当你在错误中而不自知时,有个人会不顾一切的去提醒你。        … 朋友Read more

Posted in

让早起成为习惯

        九月的每天早上六点半都能起床的,国庆回家了一趟,回来后发现起床比以前晚了,一般一到七点是不会起床的,除非要去爬山。        国庆前总是起床很早,想着可能是南京的空气比较好吧,所以人的精力很充足,每天稍稍休息就可以恢复了。国庆后这是怎么了?        这两天又是当每天的第一缕阳光照到脸上的时候,我就再也睡不着了,坚持着躺在床上是一件让我很难受的事。不过还是要坚持多躺会儿,等到实在躺不住了,那里起床是很快的,就像要逃离一个地方一样。        收拾停当后,就赶紧下楼,吃过早饭,在花园里走走,看看老人们练功。        早上的空气总是很新鲜的,一大早太阳刚出来,有了光,植物们也就开始了光合作用,将一晚上集聚的CO2全部转化为氧气,所以这里的空气总是很好的,人出来后总能觉得很有活力。        还是让早起成为一种习惯吧,我本来就不是一个能强迫我做不愿意做的事情的人,是一个向往精神自由的人。        心情的享受阳光,享受第一个美好的早晨。

Posted in

完全是一次放松

      昨天晚上和小唐说起要爬山的,小唐还是因为身体原因不能去。就想着再找一个人吧,要不一个人去也太孤单了。      正说爬山的事的时候,在图书馆那里看到了永华,和永华说了下明天一起去爬山,这小子眼睛都没有眨一下就答应了。      今天早上就很早就醒来了,但是就是不愿意看一下表,就那样在床上躺着,直到永华早上六点半来找我了。这次真是觉得不好意思了,我提议的事情还让永华那么上心。       早上吃过饭后,还是7点准时出发。不过这次没有了以前的忙碌,这次去完全就是一次放松而已。不需要去证明什么,仅仅是朋友一起出来聊聊天,看看风景。       还是7:50左右到了紫金山脚下,这个时间并没有什么变化,每次都差不多。       今天两个人觉得还是天文台那边的路好走些,就走了那条路。走到天文台门口时发现天文台门是上了锁的,怎么会是这个情况?       问了下经常上山的人才知道,这个门有时是8点开,有时是8:30开。总之是天文台的领导和职工的车到了他才让游人通过的。我不明白为什么会有这样的规定,难道这样能让参观天文台的人多起来?等他们卖票的来了我们再进去我们就会顺道去参观天文台?难道一个老人家说这里的门是神精病呀?       终于等到8:35,一辆送职工上班的车来了之后,那个门才开了,我们也才得以继续前进了。走了50多米,另一边又是一个“铁将军”把我们拦住了。真扫兴!       这次还好,没有等几分钟,门就开了。       … 完全是一次放松Read more

Posted in

牵手的幸福

晚饭回来的路上,看到一对老年夫妇,牵着手走在路上。 突然感觉到那样真是幸福,两个人共同走了四五十年,现在还能像小青年们一样牵着手,互相扶持着走过。让人羡慕,也更让人明白了“少年夫妻老来伴”的真正含义。 看到一个男孩骑着单车,带着自己的女朋友,那女孩坐在车后,紧紧搂着男孩的腰,头贴在男孩背上,幸福的笑着,笑得让人羡慕,幸福也真的很简单。 经常和我的小丫头牵手走在路上,认识的人们总是投以好奇的目光。 经常有人问我或问小丫头,你们结婚这几年了,感情怎么还这么好,走在路上还像孩子一样手牵着手。 我们都没有办法回答这些问题,这社会是怎么了?正常的事在别人看来会变成问题。 我不是说大家都希望你结婚后过得不好,或者说大家结婚后感情不如以前,只是觉得有些人的心理被社会得扭曲了。 今天晚上我看到这两个画面时,我是很感动的。 离开家后越来越发现家的重要,出门一段时间,更明白家对我的重要。我爱我的家,爱我的小丫头。 结婚时间越长,婚姻越需要爱去呵护。 结婚后大家都忙于工作和平时的应酬,对家和自己的“她”的需要有时就忽视了,经常找着各种借口,比如工作忙,事情多了,总以为和“她”在一起的时间还长着呢。殊不知时间是过得很快的,感情不呵护也是会慢慢消失的。 时间会在你一个个借口中溜走,到最后留给你的是内疚。 感情也会在你不去呵护时一点点地淡去,等你发现她的重要时,她可能再也不属于你了。 和自己爱的人牵手走过人生的每一天,照顾好自己爱的人。 家有贤妻是个宝,呵呵,珍惜牵手的幸福吧!

Posted in

What is Varkon ?

What is Varkon ?VARKON can be used as a traditional CAD-system with drafting, modelling and visualization if you want to but the real power of VARKON is in parametric modelling and CAD applications development. VARKON includes interactive parametric modelling in 2D or 3D but also the unique MBS programming language integrated in the graphical environment. The system was originally developed by a group lead by Dr. Johan Kjellander at the University of Linkoping in Sweden. In 1985 he founded Microform and Varkon became a commersial product. Varkon was marketed and further developed until year 2000 when Dr. Kjellander left Microform to lead the CAD research group at the University of ?rebro. The sources were then released under the GNU/GPL license and the CAD research group became the maintainers of the system. In august 2007 the Varkon project moved to the SourceForge web. See: http://www.sourceforge.net/projects/varkon where it is still maintained by the members of the CAD research group at the university in ?rebro. VARKON is written in ANSI portable C and has been compiled and successfully executed on many different platforms. The UNIX version has a user interface based on X-Windows/OpenGL and the PC version uses Microsoft WIN32/OpenGL. Prebuilt binaries are available for Linux and Microsoft windows.  Some things you can do with VARKON.VARKON is used to develop and run applications. An application is a VARKON system that’s been modified and extended with knowledge and functionality specific to a certain product or problem. VARKON applications can perform any calculations, retrieve data from external databases, make decisions, perform complex geometrical operations, build object oriented structures with attributes and geometry, generate graphic images like 2D drawings or 3D models with shading or hidden lines removed and create any type of datafiles with output of your own choice. VARKON is ideally suited for all types of variational design. Wooden houses, tools for ballbearings, welded steel parts or electrical installations are some of the products currently designed in VARKON using this technique. In variational design the actual design work is often reduced to a few percent of the time spent with traditional methods. Using VARKON with its unique ability to handle geometry as well as other features and store the result in a well structured and object oriented manner it is also easy to produce much more information than paper drawings. Cost estimations, bill of materials and different forms of manufacturing data are usually created automatically in VARKON applications. VARKON is easy to integrate. A VARKON application can communicate using files or pipes and can spawn other processes as well as being spawned itself. Using this technique you can either let a VARKON application be on top and control other systems or you can use other systems to control VARKON. Varkon also includes an ODBC API for communication with commersial databases. VARKON is a powerful geometric modeller. Basic 3D entities are points, lines, arcs, curves, surfaces, coordinate systems and transformations. Several representations of parametric curves are implemented including rational polynomial, analytical offset and curves on surfaces so called UV-curves. Surface representations include rational polynomial, lofted procedural, analytical offset and a faceted surface for approximations. Basic support for trimmed surfaces was introduced in Varkon version 1.19. Operations include intersects, closest point, silhouette, curvatures, transformation, trimming, export, import and approximation. Basic visualization as well as complex rendering based on OpenGL is included in all versions of the system. A key feature in all modeling is the capability to record not only the results of interactive operations but also the operations history, making it possible to go back and inspect what you have done, then change something and automatically update the model. Being a fully generic system this is standard behavior in VARKON. All interactive operations are automatically recorded as MBS-statements and the model can any time be edited using the MBS-editor instead of interactive graphics if this is preferred. Using MBS your own design rules or constraints can easily be linked into the model. Such changes are automatically compiled and the result shown immediately on the screen.  Two things you  can’t do.VARKON is not a true solid modeller. VARKON surfaces can be trimmed and faceted and images can be produced with shading or hidden lines removed but mass properties like volume or center of gravity can not be calculated automatically. This doesn’t mean you cant use VARKON in applications where weight or volume is important. It only means you will have to deal with the problem in other (maybe less automatic) ways. VARKON is not a manufacturing (CAM) system. There are no high level functions in VARKON to support the programming of multi axis numerical machines. You can create your geometry in VARKON but multi axis machine programming will have to be done using other software. For less complicated manufacturing processes though it can surprisingly often be worth the effort to let VARKON applications generate numerical control data automatically even if this means extra programming in MBS initially.

Posted in

An introduction to Ubuntu

An introduction to Ubuntu:Ubuntu is “Linux for human beings”, a complete open-source operating system which aims to make Linux simple and a solid option for everyday desktop use. It includes common applications such as a web browser, e-mail client, and a complete office suite that is compatible with Microsoft Office and other document formats, such as the new ODF standard, the rapidly growing standardized format for the future of office documents.Ubuntu is available completely free of charge, in keeping with the founding principles of the Ubuntu distribution. Ubuntu’s active, growing community is one of the core aspects of Ubuntu, with users participating in such ways as providing free support for others, exchanging ideas and suggestions, and developing software, all as volunteers.Ubuntu is much more stable and less prone to security holes, viruses, and spyware than Windows due to a different security model, is entirely themable and customizable to fit your needs and preferences, and has huge quantities of software available to go with it, all easily accessible and free. Many of these applications, including the office suite, are even available for Windows, so you can comfortably use the same thing on both systems.You don’t have to give up everything you know and jump in headfirst. Ubuntu’s Live CD lets you run Ubuntu entirely off a CD without touching your existing Microsoft Windows or Mac OS X installation at all, with no risk of losing data or breaking the existing installation. You can even install Ubuntu without erasing your other operating system, in a “dual-boot” configuration which allows you to simply choose which one to use when you start the computer and share files between the two systems.Ubuntu is also available with multiple “graphical environments”, that can each be further customized, since everybody has different tastes for the “look and feel” they’re comfortable with. Disks are available today with one called “Gnome” as well as “KDE”, so you can try either of those, and if you’d like to take a look at others (like XFCE), screenshots of all versions (called Ubuntu, Kubuntu, Xubuntu, and one even specially tailored towards use with children and schools called Edubuntu) are available at http://shots.osdir.com/.These CDs are from the 7.04 (April 2007) release and being given to you to make Ubuntu available to people who might otherwise not have been aware of its existence, or of free software in general. Open-source projects such as Ubuntu develop at a rapid pace, so exciting improvements and new features are always becoming available, so watch for future releases too, with the next one coming up this October.So, feel free to pop the CD in and reboot into the Live environment to check it out. If it doesn’t really appeal to you, or you choose one graphical environment over another, please pass unused CDs on to a friend, relative, or coworker you think might be interested or leave it somewhere, like the break room at work perhaps. If you like what you see, just click the “Install” icon on the desktop and enjoy!The current release supports PC (Intel x86), 64-bit PC (AMD64), PowerPC (Apple iBook and Powerbook, G4 and G5), and Sun UltraSPARC architectures, so if you need a different CD, you can download them [http://www.ubuntu.com/download] or get some shipped for free [https://shipit.ubuntu.com/]. For more info, questions, or help installing Ubuntu, check out http://www.ubuntu.com/ !