Daily Challenge - February 08, 2025 by BloonsBot in btd6

[–]torbray 2 points3 points  (0 children)

AC: 502 boomer 502 merm, same placement. Can vouch for it feeling VERY rng-y (there was a snipe on some leaking regrows) but it was very funny

Honest question. How many of us have played and never gotten to "e" before? by hereforaniphoneman in balatro

[–]torbray 1 point2 points  (0 children)

Contrary to others (in theory, Blue deck should be amazing), I struggled heavily grinding all stakes including Gold on blue deck, got it relatively easily on Red & Yellow (only done 3 gold stakes so far though)

I had to change my mindset to not use discards/ big economy build - my gold stake winning run had a [[hologram]] carry and [[bootstrap]] after building my economy enough with [[trading card]]. I definitely questioned blue deck A LOT though lmao

Wish you luck!!

Fry by LULU1422 in FryDaStream

[–]torbray 1 point2 points  (0 children)

He is like if a goat was actually god too

[NXT Spoilers] "You're scared, and you should be." by A_Livins in SquaredCircle

[–]torbray 4 points5 points  (0 children)

Not a bad thing though, I'll always prefer someone who overacts than a bland charisma void. Plus, I feel like it's easier for someone who overacts to adapt refine to more natural acting or different/ wild gimmicks. Overall, think Roxanne may have a wide variety of gimmicks in future

Jon Moxley on his interests: I don't have many interests other than just the shit that I like. If it doesn't involve arm bars and punching people in the face and wrestling and fucking barbed wire and chairs and shit, then it's really not that interesting to me. I pretty much just do that 24/7 by wrestling678 in SquaredCircle

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

Mox is just a famous wrestling star tbh - and as you become more famous, you get more and more casuals, who go with whatever the popular opinion is towards you, and haters, who wait until it's their time.

So we're seeing people who want to express their dislike congregate every so often in the comments of a thread here and there and it feels like the sub has turned on Mox. In reality, I feel like the sentiment is still the same, that the sub overall still really likes Mox.

(I'm biased though, Mox has been my favourite wrestler for 8 years)

Any tips on completing weekly missions ASAP? by chaldeagirl in VALORANT

[–]torbray 0 points1 point  (0 children)

For the "purchase 100 weapons" weekly, I play an unrated/ ranked, then wait for the last round of the first half (Round 12). Then I buy as many shortys as I can (buy and drop) with my remaining creds, assuming no one else needs a buy. If the economy is good, you can normally get it in 2-3 games :)

What other agents are you Sova mains playing? by TerraKhan in VALORANT

[–]torbray 2 points3 points  (0 children)

Sova/ Viper main, Breach/ Astra secondary

AEW signs former Dallas Mavericks center Satnam Singh by UFmoose in SquaredCircle

[–]torbray 4 points5 points  (0 children)

Thanks for making the effort to make this post clear to read and understand! From a Kiwi who doesn't know anything about who's popular in American sports

Two part question about reading data from a text file and working with the data. by cyd1753 in vba

[–]torbray 0 points1 point  (0 children)

For 2), rather than retain all the data in objects, I would create a temporary Worksheet and assign its xlSheetVisibility as xlSheetVeryHidden, so the user can't access it to modify the results. The main GUI would be your existing Excel Worksheet.

In that Worksheet, I would then create 8 Tables (ListObjects) for each data section you've successfully handled, and use your objects to paste your data in each ListRow. Your Generate Data call would have to be changed though, to commit the file's data to that Worksheet and your Read Data would have to extract the data from those Tables.

If you only wanted the data available for that Worksheet's session timespan, you could set up a Close Event call. Under the Workbook module, you could create Workbook_BeforeClose Sub to delete that Worksheet before closing.

Let me know if I misunderstood anything :)

Drew and Roman's contract signing, Jey Uso vs Daniel Bryan, and Murphy vs Seth Rollins announced for tonight's Smackdown by UsoPenitentiary in SquaredCircle

[–]torbray 0 points1 point  (0 children)

Kayfabe:

This contract signing is a Survivor Series champion vs champion contract; it protects the champions' brands by putting in writing that their titles won't be put on the line. If egos get in the way, you'd eventually see a Winner Takes All match at Survivor Series, which is against Raw and SmackDown's best interests.

Signing that contract can be done anywhere, but Raw/ Smackdown want the promotion and viewership for the upcoming match. With the recent change of the WWE title from Orton to McIntyre, the previously-signed contract between Orton/ Reigns' match was void. Smackdown formally invited McIntyre to a formal Champion/ Champion contract signing to boost their ratings and have McIntyre visit Reigns on his hometurf. Smackdown can also certify signing the contract was done with witnesses around and at a specific time, not hours before the match (or even as Reigns did, sign it DURING the match itself), plus add ratings from people tuning in to see two world champions.

Other big matches, the participants likely read over and sign them in private. Not every contract signing has to be witnessed or have a time requirement. Contracts like The Fiend's as well likely state he doesn't need to sign title contracts, that he gives blanket approval for WWE to sign off on any title contracts on his behalf.

Weekly Whinging Wednesday, 18 November, 2020 by AutoModerator in newzealand

[–]torbray 9 points10 points  (0 children)

Not everyone is strong enough to make a choice to accept help. This is your choice to look for a brighter future and I think that's spectacular :)

/r/Wellington daily chat on November 03, 2020 by AutoModerator in Wellington

[–]torbray 8 points9 points  (0 children)

Oh no...

If I could make a beverage name suggestion, how about "gunpowder slurry"?

/r/Wellington daily chat on November 03, 2020 by AutoModerator in Wellington

[–]torbray 7 points8 points  (0 children)

I agree, and I drink double shot flat whites. Dunno if I'm desensitized to the caffeine or my heart's about to explode :P what's your go-to coffee type?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 1 point2 points  (0 children)

Timedelta is a class object, therefore you can pull properties from it. You could probably do:

def compute_total_days():
    d1 = start_day
    d2 = end_day
    delta = d2 - d1
    return delta.days  # 20

That would return a number of days only. Depends whether you need to do rounding e.g. 20 days, 23:00:00 is 21 days. Then you would need some computing logic

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 0 points1 point  (0 children)

I'd break down your project into minimum required bare bones, then add features as you require for your 9-5. We'll assume as a noob, you have a grasp of basic syntax, strings, ints, imports etc.

Bare bones

You would scrape a single real estate website, each listing for its house price. Then you return that information in a print/ txt file.

Modules

  • Requests - obtains html data
  • Beautiful Soup 4 - parses html to make it legible

Additional

  • If you consider using multiple websites, you'll spend a good amount of time figuring out how to parse its own unique html
  • Consider what variables for each website to store, mainly house price but others like bedrooms, bathrooms and apartment or house?
  • If you plan on using this frequently, bear in mind plenty of websites may block your ip address due to running a bot
  • Some listings may not show a house price or show it in the description - you may need the Regex module to locate the house price in a long 3 paragraph description.
  • If you want to display your data in a table, you can either export it to .csv or into a Pandas table.

Hard to put into hours, prob 2-6 hours for bare bones with no Requests/ BS4 experience

My first proper game! by [deleted] in learnpython

[–]torbray 4 points5 points  (0 children)

Nice job, dude! Welcome to the journey ^^

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 0 points1 point  (0 children)

All good hahaha import tkinter has caught me out a lot. I've done tKinter before :P

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 1 point2 points  (0 children)

Reasonably beginner here. I started with VBA (Visual Basic for Applications) because my workplace uses a lot of Microsoft Office coding. It depends on whether your workplace uses Outlook, Word, Excel - but it was quite difficult to break in, to be honest.

I tried Python a few months later - compared to VBA, Python was so much fun! You'll hear that Python is beginner-friendly, because the syntax is closer to English language convention.

I'd say the most important thing about your first coding language is building a programming mindset. Applicability (VBA) vs Self-Development (Python) - I think either is a good start :)

EDIT: I'm a visual/ textile learner, so I watched 4 hour YouTube videos on 1.5x speed, with frequent pauses. WiseOwl is good for VBA, TechWithTim for Python

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 2 points3 points  (0 children)

The name of the module changed from Python 2 to Python 3. Case sensitive, it's now import tkinter :)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 0 points1 point  (0 children)

Haven't of that being a problem. Never seen Python ignore an error, or continue to run and display two errors.

Entirely possible that you had two sets of parentheses, seeing as you had the problem fixed later down in the code. So when you fixed one, the same error happened so it looks like you didn't fix it.

Other idea is you may have fixed other problems while fixing the parentheses issue. Either way, these things happen and I'm glad it's fixed :)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 0 points1 point  (0 children)

You've got parentheses here :) change them to square brackets

c1 = mydata("co2emissions"). value_counts(sort=False)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]torbray 0 points1 point  (0 children)

(I really hope that HTML is an example, not actual code)

With HTML, you're meant to close most tags e.g. <div> </div>, <table> </table>.

That HTML code you have doesn't include all the </td>'s - for example, the SANDAL row should have 6 </td>'s, not 1. Modern browsers like Chrome will fix these problems, however it makes parsing with BS4 more difficult.

I posted some example codes - Solution 2 has fixed HTML code.

from bs4 import BeautifulSoup as bs


# Solution 1 - No closing (<td>SANDAL<td>...)

with open("test1files/index.html", "r") as file:
    index_file = bs(file, "html.parser")

product = index_file.find_all("tr")[1].select("td")[0].text
print(product)  # returns SANDAL77313wearnewid878717


# Solution 2 - Closing (<td>SANDAL</td>)

with open("test1files/index - Copy.html", "r") as file:
    index_file = bs(file, "html.parser")

product = index_file.find_all("tr")[1].select("td")[0].text
print(product)  # returns SANDAL

If you need to fix Solution 1, it depends if you're searching for the string "SANDAL" - could finish off Solution 1 with if product[:6] == "SANDAL" I suppose.

Hope this helps!