一些关于ipad的杂事
三月三号,官方宣布降价,同事一再怂恿,遂入手刻字wifi版ipad,等候十几天后才到手。
装了不少自己需要的软件,包括占很大一部分的杂志的客户端
越狱之后,记记一些额外的功能如何实现。
导航:
ipad端使用BTstack GPS ,Cydia下载,收费软件,5$;手机因为是htc legend,使用GPS 2BT,电子市场内下载,免费软件。google maps,高德定位很准。
多格式视频:
OPlayer HD/AVPlayerHD,很好很强大…
SD卡备份:
iFile+Apple iPad Camera Connection Kit
这个是我最喜欢的功能了,入ipad主要目的之一就是为了快速导入raw格式的图片,导入是一回事,备份是另外一回事。两者兼得。
Dropbox:
被墙,无法读取列表的解决方法,修改private/etc/hosts 文件,加入一行 174.36.30.71 www.dropbox.com .
更新到了4.3.1,碰到installous出现下载完ipa,直接消失,不显示在已下载中的问题,解决办法:
用ifile进入,/var/mobile/Documents/Installous/Downloads/,将Downloads目录的所有者为mobile即可
[转]为了睡好,你还可以做的10件事
世界睡眠医学协会(WASM)将今年3月21日(睡眠日)主题定为“良好睡眠,健康成长”,让我们睡得更好,长得更美吧。
据调查,睡眠问题困扰着全球45%的人口。严重影响了人类的身体、心理和情绪健康,也影响着工作表现与人际关系。“ 缺乏优质睡眠会导致以下情况:肥胖、意外受伤、喜怒无常和情绪化、容易冲动和具有攻击性、烦躁沮丧、记忆力下降、注意力不集中、学习能力和推理能力降低等。”世界睡眠医学协会主席Libor io Par r ino表示。而孩子和成人一样受到相同的威胁。

1.制定良好的作息规律并坚持一段时间。
每天晚睡,不知不觉就形成了习惯,那么从今天开始提前爬上床吧。22点上床,23点前熄灯,并在晨光中自然苏醒。努力坚持3周,把原本晚上做的事情挪到早上,不但可以确保获得足够的睡眠,而且你会发现早上是多么美妙,时间充沛而效率又高!(周末也请按照这个作息,不要偷懒哦。)
2.留出一段“安静时间”。
虽然上了床,可是看电视、打游戏、上网聊天忙得不亦乐乎。这些行为都与睡眠的本质相违背。看一本书(但不要选择《哈利·波特》这样的),阅读1个章节后,让身体自然感应到疲劳,然后顺势关灯入睡。在睡前半小时关闭电灯以外所有的电器吧,包括你的手机。
3.舒适的睡眠空间。
灯光是否刺眼、被子是否厚薄舒适、睡衣是否贴身干净、空气是否流通等等,虽然都是小问题,但却会有大影响。市面上有不少帮助睡眠的光源、音乐音频播放器、空气净化器、床上用品等等,完全可以一试。但如果有了它们反而影响你的入睡的话,就请及时把它们赶出卧室吧。
4.用餐时间与用餐内容。
几乎所有人都曾有过吃得太饱或者被饿醒的经历。晚餐后不到2小时,消化不足不但影响吸收也同样会干扰到睡眠。一定要吃就以蔬果类、汤类为主。切忌暴饮暴食。至于被饿醒,一杯温热的牛奶加1片小饼干就应该有帮助。
5.睡前喝酒。
你是要睡着还是要醉倒?睡前一杯红酒有助于抗氧化和睡眠,对女性尤为有好处,但是干掉几大杯伏特加或是深海炸弹?也许现在是“睡”了,但你的胃和肝肯定不好受,后半夜的睡眠质量更是堪忧。饮酒应当是从清醒状态放松下来的一个步骤,可不能太猛烈了。
6.小小运动有帮助。
白天有充足的运动时间,晚餐后会自然而然感觉到身体的疲劳信号,但是对于大多数白领来说,运动时间—肯定是不足的,那么在睡前做一组拉伸运动、一组下蹲、仰卧起坐或者跳绳,10 分钟微微出汗就好,不但保持了好身材,还提高了睡眠质量,太值了!
7.睡前不要太兴奋。
看太过惊悚、忧郁、欢乐的电影或书籍都对睡眠带来不良效果,因为实在有太多内容需要过滤与消化了。近期有调查发现,许多人睡不着因为无法放下工作,“明天要提案ABCD、今天忘了联络某人,或是今天开会中说的话是否恰当合适呢?”被工作困扰,不如马上坐起来在笔记上写下1234,然后合上本子去好好睡。心放不开梦怎么进得来?
8.味道有疗效。
气味可以直击大脑,牛奶香、肥皂味,任何熟悉的、让你放松的味道都可以成为“催眠药”。这也是孩子们喜欢抱着一条毯子、手帕或是娃娃入睡的理由之一,因为有“妈妈的味道”。香熏疗法也是一样,都说薰衣草可以催眠,但也有人觉得不舒服或勾起不愉快的回忆。那么换一款喜欢的精油或淡香水洒向空气或是床单,不必太浓。很多人喜欢被子在阳光下晒过后的味道,觉得特别温暖和亲切,你呢?
9.淋浴不如泡澡。
淋浴是快速的,但是辛苦了一天后泡个澡才是人生至福。点上蜡烛,倒入喜欢的精油或是入浴剂,打开音乐,让它们和热腾腾的蒸汽一起将自己包围,谁说这不是一场回归自我、放松解压,并引导入睡的仪式。而升高的水温和水压也会为身体带来些许疲劳感,那还等什么,赶快睡吧!
10.选择你自己的方式入睡。
虽然我们说了很多,但生物的自然性注定也许以上种种都不一定适合你。有的人可以数羊,有的人床头柜前摆苹果就可以睡,有的人从来没有失眠过!所以,如果你无论如何都睡不着,不必焦躁,静下心来想一下,你失眠的困扰究竟在哪里?找知心朋友聊聊或者不妨咨询一下专业医师,有时候心结打开了,就什么都打开了。
一月游记:福建四日游
补一月份的游记…
原计划五、六月份游厦门,临行之前,都在准备着取消预定的行程,但有些事终未能如愿,最后,多了这趟旅行…
26号,公司年终放假,下午,发高烧……晚上陪着俩同事逛街,路过西城路时,想起了要去买点药,顺便量个体温,一量之下,倒把那护士小MM一惊,也许是怎么看着都不像是一个发烧39.x度的人吧,还有闲情跟着同事吃饭逛街泡脚…
28号,拖着还有38度多的身体启程,温州气温一直在0-5℃,抵达厦门的时候,一时之间,倒觉得衣服穿太多了,跟温州竟有着十几度的温差,达到了18℃,对于高烧的我,没有啥比这么好的天气,更让人开心了。
到了入住的中山汉庭,稍做休息重新出门去鼓浪屿已经是三点多了…
Day 1:抵达,鼓浪屿

中山公园前公交站的公园出入口,四日之间,公交坐的次数不少,嘿嘿…

张学友1/2世纪演唱会厦门站的海报,温州的三月四号,马上就可以看到了。
鼓浪屿上的景,物…
来的迟,天黑的快,最要命的是在路上发现自己相机的充电器没有,而电池剩余的电量仅有可怜的42%,能不打闪光灯就不打,再加个是个病人,不敢吹风,天黑了就早早地回宾馆养病了…
Day 2:高烧奇迹般地好了,哈哈,下午正好要去泡温泉,万幸,万幸。
在汉庭门口的公交站,坐车到了厦大白城站,路边有很多租借自行车的,嗯,搞了一辆骑环岛路,自行车没变速,脖子上挂着单反,骑着真有点辛苦。

早上出门太迟,骑车总共只花了四十几分钟的时间,往匆忙赶去轮渡码头找下午要跟的团…

日月谷温泉很漂亮,但没法多拍照,只有在出来的时候,拍了一张留作纪念。
晚上从日月谷回来,后来看着前一日顺手在机场拿的地图,跑出去想找上面所写的莲欢海蛎煎、西门土笋冻,竟然一个都找不到…残念啊
Day 3:漳州市南靖土楼
哎,Ahlang不得不说,这古代人结个婚,真是太太草率了…
Day 4:鼓浪屿,归程
厦门回温州一个小时,机场回永嘉,折腾了两个小时,大年二八,终于回来了。好怀念上一年一出去就是十几天的日子啊…
厦门很漂亮,只是,独行过于寂寞了…
PsTools
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
PsTools
Copyright © 1999-2005 Mark Russinovich
Sysinternals – www.sysinternals.com
The Windows NT and Windows 2000 Resource Kits come with a number of command line tools that help you administer your Windows NT/2K systems. Over time, I’ve grown a collection of similar tools, including some not included in the Resource Kits. What sets these tools apart is that they all allow you to manage remote systems as well as the local one. The first tool in the suite was PsList, a tool that lets you view detailed information about processes, and the suite is continually growing. The “Ps” prefix in PsList relates to the fact that the standard UNIX process listing command-line tool is named “ps”, so I’ve adopted this prefix for all the tools in order to tie them together into a suite of tools named PsTools.
All of the utilities in the PsTools suite work on Windows NT, Windows 2000, Windows XP, and Server 2003 and none of the tools requires any special installation. You don’t even need to install any client software on the remote computers at which you target them. Run them by typing their name and any command-line options you want. To show complete usage information, specify the “-?” command-line option.
The tools included in the PsTools suite are:
PsExec – execute processes remotely
PsFile – shows files opened remotely
PsGetSid – display the SID of a computer or a user
PsInfo – list information about a system
PsKill – kill processes by name or process ID
PsList – list detailed information about processes
PsLoggedOn – see who’s logged on locally and via resource sharing
PsLogList – dump event log records
PsPasswd – changes account passwords
PsService – view and control services
PsShutdown – shuts down and optionally reboots a computer
PsSuspend – suspend and resume processes
Requirements
Some of the tools require that the default admin$ share be available and/or that the Remote Registry service be active.
License
No part of PsTools may be redistributed in any way, or by any means, without the prior written permission of Sysinternals LLC. If you wish to redistribute
PsTools, for example for use within an organization, please contact licensing@sysinternals.com.
PsExec
Utilities like Telnet and remote control programs like Symantec’s PC Anywhere let you execute programs on remote systems, but they can be a pain to set up and require that you install client software on the remote systems that you wish to access. PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec’s most powerful uses include launching interactive command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems.
Installation
Copy PsExec onto your executable path. Typing “psexec” displays its usage syntax.
Usage
usage: [\\computer[,computer[,...] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-i [session]][-c [-f|-v]][-d][-w directory][-<priority>][-a n,n,...>] cmd [arguments]
| computer | Direct PsExec to run the application on the computer or computers specified. If you omit the computer name PsExec runs the application on the local system and if you enter a computer name of \\* then PsExec executes the commands on all computers in the current domain. | |
| @file | PsExec will execute the command on each of the computers listed in the file. | |
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| -s | Run remote process in the System account. | |
| -e | Loads the specified account’s profile. | |
| -i | Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session. | |
| -l | Run process as limited user (strips the Administrators group and allows only privileges assigned to the Users group). On Windows Vista the process runs with Low Integrity. | |
| -c | Copy the specified program to the remote system for execution. If you omit this option then the application must be in the system’s path on the remote system. | |
| -n | Specifies timeout in seconds connecting to remote computers. | |
| -f | Force the copy of the specified program if it already exists on the remote system. | |
| -v | Copy the specified file only if it has a higher version number or is newer on than the one on the remote system. | |
| -d | Don’t wait for application to terminate. Only use this option for non-interactive applications. | |
| -w | Set the working directory of the process (relative to the remote computer). | |
| -x | Display the UI on the Winlogon desktop. | |
| -priority | Specifies -low, -belownormal, -abovenormal, -high or -realtime to run the process at a different priority. | |
| -a | Separate processors on which the application can run with commas where 1 is the lowest numbered CPU. For example, to run the application on CPU 2 and CPU 4, enter: “-a 2,4″ | |
| arguments | Arguments to pass (note that file paths must be absolute paths on the target system) |
You can enclose applications that have spaces in their name with quotation marks e.g. “psexec \\marklap “c:\long name\app.exe”. Put arguments directed at the application outside of the parenthesis. Input is only passed to the remote system when you press the enter key, and typing Ctrl-C terminates the remote process.
If you omit a username the remote process runs in the same account from which you execute PsExec, but because the remote process is impersonating it will not have access to network resources on the remote system. When you specify a username the remote process executes in the account specified, and will have access to any network resources the account has access to. Note that the password is transmitted in clear text to the remote system.
Examples
The following command launches an interactive command prompt on \\marklap:
psexec \\marklap cmd
This command executes IpConfig on the remote system with the /all switch, and displays the resulting output locally:
psexec \\marklap ipconfig /all
This command copies the program test.exe to the remote system and executes it interactively:
psexec \\marklap -c test.exe
Specify the full path to a program that is already installed on a remote system if its not on the system’s path:
psexec \\marklap c:\bin\test.exe
PsFile
The “net file” command shows you a list of the files that other computers have opened on the system upon which you execute the command, however it truncates long path names and doesn’t let you see that information for remote systems. PsFile is a command-line utility that shows a list of files on a system that are opened remotely, and it also allows you to close opened files either by name or by a file identifier.
Installation
Copy PsFile onto your executable path and type “psfile”.
Usage
The default behavior of PsFile is to list the files on the local system that are open by remote systems. Typing a command followed by “-?” displays information on the syntax for the command.
usage: psfile [\\RemoteComputer [-u Username [-p Password]]] [[Id | path] [-c]]
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| Id | Identifier (as assigned by PsFile) of the file for which to display information or to close. | |
| Path | Full or partial path of files to match for information display or close. | |
| -c | Closes the files identifed by ID or path. |
PsGetSid
Have you performed a rollout and only to discover that your network might suffer from the SID duplication problem? In order to know which systems have to be assigned a new SID (using a SID updater like Sysinternals’ own NewSID) you have to know what a computer’s machine SID is. Up until now there’s been no way to tell the machine SID without knowing Regedit tricks and exactly where to look in the Registry. PsGetSid makes reading a computer’s SID easy, and works across the network so that you can query SIDs remotely. PsGetSid also lets you see the SIDs of user accounts.
Installation
Copy PsPsGetSid onto your executable path and type “psgetsid”.
Usage
Usage: psgetsid [\\computer[,computer[,...] | @file [-u username [-p password]]] [account]
If you want to see a computer’s SID just pass the computer’s name as a command-line argument. If you want to see a user’s SID, name the account (e.g. “administrator”) on the command-line and an optional computer name.
Specify a user name if the account you are running from doesn’t have administrative privileges on the computer you want to query. If you don’t specify a password as an option PsGetSid will prompt you for one so that you can type it in without having it echoed to the display.
PsInfo
PsInfo is a command-line tool that gathers key information about the local or remote system, including the type of installation, kernel build, registered organization and owner, number of processors and their type, memory size, the install date of the system, and if it’s a trial version, the expiration date. PsInfo command-line switches also let you view installed hotfixes and software applications.
Installation
Copy PsInfo onto your executable path and type psinfo.
Usage
By default PsInfo shows information for the local system. Specify a remote computer name to obtain information from the remote system. Since PsInfo relies on remote Registry access to obtain its data, the remote system must be running the Remote Registry service and the account from which you run PsInfo must have access to the HKLM\System portion of the remote Registry.
In order to aid in automated Service Pack updates, PsInfo returns as a value the Service Pack number of system (e.g. 0 for no service pack, 1 for SP 1, etc).
usage: psinfo [\\computer[,computer[,...] | @file [-u username [-p password]]] [-h] [-s] [-d] [-c [-t delimter]]
| computer | Run the command on the computer or computers specified. If you omit the computer name the command runs on the local system and if you enter a computer name of \\* then the command runs on all computers in the current domain. | |
| @file | Execute the command on each of the computers listed in the file. | |
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| -h | Shows installed hotfixes. | |
| -s | Shows installed software. | |
| -d | Show disk volume information. | |
| -c | Dump in CSV format. | |
| -t | The default delimiter for the -s option is a comma, but can be overriden with the specified character. |
PsKill
Windows NT/2000 does not come with a command-line ‘kill’ utility. You can get one in the Windows NT or Win2K Resource Kit, but the kit’s utility can only terminate processes on the local computer. PsKill is a kill utility that not only does what the Resource Kit’s version does, but can also kill processes on remote systems. You don’t even have to install a client on the target computer to use PsKill to terminate a remote process.
Installation
Copy PsKill onto your executable path and type pskill with command-line options defined below.
Usage
Running PsKill with a process ID directs it to kill the process of that ID on the local computer. If you specify a process name PsKill will kill all processes that have that name.
usage: pskill [-t] [\\computer [-u username] [-p password]] <process name | process id>
| -t | Kill the process and its descendants. | |
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| process id | Specifies the process ID of the process you want to kill. | |
| process name | Specifies the process name of the process or processes you want to kill. |
PsList
Most UNIX operating systems ship with a command-line tool called “ps” (or something equivalent) that administrators use to view detailed information about process CPU and memory usage. Windows NT/2K comes with no such tool natively, but you can obtain similar tools with the Windows NT Workstation or Server Resource Kits. The tools in the Resource Kits, pstat and pmon, show you different types of information, and will only display data regarding the processes on the system on which you run the tools.
PsList is utility that shows you a combination of the information obtainable individually with pmon and pstat. You can view process CPU and memory information, or thread statistics. What makes PsList more powerful than the Resource Kit tools is that you can view process and thread statistics on a remote computer.
Installation
Copy PsList onto your executable path and type “pslist”.
Usage
The default behavior of PsList is to show CPU-oriented information for all the processes that are currently running on the local system. The information listed for each process includes the time the process has executed, the amount of time the process has executed in kernel and user modes, and the amount of physical memory that the OS has assigned the process. Command-line switches allow you to view memory-oriented process information, thread statistics, or all three types of data.
usage: pslist [-?] [-d] [-m] [-x][-t][-s [n] [-r n] [\\computer [-u username] [-p password]] [[-e] name | pid]
| -d | This switch has PsList show statistics for all active threads on the system, grouping threads with their owning process. | |
| -m | This switch has PsList show memory-oriented information for each process, rather than the default of CPU-oriented information. | |
| -x | With this switch PsList shows CPU, memory and thread information for each of the processes specified. | |
| -t | Show process tree. | |
| -s [n] | Run in task-manager mode, for optional seconds specified.
Press Escape to abort. |
|
| -r n | Task-manager mode refresh rate in seconds (default is 1). | |
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| name | Instead of listing all the running processes in the system, this parameter narrows PsList’s scan to those processes that begin with the name process. Thus:
pslist exp would statistics for all the processes that start with “exp”, which would include Explorer. |
|
| -e | Use the -e switch if you want the process name to be treated as an exact match instead of a partial match. | |
| pid | Instead of listing all the running processes in the system, this parameter narrows PsList’s scan to the process that has the specified PID. Thus:
pslist 53 would dump statistics for the process with the PID 53. |
PsLoggedOn
You can determine who is using resources on your local computer with the “net” command (“net session”), however, there is no built-in way to determine who is using the resources of a remote computer. In addition, NT comes with no tools to see who is logged onto a computer, either locally or remotely. PsLoggedOn is an applet that displays both the locally logged on users and users logged on via resources for either the local computer, or a remote one. If you specify a user name instead of a computer, PsLoggedOn searches the computers in the network neighborhood and tells you if the user is currently logged on.
PsLoggedOn’s definition of a locally logged on user is one that has their profile loaded into the Registry, so PsLoggedOn determines who is logged on by scanning the keys under the HKEY_USERS key. For each key that has a name that is a user SID (security Identifier), PsLoggedOn looks up the corresponding user name and displays it. To determine who is logged onto a computer via resource shares, PsLoggedOn uses the NetSessionEnum API. Note that PsLoggedOn will show you as logged on via resource share to remote computers that you query because a logon is required for PsLoggedOn to access the Registry of a remote system.
Installation
Copy PsLoggedOn onto your executable path and type “psloggedon”.
Usage
usage: psloggedon [-?] [-l] [-x] [\\computername | username]
| -l | Shows only local logons instead of both local and network resource logons. | |
| -x | Don’t show logon times. | |
| \\computername | Specifies the name of the computer for which to list logon information. | |
| username | If you specify a user name PsLoggedOn searches the network for computers to which that user is loggedon. This is useful if you want to ensure that a particular user is not logged on when you are about to change their user profile configuration. |
PsLogList
The Resource Kit comes with a utility, elogdump, that lets you dump the contents of an Event Log on the local or a remote computer. PsLogList is a clone of elogdump except that PsLogList lets you login to remote systems in situations your current set of security credentials would not permit access to the Event Log, and PsLogList retrieves message strings from the computer on which the event log you view resides.
Installation
Copy PsLogList onto your executable path and type “psloglist”.
Usage
The default behavior of PsLogList is to show the contents of the System Event Log on the local computer, with visually-friendly formatting of Event Log records. Command line options let you view logs on different computers, use a different account to view a log, or to have the output formatted in a string-search friendly way.
usage: psloglist [-?] [\\computer[,computer[,...] | @file [-u username [-p password]]] [-s [-t delimiter]] [-m #|-n #|-h #|-d #|-w][-c][-x][-r][-a mm/dd/yy][-b mm/dd/yy][-f filter] [-i ID[,ID[,...] | -e ID[,ID[,...]]] [-o event source[,event source][,..]]] [-q event source[,event source][,..]]] [-l event log file] <eventlog>
| @file | Execute the command on each of the computers listed in the file. | |
| -a | Dump records timestamped after specified date. | |
| -b | Dump records timestamped before specified date. | |
| -c | Clear the event log after displaying. | |
| -d | Only display records from previous n days. | |
| -e | Exclude events with the specified ID or IDs (up to 10). | |
| -f | Filter event types with filter string (e.g. “-f w” to filter warnings). | |
| -g | Export an event log as an evt file. This can only be used with the -c switch (clear log). | |
| -h | Only display records from previous n hours. | |
| -i | Show only events with the specified ID or IDs (up to 10). | |
| -l | Dump records from the specified event log file. | |
| -m | Only display records from previous n minutes. | |
| -n | Only display the number of most recent entries specified. | |
| -o | Show only records from the specified event source (e.g. \”-o cdrom\”). | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| -q | Omit records from the specified event source or sources (e.g. \”-o cdrom\”). | |
| -r | Dump log from least recent to most recent. | |
| -s | This switch has PsLogList print Event Log records one-per-line, with comma delimited fields. This format is convenient for text searches, e.g. psloglist | findstr /i text, and for importing the output into a spreadsheet. | |
| -t | The default delimeter is a comma, but can be overriden with the specified character. | |
| -u | Specifies optional user name for login to remote computer. | |
| -w | Wait for new events, dumping them as they generate. | |
| -x | Dump extended data. | |
| eventlog | By default PsLogList shows the contents of the System Event Log. Specify a different event log by typing in the first few letters of the log name, application, system, or security. |
PsPasswd
Systems administrators that manage local administrative accounts on multiple computers regularly need to change the account password as part of standard security practices. PsPasswd is a tool that lets you change an account password on the local or remote systems, enabling administrators to create batch files that run PsPasswd against the computer’s they manage in order to perform a mass change of the administrator password.
Installation
Copy PsPasswd onto your executable path and type pspasswd with command-line options defined below.
Usage
You can use PsPasswd to change the password of a local or domain account on the local or a remote computer.
usage: pspasswd [\\computer[,computer[,...] | @file [-u username [-p password]]] Username [NewPassword]]
| computer | Run the command on the computer or computers specified. If you omit the computer name the command runs on the local system and if you enter a computer name of \\* then the command runs on all computers in the current domain. | |
| @file | Execute the command on each of the computers listed in the file. | |
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| Username | Specifies name of account for password change. | |
| NewPassword | New password. If ommitted a NULL password is applied. |
PsService
PsService is a service viewer and controller for Windows NT/2K. Like the SC utility that’s included in the Windows NT and Windows 2000 Resource Kits and Windows XP, PsService displays the status, configuration, and dependencies of a service, and allows you to start, stop, pause, resume and restart them. Unlike the SC utility, PsService enables you to logon to a remote system using a different account, for cases when the account from which you run it doesn’t have required permissions on the remote system. PsService includes a unique service-search capability, which identifies active instances of a service on your network. You would use the search feature if you wanted to locate systems running DHCP servers, for instance.
Finally, PsService works on both NT 4 and Windows 2000, whereas the Windows 2000 Resource Kit version of SC requires Windows 2000, and PsService doesn’t require you to manually enter a “resume index” in order to obtain a complete listing of service information.
Installation
Copy PsService onto your executable path and type “psservice”.
Usage
The default behavior of PsService is to display the configured services (both running and stopped) on the local system. Entering a command on the command-line invokes a particular feature, and some commands accept options. Typing a command followed by “-?” displays information on the syntax for the command.
usage: psservice [\\computer [-u username] [-p password]] <command> <options>
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| query | Displays the status of a service | |
| config | Displays the configuration of a service | |
| setconfig | Specify the start type (auto, demand, disabled) of a service. | |
| start | Starts a service | |
| stop | Stops a service | |
| restart | Stops and then restarts a service | |
| pause | Pauses a service | |
| cont | Resumes a paused service | |
| security | Dumps the service’s security descriptor | |
| depend | Lists the services dependent on the one specified | |
| find | Searches the network for the specified service |
PsShutdown
PsShutdown is a similar to the Resource Kit and Windows XP shutdown tools, providing you the same options and ability to shutdown, and optionally reboot, local and remote Windows NT/2K/XP/2003 systems. It also provided additional options that make it more powerful and flexible.
Installation
Copy PsShutdown onto your executable path and type “psshutdown” with command-line options defined below.
Usage
You can use PsShutdown to initiate a shutdown of the local or a remote computer, abort an imminent shutdown, logoff a console user, or lock the desktop.
usage: psshutdown [\\computer[,computer[,...] | @file [-u username [-p password]]] -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-n s] [-t nn|h:m] [-e [u|p]:xx:yy] [-m "message"]
| computer | Run the command on the computer or computers specified. If you omit the computer name the command runs on the local system and if you enter a computer name of \\* then the command runs on all computers in the current domain. | |
| @file | Execute the command on each of the computers listed in the file. | |
| -u | Specifies optional user name for login to remote computer | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| -a | Aborts a shutdown (only possible while a countdown is in progress) | |
| -c | Allow the shutdown to be aborted by the interactive user | |
| -e | Shutdown reason code. Specify ‘u’ for user reason codes and ‘p’ for planned shutdown reason codes. xx is the major reason code (must be less than 256) yy is the minor reason code (must be less than 65536) |
|
| -f | Forces all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data | |
| -h | Hibernate the computer | |
| -k | Poweroff the computer (reboot if poweroff is not supported | |
| -l | Lock the computer | |
| -m | This option lets you specify a message to display to logged-on users when a shutdown countdown commences | |
| -n | Specifies timeout in seconds connecting to remote computers | |
| -o | Logoff the console user | |
| -r | Reboot after shutdown | |
| -s | Shutdown without poweroff | |
| -t | Specifies the countdown in seconds until the shutdown (default: 20 seconds) or the time of shutdown in 24 hour notation | |
| -v | Display message for the specified number of seconds before the shutdown. If you omit this parameter the shutdown notification dialog displays and specifying a value of 0 omits the dialog. |
PsSuspend
PsSuspend lets you suspend processes on the local or a remote system, which is desirable in cases where a process is consuming a resource (e.g. network, CPU or disk) that you want to allow different processes to use. Rather than kill the process that’s consuming the resource, suspending permits you to let it continue operation at some later point in time.
Installation
Copy PsSuspend onto your executable path and type “pssuspend” with command-line options defined below.
Usage
Running PsSuspend with a process ID directs it to suspend the process of that ID on the local computer. If you specify a process name PsSuspend will suspend all processes that have that name. Specify the -r switch to resume suspended processes.
usage: pssuspend [-r] [\\computer [-u username] [-p password]] <process name | process id>
| -r | Resumes suspended processes. | |
| -u | Specifies optional user name for login to remote computer. | |
| -p | Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. | |
| process id | Specifies the process ID of the process you want to suspend. | |
| process name | Specifies the process name of the process or processes you want to suspend. |
张学友1/2世纪演唱会-温州站
演出时间:2011年3月4日 20:00
演出地点:温州体育中心体育场
售票热线:400-6078-400
售票网站:www.a8wz.com
票价:内场:2000、1680、1280、880 看台:580、480、380、280、180
Jacky,Jacky,Jacky他又回来啦~~~
继2007年“学友光年”温州演唱会后,3月4日,张学友将再度踏上温州体育中心的舞台,延续他“1/2世纪”演唱会的经典旅程。从主办方了解到,本次演唱会今日正式开票。
对张学友来说,这或将是他的第600场个唱了。出道近30年,被封鼎“歌神”称谓,通吃了60后、70后、80后三个年龄层,学友的魅力可谓无人能抵。然而对于所有喜欢学友的歌迷来说,这很可能是最后一次亲眼目睹他站在舞台上卖力“吆喝”了。毕竟年满50岁,你还能期待四年后与他再聚首吗?
继1月初上海连唱五场后,本周一学友又结束了广州五场,明日还将在北京五棵松体育馆连开三场。据悉,各地演出商曾为了拿到当地的演出承办权,可谓是使出了浑身解数。此次巡演浙江已基本确定三站,温州、台州和杭州,3月4日温州演唱会将是浙江首站,主办方择于今日正式开票,票价从看台最低280元到内场最高2000元不等,广大歌迷可以前往位于奥林匹克大酒店535房间的总票房各大票务公司购票,也可以登陆新票网:www.a8wz.com在线订票。目前,演唱会的门票预订量已达180万元,主办方浙江传眉心秀不仅信心满满,同时还推出了一系列经典“招牌”。本场演出所有内场门票都采用“新年礼遇版·红封票套”,红色且附纱膜的外包里面印制有张学友的亲笔签名,尊献新年礼遇,同时情人节前夕主办方还将在全市发放二万份“爱情请柬”,并特别推出限量100套“情侣套票”。
[转]让IT人士远离慢性疲劳
转载自cnbeta
我们都不得不承认这样的一个事实:我们很累。快节奏的生活迫使我们把体力和精力都用到了极限,慢性疲劳淹没了我们。在所有来访的职场人当中,IT行业的从业人员无疑是慢性疲劳症状最为明显的一部分人群。面对这样的情况,考虑IT行业的工作特性,听心推荐大家试一试认知行为疗法吧,在战胜疲劳的诸多方法里,它的效果非常不错,又可以独立完成。
有越来越多的职场人士走进心理咨询室,他们传递和表达着这样的一个信息:我很累,很疲倦,没有动力也缺乏激情。而在这些人群当中,以IT行业的从业人士症 状尤为凸显,治疗过程尤其艰难。行业环境、竞争压力、前途迷惘、一成不变、缺少变化……等等特性,造就了IT行业人士成为了慢性疲劳的根据地,很多人发现 自己的身体好像被抽离了力量和勇气,变得疲劳、倦怠、对生活缺乏期待,由此而带来的职业倦怠、生活无望,压抑、苦闷等等负面情绪充斥着整个行业,让这个朝 阳行业越来越具有两面性——社会意义上的朝阳和心理意义上的低谷。
面对这样的一种境况,除了走进心理咨询室之外,有没有其他的办 法赶走疲劳?我有一位熟识的朋友Andy,恰好在这样的行业之中,他说:“我很累,可是我去哪儿找时间到你那儿解压、放松啊?不是担心经济上的,而是没有 那个时间和精力。除非我愿意放弃现在的工作,放弃现在的收入,承担随时有可能被挤掉的风险。”Andy所说的未必不是危言耸听,但至少说明了一个现实,那 就是如果慢性疲劳还没有彻底摧毁人们的底线,那么走进咨询室寻找专业帮助,并不会成为人们的选择。更好的选择,是有一种办法,可以在现有的环境和条件下, 让我们独立的完成治疗过程,并且不会花费过多的精力和时间。因此,听心推荐大家试一试认知行为疗法。
从认知行为治疗的角度看,慢 性疲劳不是从天上掉下来的,而是我们生活中发生的系列事件的最终结果。我们遭受的全部压力再加上不良生活习惯,总起来成为了一个负数:我们的精神和身体压 力太大,导致失去平衡,失衡的生活又导致了慢性疲劳的出现。从原理上看,就这么简单。而想要消除慢性疲劳就一定要找到真正的根源:制造疲劳的罪魁祸首是我 们理解和处理生活问题和健康问题的态度和方法。我们如果细心一些,可以发现,那些在生活中经常感觉疲劳的人,常出现很多种非理性、非现实思维。而研究结果 也一再表明,认知重构法可以减轻疲劳并帮助我们恢复生活平衡。而总结起来,这个适合我们的,可以独立完成又能够根本上解决慢性疲劳恢复每日能量的解决方案 就是:改变思维方式。我们的疲劳是可以医治的,因为我们的思维方式和行为都是可以改变的。
认知扭曲:非理性思维
越来越多的健康心理学家们发现,人们必须从多种角度来审视生活,只有这样才能找到问题的根源,否则就永远是“头疼医头脚疼医脚”。引起慢性疲劳的主要原 因之一是认知扭曲,或者可称为(部分或全部)建立在假象、谬误及违背生活现实的臆断之上的认识。疲劳与不切实际的认知和行为之间存在着非常紧密的关系,而 这种认知与行为在妨碍我们获得简单与平衡的生活。因此,克服日常疲劳的方法就是认知重构法。
认知重构法的基本观点是:你对周围人 和事件的解释,而不是人和事件本身,会影响你的情绪和你作出的反应——人在烦躁不安的时候,往往坚信事情非常糟糕,结果非常可怕。心理学家认为,这一思维 过程是对事情的“恶化”或“灾难化”。这就是大多数人都可能有的非理性思维——当然,这里的非理性只是“不切实际”的意思。现在让我们来认识一下种种非理 性思维:
1、指责:没有理由地责备他人
2、非此即彼型思维:把生活看得要么阳光灿烂,要么漆黑一片
3、诅咒(消极否定):对自己、他人及社会过分苛求
4、情绪化推理:认为自己的情绪状态就是社会现实的反应
5、我一分钟也受不了(极低的挫折耐受力):当自己的需求没有得到满足时极容易灰心丧气
6、仓促下结论:缺乏必要的证据就对人和事下结论
7、扩大化(强调消极面,使之灾难化):过分夸大形势的消极面
8、心理过滤:过分注意某些细节,却忽略同一事件中的其他重要细节
9、猜测他人的想法:以为自己知道他人的想法、感受和计划
10、缩小化(忽略积极因素):不适当地轻视自己的优点或成就
11、过分概括:使用“从来不”“总是”这类词语,把一个人的特点泛化为所有人的特点
12、完美主义:要求世人所有人和事都完美无缺,只能使人过多地消耗能量,产生疲劳
13、归罪于个人:因为一些消极事件责备自己
非理性思维的另一种形式是认知阻碍。它的表现形式是常使用“要是……我该怎么办?”“我绝不能……”“要是……那可糟透了”“哎呀不行!”这些想法常被 不同的医生或作者冠以不同的名称,包括:非理性思维、认知扭曲、疯狂制造者、消极想法等。但有一点是共同的:这些想法都会阻碍你实现自己的目标,也经不起 理智的思考。也会让你更紧张、更焦虑、还会引起抑郁、愤怒、内疚以及羞愧等消极情感,让我们更加疲惫。
质问非理性思维
我们已经认识到,认知扭曲是导致长期疲劳的主要原因,我们能做什么呢?首先,当然是提出质问。一旦我们向非理性思维提出了挑战和质疑,我们就开启了理性之门。
为了克服非理性思维,必须接受一个事实:你是一个人,有时会犯错误。承认了自己的人性,就迈出了第一步,以逐步摆脱那些消耗你身体能量的忧虑和烦恼,比如要求自己必须忙碌不停,要求所有人都喜欢自己等。
其次,你得放弃过分的要求。把什么应该如何、一定要如何等丢到脑后去吧,然后你才能用一种更实际的态度接受现实,并在眼前的事物当中作出取舍。要学会对 自己说,很多泥想要的东西其实并不需要,你有能力忍受失败和拒绝,同时,不管他人做什么与不做什么、做得好与不好斗接受他/她。这意味着,即使他/她的 (以及自己的)行为不完美,你也能相信人本质上是好的,能够接受完整的他人和完整的自己。不评价他人,不评价自己,只评价人们的行动和事情。
再次,不要再说生活中的烦恼“太可怕了”,要有“反灾难化思维”。生活中发生的很多事并非大难临头、一片黑暗。确实有些事儿让你紧张焦虑,比如说亲人得了病。但这些让你紧张焦虑的事情往往是运气不好,事与愿违,而不是什么了不起的大灾难。
最后,无条件积极思考。应该承认,所有问题、冲突、压力和烦恼实际上都是促使自己成长的机会,而不是对你的打击!换句话说,要控制自己的思维,并且对自己说,你有能力对发生的一切进行反思,这样你才能向前看,并且理性地处理所有事情。
挑战并清除非理性思维的整个过程包括3个基本步骤——
第一步:找出自己的不健康的非理性思维,对其加以反思
第二步:向它提出挑战和质疑
第三步:建立新的理性思维来代替非理性思维
可以用下面这些话来提出问题:哪条规定说……?我有什么证据来证明……?谁说的……?即使……谁会在意?如果……又能怎样?如果……会发生什么最坏结果?我为什么需要……?
经常做这样的练习,我们可以看到,把事实和不合逻辑的猜想和顾虑区分开来以后,原本认为非常可怕的事情不那么可怕。认知行为疗法就是要帮助你认识到,为了长远利益,经受暂时的痛苦是值得的,并且,这痛苦本身,也没什么大不了的。
打断非理性思维
除了质问,还有一种方法,就是“打断非理性思维”。这种方法能有效阻止你小题大做。具体说,在你进行非理性思维的时候,马上用一个动作或语言打断这一思维,比如拍拍手、打响指、或者大喝一声“STOP”。你要立刻停止错误的思维,为实际而有意义的想法打开大门。
一旦意识到自己内心的想法和说法不现实、不理性,你就可以进行重新编辑,删除那些挑剔的、焦虑的、内疚的,代之以理性的、能增强自信的想法。你要加倍努力改变思维模式,发展心中最美好的思想和情感。
简单的说,首先要找出非现实的想法或者非理性的预期,向它挑战,然后打断这种思路。比如说:
扭曲的认知:我必须把屋子弄得一尘不染,要不然我就会受到细菌的感染并且……
打断思路:停止!
看起来很简单,是吗?但是非常有效。如果你头脑中产生了有害的想法,影响你获得幸福保持平衡,打断思路这种方法能起到它的作用。它会让你学会立即停止非 理性思维或者扭曲认知,然后可以休息几秒钟,或者放松一会儿。一旦发现你头脑里有这些不好的想法,就应该用此方法打断它。
纳入新能力
努力改变不健康的思维模式,还意味着你需要练习、练习、再练习,逐渐把一种新能力纳入到自己的神经系统。
我们都曾经练习过用键盘打字,在最开始的时候,双手不听使唤,任何一个动作都需要大脑有意识地思考,需要付出大量的努力才能熟练起来,而一旦熟练起来, 我们的注意力就可以放松了。学习并掌握认知重构技巧也是同样的道理,随着不断的应用,我们会日益熟练,能够控制自己的大脑,阻止认知扭曲的产生。而且,它 们产生的频率也将随着时间而减少。一旦我们使自己的神经系统接受了这样的方法,它就会变成一种本能的反应,不论何时需要,就会自动弹出!
是的,认知疗法的确需要一个持续的坚持和强大的动力,需要我们学会进行自我反思,需要我们持之以恒的耐力和毅力。但它的回报是丰厚的,那就是理性、简 约、平衡和充沛的体能,我们会不再疲惫,充满力量,面对生活也能够积极和乐观。而这些,恰恰是整个IT行业、甚至是更多的职场人缺乏、匮乏的能力。






































