几番辛苦

It’s been couple days, more exactly couple weeks, the mongodb client program prcess could not go further because the sever’s bind_ip parameter was set to the local machine. Through days hunting for the method to reset this parameter, leafing googles, sending group emails, finnally, tonight in the mongodb group on IRC some guy said

use mongod –bind_ip 0.0.0.0

and he then append

mongod –help

SO, it works, otherwise this blog would not have been released, although the database sever only turns off the bind_ip option when it is started from cmdline, when started as dienst not work, it is somehow progress.

Access the database via normal ip setting

哈哈哈哈

好多年没有运行过一个完整的桌面程序了,最近3个月每天(也不是每天,只能有空的时候)回到家写几行,写几行,昨天总算写出了第一个功能:让用户看到现有的文档,并修改文档内容。

实际上这个程序的功能规划的很庞大,一个人肯定是写不完的,更何况每天就那么几行,几个主要功能写完就甩给别人去干,现在还要完善一些基本功能,规范一下程序架构。

阳春三月

博客网站疏于管理的唯一原因是:太忙!

冬去春来,不少蛰伏了一秋一冬的博客在最近两周频频刷新,有说家里小事的,有说踏青游春的,不过对于住在钱塘江边,卖命在杭州湾最潮头的人来说,这些都很有点奢侈了。这次的雨是从去年十二月末开始下的大概,搞不灵清搞不灵清就稀里糊涂下到了三月份,从惊蛰的后面几天开始,天气开始开始有转暖的迹象,天气预报开始说×天后晴转多云,气温8至15度,今年开春第一个真正的艳阳天是上周末。

趁着大好天气回去看了一眼初中的班主任Z,闲谈惊闻Z又当起了班主任;
问:你都是元老诶,怎么还让你当班主任啊,班主任那不是新来的才当当的嘛。
Z:你想得美!明天我还得去下晚自习呢~~~

刚刚到下沙的时候鼓捣了一阵子Mysql,弄出来一个蹩脚的Buchhaltung数据库,勉强可以记录汇总一下各项开支汇总,但是预算和结算没法做,因为没有详细的各种开支和收入计划,不多多少是可以用了,程序外没有任何外部代码,用的全是Mysql的Procedure和Evnet。

现在这个Buchhaltung的数据库没有必要花太多精力在上面大了,于是开始研究MongoDB。C#中数据的写入和读出数据结构已经可以完成,但是还不知道怎么设计完整的数据结构与用户交互功能,做这种工作以前只有一个痛苦,不懂无处问;现在有两重难处,不仅是无处问,连时间都不够用啊,只有每天心想着就是40分钟,就是1个小时,就搞一搞,结果一搞就有可能搞到好晚,也不一定马上就能得到一个好程序。

最后一行写清楚了今天的更新内容与新生的问题

问题总在一步步浮现,现在的阶段根本无法开始写软件的文档


住在下沙,经常会在周末进城去摸索摸索武林古都的风味,杭州是个拥挤,但是仍然令人觉得友善的城市,对于一个宁波人来说,到了杭州,还是外地人,但是杭 州人说话,我们勉强是能听懂的,我们学着杭州话,问问路是基本没问题的。杭州街头最让人觉得意外就是这些箱子上的墙画,貌似街上这些箱子的墙画都是同一家 公司画的,有功夫一定要为它们出一个专辑。

中河高架下的彩绘箱


这个妈妈级的广告演员,怎么看起来像是初中同学怎么的


在下沙已经有很多这样的公家车预示牌子,在市区的时候有些站点貌似是灵光的,
但是在下沙三号大街×六号大街交叉口的这个站点,肯定是不准的,搞来搞去都是3040米。


然而感谢这单年的起早贪黑,被敲骨吸髓一般的被压榨工作生活,让人明白了个人能力实在有限,其不谈做好自己的兴趣,保证其前提做好上司发下来的任务,都不一定那么容易,许多,只不过是杂事,只不过是杂事——要当成正事办理未为不可,但是周期却长,没法做成一件相当成功的事情,于是还是被大部分琐碎的事情吞噬了大好青春。

这个记录单,是从到了下沙之后开始记录,要做的那些私事,而现在其中鲜有完成的


新近开了一个台灯,看着挺精神的,喜欢的就是这种简约型实用性的。还有一大笔物资要购入:打印纸快没了,单片机烧录器迟早需要一个,平板电脑必须要一个——要么明年要么今年年尾。

年前的时候买了不少植物种子和油苗,其中比较大件的有:玫瑰、月季、牡丹、紫竹、水仙,以及各类碗莲种子、小草草种、花种。现在已经到了撒种的季节,可还是没有时间去关心这些,只是今天早上把这盆已经绽出绿芽的牡丹从北阳台搬到了南阳台,希望她早日早开富贵。

蛰伏了一个冬天的牡丹,旁边的韭菜是水仙


拜zlike同学所赐的一个vpn配置文件,终于在困难时期我也能上网来更新我的博客,但是不过对于我的粉丝就没有必要千里迢迢翻墙跨海来看,用google订阅器就可以了,如果发现阅读器也读不了,尝试着把http://google.com/reader,改成https://google.com/reader。

不知道有没有会看图片的内容和下面的注释,如果没有人看的话,我就干脆把那行注释改成德文了。

最后,来到这里,最喜欢还是在低空飞行的民航,儿时的飞机梦

MONGODB_install as windows service

总是觉得MONGO和芒果有关,其实是自己想当然。最近刚刚尝试了一下MONGODB,要安装成windows service,天天晚上回来折腾一下下,终究是没搞定,今天下午从银行取了卡回来,搜到一篇文章,解决问题,特此转载。

article source: http://thebackshop.posterous.com/installing-mongodb-as-a-service-on-windows-7

======== cited text =======

Installing MongoDB as a Service on Windows 7

Over the last few months there’s been an increasing amount of interest in NoSQL database options among the members of the PHP Developers’ Group that I help organize in Chattanooga … and frankly, I’ve been itching to dig in myself. The other organizers and I decided that what we would do is each choose a NoSQL database engine, and over the next few months we’d cover those engines by devoting the main presentation of a meeting to them. Our presentations will cover the basics of using the engine in question, discuss the strengths and weaknesses of the engine, and the process of building a simple a simple application in PHP with it.

I chose MongoDB. Well, as fate would have it, I was in the process of learning ASP.NET/C# at work, and as an exercise, I ended up setting up MongoDB on Windows and using it to build a simple web using ASP.NET … so my first foray into MongoDB was with C# rather than PHP. Go figure.

MongoDB works quite well on Windows. Unfortunately, the downloadable .ZIP package you get from mongodb.org doesn’t give you any indication of how to run it as a Windows service, and I really, really wanted to do that instead of having to manually start it up every time I wanted to play with it. I went out searching for information on how to do so, and ended up finding conflicting instructions that sometimes didn’t work. I couldn’t find any start-to-finish tutorial that explained all the steps of how to get things working. Hence this post …

In this tutorial, I’m using what is currently the most recent production-ready version of Mongo, 1.4.1. You should be vaguely comfortable with working with the command prompt, editing registry entires with regedit, and starting/stopping services before going any further. You may break your computer, anger your mailman or trigger an IRS audit if you’re not careful. You’ve been warned. Finally … I have no idea if these instructions work on any other version of Windows; I haven’t tried them on anything but Windows 7.

  1. Download and extract the MongoDB archive appropriate for your system. http://www.mongodb.org/display/DOCS/Downloads
  2. Copy the extracted folder to C: and rename it mongo.
  3. Create a directory called ‘data’ inside C:mongo
  4. Click on the Start Menu and enter “cmd” in the search box. Right-click on cmd.exe and select “Run as administrator.” This is VERY important because you won’t be able to register MongoDB as a service if you run cmd.exe with normal privileges.
  5. Type “C:mongobinmongod –install” to register MongoDB as a Windows service. This will probably output what may look like an error message, but don’t worry … as long as you really did run cmd.exe with administrator privileges, everything is fine.
  6. Click on the start menu and enter “regedit” in the search box. Click on regedit.exe, and then browse to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservices. There should be child folder there named MongoDB that has several keys inside it. If not, go back to step 4 and try again.
  7. The ImagePath key should read “c:mongobinmongod –service” right now; change it to  “c:mongobinmongod –service –dbpath c:mongodata”. This will allow MongoDB to find its data files.
  8. Click on the Start Menu and enter “services” in the search box. Click on the “Component Services” option.
  9. In the pane on the far left, double-click on “Services (Local).” Locate MongoDB in the list in the center pane, and double click on it to bring up the properties inspector window.
  10. Make sure “Startup type” is set to automatic. Then click on the “Start” button.
  11. Browse to http://localhost:28017/ to verify that MongoDB is really running.

That’s it!

======== cited text =======/