Better HN
topnewbestaskshowjobs
Log inSign up

jarv

43 karma · joined Nov 21, 2011 (15y ago) · 28 submissions

Submissions

1.

Getting silly with C, part –(~1<<1)(lcamtuf.substack.com ↗)

2 points · by jarv · 1y ago · discuss

comment 4y ago · link · parent

Curious what service management are you using for all of these docker run commands, systemd? I see you mention that you might consider Prometheus at some point, is there any process monitoring if one of your services crash?

comment 5y ago · link · parent

Oh man, don't get me started. The 3 _calendar_ month notice that needs to be sent in writing (or faxed) is so ridiculous and I wonder if it is done to make it more difficult to get out of contracts. In my case, I had no idea that the written notice receive date matters (unlike the US, where you typically use the postmark date), due to mail delay because of a holiday my notice arrived 2 days late and that was enough to make them pay for another month despite there being an incredible amount of demand in Berlin for apartments.

comment 5y ago · link · parent

> I should also point out something else unfair. I am a dual US|EU (Croatian) citizen who works part-time remotely as a contractor for a US-based company in Croatia, while studying for her masters degree in electrical engineering full time. Because I am an EU citizen, I can work in 30+ countries remotely, outside of the United States, while essentially getting paid more (compared to the locals and most other European Union citizens) for just having US citizenship and related credentials.

For another perspective as a US citizen living in Europe, getting work remotely for US company really only works in tech from what I have seen (maybe in other professions, but they are not that common). What you need is the combination of being able to work on contract, and hopefully not have to shift your hours unless you are working part time. For companies that are large, established, and have remote workers you will likely be paid at market rate for where you live. The tax situation can get complicated depending on your income level, and tax rates in most European countries are much higher than the US. Your investment options outside the US are limited, many expats retain their US banks for this reason. You won't have the benefit of a 401k contribution either. The best situation for employment is being able to invoice a company directly and get paid on a contract, not every company is willing to do this. Otherwise, worst case you would be employed by a local PEO which means for tax purposes you are a full time employee and will likely be paying more taxes than you would in the US. I think Croatia might be in the sweet-spot of countries that hasn't a decent quality of life but also low taxes for independent contractors.

comment 5y ago · link · parent

This is pretty cool, looks similar to something I built awhile back (https://cmdchallenge.com), would love to know more details on how you built the backend, how you are sandboxing commands, if you are doing any caching, etc.

comment 5y ago · link · parent

They are the main food delivery in Slovenia and have pretty much completely taken over incumbent due to the better service and better quality application.

comment 5y ago · link · parent

thanks for the info, I've been hearing a lot of horror stories about kids lacking computers since the lockdown. I'm also in Slovenia (LJ), living here as an expat.

comment 5y ago · link · parent

This sounds interesting, do you have any more information about the nonprofit you can pass along? I would love to learn more about it.

9.

Does serverless make sense for a side-project?(jarv.org ↗)

2 points · by jarv · 5y ago · discuss

10.

My List of Magic Numbers(rachelbythebay.com ↗)

2 points · by jarv · 6y ago · discuss

comment 6y ago · link · parent

small plug - around 6 years ago I created a javascript game that uses Figlet fonts to make arbitrary Atari Breakout-ish boards. Here is a demo - https://jarv.gitlab.io/figlet-breakout/

comment 6y ago · link · parent

> Actual analysis by the engineers of one of their migrated jobs (urgent-other sidekiq shard) says their cost went from $290/month when running in VMs to $700/month when running in Kubernetes. They tried to use auto-scaling but failed completely and ended up disabling it:

Note this is just one service out of many and has very low latency requirements, and due to our slow pod start times in this case it didn't make sense to auto-scale. We are auto-scaling for other services in K8s.

> says their cost went from $290/month when running in VMs to $700/month

These numbers represent a snapshot in time where we are overprovisioning, for this service for the migration. You are correct that cost benefit here remains to be seen for this service. We are doing things like isolating services into separate node pools which may not allow us to be as efficient.

Safer and faster deploys was a huge win for us, for this service and others. This of course is compared to our existing configuration using VMs and Chef to manage them.

disclaimer: blog post author

comment 6y ago · link · parent

Yeah, this is why we decided to migrate it first about a year ago, and we probably could have done it sooner than that. Other services were not yet ready to migrate until recently due to some blocking issues which was a factor in the decision.

disclaimer: blog post author

comment 6y ago · link · parent

It has been possible to run GitLab the application on K8s for some time now for the majority of self-managed deployments. There were some limitations however, for running GitLab on K8s at the very large scale of GitLab.com that we have been working through in the last year.

(disclaimer: blog post author)

comment 6y ago · link · parent

Blog author here - we are using Helm for our application because of how much we have already invested in our public Helm chart.

We are not sold on using Helm however for K8s in general and are currently evaluating Tanka for some of our monitoring infrastructure. One of our engineers wrote up some notes on that here if you are curious https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issu...

16.

Cat'ing Files Without Cat(jarv.org ↗)

3 points · by jarv · 6y ago · discuss

comment 6y ago · link · parent

cool - and the micro instance is free anyway

comment 6y ago · link · parent

Just curious - why didn't you decide to serve the site from object storage?

comment 6y ago · link · parent

So the dotfile is resolved but the solution:

  shopt -s dotglob; for i in *; do echo -n "$i "; done
still isn't valid unfortunately because of the extra space at the end, maybe it should be more forgiving about that.

comment 6y ago · link · parent

If it helps you can click on 'view solutions' to see correct answers if you are stuck.

comment 6y ago · link · parent

Thanks! It looks like this is adding leading spaces on every line after the first one. The solutions can be viewed https://oops.cmdchallenge.com/#/oops_print_file_contents by clicking on "view solutions" if you want to compare.

For the ^W thing I'm not sure if it's possible to avoid it, I'll check it out.

comment 6y ago · link · parent

Ah, that is a bug the dotfile should not be there. Thanks!

comment 6y ago · link · parent

thanks for the feedback, maybe something like "display its contents" would be clearer.

comment 6y ago · link · parent

Hello HN: This is a a modification to an old side-project that explores what is possible when you are left with a shell and no utilities on a Linux machine.

25.

Show HN: Oops I deleted my bin/ dir(oops.cmdchallenge.com ↗)

30 points · by jarv · 6y ago · 21 comments

26.

Practice your shell one-liners(cmdchallenge.com ↗)

1 points · by jarv · 6y ago · discuss

comment 14y ago · link · parent

The NLTK python lib is a great tool. I've been playing around with this recently and having a lot of fun. More recently I started looking at SCOTUS oral transcripts:

http://jarv.org/2012/02/a-text-analysis-of-supreme-court-ora...

The two articles here by the same author are interesting for folks who are interested in more about sentiment analysis

http://streamhacker.com/2010/05/10/text-classification-senti... http://streamhacker.com/2010/06/16/text-classification-senti...

28.

Popular names from ssh break in attempts(jarv.org ↗)

2 points · by jarv · 14y ago · discuss