Cablechip Solution's Blog

Should I buy a Xiaomi Redmi phone? (mi vs samsung)

›
 Yes! Xiaomi are not so well known in the UK, but are the world's 3rd biggest smartphone manufacturer (on 11%) after Apple (1st on 20%) ...

How to fix a memory card (or TomTom Home hangs on the 'updates screen')

›
I've had a TomTom satnav for years, with a map of Europe on an internal memory card. And its always just worked. Once in a while, like e...

Litespeed - A drop-in replacement for Apache?

›
Our webhosts recently switched to Litespeed, a "drop-in" replacement for Apache httpd (webserver). Except, it isn't. In theo...
1 comment:

Windows Print Screen - The PrntScr Key

›
Capture the screen, or a window, and paste it into a document. In brief Print-Screen (may be PrtScr, or some similar abbreviation) thi...

Favicons, Apple-Touch-Icons, and MS-Tiles

›
Once upon a time, a website had one "favicon" (a picture bookmark), and it was called favicon.ico, and life was good. Then Apple c...

A New Website Design

›
Our website is content heavy - lots of walk directions, maps, and updates, so space is at a premium. We've also noticed a lot of traff...
1 comment:

Welcome

›
Welcome. This will be a bi-polar blog. News about walking in Southeast England, and techie stuff about being a webmaster.

OS Maps and GPS Data

›
GPS - the global open standard - use latitude and longitude. to identify a point. Ordnance Survey Maps use their own systen. The points (e...

Character Sets

›
Definitions Character Sets A character set in a sequence of characters, each character is represented by a number. e.g. 65=A, 66=B, 67=C, .....

How to Install Template Toolkit on Windows

›
If using Activestate Perl on Windows XP, Windows Vista etc.: Have a look at : http://cpan.uwinnipeg.ca/PPMPackages/10xx/ These modules are ...

Regex : Tutorial

›
Regular expressions, or regex, are one of the best things about Perl. So good infact, that they been copied by most other programming langua...

Regex : Using a regular expression (perl specific).

›
There are 3 ways to call a regex: Use: $x =~ // Use: $x =~ m// or m## or m"" or m{} or anything else you care to choose Use: qr() ...

Regex : Using whitepace and comments

›
The /x modifier Using whitespace and comments inside your regular expression is a brilliant idea, especially as regex often look like line n...

Regex : Some simple examples

›
Some simple examples to start $x = ' Andrew '; print 'match' if $x =~ /rew/; match print 'match' if $x =~ /And/; mat...

Regex : How many times to match?

›
Place these modifiers after a character: + matches 1+ times * matches 0+ times {3} after a charater matches it 3 times {2,3} after a charat...

Regex : Predefined Groups of characters

›
Groups of characters /s matches a whitespace character /S matches anything except a whitespace character /w a word charaters (a-z, A-Z, 0-9,...

Regex : Groups

›
Use ( ) for groups. $html =~ (andrew) # matches andrew ((andrew)|(john)|(peter)) # matches andrew OR john or peter # the same, but with whhi...

Perl Complex Variables

›
Perl has 3 types, scalar, array and hash. These can be combined to make complex variables. Unfortunately, the syntax isn't kind. Definin...

Regex : Doesn't match

›
# $x does not contain andrew $x !~ /andrew/

Regex : Match on word Boundary

›
\b match on a word boundary \B matches on not a word boundary

Regex : . and the /s modifier

›
A . matches anything except a newline To match a newline, use the /s modifer (treat as a Single line) $x = qq( andrew was here ); $x =~ /and...

Regex : Anchors and the /m modifier

›
Anchors ^ matches at the start of a string $ matches at the end of a string $x = /andrew/ $x =~ /^a/ ; # matches as andrew starts with an a ...

Regex : Global Replace

›
The /g modifier This repeats the regex until there are no more matches $x = /andrew andrew andrew/; $x = s/a/A/; # Andrew andrew andrew (1 r...

Regex : Using expressions

›
This is the /e modifier Example: make HTML tags upper case # ( ) - capture the text # .*? - match the least amount of text, i.e. an HTML tag...

Regex : Substitutions

›

Regex : Capture Matched text

›
Use brackets to capture text, and $1, $2 ... to refer to it $x = 'andrew john'; # swap the first and second word around $x=~ s/ (\w+...

Regex: Ranges

›
Use [ ] for ranges - match any 1 char inside the range $x =~ /[0-9]/; $x =~ /[a-z]/i; # so match a..z and A..Z as /i is ignore case $x =~ ...

Perl Poetry

›
This isn't mine, but its quite cool. $_ = reverse sort qw p ekca lre uJ reh ts p, $/.r, map $_.$", qw e p h tona e; print

Recommended PC Shareware

›
On my new Windows Vista PC I have: Google Pack (which includes) Firefox (web browser) Picasa (organises photos) Adobe PDF Viewer Spyware Doc...

The National Trust in Southeast England

›
The National Trust is a charity that own many historic buildings and gardens in the UK. This is a review of its properties in the southeast ...
Home
View web version

About Me

My photo
Andrew
Hard work never hurt anybody, but I figure, why take the risk.
View my complete profile
Powered by Blogger.