Posts
 
Reputation
Joined
Last Seen
Ranked #5
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
96% Quality Score
Upvotes Received
4K
Posts with Upvotes
3K
Upvoting Members
889
Downvotes Received
120
Posts with Downvotes
114
Downvoting Members
56
735 Commented Posts
~5.29M People Reached
Favorite Tags
java x 13.4K
c++ x 229
image x 191
gui x 165
swing x 133

7,116 Posted Topics

Member Avatar for lewashby

I've used Plex for years with servers on Mac, M1 Mac, Windows, QNAP and Synology; clients on Mac, IOS, iPadOS (including remote access over internet), Apple TV, Chromecast, LG Television. Metadata, subtitles etc all solid. And it's free. What more are you looking for?

Member Avatar for Vince_6
2
272
Member Avatar for Mr.M

> Basically these kind of Apps allow you to access internet even if you don't have data at all I believe you are mistaken about this. VPNs and tunnels still need to transmit your bytes over your internet connection. What makes you think otherwise?

Member Avatar for Mr.M
-2
925
Member Avatar for Dani
Member Avatar for vegaseat

My favourite Zen proverb: "the grandfather dies, the father dies, the son dies" Sounds very depressing at first sight, but when you think about it you see that it is perfect - anything else is a lot worse.

Member Avatar for Reverend Jim
15
13K
Member Avatar for TaraRiddle
Member Avatar for WendyDolan
0
1K
Member Avatar for Reverend Jim

I watch almost everything via a recording, so I can always skip the ads, but I still have to put with "coming after the break " followed by a preview of the best bits to come, and then after the break a complete resume of the segment that just finished. …

Member Avatar for Reverend Jim
10
3K
Member Avatar for SoniyaJonas

I used https://apps.apple.com/us/app/photos-duplicate-cleaner/id592704001?mt=12 Worked well for me.

Member Avatar for simhakidsden
4
440
Member Avatar for samaru
Member Avatar for techlifelk

It looks like your files are in the wrong place. As used in your code, getResource will look for the files in same folder (or package if you are runnng from a jar) that the current class was loaded from. I don't see any class files in that directory. It …

Member Avatar for Dani
0
33K
Member Avatar for kukuruku

Yes. Just make sure that the new Object is has all its variables in a decent state regardless of which conditional paths are executed.

Member Avatar for Washington AM
0
9K
Member Avatar for Apoorva_K
Member Avatar for rproffitt
Member Avatar for Reverend Jim
3
264
Member Avatar for blud

We may have had our disagreements in the past, but this is one thing I wouldn’t wish on my worst enemy. With all my heart I wish you the strength to endure what must be endured. And, who knows, modern medicine is improving exponentially. There’s always hope. James

Member Avatar for SCBWV
2
178
Member Avatar for abhishek_s_n

TCP. UDP messages are sent, but there is no check or guarantee whether they arrive or not. Also if you send multiple UDP packets there's no guarantee that they will arrive in the same order as they were sent.

Member Avatar for Sofiia
0
1K
Member Avatar for Juniormi_01

Don’t know if this helps but… If your compiler has `__STDC_NO_VLA__` = 1 then it doesn’t support variable length arrays (C++ 11)

Member Avatar for Gulshan_6
0
338
Member Avatar for Mindmade

> What are the 2 main types of software? Software with known bugs, and software with bugs we don’t know about.

Member Avatar for Reverend Jim
-1
447
Member Avatar for epsilonb

Just FYI the “standard” way to code this (saving duplicated reads and tests) is simply while ((String line = br.readLine()) != null) { // process line }

Member Avatar for JamesCherrill
0
436
Member Avatar for richards125
Member Avatar for Akira350lth
-2
20
Member Avatar for darwin.scribe

I’m no Python expert, but my understanding is that __del__ is called when and if the object is deleted by the garbage collecter. This may be some time after the last reference is released by obj = None, definitely *not* “as soon as you do obj = None”. Maybe the …

Member Avatar for Reverend Jim
0
223
Member Avatar for j_834

Place the database jar somewhere in your CLASSPATH, and`import` the classes you need in the other projects do you can use them directly.

Member Avatar for JamesCherrill
0
65
Member Avatar for Sky_

> How can I get this source code? It's a learning assignment. You get the source code by writing it yourself - that's how you learn. If you are trying to write it, and you're stuck, explain what you have done so far and what's blocking you. Someone will help.

Member Avatar for dwellfox
0
156
Member Avatar for Sam_417
Member Avatar for JamesCherrill
0
26
Member Avatar for Saboor880

Some countries including France where I live use a . between thousands and a , before the decimals. Java localisation will automatically default to display numbers in the correct format for the users locale. You can override this by setting an explicit locale in your program if you want to …

Member Avatar for Стас_1
0
90
Member Avatar for Destini_1

I think you mean decrypt. 10 seconds with google tells us that rot13 is simply a ceaser cypher that replaces each letter with the letter 13 after it in the alphabet. Very easy in any programming language.

Member Avatar for hes8
0
117
Member Avatar for fouad_4

Be realistic. Your tutor expects this to take weeks of work for a team of 2. There’s no possibility of doing anything by ‘tomorrow’. Spend your time thinking about plan B.

Member Avatar for JamesCherrill
0
55
Member Avatar for Justin_44

Is it possible that the panel becomes visible before the tile class is fully initialised?

Member Avatar for JamesCherrill
0
85
Member Avatar for dlh6213

I doubt that you will find an off-the-shelf solution, nor will you find an easy one. You need to traverse a tree with nodes for each value x1, x2, x3 etc. Looks like a recursive algorithm. How much do you really want a solution?

Member Avatar for JamesCherrill
0
255
Member Avatar for riccardo.farabi

Just out of curiosity, what are you modelling that needs an accuracy like 1 part in 10^20?

Member Avatar for riccardo.farabi
0
170
Member Avatar for sachitha_1
Re: java

You write a Java program as specified in the assignment. Have you even tried to start writing?

Member Avatar for JamesCherrill
0
319
Member Avatar for cyrennex

Ok. You have started, so that’s good. How far did you get and what’s stopping you from progressing further?

Member Avatar for JamesCherrill
0
99
Member Avatar for ___150

> It's not good practice to short circuit the page by calling exit; in the middle of an if-else block. So you call a separate method that calls exit for you? All you have done is make the code more obscure by hiding the exit. try/catch would be much clearer.

Member Avatar for Reverend Jim
0
153
Member Avatar for Gerica

Any `true` on the top/right/bottom/left edge is an entry or exit, so you just need to loop round those locations looking for two `true` values

Member Avatar for JamesCherrill
0
18
Member Avatar for Saboor880

Dani is right. But to specify a location within your home folder in MacOS use the Tilda, eg ~/Documents/softechdb

Member Avatar for JamesCherrill
0
297
Member Avatar for Curious Gorge

Why those old old versions? I'm not surprised that they're not running on Windows 10. The current Netbeans is version 15, not 9 The current JDK is version 19, not 9. (Although you may prefer version 17 which is the current LTS version). All those are Windows 10 compatible.

Member Avatar for ashramvidamvid
1
3K
Member Avatar for Reverend Jim

Me too. Over 20 devices connected to the wifi, many with no keyboard and tortuous setup procedures (not just printer and tv, but dishwasher, oven, Tesla charger etc). No way am I ever going to change the SSID or password. I know that’s crazy, but it’s not my fault.

Member Avatar for Reverend Jim
3
158
Member Avatar for Brandlogies

> . Colour is not a property of an object. A surface will absorb or reflect light according to the wavelength of the light and the physical properties of the surface, independent of who is looking at it. That is what most of us mean by the “colour” of the …

Member Avatar for JamesCherrill
0
105
Member Avatar for olong tea
Member Avatar for olong tea

The one thing in this that could trip you up is that Python’s [] do not translate to Java’s [] arrays. Java arrays do not support list-like operations such as pop or append. Java’s Deque (double ended queue) class should provide all you need when the code uses more than …

Member Avatar for JamesCherrill
0
317
Member Avatar for asqinanuramni

You can use Regex , but depending on where you are in the learning curve it may be simpler to do it directly… There’s a String method that converts a string to an array of chars The Character class has methods that tell you if a given char is numeric, …

Member Avatar for JamesCherrill
0
146
Member Avatar for Programmer18
Member Avatar for darshanghorpade

Consider the array 1 2 3 4 5 2 6 7 8 3 your algorithm will find the 2 and jump, missing the better solution jumping on 3. you need to continue searching; your first jump solution is just the best so far. Of course there may be multiple jumps …

Member Avatar for Fifth Horseman
0
202
Member Avatar for MagnusTheRed90

What possible reason would any sane person have to encrypt huge swathes of thir hard disk with no way to decrypt them. Or is this intended as a weapon to cause massive harm to someone else's machine?

Member Avatar for adajames
0
138
Member Avatar for Deyns
Member Avatar for adajames
0
150
Member Avatar for extr3mex

Hi. 11 years for me. I used to be very active in the Java forum, but since Dani got rid if it there's been less and less for me to do. Very sad. ;(

Member Avatar for Dani
0
792
Member Avatar for emmamark

The brute force search is a good solution for a small dictionary and a small number of searches, but gets very CPU intensive otherwise. I hit this implementing a Scrabble solver where each move requires checking all the subsets of 7 or more letters against a dictionary of 230k words. …

Member Avatar for toneewa
0
220
Member Avatar for jnbgames.dev

That’s a great contribution. Thanks. I think most of us have written something like that for our private libraries, and as of Java 18 it seems people have noticed. “Text blocks” allow you to code literal multi-line formatted text such as your html in a straightforward way. The jdk now …

Member Avatar for JamesCherrill
1
165
Member Avatar for Dysiah

this.length vs length Dani: you only need this when you want to refer to the instance variable and its name has been hidden by a parameter of the same name. The two-args constructor is the classic example. Every other use of this in your code is redundant, and stylistically very …

Member Avatar for Dani
1
188
Member Avatar for sarah_15

rubber man is right. Start by getting the logic right in your head or on a sheet of paper. Doesn't matter how you write that down. When you have that clear in your own mind, then start coding. You didn't say what is your exact problem, or what help you …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Dani
Member Avatar for Dani

If PHP works like Java then all the initialisation of the parent is completed before the initialisations of the child, so the parent's constructor will be executed before the Childs initialisation, and so you will see "foo". If you print the variable after construction is complete then the Bar instance …

Member Avatar for Dani
1
364

The End.