News for hackers. Stuff that matters.

netmute

Show HN: dol – Detect dark/light mode on the CLI

https://github.com/netmute/dol

Hi HN,I built a small macOS/Linux CLI tool called dol (dark or light).Why? Modern operating systems can automatically switch between dark and light mode. However, many CLI tools assume a fixed dark or light background unless told otherwise. This is an attempt to make that less painful.The output is intentionally minimal; it just prints `dark` or `light`. This allows you to construct command...

( Read More... | no comments | on HN )
Hi HN — I built ctags-lsp, a “better-than-nothing” Language Server that uses universal-ctags to provide basic LSP features for 100+ languages.

On startup it indexes your workspace with ctags (kept in-memory) and supports completion, go-to-definition, and document/workspace symbols.

Install:

- `brew install ctags-lsp`

Would love feedback, especially on editor setups and any languages/workspaces where indexing or results are rough.

Re:“The Zen Programmer” is available on Friday November 08, 2013 @10:44AM (#6696710)
I would love to get this as print version. Is there a way?
Re:How Do you Motivate Yourself and Stay Focused? on Friday October 11, 2013 @02:24AM (#6531690)
Staying motivated is simple: don't work on boring shit.

That may sound like a shallow phrase, but I've been there. You've convinced yourself that you're working on the most awesome thing in the world. You keep thinking that you're supposed to be motivated, because what you're doing is great. But deep down, you know that you'd rather do something else.

At that point it usually boils down to rewards. Is the reward worth continuing?

If the answer is yes, go on. Shouldn't be a problem. If the answer is no, you know why you aren't motivated. Drop it, look for something else.

Re:Progressive Enhancement Is Dead on Wednesday September 04, 2013 @06:07AM (#6326554)
The problem is not Javascript per se. Personally, I like a good webapp.

What annoys me is the tendency of Javascript guys to rebuild every damn application there is as a webapp, and rave about it like it's the best thing ever. Javascript has become their hammer, and the whole world looks like it needs a good pounding.

Just because you can doesn't mean you should.

How about not autoplaying the video as soon as I open the page? I frequently open multiple pages in background tabs and Youtube makes this rather annoying.
Re:Enough with the JavaScript already on Monday July 15, 2013 @08:50AM (#6045158)
Enough with the no-context-attached slides already.

Seriously, if you don't have a recording of the talk, or a transcript, at least provide an article or something.

I'm from Germany, we don't have Netflix here. We'll probably never going to have it. When I want to (legally) watch a movie, I have to rent the DVD for 4 EUR at my local video store. We have a local "alternative" called Lovefilm, where you can watch some movies from 5 years ago, but only the bad German synchronised version. In Germany, Netflix is like some utopian fairyland.

So... you can watch all the movies/shows you want for a laughably low monthly price. And now you don't even need that crappy Silverlight plugin anymore.

I really don't see the problem here.

Re:Fish shell 2.0 on Friday May 17, 2013 @08:08AM (#5723777)
I've tried fish a few years ago and wasn't all that impressed with the features.

That said, the new version is just ace! I gave it 30 minutes and it basically does everything I do with zsh right now. All that with about 5% of the configuration effort I put into zsh. Plus, it's so much faster than zsh.

I'll give fish a go as my main shell. Let's see were this goes.

Hi, author here. You might want to look at the README provided with the project.

Yes, you are limited to Ubuntu. And yes, the script expects to SSH as root to your server.

As to why it expects that: Doing server provisioning as non-root user does nothing but increase provisioning-complexity.

Deploying as root, on the other hand, is just me being lazy. You're free to fork and send me a pull-request which changes that ;)

Re:Send Bitcoin to anyone with a Twitter account on Friday March 15, 2013 @12:51PM (#5381510)
A colleague of mine build something very similar a few months ago: https://twitcoin.net/
Simply not true.

Have you ever tried to install and setup PHP on a fresh server? It's almost as painful as writing code in PHP.

The article is talking about managed hosting, were that might still be true (Admins are incredibly conservative and stubborn individuals).

But for everything else? PHP doesn't work 'out of the box'. It's due to the work of a poor admin somewhere that you can just upload your crap and it runs.

In contrast, I can install and setup a complete Ruby server in about 15 minutes.

Re:Reasons to Avoid Test Driven Development on Thursday December 06, 2012 @12:27PM (#4882662)
The article lists 10 reasons which can basically be boiled down to:

1) Unrealistic assumptions ('perfect' developers, 'perfect' architecture etc.)

2) You simply don't care about quality.

Re:The State of JavaScript - Brendan Eich on Tuesday October 09, 2012 @08:36AM (#4631139)
Am I the only one who really dislikes the recent trend of just posting slides without any kind of commentary at all?

Slides are not very helpful on their own :(

Re:A standing desk for $22 on Wednesday June 20, 2012 @04:13AM (#4136050)
On a completely unrelated note, I like to compliment you for your excellent taste in keyboards. I've seen multiple HHKB Pros on the pictures :)
No offense here, I think what you did is awesome. But _some_ information about who build the site would be nice, on the site.
This literally sounds too good to be true.

I found no contact or company information on their website, except 2 email adresses. I can't verify if this is just a clever way of mass deploying a stealth botnet or something.

Will you trust them?

Re:Ask HN: Rails development on the iPad on Friday March 16, 2012 @07:42AM (#3712871)
Sorry to say that, but use the right tool for the job. Some kind of PC with Linux or OSX on it.
Re:TED Talks joins Netflix's stable of streaming content on Friday March 16, 2012 @07:39AM (#3712866)
I really, really want Netflix in Germany. What politician do I have to bribe?
Re:Travis CI supports Haskell on Monday March 12, 2012 @12:34PM (#3694192)
As much as I love them for adding new features and languages, what I really want is Travis CI Pro with non-public projects. So I can start giving them money and use it for work instead of using it for pet projects.
Re:The all-new Basecamp is live on Tuesday March 06, 2012 @08:54AM (#3670958)
Great, they basically removed all the features we use in Basecamp Classic :)
Re:Ruby Patterns from GitHub's Codebase on Thursday March 01, 2012 @07:51AM (#3651870)
I really miss his videos. Looking at slides without any commentary isn't that interesting.
Re:RubyMine 4 is Here to Make You Feel the Productivity on Wednesday February 15, 2012 @03:36PM (#3595930)
Thanks for sharing your experience. I didn't know that Python support was that bad in vim. Can't say the same for Ruby thought.

Older »