Better HN
topnewbestaskshowjobs
Log inSign up

hank_z

54 karma · joined Oct 19, 2018 (8y ago) · 64 submissions

Submissions

comment 8mo ago · link · parent

I’m curious to know how this model tackles newly released fonts. How difficult would it be if this model needs to recognise font in a different language?

comment 1y ago · link · parent

I personally believe the invention of TikTok is recession of human civilisation.

comment 2y ago · link · parent

It appears that these changes are not coming to UK. I wonder how UK users feel about it.

comment 3y ago · link · parent

Thanks. It works.

comment 3y ago · link · parent

If anyone is looking for an alternative, I have been using my script below for two years without any issue.

--edit--

I do not know how to format code here.

--edit--

Another attempt to format code here.

# Step 1 Save script below to your local drive. For example, `/Users/xxxx/Documents/Scripts/DarkMode/darkModeWatcher.sh`

  #!/bin/zsh
  # ref: https://unix.stackexchange.com/a/526097
  # start time is 18:33 -> 18 * 60 * 60 + 33 * 60 = 66780
  # end time is 07:33 -> 07 * 60 * 60 + 33 * 60 = 27180
  # install gdate via `brew install gdate`
  
  if [[ $(uname -m) == 'arm64' ]]; then
      secsSinceMidnight=$(( $(/opt/homebrew/bin/gdate +%s) - $(/opt/homebrew/bin/gdate -d '00:00:00' +%s) ))
  else
      secsSinceMidnight=$(( $(/usr/local/bin/gdate +%s) - $(/usr/local/bin/gdate -d '00:00:00' +%s) ))
  fi
  
  if [[ $secsSinceMidnight -lt 27180 || $secsSinceMidnight -gt 66780 ]]; then
      # turn on dark mode
      osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to true'
  else
      # turn off dark mode
      osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to false'
  fi

  
# Step 2 run `crontab -e` and add script below

  # cron job for enabling macOS dark mode periodically
  # darkModeWatcher script is executed 60s after reboot. After that, it is executed at 35 mins of each hour if the display is not asleep.
  # replace xxxx with your username
  @reboot sleep 60 && /bin/zsh /Users/xxxx/Documents/Scripts/DarkMode/darkModeWatcher.sh >> /Users/xxxx/Library/Logs/systemDarkModeWatcher.log 2>&1
  35 */1 * * * if [[ -n "$(/usr/sbin/system_profiler SPDisplaysDataType | /usr/bin/grep 'Asleep')" ]]; then newDisplayStatus=0; else newDisplayStatus=1; fi && if [[ $newDisplayStatus == 1 ]]; then /bin/zsh /Users/xxxx/Documents/Scripts/DarkMode/darkModeWatcher.sh >> /Users/xxxx/Library/Logs/systemDarkModeWatcher.log 2>&1 ; fi

comment 3y ago · link · parent

A off topic question. Has anyone encountered the crash after wake from sleep for the latest Firefox on macOS Sonoma public beta?

comment 3y ago · link · parent

Curious to know whether the Linux VMs on Apple Silicon Macs are also based on arm or not.

comment 3y ago · link · parent

Curious to know how long this VPN can survive in China

comment 3y ago · link · parent

It appears to me that this solution is only designed for macOS. Anyone knows any cross-platform solution? It would be very interesting to see how the same keybindings are implemented in Windows/Ubuntu/macOS.

comment 3y ago · link · parent

Another quick off topic question related to 2FA. If students are required to complete the 2FA to access to university's learning resources, is the university responsible to provide a hardware token if some students cannot afford/use the mobile phone to complete the 2FA?

comment 3y ago · link · parent

Legally. In my opinion, if something is required for a worker to finish the job, the employer is obligated to provide it for free. I could be wrong. Curious to know other people's thought.

comment 3y ago · link · parent

A quick off topic question related to 2FA. If an employee is required to complete the 2FA to access to the company's system, is the company responsible to provide the employee a necessary device (either phone or hardware token) to complete the 2FA?

comment 3y ago · link · parent

I believe it's website specific. Office 365 Teams (teams.microsoft.com) will request users to grant certain permissions when it's visited.

comment 3y ago · link · parent

Oops, sorry. I was using the Office 365 Teams (teams.microsoft.com), which runs ok on FF. I can confirm the Teams for the personal account (https://teams.live.com/_#/unsupportedBrowser) is not supported in FF.

comment 3y ago · link · parent

I can use Teams on the stable version without any issues. You might have cross-origin cookies disabled, which will stop Teams from working. PS. FF:v110.0.1 (64-bit), macOS: 13.2.1.

comment 4y ago · link · parent

Can I ask how you use Sidebery and Tree Style Tab? I found that they both create a panel on the left side of screen and will stay there forever, which reduces the space for web content. The left panel also makes my small laptop screen look even smaller.

comment 4y ago · link · parent

Isn’t Tailscale similar to the Zerotier which can build a virtual LAN across any networks?

comment 4y ago · link · parent

Eudic is a dictionary app that has all the features you wanted. It has clients across all platforms. I have been using it for many years and it works like a charm.

comment 4y ago · link · parent

You can allow cross-site tracking and third party cookie in safari, then use teams from safari. I have been using it this way without any issues for all my Teams meetings.

comment 4y ago · link · parent

I always want to set Startpage as the default search engine in Safari. But it is impossible unless Apple adds it. Hopefully regulators somehow will make Apple more open in the near future.

comment 4y ago · link · parent

The base M2 macbook air is $1499 in the US. Whereas it is £1549 in the UK. Previousely Apple just replaces the currency but uses the same figure. Now Apple has increased the uk price. Thank you Apple.

comment 4y ago · link · parent

At least Zotero will not pull off its apps from App Store for no reason.

comment 4y ago · link · parent

I think you are right. Thanks for your detailed explanation and good advice.

comment 4y ago · link · parent

Can you elaborate?

comment 4y ago · link · parent

But the screen protector is wasted because of the faulty phone. Shouldn’t Apple compensate for it?

comment 4y ago · link · parent

Some screen protectors cost more than that. They can cost £3 up to £80 depends on the brand.

27.

Ask Apple to compensate for a screen protector used on a new but faulty iPhone?

2 points · by hank_z · 4y ago · 8 comments

comment 4y ago · link · parent

A problem always bothers me is LO is laggy and unresponsive while GPU is used to train ml model in ubuntu.

comment 4y ago · link · parent

Me too. I find subtitles are the main distraction for me to enjoy what’s going on in the screen. I understand that a lot people actually need them. That’s why I am very thankful that subtitles can be turn on/off if needed. I actually hate any videos that have subtitles embedded inside the video (part of each frame)

comment 4y ago · link · parent

Mendeley for iOS system was discontinued and taken off from App Store for “no reason”. Users are forced to use their web version in iOS system.
123