raldone01

joined 1 year ago
[–] raldone01 1 points 1 day ago

Well now that causes breakage two dependencies down the line. Good luck with that. πŸ˜…

[–] raldone01 3 points 2 days ago

And have fun with regional licensing. Subittles only in German sorry. Audi only in German sorry. This title is only available in USA. This title is only available until midnight.

[–] raldone01 4 points 2 days ago* (last edited 2 days ago)

This should be a build step. Preprocess before the preprocessor. All line number will be off depending on the comments. πŸ˜‚

Unless...

C with source maps!!! Thank js for the cool solution.

[–] raldone01 8 points 2 days ago* (last edited 2 days ago)

On a serious note:

This feature is actually very useful. Libraries can use it create neat error messages. It is also needed when logging information to a file.

You should however never ever parse the source code and react to it differently.

[–] raldone01 1 points 2 days ago

Nice I would have tried it with a build script but this works too. Good job!!!!

[–] raldone01 1 points 2 days ago (2 children)

Love this. I am toying with an idea of how to accomplish this in rust.

[–] raldone01 1 points 2 days ago* (last edited 2 days ago) (1 children)

You know that this is acutally working right??? 😊

80
submitted 2 days ago* (last edited 2 days ago) by raldone01 to c/[email protected]
 

Python allows programmers to pass additional arguments to functions via comments. Now armed with this knowledge head out and spread it to all code bases.

Feel free to use the code I wrote in your projects.

Link to the source code: https://github.com/raldone01/python_lessons_py/blob/main/lesson_0_comments.ipynb

Image transcription:

from lib import add

# Go ahead and change the comments.
# See how python uses them as arguments.

result = add()  # 1 2
print(result)
result = add()  # 3 4
print(result)
result = add()  # 3 4 5 20
print(result)

Output:

3
7
32
[–] raldone01 6 points 1 week ago* (last edited 1 week ago) (2 children)

Good luck speaking when they are clogged up. :/

Maybe the nostrils should be redesigned too.

[–] raldone01 17 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

I don't understand why all these chrome derivatives and firefox don't just band together and extend manifest v3 with some vendored standardised extension that addresses the limitations.

Browsers do that for CSS and JavaScript features already. An extension could just check if the browser supports the "unlimited filters" option and use it if its available.

I have never researched it but heard that the permissions of manifest v3 are much better for privacy.

I am in favor of removing manifest v2 if the vendored extension becomes a reality.

Browsers already have too much complexity, lines of code and feature creep.

[–] raldone01 20 points 2 weeks ago (1 children)
[–] raldone01 3 points 1 month ago

You should hide your nginx version.

 

I have not been able to correlate it to any event in steam. I watched the volume mixer to find out that it was steam. I tried to turn off all notifications but obviously I have missed something. There is no visual cue just this sound in the background.

I appreciate any hints.

13
submitted 7 months ago* (last edited 7 months ago) by raldone01 to c/selfhosted
 

I have a static ip (lets say 142.251.208.110).

I own the domain: website.tld

My registrar is godaddy.

If I want to change my nameserver godaddy won't allow me to enter a static ip. It wants a hostname. I observed that many use ns1.website.tld and ns2.website.tld.

I don't understand how this can work because ns1.website.tld would be served by my dns server which is not yet known by others.

Do I need a second domain like domains.tld where I use the registrars dns server for serving ns1.domains.tld which I can then use as the nameserver for website.tld?

I would like to avoid the registrars nameserver and avoid getting a second domain just for dns.

Thank you for your input.

 

I have two machines running docker. A (powerful) and B (tiny vps).

All my services are hosted at home on machine A. All dns records point to A. I want to point them to B and implement split horizon dns in my local network to still directly access A. Ideally A is no longer reachable from outside without going over B.

How can I forward requests on machine B to A over a tunnel like wireguard without loosing the source ip addresses?

I tried to get this working by creating two wireguard containers. I think I only need iptable rules on the WG container A but I am not sure. I am a bit confused about the iptable rules needed to get wireguard to properly forward the request through the tunnel.

What are your solutions for such a setup? Is there a better way to do this? I would also be glad for some keywords/existing solutions.

Additional info:

  • Ideally I would like to not leave docker.
  • Split horizon dns is no problem.
  • I have a static ipv6 and ipv4 on both machines.
  • I also have spare ipv6 subnets that I can use for intermediate routing.
  • I would like to avoid cloudflare.
view more: next β€Ί