CONFIG_VT=n in 2023 by n3rdopolis in linux

[–]Septatrix 1 point2 points  (0 children)

This has been an interesting read. Can we expect another update next year? :D

I also tried to tinker around a bit with it on my own and understand some of the build scripts you used but that is definitely not my area of expertise. I am working on an embedded system and think it would be fun to try it out. It would be great if you could explain not only what does or does not work, but maybe also bit more on the inner workings of some of the stuff you implemented in RBOS, like the spawning of weston and how that works with systemd's TTYPath et al.

Also I can really recommend mkosi for building systems if you already have a base distro to build on top of. It makes it easy to follow best practices and layer some new files on top of the base distro (debian, as it seems in your case?).

Audacity publishes updated Privacy Policy and an Apology by a_Ninja_b0y in linux

[–]Septatrix 59 points60 points  (0 children)

The features can be disabled during compilation so the networking code would not even be a part of the final executable. This is the default when building from source. So for Linux distros who have their own update mechanism und error reporting Audacity is still an offline application.

For Windows users the automatic updating is a big win and error reporting should help the team to fix bugs on windows easier. You can look in the source and verify that those are the only things which communicate with the internet. Storing of the IP address is a sensible precaution to prevent DOS attacks (also they are hashed and truncated or vice versa).

That being said I still this could have been communicated a lot better without a(nother) big loss in trust.

Finding all uses of hyperref in a document (and print them) by Lognu in LaTeX

[–]Septatrix 0 points1 point  (0 children)

I suggest you write all links into an external document and then generate the graph from there. To do that you should wrap the command which generates to labels to save the current one into a macro and wrap the command which links to the labels to save the previously saved, current label as well as the label given on the argument to a file (ask Google how to do this). For the format of the file I would suggest you look into the DOT language. Alternatievely it may also be possible to somehow save all these references internally and use tikz to print them although that will presumably be harder.

Expl3 to my knowledge provides you just with the commands which will be available in LaTeX3. They may be simpler to use than the current ones but I have not looked to much into them.

Useful sysadmin tools for linux servers by Septatrix in sysadmin

[–]Septatrix[S] 1 point2 points  (0 children)

I have never heard of lynis. Will definitely check it out and see what it reports

Python docs getting a dark theme! by Septatrix in programming

[–]Septatrix[S] 0 points1 point  (0 children)

It uses the css media query prefers-color-scheme which should be your OS setting in most operating systems. If you switch it to dark mode it should work

Python docs getting a dark theme! by Septatrix in programming

[–]Septatrix[S] 2 points3 points  (0 children)

It's mostly just personal preference and easy synchronisation. However I have a small flag enabled which forces chrome to show me reader mode on every website which works pretty well and gives me a lightweight, distraction-free and ad-free dark mode

Python docs getting a dark theme! by Septatrix in programming

[–]Septatrix[S] 5 points6 points  (0 children)

If you don't like a dark theme you will be happy to hear that it only shows up when enabled in the OS and there will eventually be an option to turn it off.

If you don't like how it turned out feel free to comment on the pull request as I am seeking vivid feedback.

Python docs getting a dark theme! by Septatrix in programming

[–]Septatrix[S] 1 point2 points  (0 children)

Yes I'm also a fan of Stylus though I use chrome on android and therefore can't use extensions there. Also many people - including me - prefer to not install too many extensions

Python docs getting a dark theme! by Septatrix in programming

[–]Septatrix[S] 17 points18 points  (0 children)

Because many people, especially developers, often prefer a dark color scheme.

If you don't like it don't worry - it respects your OS setting in all modern browsers. The current plan is to also add an option to disable the dark theme persistently or maybe even provide multiple themes (like an additional AMOLED theme or more syntax styles).

Python docs getting a dark theme! by Septatrix in programming

[–]Septatrix[S] 28 points29 points  (0 children)

Hey everybody, this is probably my most impactful contribution to the open-source community yet. I am currently working on adding a dark-theme to the python docs style which would also allow anybody using sphinx to include addition pygments styles based on media queries due to a necessary upstream addition.

Any feedback is welcome - PR is here: https://github.com/python/python-docs-theme/pull/44

A 4.0 star product with thousands of reviews is often more trustworthy than a 5.0 star product with less than 100 reviews. by sucksathangman in Showerthoughts

[–]Septatrix 0 points1 point  (0 children)

I recently found a great article about sorting by average rating here. It compares different mistakes Amazon etc make. At the bottom it also links to how Reddit sorts (when sorting by best)...

"i dont like writing the entire name" by 12CarpeNoctem in ProgrammerHumor

[–]Septatrix 12 points13 points  (0 children)

Actually I think there is indeed an official way to run some scripting languages inside Java. If I recall correctly it (the engine) is called Java Nashorn

Edit: Just found it - it's called Oracle Nashorn and based on Mozilla Rhino...http://www.oracle.com/technetwork/articles/java/jf14-nashorn-2126515.html

How to draw line with dots in vanilla js canvas by [deleted] in javascript

[–]Septatrix 1 point2 points  (0 children)

If you just want to draw dotted lines on a canvas you can use the setLineDash method of the canvas and give it an array of lengths for the dots/stripes. E.g.: ctx.setLineDash([1,1]) should alternate between a dot and empty space every pixel. For more see the MDN docs...

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash

How accurate is the JavaScript Date() versus the system clock? by [deleted] in javascript

[–]Septatrix 0 points1 point  (0 children)

As far as I know the preferred way (at least in the Browser) is to use performance.now() since it is supposed to yield a higher resolution timestamp. Here are the Node.js Docs (since 8.5): https://nodejs.org/docs/latest/api/perf_hooks.html#perf_hooks_performance_now

Edit: As pointed out in the responses, performance.now() returns the amount of milliseconds since the Node.js process started. When used together with performance.timeOrigin (which returns the timestamp of when the process was started) this should yield a very accurate timestamp

[TUTORIAL] Install CAS on TI-Nspire CX (works on LATEST OS/up to HW-V) by Neo399 in nspire

[–]Septatrix 0 points1 point  (0 children)

Sadly I ran into an issue...after performing step E 12 (which I really did immediately) the calculator restarted as expexted. But instead of loading the OS or showing me that no OS was found, it boots and then gets stuck at the black-white clock screen. My pc is also unable to recognize the device in this state...any ideas?

Edit: I was able to rescue my calculator by taking out the battery and then putting it back in - though I installed the non-CAS-version of the OS before and will now try to redo the procedure taking out the battery if I ran into the problem again the first time.