记录Harde学习成长生活的点点滴滴.
2012-02-05 JavaScript,Jquery,WEB前端


没有评论
9 次浏览

解决[event.layerX and event.layerY are broken and deprecated in WebKit]

今天拿出以前做的一套UI做点小东西,运行没啥异常,但是JS控制台一直提示[event.layerX and event.layerY are broken and deprecated in WebKit],Google了一下,说是Jquery的BUG,看了下,项目中用的是1.5的,升级到1.7后问题解决。
时间紧迫,留此文以后再看这个问题。

2012-02-02 DotNet


没有评论
22 次浏览

VS10sp1-KB983509“过不去”的解决

哦,其实如果是懒人应该不会看到这篇文章的……
安装VS2010的Sp1补丁时,貌似很多人说卡在这里,呃其实它真没事,等会就好了,也许半小时也许1个小时反正等着就对了~~~

鄙人是白羊座的,性子急。。。以为过不去,手动取消过2次…汗。
写这个博文的原因是提醒跟我同样性急的朋友,要有耐心……

2012-01-16 DotNet


没有评论
5 次浏览

未能加载文件或程序集,HRESULT:0×80131047 的解决办法

今天遇到了这个问题,看字面意思也比较明了,就是没法加载文件了。
因为我是添加EntityFramework引用,从Web获取的数据,所以文件不存在的可能性排除
检查了下 文件属性,也没有什么异常。
直接访问路径,也可以访问。

因为完整路径中带有一个半角逗号”,”怀疑是路径不被VS所识别,
剔除”,”问题解决。

2012-01-14 DotNet


没有评论
7 次浏览

安装EntityFramework提示未声明SchemaVersion的解决办法

不知道为什么,在公司的VS好好的,今天在家用就出了这个问题(本本上的MVC3比公司电脑安装得早)
随便乱点时,发现“扩展管理器”里的“NuGet”需要更新,感觉是这个问题
更新完毕,重启VS,OK,问题解决

2012-01-10 计算机


没有评论
6 次浏览

命令行下使用 TrueCrypt暨 快速加载指定文件至指定盘符

能进来看此篇文章的朋友,相信也不会对TrueCrypt陌生,所以TrueCrypt是个什么东西,相信我就不用介绍了~
今天说下他的命令行使用。
个人比较喜欢使用LastPass保存密码,以及各种同步功能,但是呢,在公司电脑又不能直接使用,毕竟不是私人电脑,所以TrueCrypt对我来说,是个很好的解决方案。
但是呢,每次输入密码、KEY文件又太过于麻烦,所以呢我就直接使用命令行命令,一部到位了~~

先看下 TrueCrypt 的命令

/a /auto If no parameter is specified, automatically mount the volume. If devices is specified as the parameter (e.g., /a devices), auto-mount all currently accessible device/partition-hosted TrueCrypt volumes. If favorites is specified as the parameter, auto-mount favorite volumes. Note that /auto is implicit if /quit and /volume are specified.
/b /beep Beep after a volume has been successfully mounted or dismounted.
/cache /c y or no parameter: enable password cache; n: disable password cache (e.g., /c n). Note that turning the password cache off will not clear it (use /w to clear the password cache).
/dismount /d Dismount volume specified by drive letter (e.g., /d x). When no drive letter is specified, dismounts all currently mounted TrueCrypt volumes.
/explore /e Open an Explorer window after a volume has been mounted.
/force /f Forces dismount (if the volume to be dismounted contains files being used by the system or an application) and forces mounting in shared mode (i.e., without exclusive access).
/help /? Display command line help.
/history /h y or no parameter: enables saving history of mounted volumes; n: disables saving history of mounted volumes (e.g., /h n).
/keyfile /k Specifies a keyfile or a keyfile search path. For multiple keyfiles, specify e.g.:
/k c:\keyfile1.dat /k d:\KeyfileFolder /k c:\kf2
/letter /l Driver letter to mount the volume as. When /l is omitted and when /a is used, the first free drive letter is used.
/mountoption /m ro or readonly: Mount volume as read-only.
/password /p The volume password. If the password contains spaces, it must be enclosed in quotation marks (e.g., /p “My Password”). Use /p “” to specify an empty password. Warning: This method of entering a volume password may be insecure, for example, when an unencrypted command prompt history log is being saved to unencrypted disk.
/quit /q Automatically perform requested actions and exit (main TrueCrypt window will not be displayed). If preferences is specified as the parameter (e.g.,
/q preferences), then program settings are loaded/saved and they override settings specified on the command line.
/q background launches the TrueCrypt Background Task (tray icon). Note that /q has no effect if the container is accessible only in local user name space (TrueCrypt will exit only after the volume is dismounted), e.g., a network volume.
/silent /s If /q is specified, suppresses interaction with the user (prompts, error messages, warnings, etc.). If /q is not specified, this option has no effect.
/volume /v File and path name of a TrueCrypt volume to mount (do not use when dismounting). To mount a hard disk partition, use, for example, /v \Device\Harddisk1\Partition3 (to determine the path to a partition, run TrueCrypt and click Select Device). Note that device paths are case-sensitive.
/wipecache /w Wipes any passwords cached in the driver memory.
rm removable Mount volume as removable medium.
ts timestamp Do not preserve container timestamps
sm system Without pre-boot authentication, mount a partition that is within the key scope of system encryption (for example, a partition located on the encrypted system drive of another operating system that is not running). Useful e.g. for backup or repair operations.
Note: If you supply a password as a parameter of /p, make sure that the password has been typed using the standard US keyboard layout (in contrast, the GUI ensures this automatically).
bk headerbak Mount volume using embedded backup header.
Note: All volumes created by TrueCrypt 6.0 or later contain an embedded backup header (located at the end of the volume).

OK,动手试试
truecrypt e:\doc.tc /a /l z /e /q
执行后,e盘下的doc.tc文件会被加载为z盘,并自动打开资源管理器,Truecrypt不会显示。
复杂点,加上密码与key
truecrypt e:\doc.tc /a /p “123″ /k c:\key /l z /e /q

ok~ 写个bat,放U盘里,或者放在网盘里~ 搞定。

返回顶部
分享按钮