HN user

occoder

87 karma
Posts1
Comments61
View on HN

Apple design nowadays should be something we point to and laugh at, not something to imitate.

Apple lost the plot on design after Steve Jobs died and Jony Ive assumed full control.

It's not Jony Ive's fault. That's the nature of their partnership, he created and Steve Jobs edited. Ive, of all people, probably lost the most when Steve Jobs died.

It's all been downhill ever since. Ousting Jony Ive and putting Alan Dye in charge didn't help.

The problem remains: there's no longer an editor in charge.

Apple fans like to think that they've recovered a little since the iOS 7 debacle, but in reality it's just self delusion.

Bye, Gemini 3 years ago

I don't know much about Gemini beyond a cursory look, but I don't think inline media is impossible. IIUC it is up to the Gemini client to decide if it displays media inline.

My understanding is that Gemini clients don't display inline media in order to defeat privacy-compromising techniques such as tracking pixels. A Gemini client could very reasonably decide to show images inline if they are larger than 16x16 for instance.

This feature really isn't all that bad!

To declare a function, you can use any letters from the word function (as long as they're in order):

function add (a, b) => a + b!

func multiply (a, b) => a * b!

fun subtract (a, b) => a - b!

fn divide (a, b) => a / b!

functi power (a, b) => a * b!

XML? That's so ... turn of the century.

Thankfully the industry has mostly woken up from the collective nightmare that was XML.

But apparently a few poor souls are still painfully asleep.

Absolutely. XML is rarely a good solution for any problem, and usually the worst.

I’d like to do the same for Android projects, but Google is hellbent on the XML usage if you’re building with Android Framework…

For sure the Android API is oriented towards building GUIs in XML, but it's actually quite possible to build your Android GUI in Java code.

When I started developing for Android, I took a look at a few tutorials and said "no way", searched the web for how to build Android GUIs programmatically, and never looked back.

Java generics has got to be the least bang for the most buck in the entire history of programming languages.

Turning the once clear API documentation of the entire standard library into an incomprehensible mess, for what? So you can avoid casting when getting something out of a collection?

So no, absolutely not. Enough with generics. It was a mistake in the first place. Don't dig any deeper in that hole.

Yep, it's almost always the mouse.

Many people, developers included, use the mouse to point and click when they need to change the caret position while editing text. If you do enough of that, the amount of precisely controlled movement involved quickly add up to repetitive strain injury on your hand/wrist. I've seen colleagues in their 20s/30s suffering from this problem, to a point that they needed to use the mouse with their other hand.

I'd recommend using the keyboard to navigate within a document. It's going to take some getting used to, but it'll be best for your hand health in the long run. Meanwhile, switching to a trackball (remember those?), a trackpad, or a trackpoint mouse, will definitely alleviate the symptoms.

I've learned while raising my babies that making them laugh or cry can cure their hiccups. Crying is obviously not an attractive option for adults, but I suppose faking a laugh might do the trick.

Apologize for TMI.

Thanks for sharing! Here comes mine.

pass rock hard stool once every 3ish days.

I go once every 3 days, sometimes even 4, without any drama. I quite like the schedule and think it saves me a lot of time. I believe what makes it work is that I drink ~1.5 liters of tea every day, on top of the water I get from one meal per day plus some snacks here and there.

I used to be constantly bloated and extremely gassy. But no longer since I stopped going to restaurants and started eating home-cooked meals made from fresh ingredients. Turns out my stomach is just allergic to crappy ingredients restaurants like to put into our food.

I take zero medication.

Hope you find your way soon to better gut health!

Fanless mini-PC running Ubuntu acting as a router, with WiFi routers running in access-point mode to cover the house.

Rule-based routing of traffic through different VPNs depending on the destination domain name, done with a combination of iptables, ipset, and dnsmasq.

Use iptables rules to block internet access for settop boxes, smart TVs, printers, etc.

Ad-blocking with simple dnsmasq config files.

XML is a huge abomination, period.

But I don't think anyone is arguing that it's completely useless.

It just hasn't earned it's current privileged position in the computing world. It got there on the coattail of the obscene wave of hype around the turn of the century.

So it has a way to go as it slowly falls back to its rightful place.

Thanks for the link!

That's truly surprising! I stand corrected.

To quote two of the tweets:

Web browsing on the iPhone was always on the feature list, so WebKit would be there, and the editing code came along with it. We needed to decide how other styled text would work, like in Notes. Should we bring over the AppKit text system?

Eventually, we decided not to. We were so pressed for memory that fitting two styled text systems was judged too much, so I used WebKit to back UITextField and UITextView. I’m pretty sure it stayed that way until iOS 7.

I don't believe this is true.

Where did you get that impression? Do you have a source?

A WebView may or may not be great for text editing, but it'd definitely be overkill for simple text input. The first iPhone was severely resource constrained, I can't imagine it had the luxury of using a WebView for each and every text input.

> Older VPN scripts used to override your default route in the main table when connecting to the VPN and restore it when disconnecting. Sometimes this wouldn’t work, and after disconnecting from the VPN you would be left without any default route at all.

Isn't this the same problem the old VPN problems had though? If it fails to delete its two rules then your routing is still boned.

You're right, that's not the reason.

The real reason WireGuard doesn't use the traditional technique of replacing the default route is, straight from the horse's mouth https://www.wireguard.com/netns/:

  The most straightforward technique is to just replace the default route, but add an explicit rule for the WireGuard endpoint:

  # ip route del default
  # ip route add default dev wg0
  # ip route add 163.172.161.0/32 via 192.168.1.1 dev eth0

  This works and is relatively straightforward, *but DHCP daemons and such like to undo what we've just did, unfortunately*.
And right below that, is the reason WireGuard doesn't use the OpenVPN technique:
  So, instead of replacing the default route, we can just override it with two more specific rules that add up in sum to the default, but match before the default:

  # ip route add 0.0.0.0/1 dev wg0
  # ip route add 128.0.0.0/1 dev wg0
  # ip route add 163.172.161.0/32 via 192.168.1.1 dev eth0

  This way, we don't clobber the default route. This also works quite well, *though, unfortunately when eth0 goes up and down, the explicit route for demo.wireguard.com will be forgotten, which is annoying*.
Both emphases mine.

To me it's the exact opposite, OpenLook was just UGLY. CDE/Motif didn't look that great either, but it was at least serviceable.

It's very telling that no one at Sun would look at OpenLook and recognize it as ugly. Sun was an engineering company, the entire company, from the CEO on down, had no taste.

Exhibit #2: the Java Metal look and feel, almost repulsively ugly, yet no one at Sun saw anything wrong.

Having read a lot of the comments here, I tend to agree with you.

Leap seconds have not sit well with me ever since I learned about them. Messing with the number of seconds in a certain minute a few times a year just seemed ... unclean.

So if fellow commenters are right, that without leap seconds it would take 6667 years for the time to drift just one hour, then leap seconds are absolutely more trouble than their worth, and we should drop it this instant and try to come up with a solution for that leap hour in the next six milleniums.

The claim that the saying originated with the Morton slogan seemed fishy to me too.

So thanks for doing the digging. I upvoted you, and everyone else who linked to earlier usages.

If Morton Salt is trying to take credit for coming up with the saying, shame on them, but somehow I doubt they are. So doubly shame on historydaily.org for pushing a false narrative.

It goes to show that you can't blindly trust whatever you read, even on a .org site.

I do have a few suggestions, starting from least effort for most impact:

1. AFAICT pythonhosted.org is hosted at fastly.net, which seems to be heavily throttling downloads from certain disprivileged locations, as well as downloads from cloud providers such as Linode. It would help a lot if they could ease up a little on the aggressive throttling.

2. Make the pip download timeout longer to better accommodate spotty connections.

3. Make pip downloads resumable so that a download makes progress each time pip install is run.

4. Make pip download each file over multiple HTTP connections in parallel. Download throttling applies to a single connection, so downloading over multiple connections will speedup the download.

Thanks a lot for listening!

This is what I got:

  This site https://www.java.com/en/ is experiencing technical difficulty. We are aware of the issue and are working as quick as possible to correct the issue.

  We apologize for any inconvenience this may have caused.

  To speak with an Oracle sales representative: 1.800.ORACLE1.

  To contact Oracle Corporate Headquarters from anywhere in the world: 1.650.506.7000.

  To get technical support in the United States: 1.800.633.0738.
 

 

  Incident Number: 18.a78d4017.1653908207.1bf41725

Thank you! This tip may just be the cure.

But I shouldn't need to know this, pip should have taken care of picking the best download mirror.

Or it could just support resuming a previous download. I don't actually mind waiting for a slow download or having to rerun pip install a few times, as long as it makes progress each time I run it.

Thanks for the tips, I'll definitely look into them.

EDIT: And thanks for the tip from godmode2019. I upvoted you both.

However, they don't change the fact that pip by default assumes a decent Internet connection, with its short timeout and no resume on downloads, and thus is unusable with anything less.

Again, IMHO that's simply unacceptable for the official Python package manager.