Posted by bianbian on 2010-08-29 12:07
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: combotree, easyui, post
最近使用jquery-easyui,遇到一个问题。
一搜索,发现好多人在问:
问题见:http://jquery-easyui.wikidot.com/forum/t-248817/combotree-net
“combotree在.net开发中,一直不显示数据。
单独html页面就可以显示出来。同一数据文件,json格式绝对正确。”
解决问题首先要发现原因,用firebug试了一下,发现是combotree读取json的时候是用POST方法。
而.net环境不支持静态文件用POST方法获取内容。错误如下:
POST app_user.js
http://localhost:9655/js/app_user.js
405 Method Not Allowed
发现原因后,解决问题就简单很多。
找到easyui的js代码:
_41.addClass(”tree-loading”);
$.ajax({type:”post”,url:_3e.url,data:_3c,dataType:”json”,success:function(_42){
_41.removeClass(”tree-loading”);
在我的应用中,因为不需要POST方式获取json,就把type:”post”改为type:”get”即可。
已在easyui的官方论坛中说明这个问题,希望以后能多个method的设置选项。
标签:
combotree,
easyui,
post遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in JavaScript, Technology | No Comments »
Posted by bianbian on 2010-05-11 18:52
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: 木马
晕,话说我这个只上少数几个网站的人也会中木马。。。。
这个wmdrtc32.dll可不是一般的木马,具有注入、驱动等多种手段
而且更狠的是,无法安全模式启动,一进安全模式就蓝屏。。。
这次中招的居然是从sourceforge.net下的一个项目的执行文件,在这里曝光一下:
http://sourceforge.net/projects/flvconverternet/
360能检测到威胁,但是没办法彻底杀干净。。。
郁闷,还没找到解决办法。。。有谁知道怎么清除告诉我一声,谢了。
我的机器不可能重装,里面eclipse有5个(java、aptana、IDL、Flex、php),visual studio有3个(vc6、2005、2008),Delphi有2个,还有python、ArcGis、oracle、ENVI、。。。
要重装直接杀了我吧。。。
这个网页对这个病毒进行了详细的分析:
http://www.threatexpert.com/report.aspx?md5=8f0020f81ab2be1e9136ce831fbc525f
最后补充:无奈下装了360杀毒软件。。。
这个无良的Sality,居然把硬盘的exe全感染了。。。一点毒品都没有!!!
标签:
木马遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Technology | 1 Comment »
Posted by bianbian on 2010-05-08 17:09
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: allowfullscreen, flex, 全屏
除了这篇文章里提到的需要传入参数 allowFullScreen=true 以外:
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
经我的血泪测试(啊啊啊,我的时光啊),以下这条语句似乎必须点击操作触发才有效:
stage.displayState = StageDisplayState.FULL_SCREEN;
也就是说,用Timer之类调用这条语句都无法全屏,错误号是#2152 Full screen mode is not allowed.
应该是flash故意禁止这么做,不然一载入就全屏算是个安全问题。
郁闷的是,我准备做的这个东西就是要一载入就全屏。。。。
啊啊啊啊,怎么办?弄个巨大的按钮?点击以后全屏、隐藏按钮?
太邪恶了。。。。啊啊啊啊。。。。
标签:
allowfullscreen,
flex,
全屏遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Other, Technology | No Comments »
Posted by bianbian on 2010-04-22 19:00
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: SCI, 执照
今天真是好日子。。。。。。。
一喜呢
便便嘘嘘经过超十年甜蜜长跑
转战长三角、珠三角四个城市
今天终于执证上岗
虽然喜糖早早就发过啦
不过这里没有鼓楼大妈的拍照环境
只好帖个执照合影了

二喜呢
SCI终于accept啦
看看过程,真是好不容易呢
眼泪哗哗地
Manuscript ID:AAS20090056
Submitting Date:2009-3-8
Conclusion,Date of return for revision,Date of revision:
major revision required before peer review,2009-6-29,2009-9-9
returned for revision upon submission,2009-9-10,2009-9-21
major revision,2009-11-3,2010-3-18
manuscript accepted for publication,2010-4-22
感谢所有朋友一直以来对我们的祝福和帮助~
标签:
SCI,
执照遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in bianbian & xuxu | 3 Comments »
Posted by bianbian on 2010-04-16 00:42
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: C#, COM, CreateObject, PowerPoint, 进程
前阵子一直纳闷一件事,不是写了个早上10点自动生成天气会商ppt的程序嘛,不过时好时坏。具体的说:我去维护了一下后第二天是正常的,但是第三天就又不行了。看cron的日志(顺便推荐一下nnCron Lite),程序都正常启动了,但是ppt就是没有正常生成。
像我现在写的代码一般都不会有问题了,很少需要debug;看了几遍也没问题,所以很纳闷呀很纳闷。
后来没办法,开始在程序里输出log,才发现cron运行的时候(用户是SYSTEM),第二次运行:
using PPT = Microsoft.Office.Interop.PowerPoint;
_App = new PPT.Application();
这里会报COMException,真是奇怪了。
而调试的时候又是一切正常(用户是Administrator)。
最后总算捕捉到问题出现的情形:
cron运行,第一次正常产生ppt后,进程里仍驻留了PowerPNT.exe这个程序。
尽管程序是写了:
_App.Quit();
_App = null;
但是进程不会退出。不退出就算了,关键在SYSTEM用户下,第二次再跑程序的时候就会报前面提到的COMException,似乎一Quit(),这个PowerPNT.exe就挂在那里了。而在有用户界面的Administrator用户下,即使上一次进程没退出,也是可以正常工作的。
试了两种办法,可以使功能正常:
1)暴力一点,用完直接把进程kill掉:
Process ps = Process.GetProcessesByName(”POWERPNT.EXE”)[0];
ps.Kill();
2)最后不写 _App.Quit() ,让进程在内存里驻留。
最后还是选了2),毕竟服务器内存有10G,一个PPT进程也就20多M,而且PPT进程一个用户只有一个,相当于preload了,呵呵。。。
回家后找了一下文章,这个确实是Microsoft的问题。希望这篇文章对遇到这个问题的朋友有用。
如下是相关地址:
PPT2000: PowerPoint 2000 Remains in Memory After Getting a Presentation and Being Closed
powerpnt.exe remains running after OLE Quit()
GetObject and CreateObject behavior of Office automation servers
标签:
C#,
COM,
CreateObject,
PowerPoint,
进程遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in C#, Meteorology | No Comments »
Posted by bianbian on 2010-03-18 00:45
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: 气象, 珠海
珠三角航空气象工作小组第二次会议在珠海召开,期待未来珠三角更多的合作。
PS. 珠海真是适合生活的好地方。
标签:
气象,
珠海遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Meteorology | No Comments »
Posted by bianbian on 2010-02-21 17:03
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: PPT, 天气会商
每天的例行天气会商PPT,现在由程序自动采集数据、图片,通过PowerPoint的COM功能,来自动化生成了。
标签:
PPT,
天气会商遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Meteorology | No Comments »
Posted by bianbian on 2010-02-08 22:21
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: HKO, 香港天文台
好久没有写blog,快过年了记个小结,2009这一年最大感受是向香港天文台好好学习。
http://www.hko.gov.hk/hkonews/A2/news-CAAC_uc.htm
标签:
HKO,
香港天文台遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Meteorology | 1 Comment »
Posted by bianbian on 2009-09-30 20:36
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: RSL, 格式, 雷达
各种雷达不同的格式害死人啊害死人,这个库就是为统一读取各种格式而生的。
可以在这个基础上方便地加入其它格式的支持,我现在加入了深圳机场ADWR多普勒雷达的格式。
当然,它本身已经自带了很多格式:
HDF 1B-51 and 1C-51、Lassen (Darwin)、WSR-88d (Nexrad)、UF (Universal Format from NCAR)、SIGMET (Version 1)、SIGMET (Version 2)、McGill、TOGA、RAPIC (Berrimah)、RADTEC (SPANDAR)、EDGE …
The best feature of RSL is the ability to ingest many different RADAR data file formats with a single
library call. It can, also, read compressed files — compressed with GZIP or the older COMPRESS.
The routine is called RSL_anyformat_to_radar. You give it a filename and it will return a pointer to
a C structure called Radar. The structure Radar contains all the information found in the input file.
The structure is intended to represent a superset of all RADAR data formats.
RSL
标签:
RSL,
格式,
雷达遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Meteorology, Not IT | No Comments »
Posted by bianbian on 2009-07-24 01:03
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: jQuery, TAB, 选项卡
jQuery挺好用,我就不说啥了。
今天实现了“自动TAB”,下面分享一下。有人会问为啥不用jquery-ui,主要是页面css已经全弄好了,实在不想为ui再写一次;其次是ui毕竟是那么大个家伙,心疼我的性能。
HTML页面非常简单:
- <div class="tabBox">
- <!--选项卡菜单-->
- <ul class="tabMenu">
- <li class="on"><a>选项卡1</a></li>
- <li><a>选项卡2</a></li>
- </ul>
- <!-- 选项卡内容-->
- <div class="hide">
- 选项卡1内容
- </div>
- <div class="hide">
- 选项卡2内容
- </div>
- </div>
之后就是用jQuery自动对这个.tabBox进行处理,加上鼠标点击自动切换的功能(当然可以加上鼠标移过的选项支持,作为示例,我就没写那么完善):
- $(function () {
- //===== TAB自动切换 tabBox =====
- // <div class="tabBox">
- // <ul class="tabMenu"><li class="on"><a>选项卡1</a></li></ul>
- // <div class="hide">内容1</div>
- // </div>
- // (1) li增加"index"记录偏移量(第i项),给a增加click方法
- $('.tabBox .tabMenu li').each(function(i, li) {
- li = $(li);
- li.attr('index', i)
- .children('a').attr('href', 'javascript:;').click(function() {
- //点击项的li的class设为on
- var li_on = $(this).parent(),
- index = li_on.attr('index');
- li_on.parent().children().removeClass('on');
- li_on.addClass('on');
- //显示对应的div内容。注意get(index)返回的是DOM节点,因此需要再$()转为jQuery对象
- $(
- li_on.parent().parent().children('div').addClass('hide').get(index)
- ).removeClass('hide');
- });
- //显示现有的li class=on对应的div内容
- if (li.hasClass('on')) {
- li.children('a').click();
- }
- });
- });
标签:
jQuery,
TAB,
选项卡遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in JavaScript, Technology | No Comments »
Posted by bianbian on 2009-05-02 17:19
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: 订婚
按老家习俗,似乎是要订婚的
可惜我和嘘嘘都不热衷,汗
辛苦小时候就和我最亲的阿姨了,汗
择日子,定佳期
两家长辈嘘来问去,就定到5.10了
当然是按农历4.16定的,不过阳历谐音也是还可以
“我要你”,虽然肉麻,也是蛮符合 订 的意思的嘛
高一走到现在,快十一年了
两个小屁孩要成家了,真是不容易呀
幸好我们两个都不贪心
尽管沿途有好多风景
只紧紧拽着彼此的手心
祝福我们吧
也祝大家幸福开心
标签:
订婚遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Not IT, bianbian & xuxu | 7 Comments »
Posted by bianbian on 2009-05-01 02:50
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: T400, 蓝牙, 驱动
我的驱动都是手装的,只安装了必要的驱动(Think的那一大陀软件只安装了硬盘防震动的),发现XP下无法识别T400的蓝牙设备。
症状:Fn+F5没反应,bluetooth的指示灯不亮(机器左下角的硬件已经拨到启动无线、主板BIOS也已经Enable蓝牙)。
安装了蓝牙软件后一直提示“未找到buletooth设备”。
后来经过不断尝试,写出解决办法:
安装HOTKEY(鄙视Thinkpad啊。。。。非要多装个垃圾。。。。)。
找到HOTKEY的安装目录,手动运行TpFnF5.exe(其实就是按Fn+F5组合键后启动的程序,不知道为什么我全手动
装的驱动为什么不支持Fn+F5的监听)。
一运行,就提示找到新硬件,然后就可以安装Windows XP的蓝牙补充驱动和软件了,这时就可以看出蓝牙设备原来是个USB。
装完后,不能卸载HOTKEY,否则声音控制的那几个键不能用了,卸载程序太暴力。
只好在注册表里禁止开机运行。
记在这里,搜索过来确实有用的朋友请吱一声。
标签:
T400,
蓝牙,
驱动遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Technology, Windows | 3 Comments »
Posted by bianbian on 2009-04-06 17:31
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: DOS, SATA, 分区
作为DOS下的分区工具,Paragon Partition Manager实在是太牛了!
上次装系统已经感慨过一次了:DOS下能直接对AHCI模式(高级主控接口)下的SATA硬盘进行操作,要知道这个模式Windows XP都没办法!
今天因为想格式化Temp分区(5G,用来放pagefile、asp.net的编译结果等;系统的Temp和IE的Temp我是放在内存盘里的,哇咔咔,内存一定要大),又进了一次这个软件。结果发现,它居然把插在USB上面的512G的移动硬盘也识别出来了。。。
太牛了,微软赶快把它收购吧。。。
标签:
DOS,
SATA,
分区遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in Technology, Windows | 1 Comment »
Posted by bianbian on 2009-03-17 02:48
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: Service, TC, Total Commander
Total Commander Service is a NT service, which supports:
1. Auto-launch TC when starting Windows
2. Hotkey: Win+Q to show/hide TC, or start TC when exit
Please put the TotalCMDService.exe (52K) in TC’s directory, and run to install/uninstall the NT service.
Tips, the best configuration:
Operation:
Check “Allow only 1 copy of Total Commander at a time”
Uncheck “Move icon to system tray when minimized”
Feel free to modify or distribute this code in any medium as long as these following two lines remain unchanged:
Total Commander Service, by bianbian.org@gmail.com
http://bianbian.org/technology/336.html
Download exe:TotalCmdService.zip (22K) , and src:TotalCmdServiceSrc.zip (10K, VC++6.0)
标签:
Service,
TC,
Total Commander遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in C/C++, Technology, Windows | 4 Comments »
Posted by bianbian on 2009-03-16 20:25
if ($bianbianCount++ < 2) { ?>
}?>
本文Tags: TC, Total Commander, 服务
经历多次安装卸载安装卸载,我这次终于静下心来琢磨了一下传说中的Total Commander。
总算有点上手了,确实方便,尤其现在内存大,根本不在乎耗多少资源。哈哈
不过郁闷的是这个玩意定义了那么多快捷键,却不支持呼出自己的快捷键。。。
好吧,我写个了windows NT 服务,来启动Total Commander。。。
同时注册了个全局热键(快捷键):Win+Q 来呼出Total Commander
Win+Q:T400的键盘这两个键,对我的手来说刚好是左手拇指和小指很舒服的位置。如果要改您下源码改吧
在注册表里扫了一遍,居然没有total commander的任何信息,果然绿色。
好吧,我承认,现在由于忙的关系,这个服务只做了个框。。。。过几天发布。。。。
补充:
好吧,发布了,嘿嘿:[原] Total Commander Service to show/hide TC by hotkey/boss key/shortcut key
1. 是系统服务(意味着没登录就启动TC了)
2. Win+Q隐藏或者呼出TC
下载到TC的目录里运行,安装/反安装(第一次运行安装,第二次卸载,。。。)。
由于是系统服务(默认用户是LocalSystem),如果直接启动TC也将以LocalSystem的身份运行,会带来很多问题(比如输入法就启动不了了)。
因此程序调用API(LogonUser)先进行了模拟登录,所以安装的时候需要输入用户密码。
Download exe:TotalCmdService.zip (22K) , and src:TotalCmdServiceSrc.zip (10K, VC++6.0)
标签:
TC,
Total Commander,
服务遵守创作共用协议,转载请链接形式注明来自
http://bianbian.org 做人要厚道
相关日志
Posted in C/C++, Technology, Windows | 11 Comments »