Hacker Newsnew | past | comments | ask | show | jobs | submit | fellerts's commentslogin

Jam a stick in the ground aligned with the earth's axis and take your bearing from the shadow's direction. Then follow GP's instructions. Never mind that we've reinvented the sundial...

> Jam a stick in the ground aligned with the earth's axis [...]

You mean place a stick flat on the ground? (Singapore is pretty much on the equator.)


The closer you are to the equator, the taller the stick needs to be. If you're really close, the height requirements diverge, and the stick is at this point technically more of a space elevator[1] than a stick.

But don't lose hope, just tell Bezos that Musk wants to fund your space elevator, and vice versa, to goad one of them into funding your $10tn near-equatorial sundial boondoggle.

[1] https://en.wikipedia.org/wiki/Space_elevator


A space elevator is not aligned with the axis of earth's rotation. It sounds like what you are describing is a different device?

Why would a sun dial need to point in the north/south direction? It just needs to point up along the normal axis of the ground (assuming flat ground).

From the original comment I replied to:

> Jam a stick in the ground aligned with the earth's axis and take your bearing from the shadow's direction.


Ah, that comment would be incorrect.

CTRL + W usually deletes everything until the previous whitespace, so it would delete the whole '/var/log/nginx/' string in OP's example. Alt + backspace usually deletes until it encounters a non-alphanumeric character.

Be careful working CTRL + W into muscle memory though, I've lost count of how many browser tabs I've closed by accident...


Firefox v147 finally added the ability to redefine keyboard shortcuts, including ^w: https://news.ycombinator.com/item?id=46952095

1. Load about:keyboard

2. Find "Close tab" and click "Clear" or "Change".


In my terminal it's the exact opposite – Alt-Backspace deletes to the previous space, whereas Ctrl-W deletes to the last non-alphanumeric (such as /). I'm using fish shell in an Alacritty terminal.

Yeah, pressing Ctrl-W accidentially is a pain sometimes ... but Ctrl-Shift-T in Firefox is a godsend.


> Yeah, pressing Ctrl-W accidentially is a pain sometimes ... but Ctrl-Shift-T in Firefox is a godsend.

Fun fact: despite having absolutely no menu entry for it, and I believe not even a command available with Ctrl+Shift+P, Vscode supports Ctrl+Shift+T to re-open a closed tab. Discovered out of pure muscle memory.


It's a normal command called "View: Reopen Closed Editor".


You'd think that meant "window" since they consistently call the windows editors, but I guess not


Set $WORDCHARS accordingly. In your case, remove / from $WORDCHARS.

https://unix.stackexchange.com/a/726014


For the bash people

  stty werase undef
  bind '"\C-w": backward-kill-word'

source: https://superuser.com/questions/212446/binding-backward-kill...


> Be careful working CTRL + W into muscle memory though, I've lost count of how many browser tabs I've closed by accident...

I still maintain this is why macOS is the best OS for terminal work -- all the common keybindings for GUI tools use a different modifier key, so e.g. ⌘C and ⌘W work the same in your terminal as they do in your browser.

(Lots of the readline/emacs-style editing keybindings work everywhere in macos as well -- ^A, ^E, ^K, ^Y, but not ^U for some reason)


100% agree, and I am surprised I do not see this mentioned more often. I came up on Linux and then had to use MacOS for a job and got used to the cmd / ctrl separation and now I cannot use a terminal on Linux without major pain. I've tried a few of the key rebinding options and they all feel klunky.


Ctrl-Shift-T usually brings that tab right back at least


> Be careful working CTRL + W into muscle memory though, I've lost count of how many browser tabs I've closed by accident...

This hurts.

Also, for the shell, if you do C+w, you can "paste" it back using C+y. Assuming you have not removed that configuration.


> Be careful working CTRL + W into muscle memory though, I've lost count of how many browser tabs I've closed by accident...

You're telling me!!!

(I use vim daily, with multiple splits in a single instance.)


CTRL+SHIFT+T will resurrect your most recently closed tab, with history. Pressing it again will bring up the next most recently closed tab, with history. Etc.

Or maybe you don’t use SHIFT. Can’t recall right now. My fingers know but I’m not at a computer.

Anyway, browser menus can also show you recently closed tabs and bring them back.


Depends on the shell - bash on my Ubuntu deletes entire '/var/log/nginx/', while after switching to sh it deletes only nginx


I've installed "More Better Ctrl-W" for Chromium, and mapped Ctrl-W to do nothing, and Ctrl-D to close the current tab


But how am I supposed to create or edit a bookmark?


'man readline' contains all the useful key combinations.


...which is why I recently went to about:keyboard and removed that hotkey. I love that page.

That, and Ctrl-N. No more forest of blank browser windows when using a terminal emulator in a web page!

(Firefox only)


Ctrl+W is undoable.

Ctrl+Shift+T will undo your recent tab closures in reverse order. The tabs maintain their history as well.

I am very surprised at how many people in here don’t seem to know that. I learned about Ctrl+Shift+T before I learned about Ctrl+W. I was using the middle mouse button on a tab to close tabs before then.


I know. I used to use it fairly often when Ctrl-W still did something. It helps, but (1) it doesn't work if you closed the last tab and thus the whole window, you'd need to restore recently closed windows instead; and (2) it is still more disruptive and potentially state-losing than preventing an unwanted close in the first place. Tab history retention isn't perfect.


  I’m surprised that they chose to add a bunch of components to feed the AC line frequency to the microcontroller instead of just using a 32.768 kHz crystal. A single crystal oscillator seems like both the cheaper and more accurate option
The power line frequency is carefully monitored and adjusted to ensure that deviations from the ideal (60 Hz in OP's case) are smoothed out [0]. Even a single ppm deviation equates to 2.6 seconds per month, and your cheap 32.768 kHz crystal is going to be orders of magnitude worse than that.

[0] https://en.wikipedia.org/wiki/Utility_frequency#Stability


My microwave seems to gain minutes per month, my assumption was that it's due to incompetency of Eskom, the essentially sole producer of South African electricity. With the government and parastatals here incompetency is very common.

However, out of interest I just pulled yesterday's stats from my inverter on Sunsynk's website. It has the frequency of the grid at 5-minute intervals and the average over the whole day was 49.975Hz which doesn't strike me as particularly bad, so I have to wonder if the Microwave itself has an issue. It's a Samsung which is now 13 years old.


> the average over the whole day was 49.975Hz which doesn't strike me as particularly bad.

A day, having 86_400 seconds in it, is equivalent to 4_320_000 pulses at 50 Hz. At 49.975 Hz, it's only 4_317_840 pulses which is 2_160 pulses too few. Which, at assumption of 50 Hz, translates into discrepancy of 43.2 seconds, in this one day.

So, no, it's a pretty big discrepancy actually, over here anything over 0.2 Hz is legally declared to be "degraded quality", and it's been debated for years that this is actually a way too wide margin but the electricity providers/grid operators managed to successfully argue that they can't afford upgrades.

Moral of the story: don't get cute when designing electronics, just use AC/DC power supply and put a damn crystal oscillator as every other reasonable person.


I'm guessing you're being downvoted largely due to the "don't be snarky" rules.

You're right (by my maths too, which I only did now) about it being a discrepancy of 43.2 seconds per day, which as you say is quite high.

However, it is my understanding that most grid operators are actually very good about maintaining a 50Hz average over a day specifically for devices doing time keeping based their frequency, I've heard they intentionally run the generators faster or slower at certain points in the day in response to needing to get the average right over a day.

I used to have no issues with time drift on my microwave, only started in the last few years.


I think this package does exactly what you need: https://pkg.go.dev/github.com/google/gopacket/routing. Works on my machine (error handling left to the reader)

    router, _ := routing.New()
    iface, _, _, _ := router.Route(net.ParseIP("8.8.8.8"))
    fmt.Println(iface.Name)
this prints my Ethernet interface as expected. It doesn't make any requests, it just figures out where to route a packet. I guess it interfaces with the OS routing table.


Thanks for sharing! This is definitely something I will look into, I am all in favor to simplify the current implementation of finding the "default" OS network interface.


You'd better use the default route and not some random IP, particularly DNS IPs which people often meddle with.

  # IPv4 default route only
  uname
  Darwin$ route -n get 0.0.0.0 | grep interface | cut -d ':' -f2
  Linux$ route -nv  |grep ^0.0.0.0 | awk '{print $NF}'


That has nothing to do with the UI framework. The X11 dependency comes as part of the clipboard integration (which I'd argue should be optional or even removed). Still, I wouldn't call it modern if Wayland is outright not supported.


I think this is only a problem when building from source, right? It is indeed because of the dependency on https://github.com/golang-design/clipboard.

I hesitated a bit bringing in this feature. On one hand, I really like to have clipboard support, on the other hand, I don't like that it requires you to change from static to dynamic linking (and have the x11 dependency).

Maybe I could write an install.sh script for installation that detects the OS and fetches the correct version/tarball from the Github release.


That library isn't going to support Wayland any time soon, and requiring CGO isn't ideal IMO. See this bug, https://github.com/golang-design/clipboard/issues/6

How about this PR? https://github.com/ramonvermeulen/whosthere/pull/29

It switches to using github.com/dece2183/go-clipboard, which supports Mac, Windows, Linux (X11 + Wayland) and Android.


Thanks a lot for your contribution, this is something I will look into in the upcoming days. I totally agree that CGO isn't ideal, I had to make the build/release process also a lot more complicated purely for that clipboard requirement (see GHAs and the different goreleaser files).

On the other hand, I also don't want whosthere to be depended on a fork that isn't maintained anymore. I will think about this trade-off, but I am also interested how others look at this problem.


What's modern about Wayland?


Cool project. Tip: acetone will readily dissolve the plastic parts of the card leaving the antenna(s) and chip intact. I believe a few other people have made drop-in PCBs with NFC antennas. Here’s one: https://n-o-d-e.net/datarunner.html

Also, no F-91W thread would be complete without a mention of the sensorwatch project: https://www.sensorwatch.net/


The dissolution in acetone is nicely demonstrated here https://youtu.be/NF4VJJKTjy8?t=835 The guy does it in order to be able to pay with a prosthetic eye.


I would like to encourage everyone to set some time aside, get comfy, and watch Bobby Fingers. His videos are extraordinary, special, things.

I think making a giant Jeff Bezos boat would appeal most to this crowd, but I'd suggest watching them in order.


For anybody wondering wth is with a guy sculpting dioramas about obscure celebrity misadventures - he was formerly half of the Hip-Hop Comedy Duo, Sketch Artists, and behemoth Irish podcasters 'The Rubberbandits'. Probably one of the greatest neo-dadaists and proponents of Aestheticism in Europe today.

https://www.unitedartsclubdublin.com/post/bobby-fingers-the-...

Some might even know them without realising it - their incredibly provocative Richard D. James-esque 'Dad's Best Friend', a sonic assault about isolation and toxic masculinity, was featured prominently in the Trainspotting Sequel, "T2"

https://youtu.be/iYgPznBrjiA


This is hilarious!


The peak is a handful of requests per second. If you have a static site, the cheapest Hetzner tier handles it just fine.


Most services just include cleaning and relubrication. Parts don’t wear out that quickly.

Most watches from before the quartz crisis (pre ‘70s) used standard off-the-shelf Swiss movements for which spare parts are still readily available. It can get tricky with expensive or rare in-house stuff like Omega and Rolex though.



Hmm. I think he sliced it after he encapsulated it. Or that's my memory! So he had a "book" of cut acrylic sheets/layers of the object.


You are right! Was thinking of the same artist just a different project he did. https://fabianoefner.com/the-bialetti-book/

Video on the project https://vimeo.com/354927033


The minute hand is set to 43-ish minutes past the hour while the hour hand is showing 15-ish minutes past noon/midnight. If you’re used to reading analog watches it’s jarring.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: