Showing posts with label Beginner’s Guide. Show all posts
Showing posts with label Beginner’s Guide. Show all posts

Tuesday, February 11, 2014

Why Do You Need Formulas and Functions?

Geek School 1

This How-To Geek School class is intended for people who use Excel, or try to use Excel but are intimidated by the concept of formulas and functions. Its objective is to make you an Excel pro or at least, a competent amateur, in just a few lessons.
Note: for the uninitiated, this is the very first lesson in the first series for How-To Geek School. We will be running a new lesson every single weekday, Monday through Friday, from now until we’ve covered every subject. So stay tuned for more, and we’ll be making a formal announcement about how it works next week.

What is Excel and Why Do We Need It?

If you are an office administrator, you probably use Excel. Ditto, if you are a salesman. If you are a financial analyst, of course, you need Excel. For these and many other professions, working with spreadsheets is an essential tool in the daily routine.
People who are math wizards will probably immediately take to Excel and use it like a natural extension of their computational processes. Most of the rest of us … probably need some help in that department.
If you did not pay attention in high school algebra class, don’t fret! All you need to do is learn some basic knowledge of formulas and functions from this How-To Geek School series and apply them to your work.
If you don’t know whether or not you need Microsoft Excel, then you probably have not been shown what it can do. Once you do know, then you can find ways to use it in your work to make complicated and tedious tasks easier.
Microsoft Excel is more than just a program to enter names and numbers. For example, if you simply want to list the names of students in your class then you can just make a Word document. Word is fine for writing essays and making lists but to do calculations, you need Excel’s formulas and functions.

A Brief Tour of the Excel Interface

Before we dive in, let’s just briefly review the Excel interface. You may already know all this stuff, but it never hurts to review.
When you open a blank Excel spreadsheet, it is known as a “workbook” or “book” and each spreadsheet in a book is a known as a “worksheet” or “sheet”.
image002[5]
The top of the app is dominated by the “ribbon” (grey), which sub-divided into “tabs” (red), which are then further sub-divided into “sections” (blue).
image003[4]
Below the ribbon is the “name box”, which lets you rename “cells” and then to the right of that is an area that allows you to create your all-important “formulas”. If you hover over each icon, you can see the purpose of each button, but what we’re most concerned with is the wide area where our formulas and functions will be displayed.
image004[4]
Finally, the worksheet is arranged in “columns” (denoted by letters) and “rows” (indicated by numbers). Each location is a “cell” and a group of cells is known as a “range”. If you have multiple sheets in a book, you can quickly flip through them using the tabs seen below the sheet. Below that, in the grey status bar, you can adjust your page views and zoom level.
image005[4]
That’s it, pretty simple, and just a short overview of some of the terminology you’ll encounter in this HTG School series.

What is a Function?

A function is a calculation or operation that returns a result. The inputs in a function are called “arguments”.
All functions begin with an equals sign [=]. That way Excel knows not to treat the arguments as text. For example, =AVERAGE(2,4) is a function but AVERAGE(2,4) is just a string of text. Without an equals sign, Excel will not calculate a result. The arguments in this function are 2 and 4.
Note, Excel uses upper-case letters to list functions, but you can use lower or upper-case letters when you write them.
In Excel, the “Function Library” can be found on the “Formulas” tab.
image006[4]
There are 13 categories of functions, some of which are:
  • Mathematical: AVERAGE() – calculates the average of a series of numbers.
  • Date and time: DATEVALUE() – converts a string of text like “30 November 2013” to a number so that you can use this number in other date and time functions. You cannot do math with dates unless you convert them to numbers first. We explain this in detail in Lesson 4.
  • Text: LEN() – returns the length of a string. For example =LEN(“Excel”) is 5.
  • Logical: IF() – the IF() function is written like =IF(<test>, then A, else B). So, if “test” is true, then the result is A; if “test” is not true, then B.
  • Lookup and Reference: These are needed to lookup values elsewhere in the spreadsheet. For example, VLOOKUP looks in a table of values to find one cell.
How could you use this last one? Well, to get the day of the week in text from a date function. You can use VLOOKUP to scan a table to turn this number into something easier to understand, like “Wednesday”.
There are also special functions for financial, engineering, and statistics which are listed separately on the “More Functions” menu.
image007[4]

What is a Formula?

A formula is combination of “operators”, “operands”, and “functions”.
For example, the function =SUM adds a list of numbers (it is so commonly used, that is listed on the first menu in Excel, abbreviated by the Greek letter Sigma (Σ), which is the notation that mathematicians use to sum a series).
You use a formula like doing a calculation by hand. For example, you could put your family budget into a formula like this:
Remaining cash = (4 * weekly salary) – mortgage – food – utilities
The operators are multiply [*] and subtract [-]. The operands are the values “weekly salary”, “mortgage”, “food”, and “utilities”. The result is “remaining cash”.

Names and Addresses

The values for “food” and the other operands are names that you define in Excel. Without a “name”, you would have to use the “address”.
The address of a cell is written using row-column notation. The rows are given numbers and the columns, letters. The first cell in the spreadsheet is A1. When you have reached the end of the alphabet, the rows are numbered AA, AB, BA, BB, and so forth.
Formulas can be more complicated than the family-budget example. In high school you learned that that the area of a circle is the radius times pi squared or πr2.
In Excel, you can write this using the formula =PI() * radius ^ 2.
Here, PI() is the function that returns the number 3.14 and “radius” is a “name” we have given to a cell that contains the radius; the “operators” are the exponent (^) and multiplier (*).

Order and Precedence

Parentheses are used to indicate the order and precedence in calculations.
The area of a circle can also we written πrr but not (πr)2, so you need to understand order and precedence to get right answer. Exponents are evaluated before multiplication, so parentheses are not needed in this case. The function squares the radius first then multiplies that by Pi.
If you wanted to eliminate any possible doubt you could be explicit and write =Pi * (radius ^2).
We will explore order and precedence further in Lesson 2.

Coming up Next …

For the remainder of this series, we will concentrate on a four key areas:

Lesson 2: Defining and Creating Formulas

To get started, the first item to explore is how to create formulas and understand the basic rules:
  • How to create a formula
  • Calculation operators
  • Order and precedence
  • Demonstrate how a function is used within a formula

Lesson 3: Cell Reference and Formatting

In this lesson we discuss the three types of cell reference (relative, absolute, and mixed), formatting, how to move or copy and formula, and circular references.
Suppose you have a formula in cell B1 that says =A1*2. If you copy that formula to cell B2 (one cell to the right), then the cell reference changes too.
The new formula says B1*2. You can use the dollar sign ($) to anchor the cell reference so that copying it does not change where it points (don’t worry, we cover this in a bit).

Lesson 4: Useful Functions You Should Get to Know

This lesson explains some of most commonly-used functions and how we can apply them in useful calculations and how to “nest” functions.
To nest a function means put one function inside another. For example, if you want to know what day today is, write =WEEKDAY(NOW()).
NOW() gives today’s date and WEEKDAY() turns it into a number from 1 to 7. NOW() is “nested” inside WEEKDAY().

Lesson 5: Advanced Functions: If, Nested-If, and Lookups

If you want to create complex models or algorithms, you will need to know how to combine logic and lookup functions including IF and nested IF statements and lookups including VLOOKUP and HLOOKUP.
An example of lookup function would be =COLUMN(). This gives the column number of a cell reference, e.g., A=COLUMN(A1).
We’ll also briefly cover pivot tables. A pivot table is used to extract meaning from data. For example you could take a list of sales and group them by region or sales person to give you the totals for each.

Friday, January 24, 2014

PUP

PUP (short for Potentially Unwanted Program) refers to an unwanted program or piece of software that may be installed along with the program or software that a user actually wants on their system.
A PUP is not classified as malware, but rather as adware, spyware, crapware, etc. What marks the distinction in classification is that users are ‘informed’ about the PUP via the EULA (end user license agreement). But since most people rush past the EULA, it makes it easier for those who push PUPs to have a ‘legal out’; after all, the information was literally spelled out in the EULA.
A rather ‘visible’ form of PUPs are the software installers that come with offers of extra ‘goodies’ such as toolbars, ‘search’ apps, etc., making it a good idea not to rush through any installation process!

Tuesday, January 21, 2014

Troubleshoot Wireless Router Problems


wireless-router

Reboot the Router

Have you tried rebooting it? Yes, once again,is the solution to many network problems. Whether websites are failing to load, everything network-related seems slow, connections are dropping, or your wireless is flaking out, you may just want to try rebooting your router.
This shouldn’t be necessary, but many routers seem to need an occasional reboot to keep working well. The reboot process is simple on most routers — unplug your router’s power cable, wait a few seconds, and then plug it back in. If you have separate modem, you may also want to try unplugging your modem’s power cable and plugging it back in after a few seconds. Some devices may have a power switch, but the unplug-and-plug-back-in method applies to all routers.
If you have to frequently reboot your router, the manufacturer’s firmware may just be unstable and buggy. Installing an alternative firmware like DD-WRT might help.
reset-router-to-fix-problems

Check for Overheating

Like any other electronic device, routers can fall prey to overheating. This overheating can damage the router over time or just make it unstable. Check your router’s temperature to see how hot it is. If it seems very hot, ensure that it’s getting enough airflow. If the vents are blocked or you have the router in a hot location — like on top of a tower PC that heats up — overheating could be causing instability. It’s also possible that past overheating may have damaged the router.

Verify Cables Are Securely Connected

This may sound like a no-brainer, but we sometimes forget to check the most obvious solution before moving on to more complicated ones. Someone may have accidentally pulled on or kicked a cable, causing it to unplug or become loose. You should check all of the cables involved and ensure that they’re securely connected.
Be sure to check the power cables to your router and modem, the cable between your router and modem, the cable between the modem and the wall socket, and each Ethernet cable plugged into the back of the router. Check each end of the cable and ensure it’s securely connected — it could look connected but be a bit loose.
reset-router-cables

Change the Wireless Channel

If you’re in a location with a lot of wireless routers nearby, like an apartment building, there’s a good chance your router is subject to interference from other wireless routers sending signals on the same wireless frequency. Determining the optimal wireless channel for your area and changing your router to operate on that wireless channel instead of a more congested one can reduce this interference, improving your wireless signal.



Thursday, August 29, 2013

How to find your missing phone

Oh boy, now you've done it. Not only are you supremely hungover from last night's rager, but your phone is nowhere to be found. Could you have left it at the bar, in a cab, in the gutter somewhere? Who knows! But don't panic, there's a host of apps that do. Here's how to find your phone when it goes missing. 

While there's no guarantee you'll recover your device, these tips and apps will put you in the best position to get back what you lost. Or, if it comes to it, to make sure no one can get at the information that's on there. 
Android Device Manager
Doesn't matter if your phone is lost behind the couch or somewhere in Tahiti, your most direct option for finding a lost Android phone is Google's newly introduced Android Device Manager (ADM) feature. Essentially an Android version of the iOS Find My iPhone service, ADM allows users to locate, track, ping, and, if need be, remotely wipe their devices-all from a web browser. 

The ping feature will ring the phone at maximum volume, even if it is set to vibrate or silent. If you figure you've dropped it somewhere outside of your immediate vicinity, log on to the ADM dashboard to see its location, anywhere in the world, to within a 22-meter radius. And if you discover you can't retrieve or recover the phone, ADM allows you to remotely wipe the device's contents (you will have to enable Factory Resets prior to losing the phone though). Plus, it's completely free and likely already installed. 

The one shortcoming? ADM does not offer a means of remotely locking your phone. Ring and full-on self-destruct are your only options. 

Bit Defender Anti-Theft
If you'd like a middle ground between doing nothing and obliterating everything on your phone from afar, take a look at BitDefender's Anti-Theft app. It allows you to locate and erase your phone, as ADM does, but throws in a remote lock as well. This keeps your phone secure against the prying eyes and wandering fingers until you pick it up. 

What's more, Bit Defender can only be uninstalled by authorized users. If someone tries to bypass that by swapping SIM cards, BD will text the new number to a phone of your choosing, force the phone to answer your call, and then remotely wipe the phone via SMS command. Once you get the thief on the line, you should probably yell something to the effect of, "IF I CAN'T HAVE HER, NO ONE WILL" just before sending the self-destruct text. Drama! Excitement! Destruction! 

These extra features don't come free; you have to pony up an annual subscription of $4. But given that the full anti-theft service extends to all your devices-laptops, phones, and tablets alike-that four bucks is a good investment. 

Lookout
Another solid freemium option is Lookout Security & Antivirus by Lookout Mobile Security. This total security suite protects your phone against loss or theft as well as provides continuous protection against a variety of nasty bits of online code. 

For $3 a month (or $30 annually), you get the antivirus service, backup and restore features to save and reload your Google contacts, photos, and call history, and a swath of sneaky anti-theft options. In addition to the standard map-based location, tracking and forced ringing features, Lookout also offers Signal Flare, which saves the phone's last known location when the battery dies, and the Lock Cam, which emails you a picture of anyone that incorrectly enters the lock screen combo three times. 

Plan B
Bit Defender's a great choice, but what if you've lost your phone without installing it beforehand? There's always Plan B. 

Plan B is a remotely installed, barebones tracker app. First, open a browser window and log on to Google Play. Install the app onto your phone via Play, wait ten minutes for it to download and install, then text "locate" to your number from another phone. The app will triangulate its position based on Wi-Fi and GPS signals and send you a single email if it's sitting still, or continuously for a duration of 10 minutes if the device is on the move. You just have to keep texting "locate" until you catch up with it (and hope that the battery's still going). 

Find My iPhone
The original lost phone tracking service for iOS is still your best option. This free app locates and tracks your lost or stolen Apple devices-not just iPhones but iPads and MacBooks as well-not to mention ringing the unit, displaying a message for whoever finds it, and remotely lock or wipe the device altogether. The app is free on iTunes. 
GadgetTrak
For a little more advanced protection, GadgetTrak offers remotely activated GPS location tracking, push notifications to trick a thief into giving away his position, and the ability to use your lost phone's camera to take a picture of whomever took it from the comfort of your home. It'll cost you $4, but that's peanuts compared to a brand new phone. 

I Can't Find My Phone
Not every lost phone situation requires a full-on app assault to resolve; it's just as often a matter of tracking down which pile of clothes your handset is hiding under. Open ICantFindMyPhone.com in a new browser window, enter your phone number into the text field, and the site will automatically ring your mobile. Just pray you didn't leave it in silent mode. Where's My Cell Phone performs a similar function as well. Both are platform agnostic. 

MissingPhones.org
This one's a little bit more of a long shot, but there is, in fact, a universal lost and found for smartphones. If you know your lost phone's IMEI (often found on the back of your device or on its battery, or dial *#06# to have it sent to you), you can register it here and hope that the kind stranger who finds it knows what MissingPhones.org is. And while it's a bit of a hail mary, it's not like it's any less effective than the last real-life lost and found you've rummaged through. 

An ounce of prevention
However useful these apps and services are, your best chances for success will come before you even lose your phone in the first place. 

Connecting people: Put your contact information somewhere on your phone that's easily accessible. Whether it's your email address engraved on the back (your resale value takes a hit) or putting it on your lockscreen (which doesn't do much if your battery dies) or both, you improve the odds of getting your phone back tremendously if you just give whoever finds it the means to get in touch. 
Use a drunk phone: Have an old handset laying around? Have a friend who's about to ditch theirs for an upgrade? Don't throw it out. Instead, keep it around for nights you might be more, er, primed to lose your phone, and put the SIM from your day to day device-the one you care about-into the beater. That way your friends can still reach you at your number on a wild night out, and losing it won't be (as much of) a hassle. 
Get registered: While it's not as much help right now, by November the national stolen phone registry will be up and running. Carriers will coordinate with the government both to track phones reported as stolen, and to deny them voice/data access. While it might not get your phone back, it'll at least increase your odds-and make sure that the thief doesn't use your smartphone to steal your personal info or identity. There unfortunately is no singular, perfect solution for recovering your phone. The apps and techniques described above will give you a fighting chance for recovery, though. Until then, keep your phone close and don't leave the bar without it.

10 VirtualBox Tricks and Advanced Features You Should Know About

image

VirtualBox is packed with features that you may have never used, even if you frequently use it to run virtual machines. VMware keeps many of its best features to its paid versions, but all of VirtualBox’s features are completely free.
Many of the features here require Guest Additions installed in your virtual machine. This is good to do anyway, as installing the Guest Additions package will speed up your virtual machines.

Snapshots

RELATED ARTICLE
How to Save Time by Using Snapshots in VirtualBox
Snapshots are a massive time saver when you are testing settings and configuration for your Geek School testing. Read on... [Read Article]
VirtualBox can create snapshots that save a virtual machine’s state. You can revert to the saved state at any time by restoring a snapshot. Snapshots are similar to leaving a virtual machine in a saved state, but you can have multiple saved states and restore from them at any time.
To create a snapshot, click the Machine menu while the virtual machine is running and select Take snapshot or use the Snapshots panel. You can restore snapshots from this interface later.
Snapshots are particularly useful if you want to do something to a virtual machine and then erase your changes. For example, if you use a virtual machine to test software, you can create a snapshot of a clean Windows system, then install the software and play with it. When you’re done, you can restore the original snapshot and all traces of the software will be erased. You don’t have to reinstall your guest operating system or manually back up and restore a virtual machine’s files.
virtualbox-take-snapshot

Seamless Mode

RELATED ARTICLE
Use VirtualBox’s Seamless Mode or VMware’s Unity Mode to Seamlessly Run Programs From a Virtual Machine
Virtual machines generally run guest operating systems and their programs in a single window. However, both VirtualBox and VMware have... [Read Article]
Seamless mode allows you to break windows out of your guest operating system window and place them on your host operating system’s desktop. For example, if you use VirtualBox to run an important Windows program on your Linux desktop, you can use Seamless mode to have that Windows program be present on your Linux desktop.
To use this feature, install VirtualBox’s Guest Additions package inside the virtual machine, select the View menu, and click Switch to Seamless Mode.
virtualbox-switch-to-seamless-mode

3D Support

RELATED ARTICLE
How To Enable 3D Acceleration and Use Windows Aero in VirtualBox
VirtualBox’s experimental 3D acceleration allows you to use Windows 7’s Aero interface in a virtual machine. You can also run...[Read Article]
VirtualBox has basic support for 3D graphics. You’ll have to go out of your way to enable this — the appropriate drivers aren’t installed by default when you install Guest Additions and you must manually enable these settings from the virtual machine’s settings window.
The 3D support won’t allow you to play the latest 3D games, but it does allow you to enable Windows Aero desktop effects in the virtual machine and play older 3D games that aren’t too demanding.
virtualbox-enable-3d-acceleration

USB Devices

You can connect USB devices to your computer and expose them to the virtual machine as if they were connected directly. This feature can be used with USB drives and a variety of other devices. As long as USB support is enabled in the virtual machine’s settings window, you can click the Devices tab, point to USB Devices, and select the USB devices you want to connect.
virtualbox-usb-devices

Shared Folders

VirtualBox allows you to set up “shared folders” that both the host operating system and guest operating system can access. To do this, VirtualBox essentially takes a folder on the host operating system and uses network file sharing to make it accessible inside the virtual machine. Configure shared folders from the virtual machine’s settings window and then access or mount them as you’d mount normal network shares.
virtualbox-shared-folders

Shared Clipboard and Drag and Drop

Copy and paste and drag and drop don’t work between the guest and host operating systems by default. However, VirtualBox allows you to share your clipboard between your guest operating system and host operating system, making copy-and-paste work properly. You can also use drag and drop to easily move files back and forth. Both of these features reduce the friction of using software inside a virtual machine, but they’re disabled by default.
virtualbox-clipboard-drag-drop

Cloning Virtual Machines

VirtualBox allows you to clone a virtual machine, creating a copy of it. If you try to copy-paste the files manually, you’ll end up with problems because both virtual machines will use the same identifier number for their virtual disks. When you clone a virtual machine, VirtualBox will ensure they don’t conflict with each other.
clone-virtual-machine

Port Forwarding

RELATED ARTICLE
How to Forward Ports to a Virtual Machine and Use It as a Server
VirtualBox and VMware both create virtual machines with the NAT network type by default. If you want to run server... [Read Article]
Virtual machines are normally isolated from the network. If you’d like to run server software inside a virtual machine, you’ll probably want to set up port forwarding so the server software is reachable from outside of the virtual machine. You’ll find this option in the Network settings pane, under Advanced.
You could also opt to connect the virtual machine directly to the network instead of using NAT, but NAT with port forwarding may be a better way to only allow specific ports through without changing your network settings too much.
port-forwarding-virtualbox

Importing and Exporting VM Appliances

Appliances are virtual machines with preinstalled operating systems. You can create your own appliances or download appliances in OVF format and import them into VirtualBox. This is particularly useful for Linux virtual machines and other systems that can be distributed freely, although you could also create your own appliances and distribute them throughout your organization.
virtualbox-import-or-export-appliances

Remote Display

VirtualBox allows you to enable remote display for a virtual machine, allowing you to run a virtual machine on a headless server or other remote system and access it from another computer. VirtualBox does this with “VRDP,” which is backwards compatible with Microsoft’s RDP protocol. This means you can use the Remote Desktop Connection program in Windows or any other RDP viewer to access your virtual machine remotely without the need for any VirtualBox-specific software.
virtualbox-enable-remote-display

You can also enlarge a virtual machine’s disks in VirtualBox. VirtualBox doesn’t expose this option in its interface, requiring you to use the VBoxManage command instead.

Tuesday, July 30, 2013

4 Easy Ways to Remotely Print Over the Network or Internet

network-printer

Remote printing doesn’t have to be hard, whether you want to print to a printer down the hall or half-way around the world. We’ll cover some simple ways you can print without being directly connected to your printer.
We’re going to focus on the easiest options here. We’re won’t cover setting up the Internet Printing Protocol (IPP) or JetDirect and allowing it through your firewall or complicated Windows networking configurations, as these are options best-suited for the IT Professional.

Get a Wireless Printer

Even if you still print, you don’t need a separate printer connected to every computer in your house. Many new printers are network printers that can connect to your network via Wi-Fi. Once connected, you install the appropriate driver software on each computer and all the computers can print to that printer over the network.
Unlike sharing a local printer with Windows, you don’t have to leave the main computer on — as long as the printer is on, you can print directly to it.
These printers only allow you to print to them over the local network, so you’ll need some other tricks if you want to print to them over the Internet.

Share a Printer on Your Local Network

Windows makes it easy to share printers between computers on your local network. This is ideal if you have local printer that connects to your computer via USB. Once you set up printer sharing, the printer will function almost like a networked printer. As long as the computer the printer is connected to is powered on, any other authorized computer on the network can print to it.
The easiest way to do this on Windows 7 or Windows 8 is with the Homegroup feature. Simply set up a Homegroup and check the Printers option to share your connected printers. Join your other computers to the Homegroup and they’ll see the networked printer appear in their list of available printers, assuming the computer sharing the printer is online.
As with standard networked printers, this only works over the local network. You can shareprinters between computers that aren’t on the same Homegroup, but it’s easier to just use a Homegroup.

Access Remote Printers With Google Cloud Print

Google Cloud Print is Google’s remote-printing solution. Many new printers include built-in support for Google Cloud Print. If a printer doesn’t include Cloud Print support, you can make it available via Google Cloud Print by setting up Google Cloud Print in Google Chrome.
Once a printer is configured to work with Google Cloud Print, it’s associated with your Google account. You can then remotely access the printer with your Google account credentials. You can also share one of your printers with another Google account, so you can allow other people to remotely print to your computer as easily as if you were sharing a file with them via Google Drive.
Up until recently, Google Cloud Print has been a bit of a novelty. Google Chrome includes support for Cloud Print, and you can use Cloud Print apps on iOS and Android to remotely print to Cloud Print printers. However, Google recently launched a Google Cloud Printer service for the Windows desktop. Install it and Google Cloud Print will be available in the standard print dialog, so you can remotely print to Cloud Print printers from Microsoft Office or any other desktop app.
For printing over the Internet, Google Cloud Print offers the most polished experience and easiest setup experience for average users.

Use a VPN to Access Printers on Remote Networks

If you want to access standard network printers or printers shared via Windows networking when you’re away from the local network, you can use a virtual private network, or VPN. Connect to a VPN and your computer will create a secure tunnel to the VPN server on the remote network. All your traffic will be sent over this tunnel, so your computer will behave as if it were connected to the remote network. This means that locally shared printers, as well as other network resources like Windows file shares, will be accessible.
Once your computer is connected to the VPN, the printer will be available and you can print to it just as if you were on the same local network. Many businesses networks set up VPNs so their employees can remotely connect to the business network, so you may already be able to do this with your existing VPN connection.
Setting up your own VPN is more complicated than using Google Cloud Print, but it can be done. Windows includes hidden support for setting up a VPN server. Hosting your own VPN server isn’t ideal for security — it’s easier to just use Google Cloud Print if you don’t want to worry as much about security.

There are a wide variety of other different ways to print remotely. For example, some networked printers may be able to accept documents at an email address and automatically print all documents that arrive at that address. Some may work with Bluetooth or Apple’s AirPrint to accept print jobs wirelessly.

Sunday, June 23, 2013

How to Send the Contents of the Clipboard to a Text File via the Send to Menu

image

We have previously covered how to send the contents of a text file to the Windows Clipboard with a simple Sent To shortcut, but what if you want to do the opposite? That is: send the contents of the clipboard to a text file with a simple shortcut.
No problem. Here’s how.

Copy the ClipOut Utility

While Windows offers the command line tool ‘clip’ as a way to direct console output to the clipboard, it does not have a tool to direct the clipboard contents to the console. To do this, we are going to use a small utility named ClipOut (download link at the bottom).
Simply download and extract this file to a location in your Windows PATH variable (if you don’t know what this means, just extract the EXE to your C:\Windows folder) and you are ready to go.

Add the Send To Shortcut

Open your Send To folder location by going to Run > shell:sendto
Create a new shortcut with the command:
CMD /C ClipOut >
Note the above command will overwrite the contents of the selected file. If you would like to append to the contents of the selected file, use this command instead:
CMD /C ClipOut >>
Of course, you could make shortcuts for both.
Give a descriptive name to the shortcut.
You’re finished. Using this shortcut will now send the text contents copied to your Windows Clipboard to the selected file.
It is important to note that the ClipOut tool only supports outputting text. If you had binary data copied to your clipboard then the output would be empty.

Changing the Icon

By default, the icon for the shortcut will appear as a command prompt, but you can easily change this by editing the properties of the shortcut and clicking the Change Icon button. We used an icon located in “%SystemRoot%\System32\shell32.dll”, but any icon of your liking will do.
As an additional tweak, you can set the properties of the shortcut to run minimized. This will prevent the command window from “blinking” when the send to command is run (instead it will blink in your taskbar which is hardly noticeable).

Links

Tuesday, June 18, 2013

Why the 64-bit Version of Windows is More Secure

64-bit-intel-core-cpu

Most new PCs have been shipping with the 64-bit version of Windows — both Windows 7 and 8 — for years now. 64-bit bit versions of Windows aren’t just about taking advantage of additional memory. They’re also more secure than 32-bit versions.
64-bit operating systems aren’t immune to malware, but they do have more security features. Some of this also applies to 64-bit versions of other operating systems, such as Linux. Linux users will gain security advantages by switching to a 64-bit version of their Linux distribution.

Address Space Layout Randomization

ASLR is a security feature that causes a program’s data locations to be randomly arranged in memory. Before ASLR, a program’s data locations in memory could be predictable, which made attacks on a program much easier. With ASLR, an attacker has to guess the correct location in memory when trying to exploit a vulnerability in a program. An incorrect guess may result in the program crashing, so the attacker won’t be able to try again.
This security feature is also used on 32-bit versions of Windows and other operating systems, but it’s much more powerful on 64-bit versions of Windows. A 64-bit system has a much larger address space than a 32-bit system, making ASLR that much more effective.

Mandatory Driver Signing

The 64-bit version of Windows enforces mandatory driver signing. All driver code on the system must have a digital signature. This includes kernel-mode devices drivers and user-mode drivers, such as printer drivers.
Mandatory driver signing prevents unsigned drivers provided by malware from running on the system. Malware authors will have to somehow bypass the signing process through a boot-time rootkit or manage to sign the infected drivers with a valid certificate stolen from a legitimate driver developer. This makes it more difficult for infected drivers to run on the system.
Driver signing could also be enforced on 32-bit versions of Windows, but it isn’t — likely for continued compatibility with old 32-bit drivers that may not have been signed.
To disable driver signing during development on 64-bit editions of Windows, you would have to attach a kernel debugger or use a special startup option that doesn’t persist across system reboots.

Kernel Patch Protection

KPP, also known as PatchGuard, is a security feature only found on 64-bit versions of Windows. PatchGuard prevents software, even drivers running in kernel-mode, from patching the Windows kernel. This has always been unsupported, but it’s technically possible on 32-bit versions of Windows. Some 32-bit antivirus programs have implemented their antivirus protection measures using kernel patching.
PatchGuard prevents device drivers from patching the kernel. For example, PatchGuard prevents rootkits from modifying the Windows kernel to embed themselves in the operating system. If an attempt at kernel patching is detected, Windows will immediately shut down with a blue screen or reboot.
This protection could be put into place on the 32-bit version of Windows, but it hasn’t been — likely for continued compatibility with legacy 32-bit software that depends on this access.

Data Execution Protection

DEP allows an operating system to mark certain areas of memory as “non-executable” by setting an “NX bit.” Areas of memory that are supposed to hold data only will not be executable.
For example, on a system without DEP, an attacker could use some sort of buffer overflow to write code into a region of an application’s memory. This code could then be executed. With DEP, the attacker could write code into a region of the application’s memory — but this region would be marked as not-executable and could not be executed, which would stop the attack.
64-bit operating systems have hardware-based DEP. While this is also supported on 32-bit versions of Windows if you have a modern CPU, the default settings are more stringent and DEP is always enabled for 64-bit programs, while it’s disabled by default for 32-bit programs for compatibility reasons.
The DEP configuration dialog in Windows is a bit misleading. As Microsoft’s documentationstates, DEP is always used for all 64-bit processes:
“System DEP configuration settings apply only for 32-bit applications and processes when running on 32-bit or 64-bit versions of Windows. On 64-bit versions of Windows, if hardware-enforced DEP is available it is always applied to 64-bit processes and kernel memory spaces and there are no system configuration settings to disable it.”

WOW64

64-bit versions of Windows run 32-bit Windows software, but they do it through a compatibility layer known as WOW64 (Windows 32-bit on Windows 64-bit). This compatibility layer enforces some restrictions on these 32-bit programs, which may prevent 32-bit malware from functioning properly. 32-bit malware will also be unable run in kernel mode — only 64-bit programs can do that on a 64-bit OS — so this may prevent some older 32-bit malware from functioning properly. For example, if you have an old audio CD with the Sony rootkit on it, it won’t be capable of installing itself on a 64-bit version of Windows.
64-bit versions of Windows also drop support for old 16-bit programs. In addition to preventing ancient 16-bit viruses from executing, this will also force companies to upgrade their ancient 16-bit programs that could be vulnerable and unpatched.
Given how widespread 64-bit versions of Windows now are, new malware will likely be capable of running on 64-bit Windows. However, the lack of compatibility can help protect against old malware in the wild.

Unless you use creaky old 16-bit programs, ancient hardware that only offers 32-bit drivers, or a computer with a fairly old 32-bit CPU, you should be using the 64-bit version of Windows. If you’re not sure which version you’re using but you have a modern computer running Windows 7 or 8, you’re likely using the 64-bit edition.
Of course, none of these security features is foolproof, and a 64-bit version of Windows is still vulnerable to malware. However, 64-bit versions of Windows are definitely more secure.

Tuesday, May 14, 2013

How PowerShell Differs From the Windows Command Prompt


command-prompt-vs-powershell

You may have noticed a new command-line environment in Windows since Windows 7 — PowerShell. PowerShell is a much more powerful command-line shell and scripting language than the Command Prompt is, giving Windows system administrators a useful command-line environment.
PowerShell is more complicated than the traditional Command Prompt, but it’s also much more powerful. The Command Prompt was dramatically inferior to shells available for Linux and other Unix-like systems, but PowerShell competes favorable with the shells available for other platforms.

How PowerShell Differs From the Command Prompt

PowerShell is actually very different from the Command Prompt. It uses different commands — known as cmdlets in PowerShell. Many system administration tasks — from managing the registry to WMI (Windows Management Instrumentation) — are exposed via PowerShell cmdlets, while they aren’t accessible from the Command Prompt.
PowerShell makes use of pipes, just as Linux and other Unix-like systems do. Pipes allow you to pass the output of one cmdlet to the input of another cmdlet, using multiple cmdlets in sequence to manipulate the same data. Unlike Unix-like systems, which can only pipe streams of characters (text), PowerShell pipes objects between cmdlets. This allows PowerShell to share more complex data between cmdlets.
PowerShell isn’t just a shell you use. It’s a powerful scripting environment that can be used to create complex scripts for managing Windows systems much more easily than you could with the Command Prompt.
The Command Prompt is essentially just a legacy environment carried forward in Windows — an environment that copies all of the various DOS commands you’d find on a DOS system. It’s painfully limited, can’t access many Windows system administration features, is more difficult to compose complex scripts with, and so on. PowerShell is a new environment for Windows system administrators that allows them to use a more modern command-line environment to manage Windows.

When You’d Want to Use PowerShell

So you’re an average Windows user — when would you want to use PowerShell? Well, if you rarely use the Command Prompt and fire it up to run the occasional ping or ipconfig command, you’ll probably never need to touch PowerShell
However, PowerShell can be a much more powerful command-line environment than the Windows command prompt. For example, we’ve shown you how to use the PowerShell environment built into Windows to perform a search-and-replace operation to batch rename multiple files in a folder — something that would normally require installing a third-party program. This is the sort of thing that Linux users were once able to do with their command-line environment, while Windows users were left out.
However, PowerShell isn’t like the Linux terminal — it’s a bit more complicated and the average Windows user won’t see many benefits from playing with it.
System administrators will want to learn PowerShell so they can manage their systems more efficiently. If you need to write a script to automate various system administration tasks, you should do it with PowerShell.

PowerShell Equivalents of Common Commands

Many common Command Prompt commands — from ipconfig to cd — will work in the PowerShell environment. This is because PowerShell contains “aliases” that point these old commands at the appropriate new cmdlets, running the new cmdlets when you type the old commands.
We’ll go over a few common Command Prompt commands and their equivalents in PowerShell anyway — just to give you an idea of how PowerShell’s syntax is different.
Change a Directory
  • DOS: cd
  • PowerShell: Set-Location
List Files in a Directory
  • DOS: dir
  • PowerShell: Get-ChildItem
Rename a File:
  • DOS: rename
  • PowerShell: Rename-Item
To see if a DOS command has an alias, you can use the Get-Alias cmdlet. For example, Get-Alias cd shows you that cd is actually running the Set-Location cmdlet.