Friday, January 25, 2013

View the Web in 3D Now!

Since When Did Firefox Support 3D Browsing!??

Personally, I never imagined that I would be able to view webpages in 3 dimensional space, and I am sure you did not either. The idea seems too fantastic to be true. Even now, you probably still have doubts that what I am about to tell you is true (so I wrote directions and left pictures), but you can now browse web pages in 3D through Mozilla Firefox.The directions are below!

3 Steps For 3-D Browsing

Hope for Sager/CLEVO Keyboard Users

The Goal of this Post

The goal of this post is to provide a collection of resources to address, fix, and understand your Sager Laptop Keyboard and its Issues. 99% chance your keyboard problem has nothing to do with Sager or the model of the custom computer.
This is an example of the keyboard light problem. The middle segment of the keyboard should be teal like the right and left segments.

Specifically, I bought the NP9150 (CLEVO P15xEMx) model laptop from AGearNotebooks for a hefty price of $2000+ (USA) with the keyboard upgrade in the of my order. The information on these keyboard problems is hard to find (trust me) so I hope this page helps you out!

List of Reported Keyboard Problems (Sager 9150)

  1. 'Q' key not responding to presses
  2. Dim segment of backlit keyboard with all or certain colors
  3. Shift, Fn, and Ctrl only responding to very hard presses

Solutions and Troubleshooting

Monday, January 21, 2013

Regex Tutorial 3: Phone Nums
Tutorial #2 Answers
  1. "a{3}b{4}c{5}"
  2. "kne{2}"
  3. "cab{2}age"
  4. "2{2}nd stre{2}t"

Typical Regex

Often times, the data we are trying to capture using Regex is not exactly clear. For example, with Regex you may want to capture all of the phone numbers on a website without knowing what actual numbers you will find.

Searching the literal text "333-333-3333" would not be a means of locating all of the phone numbers on a website. It would only capture results with that exact phone number.

So, we need to describe a pattern that follows: 3 digits + hyphen + 3 digits + hyphen + 4 digits.

The Digit Character

"\d" is the text to describe 1 digit. A digit character can only match: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
So, "\d\d\d" could match the first three digits of a phone number; however, we can simplify this expression to be "\d{3}". The curly brackets surround the exact number of digits we want to target.
So far "\d{3}" matches the 1st of 5 parts in the phone number pattern we would like to describe. The part following the three digits is a hyphen "-". A hyphen is treated literally in regex because the hyphen has no other purpose in regex besides specifying ranges which appear only in the quantity specifying portion of a regular expression.