科学网

 找回密码
  注册
科学网 标签 windows 相关日志

tag 标签: windows

相关日志

windows下编译bernese5.2
jiangzhenwei 2013-9-14 17:33
1 次阅读|0 个评论
关闭WINDOWS的 watch dog 功能(cuda可以在windows不限时运行)
dubo 2013-9-5 14:36
关闭WINDOWS的 watch dog 功能(cuda可以在windows不限时运行) 方法: 打开注册列表,添加如下变量(变量类型为DWORDS): HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicDrivers\ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicDrivers\Timeout C) 图形说明 : a) 打开注册列表 b) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicDrivers\ c) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicDrivers\Timeout 没有的话新建该项 d) 重启计算机
个人分类: windows|7527 次阅读|0 个评论
[转载]win7怎么取消共享
dubo 2013-9-5 14:26
前段时间,共享了个文件夹。然后过来人一段时间,我把该文件夹所在的盘符换了。 结果在网上邻居里面一直还有这个文件夹共享,还打不开,而且也不能直接删掉。 删去的方法如下: 在“计算机”上点击右键,选择管理,在弹出的计算机管理中选择共享文件夹,在右边的窗格中是你的所有的共享项目,在不想共享的项目上点击右键,选择“停止共享”
个人分类: windows|4245 次阅读|0 个评论
PHP获取Windows当前下载速度
outcrop 2013-8-28 15:21
找了一圈,没找到合适的PHP获取Windows网速的好办法;只好用一个比较愚蠢的办法来实现:利用netstat命令来获取系统网卡接收字节的差异来获取网速。 代码: function getspeed(){ exec(netstat -e, $result); $tmpstr=explode( ,$result ); //print_r($tmpstr); $startbytes=trim($tmpstr ); sleep(1); exec(netstat -e, $result1); $tmpstr=explode( ,$result1 ); $stopbytes=trim($tmpstr ); $speed=$stopbytes-$startbytes; return $speed; } 很原始的方法,感觉网速基本准确。需要注意的是获取的是bytes网速,不是常说的bits。 \\(test\\) ============================= 关于博主 ============================= 博主的主要兴趣是:知识管理;相关兴趣有:语义网、机电及DIY、哲学与心理、信息安全、科幻等。 我的常用博客在科学网 (访问可点链接,下同); 新浪微博是@outcrop ,欢迎互粉;建了一个超级QQ群:17662971,希望能闲聊无白丁,欢迎加入;自己打理着一个 机电工程师 小网站,欢迎来玩。最近在科学网关注“ 科学网大学 ”,欢迎加入 科学网大学群组 讨论、尝试。
个人分类: 计算机应用技术|4564 次阅读|1 个评论
[转载]LargeText File Viewer 5.2- for Windows User
aaa0 2013-8-20 23:25
LargeText File Viewer 5.2- for Windows User LargeText File Viewer 5.2 - Features Features | Screenshots | Download Have you ever felt frustrated when you just want to look at the content of a large text file but it takes forever for Notepad or Word to open it? This program was designed for viewing large (1GB) text files. It uses little memory and is able to open a gigabyte file instantly. Background file indexing makes browsing even faster. It opens files that are currently being written by other programs, and automatically checks and reads the files if new contents have been appended. It supports view split. The user may split the view either horizontally or vertically, and have each side show different portion of the same file. It allows the user to perform high-speed complex text search by means of plain text or regular expression. The regular expression syntax is slightly different from the standard ones. Please click here for details. The regular expressions for finding the following items have been provided as preset for the convenience of the users: quoted string hexadecimal integer floating-point number date of any format time of any format domestic phone number (US Canada) social security number IP address email address http address ftp address For CSV (Comma Separated Value) files, when the user hovers the mouse over any field in the file, a hint automatically appears with the field name.
1553 次阅读|0 个评论
给安卓(Android)手机装上Windows系统
热度 1 outcrop 2013-8-17 09:40
《 给安卓(Android)手机装上Linux系统 》博文中提到Android手机运行Linux的思路,通过chroot实现的linux,性能还是不错的。 要在Android手机上运行Windows,就比较折腾了,需软件模拟X86指令才能运行WindowsXP等系统;还好有Bochs这个模拟器,也有大侠尝试过安装运行,直接给地址: http://bbs.gfan.com/forum.php?mod=viewthreadtid=3565691 没有安装测试,不知道效果如何,先记录分享下。 ============================= 关于博主 ============================= 博主的主要兴趣是:知识管理;相关兴趣有:语义网、机电及DIY、哲学与心理、信息安全、科幻等。 我的常用博客在科学网 (访问可点链接,下同); 新浪微博是@outcrop ,欢迎互粉;建了一个超级QQ群:17662971,希望能闲聊无白丁,欢迎加入;自己打理着一个 机电工程师 小网站,欢迎来玩。最近在科学网关注“ 科学网大学 ”,欢迎加入 科学网大学群组 讨论、尝试。
个人分类: 计算机应用技术|10239 次阅读|4 个评论
录音程序LilySoundRecord.exe v1.0
热度 1 Riemann7 2013-8-5 17:32
首先给出这款软件的下载链接: DEMO_LilySoundRecord.zip 或者 http://vdisk.weibo.com/s/BGYN_7_XZYfQh 一个简单的录音程序,输入用户的语音,可以录制,存放到一个wav文件中,播放。在录音和播放中显示声音的波形。 This is a sound recording program DEMO, LilySoundRecord.exe v1.0. First, given the software download link: http://vdisk.weibo.com/s/BGYN_7_XZYfQh A simple recording program, enter the user's voice can be recorded, stored in a wav file playback. In the recording and playback of sound waveform display.
个人分类: 科研DEMO|4365 次阅读|5 个评论
[转载]Windows SSH Tunnel 使用帮助
plgongcat 2013-7-29 12:27
Windows SSH Tunnel 使用帮助 1、安装所需软件 先下载 Tunnelier 下载 在Login界面,输入您的SSH账号信息,其中 Host为ssh服务器 ,Username为ssh用户名,Initial meth 请选择 password,然后后面会出来输入框,填写你的ssh密码。同时选中 store XXX这一行。保存账号密码.(为防止输入错误,可以直接复制账号密码,注意账号和密码前后都不要有空格),如图 设置默认启动项,在options界面中,去掉右侧选择的两个选框。如图: Services 点击左下角login登录,如图: 如果弹出如下窗口,选择Accept and Save,如图: 当出现如下信息时表示您的Tunnelier设置成功了,此时不要关闭窗口,而要点击使其最小化: 2、置firefox浏览器 搜索并 安装autoproxy插件 ,安装好后重启一下就会出现一个福. 他有三种状态,点击图标就会变状态,当你不需要代理的时候点击变成灰色就好,需要时点击变成蓝色或者红色 红色为自切换 绿色为全局进行代理 灰色为全局不代理 转载: http://www.ssh110.com/help-windows-tunnelier.html
个人分类: 科研|1 次阅读|0 个评论
什么时候中国的网银也可以支持windows以外的操作系统呢
热度 2 dearyajuan 2013-7-26 00:29
受斯诺登揭黑事件的影响,很多远离Google、远离微软的方法开始流行。我本来就不喜欢电脑上自带的windows8,现在正好可以趁机改成我喜欢的其他操作系统。把操作系统、中文输入法、还有其他软件都装好了,感觉好开心。不过很快就遇到问题了,中国的网银没法用。中国不是微软的发源地,恐怕却是微软最忠诚的支持者吧,很多网站只支持windows和IE浏览器。试图登录国内的某网银,提示需要安装Firefox。为什么必须要用Firefox呢,让装就装吧,按照他们的需要,装了某版本的Firefox,可是还是不能用网银。后来终于明白了,因为我没有用windows。 银行本来应该是安全级别非常非常高的机构,如果中国的银行只用windows和IE,只用美国的硬件、软件和网络,怎么能保证安全呢?国内虽然大部分人还是用windows,可是也有人用mac,也有人用linux,网站应该提供更多的选择给用户,而且这不是多么困难的事情。
3385 次阅读|4 个评论
Windows登录Planetlab的三种方式
ant121 2013-7-14 01:24
第一种Cygwin 第二种Secure Shell Client 第三种PUTTY
4432 次阅读|0 个评论
[转载]Windows下用g++ MATLAB里面用mex
jialinpeng 2013-7-8 15:31
一.手工安装方法 : 来自 http://blog.waterlin.org/articles/windows%E4%B8%8Bmingw%E7%9A%84%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8.html MinGW 提供了一个编写Windows应用程序的完整开源工具包。 1) MinGW的安装 MinGW的安装 ,其实非常简单。 因为手动安装有着更多的灵活性,所以这里重点说一下手动安装的步骤。安装MinGW至少需要四个包: * binutils * gcc-core * mingw-runtime * w32api 把这些包下载下来,放到C:/MinGW目录下(当然,放到哪里都一样),然后在windows的cmd里,用下面的命令解压出来: C:/MinGW gzip -d -c binutils-2.17.50-20060824-1.tar.gz | tar x C:/MinGW gzip -d -c gcc-core-3.4.5-20060117-3.tar.gz | tar x C:/MinGW gzip -d -c mingwrt-3.15.1-mingw32-dev.tar.gz | tar x C:/MinGW gzip -d -c w32api-3.12-mingw32-dev.tar.gz | tar x C:/MinGW set path=C:/MinGW/bin;%path% 其实各个包的目录结构都是一样的,所以,解压后的目录结构仍然为一样的。其它的包也可以采用这样的方法来处理。只是要知道,我们解压是需要把这几个包混合起来,而不要只是习惯性的分别解压到一个文件夹里! 这个时候,最好推荐用命令行的方式来解压,不容易出错;如果系统没有装gzip或是类似的软件,可以用Cygwin来解压。 最后一行命令是添加path到环境变量里,如果你经常使用,需要把这个变量永久的添加到path变量里。 当然,你可以根据你的需要选择更多的包,例如说gcc-g++ for C++、gcc-objc for Objective C、gcc-g77 for Fortran 77、gcc-java for Java或gcc-ada for Ada。如果需要这些包的话,只需要在上面的命令里多解压一个包即可。 2) MinGW的使用 现在我们可以直接在windows cmd里来使用gcc之类的命令来编译程序了。 比如说下面这个C程序: #include stdio.hint main(int argc, char **argv) { printf (“Start to use MinGW”); return (0); } 假如你想从hello.c生成一个在终端模式下的可执行文件hello.exe。只要直接用gcc编译器进行编译就行了: gcc -c hello.c 这个命令把hello.c编译成一个目标文件hello.o,然后用下面的方法生成一个可执行文件hello.exe: gcc -o hello hello.o 事实上,作为一种选择,你可以使用下面的命令把编译和链接放到一步中完成: gcc -o hello hello.c 下面是一个简单的c++程序的代码示例,复制并粘贴到一个叫hello.cpp的文件中试试看: #include iostream int main(int argc, char **argv) { std::cout “Start to use MinGW to compile C++” std::endl; return (0); } 对于c++程序来说,可以使用g++来编译和链接: g++ -c hello.cpp g++ -o hello hello.o 对于gcc、g++及其他编译器的使用,可以查询各自的手册以获得更多的帮助。 二.配置在matlab下调用gcc编译器 这个也是好不容易查到,非常好用,引自: http://hi.baidu.com/kaien_space/blog/item/8f1bec2dfef3523d359bf742.html 软件下载地址: https://sourceforge.net/projects/gnumex 软件安装和使用说明: http://gnumex.sourceforge.net/ 软件功能: 在MATLAB上调用MinGW或Cygwin编译C和Fortran的mex代码。 这就意味着,我们可以在MATLAB上编译Linux的C程序代码和调用Linux的库编译出MATLAB能用的Mex程序。What a nice tool! 安装步骤: 1. Sourceforge上下载软件,目前最新版2.01。解压缩到任意一个固定的目录。如C:/MATLAB/gnumex 2. 运行MATLAB, 把上面的目录加入到MATLAB的path中。 3. MATLAB上输入命令gnumex运行安装设置。设置很简单,主要是一下几个方面 - MinGW的root目录 (如果使用的是MinGW的gcc,这里必须设置正确) - Cygwin的root目录 (同上,使用时设置,否则留空) - f95 和 gfortran的目录 (有的话就设置,没有的话留空。这个是编译fortran程序选用的编译器) 注意: gfortran是gcc的一个组件,这个一般都有,就在MinGW的root目录/bin下面。最好选上,有备无患。 - linking环境 这里选用mingw或cygwin根据自己的需要设置。注意 -mno-cygwin这一项是指在cygwin中link的时候使用windows的lib. 据说这个Cygwin gcc的option争议很大,功能不健全,在官方的maillist上要求取缔此项功能的言论很多,虽然目前仍然在更新和支持中。所以,建议还是使用MinGW比较好。 - 语言方便,选用自己需要的C/C++或fortran语言。 - Generate 里选择 mex dll. 这个一般是默认的。 当然mex也可以编译成 exe文件。根据需要选择。建议使用mex dll。这个可以再matlab上像一般函数一样直接调用程序,很方便。 关于最后的两个路径,建议默认。最后一个mexopts.bat的路径是MATLAB默认的mex程序设置路径,我们覆盖这个文件将使我们的设置成为mex的默认设置。这样就可以直接调用mex编译,如 mex 你的命令 而不用加参。加参使用的方法如: mex -f 你的mex设置文件.bat 你的命令 如果你不想改变默认的mex设置,也可以把这个文件保存在其他方便的位置。需要的时候使用 -f 参数调用。 设置完成后,按make option file确认即可。 提示: 1- 如果想重新设置MATLAB的mex. 可以使用mex -setup 设置。这是matlab的默认命令和gnumex无关。 2- 如果要查看当前mex的设置情况,可以使用mex -v 来查看。 3- 你可以在gnumex的File菜单下,选择save config保存当前的设置界面信息到 gnumexcfg.mat中。下次修改的时候可以使用菜单上的Load config调用。 测试运行: 先检查一下mex的设置是否生效 mex -v 我们看到 MATLAB = D:/MATLAB~1 - COMPILER = gcc - Compiler flags: COMPFLAGS = -c -DMATLAB_MEX_FILE OPTIMFLAGS = -O3 DEBUGFLAGS = -g 看到上面的gcc了吗,这说明我们的设置已经生效了,现在mex用的是gcc为编译器。 做个c程序的例子 复制MATLAB根目录下 extern/examples/mex/yprime.c 文件到自己的测试目录下。例如gnumex的examples目录下。 输入命令 mex yprime.c 就完成了编译工作,生成 yprime.mexw32 文件。 我们可以在MATLAB上调用这个程序运行看看。 yprime(1,1:4) ans = 2.0000 8.9685 4.0000 -1.0947 提醒: MATLAB对命令的优先级是,当前目录下的程序最优先。 使用技巧: 1. 如果你使用的是cygwin, 注意一定要把cygwin里的cygwin1.dll文件(在root的bin里面) 加入到windows的path里(而不是matlab的path里)。因为cygwin的程序需要调用这个动态链接库才能使用。这也是cygwin的不方便之处,而且会影响程序的运行速度。最重要的是,目前该软件对cygwin的版本支持很老(只支持cygwin的gcc 3.2),现在的4.x都不支持。所以建议使用MinGW吧。那个没版本限制,我已经成功的和最新的gcc4.4.1兼容了。 2. 如果测试程序删不掉,如yprime.mexw32文件无法删除,说明matlab运行了这个程序而没有卸载。我们在MATLAB上输入clear yprime。然后就可以正常删除了。 3. gcc有很多的options,和注意事项。如果大家想更好学习gcc。建议参考官方的文档 http://gcc.gnu.org/onlinedocs/ ,也可以找一份中文的参考文档慢慢研究。 gnumex的gcc使用的默认的options是 -O3 -mcpu=pentium -malign-double -fno-exceptions 需要什么option, 大家可以手动修改mexopts.bat文件。(高级用户使用,不熟悉gcc的人慎用) 4. 调用LAPACK/BLAS的方法。建议直接调用MATLAB里提供的lib静态库。位置在extern/lib/win32/microsoft/ 分别是 libmwlapack.lib 和 libmwblas.lib. 使用的时候可以直接输入全地址调用,也可以用 -lmwlapack -lmwblas 作为MATLAB的option使用(放在最后)。 如果想用自己优化过的lapack和blas库,使用的时候可以直接输入全地址。也可以把他们改名,前面加lib,然后 复制到上面提到的位置下,通过-l调用。例如: 你有optlapack.lib文件,改名为liboptlapack.lib 放到extern/lib/win32/microsoft/ 下。然后mex命令中使用的时候加入 -loptlapack 就可以了。 5. 如果你要link一个fortran的obj(o)或lib(a)文件到一个c程序中,那么请注意在编译fortran的时候使用-fno-underscoring。 6. 通过autotool使用makefile调用MATLAB编译mex文件的方法和工具可以参考 http://gnumex.sourceforge.net/autotools/ 。这是一个非常有用的话题,等于把Windows的MATLAB移植到MinGW下使用。可以通过Makefile大批量编译文件。值得关注和研究。 三.最后,另外的windows使用g++的方法 http://www.claremontmckenna.edu/math/ALee/g++/g++.html Installing c++/g++ on Windows
3652 次阅读|0 个评论
Windows下Mysql的Master-Slave Replication主从复制配置
热度 1 outcrop 2013-7-6 12:30
最近做mysql的主从服务器(master-slave)复制,折腾了半天才搞定,记录一下完整的过程;就用局域网数据替代我的操作,比如:slaveip为从服务器ip,192.168.2.3;masterip为主服务器ip,192.168.2.2。 1、设置主服务器 a) my.cnf或my.ini的 添加 log-bin=mysql-bin server-id =1 #主服务器ID,从服务器不能相同 binlog-do-db=dbname#计划备份的数据库,不设置的话备份binlog-ignore-db以外所有数据库,包括创建数据库 binlog-ignore-db=mysql,test,information_schema b) 添加复制用户repluser,密码passwd,授权该用户可复制权限 mysql GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'repluser'@'slaveip' IDENTIFIED BY 'passwd'; mysqlFLUSH PRIVILEGES; 其中,slaveip为从服务器ip,比如192.168.2.3 2、设置从服务器 my.cnf或my.ini的 段添加 server-id = 2 master-host = slaveip master-user = repluser master-password = passwd master-port = 3306 log-bin=mysql-bin master-connect-retry=60 replicate-do-db=dname log-slave-updates read-only=1#可设定只读 3、主服务器锁表 mysql FLUSH TABLES WITH READ LOCK; 注意,锁定后数据库只读,因此最好在数据库非访问期间做此操作 4、主服务器导出数据库 mysqldump -uroot -ppasswd dbnamedbname.sql 5、从服务器导入数据 mysql -uroot -ppasswd dbname dbname.sql 6、查看并记录主服务器状态 mysql show master status; 记下File和Position,后面用到,比如: File: mysql-bin.000003 ,Position: 15386161 ; 7、从服务器设置复制点 mysql stop slave; 代入前面(第5步)的file和position mysql change master to master_host='masterip', master_user='repluser', master_password='passwd', master_log_file='mysql-bin.000003', master_log_pos=15386161; mysql start slave; 其中,masterip为主服务器ip,比如192.168.2.2 8、检查slave状态 mysql show slave status\G; Slave_IO_Running和Slave_SQL_Running均为Yes说明配置成功。 9、恢复主服务器锁表 mysql unlock tables; 10、测试复制同步情况 互为主从的操作也类似;参加: http://hxl2009.blog.51cto.com/779549/354492 ============================= 关于博主 ============================= 博主的主要兴趣是:知识管理;相关兴趣有:语义网、机电及DIY、哲学与心理、信息安全、科幻等。 我的常用博客在科学网 (访问可点链接,下同); 新浪微博是@outcrop ,欢迎互粉;建了一个超级QQ群:17662971,希望能闲聊无白丁,欢迎加入;自己打理着一个 机电工程师 小网站,欢迎来玩。最近在科学网关注“ 科学网大学 ”,欢迎加入 科学网大学群组 讨论、尝试。
个人分类: 计算机应用技术|11144 次阅读|2 个评论
[转载]Windows 7运行命令大全
hdu016 2013-6-8 08:40
1、cleanmgr:打开磁盘清理工具    2、compmgmt.msc:计算机管理    3、conf:启动系统配置实用程序    4、charmap:启动字符映射表    5、calc:启动计算器    6、chkdsk.exe:Chkdsk磁盘检查    7、cmd.exe:CMD命令提示符    8、certmgr.msc:证书管理实用程序    9、Clipbrd:剪贴板查看器    10、dvdplay:DVD播放器    11、diskmgmt.msc:磁盘管理实用程序    12、dfrg.msc:磁盘碎片整理程序    13、devmgmt.msc:设备管理器    14、dxdiag:检查DirectX信息    15、dcomcnfg:打开系统组件服务    16、explorer:打开资源管理器    17、eventvwr:事件查看器    18、eudcedit:造字程序    19、fsmgmt.msc:共享文件夹管理器    20、gpedit.msc:组策略    21、iexpress:工具,系统自带    22、logoff:注销命令    23、lusrmgr.msc:本机用户和组    24、MdSched:来启动Windows内存诊断程序    25、mstsc:远程桌面连接    26、Msconfig.exe:系统配置实用程序    27、mplayer2:简易widnowsmediaplayer    28、mspaint:画图板    29、magnify:放大镜实用程序    30、mmc:打开控制台    31、mobsync:同步命令    32、notepad:打开记事本    33、nslookup:网络管理的工具向导    34、narrator:屏幕“讲述人”    35、netstat:an(TC)命令检查接口    36、OptionalFeatures:打开“打开或关闭Windows功能”对话框    37、osk:打开屏幕键盘    38、perfmon.msc:计算机性能监测程序    39、regedt32:注册表编辑器    40、rsop.msc:组策略结果集    41、regedit.exe:注册表    42、services.msc:本地服务设置    43、sysedit:系统配置编辑器    44、sigverif:文件签名验证程序    45、shrpubw:创建共享文件夹 其他(可能有重复) gpedit.msc-----组策略   sndrec32-------录音机   Nslookup-------IP地址侦测器   explorer-------打开资源管理器   logoff---------注销命令   tsshutdn-------60秒倒计时关机命令   lusrmgr.msc----本机用户和组   services.msc---本地服务设置   oobe/msoobe /a----检查XP是否激活   notepad--------打开记事本   cleanmgr-------垃圾整理   net start messenger----开始信使服务   compmgmt.msc---计算机管理   net stop messenger-----停止信使服务   conf-----------启动 netmeeting   dvdplay--------DVD播放器   charmap--------启动字符映射表   diskmgmt.msc---磁盘管理实用程序   calc-----------启动计算器   dfrg.msc-------磁盘碎片整理程序   chkdsk.exe-----Chkdsk磁盘检查   devmgmt.msc--- 设备管理器   regsvr32 /u *.dll----停止dll文件运行   drwtsn32------ 系统医生   rononce -p ----15秒关机   dxdiag---------检查DirectX信息   regedt32-------注册表编辑器   Msconfig.exe---系统配置实用程序   rsop.msc-------组策略结果集   mem.exe--------显示内存使用情况   regedit.exe----注册表   winchat--------XP自带局域网聊天   progman--------程序管理器   winmsd---------系统信息   perfmon.msc----计算机性能监测程序   winver---------检查Windows版本   sfc /scannow-----扫描错误并复原   taskmgr-----任务管理器(2000/xp/2003)
个人分类: 计算机知识|3296 次阅读|0 个评论
[转载]WEKA如何下载安装并调试(Windows+NetBeans版)
aaa0 2013-5-28 05:17
1. 下载安装JDK环境 JDK的最新版是6.0了,在这个页面可以找到它的下载 http://java.sun.com/javase/downloads/index.jsp 点击JDK 6之后的Download按钮,转到下载页面。选择Accepct,过一会儿页面会刷新。 我们需要的是这个 Windows Offline Installation, Multi-language jdk-6-windows-i586.exe 53.16 MB ,点击它下载。也可以右键点击它上面的链接,在Flashget等工具中下载。 安装它和一般软件没什么区别。不过中间会中断一下提示你安装JRE,一并装上。 安装的默认位置,JDK是C:\Program Files\Java\jdk1.6.0,JRE是C:\Program Files\Java\jre1.6.0。 使用JDK当然还需要它的文档。回到刚才的页面,点击Java SE 6 Documentation之后的Download按钮,进入下载页面。同样Accept,页面刷新后下载 Java(TM) SE Development Kit Documentation 6 jdk-6-doc.zip 52.36 MB 这个文件下好后可以放在JDK的安装目录备用。【m:好像这个Documentation没什么用。。。】 当然你也可以使用5.0或者1.4.2等版本的JDK。 2. 下载安装WEKA软件 【me:这个是关键】 前面安装JDK时会提示安装一个JRE,因此我们只需要安装不带JRE的WEKA即可。下载地址在 http://www.cs.waikato.ac.nz/ml/weka/index_downloading.html 找到Developer version - Windows的 Click here to download a self-extracting executable without the Java VM (weka-3-5-4.exe; 14,521,861 bytes) 点那个here进入下载页面。注意这一步打开的还是一个网页文件,不要直接放进下载软件中下载。打开该网页后过一段时间才会有一个下载exe文件的提示弹出来,让你下载。 如果想和Data Mining: Practical Machine Learning Tools and Techniques (Second Edition)一书的WEKA保持一致,则找到Book version - Windows的 【m:这本书不错】 Click here to download a self-extracting executable without the Java VM (weka-3-4-9.exe; 10,327,113 bytes) 进行下载。 如果上述网页打不开,直接点击这两个的链接试试看: 3.5.4版 3.4.9版 安装它和一般软件没有什么区别。装好后从开始菜单里点击运行,应该能顺利打开WEKA。注意3.5.4版本的界面和以前版本的界面是不一样的。 3. 下载安装开发环境 这里我们用NetBeans作为Java的开发环境。当然你也可以选择Eclipse甚至JCreator。如果你发现你的机器跑NetBeans时慢到不可忍受,可以尝试换用JCreator,它是用C++写的,非常快,不过不能迁移到linux等平台。 最新的NetBeans 5.5在 http://www.netbeans.info/downloads/index.php 下载,这里你还可以选择一个你喜欢的语言版本。下面假设我们安装的是中文版。 运行下载得到的netbeans-5_5-windows.exe文件进行安装,其中有一步是选择JDK。如果你没有装过其它的JDK,则只有刚才安装的JDK 6.0 可供选择。 装好后打开NetBeans,选择“工具”菜单 - “Java平台管理器”,缺省的Java平台应该是JDK 1.6。点击“Javadoc”选项卡,“添加ZIP/文件夹”,找到刚才下载的jdk-6-doc.zip添加进去。 可以在在工具栏中点右键,“定制……”,把“编译文件”和“运行文件”两个按钮添加到工具栏。 4.测试开发环境 为了测试开发环境,我们把WEKA重新编译一次。 在某处新建一个WEKA-Rebuild目录,在它下面建一个目录叫src。在WEKA的安装目录中找到weka-src.jar,用winrar之类的解压缩软件打开,并把其中的目录weka解压缩到刚才建立的src目录下。【m:这步是个细心活,weka这个目录是在weka-src\src\main\java中,即你解压weka-src.jar到weka-src文件夹,依次到里面找src-main-java,才发现weka。。】 现在的目录结构应该是 WEKA-Rebuild - src - weka - associations, attributeSelection, ... 打开NetBeans,“文件”菜单 - “新建项目” - 选择“常规”中的“基于现有源代码的Java项目” - “下一步”。“项目文件夹”选择WEKA-Rebuild目录,“项目名称”写weka-rebuild,“下一步”。在“源包文件夹”那里“添加文件夹”,找到src目录“打开”,“完成”。 现在NetBeans左上方项目那一栏应该有粗体的“weka-rebuild”,这就是我们要编译的weka项目。右键点它,“生成项目”。下方会出现很多警告,不用管,不出意外的话最后会提示你生成项目成功。仍然右键点击“weka- rebuild”,“运行项目”。会弹出一个对话框让你设置主类。WEKA 3.5.4的主类可设置成weka.gui.Main,之前版本的只能设置成weka.gui.GUIChooser。选中合适的主类后“确定”,不一会儿WEKA的界面就会出现在你面前,和开始菜单里运行的WEKA效果一样。 我们来给WEKA做一点点小小的修改。点击左上方“项目”里的“源包”,找到“weka.gui”,点左边的小加号打开它,找到“Main.java”,双击打开这个文件。在左中部“导航”的“成员试图”里找到函数main(String[] args),双击它跳到这个函数的位置。注释掉这个函数的第一行 LookAndFeel.setLookAndFeel(); 。按一下“F9”编译这个文件(或者点击工具栏相应按钮),然后按一下“Shift+F6”运行这个文件。看看是不是有了些变化?现在的界面是Java Swing的风格。【m:本段对源代码的修改针对于3.5.4版本, 对于之前的版本没有Main.java文件,取而代之的是GUIChooser.java。我试了下,结果如图 上图是LookAndFeel.setLookAndFeel(); 的作用,下图是注释掉LookAndFeel.setLookAndFeel(); 后的结果。不用计较于这一段,关键是要从其中得到启发:我们自己完全可以正确修改WEKA代码,完成自己的任务】
4704 次阅读|0 个评论
[转载]How to Disable and Turn Off UAC in Windows 7
chnfirst 2013-5-16 15:19
http://www.mydigitallife.info/how-to-disable-and-turn-off-uac-in-windows-7/ How to Disable and Turn Off UAC in Windows 7 The user interface of User Account Control (UAC) settings in Windows 7 has changed to reflect the move to make UAC less annoying, more user control and more user friendlier approach. In Windows 7, the UAC has a slider bar which allows users to configure and select which level of notification (and hence protection against unauthorized and malicious access) they want. With the fine-tuning of UAC, the wording ‘disable’ or ‘turn off’ is no longer available. So how can you disable UAC? Or at least, how can you turn off the notification prompt or pop-up so that they appear less regularly? In fact, the steps to disable UAC is Windows 7 is similar to steps to disable UAC in Windows Vista , only with slight user interface change, and there is plenty of methods to turn off UAC too. Method 1: Disable or Turn Off UAC (User Account Control) in Control Panel To user Control Panel to disable UAC in Windows 7, there are several methods to access the User Account Control settings page: Go to Start Menu - Control Panel - User Accounts and Family Safety - User Account. Go to Start Menu - Control Panel - System and Security - Action Center. Click or right click on Flag icon in notification area (system tray), and then Open Action Center. Type “MsConfig” in Start Search to start System Configuration, then go to Tools tab, select Change UAC Settings, then click on Launch button. Click on User Account Control settings link. Slide the slider bar to the lowest value (towards Never Notify), with description showing Never notify me. Click OK to make the change effective. Restart the computer to turn off User Access Control. Method 2: Disable UAC with Registry Editor (RegEdit) Run Registry Editor (RegEdit). Navigate to the following registry key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System Locate the following REG_DWORD value: EnableLUA Set the value of EnableLUA to 0. Optional step to suppress UAC consent prompt dialog, locate the following REG_DWORD value: ConsentPromptBehaviorAdmin Set the value of ConsentPromptBehaviorAdmin to 0 (optional). Exit from Registry Editor and restart the computer to turn off UAC. Method 3: Turn Off UAC Using Group Policy For Windows 7 Ultimate, Business or Enterprise edition which has Local Group Policy, or computer joined to domain and has Active Directory-based GPO, the group policy can be used to disable UAC for local computer or many computer across large networks at once. Enter GPedit.msc in Start Search to run Local Group Policy editor. (Or gpmc.msc to run Group Policy Management Console for AD-based domain GPO editor). Navigate to the following tree branch: Computer Configuration - Windows Settings - Security Settings - Local Policies - Security Options In GPMC, browse to the required GPO which is linked to the domain or OU where the policy wants to apply. Locate the following policy in the right pane: User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode Set its value to Elevate without prompt. Locate the following policy in the right pane: User Account Control: Detect application installations and prompt for elevation Set its value to Disabled. Locate the following policy in the right pane: User Account Control: Run all administrators in Admin Approval Mode Set its value to Disabled. Locate the following policy in the right pane: User Account Control: Only elevate UIAccess applications that are installed in secure locations Set its value to Disabled. Restart the computer when done. Method 4: Using Command Prompt to Disable User Account Control The command line option can also be used in batch script command file, i.e. .bat and .cmd files, providing greater convenient to advanced technical user. In actual, the commands,, which are also used to disable or enable UAC in Vista , are just doing the same thing as directly modifying the registry. Open an elevated command prompt as administrator. To disable the UAC, run the following commands: %windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f and optionally, the following comand to suppress all elevation consent request and notification: %windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f Tip: To re-enable UAC, the command is: %windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f and to turn on prompt for consent UI: %windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 2 /f Disable UAC may cause gadget not working in Windows 7. User who facing the issue can use another workaround to suppress User Account Control .
个人分类: 电脑、办公|1 次阅读|0 个评论
国际空间站用【Linux】取代【Windows】
热度 3 outcrop 2013-5-14 17:00
国际空间站为了使电脑操作系统更稳定和便于维护,逐渐从Windows切换到Linux操作系统。相对Windows,Linux的开放性,使得它可能更稳定,也更方便修补或者改良。 “We migrated key functions from Windows to Linux because we needed an operating system that was stable and reliable – one that would give us in-house control. So if we needed to patch, adjust or adapt, we could, said Keith Chuvala of the United Space Alliance, which runs opsLAN for NASA. Linux is already used to run various systems aboard the ISS, including the world's first 'Robonaut', sent to the Space Station in 2011. 'R2' can be manipulated by astronauts as well as ground controllers and is designed to carry out tasks too dangerous or mundane for astronauts in microgravity, according to the Linux Foundation. 中国的科研领域,可能是最有可能推广普及Linux操作系统的场所,Linux所收到的关注也越来越多;但可能还不够。 延伸阅读: http://www.telegraph.co.uk/technology/news/10049444/International-Space-Station-to-boldly-go-with-Linux-over-Windows.html
个人分类: 开放源代码工具|4962 次阅读|6 个评论
Windows, 25.6G可能是正版软件所带的一键恢复系统
热度 1 cosismine 2013-5-8 17:39
在网上查了一下,说可能是这个原因,这种时候,改怎么处理呢?
个人分类: 我美丽的秃瓢岁月|2232 次阅读|1 个评论
[转载]Activate Hybrid Sleep on Windows PCs
chnfirst 2013-4-30 00:02
http://www.dummies.com/how-to/content/activate-hybrid-sleep-on-windows-pcs.html Activate Hybrid Sleep on Windows PCs By Dan Gookin from Troubleshooting Your PC For Dummies, 3rd Edition Somewhere between Sleep mode and hibernation is the hybrid sleep feature for your Windows 7 or Vista PC. (Hybrid sleep is not available in Windows XP). It’s like hibernation in that information stored in memory ( RAM ) is saved to disk but the computer doesn’t fully turn itself off. Instead, as when it’s in Sleep mode, you can quickly resume computer operation by touching a key or moving the mouse . The advantage of hybrid sleep is that you can quickly resume computer operations and avoid the risk of losing data if the power goes out. But to use hybrid sleep, it must be activated. Here’s how: Open the Control Panel. Click the Hardware and Sound heading. Click the Power Options heading. You see a list of power plans for your computer. One of them is selected, which shows the power savings plan your PC uses. Click the link Change Plan Settings beneath the selected plan. Click the link Change Advanced Power Settings. The Power Options dialog box appears. Open the Sleep item by clicking the plus (+) sign. Open the item Allow Hybrid Sleep. Click the blue text and choose On from the button menu. When your PC has two power sources, you need to choose On for both settings. Click OK to confirm your choice and activate hybrid sleep. Close the remaining dialog boxes and windows. When hybrid sleep is active, choosing the Sleep command places the computer into Hybrid Sleep mode. Hybrid sleep isn’t available in Windows XP. If you have disabled hibernation, the hybrid sleep feature may not function properly. Specifically, hybrid sleep may not recover unsaved data if the feature is on and the power goes out.
个人分类: 电脑、办公|1 次阅读|0 个评论
决定跳回Mac
热度 1 maxguang 2013-4-26 21:58
之前一直用PC,2010年买了台苹果MBP,2012年又换成了Thinkpad。最近下定决心,要跳回Mac苹果,理由如下: 1. 演讲:曾经用keynote做过一次seminar演讲,当时技惊四座的感觉至今回味。PPT嘛,如果用心做,也能做出keynote近似的效果,可是还是感觉差了些什么。 2. 邮件:现在在学校用MS Outlook,也算是好用,尤其是美国大家都用工作邮箱的情况。不过还是怀念mac下的邮件功能,管理更方便。 3. 双系统:当时用mac装了双系统,因为SAS没有mac版。不过我常用Stata,这个有mac版,对我影响也不大。Endnote也有mac版。 4. 待机:我最受不了Windows下的待机,经常是待机了就再也起不来了,或者启动之后就变慢,或者干脆关机了。PC下待机耗电也大。苹果就不一样,待机特方便,也不影响机器运行。待机几天也没事。 5. 噪音:见过有人说苹果噪音大的,不过我觉得比Thinkpad好几倍。后者风扇声音太大,有时候硬盘也有声音。当时用苹果MBP时对噪音没有什么感觉的。 6. 外观:我还是喜欢金属质感的拿在手里冰凉感觉的。 7. 其他:比如耳机,Mac下插上就变成耳机模式,很方便; 显示效果,苹果总是更好,就算分辨率不高。系统稳定,很少突然关机了死机了莫名其妙了;手势操作,这个用惯了就特别方便,反观PC机,我最痛苦的时候就是包里忘带鼠标的时候!等等等。。。 总结完毕。
6815 次阅读|1 个评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-20 16:27

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部