Quick Add Links to Windows Vista Explorer Favorite Links
If you’ve used Windows Vista for 5 minutes, you’ll have seen the Favorite Links when browsing around your filesystem. What is annoying is that by default the favorite links doesn’t include enough useful links.
Here’s the default links list (I’m sure you have seen this)
If you want to add a new link to the links bar, all you have to do is drag and drop the folder onto the links bar. I’m going to add my Computer link to the menu:
Now, it shows up in the list:
Much better!
Managing your links is extremely simple. Just open up your home directory by clicking on your icon on the start menu. You’ll see the LInks folder:
This folder contains all of the shortcuts to your favorite locations.
To remove an item from the list, you can either right-click the item and choose Remove Link, or just go to your Links folder and delete it from there.
Kindle On PC
Little tip on outlook attachments
Use command's output as input
Where is color of ls command defined?
Where is color of ls command defined?
by NIXCRAFT · 5 COMMENTS
1) Configuration file for the ls color command is /etc/DIR_COLORS for Linux. You can modify those colours if you want.
2) Here is list of most common colors: (RHEL 3.x/FCx/RH and other linux distros)
Executable files: Green
* Normal file : Normal
* Directory: Blue
* Symbolic link : Cyan
* Pipe: Yellow
* Socket: Magenta
* Block device driver: Bold yellow foreground, with black background
* Character device driver: Bold yellow foreground, with black background
* Orphaned syminks : Blinking Bold white with red background
* Missing links ( - and the files they point to) : Blinking Bold white with red background
* Archives or compressed : Red (.tar, .gz, .zip, .rpm)
* Image files : Magenta (.jpg, gif, bmp, png, tif)
3) They are stored in special shell variable called LS_COLORS
4) You can customized them in /etc/DIR_COLORS or file pointed by shell variable COLORS.
5) To customized colors you must use special string combination:
FILE-TYPE Attribute codes: Text color codes:Background color codes
Where,
- FILE-TYPE: is file type like DIR (for directories)
- Attribute codes:
- 00=none
- 01=bold
- 04=underscore
- 05=blink
- 07=reverse
- 08=concealed
- Text color codes:
- 30=black
- 31=red
- 32=green
- 33=yellow
- 34=blue
- 35=magenta
- 36=cyan
- 37=white
- Background color codes:
- 40=black
- 41=red
- 42=green
- 43=yellow
- 44=blue
- 45=magenta
- 46=cyan
- 47=white
For example to define Bold Blue color for DIR file type, entry should look as follows:
DIR 01;34
6) Let us modify dir color on Red Hat (Fedora) Linux:
# vi /etc/DIR_COLORS
Modify DIR entry
From:
DIR 01;34 # default is Bold blue with black background
To:
DIR 01;34;41 # NEW default is Bold blue with RED background
Save file.
7) Logout and login again, Please note that if you have shell variable defined COLORS then use that file (use echo $COLORS to find it out).
todo.txt
Search in cygwin
Open Windows Explorer in Cygwin
Run a Command as Administrator from the Windows 7 / Vista Run box
If you are a command line junkie like me, and have been testing out Windows 7 or Vista… one of the first things you’ll notice is that there is no way to run a command from the run box in “Administrator” mode. Until now.
To try this out, go to the run box and type in something (cmd, for example)
Now instead of hitting the Enter key, use Ctrl+Shift + Enter. You will be prompted with the obnoxious User Account Control dialog… but it will then open up a command prompt in Administrator mode.
Hint: You can use Alt + C to quickly close the User Account Control dialog in Vista, or Alt+Y in Windows 7.
HTML Parser
cygwin
Search multiple lines
CVS commands
Some Eclipse Text Edit Shortcut
Console2
I am using Console2, but there is one problem really bother me: I could display previous commands. When I hit Up arrow key, it always scroll the screen up. Finally, I found how to fix this: Settings->Hotkeys, uncheck "Use scroll lock for scrolling".
Now, I am happy.
Ant
So Ant In Action.
Build File contains ONE project.
Each project contains MULTIPLE targets.
Target contains tasks.
Tasks do the work.
You could invoke any of the tasks individually.
<target name="execute" depends="compile">
<java classname="org.antbook.welcome.Main" classpath="build/classes">
<arg value="a"/>
<arg value="b"/>
<arg file="."/>
</java>
</target>
ant -buildfile build.xml compile <==> ant compile
That's the default thing that I have been talking about, when you use ant without specifying build file name, ant will by default use file name build.xml.
Eclipse has a good integration with Ant, so you could invoke build.xml directly from Eclipse.
ant command-line options:
-help, -h: list the options Ant supports.
-Dproperty=value: set a property to a value. for example: ant -Dhost=localhost. set property host=localhost.
-buildfile
-keep-going, -k: when one target on the command line fails, still run other targets.
-logfile
-verbose, -v: Print verbose output for better debugging.
-diagnostics: Print information that might be helpful to diagnose or report problems.
-debug, -d: Print debugging information.
-logger
-propertyfile
-quiet, -q: Run a quiet build: only print errors.
Just as Java has classes and variables, Ant has datatypes and properties. Ant properties are immutable.
Ant allows flexibility in how Booleans can be specified with on, true, and yes.
${...} denotes a use of Ant property.
PATH, FILESET,
Export Eclipse
I need a plan to export that.
Command Line vs Runas
Documentum RESTful Web Service
I don't know how the project goes now, but I don't have a good feeling.
Last year, about the same time, I used the web service to build a demo for JPMorgan Chase, and I think it's actually pretty slick.
Craig Randall used to work on this project, but last year he moved on to work for Adobe, check http://craigrandall.net/.
It's sad that you see all these good people are leaving, and Documentum is kind of down......after all, documentum is my main skill to earn a living for about 5 years.
xdoclet
http://xdoclet.sourceforge.net/xdoclet/index.html
Reverse-xdoclet
http://www.gootz.net/gbin/reverse-xdoclet/
What this does is, you already have Bean, interface, xml....but you want to the bean class to have xdoclet tags, reverse-xdoclet will do it for you.
Every Day Shortcut Key
Fn + PgUp: turn light on/off.
Fn + Home: increase brightness.
Fn + End: decrease brightness.
F6: in a web browser, hit F6 will activate address bar.
CTR + tab: tab through web browser tabs.
START + D: toggle desktop
START + Pause: Display the System Properties dialog box
START + R: Open the Run dialog box
CTR + Esp: Open Start Menu
ALT + F4: Quit Program
CTR + START + F: search computer in network
control -> open control panel
calc -> calculator
control admintools ->Admin Tools
sysdm.cpl->System properties
services.msc->Services
devmgmt.msc->Device Manager
lusrmgr.msc-> User Accounts
osk->on screen keyboard
winchat->windows chat
appwiz.cpl->Add/Remove Program
clipbrd->clipboard viewer
intl.cpl->Regional Settings
iexplore->IE
winver->Check Windows Version
winword->Office Word
excel->Office Excel
powerpnt->Office PowerPoint
textpad->TextPad
timedate.cpl->Time Panel
mmsys.cpl->Sound and Audio
taskmgr.exe->Start Task Manager
http://windows.microsoft.com/en-US/windows-vista/Keyboard-shortcuts
http://mypchell.com/guides/34-guides/69-156-useful-run-commands
Quick Establishment on Database
1. build a database quickly---MySQL probably the best option.
2. write an utility to load/unload tables by using xml files as inputs.
3. ORM (object-oriented mapping), so could write Java codes against DB quickly. Hibernate?
4. Store the whole environment: VW Mare image.
Refcardz DZone
Groovy
Unix Grep
find . -name "*Bean.java" -exec echo "==={}:" \; -exec grep "re\"DefaultDataSource\"" -B1 -A3 {} \;
find . -name "*Extent.java" -exec grep "CLASSNAME =" '{}' > output.xml \;