Javascript to Print a Single Image on Web Page

27 January 2012 – 9:52 am

Here’s the problem: you have multiple coupons or pictures on your webpage and you want your visitor to be able to choose one and print it via their browser print dialog box. You don’t want to ask your visitor to first download the image to their computer and print from there.

Kudos to Boutell.com that gave me a solution where many others failed. This script even works with Firefox. I tested it myself in Chrome, IE9 and Firefox, and it works beautifully. Boutell also says it works in IE 6 and 7. It also provides a message for visitors who have disabled javascript (which you can customize, providing them an alternate means to print, eg. saving image first, etc.)

I even got this to work in a WordPress blog by using the “Add to Head” plugin by Samuel Cohen. Kudos to you, too, for an elegant solution to many befuddling WordPress issues.

So if you are just ready to copy and paste, click through to Javascript to Print a Single Image On a Webpage and page down to where the part is that says, “Enough Talk, Let’s Print!” Note that some of the script goes in the head of your webpage and some in the body.

Also, don’t forget to add the ALT tags and height and width attributes. It seems to be necessary to remind the image to change the cursor to a hand or pointer also.

<img style="cursor: hand;" onclick="printme(event)" src="smiley.gif" alt="Smiley face" width="42" height="42" />

How To Forward Gmail To Cell Phone as a Text Message (SMS)

31 December 2011 – 1:17 pm

This is a great solution for someone with a business where you want to be notified audibly and nearly instantly when you receive email from one of your customers. This keeps you from having to check your email constantly or to be interrupted by every email from everyone. Just set up the filter according to subject line or some other constant in the “to” or “from” fields.

 

First in Gmail you need to set up your telephone number as a forwarding “email” destination. The following explains how:

Within Gmail go to “Settings” and select “Forwarding and POP/IMAP.”

Under “Forwarding,” click “Add a Forwarding Address.”

Enter your 10 digit cell phone number with the designation for your provider.

  • AT&T: number@txt.att.net
  • Qwest: number@qwestmp.com
  • T-Mobile: number@tmomail.net
  • Verizon: number@vtext.com
  • Sprint: number@messaging.sprintpcs.com or number@pm.sprint.com
  • Virgin Mobile: number@vmobl.com
  • Nextel: number@messaging.nextel.com
  • Alltel: number@message.alltel.com
  • Metro PCS: number@mymetropcs.com
  • Powertel: number@ptel.com
  • Suncom: number@tms.suncom.com
  • U.S. Cellular: number@email.uscc.net

 

Thanks, http://www.thinkingserious.com/2010/04/03/how-to-forward-an-email-as-a-text-message/ for this list. I have not checked them all, but I know the T-mobile works.

Let’s say your cell number is 555-123-4567 and you have T-Mobile so you enter:

5551234567@tmomail.net.

Click “Next” and you will see the message “A confirmation code has been sent to verify permission.”

In a minute you will receive a text message from Gmail on your cell phone.

It sends you an 8- or so digit “confirmation code” and also gives you the option to click through a link to complete the verification. If you do not want to get a data charge, you can make a note of the confirmation code. I will tell you where to put it.

Go back to your Gmail account to “Settings” and “Forwarding and POP/IMAP” under “Forwarding” and you will see the message “Verify 5551234567@tmomail.net” and a box where you can enter the confirmation code and click “verify.” You also have the option to “Re-send email,” actually the text message, or to remove the address.

You should see the message “You have verified the forwarding address.”

Under “Forwarding” keep the radio button “Disable Forwarding” selected if you do not want all your email forwarded to your cell phone.

Follow the standard procedure for creating filters and you will see when you have the option of designating a forwarding “email” which in this case is a text message to your phone. (It will appear as a drop-down selection.)

Setting up filters is fairly intuitive. You can start under “Settings” by going to “Filters” or by initiating a search of your mail first or by opening an email of someone whose messages you want to filter.

https://support.google.com/mail/bin/answer.py?hl=en&answer=6579

I have noticed that my text messages from my Gmail appear as “picture messages.” I do not believe this will accrue additional charges in my cell phone plan, but I will update when I know for sure.

 

Fascinating Collection of Infographics for the Internet Business

8 December 2011 – 10:14 pm

I just love these 9 New & Fantastic Search Engine Marketing Infographics by Derek Edmond. From a variety of sources, he has gathered together this educational collection.

I especially learned a great deal from “The Evolution of Making Page 1″ which is a history of search engines as well as Google algorithm updates.

Though I have not used them in a while I found “What Is Google AdWords? How the AdWords Auction Works” very well presented and highly recommended for anyone starting out in AdWords or just curious about it.

I also found the “Google Longtail Keywords Infographic” a great explanation for what happened in the aftermath of Panda this year.

There are also other interesting infographics related to the authority site, building links, content for SEO, SEO salaries, a SEO software survey, and more.

Search and Replace Plug-In for Moving WordPress

8 December 2011 – 9:51 pm

Recently I had to undertake the moving of one of my blogs from a subdirectory to a subdomain.

I recommend the following two pages to help with that:

http://yoast.com/move-wordpress-blog-domain-10-steps/
http://patdoyle.com/internetbusiness/how-to-move-a-wordpress-blog/330/

I especially found that the “Search and Replace” plug-in by Frank Bültge (found by ordinary search in the WordPress plug-in directory) to be much easier than a download and attempted correction of a database.

In my situation I had to do a “search and replace” for both:

  • example.com/subdirectory to subdomain.example.com
  • example/public_html/subdirectory to subdomain.example.com

Immediately I checked my blog and the home page worked, but all the secondary pages gave Server 500 errors. I checked the htaccess file (created by WordPress) and found the following:

RewriteRule . /subdirectory/index.php [L]

I changed it to

RewriteRule . /index.php [L]

Then everything worked fine.

Outraged By the Appearance of Lycos and Gamesville Ads on My Sites

25 October 2011 – 7:58 pm

I could not figure out what was causing it for the longest time. I thought my webhosting account had been hacked. I thought there was spyware or viruses on my computer. I checked my browser settings, all to no avail. The weird thing was I could read my email or visit all manner of websites all day, but the problem (popup windows with Lycos and Gamesville Ads) mainly cropped up when working on my own websites!

Finally I noticed as one of my webpages was loading seeing “ads.clicksor.com” appear in the bottom left corner of my browser. Aha! I started researching Clicksor and soon discovered complaints about an association between Feedcat and Clicksor. Apparently if you have the Feedcat button on your site with accompanying javascript, it is causing these popup ads to appear.

This is a new problem that appeared this past summer when the Feedcat.net website was sold on Flippa, and the new owner took it upon themselves to create a profit in a salacious way without, of course, any warning to Feedcat users. I think they are really brave to anger so many webmasters. (Do I hear DoS attack?)

So now I have removed all Feedcat links from my sites and found the Clicksor cookies and deleted them from my browser’s settings. Happy day! All popups gone.

Review of Paul McKenna’s “I Can Make You Thin”

27 May 2011 – 7:14 am

I Can Make You Thin cover

I lost 6 pounds in 2 weeks!

As far as I am concerned, that says it all. For someone who only needs to lose an additional 18 pounds to reach her goal, this is a big deal.

For inquiring minds who want to know I will tell a bit more. Two weeks ago, I went to the library looking for a book on behavior modification to help me lose weight. This Paul McKenna book was the first item at the top of the search. Since I don’t follow popular culture or watch television much, I had never heard of him before, so I checked out his book. If I had known he was something of a celebrity, I probably would have looked at the second item of the search.

I consider myself an old hand on most of the common sense advice about reducing food intake and increasing exercise. Most of the time in the last ten years when I have really made up my mind to do it, I have been able to lose a bit of weight. This year has been difficult for losing weight for some reason, although I was exercising more than I had previously, having been inspired by my daughter’s enlistment in the US Coast Guard and her physical transformation during eight weeks of basic training. At the same time I increased my exercise, I could not seem to control my afternoon and evening munchies, grabbing whatever food was handy while fetching kids’ snacks, cooking and cleaning up dinner, and sometimes even snacking before bedtime.

So in one afternoon I read the first half of the book (it’s a nice and short 167 pages) and by dinner time and through the evening, I already felt more in control of my eating. Just reading about the Four Golden Rules of Eating with accompanying explanations made all the difference. I do not want to say much about these rules here, because I know I read these rules a couple of years ago on a blog by Australian doctor Dr. Martin Russell (who also happens to currently have the top rated review of McKenna’s book on Amazon) and immediately dismissed them out of hand as something that would not work for me. I think what convinced me to give the rules a try this time was “hey, what have I got to lose,” the explanations provided with each rule in the book, and McKenna’s promise that you don’t have to believe in the stuff in his book for it to work. Yes, and I am probably a bit of a sucker for the testimonials, too, although weight loss testimonials for anything are as common as kudzu in Georgia. The Four Golden Rules are deceptively common sense. Deceptive, I say, because why have I never tried to eat that way before? The book also addresses issues of emotional eating, binging, and cravings which I have had problems with from time to time, but for whatever reason has not cropped up yet. (Knock on wood.) I am glad to know I can turn back to the book with some more things to try if I run into some trouble.

The last two weeks have been extraordinarily easy, and I cannot say why other than this thing works. The hardest part has been not stepping on the scale or whipping out the tape measure while I have been feeling that some of my clothes are looser. (McKenna highly recommends only weighing once every two weeks.)

So what do I like most about The Simplest Weight-Loss System in the World ™?

I like that I will never have to read a nutritional label again for calories or grams of carbs or protein. I like that the system asks me to tune into my body and pay attention to it. I like that I feel I am beginning to have a normal relationship with food.

Most of all, I like that it works for me.

(For my local friends, I will be returning the book and CD back to the library as soon as I get my copy from Amazon!)

{Update September 2011: I have lost 14 pounds and lost 3 inches in my hips, 4.5 inches in my waist, and I am very happy. I have no doubt that I will eventually achieve a “normal” BMI in a healthy way.}

Searching for Clean Romance Fiction

25 May 2011 – 8:36 am

False Colors by Georgette Heyers cover art

I have only just started reading romance fiction, looking for stories in a Jane Austen / Regency England type setting. (This derives from my enjoyment of the Caroline Stevermer and Patricia C. Wrede, which I considered a fantasy book and has the longest title in a book I have seen lately: Sorcery and Cecelia or The Enchanted Chocolate Pot: Being the Correspondence of Two Young Ladies of Quality Regarding Various Magical Scandals in London and the Country ) Let’s face it: a lot of romance fiction is too explicit, however there are some good books of this genre to be found.

Georgette Heyer (1902-1974) was a prolific writer of romance fiction that was considered historically accurate in its details and very Austenesque. Recently I have enjoyed False Colours which I found to be a very original plot about a brother who must impersonate his identical twin to save his brother from an awkward social situation, and in the process ends up falling in love with his brother’s fiance. I have also read several of her other books (Simon the Coldheart, Lady of Quality, Faro’s Daughter) which share the similar plot device of two people who hate each other falling in love with each other. That can be rather amusing at first, but I was getting tired of it.

Also in looking for clean Regency Romance fiction, I found Linore Rose Burkard who has written two books of the genre, Before the Season Ends and its sequel The House in Grosvenor Square as well as one additional sequel. I enjoyed the Christian aspects in the book and I may need to find other Christian romances that I may like.

The Decline Effect

1 March 2011 – 8:20 am

I highly recommend this article about the Decline Effect by Jonah Lehrer published in The New Yorker.

http://www.newyorker.com/reporting/2010/12/13/101213fa_fact_lehrer?currentPage=all

This is the kind of thing to make you a bit distrustful of any new report, study, or statistic that is reported every day. Even more scary is the prospect that many of the assumptions we make about our health care are not to be invested with the total trust that seems to be asked of us when something has been supported by research. We should all remember that for just about every study that has been done on a topic, especially something that seems to defy previously held views, there will be another study next year that says just the opposite.

It kind of makes me wonder how this can be applied to an internet business, especially testing things like SEO, copywriting, and other things related to increasing revenue. It makes me think that a very significant difference (30 percent or more? how much?) should be seen between your baseline and your test result before you can trust it. What about keyword research? I have seen some pretty inconsistent things in that department. When it comes to building websites my philosophy has become “Build it, then we will see if they come.” (Apologies to Field of Dreams.)

New Research Tool: Shablast

22 July 2010 – 7:13 am

This is a search engine that gathers the top 30 pages from Bing then ranks the pages according to which one has the most information. Sometimes in Google and other search engines, high ranking pages are sparse on information because their inbound links help them to rank well. This search engine is found at http://shablast.com/

I can see where this can be a great resource in researching information for creating new web content, especially when used in conjunction with http://gistweb.com/ for really hefty pages of content.

More background information from the creator of Shablast can be found at http://jonathanleger.com/how-google-gets-it-wrong/

Book Review: Sun and Moon, Ice and Snow By Jessica Day George

21 May 2010 – 10:14 pm

Sun and Moon, Ice and Snow cover art

This YA novel is based on the Nordic fairy tale “East of the Sun, West of the Moon.” This is a story reminiscent of Beauty and the Beast — a man is enchanted to be a bear by an evil troll. If a girl can live in an ice palace with him for a year, without uncovering the terms of the enchantment he will be free. Nice, romantic ending. Original elements like the girl being unnamed by her mother, until a magical white reindeer gives her a name. The scene where she shares her name with the man she loves is sweet.