Showing posts with label Tricks. Show all posts
Showing posts with label Tricks. Show all posts

Make a link folder in windows


C:\spring-flex-testdrive-1.0.3-v1\projects\java\spring-flex-testdrive-java>mklink /D builds.out C:\spring-flex-testdrive-1.0.3-v1\tomcat
ps\spring-flex-testdrive\WEB-INF\classes
symbolic link created for builds.out <<===>> C:\spring-flex-testdrive-1.0.3-v1\tomcat\webapps\spring-flex-testdrive\WEB-INF\classes

Another example:
do it in cmd line with administrator privilege.
The following is to create a link folder "Banking Documents" under current directory.
C:\Users\hliu\Documents>mklink /D "Banking Documents" "E:\backup\Banking Documents"

How To Move Off-Screen Windows Back To Your Desktop

My home PC only has one monitor, but my workstation has 2 monitors. So when I remote to my workstation, and I will only be able to see only screen. Here is the trick:

Select the window that only shows in the other screen, click Move, now press ->.
If the window doesn't show "Move", you could use 'ALT+SPACE+M' to activate Move option.

ls -1

ls -1: Print one entry per line of output.

Copy and Paste in Outlook Without Messing Up Your Formatting

This trick works at Other office products too.

Tools->Options->Mail Format->Editor Options->Advanced->Cut, copy, and paste

Pasting from other programs: you could set Keep Text Only.

There are other options, you get what I mean.

Other tricks, if you do have formatted text in office product, select them, then process CTRL + space, it will remove the formatter.

Google Search

If you search "-D32" without quotes, you will get nothing, you need put "" around -D32.

That's because in Google search, when you attach - before a word, it means you do not want pages that contain this word to appear in your results.

For info, see the link
Recently I bought a Samsung internal hard drive from newegg.com. 

1. installation. My PC has 3 types of hard drive.
IDE Data Cable
IDE Power Cable
SATA Data Cable
SATA Power Cable (Black One)

    a. IDE power cable + IDE data cable
    b. IDE power cable + SATA data cable
    c. SATA power cable + SATA data cable 


2. recognize. After the installation, and I restart my PC, but I found the new hard drive is only about 32 MB. After doing some search, I found it here, and I download the program, it's said "Supported OS: 32-bit versions of Windows XP/Vista/2003", mine is 32 bit Window 7 Professional. It works great.

Intellipoint

The Explorer also comes with Intellipoint software to help users configure the mouse’s four buttons and scroll wheel for more than 30 actions (including cut and paste, Flip 3D, undo, exit program, precision booster and — my favourite — a magnification window).

How to import bookmarks from other browser into Chrome

 Wrench, Options, Personal Stuff, import data from other browser.

Input Disappeared

I found this problem happen quite often.

If you like me, I sometimes use Chinese input, so I need switch my input, but often the Input language Icon on the right-bottom corner disappeared.

Here is the solution:

go to control panel, click Regional and Language Options, Click Keyboards and Languages, then click Change keyboards.., then click OK, after that the input icon will show up.

Disable Adobe Updater

1. go to C:\Program Files (x86)\Common Files\Adobe\Updater6
or something similar.
2. Click Adobe_Updater.exe, Click Preference, uncheck "Automatically check for Adobe Updates"

set up FTP server at your machine using IIS 6

Control Panel->Programs and Features->turn windows features on or off->Internet Information Services->FTP Publishing Service->FTP Server
Control Panel->Administrative Tools->Internet Information Services (IIS) 6.0 Manager->Defautl FTP Site start it.
ftp://localhost:21
righ click->Peermissions->Users (matt-PC\Users), give full control
restart the server, now users will have the delete permissions.

Little tip on outlook attachments

Even had a situation that you received an Email with a lot of attachments, and you have to save them one by one?

Well, you could select them all, then save as into a folder all by once.
Or you could select all, and copy them, then paste to your desired folder.

- and _

SWIFT doesn't like underscore.
CHIPS is ok with underscore.
Both are OK with dash.
DataBase doesn't like dash.

By Default

By default, you will get some benefits automatically, isn't that nice? Yes, it's really good until you want to know more.

Ok, let me explain. In SQL, ORDER BY keyword sort the records in ascending order by default. That's nice, but what if you want to sort the records in descending order? If you don't know that SQL sort by ascending order by default, you might get confused a little bit. That's just most simple example.

Now, coming into the framework. We now have all sorts of frameworks, and their purpose, simply put, is to make the life easier for us (the developers), but does they?

Let's use Spring as an example. I am saying this is the only benefit, but one of the most basic benefits to use Spring is you don't need write a lot of Java class, all you need is fill up some xml configuration file, and Spring will do this automatically for you. But do you know that all Spring beans are singletons by default? What if you don't want your bean to be singleton? That's where confusion starts.

See the problem, so far? All the frameworks have these default rules, and you must know all these rules to utilize the most benefits, and these are the pains that you have to suffer for the gains.

One of the most import lessons that I have learnt by studying these frameworks is to pay attention to the keyword "default".