Sometimes you need to create an SSH connection without entering in your password. For instance, you are syncing files using a Version Control System (such as Git or Mercurial) over SSH, and your software isn’t set up to ask for a password every time.
The solution is simple: Store a file on the target computer identifying the source computer.
Here’s how you do it:
1. Generate an SSH key on the source computer (the one you will be making the connection from). When prompted, don’t enter a passphrase.
ssh-keygen -t rsa
2. Create an .ssh directory on the target computer. Enter the ssh password when prompted.
ssh user@Target mkdir -p .ssh
3. Add the source computer’s ssh key to the list of allowed keys on the target computer
“Old Friends” would be more accurate, I guess. Robin Dunbar suggested that a person can only maintain about 150 social relationships at one time. These shoes account for two of my best friends.
These past few weeks have been pretty difficult for me. I mean, my shoes and I have been together for about six years. They were with me when I met my wife. We experienced Disney World for the first time together. And Disney Land. And Disney World again. They were with me when my daughter was born, and then my son. I can’t count how many steps we’ve taken or stairs we’ve climbed. These shoes have been with me more hours than any other possession I have owned. Ever. It really feels like two of my best friends are leaving me.
Then I found these:
They say that the best way to get over one love is to find another. I think I’ll be just fine.
Photography is, simply, capturing light. Really good photographers understand how to capture light in difficult lighting situations. Taking photos of a bright landscape is pretty simple because your camera does most of the work. Sunrises and sunsets take some exposure compensation. Indoor photography is even more challenging.
The best indoor photographs are taken in a studio with expensive studio lights. Studio lights do three things: They move the light source away from the camera to provide depth, they diffuse (or spread out) the light to reduce harsh shadows, and they provide consistent light for color accuracy. Built-in flashes will lighten up the subject, but the image typically has less depth and harsh shadows.
This is why most hot shoe-mount flashes have swivel and tilt. This makes it possible to bounce the flash off of a surface to get somewhat of a studio light feel in photographs. It diffuses the light across that surface, and it moves the light source away from the camera, which provides depth.
Bouncing poses a challenge. Simply put, you are changing color temperature of the light source. Photos bounced off a white or off-white surface will probably be “warm,” or have an orange tint. The solution is to change your white balance settings.
This photo was taken with the flash bounced off of a white ceiling (flash head was pointing strait up), with the following settings:
Flash exposure compensation: +2/3
White Balance: Sun
I have not touched up this photo. It has depth, soft shadows, and the color quality is fantastic.
If you don’t have a hot shoe mount flash and would like better results indoors, try stepping back a few feet from the subject and zooming in a bit to compensate.
I have been developing a PHP application running on IIS, and recently came across some caching issues. Lots of them. Normally, caching doesn’t bother me. In fact, it can help performance significantly. However, when I am developing, I don’t want anything to cache. Ever. It throws off the development.
Here’s how to do it in IIS:
From IIS, select the website.
Open “Output Caching” under the IIS section.
Click “Add…” from the Actions panel.
Specify an extension, Check “User-mode caching” and “Kernel-mode caching” and select the “Prevent all caching” options under each section.
Randy Pausch (Oct. 23, 1960 – July 25, 2008), who was a professor at Carnegie Mellon, gave this lecture on Sept. 18, 2007, 10 months before he passed away of cancer.
This lecture really helps put things into perspective. It’s a bit long, but I think you’ll enjoy it.
“You’ve got to get the fundamentals, otherwise the other stuff isn’t going to work.”
“When you’re screwing up, and nobody’s saying anything to you anymore, that means they gave up. Your critics are the ones telling you they love you and they still care.”
“Experience is what you get when you didn’t get what you wanted.”
“Brick walls are there for a reason. The brick walls are not there to keep us out. The brick walls are there to give us a chance to show how badly we want something. Because the brick walls are there to stop the people who don’t want it badly enough.”
“Wait long enough and people will surprise and impress you. When you’re [mad] at someone, you just haven’t given them enough time.” Jon Snoddy
“They’re both ways of saying ‘no’, but one’s a good way and one’s a bad way.”
“Until you’ve got ice cream spilled on you, you’re not doing real field work.”
On Target was one of the most memorable Scouting experiences of my life. 108 teams from Utah and Salt Lake County climbed numerous peaks around the area, listened to a short message from the General Young Men’s President, and contacted each other. We made about 15 contacts using a signaling mirror, 11 of which were reciprocated, from the top of Bismark Peak.
Signaling mirrors are double-sided mirrors with a small hole to see through them. In order to signal another person, the operator will locate the target through the small hole, locate the light spot in the shadow cast by the mirrors, and align the hole with the light spot in the shadow. Once the spot and hole are aligned, you are “On Target.”
Before we began, we saw a military airplane flying through the valley below.
We also saw some wildlife. If anyone knows what kind of birds these are, please comment.
Most websites have two hosts: the www host (ie. www.google.com) and the non-www host (ie. google.com). Since search engines don’t like duplicate content, it is good practice to either make sure your site always has the www, or always remove it. Since you don’t have any control over how the Internet user types in your site, here’s a simple way of either adding or removing the www.
In order for this to work, your site needs to be running on an Apache server, and mod_rewrite should be enabled. Make sure this is at the top of the .htaccess file: (if you don’t have an .htaccess file, create one in the web directory and put this at the top)
Options Indexes FollowSymLinks
Insert this snipped to add the www to all requests: