News for hackers. Stuff that matters.

foxylion

Ask HN: Developer PC setup automations for company owned devices

Hi, we are currently discussing within our company if the current state of developer PC setup is okay ore should be improved.Current state:- Laptop with either Linux, Windows or MacOS pre-installed and integrated in Microsoft AD is provided.- The developer needs to install software, CLI tools, Git configuration and so on by following guides in our documentation.- Docs are frequently updated to...

( Read More... | 47 comments | 2 points | on HN )
Re:Building an OpenTable Bot on Thursday December 09, 2021 @03:14AM (#29495040)
When I write a bot like this I generally prefer using browser automation (like puppeteer). This requires less reverse engineering and is often a lot simpler and faster to implement.
Re:Google disabled my husband's account on Thursday October 15, 2020 @03:11PM (#24792559)
You can now link the takeout to another cloud provider (e.g. Dropbox or Microsoft OneDrive). And configure the takeout to take place every two month (for up to 6 times).

So you just need to configure the takeout once a year and you'll automatically receive a backup once every two month.

You can also just do a normal form post request into an invisible iframe that is generated by the attacker's javascript.
Re:iPhone 11 Pro and iPhone 11 Pro Max on Wednesday September 11, 2019 @09:15AM (#20939767)
This is, as far as I know, only possible if you bought it online.
But managing an IRC server cluster for 10.000+ users is no simple task.

Paying experts in their field (chat tools in this case) is most of the time the most reliable and cheapest variant. You must also include that Slack has plenty of features that are not available in IRC and mean the productivity is not as good.

Re:GitHub Package Registry on Friday May 10, 2019 @05:14PM (#19882296)
Re:Notes on the Amazon Aurora Paper on Tuesday February 26, 2019 @04:32PM (#19258479)
Did you try to upgrade using AWS database migration service?
Re:GitHub: Partial System Outage on Wednesday January 02, 2019 @12:50PM (#18808229)
Normally the operational status is automatically updated on outages. The past incidents part is managed manually.
Re:AWS now supports U2F/Yubikeys on Wednesday September 26, 2018 @02:34AM (#18073275)
Nearly everything. Old k8s version. No upgrade possible. Odd deployment process (not fully automated). Support is unable to help in a timely manner. First deployed cluster was directly broken (no DNS resolution).

We eyed on switching from kops to EKS. But immediately stepped down after experiencing so many issues.

I wonder who is writing those status messages. as a customer this reads like "please wait, ETA to fix unknown" in 10 different ways.
Re:Amazon EKS – Now Generally Available on Wednesday June 06, 2018 @02:13AM (#17244715)
Yes it is nice for experiments, but if you already invest thousands of dollars a month for cloud resources, an additional 150$ are for sure not a problem.
Re:Amazon EKS – Now Generally Available on Tuesday June 05, 2018 @04:00PM (#17241466)
I second this. This means you don't have to setup and manage those master nodes. AWS will do this for you. A developer fixing an issue with your self-managed master nodes will be much more expensive than 150$/month.

As an individual this may look expensive, but as a company this is much cheaper than paying the loan of a developer.

Re:Showdown: MySQL 8 vs. PostgreSQL 10 on Wednesday May 23, 2018 @12:46PM (#17135618)
Yes, we are planning to just fail, as the chance of a collision is really low and the user will then be able to just retry creating the object.
Re:Showdown: MySQL 8 vs. PostgreSQL 10 on Wednesday May 23, 2018 @12:27PM (#17135430)
The article contains a footnote about UUIDs as primary keys.

> UUID as a primary key is a terrible idea, by the way — cryptographic randomness is utterly designed to kill locality of reference, hence the performance penalty

Is there anyone who can go a little bit more in detail?

We planned to migrate our database to use UUIDs as primary keys. This will allow creating new rows on clients knowing the new primary key before sending them to the server (simplifying client and server code).

Re:All HTTP-based services unresponsive on Friday March 02, 2018 @12:53PM (#16503944)
I think hosting the repository is one thing.

But integrating those two repositories with all the automated workflows is quite a headache. Jenkins won't automatically switch over to another git backend if one fails. Other automated tools like code review are mostly relying on a centralized repostiory. I don't see any simple solution to solve these issues. Bitbucket, GitHub, GitLab don't have any easy fallback solutions when you relying core workflows on their services.

Self hosting is maybe one solution (we do this with bitbucket), but this requires major administrative effort to keep it running reliably (always available, no data losses on hardware/software failures).

Re:Hidden work when launching a SaaS on Monday February 12, 2018 @02:28PM (#16361258)
Yes, as mentioned in my other post, ChargeBee does this really well. We, as a German company, use it for our SaaS offering.
Re:Hidden work when launching a SaaS on Monday February 12, 2018 @02:23PM (#16361201)
We use ChargeBee for our SaaS product. Really great offering! They give you a customer portal where the customer can cancel, update, upgrade, ... his subscription. We have a custom checkout page where all options are listed. Then one API call and the user is forwarded and can fill out billing address, payment information, etc. on a ChargeBee page. They will handle taxes, issue invoice and everything else for you.

They have also an extensive API and webhooks.

Re:Documenting the Web together on Thursday October 19, 2017 @02:45AM (#15505925)
It depends on the user base. Customers of the company I work for mostly use IE or Edge and only Chrome because we highly suggest it. Without decent IE/Edge support we would have less customers.
Re:Microservices in Java – A Second Look on Wednesday October 18, 2017 @04:27PM (#15502681)
What you forget is: You get so many features with Spring Boot and you can actually use them without increasing the memory footprint.

Yes of course, for a single service with one endpoint that does nothing it is bloat. But which microservice does nothing?

Think about a database backend, actuator endpoints, etc. They are all possible with a memory footprint of ~200mb. It can be less is you use another language, but I doubt that Go will give you such a major framework for developing a microservice. And this will save you a lot more time than taking an hour to reduce your memory footprint.

And one thing you missed too: Using the JVM should also be combined with a basic knowledge about how the heap works. And if you do not limit it, it will get a lot bigger than required, this should be common knowledge. Comparing this to Go it seems like a much better way. In Go there is afaik no way to limit the heap. In worst case it will grow and grow and grow.

Re:Microservices in Java – A Second Look on Wednesday October 18, 2017 @04:22PM (#15502612)
Yes... But such blog posts are terrible. They share bad knowledge and so many people trust such blog posts and make decisions based on this.
Re:Microservices in Java – A Second Look on Wednesday October 18, 2017 @04:14PM (#15502534)
I don't get it. When you limit the memory of the java process it will be a _lot_ lower. A spring boot server can be started with -Xmx64m. Setting the memory limit to 200mb is more than enough to prevent OOM kills in Kubernetes.

We run many spring boot services in that way. With absolutely no issues.

Edit: just checked it, -Xmx32m is also usable.

Re:Refresh Is Sacred on Thursday September 28, 2017 @02:25AM (#15355081)
My hope is that at some point the auto sync is smart enough so we don't need any refresh button.

For example: Instagram does auto sync of new posts, but it also has a refresh functionality. So I never know if it is up to date and I must refresh. When you know about a manual refresh functionality the auto update is totally useles. You're never sure if the app tries to stay up to date or does only occasionally sync to show some (not the latest) updates.

Another example is google mail, it does auto sync pretty well and I always see the mails when they arrive. But the refresh buttons makes me suspicious if it's really up to date (in my experience it always is).

Re:Monitoring Cloudflare's edge network with Prometheus on Monday September 25, 2017 @02:17AM (#15328411)
You would expose a counter with the total request count. Summing those up across all nodes known by Prometheus will give you the total amount of requests currently visible to monitoring. With "rate()" you could calculate the requests/second.

But yes it is possible to miss some requests if a node goes down without Prometheus collecting the latest stats.

But as the parent said, if you need such totals it might be better to store them persistently. Also I do not know a scenario where the total number of requests will trigger an alert.

Re:Painless NGINX Ingress on Wednesday September 13, 2017 @04:10PM (#15242120)
In this case (ingress controller) this is done with a Prometheus metric exporter. So all the metrics are available in Prometheus.

https://github.com/hnlq715/nginx-vts-exporter

If they do it there would be someine at some point who would leak information about this. And this will probably much worse than loosing some customers.

Nonetheless with Amazon Marketplace they already habe a platform where they know every transaction, price and product from third parties.

Re:Kubernetes at GitHub on Wednesday August 16, 2017 @02:29PM (#15029900)
We also did some evaluation and then decided to stick to KISS an chose kubectl commands combined with cat and kexpand. Really simple approach to allow dynamic kubernetes deployments.

Example command can be

   cat service.yml | kexpand expand -v image-tag=git-135afed4 | kubectl apply -f -
The service.yml contains the full deployment configuration, service definition and ingress rules. So this works without preconfiguring anything in kubernetes when deploying an new service.

An engineer only has to create the service.yml and Jenkins does deploy it automatically on every master build.

*kexpand is a small tool which does something similar to sed, but in a simpler and less powerful way (keep it simple): https://github.com/kopeio/kexpand

Older »