Friday, November 30, 2012

Google Calendar - last weekday repeating event


I wanted to add a reminder to do my timesheet on the last business day of every month, but there's no easy way to do it within Google Calendar itself.  An anonymous post here worked perfectly:

Steven Occhipinti: Google Calendar - Repeating an event on the last <weekday> of the month


BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:20120131
DTEND:20120131
RRULE:FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1;WKST=SU
SUMMARY:Payday
END:VEVENT
END:VCALENDAR

Save the above to a .ics file. In google next to other calendars choose import calendar.

Wednesday, November 21, 2012

Deleting networks on Windows 8

Manually added a wifi network on Windows 8, but it wasn't configured right.  Couldn't see how to delete that network until I found this thread that had this quote:

"This was driving me crazy today, there is no “manage wireless networks” in Windows 8, not sure why. So once you set up a network you are not able to alter it unless it is broadcasting near you and you set it up with the right security. Well I found a fix, if you go to device manager and uninstall your wireless network card and then reinstall it (should only take about 20 seconds) it will reset your network profiles, allowing you to recreate one that may be setup incorrectly. Hope this helps."


Friday, October 19, 2012

Script loading with headjs

From headjs.com:
"Load scripts like images. Use HTML5 and CSS3 safely. Target CSS for different screens, paths, states and browsers. Make it the only script in your HEAD. A concise solution to universal issues."

Saturday, October 13, 2012

Android and user-agents

Changing the user agent on Chrome:
  1. Open Developer Tools (right-click-Inspect, or Menu->Tools->Developer Tools, or Ctrl+Shift+I).
  2. Click the Settings gear icon on lower right of the Developer Tools window.
  3. Go to Overrides tab, check "User agent" and select the device from the dropdown.
List of user-agents at user-agent-string.info.

Wednesday, October 3, 2012

Restoring a content database from old to newer version of SharePoint 2010

Assuming the source (say, production) server has an older update of SharePoint, and you need to copy one of its site collections to a development environment that has a later update.

Based on one of the answers in this thread:
  1. Backup the WSS Content Database using SQL Server Management Studio,
  2. Restore the database backup to the target server using SQL Server Management Studio,
  3. Make sure the farm login and SharePoint service login have db owner rights to the restored database.
  4. Go to Central Admin of the dev farm and create a new web application, and enter the name of the restored database instead of creating a new one.
  5. Go to "Change Site Collection Administrators" and enter valid logins. 
  6. On Central Admin, go to Upgrade and Migration -> Review database status.  Check if the content database has this note:  "Database is in compatibility range and upgrade is recommended."  See possible reasons.
    [update 05/22/2013: added this step]

Other useful info: