beizhia's comments

beizhia | 6 years ago | on: HTTP static server one-liners

The Crystal version can. I just commented an update for it that will run on 0.32.1, but for logging you can include the HTTP::LogHandler:

  crystal eval 'require "http/server"; server = HTTP::Server.new([HTTP::LogHandler.new, HTTP::StaticFileHandler.new(".")]); server.bind_tcp(8080); server.listen'

beizhia | 6 years ago | on: Emacs: The Editor for the Next Forty Years [video]

I know this isn't as simple as what you're looking for, but this is what I go to macros for. Kill the line, paste it twice, move to the first one, comment it out, move down one.

Once you create a macro like that you can run it, name it, save it to your config, bind it to a key, whatever suits your workflow.

I never really thought of how much I do this manually, so I just set it up for myself right now. I'll probably rewrite it as an elisp function though.

beizhia | 6 years ago | on: CSS Utility Classes and “Separation of Concerns” (2017)

From my experience, using utility classes like this just means that you'll have a lot of messy overriding to do when your reusable components need to look different in different places.

Personally I think visual consistency is important and you shouldn't make things look different in different places, but it's not always up to me.

beizhia | 7 years ago | on: The Parker “51” (2018)

You can get a Pilot Varsity or a Platinum Preppy for just a couple bucks, and they write pretty dang good. It's a great entry point in to fountain pens.

Having nice pens makes me want to use them more, and writing more has helped me organize my thoughts better, especially when writing code. I'd highly recommend it to everyone.

beizhia | 7 years ago | on: Addicted to vaped nicotine, teenagers have no clear path to quitting

These kind of articles always seem odd to me. I've used an e-cig to stop smoking. Worked myself down from 21mg juice to 3mg, step by step. Now I really only use it when I'm out drinking, to prevent myself from wanting a cigarette (old habits do die hard, after all)

The e-cig helped, but the real motivator is that I wanted to run and play soccer more effectively. Vaping was just a tool that kept me away from cigarettes.

beizhia | 7 years ago | on: Dotsies (2012)

There's also Shavian and Quikscript for English, which handle the language phonetically. I think it's a big miss for any new writing system to keep a language with 38 or so sounds limited to 26 letters. Not to mention other languages that might want to use it.

beizhia | 7 years ago | on: Firefox desktop market share now below 9%

I use Firefox as my main browser (but I'm a Linux user, so I'm already away from mainstream). (edit: tree-style-tabs is the killer feature/extension, and I can never go back)

I do still pop open chrome for the devtools when I'm working on web stuff. I wish I didn't have to, but there's one thing that FF doesnt have that I need at work: goto line in the sources browser.

Lots of our files at work are several thousand lines (I know...), and its a huge missing feature to me.

I might see if I can code it up myself and submit a patch, but that's not exactly trivial.

beizhia | 7 years ago | on: Ask HN: What's the best documentation you've ever read?

It's gotta be emacs for me. C-h o, and helm-apropos make it super easy to investigate anything in the system. And the help pages link back to the source code (though this isn't unique to emacs) The online docs aren't bad either.

beizhia | 7 years ago | on: Ask HN: Which YouTube channels do you watch regularly?

Techmoan - exploring the forgotten tech of the past

LazyGameReviews - Old PCs, peripherals, and software

ForgottenWeapons - the mechanics and history of the weapons of the past

AvE - Thorough teardowns of tools, fabricobbling, enginerding, etc

Extra Credits - Game design and more

Artifexian - Worldbuilding and some linguistics

Alliterative - Chasing down word etymologies

beizhia | 7 years ago | on: Show HN: Write every day, measure your progress, achieve your writing goals

Personally, I prefer writing on paper to typing on a computer for my own personal purposes.

Writing with pen and paper just feels more immediate.

I also got some fountain pens a couple years ago, and I made a bit of a hobby out of it. Having nice tools makes thw work easier, and sorta motivated me to write more in the first place.

beizhia | 8 years ago | on: 1 in 10 Americans in survey say they deleted their Facebook account over privacy

I actually deleted my facebook account because I felt like it was negatively affecting me mentally. I've never been the most social person (although I'm working to change that), and I would spend a lot of time alone reading my facebook feed, thinking about how I don't do as much cool stuff as all the people I'm friends with. I realized that I would only really post things to seek affirmation. Initially I just changed my password to something long that I couldnt remember, to keep me from logging in, knowing that I could reset the password if I needed to login. I never did though for the next 6 months.

I also deleted the instagram app from my phone, and blocked reddit on all my PCs. Hackernews might be next I'm afraid - I just don't see that it's a good use of my time anymore. I've even been considering getting a non-smartphone next time I need a new phone. Maybe it's just a reaction to everything going on online, but I'm enjoying being free from social media.

beizhia | 8 years ago | on: Ask HN: High functioning alcoholism – anyone?

I used to drink a lot, but I eventually came to realize that I wasnt drinking for the alcohol, I was just drinking because I wanted something to drink. I remember back in high school I'd drink soda all the time, and lots of it, which I think was for the same reasons.

I started drinking LaCroix, and its to the point where I'm going through a 12 pack every couple days. I had to start buying the generic brands to save money.

I still drink beer, wine, and whiskey, but not nearly as much as I used to. I think I've saved a lot of money this way too. I also took up running about a year ago, and that got me to stop smoking too, even though that was only like 1 or 2 cigarettes a day, and not even every day. I've been changing up my diet too, and that's had a huge impact.

page 1