OSX Lion WiFi problems

Upgraded the 2010 MacBook Pro to OSX Lion, all went well.
Couple of days later after a Software Update my WiFi connection stops working.
Googled and noticed a lot of people with similar issues.
Tried several of the suggested work arounds and hacks.
Kept at it as I didn’t really want to have to have to re-install Lion or Snow Leopard again.
Here’s what worked for me, it’s a collection of several suggestions from online sources that I had to combine. Read the rest of this entry »


Leave a Comment

Backing up from your Ubuntu server to Amazon S3 Simple Storage Service

Sign up for an AWS account:
I use the free usage tier as I don’t need more than 5GB.
*** Note *** you need to provide a credit card number even for the free usage tier.
Login to the AWS interface and create a unique bucket.
For this demo I’ll call the bucket I’ve created ‘mybucket’.
Make a note of you Access Key ID and your Secret Key ID.
Secret Key – 40-Character-Secret-Code Read the rest of this entry »

Leave a Comment

Powershell script to send SQL Server query results via e-mail.

I schedule this script daily to notify a customer of yesterday’s database updates.
col1 is just text
col2 is a smalldate timestamp
I use GETDATE()-1 for yesterday

Read the rest of this entry »

Comments (2)

Connecting to a shared Windows printer from your Mac

In your browser connect to CUPS on your Mac.
Enter the username and password for your Mac.
In the centre section of the CUPS page ‘CUPS for Administrators’ click on ‘Adding Printers and Classes’.
Under ‘Printers’ click on ‘Add Printer’.
Select Windows Printer via SAMBA’ and click ‘Continue’.
In the Connection box type in the address as follows:
smb://windowsmachine/printer and click on ‘Continue’.

This assumes the printer is configured for Everyone on the Windows machine.
windowsmachine = hostname or IP address of Windows machine.
printer = shared printer name …
Read the rest of this entry »

Leave a Comment

Installing Maven 3 on Ubuntu 10.04 LTS Server

Installing Maven 3 on Ubuntu 10.04 LTS Server.
In preparing to upgrade a customer’s software recently I discovered there were issues with Maven version 2, so I also had to upgrade to Maven version 3.
Not a whole of information available about configuration, here’s what worked for me.

Download Maven 3.
$ cd /home/myusername
$ wget http://ftp.heanet.ie/mirrors/www.apache.org/dist//maven/binaries/apache-maven-3.0.2-bin.tar.gz
$ tar -xzvf apache-maven-3.0.2-bin.tar.gz …. unpacks Maven
$ sudo mkdir /usr/local/apache-maven … creates a maven sub-folder in the usr/local/ folder
$ sudo cp -R apache-maven-3.0.2 /usr/local/apache-maven/ …. copies extraced Maven files to the new sub-folder.

Read the rest of this entry »

Comments (32)

PowerShell script to back up a SharePoint 2010 Site Collection with a unique (date/time) filename

This PowerShell script will backup a SharePoint 2010 (Host Header URL) Site Collection to a single .BAK file with a date and time filename.

Replace the following with your own values:
bkupLoc = NTFS share that .BAK file will be written to.
sitecoll = the URL of your site collection (I’m using it for a HHURL site collection).

Add-PsSnapin Microsoft.SharePoint.Powershell
#Backup location
$bkupLoc = “\\server\share\myscbkupfolder\
$adate =get-date
#Site collection location
$sitecoll = “http://mysitecoll.mydomain.com
#daily filename
$bkupfile = $bkupLoc+”{0:ddMMMyyyyhhmm}”-f$adate+”.bak”
Backup-SPSite -Identity $sitecoll -Path $bkupfile

Leave a Comment

Set up the OSX (Snow Leopard) desktop to activate the screensaver and lock the desktop.

If you miss the CTRL > ALT > DEL option in Windows to lock your desktop this brief procedure may be what you need.

*** NOTE – ensure you know your username and password to log on to your Mac before you attempt this ***
System Preferences > Personal > Security
On the General tab tick the check box to ‘Require password (immediately) after sleep or screen saver begins’.
Click on the lock to make the changes.

System Preferences > Personal > Desktop & Screen Saver
On the Screen Saver tab select your preferred screen saver.
In the bottom right of the tab click on the ‘Hot Corners’ button.
Pick a corner (I prefer the bottom left) and for that corner set the ‘Start Screen Saver’ option, then click OK.

To test move the mouse to the Hot Corner (bottom left) and leave idle for a second.
The screen saver should activate, once it has activated move the mouse or press any key.
Enter your username and password to unlock.

Comments (1)

Older Posts »