Fri, Sep 25, 2015 10:29 pm
HTML Button Tag
You can create a clickable button on a web page with
Cascading Style Sheets (CSS)
as explained in Creating a
button with CSS
or simply use the
<button>label_for_button</button>. You can apply a style attribute
to the button to change the background color on the button, display
attributes for the text, such as bold, etc. and can specify an action that will
be taken if someone clicks on the button. The button tag has been part
of HTML since version 4.0.
[ More Info ]
Wed, Sep 23, 2015 8:10 pm
Saving an image as a transparent gif using IrfanView
program for systems running the Microsoft Windows operating
system provides the capability to convert images from one
image file format
to another by using its "save as" feature. If you have an image, e.g., a
image, that you wish
to convert to a transparent GIF
format, you can do so by the following steps:
Open the original image file, e.g., the JPG file.
If you need to do any image cleanup, you can edit the image by clicking
on Edit and selecting "Show Paint dialog"; a small window will then
open with image editing tools that you can use, e.g., if you need to change
any stray pixels to the color you wish to use as the transparent color. You
can choose View and Zoom In, if you need to zoom into the
image for a closer inspection.
Then, to save as a transparent gif, click on File and select
For "Save as type", choose GIF - Compuserve GIF.
In the JPEG/GIF save options window, choose "Save transparent color"
from the GIF section. You will then have three options: "use main window color
for transparency", "choose transparent color during saving", or "set
transparency value to palette entry". If you choose "choose transparent
color during saving" when you save the file, you will be able to click
on an area in the image that contains the color you wish to use as the
- Click on Save to save the image in the new format. Note: you need
to click on the Save button on the Save Picture As window,
not the Save button on the JPEG/GIF save options window. A
Choose transparent color window will then open. Click somewhere
on the image where the color exists that you wish to be the transparent color.
Tue, Sep 22, 2015 9:12 pm
Safari CPU and Memory Usage on OS X
As with many other browsers, if you leave the Safari web browser open for
an extended period of time with many tabs open, you may find that the
overall system performance on a Mac OS X system decreases dramatically
and you may have to suffer with the "spinning beachball" when trying to
do even simple tasks, such as scrolling down a web page. The problem may
be due to Safari consuming a lot of CPU cycles or most of the available
memory. With some browsers, such as Firefox, where I've frequently
encountered peformance issues if it is left running for a couple of days
with many tabs open, it is difficult to determine which tab may be the
culprit. With a browser such as Chrome, where tabs are run as separate
processes, it is much easier. With Safari, you can use Debug
menu options to obtain per tab memory and CPU utilization information
by viewing the consumption of those resources by processes associated with
those individual tabs.
[ More Info ]
Sat, Sep 12, 2015 10:32 pm
Find email messages in a mbox file using python
I wanted to locate messages from any sender at a particular domain name
in the mailbox for an account on a Linux system. The server where the acount
resides uses sendmail and dovecot for email and the mailbox file for the
account was in mbox
When email is stored in mbox format, all email messages in the inbox
are stored in the same text file. The beginning of each email message
is indicated by a line whose first five characters consist of "From"
followed by a space (the so named "From_ line" or "'From ' line" or simply
"From line") followed by the sender's e-mail address.
In this case, the mailbox was huge with tens of
thousands of messages in a file 24 GB in size and I wanted
to extract just a few pertinent messages. So I created find-email.py,
which can be run in either "brief" or "full" mode by changing the value
of a variable named
brief in the script. In brief mode, the
script will just print the "from" line for any message where a sender's
email address matches the specified address followed by the subject of
the message and then the date the message was sent. When all messages
in the file have been processed, it will print the number of matching
messages found. In "full" mode, the script will print the entire email
message whenever a match is found.
Fri, Sep 11, 2015 10:07 pm
Norton 360 Firewall Settings Option Grayed Out
While working on a system that had the Norton 360 software installed
for antivirus protection, I wanted to ensure that I could query the
system using the Simple Network
Management Protocol (SNMP)
, but when I tried to check the Norton
360 firewall settings, I found the option to do so was grayed out. I
had thought that I could check and modify the settings, if needed, by
right-clicing on Norton 360 and choosing "Run as administrator", but I
found that didn't work. In order to check the firewall settings I had
to log into an administrator account rather than a regular user account.
[ More Info ]
Thu, Sep 10, 2015 10:42 pm
Burning an ISO Image to Disc under Mac OS X
To burn an ISO file to a disc, you can use the following steps on a Mac OS X
- Select a blank writable disc in the disc drive.
- Open the Finder and navigate to where the file is located.
- Right-click on the file, then choose Open with and Disk
- Select the .iso file by clicking on it, then click on the Burn
button at the top of the window.
Tue, Sep 08, 2015 8:04 pm
Changing the time stamp on a file or directory under Windows
On a Microsoft Windows system, files and directories have three time stamps
associated with them: the creation time for the file or directory, the time
it was last modified, and the time it was last accessed. If you wish to
change any of those time stamps, you can use a utility such as the free
provided by Nir Sofer at NirSoft
E.g., you can change the date/time of the specified filename (creation
time and modified time) using a command such as the one below:
nircmd.exe setfiletime "c:\temp\myfile.txt" "24-06-2003 17:57:11" "22-11-2005
Nir also provides
FolderTimeUpdate, which "scans all files and folders under the base
folder you choose, and updates the 'Modified Time' of every folder
according the latest modified time of the files stored in it. This tool
might be useful if, for example, you backup a cluster of folders and
then restore them into another disk, but the backup program doesn't
restore the original modified time of the folders."
You can also use
Windows PowerShell, which Microsoft has made available for Windows XP and
later versions of its operating system to change those time stamps using
a command similar to the following ones where name is the file
or directory name for which you wish to change the time stamp:
$(Get-Item name).creationtime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")
$(Get-Item name).lastaccesstime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")
$(Get-Item name).lastwritetime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")
[ More Info ]
Mon, Sep 07, 2015 8:52 pm
Entering UEFI from a Windows 8 system
I wanted to boot a Dell Inspiron 14 5000 series laptop (model number 14-5447)
from a USB flash drive to perform an image backup of the internal hard disk
drive (HDD). I had placed the Clonezilla backup program on a USB flash drive -
see Creating a Clonezilla
bootable flash drive
- and wished to use it to create an image backup
of the system's hard disk drive before upgrading the system from Windows 8.1
to Windows 10. But, in order to boot from the USB flash drive, I needed to
change the Universal Extensible
Firmware Interface (UEFI)
settings to allow me to boot the system from the
external USB flash drive. The steps to modify the system settings are listed
at Entering UEFI from a Windows 8
. Though these steps were written for this specific system, a similar
process can be followed on other systems.
Sun, Sep 06, 2015 4:55 pm
SSH Server for Windows
If you are searching for SSH server software for a Microsoft Windows
system, there are a number of products to choose from, including ones
that are free. Some commercial products are also free for personal use.
Some of the choices include the following:
- Bitvise SSH Server
for Windows, though development ceased years ago on it and I would no
longer recommend it.
- PowerShell SSH
Server for Windows
You can also install
OpenSSH server software for Cygwin.
The Bitvise SSH Server, PowerShell SSH Server for Windows, and SilverSHieLD
are commercial products which have free for personal use versions.
Sat, Sep 05, 2015 10:48 pm
Updating a date entry from the command line in MySQL
When you update an entry for a column containing dates in a table in a
database, you need to enclose the date in quotes. E.g.:
MariaDB [accounts]> UPDATE Invoices SET Date_Sent='2015-08-29' WHERE Name='Acme';
If you don't the contents of the date field will appear as
You also need to enclose the date in quotes when querying a database. E.g.:
MariaDB [accounts]> SELECT * FROM Invoices WHERE Date_Sent='2015-08-29';
Otherwise, you will get an empty set for the query results.
Fri, Sep 04, 2015 12:44 pm
Viewing the source code for a webpage under Safari and changing the user agent
The Safari web browser from Apple doesn't by default provide a menu option
that will allow you to view the underlying HTML code on a web page. But
the browser does provide that capability, you merely need to enable the
"Show Develop menu in menu bar" option.
Safari does provide a capability to change the user agent string it sends
to websites, which sites use to identify the browser a visitor is using.
Some sites may even limit access to material on the site to specific browsers.
By changing the user agent the browser reports, you may be able to still view
the content in such cases.
[ More Info ]
Thu, Sep 03, 2015 9:41 pm
Resetting the password for the PRTG Network Monitor on Microsoft Windows
After you've installed the PRTG
network monitoring software on a Microsoft Windows system, which provides
Simple Network Management Protocol (SNMP)
monitoring capabilities, when you
log into the web interface for the first time, the login name and password for
the default administrator login are both prtgadmin. You can leave the login name
and password fields empty and click on the Default Login
to log in using these default credentials.
If you changed the password, but have forgotten the password, you can
reset it by running the PRTG Administration Tool. Once you've opened the
application, click on the Administrator tab then type a new password
in the Password field and retype the password in the Confirm Password
field. If you've also forgotten the login name you used, you will
see it on that window.
When you click on Save & Close, you will see the following
In order to activate the settings the following will be done by the
PRTG Administration Tool:
- Stop and start the PRTG core server service.
The PRTG Administration Tool will close automatically afterwards.
OK to proceed?
If you are accessing the web interfce through a browser and provide
the login credentials but don't see any message indicating that they are
incorrect, but just see the page for entering the userid and password
again, then you may need to enable cookies in the browser; I had to
enable cookies in the
K-Meleon browser to get past the login screen.
If you changed the port for the web interface, you can find it listed under
the Web Server tab.
Note: these instructions apply to PRTG Administration Tool version
V22.214.171.12495 and might not apply to other versions.
Wed, Sep 02, 2015 10:40 pm
Updating a MySQL table entry with a space in the table name
If you need to update the value for a column in a
relational database management systems
named after the daughters, My and
Maria, of the lead developer for the projects,
where there is a space in the column name, use the
, aka, bakckquote, character, i.e.,
, to enclose the name of
the column. E.g., to update an entry in a table named "Sales" in a
database named "packages", if the field was named "Work Phone", I could
use the following:
MariaDB [(none)]> use personnel;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
MariaDB [personnel]> UPDATE Sales SET `Work Phone` = '555.555.5555' WHERE LName = 'Smith';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
You can also use the command below to update the entry without first
selecting the database with the
UPDATE `personnel.`Sales` SET `Work Phone` = '555.555.5555' WHERE `Sales`.`LName` = 'Smith';
MySQL UPDATE QUERY
tutorialspoint - Simply easy
Shop Amazon Local - Subscribe to Deals in Your Neighborhood