Friday, 22 October 2010

CSS: Constants

$boxstyles='background:#ccc;border-top:1px solid #eee; border-left:1px solid #eee; border-right:1px solid #aaa; border-bottom:1px solid #aaa;padding:.5em;margin:.5em 0';

h1{
$boxstyles
color:#000;
}
div#extras div {
$boxstyles
font-size:80%;
}

/* Company Colours */
$blue='#369';
$green='#363';
$lgreen='#cfc';

[…]

ul#navigation{
background:$blue;
color:#fff;
}
h1{
border-bottom:1px solid $green;
}

Outlook: Saving attachments automatically

Add into outlook rules the following VBScripts:

Sub SaveToFolder(MyMail As MailItem)
Dim strID As String
Dim objNS As Outlook.NameSpace
Dim objMail As Outlook.MailItem
Dim objAtt As Outlook.Attachment
Dim c As Integer
Dim save_name As String
'Place path to sav to on next line. Note that you must include the
'final backslash
Const save_path As String = "X:\SHARE\VCMS CSV\CSV\"

StrID = MyMail.EntryID
Set objNS = Application.GetNamespace("MAPI")
Set objMail = objNS.GetItemFromID(strID)

If objMail.Attachments.Count > 0 Then
For c = 1 To objMail.Attachments.Count
Set objAtt = objMail.Attachments(c)
Save_name = Left(objAtt.FileName, Len(objAtt.FileName) - 4)
'save_name = save_name & Format(objMail.ReceivedTime, "_mm-dd-yyyy_hhmm")
Save_name = save_name & Right(objAtt.FileName, 4)
ObjAtt.SaveAsFile save_path & save_name

Next
End If

Set objAtt = Nothing
Set objMail = Nothing
Set objNS = Nothing
End Sub

Piwik - Web analytics - Open source

Piwik - Web analytics - Open source: "Piwik is a downloadable, open source (GPL licensed) real time web analytics software program. It provides you with detailed reports on your website visitors: the search engines and keywords they used, the language they speak, your popular pages… and so much more.

Piwik aims to be an open source alternative to Google Analytics.

Piwik is a PHP MySQL software program that you download and install on your own webserver. At the end of the five minute installation process you will be given a JavaScript tag. Simply copy and paste this tag on websites you wish to track (or use an existing plugin to do it automatically for you) and access your analytics reports in real time."

Google Analytics: Tracking media and document files

Google Analytics Tracking code - jQuery to index docs, videos, zips, audios

$("a[href*='.pdf'], a[href*='.doc'], a[href*='.xls'], a[href*='.ppt']").click(function() {
pageTracker
._trackPageview('/doc/' + $(this).attr('href'));
});
$
("a[href*='.mov']").click(function() {
pageTracker
._trackPageview('/video/' + $(this).attr('href'));
});
$
("a[href*='.zip']").click(function() {
pageTracker
._trackPageview('/file/' + $(this).attr('href'));
});
$
("a[href*='.mp3']").click(function() {
pageTracker
._trackPageview('/audio/' + $(this).attr('href'));
});

Outlook: Google Calendar Sync

Download Google Calendar Sync and install on your desktop PC where you have outlook running.
After installation you can selection multiple sync options, I choose a one way sync to G-Cal.
On your Iphone goto settings > mail, contacts, calendar > accounts.
Add a new account and select Microsoft Exchange as the account type.

Email will be your gmail address.
Server is m.google.com
Domain is optional so leave it.
Fill out username and password and turn SSL on.

Once you've done this setup sync option on your phone to sync to G-Cal.