张三丰92 张三丰92
啊啊啊啊啊啊啊啊啊
关注数: 12 粉丝数: 34 发帖数: 2,188 关注贴吧数: 27
【论道】迄今为止,看到的对老子最有力的攻击 来自于司马迁大爷。 老子曰①:“至治之极②,邻国相望,鸡狗之声相闻,民各甘其食③,美其服④,安其俗,乐其业,至老死不相往来。”必用此为务⑤,挽近世涂民耳目⑥,则几无行矣⑦。 太史公曰:夫神农以前,吾不知已。至若《诗》①、《书》所述虞夏以来②,耳目欲极声色之好③,口欲穷刍豢之味④,身安逸乐,而心夸矜势能之荣使⑤。俗之渐民久矣⑥,虽户说以眇论⑦,终不能化。故善者因之⑧,其次利道之⑨,其次教诲之,其次整齐之⑩,最下者与之争。 老子说:“太平盛世到了极盛时期,虽然邻近的国家互相望得见,鸡鸣狗吠之声互相听得到,而各国人民却都以自家的饮食最甘美,自己的服装最漂亮,习惯于本地的习俗,喜爱自己所事行业,以至于老死也不互相往来。”到了近世,如果还要按这一套去办事,那就等于堵塞人民的耳目,几乎是无法行得通。 太史公说:神农氏以前的情况,我不了解。至于像《》、《书》所述虞舜、夏朝以来的情况则是人们耳目总要听到最好听,看到最好看的,口胃总想尝遍各种肉类的美味,身体安于舒适快乐的环境,心中又夸耀有权势、有才干的光荣。统治者让这种风气浸染百姓,已经很久了,即使用老子的这些妙论挨门逐户地去劝说开导,终不能感化谁。所以,最好的办法是听其自然,其次是随势引导,其次是加以教诲,再次是制定规章制度加以约束,最坏的做法是与民争利。
能讨论一下bumptop的插件开发吗? 1.1 Widget mini How-To for Bumptop Let's actually look at this one for a min. Here is the general outline for How to do widgets in Bumptop. First we will have to create a "Widgets" directory in : C:\Users\Your Name\AppData\Roaming\Bump Technologies, Inc\BumpTop I have all Vista and Win 7 machines and this is where I find it. It might be different for XP. Been too long, Can't remember... Anyway. Here in the "Widgets" directory you will create your widget's directory.(Try explaining that one to an idiot :) ). We will give an example of "Clock.widget" The widget's directory name must end with ".widget" or Bumptop will not recognize it as a widget. Now in the "Clock.Widget" directory, you will need to have three things. 1) a "widget.json" file that will contain the data for bumptop to piect together as a widget. This will look like this: { // Widget header block "header" : { "version" : "0.1", "name" : "Clock 1", "author" : "Indakind Designs, Inc.", "description" : "Gives Bumptop a clock", "url" : "http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwidgets.indakind.com%2F&urlrefer=1a0d3df31cb4a810fab1bfc16d512dcf", // NOTE: This represents the schema from which this widget file will be validated // against. This allows BumpTop to add and modify default widget changes as // time progresses, and allows theme developers to ensure that their widgets // work on the latest compatible versions of BumpTop. Do not change this // value, unless your widget conforms to the specified in the value. // Please see the widget docs for more information. "schema" : "widget/0.1" }, "widget" : { "relativeWorkingDirectory" : "data/", // application to load on startup, and has the same lifetime as the BumpTop process itself "startupApplication" : { "path" : "Clock.exe", "args" : "" }, "icons" : [ { "relativeWorkingDirectory" : "data/", "filename" : "clock.png", "label" : "Clock", "launchApplication" : { "path" : "Clock.exe", "args" : "-edit" } } ] } } and this brings us to our second point. 2) you will need a working directory within "Clock.widget" to contain any and all icons/pictures you want to show on the desktop. For a clock we will only have one picture that is updated every min. So we have the "relativeWorkingDirectory" assigned as "data/" : C:\Users\Your Name\AppData\Roaming\Bump Technologies, Inc\BumpTop\Widgets\Clock.widget\data Which brings us to our third point. The picture. 3) The way Bumptop uses images to make 3D icons is different. But if you think about it, it is good and we can use that. We Have a choice of different filetypes to choose from in Bumptop: jpg, bmp, gif, animated .gif (Still Buggy), and my personal favorite, .png. I ALWAYS use .png for the Alpha Transparency factor. I recomend that you use it as well. Anyway. this image that goes in the "Data" folder will be the only icon in this widget. When you are making widgets for Bumptop, I tend to make the shortcut load up a dialog from my .exe in order to edit the settings. ergo the lines: "launchApplication" : { "path" : "Clock.exe", "args" : "-edit" } You must also include the lines to start up the application: "startupApplication" : { "path" : "Clock.exe", "args" : "" } Well, That should about cover it. Yes it would be nice to have an actual API to work from. But HEY, They are doing us all a favor by doing this much. We should say Thank You. Thank You Bumptop :)
1 下一页