frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

I ruined my vacation by reverse engineering WSC

https://blog.es3n1n.eu/posts/how-i-ruined-my-vacation/
190•todsacerdoti•7h ago•78 comments

Plain Vanilla Web

https://plainvanillaweb.com/index.html
1091•andrewrn•18h ago•513 comments

Continuous Thought Machines

https://pub.sakana.ai/ctm/
179•hardmaru•8h ago•15 comments

Intellect-2 Release: The First 32B Model Trained Through Globally Distributed RL

https://www.primeintellect.ai/blog/intellect-2-release
131•Philpax•9h ago•36 comments

Armbian Updates: OMV support, boot improvents, Rockchip optimizations

https://www.armbian.com/newsflash/armbian-updates-nas-support-lands-boot-systems-improve-and-rockchip-optimizations-arrive/
16•transpute•3h ago•0 comments

Making PyPI's test suite 81% faster – The Trail of Bits Blog

https://blog.trailofbits.com/2025/05/01/making-pypis-test-suite-81-faster/
67•rbanffy•3d ago•18 comments

Universe expected to decay in 10⁷⁸ years, much sooner than previously thought

https://phys.org/news/2025-05-universe-decay-years-sooner-previously.html
30•pseudolus•1h ago•37 comments

Why Bell Labs Worked

https://1517.substack.com/p/why-bell-labs-worked
220•areoform•14h ago•162 comments

Car companies are in a billion-dollar software war

https://insideevs.com/features/759153/car-companies-software-companies/
352•rntn•17h ago•601 comments

Absolute Zero Reasoner

https://andrewzh112.github.io/absolute-zero-reasoner/
81•jonbaer•4d ago•16 comments

Dart added support for cross-compilation

https://dart.dev/tools/dart-compile#cross-compilation-exe
21•Alifatisk•3d ago•19 comments

Show HN: Vom Decision Platform (Cursor for Decision Analyst)

https://www.vomdecision.com
5•davidreisbr•3d ago•3 comments

High-school shop students attract skilled-trades job offers

https://www.wsj.com/lifestyle/careers/skilled-trades-high-school-recruitment-fd9f8257
194•lxm•19h ago•310 comments

The Academic Pipeline Stall: Why Industry Must Stand for Academia

https://www.sigarch.org/the-academic-pipeline-stall-why-industry-must-stand-for-academia/
103•MaysonL•8h ago•79 comments

Scraperr – A Self Hosted Webscraper

https://github.com/jaypyles/Scraperr
192•jpyles•16h ago•68 comments

Writing an LLM from scratch, part 13 – attention heads are dumb

https://www.gilesthomas.com/2025/05/llm-from-scratch-13-taking-stock-part-1-attention-heads-are-dumb
282•gpjt•3d ago•56 comments

Ask HN: Cursor or Windsurf?

146•skarat•6h ago•198 comments

Title of work deciphered in sealed Herculaneum scroll via digital unwrapping

https://www.finebooksmagazine.com/fine-books-news/title-work-deciphered-sealed-herculaneum-scroll-digital-unwrapping
214•namanyayg•21h ago•96 comments

One-Click RCE in Asus's Preinstalled Driver Software

https://mrbruh.com/asusdriverhub/
469•MrBruh•1d ago•224 comments

LSP client in Clojure in 200 lines of code

https://vlaaad.github.io/lsp-client-in-200-lines-of-code
146•vlaaad•17h ago•18 comments

White House fires head of Copyright Office amid Library of Congress shakeup

https://www.washingtonpost.com/politics/2025/05/11/white-house-copyright-office-director-fired/
50•handfuloflight•3h ago•33 comments

ToyDB rewritten: a distributed SQL database in Rust, for education

https://github.com/erikgrinaker/toydb
96•erikgrinaker•15h ago•12 comments

How friction is being redistributed in today's economy

https://kyla.substack.com/p/the-most-valuable-commodity-in-the
213•walterbell•3d ago•96 comments

Why alien languages could be far stranger than we imagine Essays

https://aeon.co/essays/why-alien-languages-could-be-far-stranger-than-we-imagine
6•rbanffy•1h ago•3 comments

Burrito Now, Pay Later

https://enterprisevalue.substack.com/p/burrito-now-pay-later
137•gwintrob•14h ago•228 comments

Show HN: Codigo – The Programming Language Repository

https://codigolangs.com
42•adamjhf•2d ago•13 comments

A simple 16x16 dot animation from simple math rules

https://tixy.land
455•andrewrn•2d ago•91 comments

Avoiding AI is hard – but our freedom to opt out must be protected

https://theconversation.com/avoiding-ai-is-hard-but-our-freedom-to-opt-out-must-be-protected-255873
174•gnabgib•10h ago•102 comments

Lazarus Release 4.0

https://forum.lazarus.freepascal.org/index.php?topic=71050.0
238•proxysna•5d ago•136 comments

3D printing in vivo for non-surgical implants and drug delivery

https://www.science.org/doi/10.1126/science.adt0293
22•Phreaker00•1d ago•5 comments
Open in hackernews

I hacked my clock to control my focus

https://www.paepper.com/blog/posts/how-i-hacked-my-clock-to-control-my-focus.md/
84•rcarmo•11h ago

Comments

gnarlouse•10h ago
This is neat. Low cost, built from stolen parts. 10/10 engineering.
sheepscreek•8h ago
Indeed! Using dconf to achieve this is very impressive. Is there a KDE plasma equivalent to this?
baby_souffle•8h ago
Came here to ask this.

Most plasma widgets use a config file so this should be possible.

winrid•9h ago
I like to set timers. I use the taskbar timer in xfce to set it to say 30mins, and then I work on getting something done in that time. It works really well. Not sure if this has a common name.

This was really helpful when I redid the FastComments admin area, as that was a big slog of UI work that I quickly got tired of. This was before Claude :)

hug•9h ago
Sounds a lot like the Pomodoro Technique.
winrid•8h ago
I don't take breaks per se, which is a core part of that technique iirc.
dexwiz•8h ago
I think the break can be a reflection and note taking period. Unfocus a bit, but not too far.
winrid•4h ago
Interesting. I use the timer thing just for long running tasks I want to make progress on every day. Then I go work on other stuff.
inatreecrown2•9h ago
is there something similar for macOS?
ajdude•8h ago
This isn't quite the same thing, but I have my Mac set up to announce the time every 15 minutes. You can customize the voice, and the voice I'm using causes the computer to sing the time.

All of this is built into the OS, I think the settings are in the control center

hackermanve•8h ago
I used this for something similar, and is very customisable

https://github.com/matryer/xbar

fitsumbelay•8h ago
for MacOS bash, do:

` #!/bin/bash

# Set focus text from command line argument or prompt user if [ -z "$1" ]; then echo "What's your current focus?" read FOCUS else FOCUS="$1" fi

if [ -z "$FOCUS" ]; then echo -n "\033]0;$(date +'%b %d %H:%M')\007" else echo -n "\033]0;$(date +'%b %d %H:%M') Focus: $FOCUS\007" fi

echo "Focus set to: $FOCUS" `

for MaxOS zsh, uncomment `DISABLE_AUTO_TITLE="true"` in .zshrc and do:

` #!/bin/zsh

# Set focus text from command line argument or prompt user if [ -z "$1" ]; then echo "What's your current focus?" read FOCUS else FOCUS="$1" fi

if [ -z "$FOCUS" ]; then echo -n "\033]0;$(date +'%b %d %H:%M')\007" else echo -n "\033]0;$(date +'%b %d %H:%M') Focus: $FOCUS\007" fi

echo "Focus set to: $FOCUS" `

chthonicdaemon•8h ago
macOS and iOS have a whole feature called Focus modes which allows you to choose a focus and do things based on this focus. Your current focus is shown in the menu bar.
inatreecrown2•7h ago
Yeah but that is just a small icon, no text.
beala•7h ago
A sticky note stuck to your monitor?
brianpan•4h ago
If the something you are asking about is scripting/modifying, that something might be Shortcuts (or the older Automator).

If the something you are asking about is a pre-built tool, I would think the menubar is the MacOS place to put a reminder and it looks like someone has built that: https://lifehacker.com/tech/one-thing-app-turns-your-macs-me...

hallgrim•2h ago
Check out swiftbar (see my other comment) https://github.com/swiftbar/SwiftBar
fitsumbelay•8h ago
Very cool
Brajeshwar•7h ago
A timer is one of the most underrated ways to stay focused.[1]

We have all been there where you are supposed to work on that boring but critical bug for the project, where a few other team members are waiting, but you end up booking a domain, building a landing page, and launching a waiting list. By dinner, as you are talking to potential alpha users in your community and start spreading the word, you realize you have not touched that bug.

Anyway, I like timers; the only complication in my Watch is a timer.[2] At my desk, I use a physical hourglass regularly. The physical hourglass helps me not be constrained by the Pomodoro-ish restrictions and work past the finish line.

For distractions (that seem important and sometimes are) while I'm on a specific task, I usually have my handy notebook, and I write them down quickly with a pen so I can return to them later. That helps me prevent launching ideas into landing pages.

Once you are good with a process/pattern, whatever tool you build/buy/use, as a timer in this case, helps your focus on your current situation.

1. https://brajeshwar.com/2023/timer/

2. https://brajeshwar.com/2024/watch-tiny-handy-computer/

RandomWorker•7h ago
I love the idea of hourglass! Thanks for sharing I’ve ordered mine on Amazon today. It’s about a foot tall. This is also a great way to signal to other people in the office that I’m busy.
InfiniteLoup•17m ago
>It’s about a foot tall. This is also a great way to signal to other people in the office that I’m busy.

Why do I now imagine a queue of colleagues standing restlessly at your desk, waiting for the hourglass to run out?

TimByte•2h ago
There's something about a physical timer that creates a sense of presence digital ones just can't replicate
Alex_001•1h ago
That "launch a landing page instead of fixing the bug" story hit a little too close to home. Been there more times than I’d like to admit.

The way you describe hourglass not as a constraint, but as a way to reframe the session is kinda interesting. I’ve noticed that physical tools tend to change my mindset more than digital ones—they’re harder to ignore and don’t come with tabs.

Also really like the point about writing distractions down instead of chasing them—feels like the simplest tools (timer, notebook) often win because they don’t compete for attention. They just hold space.

bound008•5h ago
I built a simple SwiftUI/Swift Data app to do the same thing across my Apple Watch, iPhone, iPad and Desktop.

With the heavy lifting of SwiftUI/Swift Data, and iCloud providing automatic and private syncing, this is the cloc output for my project, (including widgets and all of the code and projects needed to target all of these platforms.)

-------------------------------------------------------------------------------

Language files blank comment code

-------------------------------------------------------------------------------

XML 13 0 0 579

Swift 19 131 142 548

JSON 4 0 0 115

YAML 1 7 0 43

-------------------------------------------------------------------------------

SUM: 37 138 142 1285

-------------------------------------------------------------------------------

If you live in the apple ecosystem and want to make a simple tool for yourself, you really should go ahead and do that.

It started as a desire to have a "focus" on my Apple Watch at all times, and in less than 10 hours, I have widgets, shortcuts (and Siri) integrations, and syncing across every apple platform (although I haven't yet tried it on tvOS).

I've thought about productizing it, and I might one day, but that would add orders of magnitude to the time of making this something that people should be asked to pay for.

And I'm not going to open source it, because it is ~500 loc, with no libraries plus a bunch of Xcode generated stuff.

rcarmo•5h ago
You could post a gist of it, though. I’d love to do the same thing.
bound008•2h ago
I might do that at some point... this is the main part of it, just a swift data model and one file of views. Plus a bunch of example code for making widgets work.

``` import Foundation import SwiftData

@Model final class FocusItem { let created: Date = Date() var completed: Date? var theFocus: String = "New Focus" var details: String?

    init(completed: Date? = nil, theFocus: String, details: String? = nil) {
        self.completed = completed
        self.theFocus = theFocus
        self.details = details
    }
}

struct FocusItemDescriptors { static let currentFocusPredicate = #Predicate<FocusItem> { $0.completed == nil }

    static let sortDescriptor = SortDescriptor(\FocusItem.created, order: .reverse)

    static let currentFocusFetchDescriptor = FetchDescriptor(
        predicate: currentFocusPredicate, sortBy: [sortDescriptor])
} ```

``` import SwiftData import SwiftUI import WidgetKit

struct ContentView: View { @Query( filter: FocusItemDescriptors.currentFocusPredicate, sort: [FocusItemDescriptors.sortDescriptor]) private var items: [FocusItem] @Environment(\.modelContext) private var modelContext

  @State private var isAddingNewItem = false
  @State private var newFocusText = ""

  var body: some View {
    NavigationStack {
      List {
        ForEach(items) { item in
          NavigationLink {
            FocusItemDetailView(item: item)
          } label: {
            Text(item.theFocus)
          }
        }
        .onDelete(perform: deleteItems)
      }
      .navigationTitle("Focus")
      .toolbar {
        #if os(iOS)
          ToolbarItem(placement: .navigationBarTrailing) {
            EditButton()
          }
        #endif
        ToolbarItem {
          Button(action: addItem) {
            Label("Add Item", systemImage: "plus")
          }
        }
      }
    }
    .sheet(isPresented: $isAddingNewItem) {
      AddFocusItemView(isPresented: $isAddingNewItem, addItem: addNewItemWithFocus)
    }
  }

  private func addItem() {
    isAddingNewItem = true
  }

  private func addNewItemWithFocus(_ focus: String) {
    withAnimation {
      let newItem = FocusItem(theFocus: focus)
      modelContext.insert(newItem)
      DataManager.shared.reloadWidgets()
    }
  }

  private func deleteItems(offsets: IndexSet) {
    withAnimation {
      for index in offsets {
        modelContext.delete(items[index])
      }
      DataManager.shared.reloadWidgets()
    }
  }
}

struct FocusItemDetailView: View { @Environment(\.dismiss) private var dismiss let item: FocusItem

  var body: some View {
    VStack {
      Text(item.theFocus)
      if let details = item.details {
        Text(details)
      }
      Text(
        "\(item.created, format: Date.FormatStyle(date: .numeric, time: .standard))"
      )
      Button {
        item.completed = Date()
        DataManager.shared.reloadWidgets()
        dismiss()
      } label: {
        Text("Mark as Complete")
      }
    }
  }
} struct AddFocusItemView: View { @Binding var isPresented: Bool let addItem: (String) -> Void @State private var newFocusText = ""

  var body: some View {
    NavigationView {
      Form {
        TextField("What is your focus?", text: $newFocusText, axis: .vertical)
          .lineLimit(3...10)
      }
      .navigationTitle("New Focus")
      .toolbar {
        ToolbarItem(placement: .cancellationAction) {
          Button("Cancel") {
            isPresented = false
          }
        }
        ToolbarItem(placement: .confirmationAction) {
          Button("Add") {
            addItem(newFocusText)
            isPresented = false
          }
          .disabled(newFocusText.isEmpty)
        }
      }
    }
  }
```
kazinator•5h ago
Someone working mainly in a terminal could hack this into Basta.

https://www.kylheku.com/cgit/basta/about/

The stock Basta puts a clock (date + time) into a scroll-protected status line, host name and current working dir.

Basta works fine on MacOS, but you need to get a more recent build of Bash from somewhere (Homebrew ...). I should attempt a Zsh port one of these days; the name wouldn't change, though. :)

ThrowawayTestr•5h ago
This kind of stuff makes me understand why people like Linux.
globular-toast•1h ago
Free software in general. Doesn't have to be Linux. But yeah, this is one of the reasons I use it. Even in free software some of it is more amenable to hacking than others, for example example Emacs vs LibreOffice. But software that is actively hostile and prevents you from hacking? No way.
teekert•1m ago
For me it's more the "No TPM chip, no updates" and the "Here's some ads in your start menu". Both not valid for Apple obviously, but there it's the high price and I lost an otherwise perfectly fine MAcBook pro to a GPU issue (after soldering it worked for a day on the iGPU, but an update wrecked it after all). I buy second hand business models (~300 eur), I have 2, both never failed despite being 10 and 6 y/o, both looked unused as advertised. Both are more powerful than I or my family needs.
bflesch•4h ago
Good idea, thanks for sharing. Happy to see fellow linux users modifying their system to improve productivity.
KeybInterrupt•4h ago
I've added an hourly chime to my work computer's clock, similar to a Casio wristwatch. It's a subtle reminder of the passing time, prompting me to pause, reflect, and reassess my actions to stay on track and avoid procrastination.

I like this constant on screen reminder though and might give it a try myself :)

teddyh•3h ago

  The gods confound the man who first found out
  how to distinguish hours! Confound him, too,
  who in this place set up a sundial,
  to cut and hack my days so wretchedly
  into small portions! When I was a boy,
  my belly was my sundial — one surer,
  truer, and more exact than any of them.
  This dial told me when ’twas proper time
  to go to dinner, when I had aught to eat;
  But nowadays, why even when I have,
  I can’t fall-to unless the sun gives leave.
  The town’s so full of these confounded dials
  the greatest part of the inhabitants,
  shrunk up with hunger, crawl along the street.
— Plautus (c.254-184 BC)

(Originally posted 11 years ago: <https://news.ycombinator.com/item?id=7007731#7008338>)

Y_Y•2h ago
(Originally posted 2225 years ago: https://la.wikisource.org/wiki/Comoediae_(Plautus)_-_Boeotia )
InfiniteLoup•3h ago
I did something similar with a Telegram bot in order to remind myself to look away from the screen, get up and stretch for a bit. However I started to ignore it in favor of "more pressing" tasks and now the chime has become just a faint signal somewhere on the outer edge of my awareness, too easily forgotten about. You need to condition yourself to not ignore it or it will lose its effectiveness.
bmacho•1h ago
It probably depends on what your goal is. To get up and stretch every n minutes, a more forceful approach could work better.

But a just an hourly subtle sound can *just remind you that time passes.

hispanus•3h ago
If anyone is searching for a way to do this in macOS, the dato[1] app implements this rather nicely

[1]: https://sindresorhus.com/dato

TimByte•2h ago
Pairing that with the on-screen focus prompt could create a nice feedback loop.
hallgrim•2h ago
On macOS there is xBar (haven't tried it) and SwiftBar [1]

Its really cool because it lets you use any shell-executable file, including bash scripts, python scripts (with shebangs and made executable), as a menu bar tool. The standard output is expected to follow a very simple structure and will be used to create the menu bar tool's text/icon. You can have your scripts simply output emoji as well!

Not just that, but any output after a `---` will be treated as drop down options, and depending on format, those can contain info, or be exectuable actions.

Verrrry useful for all sorts of things.

1. https://github.com/swiftbar/SwiftBar

TimByte•2h ago
I like how it doesn't try to reinvent the wheel with some clunky productivity tool, just quietly enhances something you already glance at a hundred times a day
nairboon•2h ago
Has anyone created a similar solution for KDE plasma?

There's a focus-plasmoid (pomodoro timer), but that one doesn't display text.

globular-toast•2h ago
I spend all my time in Emacs so I implemented a similar thing there. Been using it for, hmm.. a decade now?

Org-mode includes clock in/out features and can display this in either the modeline or frame title (or both). I did the frame title because it's basically unused space otherwise.

I used to use this in conjunction with the Pomodoro method. I don't need to use that these days, though.

I can easily add a task to any project, or the currently active one, without breaking my flow at any time. I recently added an "immediate" task that will instantly clock me in for those things that randomly come up during the day.

The nice thing is I get a complete breakdown of how all my time was spent during the week. I need to report on this for current job so it's a win/win.

This is also a good example of why I use Emacs. I hacked this together in a few minutes and been using and building on it for years.

girishso•2h ago
There’s similar app for Mac OS, Focus Bar https://apps.apple.com/us/app/focusbar/id443439127?mt=12
Alex_001•1h ago
It’s interesting how much of modern “focus tooling” adds friction: you have to open an app, track something, respond to prompts. But here, just glancing at the clock reminds you what you meant to be doing. No willpower needed.
wtkd•1h ago
i bought a 30min hourglass. i wanted to do something like this but i can't be adding more buzzing, pinging, alerting things to my digital life.
guerrilla•1h ago
Thank you. This is perfection.