Justice Pitfield's Pitiful Justice | Insite
Wednesday, May 28, 2008 |
Edit Post
Justice Pitfield's decision to compel the Government to recognize Vancouver's Insite safe injection facility as a health care service, overrules law, the Government, and the common sense of the electorate. With a severely perverted interpretation of Canada's Charter of Rights and Freedoms, Justice Pitfield underscores the leadership vacuum in which we now live.
Labels:
Social Policy
How to Display Code Snippets
Wednesday, May 07, 2008 |
Edit Post
Valid HTML must be encoded into HTML entities before it can appear in its literal format on a web page. Here is a function written in JavaScript to encode HTML for displaying on a web page or blog. The function converts valid HTML into HTML entities:
Try it here:
Raw Output Preview
Try it here:
Paste HTML Source:
Output with Encoded HTML Entities
" gets encoded into " > gets encoded into > < gets encoded into <
To place HTML or JavaScript code anywhere in a document, it's best to encode into html entities.
Parental Street Cred | An Almost Perfect Ad
Thursday, May 01, 2008 |
Edit Post
Every once in awhile you come across a real winner. I'm not even sure what ad networks these guys used. When I first came across the strange solid orange banner that said to click, I did. All I remember was it's simplicity. I'm sure their's was much better than mine, but since I can't find it, here's my reasonable facsimile:
Clicking the banner reveals this site:
Watch all 6 video clips from the original flash site (now removed) here:
Effective Online Marketing
Thursday, May 01, 2008 |
Edit Post
To bolster conversion rates, the experts would recommend that you test, test, test. This expensive technique sounds an awful lot like the mechanic who uses a customers money to experiment on, rather than fix their car. As an advertising customer, how much R&D costs are you expected to absorb during all these tests?
Too much emphasis is placed on capturing the audiences attention in the 1 or 2 seconds you've got to grab it. While being noticed is an important aspect, if would-be purchasers aren't going to convert into paying customers, it's much cheaper if they just don't click to begin with.
It doesn't take a rocket-scientist to figure out what makes a good ad. While you can't rely solely on your own judgment, you don't ever want to ignore it entirely either. First of all, if there's something that works that you didn't expect would, or something you expected to work that failed miserably, than over and above the opportunity to do better next time, your experience has also revealed an important incongruity within your market positioning --in other words, you don't understand your customers and what appeals to them.
Once you've got their attention, are you ready to sell?
Labels:
Business
$21 Billion is a lot of Eye Candy
Thursday, May 01, 2008 |
Edit Post
Online advertising grew by 25% in 2007 and is now a $21 billion dollar industry in the United States alone.
As an advertiser, it's important to understand how traditional marketing psychology converges with the technical aspects of emergent marketing technologies.
$21 billion is a lot of eye candy:
You may have finally gotten rid of the telemarketers, but like them or not, embedded contextual ads are here to stay as advertisers become increasingly desperate to capture your attention.
Personally, I like contextual ads --there's just so much involved with marketing psychology.
Goolge has positioned itself perfectly to connect content publishers with advertisers in order to get you, the viewing public, to click more ads.
Advertisements permeate everything:
Ads for videos, ads for search, ads for content and even ads for referrals. Image ads, pay-per click ads, text ads and link ads.
CPM, PPC, analytics, click-through and conversion rates, referrals, link-back and anchor-text; too often the novice advertiser knows only enough to be dangerous; in this, an expensive game that can quickly swallow your budget.
Check this out for funny example of The Internet in the year 2045
Labels:
Business
Automate Web Browsing
Thursday, May 01, 2008 |
Edit Post
If you're looking for scripting access into client side JavaScript or Screen Scraping mechanisms to capture content as rendered in the browser, this will be of interest to you:
I've started to notice Ruby now for about 3 years, stumbling onto Ruby on Rails only occasionally to find it dispereased sparsely, but herald proudly, within the development community. Until recently I've pretty much ignored Ruby and have stuck with traditional Lamp platforms, relying on PHP for server side scripting.
Something I've wanted to do for a long time is to automate web browsing tasks. While I've used Perl's Mechanize library, my most pressing desire was to capture client-side JavaScript. My research uncovered two possible solutions. I found a firefox extension JSSh, a TCP/IP JavaScript Shell server for Mozilla, over at Ideas for Dozens: Telnet to JavaScript.
JSSh acepts a telnet connection interface to the JavaScript Mozilla's environment. While JavaScript Window objects are passed as objects in JSSh, there seems to be limitations, as these objects do not seem to offer full inheritance of Window Objects. Basic Math, Array and other objects are present, but what I needed was the Window.setTimeout() method. Maybe I am not fully understanding the functionality of JSSs, but if it has more features, they're not well documented. For certain limited applications, JSSh offers great flexibility to solve problems by providing any telnet capable application access to JavaScript and is non the less very cool.
My next tangent was found in Watir, an automated IE Screen Scraper, written in Ruby. With Ruby, and the libraries Watir and BeautifulSoup, I was able to automate a full function screen scraper in a couple hours (should have been minutes, had I already been familiar with Ruby)
The Class has three functions: It opens a specific page, logs in if required and then monitors the contents of a specific HTML tag. When the content changes, it raises an alarm.
On initialization:
- Open desired web page in a hidden IE window
- Login if redirected to login page
- Hold the contents of a single specific HTML tag in a Class variable
- Wait a specified delay interval
- Refresh the page
- Raise alarm and open a visible IE window if content has changed
Labels:
Tech
Subscribe to:
Posts (Atom)
Dynamic Page QR Code
Popular Posts
-
Product Manager Cover Letter: This real cover letter worked successfully at getting an interview as a product manager. Use it as a templat...
-
Creating randomized valid file paths is a common requirement for many applications such as the case of short url redirects. The Goo.gl url s...
-
If you're interested in placing QR tags dynamically on your site, here's how I did it in less than 5 minutes thanks to Google's ...
-
Is there a scientific reason that can explain Why People are So stupid? It's not surprising that so many people take advantage of being...
-
Cover Letter Examples that I have used successfully to get a job interview: Further to my last post on this topic, there's no substi...
-
Sample for Cover Letters Writing an effective cover letter is essential to get yourself noticed. Use your cover letter as a sample of your...
-
Decoded HTML Encoded HTML Entities /** * Encode HTML tags as HTML Entities * using jQuery * * Code takes raw...
-
In my opinion, Git is a programmers program. It is fast, feature-rich yet intuitive, kind of like Google...there's a new treasure waitin...
-
Blogger RSS URL s can be customized to syndicate content in a user friendly way. This is especially important if you operate a multi-issue b...
-
The example below uses Google's OpenID API to request and validate the user's GMail address. The visitor is first directed to Google...