Scot's Tech Stuff | Scot's Ramblings

CAT | Technology

I noticed that once in a while I will reboot and my “windows frame” will be missing on windows.. you know, the part that has the close, minimize, maximize buttons! :)

NOTE ABOUT THE BELOW COMMAND– there are 2 dashes before the word “replace” my font may make it look like one REALLY long dash
I tried to Alt+F2 but that wouldn’t bring up a “run” line so I just opened a terminal window and did “metacity –replace” and all is well (while I leave that terminal session open :)

Since I’m a newb I’m ok with that for the day while I get billable stuff done!

No tags

Mar/10

30

Safely test your antivirus

Read the following link: http://www.eicar.org/anti_virus_test_file.htm

Bottom line, there is a safe way to test your antivirus without the fear of downloading a real virus.  If you haven’t done this (at a minimum) then you can’t really be sure of much.

This is a shell script for Linux that you could easily run on your windows box with WGET ported over.

It saves the calendars with the date and the calendar’s name concatenated together.

SUGGESTION (if you highlight everything below and paste it into your favorite notepad editor, the line breaks will become obvious, or just download the attached text file)calendarbackupscript

{everything below this line is the script, do not include this line}

#!/bin/sh

#create a variable containing the date in the format YearMonthDay.HourMinute, example 20100329.1553

dt=`date +%Y%m%d.%H%M`

#next line gets the calendar and saves it with the concatenated name

wget -O /home/scot/backups/calendars/CalendarA.Calendar.$dt.ics https://www.google.com/calendar/ical/username@gmail.com/private-1234123412341234/basic.ics

#the line above this one is one line that probably wrapped on your screen

#the next line emails you letting you know the script completed

echo “Your Calendar has backed up” | mail -s “Cal backups” username@gmail.com

· ·

This will cause a pop-up to happen when a user mouses over (and does nothing) to a button or other “form object”.

No tags

Mar/10

26

VBScript to remove subfolders

This will check all IMMEDIATE subfolders of  C:\folderpath\ and if the folder hasn’t been modified in more than 90 days, it will delete it.

This will only work for subfolders on the local system you are running the script from.

Dim fso, f, f1, fc

Set fso = CreateObject(“Scripting.FileSystemObject”)

set f = fso.GetFolder(“C:\folderpath”)

Set fc = f.subFolders

For Each f1 in fc

If DateDiff(“d”, f1.DateLastModified, Now) > 90 Then f1.delete

Next

No tags

For some reason everyone sets up their Gmail to their iPhone as a standard mail account.  If you do that you miss out on the “push” functionality. Why not “get” your email immediately and have your calendar and contacts synchronize immediately!?  No really, why not….?

IMPORTANT NOTE: If you enable this type of synching for contacts and/or Calendar THE PHONE’S CALENDAR AND CONTACTS WILL BE OVERWRITTEN BY THE GMAIL VERSION… Just make sure that you change the proper settings to “OFF” on the screen that looks like this if you don’t want to loose something local:

http://www.google.com/support/mobile/bin/answer.py?answer=138740&topic=14252

If their page is changed, here is an archival copy of the directions: Set Up Your iPhone or iPod Touch for Google Sync

No tags