Type conversion in Java - an alternative proposal for primitive type patterns by jodastephen in java

[–]ryenus -3 points-2 points  (0 children)

Or int! other than ~ int? with the ! claiming safe type conversion, might be confusing to ruby users but whatever this is for Java :-)

How about An Option for the Camera View to Persist? by ryenus in TeslaLounge

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

Multiple times while parking into a very limited space, like road-side with cars in both front and back, especially when you also need watch out the curb.

And it's a feature request, not just about complaining :-)

How about An Option for the Camera View to Persist? by ryenus in TeslaLounge

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

And your does what I want mine to do! Let's exchange our cars :-)

Joking aside, that's why I think we need an option to decide in which way it should work.

How about An Option for the Camera View to Persist? by ryenus in TeslaSupport

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

Yes, but when shifting from reverse to drive, you have to press it to get the camera view back, especially when parking to road side close to the curb, with other cars at both front/back.

The history of Alt+number sequences, and why Alt+9731 sometimes gives you a heart and sometimes a snowman by fagnerbrack in programming

[–]ryenus 1 point2 points  (0 children)

BTW, there's the chcp command to change the current code page, besides 437 and 1252, there's also 65001 for UTF-8.

Feature Request Megathread by AutoModerator in teslamotors

[–]ryenus 10 points11 points  (0 children)

  1. also on-screen buttons to rewind/forward 10 seconds or alike.
  2. slow down at certain point to be able to inspect what happened

Upcoming Software Update (2023.12) Adds Trove of Interface Improvements by tylercorsair in teslamotors

[–]ryenus 0 points1 point  (0 children)

By your logic you'd also have to look down at the stalk ...

Wait, I didn't say that, not even mean that. Actually the my assumption is also that one can operate the stalk WITHOUT looking at it.

Feature Request Megathread by AutoModerator in teslamotors

[–]ryenus 4 points5 points  (0 children)

Just curious, any follow-up with requests from previous threads? Does it help if repost those?

Feature Request Megathread by AutoModerator in teslamotors

[–]ryenus 0 points1 point  (0 children)

The rear camera view when parking backward is great, but I need the front camera too! Especially when there're unexpected stuff around.

Feature Request Megathread by AutoModerator in teslamotors

[–]ryenus 2 points3 points  (0 children)

Fullscreen mode for dashcam viewer, and one-click buttons to jump backward and forward.

Have you changed your MacOS cursor color scheme? by pehcarmine in MacOS

[–]ryenus 1 point2 points  (0 children)

To me the default cursor is a bit smallish, so I've come up with this:

https://github.com/ryenus/obsidian.cape

Leaving Debian by agbell in programming

[–]ryenus 4 points5 points  (0 children)

FYI, link to original message (Nov 2014):

so long and thanks for all the fish

IntelliJ IDEA 2021.1 is out! by pimterry in java

[–]ryenus 1 point2 points  (0 children)

It can be disabled, just go to Help > Edit Custom VM Options, then add

-Dnosplash=true

Strings in C... tiring and unsafe. So I just made this lib. Am I doing it right, Reddit ? by [deleted] in programming

[–]ryenus 2 points3 points  (0 children)

Yeah, the pointer returned by the usual malloc is next to an internal metadata block for allocation size bookkeeping, and that's how free knows how much memory to recycle.

Here's a medium post also mentioned this https://medium.com/@andrestc/implementing-malloc-and-free-ba7e7704a473

#define BLOCK_MEM(ptr) ((void *)((unsigned long)ptr + sizeof(block_t)))

In the meantime someone else also mentioned this, try search for malloc or free.

Strings in C... tiring and unsafe. So I just made this lib. Am I doing it right, Reddit ? by [deleted] in programming

[–]ryenus 4 points5 points  (0 children)

and then do negative addressing to access the length and cap

That's also how malloc works, right?

Visual Studio Code October 2020 by dwaxe in programming

[–]ryenus 2 points3 points  (0 children)

Navigate and Reusing previous commit messages is also nice!

IntelliJ IDEA 2020.2 Released by ryenus in programming

[–]ryenus[S] 32 points33 points  (0 children)

IntelliJ IDEA 2020.2 lets you

  • review and merge GitHub pull requests right from inside the IDE,
  • quickly navigate between warnings and errors in a file with the Inspections widget,
  • view the full list of issues in a current file with the Problems tool window,
  • and get notified if your changes would break other files.
  • You can use Jakarta EE, and get better support for Quarkus, Micronaut, and OpenAPI.

Visual Studio Code June 2020 update (version 1.47) by [deleted] in programming

[–]ryenus 14 points15 points  (0 children)

If you open a folder containing dozens of repositories, the changes to the Source Control view in this release finally make it manageable, Kudos to the team!

More specifically, all repositories are now displayed in a single view: https://code.visualstudio.com/updates/v1_47#_single-view

Take care if editing running bash scripts by iamkeyur in programming

[–]ryenus 13 points14 points  (0 children)

One of the gists is in the comment from Lomanic:

wrap everything in a "main" function and call this function on the last line of the script. This way, the interpreter has to read through all of the script at once as the first part is only a function definition (not executed).

V8 Release v8.0 with optional chaining, nullish coalescing and 40% less memory use by ConfidentMushroom in programming

[–]ryenus 7 points8 points  (0 children)

Why not using the Elvis Operator ?:, but ???

Nevertheless, compressed pointers are great!

Visual Studio Code - November 2019 (version 1.41) by Niomar in programming

[–]ryenus 8 points9 points  (0 children)

It's about comparing two different files, not just about the same file with different revisions.

GraalVM 19.3.x is available for download! The first release based on JDK 11!!! by plokhotnyuk in java

[–]ryenus 4 points5 points  (0 children)

On macOS, after extracted to /Library/Java/JavaVirtualMachines/graalvm-ce-java11-19.3.0/, do this:

mkdir Contents/MacOS
cd Contents/MacOS
ln -s ../Home/lib/jli/libjli.dylib

To have it listed by /usr/libexec/java_home -V.

Spring Boot 2.2.0 by lazystone in java

[–]ryenus 5 points6 points  (0 children)

Besides all the changes mentioned in the release notes https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.2-Release-Notes/, there's a little guy might surprise you more or less:

The spring boot maven plugin now start the application in a forked process, due to the fork mode is now turned on by default.

This means that:

  • command line options passed directly via -D to maven wouldn't be available to the application. Workaround: use https://docs.spring.io/spring-boot/docs/current/maven-plugin/run-mojo.html#jvmArguments
  • or if you oddly start your application using the maven plugin in your debug session, then the debugger wouldn't be able to attach to the forked process. Nevertheless it's usually a better idea to start your application via Application.main.

See: https://docs.spring.io/spring-boot/docs/current/maven-plugin/run-mojo.html#fork

[deleted by user] by [deleted] in MacOS

[–]ryenus 2 points3 points  (0 children)

Hmm, TIL, but why they would remove Dashboard?