​Programming is like sex because…

I just receive this from a friend at work and I had to share. Not sure who wrote, but he was inspired. If you know the author let me know so I can give the proper credit. 

Programming is like sex because…

 

• One mistake and you have to support it for the rest of your life.

• Once you get started, you’ll only stop because you’re exhausted.

• It takes another experienced person to really appreciate what you’re doing.

• …Conversely, there’s some odd people who pride themselves on their lack of experience.

• You can do it for money or for fun.

• If you spend more time doing it than watching TV, people think you’re some kind of freak.

• It’s not really an appropriate topic for dinner conversation.

• Public schools don’t do a very good job teaching kids about it.

• It doesn’t make any sense at all if you try to explain it in strictly clinical terms.

• Some people are just naturally good at it.

• …But some people will never realize how bad they are, and you’re wasting your time trying to tell them.

• There are a few weirdos with bizarre practices nobody really is comfortable with.

• One little thing going wrong can ruin everything.

• It’s a great way to spend a lunch break.

• Everyone acts like they’re the first person to come up with a new technique.

• Everyone who’s done it pokes fun at those who haven’t.

• Beginners do a lot of clumsy fumbling about.

• You’ll miss it if it’s been a while since you’ve done it.

• There’s always someone willing to write about the only right way to do things.

• It doesn’t go so well when you’re drunk, but you’re more likely to do it.

• Sometimes it’s fun to use expensive toys.

• It usually goes faster when you do it alone.

• When women hear guys bragging about it, they become disgusted.

• If you’re not careful about how you do it, all sorts of nasty bugs can appear.

• …And debugging is annoying, painful, and very embarrassing.

How to Backup your Windows product key in Windows 8 via PowerShell

That was something that I always wanted a clean way to do it without having to appeal to third party apps.

I hope you like it!

This PowerShell script sample shows how to get and backup Windows product key in Windows 8 or higher version.

Introduction

This PowerShell script sample shows how to get and backup Windows product key in Windows 8 or higher version.

Scenarios

Sometimes a user may want to reinstall operating system, but he does not know the current Windows product key. This script can solve that.

Video

http://channel9.msdn.com/Blogs/OneScript/How-to-back-up-Windows-product-key-in-Windows-8-PowerShell/player

Script

Step 1: Download the script: Script in a zip file
Then, Right Click the script and select Run with PowerShell.
Step 2: Then it will show messages as the following.
Step 3: Enter Y and press Enter, save Windows product key to a file.

Source: Script Backup Windows product key in Windows 8 (PowerShell)

How to remove Firefox’s “This address is restricted”, commonly triggered by trying to access port 87 – blog.christoffer.me

I just got an email from a friend proudly sending me the link to check his cameras.

When I tried to get there to my surprise Firefox told me that access to that port (2049-nfs) was restricted and I could not see the cameras…

three minutes later…. I applied the solution below with and was able to see the marvellous of his surveillance system.

It turns out that Firefox does not like much to allow pre-set ports to be used for http.

Enjoy!

How to remove Firefox’s “This address is restricted”, commonly triggered by trying to access port 87

Source: How to remove Firefox’s “This address is restricted”, commonly triggered by trying to access port 87 – blog.christoffer.me

Windows PC Secure WebDAV Server | Advanced Home Server

I was looking for a way to update and download files with encryption  and password secured, that it would work seamlessly from home or on the road.

Well, while I was cracking my head trying to reinvent FTP, I just realised that WebDAV can do exactly that. After follow the tutorial below, I was able to get exactly what I want.

I hope it helps you as much as it helped me.

Windows PC Secure WebDAV Server | Advanced Home Server.

Shell scripts for quickly integrating an Ubuntu 14.04 LTS server into a Microsoft Windows Server Active Directory Domain | KiloRoot.com

Shell scripts for quickly integrating an Ubuntu 14.04 LTS server into a Microsoft Windows Server Active Directory Domain | KiloRoot.com.

I always struggled to setup smb, Samba and the shares in Ubuntu to make it accessible in Windows systems.

In my humble opinion this should be Out of the box in Linux systems that would like to strive in the PC world, after all if you blend well your advantages might become outstanding…

In this tutorial you will setup a seamless relationship between Active Directory and the Ubuntu system. After it is set, it will not ask for passwords or provide you with funny error messages.

Enjoy!

How do I enable Automatic Logon when Windows 7 is part of a Domain?

  1. Click Start, click Run, type regedit, and then click OK. In Windows Vista/7, simply type regedit in Start Search and hit Enter.
  2. Navigate to the following registry key:
    HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon
  3. Double-click the DefaultUserName entry, type the user name to log on with, and then click OK.
    If DefaultUserName registry value name is not found, create a new String Value (REG_SZ) with value name as DefaultUserName.
  4. Double-click the DefaultPassword entry, type the password for the user account under the value data box, and then click OK.
    If there is no DefaultPassword value, create a new String Value (REG_SZ) with DefaultPassword as the value name.

    Note that if no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon registry key from 1 (true) to 0 (false) to turn off the AutoAdminLogon feature.

  5. In Windows Vista/7, DefaultDomainName has to be specified as well, else Windows will prompt for invalid user name with the user name displayed as .username. To do so, double click on DefaultDomainName, and specify the domain name of the user account. If it’s local user, specify local host name.
    If the DefaultDomainName does not exist, create a new String Value (REG_SZ) registry key with value name as DefaultDomainName.
  6. Double-click the AutoAdminLogon entry, type 1 in the Value Data box, and then click OK.
    If there is no AutoAdminLogon entry, create a new String Value (REG_SZ) with AutoAdminLogon as the value name.
  7. If it exists, delete the AutoLogonCount key.
  8. Also if it exists, delete the AutoLogonChecked key.
  9. Quit Registry Editor.
  10. Click Start, click Restart, and then click OK.

Source: login – How do I enable Automatic Logon in Windows 7 when Im on a domain? – Super User.