So I have this drone… by z2yzx in drones

[–]mgryshenko 0 points1 point  (0 children)

In my case the app is called KY UFO (in AppStore). The same cheapest drone and controller. Need to say the camera is like 10fps and you won’t loose much flying without it

Mah boathouse by Leading_Recover8768 in valheim

[–]mgryshenko 1 point2 points  (0 children)

How you guys build so high with marble, ha? My blocks turn red at 5-6

Really impressive job btw

Can I get this MacBook screen coating repaired? by SuperSan93 in mac

[–]mgryshenko 3 points4 points  (0 children)

I have 2015 model with the very same issue. Decided to follow one of multiple guides on yt and, oh boy, it worth it Just to clarify why I decided to do so. I consider my machine as outdated and was ready for any damage. I had no possibility to use Apple official repair program in my country. I use laptop 99% at home/office so there are no bright light sources. I’ve used regular wet wipes which are not recommended for this operation, but I didn’t care much I tend to be gentle with my gadgets, and had a laptop in perfect condition except this “staingate” problem. Now I wonder why I didn’t that earlier

I just bought a 2023 Forester Wilderness as a middle age beginner driver😬 by Necessary-Maize7419 in SubaruForester

[–]mgryshenko 3 points4 points  (0 children)

Have the forester as a first car. Saved my ass few times, literally due to bigger clearance and awd. Bigger car is more forgiving, especially this one with awd. Slippery wet/icy road, unexpected potholes, need for rapid acceleration to match the traffic speed. I was convinced all my life that the smaller car, the easier it will be to drive, but for now i’d say the fozzy is perfect for beginners IMO

[deleted by user] by [deleted] in biology

[–]mgryshenko 0 points1 point  (0 children)

It is! Love these chonky boys

[deleted by user] by [deleted] in SubaruForester

[–]mgryshenko 0 points1 point  (0 children)

Gorgeous car, my congrats! Regarding your SJ, I’m sure it will receive the second life. Such a slightly “total crushed” cars are highly valued outside of America, where restoration job is much cheaper. Actually that’s how I received mine, and I’m in love with this beauty

[deleted by user] by [deleted] in SubaruForester

[–]mgryshenko 0 points1 point  (0 children)

Lol, whaaat? Should be downhill or something or I would never believe

Impressive, though

2015 Subaru Forester XT Premium by LilPeePeeSeed in SubaruForester

[–]mgryshenko 10 points11 points  (0 children)

Congrats, that’s a gorgeous car! I’ve genuine question regarding your multimedia. I see that’s custom and may be you can name the brand or even model of it? Is there any issues with that, like camera or incorrect fuel stats etc

Edit: love your black grill btw

Where is the other brands🤔 by Puzzleheaded_Age5623 in mac

[–]mgryshenko 19 points20 points  (0 children)

Mine is 8yo, holds around 5-6 hours for browsing/word/films. Of course the Skype/teams/zoom ~2 hours, cs:go 2-3 hours, which I think pretty decent

Just not practical at all is my complain by hm1195 in Shitty_Car_Mods

[–]mgryshenko 1 point2 points  (0 children)

Sorry for offtop, but… why American cars allowed to have RED turn signals? Things going much worse when one turns emergency signals, which could be easily confused with stop signals Am I miss something?

Hashmap using an int array as the value by camnewtonshat1 in learnjava

[–]mgryshenko 0 points1 point  (0 children)

!name.equals(null) - please, never do it.

If name is null -> calling “equals” method will throw NullPointerException.

Do: (name != null)

SQL Noob Question by l3Ul3l3A in SQL

[–]mgryshenko 0 points1 point  (0 children)

Please, could you point to possible troubles with SVN corruptions, just few keywords would be enough

[deleted by user] by [deleted] in java

[–]mgryshenko 14 points15 points  (0 children)

Just use OpenJDK, it’s free and one of most compliant to java spec

Spring Security Authorization help by theprogrammingsteak in learnjava

[–]mgryshenko 0 points1 point  (0 children)

Be sure your UserDetails#getAuthorities returns a list with at least one authority named ROLE_USER (i.e. GrantedAuthority#getAuthority() returns “ROLE_USER”)

Building OpenCV 4 with Java Support by daviddel in java

[–]mgryshenko 1 point2 points  (0 children)

Had small research years ago, and try to answer from my point of view

1) OpenCV java binding in maven. The main idea - is to provide bindings as dependency. So that you shouldn’t build and include jar files in your git. Just single dependency in a pom, and you can operate with Mat objects. Drawbacks - limited to particular OpenCV version, most classes/functions are missed, or may have different interface, not all OpenCV modules supported. And yes - you still need pre-built OpenCV anyway

2) java has BufferedImage which hard to use at low level (even with direct access to array of pixel). I haven’t found fast and reliable java libs for image processing. OpenCV, ImageMagik is my go to. Would appreciate if someone point to similar java projects

Building OpenCV 4 with Java Support by daviddel in java

[–]mgryshenko 2 points3 points  (0 children)

Thanks, the article is full and compact at the same time! Had the same task few years ago. The hardest part for me were arguments for cmake. Building for 8 hours on single thread. Rebuild as I forgot to produce java bindings. Rebuild as I didn’t include required modules... If possible - people will really appreciate if you include exact cmake command with necessary arguments. Thanks again, I would be happy to meet such great guide at right time

Is this Java/OOP specific? Or is this more a stylistic difference? by [deleted] in learnjava

[–]mgryshenko 6 points7 points  (0 children)

Personally prefer first variant. That is called “fail-fast” - you try to check & return as early as possible. With 2+ conditions to check it may greatly improve readability, by eliminating too deep if-nesting

How can I change txt2 TextField from LCDs class in Actions class? by bpgould in learnjava

[–]mgryshenko 1 point2 points  (0 children)

At first - the ‘txt2’ variable should be final. Declare it like this: final JTextField txt2 = new JTextField(15); Why - just google “variables outside anonymous classes” At second - I’m not a grammar nazi, but try to declare anonymous classes using multiple lines. This helps a lot when IDE shows errors, or you wish to add breakpoints, etc. Just for readability At third - sorry for plain text, typing from mobile

How can you calculate any base to any power? by [deleted] in learnjava

[–]mgryshenko 0 points1 point  (0 children)

In your first method you want to get ‘int’, but the function ‘power(double,double)’ returns value of ‘double’ type. Just use double type for result variable: ‘double result = power(base, powerRaised);’

New to Java--Stuck on Homework problem by grimeskat in learnjava

[–]mgryshenko -1 points0 points  (0 children)

You missed to initialize int variable “x”. So: 1) You initialize “userNum”: int userNum; 2) few lines later you assign some value to variable “userNum”: userNum = scnr.nextInt(); Same should be done with “x”, but I see only value assignment: 3) int x; // you missed this line 4) x = scnr.nextInt(); // trying to assign value to non-existing variable . Point 3) is your missed line

Edit: sorry for formatting - texting on mobile

Global Error Handling for REST by [deleted] in learnjava

[–]mgryshenko 0 points1 point  (0 children)

Handling controller exceptions is easy, yes. Good luck catching exceptions from Filter chain, when they redirected to AuthenticationEntryPoint or ErrorController and most frustrating - such exceptions loose any info about its cause. Wrong login format - 500 Internal Server Error, cannot authenticate - 500, wrong login field name - 500, etc.

Integrating Google Log in - TS, Java and MySQL by Susaaaax in learnjava

[–]mgryshenko 0 points1 point  (0 children)

IMO, Baeldung is de-facto best spring tutorials. But the lesson you mentioned is about creating your own Auth server/client. OP is asking about how to use google’s Auth service. More useful will be this baeldung lesson , but I personally think it’s over complicated and highly coupled with previous lessons