Profile cover photo
Profile photo
Adam Williamson
938 followers
938 followers
About
Posts

here is basically all you need to know about #javascript :

"The getMonth() method returns the month (from 0 to 11) for the specified date, according to local time."

"The getDate() method returns the day of the month (from 1 to 31) for the specified date."

........sigh.
Add a comment...

Fun thing I didn't know about regexes (at least in Python):

>>> starttest = re.compile(r'^foo')
>>> starttest.match('foo')
<_sre.SRE_Match object; span=(0, 3), match='foo'>

OK, so far, so boring. But wait!

>>> starttest2 = re.compile(r'^^^^^^foo')
>>> starttest2.match('foo')
<_sre.SRE_Match object; span=(0, 3), match='foo'>

So ^ "matches" the start of the string, but not in the sense "match" commonly means for regexes; it doesn't consume it. It's a zero-length match, like a lookahead; the regex is still 'at' the start of the string after it has matched.

And yes, this actually matters in a real world circumstance. Very much a corner case, but a real one!
Add a comment...

I do enjoy using +LineageOS , but reading the changelogs is a bit of a sausage factory excursion, what with all the commits with "DO NOT MERGE" in the name which were...merged, and commits with topics like 'Revert "Revert "DO NOT MERGE Disable overlays while installer is resumed""'...
Add a comment...

Post has shared content
Thanks for the post, Steven!
Adam’s workflow, as a quality assurance person, is fascinating (and clever). He lives across three different versions of Fedora all the time! I’m not surprised he uses GNOME. It works well stock, so it’s easy for him to keep in sync across three different…
Add a comment...

Post has attachment
Add a comment...

Post has attachment

tfw you're sitting on the floor surrounded by bits of computers and you see a capacitor just sort of lying around, only it doesn't look like any of the capacitors on any of the boards you can see...

"well, SOMETHING's broken. now what is it?"
Add a comment...

Post has attachment
recording of my #lfnw #linuxfest northwest talk is available: https://www.youtube.com/watch?v=Qv6xjVEgbIE - thanks to Scott Dowdle for tracking that down. It's a Fedora past, present, future talk (though I kinda messed up the timing and only had a few minutes for 'future').
Add a comment...

Post has attachment

Post has attachment
Hey you! Yes, you! Do you live in the Pacific Northwest? Do you have nothing in particular to do tomorrow morning? Then by all means, drop by #LinuxFest Northwest #LFNW and see me talk about #Fedora 's fine history, great present and somehow-even-greater future at 9:30am in CC-208:

https://www.linuxfestnorthwest.org/2017/sessions/fedora-where-we-are-and-where-were-going

Then, if you like, you can use what you learned to heckle those poor fools +Bryan Lunduke and +James Mason as they attempt to convince you of the merits of their pathetic, inferior product at 10:45am in HC-108:

https://www.linuxfestnorthwest.org/2017/sessions/opensuse-101
Add a comment...
Wait while more posts are being loaded