9/10/2009
9/07/2009
Howto: WinEdt + Wine + tetex under Linux
Howto: WinEdt + Wine + tetex
by Oleg Motygin
Date: Mon, 8 August 2006
Tested for:
* WinEdt 5.4, build 20040513
* Wine 0.9.18
* Linux SUSE 10.0
* tetex 3.0-20
Assumed:
* tetex ane Wine are installed;
* WinEdt is installed in Wine to
C:\Program Files\WinEdt (./wine/dosdevices/Program Files/WinEdt)
* Disk Z: is set to / (by winecfg).
Settings in WinEdt:
Start WinEdt, go to Options->Execution Modes. For latex in the field Executable set
Z:\usr\X11R6\bin\xterm -e latex
and a tick for Run detached. Analogously, fill fields for tex, pdftex, pdflatex, dvips, dvipdfm, ...
Go to Options->Menu Setup, right click on Main Menu->Accessories, Edit, fill in the field Macro:
Gsview:
Run("Z:\usr\X11R6\bin\gv -antialias -scale 2 %N.ps","",0,0,"gv",1,1);
Acrobat Reader:
Run("Z:\usr\X11R6\bin\acroread %N.pdf","",0,0,"acroread",1,1);
Dvipreview:
Run("Z:\usr\bin\xdvi -geometry 970x721+45+0 %N.dvi","",0,0,"xdi",1,1);
Dvisearch:
Run("Z:\usr\bin\xdvi -geometry 970x721+45+0 -sourceposition %!l:%N.tex %N.dvi","",0,0,"xdi",1,1);
It is better to set ticks Set folder to 'Start in'
Settings for running WinEdt:
Create a file winedtlaunch (for example, in /usr/local/bin):
#!/bin/bash
exec wine "C:\Program Files\WinEdt\WinEdt.exe" -F "[Open(|Z:$1|);SelPar($2,8)]]" &
Make winedtlaunch executable
#chmod +x winedtlaunch
Install winedtlaunch as default application for *.tex files (if working in KDE - Control Center).
Remark: I keep some TeX files on Windows disks, mounted as /mnt/winD, /mnt/winE. There are links in home directory ___D -> /mnt/winD, ___E -> /mnt/winE and in Wine (winecfg) I set the disks as follows: D: = /mnt/winD, E: = /mnt/winE. In this case, file pathes should be a bit tuned
"[Open(|`echo Z:$1|sed 's/.*\(___\|win\)\([DE]\)/\2:/g'`|);SelPar($2,8)]]"
Setting for backsearch in xdvi:
Edit .xdvirc in home directory, add the line
xdvi.editor: winedtlaunch %f %l
Other parameters which may help to make work comfortable:
xdvi.gamma: 1.25
xdvi.shrinkFactor: 5
xdvi.background: cornsilk
Settings for tetex:
A small hint allows correct font (tfm, pk) generation in tetex. Presumably it is not the best solution, but I simply comment 4 lines in /usr/share/texmf/web2c/mktex.opt after DOSISH=no:
#case `uname -s` in
# CYGWIN*|Cygwin*|cygwin*) ;;
# *) if test -n "$COMSPEC" || test -n "$ComSpec"; then DOSISH=yes; fi
#esac
by Oleg Motygin
Date: Mon, 8 August 2006
Tested for:
* WinEdt 5.4, build 20040513
* Wine 0.9.18
* Linux SUSE 10.0
* tetex 3.0-20
Assumed:
* tetex ane Wine are installed;
* WinEdt is installed in Wine to
C:\Program Files\WinEdt (./wine/dosdevices/Program Files/WinEdt)
* Disk Z: is set to / (by winecfg).
Settings in WinEdt:
Start WinEdt, go to Options->Execution Modes. For latex in the field Executable set
Z:\usr\X11R6\bin\xterm -e latex
and a tick for Run detached. Analogously, fill fields for tex, pdftex, pdflatex, dvips, dvipdfm, ...
Go to Options->Menu Setup, right click on Main Menu->Accessories, Edit, fill in the field Macro:
Gsview:
Run("Z:\usr\X11R6\bin\gv -antialias -scale 2 %N.ps","",0,0,"gv",1,1);
Acrobat Reader:
Run("Z:\usr\X11R6\bin\acroread %N.pdf","",0,0,"acroread",1,1);
Dvipreview:
Run("Z:\usr\bin\xdvi -geometry 970x721+45+0 %N.dvi","",0,0,"xdi",1,1);
Dvisearch:
Run("Z:\usr\bin\xdvi -geometry 970x721+45+0 -sourceposition %!l:%N.tex %N.dvi","",0,0,"xdi",1,1);
It is better to set ticks Set folder to 'Start in'
Settings for running WinEdt:
Create a file winedtlaunch (for example, in /usr/local/bin):
#!/bin/bash
exec wine "C:\Program Files\WinEdt\WinEdt.exe" -F "[Open(|Z:$1|);SelPar($2,8)]]" &
Make winedtlaunch executable
#chmod +x winedtlaunch
Install winedtlaunch as default application for *.tex files (if working in KDE - Control Center).
Remark: I keep some TeX files on Windows disks, mounted as /mnt/winD, /mnt/winE. There are links in home directory ___D -> /mnt/winD, ___E -> /mnt/winE and in Wine (winecfg) I set the disks as follows: D: = /mnt/winD, E: = /mnt/winE. In this case, file pathes should be a bit tuned
"[Open(|`echo Z:$1|sed 's/.*\(___\|win\)\([DE]\)/\2:/g'`|);SelPar($2,8)]]"
Setting for backsearch in xdvi:
Edit .xdvirc in home directory, add the line
xdvi.editor: winedtlaunch %f %l
Other parameters which may help to make work comfortable:
xdvi.gamma: 1.25
xdvi.shrinkFactor: 5
xdvi.background: cornsilk
Settings for tetex:
A small hint allows correct font (tfm, pk) generation in tetex. Presumably it is not the best solution, but I simply comment 4 lines in /usr/share/texmf/web2c/mktex.opt after DOSISH=no:
#case `uname -s` in
# CYGWIN*|Cygwin*|cygwin*) ;;
# *) if test -n "$COMSPEC" || test -n "$ComSpec"; then DOSISH=yes; fi
#esac
9/06/2009
移动设备上传图片到GOOGLE相册两法
本方法适用于塞班,WM,LINUX,MAC OS各类移动平台系统。
GOOGLE picasa相册为我们提供了1G 高速存储空间,同时由于开放的API和与其他google产品的高度相容性使得picasa相册的实用性非常优秀。
http://picasaweb.google.com
上传照片到picasa相册可以从网页一张一张上传,也可以使用picasa的客户端进行批量上传。(picasa的桌面客户端是一款十分优秀的图片浏览软件,完全可以取代acdsee,现在最新版本是picasa3 en_version)
在这个移动设备遍布的时代,如果我们想随时随地把刚刚拍出来的照片上传到picasa相册有什么办法呢?本篇文章为您提供两种解决方案。
WIFI/GPRS/3G通用解决方案:
如果您的移动设备有WIFI功能,那么恭喜您,您可以免费、高速的上传图片了,当然前提是您的附近有热点了。。。
首先开通GOOGLE的GMAIL服务,注册一个GMAIL帐号,这个就不多说了,很容易。
其次就是在GMAIL中开启“POP/IMAP/SMTP”功能
然后在移动端进行设置:
Symbian S60
要为 Symbian S60 设备配置 IMAP,只需按以下步骤操作:
1. 在 Gmail 帐户设置中启用 IMAP。
2. 选择"邮件">"选项">"设置">"电子邮件">"邮箱"。
3. 如果您之前从未在手机上设置过电子邮件,请选择"是"定义新邮箱。如果您已经有其他的邮箱,请依次选择"选项"和"新建邮箱"。
4. 选择"开始"可以开始设置向导。
5. 依次选择"IMAP4"和"下一步"。
6. 输入 Gmail 用户名(包括"@gmail.com")作为电子邮件地址,然后选择"下一步"。
7. 输入"imap.gmail.com"作为接收邮件服务器,然后选择"下一步"。
8. 输入"smtp.gmail.com"作为外发邮件服务器,然后选择"下一步"。
9. 选择相应的访问点,然后选择"下一步"。
10. 为电子邮件帐户邮箱名输入一个描述性名称。
11. 设置邮箱后,即可从电子邮件邮箱设置屏幕中选择该邮箱。
12. 选择"连接设置">"接收电子邮件"。
13. 输入您的 Gmail 用户名(包括"@gmail.com")和密码。
14. 为安全性(端口)选择"SSL/TLS",并将端口定义为"993"。
15. 选择"上一步"。
16. 选择"外发电子邮件"。
17. 输入您的 Gmail 用户名(包括"@gmail.com")和密码。
18. 为安全性(端口)选择"StartTLS",并将端口定义为"587"。
19. 选择"上一步"并根据您的使用偏好更改其他设置。
Windows Mobile 5
要为 Windows Mobile 5 设备配置 IMAP,只需按以下步骤操作:
1. 在 Gmail 设置中启用 IMAP。
2. 打开开始菜单,然后选择邮件>新建帐户...。
3. 为您的电子邮件提供商选择其他 (POP3/IMAP),然后选择下一步。
4. 输入您的姓名,以显示在已发送邮件中。
5. 在电子邮件地址字段中输入您的 Gmail 地址(包括"@gmail.com")。
6. 取消选中"尝试从 Internet 获取电子邮件设置",然后选择下一步。
7. 在用户名字段中输入 Gmail 地址(包括"@gmail.com")。
8. 在相应的密码字段中输入 Gmail 密码。
9. 将域字段留空,然后选择下一步。
10. 为服务器类型选择 IMAP4。
11. 在帐户名称字段中输入帐户的描述性名称。
12. 在网络字段中选择要设备连接到 Internet 以访问 Gmail IMAP 的方式,然后选择下一步。
13. 在接收服务器字段中输入"imap.gmail.com",然后勾选要求 SSL 连接。
14. 在发送服务器字段中输入"smtp.gmail.com",然后勾选发送服务器要求身份验证。
15. 选择发送服务器设置。
16. 确保未勾选"为发送服务器使用不同的用户名"。
17. 确保勾选"要求 SSL 连接"。
18. 选择完成。
19. 选择下一步。
20. 您可以更改要下载到电话中的邮件的数量。 根据需要调整这些使用偏好,然后选择下一步。
21. 选择要设备自动检查新邮件的频率,然后选择下一步。
22. 选择完成。
iPhone
要将 iPhone 配置为使用 IMAP,请按以下步骤操作:
1. 在 Gmail 帐户设置中启用 IMAP。
2. 点击设置。
3. 点击邮件。
4. 点击添加帐户。
5. 点击其他。(请注意: 如果要运行软件更新 1.1.3,点击"Gmail"图标即可自动配置 IMAP。 但是,存档与删除邮件的方法并不相同。 如果您希望按指定方式对 Gmail IMAP 执行操作,请一直进行到第 6) 步。
6. 请确保:
* 突出显示"IMAP"标签
* 主机名为 imap.gmail.com
* 用户名是完整的 Gmail 地址(包括"@gmail.com")
* 对于外发邮件服务器 (SMTP),主机名为 smtp.gmail.com
7. 点击保存。
大功告成。可以通过点击设置 > [您的 Gmail IMAP 帐户] > 高级来验证高级设置。
接收设置
使用 SSL:是
身份验证:密码
服务器端口: 993
外发设置
使用 SSL:是
身份验证:密码
服务器端口: 587
现在帐户已设置,请了解一下如何将您客户端的操作与 Gmail 同步。
下一步
进入picasa 相册设置,找到“通过电子邮件上传照片”
勾选“允许我通过电子邮件上传照片”
这个时候设置好自己的密码并记住google 提供的电子邮件地址 一般格式为:
你设置的密码.你的picasa相册昵称@picasaweb.com
把这个记住,然后回到你的移动设备上,找到想发送的图片,选择使用电子邮件发送(类似选项即可),把收件人地址填入上面的地址即可。
其实,你完全不必使用GMAIL来发送邮件,我在这里只是为了方便叙述,给读者举出一个具体配置实例,如果您在您的移动设备上已经使用了其他邮件服务并且能够保证正常发送邮件也是可以的。
最主要的就是后面的步骤。
当邮件发送之后,打开picasa相册可以发现多了一个名为“照片投放箱”的相册,如果发送成功的话,在这里会出现您刚才发送的照片。
GOOGLE picasa相册为我们提供了1G 高速存储空间,同时由于开放的API和与其他google产品的高度相容性使得picasa相册的实用性非常优秀。
http://picasaweb.google.com
上传照片到picasa相册可以从网页一张一张上传,也可以使用picasa的客户端进行批量上传。(picasa的桌面客户端是一款十分优秀的图片浏览软件,完全可以取代acdsee,现在最新版本是picasa3 en_version)
在这个移动设备遍布的时代,如果我们想随时随地把刚刚拍出来的照片上传到picasa相册有什么办法呢?本篇文章为您提供两种解决方案。
WIFI/GPRS/3G通用解决方案:
如果您的移动设备有WIFI功能,那么恭喜您,您可以免费、高速的上传图片了,当然前提是您的附近有热点了。。。
首先开通GOOGLE的GMAIL服务,注册一个GMAIL帐号,这个就不多说了,很容易。
其次就是在GMAIL中开启“POP/IMAP/SMTP”功能
然后在移动端进行设置:
Symbian S60
要为 Symbian S60 设备配置 IMAP,只需按以下步骤操作:
1. 在 Gmail 帐户设置中启用 IMAP。
2. 选择"邮件">"选项">"设置">"电子邮件">"邮箱"。
3. 如果您之前从未在手机上设置过电子邮件,请选择"是"定义新邮箱。如果您已经有其他的邮箱,请依次选择"选项"和"新建邮箱"。
4. 选择"开始"可以开始设置向导。
5. 依次选择"IMAP4"和"下一步"。
6. 输入 Gmail 用户名(包括"@gmail.com")作为电子邮件地址,然后选择"下一步"。
7. 输入"imap.gmail.com"作为接收邮件服务器,然后选择"下一步"。
8. 输入"smtp.gmail.com"作为外发邮件服务器,然后选择"下一步"。
9. 选择相应的访问点,然后选择"下一步"。
10. 为电子邮件帐户邮箱名输入一个描述性名称。
11. 设置邮箱后,即可从电子邮件邮箱设置屏幕中选择该邮箱。
12. 选择"连接设置">"接收电子邮件"。
13. 输入您的 Gmail 用户名(包括"@gmail.com")和密码。
14. 为安全性(端口)选择"SSL/TLS",并将端口定义为"993"。
15. 选择"上一步"。
16. 选择"外发电子邮件"。
17. 输入您的 Gmail 用户名(包括"@gmail.com")和密码。
18. 为安全性(端口)选择"StartTLS",并将端口定义为"587"。
19. 选择"上一步"并根据您的使用偏好更改其他设置。
Windows Mobile 5
要为 Windows Mobile 5 设备配置 IMAP,只需按以下步骤操作:
1. 在 Gmail 设置中启用 IMAP。
2. 打开开始菜单,然后选择邮件>新建帐户...。
3. 为您的电子邮件提供商选择其他 (POP3/IMAP),然后选择下一步。
4. 输入您的姓名,以显示在已发送邮件中。
5. 在电子邮件地址字段中输入您的 Gmail 地址(包括"@gmail.com")。
6. 取消选中"尝试从 Internet 获取电子邮件设置",然后选择下一步。
7. 在用户名字段中输入 Gmail 地址(包括"@gmail.com")。
8. 在相应的密码字段中输入 Gmail 密码。
9. 将域字段留空,然后选择下一步。
10. 为服务器类型选择 IMAP4。
11. 在帐户名称字段中输入帐户的描述性名称。
12. 在网络字段中选择要设备连接到 Internet 以访问 Gmail IMAP 的方式,然后选择下一步。
13. 在接收服务器字段中输入"imap.gmail.com",然后勾选要求 SSL 连接。
14. 在发送服务器字段中输入"smtp.gmail.com",然后勾选发送服务器要求身份验证。
15. 选择发送服务器设置。
16. 确保未勾选"为发送服务器使用不同的用户名"。
17. 确保勾选"要求 SSL 连接"。
18. 选择完成。
19. 选择下一步。
20. 您可以更改要下载到电话中的邮件的数量。 根据需要调整这些使用偏好,然后选择下一步。
21. 选择要设备自动检查新邮件的频率,然后选择下一步。
22. 选择完成。
iPhone
要将 iPhone 配置为使用 IMAP,请按以下步骤操作:
1. 在 Gmail 帐户设置中启用 IMAP。
2. 点击设置。
3. 点击邮件。
4. 点击添加帐户。
5. 点击其他。(请注意: 如果要运行软件更新 1.1.3,点击"Gmail"图标即可自动配置 IMAP。 但是,存档与删除邮件的方法并不相同。 如果您希望按指定方式对 Gmail IMAP 执行操作,请一直进行到第 6) 步。
6. 请确保:
* 突出显示"IMAP"标签
* 主机名为 imap.gmail.com
* 用户名是完整的 Gmail 地址(包括"@gmail.com")
* 对于外发邮件服务器 (SMTP),主机名为 smtp.gmail.com
7. 点击保存。
大功告成。可以通过点击设置 > [您的 Gmail IMAP 帐户] > 高级来验证高级设置。
接收设置
使用 SSL:是
身份验证:密码
服务器端口: 993
外发设置
使用 SSL:是
身份验证:密码
服务器端口: 587
现在帐户已设置,请了解一下如何将您客户端的操作与 Gmail 同步。
下一步
进入picasa 相册设置,找到“通过电子邮件上传照片”
勾选“允许我通过电子邮件上传照片”
这个时候设置好自己的密码并记住google 提供的电子邮件地址 一般格式为:
你设置的密码.你的picasa相册昵称@picasaweb.com
把这个记住,然后回到你的移动设备上,找到想发送的图片,选择使用电子邮件发送(类似选项即可),把收件人地址填入上面的地址即可。
其实,你完全不必使用GMAIL来发送邮件,我在这里只是为了方便叙述,给读者举出一个具体配置实例,如果您在您的移动设备上已经使用了其他邮件服务并且能够保证正常发送邮件也是可以的。
最主要的就是后面的步骤。
当邮件发送之后,打开picasa相册可以发现多了一个名为“照片投放箱”的相册,如果发送成功的话,在这里会出现您刚才发送的照片。
8/26/2009
8/25/2009
8/24/2009
Quickly lock your screen under Mac
by Rob Griffiths, Macworld.com
If you work with any kind of sensitive material—from trade secrets to love letters—you’ve probably wished for a way to block access to your Mac the minute you stand up. There are many ways to do this, from the obvious to the obscure. I’ll cover all the methods I know to accomplish this trick. For most of these methods to work, you need to require a password when your Mac wakes from sleep or screensaver mode. To do this, open System Preferences, go to the Security pane, and select the Require Password to Wake This Computer From Sleep or Screen Saver option. Now you’re ready.
A simple way to protect your files when you walk away from your computer is to hit Shift-Command-Option-Q to do a fast logout of your user. Your Mac will go back to the login screen. However, there’s a huge downside to this method—all of your currently-open documents will close, and any running applications will quit prior to the logout. Clearly there must be better alternatives, and there are.
You could also put the computer to sleep. Go to the Apple menu and select Sleep or, if you’re using a laptop, press the power button and choose Sleep from the pop-up dialog. (Note: This is an edit from the originally posted version, where I said to hold the power button down; if you do that long enough, you’ll turn the computer off.) Of course, it takes a bit of time to put a Mac to sleep and to wake it up. You may also have remote users connected to the machine, or some lengthy program running that you’d rather not interrupt. In those cases, this isn’t the ideal solution.
A relatively quick method of locking your Mac—while still leaving your programs running—is to activate the screen saver using a hot corner . To do this, open the Desktop & Screen Saver System Preferences panel, activate the Screen Saver tab, and click the Hot Corners button. Decide which corner of your screen you’d like to use, then click the corresponding pop-up menu and select Start Screen Saver. Now when it’s time to walk away, just fling your mouse into that corner of the screen, and you’ll trigger the screen saver.
If you have the corners of your screen devoted to Exposé or some other feature, here’s another option. It turns out that the screen saver is just an application, so you can put an alias to it in an easy-to-access location, such as your dock, or the Finder’s sidebar or toolbar. Just navigate to System -> Library -> Frameworks -> Screensaver.framework -> Versions -> A -> Resources, and then drag ScreenSaverEngine.app onto your dock, sidebar, or toolbar. Now when you want the screensaver to activate, just click the convenient icon. The dock will prove the easiest spot to reach, since it’s visible in all applications. If you have a launcher program such as Peter Maurer’s Butler or Objective Development’s LaunchBar, you could even create a keyboard shortcut that will open the program for you, no mousing around required.
Another method of locking your system is to show the login window, without actually logging out. You can do this by enabling fast user switching in the Accounts System Preferences panel. Click the Login Options button (you’ll probably have to enter your administrator password to do this), and then select the Enable Fast User Switching option. Once you have fast user switching enabled, you’ll see either an icon or a name in your menubar, depending on what option you chose on the Login Options screen. Click on your name or icon in the menubar and select Login Window from the drop-down menu. The login window will appear. When you return to your Mac, login as you usually do. All your applications will be just as your left them—even your iTunes music will start up again where it stopped playing, even if that means mid-song.
But what if you don’t want to always lock your screen when the screen saver activates or your computer wakes from sleep? In other words, you don’t want to set that option in the Security pane as you must for the methods I’ve described so far. (After all, it can be a pain to have to enter your password over and over again throughout the day.) Keychain Access holds the key. You can use this application (in your Applications/Utilities folder) to quickly activate your screen saver from the menubar and require a password to turn it off—even if the Security pane option isn’t enabled. Open Keychain Access and then go to Keychain Access: Preferences. Click on the General tab and select the Show Status in Menu Bar option. A small lock icon will appear in your menu bar. Close the Preferences window and quit Keychain Access. Now click the lock icon in your menubar and choose Lock Screen to start your screen saver. You can even define a keyboard shortcut for the Keychain Access Lock Screen menu. First make sure the Lock Screen icon is the leftmost of your Apple-provided menubar icons. Hold down the Command key and drag the lock icon to the left edge of your existing icons, then drop the icon. This step is necessary to make this trick work. Now open System Preferences, and click on the Keyboard & Mouse pane. Click the Keyboard Shortcuts tab, and then click the plus sign to add a shortcut. Leave the pop-up menu set to All Applications, enter Lock Screen for the Menu Title, and then define a keyboard shortcut to use:
Here I’ve defined Shift-Control-F8 as my lock screen shortcut; this may seem an odd combo, but here’s why—since this is a keyboard shortcut for a menubar icon, it only works when that area of the menubar is active (“has focus”). Luckily, one of OS X’s pre-defined keyboard shortcuts is Control-F8, which moves the focus to the status menu area of the menubar, where the lock icon appears. When you hit Control-F8, the leftmost menubar status item will activate; that’s why this trick only works with the lock icon in the leftmost position. And since Control-F8 is the status menu activation key, I assigned a very similar keystroke for the Lock Screen function. So to lock the screen, hit Control-F8, and then Shift-Control-F8. Presto, the screen saver will activate! Note that this may not work for everyone, depending on what other menu extras you have installed. You should always be able to hit Control-F8 and use the arrow keys, however, which is almost as easy and still mouse-less.
I’m sure I’ve missed at least a few additional methods of quickly locking your screen; if you have one, please share it in the comments.
If you work with any kind of sensitive material—from trade secrets to love letters—you’ve probably wished for a way to block access to your Mac the minute you stand up. There are many ways to do this, from the obvious to the obscure. I’ll cover all the methods I know to accomplish this trick. For most of these methods to work, you need to require a password when your Mac wakes from sleep or screensaver mode. To do this, open System Preferences, go to the Security pane, and select the Require Password to Wake This Computer From Sleep or Screen Saver option. Now you’re ready.
A simple way to protect your files when you walk away from your computer is to hit Shift-Command-Option-Q to do a fast logout of your user. Your Mac will go back to the login screen. However, there’s a huge downside to this method—all of your currently-open documents will close, and any running applications will quit prior to the logout. Clearly there must be better alternatives, and there are.
You could also put the computer to sleep. Go to the Apple menu and select Sleep or, if you’re using a laptop, press the power button and choose Sleep from the pop-up dialog. (Note: This is an edit from the originally posted version, where I said to hold the power button down; if you do that long enough, you’ll turn the computer off.) Of course, it takes a bit of time to put a Mac to sleep and to wake it up. You may also have remote users connected to the machine, or some lengthy program running that you’d rather not interrupt. In those cases, this isn’t the ideal solution.
A relatively quick method of locking your Mac—while still leaving your programs running—is to activate the screen saver using a hot corner . To do this, open the Desktop & Screen Saver System Preferences panel, activate the Screen Saver tab, and click the Hot Corners button. Decide which corner of your screen you’d like to use, then click the corresponding pop-up menu and select Start Screen Saver. Now when it’s time to walk away, just fling your mouse into that corner of the screen, and you’ll trigger the screen saver.
If you have the corners of your screen devoted to Exposé or some other feature, here’s another option. It turns out that the screen saver is just an application, so you can put an alias to it in an easy-to-access location, such as your dock, or the Finder’s sidebar or toolbar. Just navigate to System -> Library -> Frameworks -> Screensaver.framework -> Versions -> A -> Resources, and then drag ScreenSaverEngine.app onto your dock, sidebar, or toolbar. Now when you want the screensaver to activate, just click the convenient icon. The dock will prove the easiest spot to reach, since it’s visible in all applications. If you have a launcher program such as Peter Maurer’s Butler or Objective Development’s LaunchBar, you could even create a keyboard shortcut that will open the program for you, no mousing around required.
Another method of locking your system is to show the login window, without actually logging out. You can do this by enabling fast user switching in the Accounts System Preferences panel. Click the Login Options button (you’ll probably have to enter your administrator password to do this), and then select the Enable Fast User Switching option. Once you have fast user switching enabled, you’ll see either an icon or a name in your menubar, depending on what option you chose on the Login Options screen. Click on your name or icon in the menubar and select Login Window from the drop-down menu. The login window will appear. When you return to your Mac, login as you usually do. All your applications will be just as your left them—even your iTunes music will start up again where it stopped playing, even if that means mid-song.
But what if you don’t want to always lock your screen when the screen saver activates or your computer wakes from sleep? In other words, you don’t want to set that option in the Security pane as you must for the methods I’ve described so far. (After all, it can be a pain to have to enter your password over and over again throughout the day.) Keychain Access holds the key. You can use this application (in your Applications/Utilities folder) to quickly activate your screen saver from the menubar and require a password to turn it off—even if the Security pane option isn’t enabled. Open Keychain Access and then go to Keychain Access: Preferences. Click on the General tab and select the Show Status in Menu Bar option. A small lock icon will appear in your menu bar. Close the Preferences window and quit Keychain Access. Now click the lock icon in your menubar and choose Lock Screen to start your screen saver. You can even define a keyboard shortcut for the Keychain Access Lock Screen menu. First make sure the Lock Screen icon is the leftmost of your Apple-provided menubar icons. Hold down the Command key and drag the lock icon to the left edge of your existing icons, then drop the icon. This step is necessary to make this trick work. Now open System Preferences, and click on the Keyboard & Mouse pane. Click the Keyboard Shortcuts tab, and then click the plus sign to add a shortcut. Leave the pop-up menu set to All Applications, enter Lock Screen for the Menu Title, and then define a keyboard shortcut to use:
Here I’ve defined Shift-Control-F8 as my lock screen shortcut; this may seem an odd combo, but here’s why—since this is a keyboard shortcut for a menubar icon, it only works when that area of the menubar is active (“has focus”). Luckily, one of OS X’s pre-defined keyboard shortcuts is Control-F8, which moves the focus to the status menu area of the menubar, where the lock icon appears. When you hit Control-F8, the leftmost menubar status item will activate; that’s why this trick only works with the lock icon in the leftmost position. And since Control-F8 is the status menu activation key, I assigned a very similar keystroke for the Lock Screen function. So to lock the screen, hit Control-F8, and then Shift-Control-F8. Presto, the screen saver will activate! Note that this may not work for everyone, depending on what other menu extras you have installed. You should always be able to hit Control-F8 and use the arrow keys, however, which is almost as easy and still mouse-less.
I’m sure I’ve missed at least a few additional methods of quickly locking your screen; if you have one, please share it in the comments.
8/22/2009
Manually Uninstall the VPN Client
Complete these steps:
1. From your desktop, choose Start > Run and type regedit. Note: Make sure that no anti-virus software or firewalls are enabled.
2. Remove the key at HKEY_LOCAL_MACHINE > SOFTWARE > Cisco Systems > VPN Client.
3. Remove the keys at HKEY_LOCAL_MACHINE > SOFTWARE > Deterministic Networks. Note: Sometimes the system does not allow you to remove this key.
4. Remove the keys at HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Uninstall > {5624c000-b109-11d4-9db4-00e0290fcac5}.
5. Remove the keys at HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > RunOnce > CISCOREBOOTFLAG.
6. In order to stop the VPN deamon process, press Ctrl+Alt+Del and select Task Manager. Then, navigate to cvpnd.exe, right-click and choose End Process.
7. Delete these directories if the Cisco VPN Client is installed in the default directories of the Windows machine:
◦ C:\Program Files\Cisco Systems\VPN Client
◦ C:\Program Files\Common Files\Deterministic Networks
8. Delete all the old Deterministic NDIS Extender (DNE) files:
◦ dne2000.sys from %SystemRoot%\system32\drivers
◦ dne2000m.inf and dne2000m.pnf from %SystemRoot%\inf
◦ The Original Equipment Manufacturer (OEM) enumerations of the dne2000.inf and dne2000.pnf files. The OEM enumeration .inf file is a file called oem.inf. For example, files could be called oem2.inf and oem2.pnf.
Note: Be careful to remove only OEM files from the DNE.
◦ dneinobj.dll from %SystemRoot%\system32. You might need to reboot before you can remove this file.
9. Delete the cvpndrv.sys or cvpndrva.sys file from %SystemRoot%\system32\drivers.
10. Reboot the machine and cancel the installation of network adapters.
11. Find the CSGina.dll file in the system32 folder and rename it CSGina.old.
12. Reboot the machine and install the latest version of the Cisco VPN Client.
Note: Even if a manual uninstall fails after you complete this procedure, remove the setup.exe file from the temp files directory because it can trigger setup to run again.
Complete these steps in order to remove Deterministic Network Enhancer:
1. Right-click My Network Places and choose Properties.
2. Right-click Local Area Connection and choose Properties.
3. Either uninstall or uncheck Deterministic Network Enhancer.
1. From your desktop, choose Start > Run and type regedit. Note: Make sure that no anti-virus software or firewalls are enabled.
2. Remove the key at HKEY_LOCAL_MACHINE > SOFTWARE > Cisco Systems > VPN Client.
3. Remove the keys at HKEY_LOCAL_MACHINE > SOFTWARE > Deterministic Networks. Note: Sometimes the system does not allow you to remove this key.
4. Remove the keys at HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Uninstall > {5624c000-b109-11d4-9db4-00e0290fcac5}.
5. Remove the keys at HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > RunOnce > CISCOREBOOTFLAG.
6. In order to stop the VPN deamon process, press Ctrl+Alt+Del and select Task Manager. Then, navigate to cvpnd.exe, right-click and choose End Process.
7. Delete these directories if the Cisco VPN Client is installed in the default directories of the Windows machine:
◦ C:\Program Files\Cisco Systems\VPN Client
◦ C:\Program Files\Common Files\Deterministic Networks
8. Delete all the old Deterministic NDIS Extender (DNE) files:
◦ dne2000.sys from %SystemRoot%\system32\drivers
◦ dne2000m.inf and dne2000m.pnf from %SystemRoot%\inf
◦ The Original Equipment Manufacturer (OEM) enumerations of the dne2000.inf and dne2000.pnf files. The OEM enumeration .inf file is a file called oem
◦ dneinobj.dll from %SystemRoot%\system32. You might need to reboot before you can remove this file.
9. Delete the cvpndrv.sys or cvpndrva.sys file from %SystemRoot%\system32\drivers.
10. Reboot the machine and cancel the installation of network adapters.
11. Find the CSGina.dll file in the system32 folder and rename it CSGina.old.
12. Reboot the machine and install the latest version of the Cisco VPN Client.
Note: Even if a manual uninstall fails after you complete this procedure, remove the setup.exe file from the temp files directory because it can trigger setup to run again.
Complete these steps in order to remove Deterministic Network Enhancer:
1. Right-click My Network Places and choose Properties.
2. Right-click Local Area Connection and choose Properties.
3. Either uninstall or uncheck Deterministic Network Enhancer.
谷歌相册Picasa相册图片不显示的解决办法
刚才在网站统计中看到今天好多人通过搜索引擎搜:Picasa相册图片不显示,Google相册图片不显示,Picasa相册图片不显示的原因 Picasa相册图片无法显示,Picasa相册打不开等等关键词,搜到了我以前写的:。一看这么多人搜就知道肯定是Picasa网络相册在中国大陆被封了,以前写的那个是Picasa相册的图片插入博客或其它网站的时候不显示的原因和解决办法。不是因为Picasa被封在自己电脑上看不到图片的解决办法。
现在,从自己电脑上看不到Picasa相册图片可用下面的方法解决:
———————方法开始———————
用记事本打开hosts文件,hosts文件位于:c:\windows\system32\drivers\etc\hosts
在hosts文件中加入下面这些内容:
#picasaweb.google.com
203.208.39.104 picadaweb.google.com
203.208.39.104 lh1.ggpht.com
203.208.39.104 lh2.ggpht.com
203.208.39.104 lh3.ggpht.com
203.208.39.104 lh4.ggpht.com
203.208.39.104 lh5.ggpht.com
203.208.39.104 lh6.ggpht.com
保存。
———————方法结束———————
上面的IP地址203.208.39.104也可以换成203.208.33.100试一下。
这种修改hosts文件文件的方法可以用于解决很多被封的网站无法打开的问题,每个在中国上网的人都应该学会,如果你还不会请尽快学习,猛烈点击这里查看学习资料。
现在,从自己电脑上看不到Picasa相册图片可用下面的方法解决:
———————方法开始———————
用记事本打开hosts文件,hosts文件位于:c:\windows\system32\drivers\etc\hosts
在hosts文件中加入下面这些内容:
#picasaweb.google.com
203.208.39.104 picadaweb.google.com
203.208.39.104 lh1.ggpht.com
203.208.39.104 lh2.ggpht.com
203.208.39.104 lh3.ggpht.com
203.208.39.104 lh4.ggpht.com
203.208.39.104 lh5.ggpht.com
203.208.39.104 lh6.ggpht.com
保存。
———————方法结束———————
上面的IP地址203.208.39.104也可以换成203.208.33.100试一下。
这种修改hosts文件文件的方法可以用于解决很多被封的网站无法打开的问题,每个在中国上网的人都应该学会,如果你还不会请尽快学习,猛烈点击这里查看学习资料。
订阅:
博文 (Atom)