I recently spent a month in the UK, and for that subscribed to GiffGaff (https://www.giffgaff.com/). For 20 UKP (a discount from 25 because I was referred by a friend) I got "unlimited" data, text and calling in the EU. In reality, that's 20 gigs unrestricted data, then it's throttled. With no WiFi where I was staying, I tethered a laptop and tablet. I ended up using about 15 gigs of data, including a trip over to Belgium, where everything still worked.
As a Canadian, these are excellent prices, but I'm sure you could do better.
Actually, not understanding the script probably cost a bit of time.
That regex is a very lame attempt to strip a path from a filename, leaving just the name part (the basename). However, it assumes firstly that if you have a backslash to start, every other delimiter would be a backslash, or conversely on forward slashes. Seeing Windoze allows both (mixed), that's a clue.
Apart from that, there's an error: if you match in the second part of the regex (after the `or' | ), the replacement should be \2, since \1 is not defined then (first part not matched). So if you match on the second part you get an empty string.
So, the thing to do is to match on the first part: give it any character(s) (the.+) then a backslash, then something other than a backslash, which will be replaced by the "something other". So "x\/a/b/c/d" -> "/a/b/c/d", and you have a root based path, which can be a bit easier to work with.
I recently spent a month in the UK, and for that subscribed to GiffGaff (https://www.giffgaff.com/). For 20 UKP (a discount from 25 because I was referred by a friend) I got "unlimited" data, text and calling in the EU. In reality, that's 20 gigs unrestricted data, then it's throttled. With no WiFi where I was staying, I tethered a laptop and tablet. I ended up using about 15 gigs of data, including a trip over to Belgium, where everything still worked.
As a Canadian, these are excellent prices, but I'm sure you could do better.
g
There comes a point when your lost time becomes significant too: http://www.mrmoneymustache.com...
> Unix don't currently ever return 23:59:60 as a valid time for any normal time related system call
I'm not sure I'd agree with that. If you look at the contents of struct tm, as returned by various time-related calls, you'll see:
int tm_sec; /* Seconds (0-60) */
That's 60, and not 59, for a reason. If leap seconds are added at midnight in your time zone, then you could see the 60.
g
Actually, not understanding the script probably cost a bit of time.
.+) then a backslash, then something other than a backslash, which will be replaced by the "something other". So "x\/a/b/c/d" -> "/a/b/c/d", and you have a root based path, which can be a bit easier to work with.
That regex is a very lame attempt to strip a path from a filename, leaving just the name part (the basename). However, it assumes firstly that if you have a backslash to start, every other delimiter would be a backslash, or conversely on forward slashes. Seeing Windoze allows both (mixed), that's a clue.
Apart from that, there's an error: if you match in the second part of the regex (after the `or' | ), the replacement should be \2, since \1 is not defined then (first part not matched). So if you match on the second part you get an empty string.
So, the thing to do is to match on the first part: give it any character(s) (the
gdm@shrdlu.kw.net