• 35 Posts
  • 727 Comments
Joined 2 年前
cake
Cake day: 2023年6月11日

help-circle
  • For instance, in February 2023, the hosting giant disclosed that unknown attackers stole source code and installed malware on compromised servers after breaching its cPanel shared hosting environment in a multi-year breach.

    I assumed their security for this was to keep shuffling around their web site to make that cPanel stuff impossible to find? It’s like a store that keeps rearranging their floor inventory. I dread having to do anything with cPanel. Kudos to the hackers who managed to work it out.




  • Yeah, I have some Python scripts that reflow selected passages of code for me using this approach. It always feels so weird when I’m using some OS that seemingly doesn’t support any sort of GUI scripting.

    It’s worth noting that while you can simulate mouse clicks and key strokes within any app, some support a few direct scripting commands. For example, in Terminal, you don’t need a GUI script to open a new window and type in it to run some command. You can just issue an AppleScript command to tell app "Terminal" to do script "top" or whatever. That’s because Terminal’s scripting library includes a do script command.

    For more on this, you can fire up Script Editor and go Open Dictionary. You will see a list of all apps with any sort of scripting support and be able to get documentation on what you can do with it.



  • I don’t know about good, but today was an unusual day for me.

    With a blizzard setting in, I figured my best chance to get to work was on the bus. So I was walking up to where I could catch it passing various houses with Christmas lights and decorations, only to stop dead in my tracks at one particular house.

    It’s sole decoation was an 8-ft tall Krampus on the front lawn. It had a goat head with horns and demonic eyes and sharp claws holding a gnarled staff on one side and chains on the other. It’s dark burgundy cloak had a dusting of snow on its shoulders to complete the look.

    Then I was on the bus trying to digest what I had seen when who should walk on but Polar Man! He’s a local superhero with a bushy beard and a mask. He helps people in distress shovel out their driveways. At one point as the bus was passing through a residential area, he got up and yelled “Driver! Stop the bus!” and leapt out dramatically to cheering passengers.




  • My brother is involved with tournament Scrabble and knows Nigel well. I don’t compete myself but have watched games among top players. There is a lot of strategy beyond simply memorizing word lists.

    The best play is often not the highest-scoring one. You need to examine the board and determine what it might expose to your opponent. You also need to keep track of what tiles have been played already to get an idea of what may be lying on your opponent’s tray at the moment. You may also take the calculated risk of playing a word you know is not real. If it is not challenged, it stands. Depending on tournament rules, a challenge may cost you if it fails (i.e. the word is legit), so there is a poker-like bluffing element.










  • Have to say I’m a little sceptical on this. In the early 2000s we had that giant power outage that hit everywhere from Ontario down to the US eastern seaboard. It’s all one giant, tightly-integrated grid. Both sides milk Niagara Falls for all its worth, for example.

    If it were Quebec making this threat, I would take it seriously. They spent a lot to rebuild their grid with DC isolation and everything after a horrific ice storm took it down. If they said “we’re cutting you off”, then yeah, they could realistically do so. But this is Doug Ford in Ontario. What a blow-hard.

    If he’s talking more about gas/oil pipelines, well, what’s the point? Trump’s tariffs will already cause prices to soar at the pump in the US. No need for an embargo. Talk about shooting yourself in your foot. I cannot believe he has any support, and yet here we are.



  • I love my ebike! It’s been a game changer for me. I can give you a few safety pointers that apply to cycling in general.

    • invest in a rear-view mirror so that you can watch for people coming up from behind and cutting you off with a sudden right turn (the right hook, as it is sometimes called)
    • at intersections, try to make eye contact with anyone turning across you
    • get front and rear lights (most jurisdictions require these for night time riding but they are good to have on in daytime also)
    • get a bell (again, generally required) and use it when you are approaching pedestrians who can’t see you or in general when your sight lines are obstructed
    • watch out for parked car doors swinging out (if you need to take over a lane to pass a car safely, it is your right to do so)
    • when you need to maneuver (e.g. change lanes, turn, etc.), use hand signals and do so gradually from a good distance

    The nice thing about an ebike is it doesn’t cost you a lot of effort to get going again after slowing down or stopping, so you should do so if you’re facing an uncertain traffic situation.

    Also, regarding risks, you need to weigh them against the risks of not riding. In my case, I work a sedentary job and this is my primary means of exercise. (Yes, even ebikes can give you exercise!) I was developing type 2 diabetes, but since I started the bike commute, I’ve been losing weight (albeit very gradually) and my numbers have been going down.