I have been doing a bit of cleaning house lately and have no less than 7 old hard drives sitting in my office. So I had a few questions to answer. First… are they usable? Second, if they aren’t, how can I securely dispose of them? (more…)
Rather than build a new Windows 7 virtual machine from scratch in hyper-v, I like to do a fresh install of one VM and then “export” it as a “template” for re-import later on. Importing a machine as a new copy is much faster than building a machine from scratch and installing Windows from an ISO file.
Recently I found myself doing just this, however my most recent “template” was quite old. After bring the new VM online and getting networking setup, the first thing I went to do was run windows update.
It was then that I ran into this mysterious error message from the update console:
“Windows Update cannot currently check for updates, because the service is not running. You may need to restart your computer.”
Fine… I opened up services.msc and made sure bits and the windows update service were running. They were… I was mystified and immediately turned to Google…
(more…)
Need to administer some drupal stuff from the command-line? DRUSH is the answer. But first you need to get it installed. I am putting the commands to run here to do just that for my own future reference. Hope this is of benefit to everyone else!
Elevate yourself:
Check if Pear is installed:
If not, install it…
Add the drush channel to pear:
Install drush
Finally, a common use for drush for me is updating modules..
Cheers!
To make this comparison we need to first consider the problem that both approaches help us to solve. When programming any system you are essentially dealing with data and the code that changes that data. These two fundamental aspects of programming are handled quite differently in procedural systems compared with object oriented systems, and these differences require different strategies in how we think about writing code.
Source: Procedural vs Object Oriented Programming
As I have been learning Powershell I have seen numerous sources state over and again that Powershell is a highly “object oriented” language. Not having any background in programming I have been really curious what was meant by this. The above article explains it nicely. It starts out discussing ColdFusion specifically but the bulk of the article is primarily explaining the general concept of Procedural vs. Object Oriented programming (as the title states) and reading through it has helped me understand why powershell works the way it does. Having a basic grasp on this concept should help me out immensely and I would recommend it as a short read for anyone else delving into Powershell, particularly if you are like me and don’t have a strong programming background.
Cheers!
I have been using powershell to automate Internet Explorer interactions with a web application with a login page in our internal environment at work. I ran into an issue with my script because the page I was trying to access was secured with SSL and we were using a self-signed certificate. This causes Internet Explorer to redirect to a warning page rather than going straight to the site. I needed a way to bypass this warning page in code and I finally came up with a solution I am sharing here.
Normally I dive into articles like this with an assumption that people know everything I am talking about. This will be a bit different because on this topic I feel pretty green myself. As this is a fresh subject for me, I am going to treat it as a fresh subject for you. That being said, we are actually going to be working with a somewhat complex script by the time we are done and if you pickup most of the concepts along the way you are going to be off at a sprint with Powershell scripting.
(more…)