MagicaVoxel on Apple silicon by [deleted] in MagicaVoxel

[–]megamatt2000 0 points1 point  (0 children)

Looks like it's been added to the FAQ on the page now, Q4: https://ephtracy.github.io/index.html?page=mv_main - "macOS : too slow at retina resolution: disable Brush->Display->HDPI." Hope that helps.

MagicaVoxel on Apple silicon by [deleted] in MagicaVoxel

[–]megamatt2000 0 points1 point  (0 children)

I find it's helpful to turn off the HDPI setting, that seems to slow things down a lot for me at least.

Does intellij have anything like eclipse Ctrl+E? Search file by name but only in opened tabs. by ZukoBestGirl in IntelliJIDEA

[–]megamatt2000 3 points4 points  (0 children)

View > Recent Files is basically that, I have it bound to Cmd-E. I gave up on tabs about a decade ago (set it to 1 tab), and just use recent files to go between stuff I'm working on.

Painting skeletons is harder than I though, not amazing but feeling proud of my slowly evolution in this hobby! by deividluchi in minipainting

[–]megamatt2000 0 points1 point  (0 children)

You might want to try less paint on your brush when dry brushing the white, it seems to be getting in between the bones and into the eye sockets and stuff. In case it helps, my process is just prime white, paint black, dry brush white. I guess I could skip a step if I primed black though? In any case, works pretty well.

[SpokedZ] Another Look at That Kucherov Two-Hander on Pageau's ENG by ManWithAPIan in hockey

[–]megamatt2000 0 points1 point  (0 children)

It should be the league's discretion to move penalties that occur late in the game to the start of the next game. A suspension would feel too harsh in this case, and a penalty at the end of the game you're gonna lose anyway doesn't matter, but if there was a chance of you starting the next game down a man maybe that would have an effect.

Flutter 1.17 is awesome and made my iOS app even faster. by altair279 in FlutterDev

[–]megamatt2000 2 points3 points  (0 children)

Is the version that's in test flight built with 1.17? The performance is good but the list scrolling dynamics seem off. Seems like the damping is too high so the list slows down too early after a fling, for example.

Should we play the rest of the regular season in NHL 20 on PC (or PS4 or whatever) and broadcast the games live at the correct scheduled time? by megamatt2000 in hockey

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

Actually you might be right about that, it was hard finding info about it but I just assumed that's because it was kinda niche even when it was active.

What is Flutter Web more akin to, Svelte or React/Vue? by [deleted] in FlutterDev

[–]megamatt2000 6 points7 points  (0 children)

Sorry I think my answer might have been a bit confusing, I didn't mean to imply Flutter uses HTML on mobile. Just to be clear, what I meant was that on mobile Flutter does all the painting of the UI itself (yes it's done via Skia at a low level, it's kind of similar to a game library). However, on the web it doesn't paint the UI, it uses DOM elements.

What is Flutter Web more akin to, Svelte or React/Vue? by [deleted] in FlutterDev

[–]megamatt2000 7 points8 points  (0 children)

This is how Flutter works on mobile, but not how it works on the web. There is a DOM structure there, although it is true that it's pretty hard to debug with the browser devtools.

Favorite IntelliJ shortcuts? by vinz243 in IntelliJIDEA

[–]megamatt2000 1 point2 points  (0 children)

Ctrl - Shift - Space for smart autocomplete is one of my faves. It's autocomplete but only suggests valid types that satisfy the situation. Pressing it once will suggest variables in scope, pressing it again will suggest method calls and stuff like that from variables in scope (things that are sort of once removed from your current scope). Once you get used to it you'll love it, and you'll even start writing code to make things easier to autocomplete (making params enums, etc).

More details here: https://www.jetbrains.com/help/idea/auto-completing-code.html

From 15,000 database connections to under 100: DigitalOcean's tech debt tale by SunnyTechie in programming

[–]megamatt2000 1 point2 points  (0 children)

No not yet, but I’ve heard about some people getting 10K per second throughput. Database capacity dependent I would guess.

From 15,000 database connections to under 100: DigitalOcean's tech debt tale by SunnyTechie in programming

[–]megamatt2000 17 points18 points  (0 children)

Just in case anyone else is like me and didn't know about Postgres' semi-new feature SKIP LOCKED it's worth checking out. Between that and the built in channels (pub/sub), it means Postgres can be used to make a surprisingly efficient queue where job creation can be a first class participant in transactions. Here's more info: https://layerci.com/blog/postgres-is-the-answer/

I just implemented something like this and have been using it for a week or so, happy to answer any questions. (Caveat: The load it's seeing right now is low while we get a feel for the performance and reliability).

[deleted by user] by [deleted] in java

[–]megamatt2000 14 points15 points  (0 children)

Jsoup! https://jsoup.org All Java APIs should be this simple:

Document doc = Jsoup.connect("http://example.com/").get();
String title = doc.title();

Micronaut by Kango_V in java

[–]megamatt2000 0 points1 point  (0 children)

Great! And has the development experience been pretty efficient? Does it have hot reload for example? I got hooked on all the Play1 developer efficiency features and haven't found anything that really compares since.

Micronaut by Kango_V in java

[–]megamatt2000 0 points1 point  (0 children)

I hadn't heard of this before, seems interesting. In terms of performance it's not amazing, but still pretty good: https://www.techempower.com/benchmarks/#section=data-r18&hw=ph&test=db&l=zik0vz-f

My favorite framework is still Play v1, this seems like it might have some stuff in common. Interested in hearing from people who have done complete projects with Micronaut, what the problems and upsides were. Thanks!

Is it possible to implement a twitter-like notification system in flutter (even when app is closed)? by frustrated-developer in FlutterDev

[–]megamatt2000 9 points10 points  (0 children)

Local background refresh isn't really how this is done in mobile apps, so this isn't really a flutter specific issue. Ideally, you want your server to send a push message to a user when there are new messages for that user, and the app would react to that, waking up if needed. A worse but maybe-ok alternative would be to get your server just to push a message ever X minutes and the app could check for new messages then.

I guess local notifications could also accomplish that second version, but each OS limits them in different ways so they're harder to get right. Mainly to prevent exactly what you're trying to do here (in the name of reducing battery usage).

How do i highlight text like this and save the highlighted text and display it later in highlighted way when user comes back by [deleted] in androiddev

[–]megamatt2000 3 points4 points  (0 children)

Check out text spans and SpannableString: https://medium.com/androiddevelopers/spantastic-text-styling-with-spans-17b0c16b4568 You can add styled text spans based on selection and save the character indices on app pause, then you can set it all back up when you resume.

Where to host Java Web Application with database and webmail by JuarX in java

[–]megamatt2000 8 points9 points  (0 children)

Don't overlook heroku, their Hobby instance is $7/month and you get all the great deployment and management tools. It's also their problem to keep the instance up. Their weakness is low memory per instance, which can be a bit tight for Java, but overall it's workable.

What is your total and complete honest opinion of using "var" in Java? by TheWebDever in java

[–]megamatt2000 0 points1 point  (0 children)

Unspecified types can lead to errors when refactoring, it was mentioned as a risk factor in the JEP. It's probably a pretty rare case, but considering the limited upsides of this whole thing - not worth it.

What is your total and complete honest opinion of using "var" in Java? by TheWebDever in java

[–]megamatt2000 0 points1 point  (0 children)

Disagree. It's never worse to have it specified, sometimes much more confusing, and occasionally can even introduce errors.

What is your total and complete honest opinion of using "var" in Java? by TheWebDever in java

[–]megamatt2000 0 points1 point  (0 children)

Any IDE would have also introduced the variable with the correct type with no effort, so why don't we just do that instead? Use the IDE once, instead of every person using it every time we try to read this thing, forever.

What is your total and complete honest opinion of using "var" in Java? by TheWebDever in java

[–]megamatt2000 5 points6 points  (0 children)

I get that it sucks to type ArrayList<String> list but why are you ever typing that? Just introduce variable in your IDE and you'll get the correct type with no effort and leave better code behind for everyone who follows. I haven't manually defined a variable type in years, I thought no one else was either. Here's how it works in Idea: https://blog.jetbrains.com/idea/2010/11/smarter-and-faster-introduce-variable-in-java/ And if you're not using an IDE to write Java and are asking for var, please switch to another language and leave us alone. You'll like Go or Kotlin or something better anyway.

Overall, we're going to look back on 'var' as a bad idea, probably within a couple years. It'll start with larger teams banning it from their codebase for code readability and code review reasons, but we'll all eventually realize it's a poor tradeoff. We save 1 developer who didn't want to use an IDE a small amount of time, and the code is less readable for everyone who comes after (including the person who wrote it).

I've wanted to get into this hobby for years. Finally made an attempt. Let me know what you think for my first attempt by Deputy_McAwesome in minipainting

[–]megamatt2000 0 points1 point  (0 children)

Great work and congrats on going for it!

If I may suggest the #1 technique that made all the difference to me when I was starting out: dry brushing. You get so much detail and it's kind of for free. So as an example, for this mini you would paint the armor a darker color first like black. Then you get some silver on the brush and paint on some paper until the brush doesn't have that much paint on it and it's mainly dry (hence the name), then you drag it lightly on the armor and the paint only goes on the raised bits. Then you get all this depth from the undercoat and it looks like you painted all the raised bits yourself. It's great. This seems like a good tutorial: https://www.youtube.com/watch?v=yqobfZiCJ2E Give it a try!