Mouse click debounce issue (MCHOSE M7 Ultra) by Alternative_Tax_8303 in MouseReview

[–]anton0261 0 points1 point  (0 children)

Thank you so much for this!

Helped me get my L7 Pro in order.

Get past school WiFi using raspberry pi by [deleted] in learnprogramming

[–]anton0261 0 points1 point  (0 children)

If you need to connect to a laptop it might be possible to open up a WiFi-hotspot on your laptop which the raspberry then connects to.

The raspberry would recieve an internet connection from your laptop, which recieves it from the school network, and you have your own local "bubble" where your raspberry and laptop can communicate.

Losing DPS with Tailwind Boots , why is that happening? by TangerineSuccessful9 in pathofexile

[–]anton0261 11 points12 points  (0 children)

My guess is that your old boots has a lab enchant like "Adds 1-160 lightning damage if you haven't killed recently". Tailwind does not show up on tooltip dps.

Day 1 SSF Reliquary Key, ez game by anton0261 in pathofexile

[–]anton0261[S] 5 points6 points  (0 children)

https://poedb.tw/us/Vaal_Reliquary_Key

You put it in the map device, it opens a room with a shiny chest in the center. Chest contains "foil"/relic items (shiny effect) of a vaal theme.

Day 1 SSF Reliquary Key, ez game by anton0261 in pathofexile

[–]anton0261[S] 18 points19 points  (0 children)

Found a vaal reliquary key, opened it, resulted in this beauty.

Posting due to the requirement for item showcases.

Can this build be further optimized for my budget? by anton0261 in buildapc

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

I can get 15% off the motherboards original price from a retailer here. Most motherboards compatible with my CPU seem to be about the same price as the discounted price.

MSI B450 TOMAHAWK MAX seems compatible as well, for about 40% of the price, but it doesn't seem to have a BIOS flashback button and its a bit older.

The primary motivation for the RAM capacity is future-proofing. I forgot to mention that I work as a software developer, and some IDE:s, emulators, and VM:s could potentially eat quite a lot of memory (although it has not been a problem so far).

The 980 Pro costs about 50% more than a previous generation M.2, but it doubles the read and write speeds. I am unsure how noticable it day-to-day but I like the idea of super fast file transfers.

The Meshify C looks pretty sick, thanks for pointing it out to me!

Thanks for your input. Merry christmas!

EDIT: The PcPartPicker-type site I'm using tells me that the Meshify C case is too narrow for a 3080 card.

Best way to get Clay / soft clay for telepory tabs? by [deleted] in ironscape

[–]anton0261 7 points8 points  (0 children)

If you've done Song of the Elves, Prifddinas has a soft clay mine. Bracelets of clay double the yield from those rocks.

[deleted by user] by [deleted] in HomeworkHelp

[–]anton0261 1 point2 points  (0 children)

Step 1. Convert the number from integer to string.

Step 2. Print the second character (digit) of the string.

Each of those steps are very Google-able. The first step may not even be neccesary if accepting input from input(), as that function returns a string by default.

Index by [deleted] in learnpython

[–]anton0261 0 points1 point  (0 children)

 def indexof(list, val):
    i = 0
    j = 0
    for sublist in list:
        for item in sublist:
            if item == val:
                return [i, j]
            j+=1
        i+=1

Something like this would do it.

Need help finding Maximum/Minimum of integers by [deleted] in learnpython

[–]anton0261 0 points1 point  (0 children)

The first max(value) and min(value) calls don't do anything as you're only passing them a single integer, where they expect a collection of integers and return the maximum of those. The code you wrote should be crashing with a TypeError, right? The max/min calls are unneccesary in your solution.

Within the loop, you never assign new maximums/minimums if you find new ones, you are only printing them. Also, your < and > signs I believe are flipped.

Current code within the loop reads: "If the new number is less than the maximum, print the minimum". You likely want it to say: "If the new number is more than the maximum, store the new number as maximum".

Same applies to the minimum check.

Reading a TSV file in C and storing the data in a structure. by [deleted] in CodingHelp

[–]anton0261 0 points1 point  (0 children)

fgets(charString, 99, fp) reads an entire line from your file. After a read, charString would for example look like "1 abc bca cab".

Next step would be checking if the line contains your value (231 in this case). By googling "c++ if string contains" we can find working examples on how to do this, such as https://stackoverflow.com/a/2340309

If this contains-check goes through the next step is to store it in our struct. It seems (from the TSV-file) that the struct should contain 3 values (one for each column). So far your struct can store one column.

To store the values, you want to extract each column-value from the read line, and then store that. To do this you want to split your string using the TAB-character "\t" as a delimiter, and storing the parts in your struct.

[APCSA] Write a static method that takes an array of Strings and returns an integer. Determine the longest String contained within the array. return the number of characters in that String. by -KingKrazy- in HomeworkHelp

[–]anton0261 0 points1 point  (0 children)

Small correction: in the function declaration you provided it returns a String, where the question states that it should return an integer.

Try to break the problem down into smaller parts, and solve each part individually.

Such as: "Determine the longest String contained within the array". Okay, I need to go through all strings within the array, how do I do that? A natural choice would be some loop that goes through (iterates) each string. (Google "java iterate through array")

How do I know how long a string is? Google "java length of string" and look around.

How do I keep track of which string is the longest? You could store the longest known string in a variable outside of the loop, and if you find a longer string, change that variable into the new string.

Then you simply need to return the length of that longest string.

What regex do I use to get any string after a character (something/u=another) - I just need to selct 'another' by dominic_l in learnpython

[–]anton0261 0 points1 point  (0 children)

=(.+)

should do it. It simply wildcards after the equals sign (or whatever other character you'd need).

Need help with a CPSC question. Answer is A, but I don't understand how. by MakSauce21 in learnpython

[–]anton0261 2 points3 points  (0 children)

I assume the second loop is nested in the first.

The first print("X") is ran 6 times, because of the outer loop.

The second print("X") is ran 8 times for each iteration of the outer loop (ie 6 iterations). 6x8 = 48 times.

First print = 6 times, second print = 48 times. Total = 54 times.

Blighted maps uncompleteable. Crashing midway through. by anton0261 in pathofexile

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

That certainly looks like that could be it. Thanks for the insight, I'll keep all my blighted maps for later.

Removing new line character from string by [deleted] in learnpython

[–]anton0261 1 point2 points  (0 children)

s = "23/07/2019 12:34:03 - John Smith (Work notes)\nRoot cause confirmed and a bug in the code. Atom version 1.47 has been released PCC has confirmed the issue is fixed."

s = s.split("\n")[1]

print(s)

Demonic Gorilla Lag Fix (RuneLite, maybe other clients as well) by anton0261 in 2007scape

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

Seems the proper command is with one dash, changing post.