دوستانی که مایل به همکاری با ما هستند ، لطفا با ما تماس بگریند این وبلاگ هرروز با 5 تا 8 مطلب آموزشی جدید به روز می شود ، پس حتما هر چند وقت یکبار به ما سر بزنید حتما عضو گروه این وبلاگ بشید انجام پروژه های برنامه نویسی حرفه ای در هر سطحی با قیمت مناسب و توافقی انجام می شود ، برای سفارش با ما تماس بگیرید رشد وبلاگ= نظر دادن شما نظرات خود را در مورد مطالب به ما ارسال کنید

الکامپ 14 Close
تبلیغات در بلاگ اسکای

Learn photoshop cs3 in 24hours

Learn photoshop cs3 in 24hours

 

 

Pdf file:

Code: http://rapidshare.com/files/111512720/24HrTraining.rar

Why does my computer always wake up when I put it to sleep?

I have a notebook with Vista installed and I have a problem that I never had with my XP notebook. Whenever I put it to sleep, it wakes back up and the battery goes down. It's like having a newborn baby that just won't sleep through the night. What can I do to make it stay asleep until I want to use it again? Thanks. - Pam L. ANSWER: The culprit often seems to be the Wake on LAN feature. It's designed to wake up the computer whenever there's any network activity. You can disable the feature in Device Manager. Here's how: 1. Click Start | Control Panel | Device Manager (in Classic view) or just type "device manager" in the Search box. 2. In Device Manager, expand "Network Adapters" 3. Right click your network adapter and select Properties 4. Click the Power Management tab 5. Uncheck the box that says "allow this device to wake the computer" In other cases, it can be mouse or even the multimedia sharing settings. In the case of the mouse, follow the steps above but choose the mouse instead of the network adapter. If that isn't the problem, try going to Control Panel | Power Options and in the settings for your power plan, scrolling down to Multimedia settings and choosing "allow the computer to sleep." Also, you may need to change to a power option other than "High Performance."

نظر یادتون نره ادامه مطلب ...

Don't display program in Frequently Used Programs list

QUESTION:
XP makes a list of the programs that you've recently used. Well, for reasons I won't go into, I sometimes use a program that I'd rather than have listed there for everyone to see. Is there a way to keep it from appearing in that list? Thanks. - Dale C.

ANSWER:
Hmmm. Spending on-duty time playing solitaire, are we? Well, there are a couple of approaches but you might or might not be able to make the necessary settings changes if you don't have administrative privileges. The easiest way to remove an item from the list is to right click it and select Remove From This List. However, that's only a temporary solution - it'll come back when you use it again, so you have to keep doing this every time you open the program.

There's a registry edit you can use to permanently exclude a specific program from appearing on the list. Here's how to do that:

  1. Open your favorite registry editor and navigate to: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileAssocation
  2. In the right pane, double click AddRemoveApps
  3. Add the program you want to exclude to the Value Data box by typing a semicolon followed by the name of the program's executable file (for example: type ;sol.exe for Solitaire).
  4. Close the registry editor and reboot. Remember, always make a backup of the registry key before you make changes to it.

If you're super secretive and don't want any of the programs you use to be displayed, you can edit the Taskbar and Start Menu Properties. There you can set the number of entries allowed to populate this section. If you change the setting to zero, this prevents any programs from being displayed.

Don't display program in Frequently Used Programs list

QUESTION:
XP makes a list of the programs that you've recently used. Well, for reasons I won't go into, I sometimes use a program that I'd rather than have listed there for everyone to see. Is there a way to keep it from appearing in that list? Thanks. - Dale C.

ANSWER:
Hmmm. Spending on-duty time playing solitaire, are we? Well, there are a couple of approaches but you might or might not be able to make the necessary settings changes if you don't have administrative privileges. The easiest way to remove an item from the list is to right click it and select Remove From This List. However, that's only a temporary solution - it'll come back when you use it again, so you have to keep doing this every time you open the program.

There's a registry edit you can use to permanently exclude a specific program from appearing on the list. Here's how to do that:

  1. Open your favorite registry editor and navigate to: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileAssocation
  2. In the right pane, double click AddRemoveApps
  3. Add the program you want to exclude to the Value Data box by typing a semicolon followed by the name of the program's executable file (for example: type ;sol.exe for Solitaire).
  4. Close the registry editor and reboot. Remember, always make a backup of the registry key before you make changes to it.

If you're super secretive and don't want any of the programs you use to be displayed, you can edit the Taskbar and Start Menu Properties. There you can set the number of entries allowed to populate this section. If you change the setting to zero, this prevents any programs from being displayed.

VM licensing question

VM licensing question QUESTION: I am running Vista Home on my PC, but I upgraded from XP. Am I free to use my XP license as a VM OS? I have bought Vista and have a separate license for that so in theory my XP license is currently wasted. - Christian E. ANSWER: It might seem that way, but actually if you upgraded your OS from XP to Vista, your XP license was incorporated into your Vista license. That's because the upgrade version of Vista costs substantially less than the full version (for example, Vista Ultimate upgrade was, at time of release, $259 as compared with the $399 full version price). Here's what the XP EULA says: "After upgrading, you may no longer use the product that formed the basis for your upgrade eligibility." However, if you had wiped out XP completely and installed the full version of Vista, then your XP license would allow you to install it on another computer, which could be a VM. Here is the pertinent part of the EULA: "You may move the product to a different Workstation computer. After the transfer, you must completely remove the product from the former Workstation computer." This applies to both the Home and Pro editions of XP. (Note: Although this question pertains to the XP license, we find that there are a lot of Vista users who find themselves wondering about this after upgrading so we're addressing it here in the Vista newsletter).

How to view a fragmentation analysis

How to view a fragmentation analysis One complaint about Vista's built in defragmentation program is that it doesn't give you much information. That's true of the graphical interface, but you can use the command line defrag utility to view an analysis of the amount of fragmentation on a per-drive basis. Here's how: 1. Click Start | All Programs | Accessories 2. Right click the Command Prompt and select Run As Administrator 3. Click Continue at the UAC prompt if you're logged on with an administrative account, or enter administrative credentials if you're logged on as a regular user 4. At the command prompt, type defrag : -a The output will show you the volume size, amount of free space, largest free space extent and percent of file fragmentation. It will also tell you whether you need to defragment the drive.

How to change the message on the XP logon dialog box


By default, the logon dialog box says "Enter a user name and password that is valid for this system." But you can make it say whatever you want, by editing the registry. As always, be careful and back up your registry first. Then here's how:
1. In your registry editor, navigate to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon
2. In the right pane, double click an empty spot and choose New. Create a new REG_SZ (String) value and name it LogonPrompt.
3. Double click it and in the data value field, type whatever message you want to display.




The Mf.sys device driver that was included in previous versions of Windows is not installed in Vista by default. Although only a few devices now use it, if you happen to need to use one of them, your installation will fail unless you install the driver. Here's how:

  1. Open Windows Explorer and navigate to the System32 folder in the Windows directory (you may need to first configure folder properties to show hidden and system files in Explorer's Tools | Folder Options | Views dialog box).
  2. Locate the System32\DriverStore\FileRepository folder.
  3. Find the Mf.inf_[hexadecimal number] folder (for example, the folder name might be Mf.inf_dcf62a9a) and double click it.
  4. Within the folder, right click the Mf.sys file and select Copy.
  5. Go to the System32\Drivers folder and paste the file there. Alternatively, you can right drag and copy.
  6. In the Destination Folder Access Denied dialog box, click Continue.
  7. In the User Account Control dialog box, click Continue.

The .inf file for the device should contain both a DDInstall section and a DDInstall.Services section. Now you should be able to install the device.

 

 

The Linux Command Line, Revisited

 

The Linux command line. It strikes terror (or, at least, queasiness) in some. It's arcane, it's not point-and-click, it just doesn't look good. But as a previous TechTip explained, if you're running Linux on your desktop computer or laptop computer, a knowledge of the command line can make your life much easier.

 

While the previous TechTip explained the basics of the command line, this one looks at several useful commands and functions that you can use in a terminal window.

 

Viewing running processes

 

Like any other operating system, Linux has a number of system processes running in the background. These are in addition to whatever applications that you may be running. Using the ps command, you can view a list of the applications and processes that are running on your system.

 

When you type ps, you'll probably only get a list of two or three processes. To view the process and applications that are running during your session, type ps -u <username>, where <username> is the name that you use to log into Linux -- for example, ps -u scott.

 

PS_IMNotice that in addition to the name of each application or process, they have a number identifying them. This is called a pid (short for process ID). In the accompanying screenshot, notice that the application Thunar (a file manager) has the pid 5214.

 

I bet you're thinking that this is all interesting, but how is viewing processes useful? Keep reading ...

 

Killing processes

 

No matter how well coded an application is, it may hang. When it does, you can shut it down completely using the kill command.

 

So, let's say the Thunar file manager has hung. Actually, it did hang on me a week ago. To kill it, first run ps -u <username> to find its the pid. In the screenshot above, the pid for Thunar is 5214. To kill it, enter the command kill 5214.

 

Of course, the kill command can be quite dangerous. You need to make sure that you specify the right pid, or else you'll stop and application or process that could be important. With an application, you can lose your data. You won't get a warning to save a document or file; the application just shuts down.

 

Viewing text files with less

 

A friend of mine jokes that Linux isn't a set of programs but just a bunch of text files that simulate an operating system. That's a bit far fetched, but Linux is known for the large number of text files that it does employ. Files like system configuration files, application parameters and configuration files, scripts, and text files that you create with an editor or which come with an application (like readme files). Instead of firing up a text editor to view these files, use the less command.

 

Less_IMTo use less, just make sure that you're in the same directory as the file that you want to view and type less <filename>, where <filename> is the name of the file that you want to browse.

 

The less command displays about 25 lines of the file at a time. To move down the file, you can press Enter or the down arrow key (to move one line at a time), or press the space bar to move one screen at a time. You can move up by pressing the up arrow key on your keyboard, or by pressing b.

 

You can even search a file while viewing it with less. Just press the forward slash key (/), type in the word or phrase that you want to find, and then press Enter. Note that the search is case sensitive.

Typing linux isn't the same as typing Linux. Often, though, you won't find exactly what you're looking for on the first try. To keep searching, press n on your keyboard.

 

If you want to get out of the viewer, press q on your keyboard.

 

Using sudo

 

One of the great things about Linux is that it doesn't allow you to tamper with certain system files and directories. You might be able to view or run the files in those directories, but you can't delete the files or copy things in or out of those directories.

 

You can, however, get access to those files and directories using the sudo command. sudo is short for super user do. It gives you what's called root access but only for the single run of a program or script.

Why would you need to use the sudo command? You may, for example, need to install fonts for a particular application or install a program that you've compiled. Or, you might need to back a file up sudofrom a protected directory to a location in your home directory.

 

Use this command by typing sudo followed by the name of the command that you want to run. In some Linux distributions, you'll be asked for the password for the root account. Other distros, like Ubuntu and its variants, don't have a true root account; you're prompted for your login password.

 

Here's an example: sometimes, I download a useful program or script. I like putting it in the directory /usr/local/bin/, which lets me run it no matter where I am in my Linux file system. But /usr/local/bin/ is one of those protected directories. To copy the file, I type sudo cp <file> /usr/local/bin/.

 

Sudo is another command that is potentially dangerous. If you're not careful, you can overwrite or delete an important file. It happened to a friend of mine, who accidentally zapped a library file used by his window manager. Without that file, the window manager wouldn't start.

 

Running programs from the command line

 

Obviously, you can run any application -- graphical or terminal-based

-- by typing its name at the command line and pressing Enter.

Graphical applications will run in your window manager; command line applications in the terminal window.

 

You'll notice, though, that when you run a graphical application you can't run any other application in the same terminal window. Sure, you can open another terminal or pop a new tab (if your terminal program supports that), but why bother? Why not run your program in the background instead?

 

Runback_IMTo run a program in the background, type the name of the program, followed by a space, followed by an ampersand (&), and then press Enter -- for example, gimp &.

 

Sometimes, you may try to run a program or script that resides in the directory that you happen to be in. When that happens, you might get an error message like command not found. Nothing's more frustrating that trying to run an application or script that you know is there.

You can get around this by typing a dot and a slash (./) before the name of the program or script. To run the script to back up my company's Web site, I change to the directory in which the script resides and type ./dmn_bkup.sh.

 

The wonders of autocompletion

 

Typing a command or a file name at the command line, especially if it's a long one, can be a real chore. And if you're not paying attention, you could type the wrong thing. Instead of typing a long string, press the Tab key on your keyboard to complete the name of the program or file. The Linux shell (another term for the command line) scans the file in your path and in a directory, picks the one that matches what you typed before pressing Tab, and automatically fills it in at the command line.

 

Autocompletion is incredibly useful when moving around at the command line, or when copying files from one location to another. How? If, say, I want to change to the directory /usr/local/bin, instead of typing 14 characters I just type /usr/l, and press the Tab key -- which completes /usr/local/. Then, I type b and press Tab again, which completes the full path. I manage to do the same job with half the number of keystrokes.

 

IMConclusion

 

The Linux command line is definitely a powerful tool. While the commands in this TechTip, and the previous one on the same subject are useful, there are so many other commands that you will find useful.

You can find good references online here and here. If your reading tastes lean more towards dead trees, then definitely check out The Linux Cookbook and the Linux Phrasebook.

 

Regardless of your level of experience with Linux, understanding the command line and how to use it can definitely come in handy. You might not pop into a terminal window daily or even regularly, but when you do having some knowledge means that you'll be better equipped to handle yourself.