Dirk

joined 1 year ago
[–] [email protected] 22 points 4 hours ago (2 children)

Itrieditandiamnothappythatthereisnospacebaronthatkeyboard.

[–] [email protected] 4 points 16 hours ago

I'm sorry, but the only spaghetti you get is a 17 levels deep if clause.

[–] [email protected] 7 points 1 day ago

You can't spell "functional programming" without "fun".

[–] [email protected] 17 points 1 day ago (4 children)

Repeat after me: public static void main(String[] args)

[–] [email protected] 30 points 6 days ago (8 children)

Since we’re here

What you guys are referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project. There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux. Thank you for taking your time to cooperate with with me, your friendly GNU+Linux neighbor, Richard Stallman.

[–] [email protected] 46 points 1 week ago (2 children)

Organic Maps is FOSS, supports offline navigation, and has an iOS version. It uses OSM maps you can download as needed.

[–] [email protected] 1 points 1 week ago

My laptop (actually designed and used as mobile device with a 13 inch screen) has one USB-C port which is meant for charging or for attaching a docking station. And I am absolutely happy with it.

[–] [email protected] 5 points 1 week ago
I cnan tyep therehundrde wrods pre minuet, regradlses of USb type!
[–] [email protected] 21 points 2 weeks ago (2 children)

As a non-American I couldn't care less about American politics. So here's a recipe for classic waffles instead:

  • 1 egg
  • 225g self-raising flour
  • 1 tbsp golden caster sugar (optional)
  • 250ml milk
  • 50g butter, melted and cooled
  • ½ tsp vanilla extract (optional)
  • 1 tbsp sunflower or vegetable oil
  • maple syrup and icing sugar, to serve (optional)

Crack the egg into a large bowl, then tip in the flour and a generous pinch of salt. Add the sugar, if using, then gradually whisk in the milk followed by the melted butter until smooth. Whisk in the vanilla, if using. Alternatively, make the batter by blitzing all the ingredients together using a blender or hand blender. Can be made 1-2 hrs ahead and chilled.

Heat a waffle maker following the manufacturer's instructions and brush with a little of the oil. Then ladle in enough batter to just cover the surface. Cook following the manufacturer's instructions (usually 5-6 mins) until the waffles are golden brown and crisp.

Serve immediately or keep warm in a low oven while you make the rest. Drizzle with maple syrup or sprinkle with icing sugar, if you like.

[–] [email protected] 1 points 3 weeks ago (1 children)

Yeah. While I can dockerize those applications, all I checked out lack modern features and concepts/designs. It all feels heavily outdated technology-wise.

[–] [email protected] 2 points 3 weeks ago (4 children)

federated blog

I wonder what federated blog (or publishing platform) isn't stuck in pre-Docker era, though.

 

I'm currently researching the best method for running a static website from Docker.

The site consists of one single HTML file, a bunch of CSS files, and a few JS files. On server-side nothing needs to be preprocessed. The website uses JS to request some JSON files, though. Handling of the files is doing via client-side JS, the server only need to - serve the files.

The website is intended to be used as selfhosted web application and is quite niche so there won't be much load and not many concurrent users.

I boiled it down to the following options:

  1. BusyBox in a selfmade Docker container, manually running httpd or The smallest Docker image ...
  2. php:latest (ignoring the fact, that the built-in webserver is meant for development and not for production)
  3. Nginx serving the files (but this)

For all of the variants I found information online. From the options I found I actually prefer the BusyBox route because it seems the cleanest with the least amount of overhead (I just need to serve the files, the rest is done on the client).

Do you have any other ideas? How do you host static content?

 
 

Currently I’m planning to dockerize some web applications but I didn’t find a reasonably easy way do create the images to be hosted in my repository so I can pull them on my server.

What I currently have is:

  1. A local computer with a directory where the application that I want to dockerize is located
  2. A “docker server” running Portainer without shell/ssh access
  3. A place where I can upload/host the Docker images and where I can pull the images from on the “Docker server”
  4. Basic knowledge on how to write the needed Dockerfile

What I now need is a sane way to build the images WITHOUT setting up a fully featured Docker environment on the local computer.

Ideally something where I can build the images and upload them but without that something “littering Docker-related files all over my system”.

Something like a VM that resets on every start maybe? So … build the image, upload to repository, close the terminal window, and forget that anything ever happened.

What is YOUR solution to create and upload Docker images in a clean and sane way?

 
 
 

Are we still doing ancient memes?

view more: next ›