HTML, CSS, batch commands, and Javascript examples that I have used in my library work. Short entries, designed as quick reference.
By Len Davidson at CUA Law Library
10/18/2013
Searching Twitter for #library
Look for tweets with #Library near Washington DC:
Tweets about "#library near:20064 within:5mi"
Same except NYC: Must use lower case "nyc"
Tweets about "#library near:nyc within:5mi"
Twitter search embedded in website
Looking for tweets sent to Montgomery County Library
Tweets about "to:@MCPL_Libraries"
Tweets that mention "Library" within 8 miles of zipcode 20064
Tweets about "library near:20064 within:5mi"
Twitter search syntax:
| twitter search | containing both "twitter" and "search". This is the default operator. |
| "happy hour" | containing the exact phrase "happy hour". |
| love OR hate | containing either "love" or "hate" (or both). |
| beer -root | containing "beer" but not "root". |
| #haiku | containing the hashtag "haiku". |
| from:alexiskold | sent from person "alexiskold". |
| to:techcrunch | sent to person "techcrunch". |
| @mashable | referencing person "mashable". |
| "happy hour" near:"san francisco" | containing the exact phrase "happy hour" and sent near "san francisco". |
| near:NYC within:15mi | sent within 15 miles of "NYC". |
| superhero since:2010-12-27 | containing "superhero" and sent since date "2010-12-27" (year-month-day). |
| ftw until:2010-12-27 | containing "ftw" and sent up to date "2010-12-27". |
| movie -scary :) | containing "movie", but not "scary", and with a positive attitude. |
| flight :( | containing "flight" and with a negative attitude. |
| traffic ? | containing "traffic" and asking a question. |
| hilarious filter:links | containing "hilarious" and linking to URLs. |
| news source:twitterfeed | containing "news" and entered via TwitterFeed |
10/17/2013
Twitter Widgets for websites
Testing Twitter widgets for websites, here is one from Bing Maps http://www.bing.com/maps
Search term Library (no effect from adding hashtag )
You can control zoom:
Search term Library (no effect from adding hashtag )
You can control zoom:
z=10 is the zoom (higher number, closer in)
<iframe src="http://www.bing.com/twitter/maps/embed?version=1.0&
eid=1607992402&keyword=library&lat=38.9339485168457&
lon=-77.0336837768555&z=10" width="350" height="350"
scrolling="no" frameborder="0"></iframe>
10/01/2013
Boot Windows 8 to desktop interface
Now with Windows 8.1 its is easy:
Go to the Desktop, then right-click in the taskbar, and select “Properties”, then click on the navigation tab to open up this menu:

From blogs.msdn.com
-------------------------------
To boot Windows 8 to desktop, open Task Scheduler (Hit Start, type

Click Task Scheduler Library from the left pane, Create Task on the right pane, and give it a name like

From Extremetech
Go to the Desktop, then right-click in the taskbar, and select “Properties”, then click on the navigation tab to open up this menu:
From blogs.msdn.com
-------------------------------
To boot Windows 8 to desktop, open Task Scheduler (Hit Start, type
schedule, click Settings, and open “Schedule tasks.”)Click Task Scheduler Library from the left pane, Create Task on the right pane, and give it a name like
Boot to Desktop.From Extremetech
9/30/2013
Windows 8 shutdown shortcut
To create shortcut to shutdown windows 8, right click on desktop, select NEW, then "shortcut", type in the following text
The 0 at end is seconds of delay, if you want 15 seconds delay, then you have "shutdown /s /t 15"
(note: it requires /s, the /t is optional)
Hibernate shortcut syntax (no delay parameter):
----------------------------------
Sleep Computer: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Logoff: Shutdown -L
reboot: shutdown /r
shutdown /s /t 0The 0 at end is seconds of delay, if you want 15 seconds delay, then you have "shutdown /s /t 15"
(note: it requires /s, the /t is optional)
Hibernate shortcut syntax (no delay parameter):
Shutdown /h----------------------------------
Sleep Computer: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Logoff: Shutdown -L
reboot: shutdown /r
9/24/2013
Automatic slide show in Powerpoint 2010, move to next slide
Have a patron that wants a powerpoint slide show that moves on its own, spending 5 seconds on each slide:
To loop the show:
From softwarepro
Automatically Move to the Next Slide
The key here is the Transitions feature where you can set timings. A transition is animation to introduce the next slide although a specific transition isn't needed to set timings which automatically advance to the next slide. To set up timings:- Select one or more slides in a presentations. To highlight multiple slides, switch to the Slide Sorter View and hold down the [Ctrl] key as you click on each slide or press [Ctrl] + A to Select All.
- In PowerPoint 2010, choose the Transitions tab in the Ribbon. In PowerPoint 2007, pick the Animations tab.
- For PowerPoint 2010 & 2007, look for the Advance Slide options at the right side of the Ribbon, set After to the amount of time (seconds), uncheck "On Mouse Click". The timings can vary from one slide to another.
To loop the show:
Run a PowerPoint Presentation Continuously
The Set Up Slide Show options in PowerPoint help you customize your options for running a slide show presentation. When you have set timings in a presentation, you can also control a presentation so it loops (runs) continuously until you press the [Esc] key. This is a great feature for trade shows, kiosks, company reception areas, and other presentations where you don't need to be actively involved in the display of each slide. To successfully use a loop, each slide should have automatic timings as covered above. To change slide show options for an open presentation:- In PowerPoint 2010 & 2007, click the Slide Show tab and pick the Set Up Slide Show icon. For PowerPoint 2003, pick Slide Show > Set Up Show.
- Under Show options, click the choice for Loop continuously until 'Esc'. Also verify the Advance Slides option is set to Use timings, if present.
From softwarepro
9/20/2013
Youtube playlist in VLC
Want to have Youtube playlist with out commercials, use VLC and a plugin.
To install the YouTube Video and Playlist Importer download it, and copy the file to this directory:
For playlists, you'll need the VLC and the add-on YouTube Video and Playlist Importer installed. Once it's installed, simply copy the playlist URL from your browser, then hit CTRL+N in VLC, select the Network box, and paste the playlist URL. The playlist automatically gets imported into VLC where you can use any keyboard shortcuts you have set up to watch playlists ad-free. (from Life hacker)
To install the YouTube Video and Playlist Importer download it, and copy the file to this directory:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\ * Windows (current user): %APPDATA%\VLC\lua\extensions\ * Linux (all users): /usr/share/vlc/lua/extensions/ * Linux (current user): ~/.local/share/vlc/lua/extensions/ * Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/ (create directories if they don't exist) Restart VLC.
9/18/2013
Credentials manager in Windows XP
Trying to fix worng password in credentials manager on a Windows XP laptop:
http://www.techrepublic.com/article/manage-user-credentials-in-windows-xp-with-the-stored-user-names-and-passwords-tool/
http://www.techrepublic.com/article/step-by-step-maintain-your-passwords-with-credential-manager/
http://www.techrepublic.com/article/manage-user-credentials-in-windows-xp-with-the-stored-user-names-and-passwords-tool/
http://www.techrepublic.com/article/step-by-step-maintain-your-passwords-with-credential-manager/
9/17/2013
Limit MS Access report by date
Have a Microsoft Access database with a report to display records, want to limit by a date range, entered by user.
http://allenbrowne.com/casu-08.html
http://www.tek-tips.com/viewthread.cfm?qid=1674898
http://bytes.com/topic/access/answers/869108-filter-report-date-range
http://allenbrowne.com/casu-08.html
http://www.tek-tips.com/viewthread.cfm?qid=1674898
http://bytes.com/topic/access/answers/869108-filter-report-date-range
9/13/2013
How to connect Apple laptop to Windows drive (SMB)
To map a windows drive on a Mac laptop: (from Apple)
smb://DOMAIN;User@ServerName/ShareName
A bit easier to remember:
On the Mac, from Finder's GO menu, choose "Connect to Server"
Enter the server address, preceded by
smb://, as shown: You'll get prompted to enter your network credentials - need to add the Windows DOMAIN\user_name for the Name Field:
What is SMB?
SMB, which stands for Server Message Block, is a protocol for sharing files, printers, serial ports, and communications abstractions such as named pipes and mail slots between computers.
Early document on it is a Microsoft/Intel document called Microsoft Networks/OpenNET-FILE SHARING PROTOCOL from 1987. The protocol was subsequently developed further by Microsoft and others. Many of the documents that define the SMB protocol(s) are available at ftp.microsoft.com in the SMB documentation area.
8/28/2013
Check Domain Name Server information
We switched the IP address for a server, and it was working on campus, but not off campus. Needed to use a DNS off campus to test this.
Used NSLOOKUP command with this format:
NSLOOKUP <domain you want to check> <outside DNS>
In Windows, goto CMD window, from Apple, goto Terminal window
example:
C:>nslookup check.this.domain.edu 8.8.8.8
Server: google-public-dns-a.google.com
Address: 8.8.8.8
Non-authoritative answer:
Name: check.this.domain.edu
Address: 74.217.nnn.nnn
More details of nslookup from CMD prompt in windows.
Used NSLOOKUP command with this format:
NSLOOKUP <domain you want to check> <outside DNS>
In Windows, goto CMD window, from Apple, goto Terminal window
example:
C:>nslookup check.this.domain.edu 8.8.8.8
Server: google-public-dns-a.google.com
Address: 8.8.8.8
Non-authoritative answer:
Name: check.this.domain.edu
Address: 74.217.nnn.nnn
More details of nslookup from CMD prompt in windows.
8/22/2013
Apple print error nothing happens when press Print button
User with Apple laptop, clicked print button, nothing happens, do following steps, then reboot.
This can usually be fixed by going into the Terminal utility and there enter the command to operate on the CUPS printer name:
sudo lpadmin -p <PrinterName> -o auth-info-required=username,password
This will update the printer stanza in /etc/cups/printers.conf, and then the printing works.
8/21/2013
Apple OS printing error: NT_STATUS_BAD_NETWORK_NAME
Got the following printer error: NT_STATUS_BAD_NETWORK_NAME
When trying to print to a Windows Print Queue from Apple laptop.
Solution: Go into network settings and delete DNS entries. Person had fixed DNS entry, when removed it, grabbed local DNS and error went away.
Could also fix by using IP address for queue name, and not domain name:
smb://<username>:<password>@<ip-address-printer>/<sharename>
When trying to print to a Windows Print Queue from Apple laptop.
Solution: Go into network settings and delete DNS entries. Person had fixed DNS entry, when removed it, grabbed local DNS and error went away.
Could also fix by using IP address for queue name, and not domain name:
smb://<username>:<password>@<ip-address-printer>/<sharename>
8/14/2013
System Restore from a command prompt - RSTRUI.EXE
At the command prompt, type rstrui.exe, and then press ENTER
c:\windows\system\restore\rstrui.exe
http://windows.microsoft.com/en-us/windows-vista/start-system-restore-from-a-command-prompt
http://support.microsoft.com/kb/279736
8/13/2013
Error when adding printer to Apple laptop - Advanced screen - Windows print queue
To fix this, must "Reset Printing System"
Go back to the Printers & Scanners screen
Highlight the any printer on the left pane and right click –
(or hold down Control key and click)
Choose Reset Printing System.....
This will erase all Printers, but will be able to add
printers.
August 22:
Can also fix this by deleting ONE printer, and rebooting laptop.
Apple OS Bug
Subscribe to:
Posts (Atom)


