Navigation

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>