• Home
  • Billiards
  • Classic ASP
  • Browse Blog
    • Halifax
    • Internet
    • Internet Marketing
    • Programming
    • SEO
    • sitemap
    • Skateboarding
    • technology
      • Automation
    • travel
    • Web Development
    • Web Hosting
    • Website Management
    • wedding
  • Subscribe via RSS

Regex MM/YYYY Regular Expression for Credit Card Expiration Date

April 10th, 2009  |  Published in technology, Web Development  |  1 Comment

Here is a simple credit card expiration date regular expression. I wrote my own regexp for the expiration date since one was not easily found on the net. This one validates for allowing the year 2009 to 2029, but could be easily changed…I built this for an ASP.NET programming project for a course I’m taking.

1
^((0[1-9])|(1[0-2]))\/((2009)|(20[1-2][0-9]))$

^((0[1-9])|(1[0-2]))\/((2009)|(20[1-2][0-9]))$

This version just checks for 4 digits after the “/” character.

Above is the full reg ex. It validates a numeric 2 digit month, allowing only for 01-12. It also ensures that a “/” character is at position three.

Here is a step by step explanation of the code:

  • ^((0[1-9]) – this says the first digit must be a 0 and the second digit can be 1 to 9. This gives a positive match for months 01,02,03,04,05,06,07,08,09
  • | – this is the “or” character, which tells the regex to check for pattern A OR pattern b
  • (1[0-2])) – This is the second part of the OR – it check for 1 in position 1, and a 0 to 2 in position 2. This gives a match for months 10,11,12
  • \/ – this checks for the “/” in position three. The “\” character is the escape character, and just allows the “/” to exist there, since it’s really a special character.
  • ((2009)| – this checks for a 2009 in positions 4 through 7 and then says “OR”…
  • (20[1-2][0-9]))$ – this is the “OR” branch. It checks for a 2 and 0 in positions 4 and 5, for the “two thousand and…”, then it checks for a digit 1-2 in position 6, to match 201* and 202*. The [0-9] portion says that the final digit in position seven can be anything from 0 to 9. This branch of the reg ex matches any year from 2010 to 2029. Of course you can tinker with it to accommodate years you wish to validate for.

Or if you don’t care what year is entered, you can use this:

1
^((0[1-9])|(1[0-2]))\/(\d{4})$

^((0[1-9])|(1[0-2]))\/(\d{4})$

Subject Tags:

Regular Expression for cc expiration mm/yyyy
month/year regex
validate credit card exp date mm/yyyy

Adsense Privacy Policy Sample

April 10th, 2009  |  Published in Internet, Internet Marketing  |  2 Comments

I found myself in a pickle tonight, April 09, 2009. I had to update the privacy policies on my web properties. I found a few adsense compliant privacy policy samples online, but they were all poorly worded, and contained poor grammar.

The question of how to update the privacy policies in order to be compliant with the new policies of Google Adsense, I decided standardisation was the best way to go.

Here is my privacy policy template. It’s a good adsense-specific privacy policy template. 

 
Privacy Policy for [–sitename–]

Education on visitor privacy is important to us at [–sitename–].

At [–sitename–], we recognize that the privacy of your personal information is important. This article will inform you about the various types of personal information we receive and collect when you use and visit [–sitename–], and how we safeguard your information. We never sell or otherwise your personal information to third parties.

Use of Log Files
As with most other websites, we collect and use the data contained in log files. The information in the log files include your IP (internet protocol) address, your ISP (internet service provider, such as AOL or Shaw Cable), the type of browser you used to visit our site (such as Google Chrome, Internet Explorer or Mozilla Firefox), the time at which you visited our site and which pages you visited throughout our site.

Use of Cookies and Web Beacons
We do use cookies to store information, such as your personal preferences when you visit our site. This could include only showing you a popup once in your visit, or the ability to login to some of our features, such as forums.

We also use third party advertising services to display advertisements on [–sitename–], such as Google through the Google AdSense program. Some or all of those advertising services may use technology such as cookies and web beacons when they advertise on our site, which will send these advertisers information about your visit including your IP address, your ISP, the browser you used to visit our site, and in some cases, whether you have Flash installed. This is generally used for geotargeting purposes. Geo-targeting is sometimes used for the purposes of matching advertisements with visitors based on certain attributes that visitor has. An example of this type of geo-targeting would be showing Idaho movie theatre ads to someone located in Idaho, or showing certain ads based on specific sites visited, such as showing cooking ads to someone who frequents cooking sites.

DoubleClick DART cookies
We also may use DART cookies for ad serving through Google’s DoubleClick service, which places a cookie on your computer when you are browsing the web and visit a site using DoubleClick advertising (including some Google AdSense advertisements). This cookie is used to serve ads specific to you and your interests (”interest based targeting”). The ads served will be targeted based on your previous browsing history (For example, if you have been viewing sites about visiting Miami, you may see Miami hotel advertisements when viewing a non-related site, such as on a site about hockey). DART uses “non personally identifiable information”. It does NOT track personal information about you, such as your name, email address, physical address, telephone number, social security numbers, bank account numbers or credit card numbers. You can opt-out of this ad serving on all sites using this advertising by visiting http://www.doubleclick.com/privacy/dart_adserving.aspx

You may choose to disable or selectively turn off our cookies or third-party cookies in your browser settings, or by managing preferences in programs such as Norton Internet Security. However, this can affect how you are able to interact with our site as well as other websites. This could include the inability to login to services or programs, such as logging into forums or accounts.

Deleting cookies does not mean you are permanently opted out of any advertising program. Unless you have settings that disallow cookies, the next time you visit a site running the advertisements, a new cookie will be added.

If there are any questions, please contact us using the comment form below.

Thanks,
Gary

[–sitename–]

This privacy policy template provied by robarspages.ca
 

 

Use this as a good privacy policy text for adsense changes. You must leave the link intact in order to use this copy.

 

  • adsense privacy policy templates
  • sample privacy policy
  • sample privacy policy template for adsense

NHL Blackhawks Fan Wins Million Dollars at 10 Minutes

January 22nd, 2009  |  Published in travel

“Because that goal came at exactly the 10-minute mark of the second period, a Blackhawks season-ticket holder in Section 326 won $1 million courtesy of an Illinois lottery promotion.”

The Chicago Blackhawks will introduce the lucky fan who won one million dollars during Monday’s game in the Illinois Lottery “Million Dollar Minute” before the team takes on the St. Louis Blues at the United Center on Wednesday, January 21. The winner, who is a first-year season ticketholder, will be available to the media in front of the Blackhawks locker room at the United Center on Wednesday at 5:30 P.M.

Right wing Martin Havlat scored at exactly the 10:00 minute mark of the second period during Monday’s game against the Minnesota Wild, meaning a random fan, whose seat location was selected at the beginning of the game, won one million dollars courtesy of the Illinois Lottery “Million Dollar Minute” promotion.

During each Blackhawks home game, one fan is selected to win one million dollars if the Blackhawks score a goal at exactly the 10:00 minute mark of the second period. The seat location and section is chosen randomly at the beginning of each home game. The

“Million Dollar Minute” promotion began on Wed., Jan. 14, 2009.
In the event that the Blackhawks do not score a goal at exactly the 10:00 minute mark of second period, every fan sitting in the selected section wins an instant lottery ticket courtesy of the Illinois Lottery.

SEO Ranking for MSN Search – Tips and Ideas

January 11th, 2009  |  Published in SEO

I was doing some assessment of traffic sources for one of my sites in my google analytics account, and noticed that since September 2008, I’ve been getting a steady increase in traffic from MSN search engine. I wondered what I’d done to deserve my increase in ranking in the MSN search engine. I had not done, or even considered much SEO for MSN Search Engines specifically, but now, I’m considering it. While I research the topic of SEO and ranking strategies for MSN, I thought I’d post some notes here as an aggregate of my findings. These findings are randomly collected from around the net, and may or may not be true.  As with most SEO theories and techniques, the ones listed here are entirely theoretical, and should be treated as such. As always, your results with ranking and SEO for MSN search may vary.

  • MSN algorithm seems to rely more on “on-page” SEO than other engines. For MSN, you may want to focus more on this in for MSN SEO and in order to rank well in MSN search.
  • There has been no evidence that any MSN sandbox exists. (Unlike google, where there have been studies to proove the existance of a “sandbox-like efffect”
  • MSN weighs H, title, and meta tags more heavily than other engines.
    • Meta tags, and title tag should BE the keyword(s) or phrase you are trying to rank for.
    • H tags should closely, but not exactly, resemble your title tag.
    • Use bold, italics, underline (at 50% utilization only) for your keyword(s) or phrase
  • MSN search SEO considers keywords in URLS, although there is talk around the net of this attribute lessening in importance.
  • Keyword density it at least as important with MSN SEO as it is with other engines.
  • For new sites, optimize on-page SEO, then wait 3 months before building backlinks.

I’m sure that there are lots of others. The one thing that seemed to be unique to my site at the time my MSN SEO improved was that I switched web hosts. Not sure if that is a coincidence or not.

How to Edit Windows Media Center TV Recordings (.dvr-ms) in XP

January 9th, 2009  |  Published in technology  |  1 Comment

I needed to edit a recording I made from a TV show with the Windows Media Center, and I assumed at first that the files would be .avi or .wmv or something I was used to. It turns out that they were .DVR-MS format, which is a proprietary MS format that can not be easily edited without installing third-party apps. 

I did come across an easy registry edit that allows you to edit .dvr-ms files in xp through windows movie maker.

Thanks for Chris Lanier’s Blog for pointing me in this direction and for providing the registry changes.  

Open Notepad and paste the following in it.

 

----

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{083863F1-70DE-11d0-BD40-00A0C911CE86}\Instance\{A4F9C3BA-A68F-4942-8152-B783CF89193F}]
"CLSID"="{A4F9C3BA-A68F-4942-8152-B783CF89193F}"
"FilterData"=hex:02,00,00,00,00,00,20,00,04,00,00,00,00,00,00,00,30,70,69,33,\
  00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,30,74,79,33,00,\
  00,00,00,b0,00,00,00,c0,00,00,00,31,70,69,33,00,00,00,00,00,00,00,00,01,00,\
  00,00,00,00,00,00,00,00,00,00,30,74,79,33,00,00,00,00,d0,00,00,00,c0,00,00,\
  00,32,70,69,33,08,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,\
  30,74,79,33,00,00,00,00,b0,00,00,00,c0,00,00,00,33,70,69,33,08,00,00,00,00,\
  00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,30,74,79,33,00,00,00,00,d0,00,\
  00,00,c0,00,00,00,76,69,64,73,00,00,10,00,80,00,00,aa,00,38,9b,71,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,61,75,64,73,00,00,10,00,80,00,00,aa,\
  00,38,9b,71
"FriendlyName"="WMT MSDVR 2 Dexter Filter"
@=""

[HKEY_CLASSES_ROOT\CLSID\{A4F9C3BA-A68F-4942-8152-B783CF89193F}]
@="MSDVR"

[HKEY_CLASSES_ROOT\CLSID\{A4F9C3BA-A68F-4942-8152-B783CF89193F}\InprocServer32]
"ThreadingModel"="Both"
@="C:\\Program Files\\Movie Maker\\wmm2dvr.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MM20\MSDVR]
"MSDVRMinimumVersion"=hex:43,21,00,26,05,00,05,00
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MM20\MSDVR\MSDVRExtensions]
"dvr-ms"=""
"ms-dvr"=""
@=""

---

Save the file with a .reg extension (example: MM2.reg) and then double click on it to merge it with your existing registry.

Saint Mary’s University (SMU) Switches from WebCT to BlackBoard for Online Course Tools

January 6th, 2009  |  Published in Halifax

This year, Saint Mary’s University was scheduled to “flip the switch” and complete the migration from WebCT (web course tools) to a system called BlackBoard. On an implementation that was started in mid-2008, the launch date for faculty was to be December 2008, and the launch date for students was to be January 5, 2009 – the first day of class in the winter semester.

Now, let me preface this post by saying that I’ve worked on a bunch of IT related projects before, and I understand that deadlines are frequently missed due to unforseen technical issues and delays from various parties involved. I consider this par for the course for most IT organizations, and this is not what I fault SMU ITSS and the blackboard implementation team for. What I do fault them for is the premature launch to students who rely on the system (some  in-whole, some in-part) to attend and interact with their courses. If the system is not ready, then fine. Just don’t launch it into production when ZERO functionality is ready. 

As a part time student upgrading some Information Systems skills, I’m taking a few “online” courses. This requires that I use BlackBoard to “access the course” – which is the online equivalent to attending class and receiving the physical class material.

We’re told to expect delays of roughly a week. Well, thats sort of acceptible. No sweat there? Not exactly. Another failure on the part of the SMU ITSS department (the IT organization within/supporting faculty and students) was that they have not communicated well with students.  Most are walking around with NO idea how to access the new system, and those who do know (like myself) have not been informed of how to log in. Great. SMU has a myriad of disparate systems for the students and staff to manage their “stuff”  (most of which are horrible from  a UI standpoint) and none of those logins work. Surfing both the student intranet (smuport) and the SMU.CA website reveals no hint of information regarding the new system or the delays.

So, SMU ITSS, this is my plea. Please communicate, at least daily with students and faculty with regards to the blackboard implementation.

vbscript Select Case for Range of Values

December 23rd, 2008  |  Published in Web Development  |  6 Comments

Here is a snippet of vbscript I use in ASP and/or VBS applications where I need a select case statement for a range of values for each case. There isn’t too much documentation online about this, and it’s a bit of a hack, but this will do the trick.

1
2
3
4
5
6
7
8
select case TRUE
     case your_var >= 0 and your_var < = 4
         'do your stuff
     case your_var >= 5 and your_var < = 10
         'do your stuff
     case else
         'handle the else
end select

select case TRUE case your_var >= 0 and your_var < = 4 'do your stuff case your_var >= 5 and your_var < = 10 'do your stuff case else 'handle the else end select

Basically, it tells the vbscript engine to select the case that evaluates to TRUE (or you could set to false, or any other value, such as “select case 199” where it would choose the case whose statement evaluated to 199, depending on your requirements)

I know this is a bit of a hack but hey, classic asp is not as robust as some other languages, and so we have to inprovise. one other note, my example has values hardcoded into the select case statements. This is poor programming practice, and was only used for simplicity’s sake in demonstrating how the vbscript select case for a range of values statement works.

Comments welcome.

Ideagora Knowledge – Forget Business Books, Try Greek History

December 19th, 2008  |  Published in Internet

Ideagora Knowledge – Forget Business Books, Try Greek History

Today’s businesses are turning to ideagoras for knowlegde and intellectual property more and more. Ideagoras are virtual marketplaces for sourcing knowledge, ideas, innovation, and intellectual property from freelance knowledge workers from the world over. Amazingly enough, this groundbreaking business paradigm comes from aincent Greece, where the agora was a public open space for assemblies of business and people.

The idea is that big business (and small business) does not have the time nor the resources to go out and seek knowledge expertise from around the world manually. Knowledge workers are also limited (generally) to the geographic area in which they reside when hunting for the next challenging project or job. Ideagoras operate like an eBay marketplace in that they unite buyers and sellers from all over the world who would not normally have the opportunity to make an exchange.

Ideagora knowledge acquisition is easy as today’s ideagoras become a pool of thousands of companies and millions of ideas, and uniquely qualified knowledge workers. This creates a virtual ideagora knowledge marketplace where both problem solvers and solution seekers come together.

Webmaster Ideagoras  -rent-a-coder.com is like an ideagora.

Companies using Ideagoras

December 19th, 2008  |  Published in Internet

Companies using Ideagoras

Many of the companies using ideagoras for thier R&D are already well-known for the quality and accomplishments of their internal R&D department. More and more though, they are realising that in order to stay competitive in today’s internet-enabled business world, that companies using ideagoras have the advantage of fresh eyes and and external, specialized knowledge base.

Companies using ideagoras include DuPont, Novartis, Dow Chemical, Boeing, and Proctor and Gamble.

Colgate uses Ideagoras

December 19th, 2008  |  Published in Internet

Colgate uses Ideagoras

It probably comes as no suprise that a leading consumer-products corporation, Colgate, uses ideagoras to solve some of the problems it encounters with it’s new products.

The story, as outlined in the ground-breaking ideagora piece in Business Week called “A Marketplace for the Minds”, mentions Colgate and a problem they had with getting it’s toothpaste into the tubes efficiently. Their internal R&D department couldn’t come up with a satisfactory method for this task, so Colgate used and ideagora, InnoCentive, to post their problem, and a reward for a successful solution. 

Ed Melcarek, a Canadian Engineer, found the problem, and suggested implementing a positive charge on the fluoride powder and then grounding the tube. The solution worked, and was one that was never considered by Colgate’s internal team of chemists. For his two to three hours of work, Colgate rewarded Melcarek with a cool $25,000. Nice. Nice for Melcarek obviously, but also nice for Colgate. $25,000 is likely far less than they would have spent for the additional needed to come up with a workable solution to thier problem.

Colgate uses ideagoras more and more for problems of this nature after this success story.

View older articles:


Dec 30, 2011
eZooms Bot User Agent

by admin | Read | No Comments

I am trying to find the group/entity/company behind the ezooms.bot (ezooms.bot@gmail.com) User agents: Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com) Some IP: 220.181.108.79 If you know any more info on this spider/bot/crawler/probe, please post below.


Dec 6, 2011
SQL Full Outer Join Three Tables

by admin | Read | No Comments

Here is some code to do a full outer join on three tables. In the example, the three full outer joins are done on two columns , but it works just the same if you only have a single join column. CREATE TABLE ZA (T CHAR(1), O CHAR(1)) CREATE TABLE ZB (T CHAR(1), O CHAR(1)) […]


Dec 2, 2011
Classic ASP Data Caching for Performance

by admin | Read | No Comments

Here is an OLD article I had about data caching in classic asp using the application object. When it comes to application performance on your web servers, ever little bit counts. Howto build a database caching system Introduction In this tutorial I will teach you how to build a simple database caching system to improve […]


Apr 18, 2011
Comparing OLE DB and ODBC Connections

by admin | Read | No Comments

Comparing OLE DB and ODBC This document compares the basic features of OLE DB to the basic features of ODBC (Open Database Connectivity). It is intended to help clarify when to use one over the other. Introduction OLE DB vs ODBC OLE DB and ODBC are both specifications created by Microsoft to address universal data access. […]


Mar 1, 2011
Export Windows Scheduled Task Information to File with Command Line

by admin | Read | No Comments

Here is how to Export Windows Scheduled Task Information to File with Command Line: schtasks /query /fo CSV /v >> scheduled_task_metadata.csv This will dump a list of scheduled tasks and their advanced settings to a CSV file called “scheduled_task_metadata.cs” to whichever location you run the command prompt from. If you don’t want the windows scheduled […]


Jul 25, 2010
MySQL Statement List and MySQL Clause List

by admin | Read | No Comments

MYSQL Statements and clauses ALTER DATABASE ALTER TABLE ALTER VIEW ANALYZE TABLE BACKUP TABLE CACHE INDEX CHANGE MASTER TO CHECK TABLE CHECKSUM TABLE COMMIT CREATE DATABASE CREATE INDEX CREATE TABLE CREATE VIEW DELETE DESCRIBE DO DROP DATABASE DROP INDEX DROP TABLE DROP USER DROP VIEW EXPLAIN FLUSH GRANT HANDLER INSERT JOIN KILL LOAD DATA FROM […]

About Robar's Pages

A technology blog about classic ASP and vbScript from the east coast

Tags

1and1 adsense asp caribbean classic asp crowdsourcing CTR cuba Cueva de Pirata customer service database dominican republic forum management godaddy google Halifax hosting hotel ideagora Internet Linux MySQL objWmiService outsourcing php Pirates Cave plugin scripting scripts SEO Skateboarding sql travel Varadero vbs vbscript web browser web development wedding What is Crowdsourcing? wikipedia windows windows scripting winmgmts xp

Pages

  • About Robar’s Pages
    • Privacy Policy for robarspages.ca
  • Classic ASP Programming and Development
  • Gran Bahia Principe Wedding
  • YouTube Extension Plugins for WordPress

Categories

  • Automation
  • Halifax
  • Internet
  • Internet Marketing
  • Programming
  • SEO
  • sitemap
  • Skateboarding
  • technology
  • travel
  • Web Development
  • Web Hosting
  • Website Management
  • wedding

Contributors

  • admin

Popular

  • 1and1 Corporate Headquarters Phone Number
  • Our Online Wedding Guestbook
  • Caribbean Travel Tips
  • Grand Palladium Bavaro Photos Pictures Videos Reviews
  • vbscript Select Case for Range of Values
  • Gran Bahia Principe Wedding
  • 1and1 Service Unavailable Message
  • 1and1 "There is a domain registration error"
  • Snitz Forum SEO
  • 1&1 Scam Ripoff - Unlimited Traffic Promotion from 1 and 1
  • Blogroll

    • Billiard Video Television Niche video site for the cue sport enthusiast. (Last updated: December 31, 1969 9:00 pm)
      Niche video site for the cue sport enthusiast.

  • Recent Posts

    • HTTP_X_EAC_REQUEST
    • eZooms Bot User Agent
    • SQL Full Outer Join Three Tables
    • Classic ASP Data Caching for Performance
    • Comparing OLE DB and ODBC Connections

    Recent Comments

    • AP on 1and1 Corporate Headquarters Phone Number
    • AJ on 1and1 Corporate Headquarters Phone Number
    • cordova on 1and1 Corporate Headquarters Phone Number
    • mike on 1and1 Corporate Headquarters Phone Number
    • David on Regex MM/YYYY Regular Expression for Credit Card Expiration Date
    ©2026 Robar's Pages
    Sitemap and Table Of Contents