HN user

procparam

149 karma
Posts1
Comments13
View on HN
Project Euler 2 years ago

Wow. The idea of getting to 100% on PE is almost incomprehensible to me. I've solved basically none outside the first couple pages.

What was your strategy like? How much math background do you have?

Infinite Craft 2 years ago

My friends and I have played so much already that the list of elements on the sidebar is unwieldy. You can paste this little js snippet into the console to add a basic search feature

  items = () => [...document.querySelectorAll('.items div.item')]
  show = (elt) => elt.style.display=''
  hide = (elt) => elt.style.display='none'
  search = (text) => (items().forEach(show), items().filter(e => !e.innerText.toLowerCase().includes(text.toLowerCase())).forEach(hide))
  inputElt = document.createElement('input'); inputElt.type='text';
  document.querySelector('.sidebar').prepend(inputElt)
  function handle(e) { search(e.target.value) }
  inputElt.addEventListener('input', handle)
20 Years of Gentoo 3 years ago

It's not you Gentoo, it's me. I'm just not good enough.

I've been trying to like Gentoo for over four years, ever since I installed it on my primary laptop. I love the idea of having the fine-tuned control that Gentoo offers, and I love the idea that everything I install is tailored to my specific system.

But despite my best intentions I have not mastered it - in fact I barely feel like I understand it. When I remember to update it a couple times a week everything is pretty smooth. Go much longer than that and all bets are off. If I go on a long vacation I dread coming back to a Gentoo update. I just don't have the discipline to keep up.

Lately portage has been scolding me because some random packages are trying to install different versions of openssl. I've been ignoring it for weeks while I muster the courage to solve it.

And in my experience this kind of problem is super common. Either I'm pulling multiple versions of a package into the same slot, or I'm trying to merge a masked package, or some package is trying to put files in a place it doesn't own, or who knows...

Every time I try to solve one of these issues it's like I'm starting from scratch. I read manpages, online docs, bug trackers. I try various incantations of emerge flags. And eventually I show up the IRC channel with my tail between my legs.

Fortunately, the IRC community is extremely knowledgeable and can usually fix my problem in no time. But I hate having to ask for help, and I never seem to get closer to solving them myself.

The other major issue I have is convenience: it sometimes takes so long to install a new package. I get it - that's what you expect with a source-based distro. But man I did not understand just how much compiling time I'd need. Krita releases a new patch version? There's a couple hours with my laptop fans blasting. My laptop has easily spent 10x or 50x the time compiling Krita vs actually running it! And that's just one random program; god help you if you want Firefox on the same machine.

Anyway, on my next computer I'll probably install Arch.

The mat at the top of the kombucha is not the SCOBY. It is a waste product of the SCOBY - just a big slab of cellulose. This is a misunderstanding that I've seen people on r/kombucha get pretty upset about

The actual SCOBY is in the kombucha itself, not the cellulose. It's pretty easy to prove; when I made kombucha I would throw out the mat after every batch and save some of the liquid to use as starter for the next.

A separate language? How do you mean?

This is one of the big advantages of Lisp macros over C macros. In Lisp you write macros using Lisp, including normal user-defined functions. In C, on the other hand, you write macros using "C Preprocessor directives"

It's not "helpful" in the sense that it's the smart decision for anyone.

The point is, that's actually how real people see the lottery. A big payout feels more likely than a $100k/yr job when you've been under the poverty line long enough.

Remember, the goal of this game isn't to see how efficiently you get to the end; it's to help you put yourself in the shoes of people actually in this position.

Dumber phone 8 years ago

One huge distraction-enabler is the fingerprint sensor. It makes things too easy for me - I put my hand in my pocket, put my finger on the sensor, and by the time it's in front of my face I can be mindlessly browsing reddit.

So I would add the following tip: disable the fingerprint sensor if you have one (also face recognition, etc), and replace it with an inconveniently long password. This way you really need to think about whether it's worth the time to open your phone.

I use the windows key for the i3 modifier, and leave alt alone. If your keyboard doesn't have a windows key, you can probably map left-alt to mod and leave right-alt alone. Or vice versa.

Basically, find a redundant key to use as your wm mod key.

iPhone 8 9 years ago

I have a magnetic phone mount in my car. When I get in, I put my phone on the mount, then connect it to the charging cable. Just because it's a pain to fool with cables in the car (especially if I remember after I start driving) I've found myself wishing that (1) my phone allows wireless charging and (2) the phone mount doubled as a wireless charging pad.

That's the best use case I can think of.