Hacker Newsnew | past | comments | ask | show | jobs | submit | rullopat's commentslogin

So if you have a page that is common between, lets say, 30-40 tests, you prefer to copy/paste the new selectors everywhere?


Ive just designed not practical thin furniture, like the bending iPhones and the ultra thin MacBooks with no way to release heat and the keyboard that was getting broken after pressing a bit too hard


It's great for sending your 6 GB hello world exe to your friends I suppose


The beauty of docker is that it is a reflection of how much someone cares about deployments: do you care about being efficient? You can use `scratch` or `X-alpine`. Do you simply not care and just want things to work? Always go for `ubuntu` and you're good to go!

You can have a full and extensive api backend in golang, having a total image size of 5-6MB.


I've done both, tiny scratch based images with a single go binary to full fat ubuntu based things.

What is killing me at the moment is deploying Docker based AI applications.

The CUDA base images come in at several GB to start with, then typically a whole host of python dependencies will be added with things like pytorch adding almost a GB of binaries.

Typically the application code is tiny as it's usually just python, but then you have the ML model itself. These can be many GB too, so you need to decide whether to add it to the image or mount it as a volume, regardless it needs to make it's way onto the deployment target.

I'm currently delivering double digit GB docker images to different parts of my organisation which raises eyebrows. I'm not sure a way around it though, it's less a docker problem and more an AI / CUDA issue.

Docker fits current workflows but I can't help feeling having custom VM images for this type of thing would be more efficient.


PyTorch essentially landed on the same bundling CUDA solution, so you're at least in good company.


Yep, then I have some projects that have pytorch dependencies which use it's own bundled CUDA and non-pytorch dependencies that use a CUDA in the usual system wide include path.

So CUDA gets packaged up in the container twice unless I start building everything from source or messing about with RPATHs!


> You can have a full and extensive api backend in golang, having a total image size of 5-6MB.

So people are building docker "binaries", that depend on docker installed on the host, to run a container inside a container on the host– or even better, on a non-linux host, all of that then runs in a VM on the host... just... to run a golang application that is... already compiled to a binary?


Sure but a Docker setup is more than just running the binary. You have setup configs, env vars, external dependencies, and all executed in the same way.

Of course you can do it directly on the machine but maybe you don't need containers then.

In the same vein: people put stuff within a box, which is then put within another bigger box, inside a metal container, on top on another floating container. Why? Well, for some that's convenient.


Golang should not need docker. It's statically built.


Docker / containers are more than just that though. Using it allows your golang process to be isolated and integrated into the rest of your tooling, deployment pipelines, etc.


It's go; that could be trivially done with a script.

Heck, you can even cross compile go code for any architecture to another one (even for different OSes), and docker would be useless there unless docker has mechanisms to bind qemu-$ARCH with containers and binfmt.


I'd argue that having it in a Docker container is much easier to integrate with the rest of many people's infra. On ECS, K8s, or similar? Docker is such an easy layer to slap on and it'll fit in easily in that situation.

Are you running on bare servers? Sure, a Go binary and a script is fine.


Yep, it's using docker as a means of delivery really. Especially in larger organisations this is just the done thing now.

I understand what the OP is saying but not sure they get this context.

If I were working in that world still I might have that single binary, and a script, but I'm old school and would probably make an RPM package and add a systemd unit file and some log rotate configs too!


I'm using Kamal for a Ruby on Rails app on a dedicated server on Hetzner. Works like a charm! Did you find it difficult to deploy a .NET, because of the documentation oriented more towards Rails?


Took a bit of research and trial and error to get to a solution we liked, but as it's just deploying and managing Docker Apps, deploying .NET Docker Apps was ok but a bit of time was spent supporting DB Migrations and litestream and running it from GitHub Actions, we've documented our support for Deploying with Kamal (inc YouTube Guide) at:

https://docs.servicestack.net/kamal-deploy


What about Kamal? https://kamal-deploy.org/ Did anybody here use it for anything that is not a Ruby on Rails app?


Yes, I have been using it and really enjoying it for deploying web apps. So far I have deployed web apps using: * fastapi (python) * Django ninja (python) * ghost cms (node)

I have been writing up my thoughts (and an example): https://andrewperkins.com.au/kamal/

The ability to deploy to both cloud servers and on-premises is a big win as I often work on projects that have a mix of both.

As the sibling comment says, it’s focussed on web servers. In my use case that is fine!


Great! Are you also deploying DB servers or any other kind of additional servers that are dependencies of those webapps?


Yes, I am deploying mysql with ghost

``` accessories:

  db:
    image: mysql:8.0
    host: 170.64.156.161
    env:
      secret:
        - MYSQL_ROOT_PASSWORD
    options:
      restart: always
    directories:
      - data:/var/lib/mysql
```

For my other services I am just using sqlite combined with a volume for persistence (managed by kamal)


The thing that puts me off is its seemingly heavy focus on “web apps”. I have a bunch of services I either use or wrote myself and only a handful have anything to do with the web.


2000$? You wish!


Lol, not sure where I got the 2k from. Brain fart, but I'll let it stand :D


And few days ago JD Vance went to Munich to say to EU leaders that they "there is a problem of freedom of speech in Europe"...


There obviously are problems with freedom of speech in Europe.

Everyone knows it.


Tell me more. I live here and have never encountered a situation where I was not allowed to express my opinions in a systematic way. So I don't know but would be delighted to


Are we counting the UK? Because that one's really easy to find examples of - just google "UK arresting protestors", maybe throw in "Queen" or "Royal". They really, really don't like the anti-monarchists.

You might also look into things like the French ban on hijab in sporting events, and how that played out at the 2024 Olympics.

There's a lot of results concerned with religion - Germany has been using it's anti-semitism laws to crack down on anyone that's pro-Palestine, the French hijab thing I just mentioned, etc..

The UK also has some remarkable issues with libel laws.

This is just off the top of my mind - I'm not trying to say any particular issue is super important, just threads you can investigate. But I think even a few examples like that should make it clear that there's something systemic going on.


It might simply mean your opinions fall in the narrow band of views that are permitted to be expressed. It proves nothing about freedom of speech in general.

Even in North Korea, people are allowed to freely express their love for their Dear Leader. Those who express a different view are swiftly disposed of. If you love Dear Leader you could live your entire life believing that you and everyone else has free speech, simply because you have never encountered evidence to the contrary.


AfD is a Nazi party, and nobody's silencing them, despite overwhelming opposition in all EU countries. If you listen to EU parliament speeches, there's all kinds of radical political views being shared during debates. Vance came to Europe to peddle US culture wars and got laughed out.


Alice Weidel is in almost every talk show I watch, was invited to almost every major debate and everyone is doing a great job of normalizing the AfD. Every time someone from there complains about not being allowed to say what they want it's on a stage with a mic in hand and them being allowed to say whatever they want. So while I don't really agree on the "Nazi" part they're definitely not silenced. And apparently no one in this thread can tell me what freedom I'm missing despite claiming I do. Just give me some statistic or some example of systematic suppression of speech if it's that obvious to anyone but me


The established political parties in Germany are in fact trying to silence the AfD - precisely because they are gaining support amongs the population that is no longer represented by the established parties.


No, that's the story the AfD tells everyone. In reality it's because the AfD isn't compatible with our constitution and democracy.


My, this narrative sounds familiar... Almost like it's been peddled in Germany before, 80 years ago.


What "narrative"?


A disillusioned and unrepresentated population being mopped up by a right-wing populist political party in Germany. This is exactly how the Nazi party took power. It's what just happened in America. It pays to know your history.


> AfD is a Nazi party.

It feels inappropriate that progressives have decided that it's okay to use Nazi as a generic insult for mainstream right wing parties. It waters down the true horrors of the Nazi party.

Anyway, as to censorship coming from Germany:

"Germany submits the highest number of legal demands for user data to X within the European Union, with ~87% of these requests targeting speech-related offenses. "

https://x.com/GlobalAffairs/status/1891593848771707233


It's more complicated than that, in this case. They aren't simply insulting AfD by calling it a Nazi party. There is some truth to it, in that AfD almost certainly has Nazis in it. A prominent AfD member has used the phrase "all for Germany" that was also used by the Nazis. They also openly say that they want to take down holocaust memorials and stop talking about it.

Personally, I think that the full accusation of Nazism should be reserved for when it's really needed. But I assume that Germans know better than I do how to go about keeping Nazis out of their country.


Your source is Elon Musk. AfD is not just "a mainstream right-wing party".


Sure it is. Their policies are comparable to the those of the current trump administration.


That says a lot about the current Trump administration, not the other way around.


Germany is also the biggest market in the EU. Without actual numbers this proves nothing. And with a platform that primarily relies on speech I struggle to come up with a huge list of non-speech-related offenses that could come up. Also, we're taking about a platform owned by an heavily opinionated US gov official here, come on...


AfD the extreme right wing nazi party helmed by a lesbian that is married to a brown woman?

Are you sure you're using all of these words correctly?


Sure, and Elon Musk couldn't have done a Nazi salute twice, because he photographed himself looking bummed out at Auschwitz. What does it take for you to call spade a spade?


Yes, they are.

https://extremismterms.adl.org/resources/backgrounder/altern...

AFAIK they don't terribly mind what Israel is doing in Gaza, and even the ADL has that page about them.

There is a lot more if you are not convinced. At any rate Alice Weidel being lesbian means as much as some of the original Nazi leadership being homosexual, nothing. Homosexuality isn't a taboo anymore, holocaust revisionism is. Those to whom it isn't are anathema to those to whom it is.


That's great and all, but last time I checked I didn't live in a country with a grand leader. Germany's chancellor is looking at loosing an election in less than a week. So I ask again, and I'm actually serious about this question: What opinion am I not allowed to express? (Except insults and denying the death of 6 million Jews)


And I have never been charged with a murder so we can conclude that murder is in fact allowed.


This is cute because it needs the UK to not be in EU in order to not immediately get a guffaw.

I think the French might have some quibbles about how free their speech is.


The US ranks #55 in press freedom, all positions in the top 10 are EU countries.


You never said it explicitly but you are referencing the French Reporters sans frontières (RSF) ranking, which is a European organization which is obviously predisposed to rank European countries highly.

I find their ranking highly suspect because they put the Netherlands at number #4, one of the highest rankings, while in reality the press in the Netherlands is in a dire state: literally all newspapers of record are collectively owned by just two Belgian (not even Dutch) mega-corporations. Is this really one of the most free countries? It's like Rupert Murdoch and Michael Bloomberg together owned all newspapers in the US.

And the US is ranked suspiciously low, at #55, below a country like Belize. Belize! Look at what RSF itself writes about Belize:

> With no daily newspapers, the pool of media outlets is small, and of those considered mainstream, some are supportive of political parties, even when privately owned. Independent media are scarce and access to funding is limited. Most of the advertising funds that media publishers rely on come from the government and their distribution are often dependent on the party in power.

Am I supposed to take it seriously that this is better than the US? That Belizeans have access to a more free press than Americans do? It seems more plausible the ranking is bogus.


You picked the wrong country. I'm from the Netherlands and it's not in a dire state.

It has newspapers across the spectrum. Volkskrant and Parool are left-wing, AD is centrist, Telegraaf is center-right. To name a few. This reflects our political system which is a distribution rather than a binary system.

In addition, there's state-owned news that reports very factually, with little to no bias in any direction.

We also have excellent deep journalism, my favorite being Follow The Money: https://www.ftm.nl/

EU edition: https://www.ftm.eu/articles

...the type of journalism the entire world needs.

The Netherlands has no hard-right or alt-right newspapers or TV channels. Not because it's not allowed, we just don't have the equivalent of Fox.

In my view, this is a blessing. It's not because I'm left wing. I'm center-right. Alt-right with their misinformation and alternative facts are an attack on information itself. It's not just "another view", it undermines reality itself.

And for the record, we have no hard-left in mainstream media either. Not because it's not allowed, it just doesn't work over here.


Of course "your precious" is always a favorite :)


I don't know somewhere else but, in Italy, buying / getting stolen stuff from somebody else is a specific kind of crime as well. You need to give a solid explanation why you have a stolen good.


Similar, in the US "knowingly" receiving stolen property is a crime.


Is it only me that, when I open Inkspace, I really cannot get anything done without watching a tutorial or reading docs / blog posts?


Not too bad for me. You likely face the universal problem with more complex software when you don't use them regularly. It's a real skill that requires significant use over time to bed down some lasting neural paths. I have much more difficulty with e.g. Blender, Reaper etc. when every few years I use them. I too have start from tutorials again but I still think they are good tools despite not retaining anything between my rare uses. I bought Affinity, learned to use it but when I returned to it after some time, nothing remained in my head and I had to use inkscape instead.

For inkscape, some of the more sophisticated generative things were "use and forget" for me but they have actually improved to be much more intuitive. The main thing I lose is some of the natural touch that makes it so fast to use. I do love when I use it regularly because it's so quick to pump about svgs at the speed of thought.

Getting really good at a vector tool is such a valuable life skill for explaining all manner of tricky things whether it's for UI mockups, software architecture or graphic design stuff like logos/t-shirt/marketing designs. I live for the "how on earth have you done this?" reaction when I can create a quality diagram while on a call with people. It can really enrich the quality of interactions and reduce cycle time to create designs in real time.

I also use it for all sorts of personal stuff like interior design, DIY, scaffolding etc. I've even submitted official architectural plans I made with it. It's as valuable as a spreadsheet.


Do you have prior experience with other vector editors? For me it's pretty intuitive (save for some papercuts), but that may be due to my lack of experience with other editors.


I like Inkscape very much and use it for all my (usually quite simple) vector drawing needs. From the get go, it was quite intuitive to use - my first vector editor experience was with CorelDRAW 3 in the early 90s.


Same for me, if I want to get something done, I need illustrator (which i don't know well too, but it's way more intuitive)


There's an obscured close button in the top right corner. If you want to skip the welcome dialog just click that.

The second time it appears, you can uncheck "Show this every time" in the lower left corner and then click "New Document".

...or you could click Save on the first dialog and then click " Thanks!". You'll get the same dialog as above when you'd have closed it with the button in the corner.


I think they are implying they can't figure out how to use the program, not complaining about the helpful start screen.


Y'know, I only figured this after reading myself back the next day.

Sorry.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: