HNHacker News
TopNewBestAskShowJobs

tony-allan

1,236 karma · joined August 24, 2014

[ my public key: https://keybase.io/tony_allan; my proof: https://keybase.io/tony_allan/sigs/Wdj7sPpE8M28T6eQB1k8KwJbXhrvvdIXmUUmOfNiit0 ]

meet.hn/city/au-Melbourne

submissionscomments
tony-allan··on Understanding and Preventing Race Conditions in Web Applications
A mistake that I have made!

And the answer is:

  UPDATE TABLE posts
    SET views = views + 1
    WHERE post_id = $1
    RETURNING views;


  @app.post("/view/{post_id}")
  async def view_post(post_id: int):
    await Post.filter(id=post_id).update(views=F("views") + 1)
    post = await Post.filter(id=post_id).get()
    return {"current_views": post.views}
tony-allan··on Calculating Apparatus, Patent US3402285 [pdf]
1968
tony-allan··on Show HN: Beautiful Usernames – 18M+ random aesthetic usernames for your project
Just have a look at the three word files…
tony-allan··on A high-performance, zero-overhead, extensible Python compiler using LLVM
I would love to see LLVM/WebAssembly as a supported and documented backend!
tony-allan··on RabbitMQ 4.0
https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4....
tony-allan··on Why don't more people use Linux
One issue for me is the state of DRM for video, at least for Raspberry PI OS (on a Raspberry Pi 5). I don't know if this is an issue on other flavours of Linux.

I currently use a MacBook Pro laptop which is great but very expensive if you need a decent amount of RAM.

tony-allan··on Rustpad is an efficient and minimal open-source collaborative text editor
The core library is A library for Operational Transformation

Operational transformation (OT) is a technology for supporting a range of collaboration functionalities in advanced collaborative software systems.

https://github.com/spebern/operational-transform-rs

tony-allan··on Show HN: Franzelio – Draw lines, make music, share your instrument
A cool website. So many idea's on how to make something similar!
tony-allan··on An Alternative to Foldable Phones
I think that this is two different issues.

Foldable — I expect that the attractions of a foldable phone are larger screen that fits into a pocket; better protection for the screen; and the satisfying action of closing to end a call.

Cast to a nearby screen — this is a good idea for any type of phone (or device) but would be limited to the walled garden of your phone manufacturer/software provider.

tony-allan··on Notepat – Aesthetic Computer
Some more info

  https://github.com/whistlegraph/aesthetic-computer
  https://www.youtube.com/watch?v=S-7UszmI1K4
  https://aesthetic.computer/handtime
  https://digitpain.com/
tony-allan··on Ask HN: Experience building real-time integrations without official APIs?
Could you give some examples of the sources you have in mind?

There is the obvious caution, especially for HTML sources, that your integration may be unstable if the HTML code is periodically updated.

tony-allan··on LwIP – Lightweight IP Stack
From the article:

"This making lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM."

tony-allan··on Show HN: Automate iMessage with Python
I don't like this part of the setup:

csrutil disable

From [1]:

Warning Disable SIP only temporarily to perform necessary tasks, and reenable it as soon as possible. Failure to reenable SIP when you are done testing leaves your computer vulnerable to malicious code.

[1] https://developer.apple.com/documentation/security/disabling...

tony-allan··on RP2350 PicoDVI Preview
The RP2040 discussion -- https://github.com/Wren6991/PicoDVI
tony-allan··on NYT wins the gold medal for medal visualization
Using the American way to count medals!
tony-allan··on Jobhunters flood recruiters with AI-generated CVS
A carefully crafted statement taking hours to prepare would be fine if the recruiter actually read the CV and statements!

AI vs automated recruitment software.

tony-allan··on Show HN: 1.Claim Your Link 2.Use It as an Online Text File
I was hoping that the update would be real-time. Otherwise it works well.
tony-allan··on Ask HN: How to speed up my MacBook Pro?
Issues with by MBP (M1) are almost always memory related. The Activity Monitor is my friend to find out which processes are hogging precious memory across my seven virtual desktops.

My biggest win was with Firefox (with lots of windows and tabs open to allow quick context switching between projects) when I discovered the "Auto Tab Discard" extension which frees up memory for inactive tabs.

My Activity Monitor Memory Pressure is mostly green now.

tony-allan··on Ask HN: Which folder/directory do you store code in?
~/GitHub/<repo>
tony-allan··on Apple to Debut Passwords App in Challenge to 1Password, LastPass
The article suggests an import facility for data from competing products.
tony-allan··on Apple to Debut Passwords App in Challenge to 1Password, LastPass
Seems to be for Apple devices. I think the established players will be ok.
tony-allan··on Oops, You Wrote a Database (2023)
I read this last year but happily read it again. I have done exactly this with a twist of trying real-time processing -- worked well during testing but started breaking as the load grew. Some poor decisions that took a long time to fix.
tony-allan··on There Has Never Been a Better Time to Switch to Linux
I have used MacOS forever and it has worked well for me.

I would love to use Linux + Framework Laptop (awesome hardware). What I need is some suggestions for a distribution that just works. My workload is development plus lots of web browsing (100+ tabs).

tony-allan··on There Has Never Been a Better Time to Switch to Linux
Try https://archive.is/uCtn5
tony-allan··on Why am I so distracted? any tips to focus
If you have a lot on your mind, write down whatever is buzzing in your brain and read it after you have finished your focused activity.

For me I write stuff down just before the activity and review it just after you have finished the activity.

Maintaining a todo list all the time doesn’t work for me because I forget add, remove and review items on the list.

Also works is sleep is your goal.

tony-allan··on Z-Library.se Domain Seized
I don't know what Z-Library is however I got a redirect to https://singlelogin.re/ (in Australia).
tony-allan··on Move over, tractor – The farmer wants a crop-spraying drone
An interesting link from the article: Drones for Spraying Pesticides—Opportunities and Challenges [1]

[1] https://ohioline.osu.edu/factsheet/fabe-540

tony-allan··on These Are Not Two Separate Devices
The underlying OS is already the same, just a different UI layer.

You can run iPad apps on a Mac. All we need is Mac apps on an iPad.

It would be great if I was able to run an app on a Mac then pickup an iPad and continue using the app on the iPad.

I don’t need to know if the app moves from one device to another or if I just get a seamless remote screen.

More broadly I want to pickup any Apple device and run any app, access any of my data — all seamlessly.

An iPad app shown on an Apple TV using data from my Mac, audio into my AirPods and haptic feedback on my watch.

I know I can already do some of this but I want it to be a universal feature where I can do it all.

tony-allan··on Google Cloud accidentally deletes UniSuper's online account
"Google Cloud CEO, Thomas Kurian has confirmed that the disruption arose from an unprecedented sequence of events whereby an inadvertent misconfiguration during provisioning of UniSuper’s Private Cloud services ultimately resulted in the deletion of UniSuper’s Private Cloud subscription."
tony-allan··on [dead]
Signal Jammers are very illegal in most countries with vigorous enforcement by the authorities.
← PreviousPage 4 of 20Next →