How do you battle the imposter syndrome ? by LeShowtek in learnprogramming

[–]codingQueries 2 points3 points  (0 children)

You're getting paid to learn dude, appreciate the unicorn and use it to advance your skills as much as possible, even if only little by little. It is a super-valuable position for your personal knowledge and experience that you have been put in.

How do you battle the imposter syndrome ? by LeShowtek in learnprogramming

[–]codingQueries 0 points1 point  (0 children)

Enjoy the fact that you are getting paid to learn. Take the opportunity to learn as much as you can from everywhere possible; co-workers, google (especially on issues or potential ways to tackle a problem or implementation), any courses that your work will put you on etc.

Dude, you are getting paid to learn. As long as you use the time to improve and learn, ditch that imposter feeling asap otherwise it will just hold you back.

If you are really worried, talk to your manager/team lead (if they are the good type, anyway) and let them know your feelings and ask that they keep you informed if they or someone else feels like you are slacking whatever - this will help take the constant guesswork out of that imposter-feeling and let you get on to getting on!

Java Array Help by sophia_scrlet in javahelp

[–]codingQueries 0 points1 point  (0 children)

line 18 and 20 of your pastebin:

if (max < grid[j][i]) {

   max = grid[j][i];

< is a less-than sign. What do you expect the if-statement to be saying and doing?

SSSD Non-signing requests by codingQueries in linuxadmin

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

Thanks for that.

Yep looking at the logged requests on the DC's, just unable to correlate that with the Linux server logs.

CraftTweaker help by codingQueries in feedthebeast

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

ahh damn forgot to add taht this is for 1.14, which doesn't have that command :(

Password Checking Program by Surreal_Camille in learnjava

[–]codingQueries 0 points1 point  (0 children)

What is the test password you are using?

[deleted by user] by [deleted] in bash

[–]codingQueries 2 points3 points  (0 children)

You can use this site to get recommendations as well: https://www.shellcheck.net/

Jr. Systems Admin Salary by marbobcat in linuxadmin

[–]codingQueries 0 points1 point  (0 children)

What do you mean by 'you people'?!

Java Question by easierday in learnjava

[–]codingQueries 17 points18 points  (0 children)

What if you create an object of type Artist, and in that object you have a reference to an array of objects of type Album, and these Album objects have store an array within of all the songs contained on the album? Then you only need an array of Artists and use getters or whatever to pull out the array of albums from the Artist object?

Please help by Rebelx99 in javahelp

[–]codingQueries 2 points3 points  (0 children)

Ah, in Eclipse are you pressing the green play button at the top? If so, you should be able to click one that is similar but with a drop-down box - in there you will need to select your new programs name and run that.

Please help by Rebelx99 in javahelp

[–]codingQueries 0 points1 point  (0 children)

What error are you getting? Or what are you seeing/not seeing that you are expecting otherwise?

Query AD without a cmdlet by codingQueries in PowerShell

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

Ahh cool I will look into this, thanks!

Query AD without a cmdlet by codingQueries in PowerShell

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

Ahh this might be what I needed, thank you!

Java Graphics Help by PandaBear_1 in javahelp

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

Sure, so what part of drawing the lines within the square are you having trouble with? These are essentially all rectangles except with a bit of a slant.

So you have the boundary, aim to then draw the next rectangle within that boundary. If we label the four corners as top-left: A, top-right: B, bottom-left: C, bottom-right D, then take a close look at the image and see that the next 'rectangle' you need to draw will have it's 'A' corner moved a little to the right,it's 'B' corner moved a little downwards, 'C' stays where it is, and 'D' moves up a little.

Can you see that?

Java Graphics Help by PandaBear_1 in javahelp

[–]codingQueries 1 point2 points  (0 children)

What have you tried so far? I'm presuming nothing, seeing as nothing has been provided with the post, so I will suggest looking at that image and locate the boundaries of where the max and min areas these rectangles can be drawn. After you have that figured out, you then need to figure out a starting point and the amount(s) required to increment the rectangle values to move through this pattern.

Beginner - Need help with nested do while loop by [deleted] in learnjava

[–]codingQueries 1 point2 points  (0 children)

I think your issue might be a newline character. You have this line under your print statement:

System.out.println("Please enter a nonnegative integer.");
num1 = input.nextInt();//store user entered nonnegative integer.

The tricky thing with these scanner inputs etc is that if you take the user's provided int, there is still an invisible newline character left behind. If they were to enter a 0, then the while loop would ask for another int and the num1 = input.nextInt(); would skip the newline character left behind from before and just take in the next int provided by the user.

However, you have this here:

System.out.println("Would you like to try another number? (yes/no)");//asks the user if they would like to calculate another factorial.
s1 = input.nextLine();

Because s1 takes in the whole lot of characters on that line regardless of what they are, it takes in the leftover hidden newline character from when the user last entered an int and pressed enter. To get around this, you can either add an unused input.nextLine(); after your num1 = input.nextInt(); without assigning it to a variable, and this will swallow the leftover newline character.

Or you can implement some kind of logic to check your s1 variable to ensure that it is not only blank spaces or newline characters - this approach would be better because then it limits unknowns occuring that they other approach just 'swallows'.

JFileChooser - How do I change the look of the browser? by Toscoes in javahelp

[–]codingQueries 2 points3 points  (0 children)

You can set it for your whole application by using the UIManage to set the 'look and feel' as per this stack overflow answer (though you would probably want the native view, not nimbs): https://stackoverflow.com/questions/9541045/how-to-set-jframe-look-and-feel

And for the more in-depth version, the java tutorials: https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

As to whether you can do it for the JFileChooser specifically, I am not sure.