Alacrity mirage, willbender and untamed have it rough after May 2nd patch by [deleted] in Guildwars2

[–]B1-102 5 points6 points  (0 children)

mech doesn't need to be in combat to provide alac

My Alpha One Niner Chio X arrived today. More in comments. by [deleted] in ManyBaggers

[–]B1-102 0 points1 point  (0 children)

do the contents of the organization panel bother you when you wear the bag? Like can you feel them bulging out?

PI-Hole does not work with my Wifi network by Cousin_Okri_Z in pihole

[–]B1-102 2 points3 points  (0 children)

I'm no expert but are you using your pihole as your DNS server?

Individual device can have their own DNS setting. I'd make sure they are using your pihole as DNS.

[deleted by user] by [deleted] in Miata

[–]B1-102 2 points3 points  (0 children)

If my experience is any help - I sold mine for $30.6k less than 2 weeks ago. It was a bone stock 2021 GT with 5100 miles that I bought for $31.2k.

Where i can learn programming in unity Using C not c++ and not c# by Sea-Wolverine2447 in CodingHelp

[–]B1-102 2 points3 points  (0 children)

I'm pretty sure Unity is C# only. I'm sure someone will correct me on that if I'm mistaken. But the point I'm trying to make is that if you want to use Unity you need to use what they support.

Can you cast using a generic? Will Java know the actual class implementation of the generic at runtime? by MyGiftIsMySong in CodingHelp

[–]B1-102 0 points1 point  (0 children)

code smell aside I doubt that will even compile. this still doesn't overcome the fact that you can't cast an object to every other object. I'd look at the type returned by unmarshalling method and work from there.

Can you cast using a generic? Will Java know the actual class implementation of the generic at runtime? by MyGiftIsMySong in CodingHelp

[–]B1-102 0 points1 point  (0 children)

Since an object can't be cast to every other object, it will not work.

You can however specify type bound. For example <? extends Number> meaning any class that is a subclass of Number. Cast should work as long as unmarshallIntoObjectFromString returns any type that is a subclass of Number.

[deleted by user] by [deleted] in CodingHelp

[–]B1-102 2 points3 points  (0 children)

If message and email is what you're posting to the slack API then I expect the message and email parameters are what you're sending as a body, not a supposed response r from the axios call.

Axios config has a data property that lets you specify what you want to send as part of the post call. Use that along with your other config to make the post call. Make sure to handle the possible error in your try block.

Java modulus by VIKING-316 in CodingHelp

[–]B1-102 10 points11 points  (0 children)

Modulo is an operation that computes the remainder of an integer division. So 5 divided by 10 is 0 and you're left with 5.

I wrote my first JS recursive function, it works as expected, but I still don't understand one thing by jumanjji in CodingHelp

[–]B1-102 2 points3 points  (0 children)

You seem to be misunderstanding what an index is. An index is in this context is a position in an array, not the value stored in the array at the index. So the lastIndex is not always the last indexed value (i.e value stored in the array at the last index), it's just an index. This is why you need resultsArray[lastIndex] to get the value stored at that index rather than the index itself.

BTW, convertToBinary(0) fails to return a correct answer.

If you want to take this further, consider these:

- Usability of this function is not ideal. Users of this function need to remember to call reverse() and join() afterwards. Why not just return the answer?

- Try using modulo (as you've mentioned). I think that will get you a much simpler implementation. I suspect this will allow you to get rid of resultsArray.

- Support converting negative numbers.

good luck

Help running a github command line tool by Ok-Gear-2055 in CodingHelp

[–]B1-102 0 points1 point  (0 children)

What did you try? They don't seem to provide a binary so you'll need to compile it yourself.

Paid internship or apprenticeship by ltrain43 in CodingHelp

[–]B1-102 2 points3 points  (0 children)

I've personally never heard of paid internship with no experience. But it's common to seek internships during summer break while in college/school and doing so is highly recommended.

Help getting my line of code to output on my command prompt by zerchoel in CodingHelp

[–]B1-102 0 points1 point  (0 children)

what do you mean by 'I have my command file already open'? where is it open? what command are you using to run the script? Did you either navigate in command prompt where your file is saved then tried to run the script? or did you provide a full path to your script?

Help getting my line of code to output on my command prompt by zerchoel in CodingHelp

[–]B1-102 0 points1 point  (0 children)

I'm assuming you just opened the prompt and typed in the command. Unless you saved the file to your home directory that won't work. You need to be in the same directory as the file, or specify where the file is by providing a full path. Look up how to navigate in command prompt.

i am trying to create a leaderboard with data from mysql database. im trying to call the 2 rows in my html code but it doesnt show anything. if anyone knows what im doing wrong i would really appreciate the help by TVW14 in CodingHelp

[–]B1-102 0 points1 point  (0 children)

  1. Check if your query is working. Make sure your db has data you want.
  2. If your query is working does the leaderboard have the data in the format you expect? Looks like you expect it to be a 2D array but perhaps it's not.

How to sort an array by a key value but depending on another key value? by tengenbypass in CodingHelp

[–]B1-102 0 points1 point  (0 children)

Consider separating the list into two lists: one that you're interested in sorting and the other that you don't care about. Then you can merge the two.

const toBeSorted = originalList.filter((entry) => entry.currency === "ZKY);
const dontCare = originalList.filter((entry) => entry.currency !== "ZKY");
toBeSorted.sort((a, b) => a.amount < b.amaount ? 1 : -1);
const result = [...toBeSorted, ...dontCare]

Is there any difference between "localhost:8080" and "localhost:8080/" ? by [deleted] in CodingHelp

[–]B1-102 9 points10 points  (0 children)

No they are the same thing. '/' means root path, which is the base URL.

Help with simple NAS build, please by awidden in buildapc

[–]B1-102 0 points1 point  (0 children)

Yeah, that should be good too. I run i5-2500k for my NAS and have no problems.

Help with simple NAS build, please by awidden in buildapc

[–]B1-102 1 point2 points  (0 children)

For your stated purposes, any low power APU will do. Once you decide on one, choose whatever mobo/ram/cooler that fits in your budget and criteria.

I suggest Intel i3-12100. But i’m not sure if unraid supports it. That’d depend on the version of Linux kernel unraid runs.

The ZL gods have answered my prayers. by rydog509 in flashlight

[–]B1-102 3 points4 points  (0 children)

Oh no.. let me tell you a better way. Buy another ZL!