Navigation

6/14/2016

Cloning a hard drive - Windows

My home PC is dying, want to clone the C drive,  from Lifehacker



What You'll Need

There are a number of different ways to go about this, but we've found this to be the easiest and most reliable method. Here's what you'll need:
  • Your current hard drive, with Windows installed. For simplicity's sake we'll call this drive—that is, the drive you're migrating from—your "current hard drive" throughout the tutorial.
  • A solid-state drive. This is the drive you'll be migrating to. To get a rough idea of how big it should be, head to your current drive, navigate to C:\Users\ and right-click on your user folder. Hit Properties, and mark down how much space that folder takes up. Head to My Computer and note how much space Drive C: has filled up, and subtract your user folder's size from C:'s total. That's how big your SSD needs to be, though I'd give yourself a good deal of wiggle room for future updates and new programs. We'll assume, for the purposes of this guide, that you've already installed your new hard drive and are ready to migrate your data.
  • A backup of all your data. Since you can't clone only part of a drive, you'll need to remove your music, movies, and other personal files from your current drive before migrating Windows to the SSD. That means you'll want to back up your data somewhere else—whether that be an external drive, a spare internal drive, or the cloud. Just make sure that data is safe and recoverable, since we'll be restoring it later on.
  • EaseUS Todo Backup Free. This is the program we'll be using to migrate your installation. It's easy to use, free, and it can clone partitions from a big drive to a smaller drive, which is crucial for this process (since your SSD is probably smaller than your current hard drive).

6/09/2016

remove mail profile when Outlook wont open

The server address for our exchange server changed, but then you cant open Outlook on client computer.   To edit or remove bad profile:



Remove a profile

A profile consists of accounts, data files, and settings that specify where your email messages are saved.
  1. Exit Outlook.
  2. In Control Panel, click or double-click Mail.
    Where is Mail in Control Panel?
    Mail appears in different Control Panel locations depending on the version of the Microsoft Windows operating system, Control Panel view selected, and whether a 32- or 64-bit operating system or version of Outlook 2010 is installed.
    The easiest way to locate Mail is to open Control Panel in Windows, and then in the Search box at the top of window, type Mail. In Control Panel for Windows XP, type Mail in the Address box.
    NOTE:  The Mail icon appears after Outlook starts for the first time.
    The title bar of the Mail Setup dialog box contains the name of the current profile. To select a different existing profile, click Show Profiles, select the profile name, and then click Properties.
  3. Click Show Profiles.
  4. Select a profile.
  5. Click Remove.
NOTE:  Removing an email profile doesn’t remove your Outlook Data Files (.pst), so no data is lost.

from Office.com

5/26/2016

deleting files: names too long

Had a file whoes names were too long to delete or even rename.

Goto CMD, type    dir /a

to see files in short format,  eg  test~1.pdf


then    del text~1.pdf

5/23/2016

changing password for domain account via command line

Our campus IT has blocked change password from Windows (Cntrl-Alt-Del, change password) but you can update it from cmd if you are logged in as the username:

net user username new_password /domain


Details from Windows Commandline

4/18/2016

Apple OS via bootable USB drive

What to be able to restore Apple OS for patrons (from Ars Technica):


Apple has actually included a terminal command that can create an install disk for you. Assuming that you have the OS X El Capitan installer in your Applications folder and you have a Mac OS X Extended (Journaled)-formatted USB drive named "Untitled" mounted on the system, you can create an El Capitan install drive by typing the following command into the Terminal.

sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction

The command will erase the disk and copy the install files over. Give it some time, and your volume will soon be loaded up with not just the OS X installer but also an external recovery partition that may come in handy if your hard drive dies and you're away from an Internet connection.




4/15/2016

Microsoft Forefront definitions file

Have a number of PCs that were not updating the virus definitions file, so need to manually install it:



To download the Microsoft Forefront Client Security, the Microsoft Forefront Endpoint Protection 2010, or the Microsoft System Center 2012 Endpoint Protection antimalware definition update file (Mpam-fe.exe) for 32-bit (x86-based) versions of Windows, click the following link:
To download the Microsoft Forefront Client Security, Microsoft Forefront Endpoint Protection 2010 or Microsoft System Center 2012 Endpoint Protection antimalware definition update file for 64-bit versions of Windows, click the following link:  Note: You must be running a 64-bit version of Windows to run a 64-bit version of Microsoft Forefront Client Security, Microsoft Forefront Endpoint Protection 2010 or Microsoft System Center 2012 Endpoint Protection. The 64-bit versions of Windows include x64-based versions.

After you click the appropriate link, click Run to install the definition update file immediately. Or, click Save to save the file to the computer. If you click Save, remember the folder where you save the file.

To install the saved file, click Start, click Run, locate the folder where you saved the file, double-click the file, and then click OK.
From Microsoft support

4/05/2016

Linux OS reviews

Looking at different Linux versions, here are some reviews


http://www.techradar.com/us/news/software/operating-systems/best-linux-distro-five-we-recommend-1090058

http://www.howtogeek.com/191207/10-of-the-most-popular-linux-distributions-compared/

2/12/2016

Transferring sticky notes to new PC

Built into Windows OS are Sticky Notes.  Have a patron that wants to transfer their notes from old PC to new one.  Just need to copy the file below:

All notes are stored in one file:
%AppData%\Microsoft\Sticky Notes\StickyNotes.snt  
or possibly
%AppData%\Roaming\Microsoft\Sticky Notes\StickyNotes.snt


This will overwrite notes on new machine.

From Superuser  and PCadvisor



1/29/2016

Maintenance kit service for HP 600 laserjet

Video to change fuser, transfer roller on HP 600 laserjet;





How To Reset the Maintenance Count on the M600, M601, M602, M603 series
1. Press the Home button on the printer's control panel.
2. Open the "Administration" menu.
3. Select "Manage Supplies".
4. Select "Reset Supplies".
5. Select "New Maintenance Kit".
6. Select "Yes" to reset the maintenance kit counter.


1/27/2016

Parsing string for date using Javascript


Have a CMD command that returns the user expiration date, to get it into Javascript:



var stringToParse = "You have a doctor's appointment on 2012/03/13 16:00.  Please show up on time.";
var dateString    = stringToParse.match(/\d{4}\/\d{2}\/\d{2}\s+\d{2}:\d{2}/);
var dt            = new Date(dateString);
console.log(dt);        //prints "Tue March 13 16:00:00 EDT 2012"



http://www.htmlgoodies.com/html5/javascript/date-parsing-using-javascript-and-regular-expressions.htm

1/14/2016

iFrame tag scaling

I want to display an iFrame with a scaled version of a web page, use CSS to do the scaling:



<style>
#wrap { width: 600px; height: 390px; padding: 0; overflow: hidden; }
#frame { width: 800px; height: 520px; border: 1px solid black; }
#frame { zoom: 0.75; -moz-transform: scale(0.75); -moz-transform-origin: 0 0; }
</style>
 
From stackoverflow   and collaboration133 
And can even scroll to a part of the web page: 


#my-div
{
    width    : 400px;
    height   : 200px;
    overflow : hidden;
    position : relative;
}

#my-iframe
{
    position : absolute;
    top      : -100px;
    left     : -100px;
    width    : 1280px;
    height   : 1200px;
}

Here you have one DIV with dimensions 400x200px. Now by moving the IFRAME within it you can position it on the right place.

<div id="my-div"> <iframe src="http://www.example.com" id="my-iframe" scrolling="no"></iframe> </div>

12/22/2015

Canned responses for Google Mail

Had a patron who was disappointed that new Google mail only had one signature (unlike Outlook which allowed you to define multiple signatures).  But from Google Labs, you can setup canned responses [ActiveInBox]



Gmail has only one signature you can use, and it will add itself to all your emails and replies, every time. It is not exactly well designed or flexible for businesses.

If you’ve ever used the desktop version of Outlook you’ll know how easy it is to add different signatures to an email.

But you can also have quick access to multiple saved signatures in Gmail.

All you need to do is enable the Gmail ‘Lab’ (an extension) built by the Gmail team themselves, called Canned Responses. You can simply enable it from Gmail’s settings.   [from ActiveInBox]

12/21/2015

Migrating PST files to Google Mail

Here is the tool to upload Outlook PST files to Google mail  https://tools.google.com/dlpage/outlookmigration

Creates a tag  <name of file>.pst and labels all imported emails with that tag.

10/22/2015

SQL for all big records

This SQL will give you links to all the bib records in your III catalog:  (Sierra Listserv, Craig Borman)



SELECT
--*
--p.best_title_norm,
--p.best_author_norm,
'http://your.iii.catalog.url.here/record=b' || m.record_num || '&' || 'title=' || p.best_title_norm || '&' || 'author=' || p.best_author_norm || '/'

FROM
sierra_view.record_metadata m

LEFT OUTER JOIN sierra_view.bib_record_property p
ON (m.id = p.bib_record_id)

WHERE
m.record_type_code = 'b'

AND
m.campus_code = ''

AND
m.deletion_date_gmt IS null

LIMIT 500
--OFFSET 1500000
;




https://github.com/joemontibello/iii-sql-queries

10/03/2015

pgAdmin error: MSVCP120.dll missing


Tried running pgAdmin, got error missing MSVCP120.dll

Downloaded Microsoft Visual C++ 2013 64 bit, still did not solve problem.


Turns out, have to download/install the x86 version, as well as x64 version,
even if you are running 64 bit Windows


From:
http://stackoverflow.com/questions/24726910/exe-gives-error-msvcp120-dll-is-missing-for-win7x64