Better HN
topnewbestaskshowjobs
Log inSign up

inkel

49 karma · joined Jun 22, 2011 (15y ago) · 31 submissions

[ my public key: https://keybase.io/inkel; my proof: https://keybase.io/inkel/sigs/u-xVggkDB_Za1WflnYMWSZNOnSb_gHMhFUuMqabhG4Q ]
Submissions

comment 4y ago · link · parent

You configure with Remote Write [1] to the Mimir instance. Then the Prometheus agents will send the metrics to Mimir.

1: https://prometheus.io/docs/prometheus/latest/configuration/c...

comment 10y ago · link · parent

I'm pretty sure we haven't lost that many libraries, and I have even seen new ones in recent years.

comment 11y ago · link · parent

Very interesting... as far as I've read. I've saved it for later reading in my Pocket account. I wonder what the author thinks of me.

comment 11y ago · link · parent

As long as its performance is not orders of magnitude slower than HAProxy/Nginx, I think it's great that is not your top priority :)

comment 11y ago · link · parent

Thank you for the explanation. I think it makes sense somehow, however, and high likely because I've never dealt with errors in that way, the _encounter error, crash, restart, continue_ workflow seems a bit awful to me :)

The Haskell solution seems really nice. I've only used Haskell for pet projects and it's one of my favorites languages (though I don't have any proficiency with it,) so thank you for teaching me something else about it.

comment 11y ago · link · parent

Ok, verbosity I agree. That doesn't have anything to do with being easy or not, I think. I might be wrong. Verbosity can be a pain. Even after reading Rob Pike's article on "Errors are values" [1], I agree with you that the solution is still verbose.

Those numbers you gave, even when you said they're estimates, still seems like made up numbers. I've never used Elixir, so if you could point me to an example so I can be more informed, I'll be grateful :) but also I've read some Go programs (not many, I'm not an expert) and it didn't seem to me that 70% of the code is dedicated to error handling.

Note that I'm not defending Go's position on error handling, I'm asking about error handling in general, what does people mean with "easy way to do it".

[1]: http://blog.golang.org/errors-are-values

comment 11y ago · link · parent

I've never really understood the "no easy way to handle errors" complaint. I'm not saying it is easy, nor that it isn't verbose (hell, it is super verbose!) but I'm seriously asking: what would be an easy way to handle errors? I'm not asking about how to do it in Go, just how to do it in any programming language.

To me errors are very special constructs, is not a typical return value, as for example a method returning true or false whether the arguments are valid or not, so I expect errors to be something similar (at least semantically) as exceptions in other languages, and in that case, that is, return values that should be deal with in a certain special manner, so I don't expect to deal with them in an "real easy way"™, but in a very conscious and deliberated way.

8.

New gpm plugins added to the homebrew tap: gpm-git and gpm-local(github.com ↗)

2 points · by inkel · 12y ago · discuss

comment 12y ago · link · parent

They deserved a better storytelling: https://github.com/inkel/ruster/blob/90f7da1c281bfc1a5fe01cc...

comment 12y ago · link · parent

As the commit author here, I must confess that it was so painful to write that story that I had to stop coding and go out for a walk. I was devastated...

comment 13y ago · link · parent

I use it as the only database in most of the projects I've work at my company, using Ohm [1] as our ORM. Usually we don't have use cases with ad hoc queries like `name LIKE '%Smith'`, so it serves our purposes very well. When we need something like that, we integrate with something like Elasticsearch.

[1] https://ohm.keyvalue.org/

comment 13y ago · link · parent

That won't work as it is with `w.Write`, as it returns two values, but yes, the idea is perfectly valid.

comment 13y ago · link · parent

Please add plain DOM documentation. I use jQuery, but I also use other libs or none at all, and having access to the DOM API would be wonderful.

comment 13y ago · link · parent

What was their reaction when you sent them this feedback? Assuming, of course, you did send them this feedback.

15.

Hello proxy.openredis.com(gist.io ↗)

4 points · by inkel · 13y ago · discuss

comment 13y ago · link · parent

Amazing! I always forget about the `something while other_thing` syntax, thank you for reminding me of it :)

comment 13y ago · link · parent

Why piping to ruby? You have the -e operator for that:

    ruby -e 'loop do print ["\u2571","\u2572"].sample ; sleep 0.001 end'

comment 14y ago · link · parent

I agree with you, having the ability to script everyday tasks is awesome, though however in the case of the ssh wrapper it might be a little overkill, given that you can achieve the same (and more) with a ssh_config file [1] [2]. I would particularly recommend the ControlMaster option.

[1] http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-... [2] http://linux.die.net/man/5/ssh_config

19.

Ruby Vinyl: access level for him and her(tarolandia.github.com ↗)

1 points · by inkel · 14y ago · discuss

comment 14y ago · link · parent

Wait. If you use 200-300MB of DB storage, openredis costs $69 using it as a Heroku add-on and $45 if used independently.

$125 ($90) is the price of the large instance, which offers 1.7GB of storage.

That's quite a difference.

21.

Hangops: hang with other ops (devs, qa, whomever welcome too)(hangops.com ↗)

2 points · by inkel · 14y ago · discuss

comment 14y ago · link · parent

That's a good point you make.

comment 14y ago · link · parent

I'm not bashing against Haml, all that I'm saying is that is not necessary. Lately Slim also has become quite popular, so that would involve also having the Slim version. And in the future it will be something different, but as long as HTML remains as the lingua franca of the web, then there's no really need.

I used Haml in the past, and I understand it's popular nowadays mostly because of Rails, but I hardly think it's widely-used. Just to name a few that use HTML or a template engine of their own: Blogspot, Tumblr and Wordpress, and these are much more widely-used than Haml.

comment 14y ago · link · parent

Why? You can always use html2haml.

The site is perfect as it is, there's no need to add a unnecessary and non-standard format.

25.

[Spanish] Introducción a Git y GitHub(slideshare.net ↗)

1 points · by inkel · 14y ago · discuss

26.

Show HN: Fallen: A simpler daemon library for Ruby processes.(inkel.github.com ↗)

6 points · by inkel · 14y ago · discuss

comment 14y ago · link · parent

I agree with you. I'm not doing Rails anymore, I'm working with Cuba + gs + dep + Ohm + mote, and I find it easier and less bloated than what Rails has become.

Rails 3.x, though with a couple of good ideas, it's not as easy as it used to be to start developing an app, less say deploying it. Too many helpers and technologies to learn, IMO completely unnecessary.

comment 14y ago · link · parent

Guessing you're referring to Emacs and not Vim, I've been using textmate.el [1] and it is just great.

[1] http://ozmm.org/posts/textmate_minor_mode.html

comment 14y ago · link · parent

Dymanic pages properly programmed could and should send this headers. Also some frameworks and/or proxies manage this for you.

comment 15y ago · link · parent

Amen to that. Specially if all your content was open source.
12