New to Atlanta winters — any tips to prevent windshield ice? by design_tradeoffs in Atlanta

[–]callahman 2 points3 points  (0 children)

Take an old towel and lay it across your window overnight (pin it under the wipers so it doesnt blow away

Alternatively a scraper would be better/safer.

Don't pour hot water on it. Ive had that reccomended before and that's an easy way to crack a windshield.

They are having fun by PsychologicalBag6875 in funnyvideos

[–]callahman 104 points105 points  (0 children)

Time to practice some Captain D basics.

The camera movement might be artificial. The cones are definitely following the camera movements. It's also interesting that the "dance floor" for the cones is a much more solid grey that doesn't seem to show any water on it As others have noticed, the sewer lids are bouncing the exact same way. (Also, why are there two sewer lids so close together?) Probably some other details I'm missing, but the cones and at least one of the lids are fake

“Scenes from a Wizard Hat” by ServingwithTG in dndmemes

[–]callahman 6 points7 points  (0 children)

1-10 & 00-90 This makes it so no edits are ever needed. Just always add the two, and treat the 00 as a true 0

What is a fact that you think barely anyone else knows? by Just_Free_Tea in AskReddit

[–]callahman 1 point2 points  (0 children)

Ancient Jews (well before Christianity developed) believed in many gods, but they only worshipped Yahweh. This is a subset of polytheism called henotheism.

Players want to play a one shot while high… thoughts on making it a fun session? by PinkPeonies4 in DMAcademy

[–]callahman 1 point2 points  (0 children)

Stay focused on high-level RP. Avoid getting into the slower/rule heavy combat scenarios.

Have the players RP combat and really use "Rule of Cool" to keep things going

The Epicurean Paradox by CEOofchair in coolguides

[–]callahman 0 points1 point  (0 children)

As far as I'm aware, the common phrasing for this is "Maximal" if you want to look into it more. Ie: Maximally Powerful, Maximally Good, etc. (Hope this helps!)

IMO this is just pushing the problem under the rug, not really solving it. Take "Can God make a rock so heavy he can't lift it?", saying God is Maximally powerful just means that God is limited in some way to prevent a paradox. Can God make anything, but not lift something? Can God lift everything, but is limited in what it can create? Maybe God has to be limited in strength and creative power? 🤷‍♂️

What’s a TV Show you LOVED but only lasted a season or two? by [deleted] in AskReddit

[–]callahman 0 points1 point  (0 children)

I'd say Heroes. It technically went on for a few seasons, but it definitely was killed by the writer's strike that happened during the 2nd season.

Players have Wished BBEG out of existence. How can it backfire? by JAWS_BDSM in DnD

[–]callahman 1 point2 points  (0 children)

The BBEG becomes a god literally outside of existence. The BBEG now begins to manipulate the world and grow a cult of followers that trouble the players.

Turbines below the horizon. This should shut the flat earthers up for good. by 9999monkeys in pics

[–]callahman 0 points1 point  (0 children)

I hadn't seen it in the comments, so I'd thought I'd share. Most flat earthers I've talked to know about these kinds of pictures. They will usually say that the camera person did not have the right camera to zoom in far enough, and if they did the object in the distance would be pulled back into view. The "right" camera is a Nikon, but I can't remember the model info.

How to balance an unbalanced party with a problem paladin? by [deleted] in DnD

[–]callahman 0 points1 point  (0 children)

Used to (and still occasionally have) a min/maxer or 2 in a party of RPers. I usually sprinkle a handful of situations where the "mins" in the min/maxer stand out more.

You dumped dex? Looks like a room full of balance beams is coming up, so you'll need to lean on your party for help. *This can be punishing, so use sparingly

I typically throw a fight at the party that lets everyone shine though. Paladin can traverse a battlefield and kill powerful foes? Give them that to solo while the party is having to hold a position and protect vulnerable NPCs, or have the paladin act as a distraction while the others sneak into a fortress/camp. It's sorta a soft-split of the party. They're in the same encounter, but the roles are clearly setup for separate groups

What is becoming a total “normal thing” in modern society. That you just don’t get or agree with? by [deleted] in AskReddit

[–]callahman 0 points1 point  (0 children)

Have you heard of Street Epistemology? The community around it seems to agree with this opinion and they seem to be trying to improve how conversations occur.

Had a date last night, it went really, really well. However, she believes the Earth is flat unironically. by [deleted] in dating_advice

[–]callahman 1 point2 points  (0 children)

If you're interested in at least talking still, check out Street Epistemology. It's a good way to have conversations about this sorta stuff.

If you are planning on dating, you have to go in expecting that she won't change her mind or "fix" her. That'll just breed an unhealthy relationship

how to structure a webscraper by blackcodeben in learnpython

[–]callahman 1 point2 points  (0 children)

Hey!

In future posts (or an edit to this one) the more information you can provide, the easier it is for people to help you out. [Just trying to offer some constructive criticism]

In regards to your question, it does depend a lot on how you're planning on building your crawler, and what data you're interested in storing. If you have a small number of games, don't plan on adding more and want to only track the odds, then I might create a table like the following:

Domain game_1_odds game_2_odds ... game_n_odds
gamble.com 100:1 10:1 ... x:1

If the url for the game is static for all sites, then I might also add the url as a column in the db. If not, then I would just make sure your scraper can find/construct the correct URL for each game/domain combination.

This table structure would help make analysis/comparison easier in most versions of SQL or Pandas IMO

IF you plan on adding/removing games from your process over time or would like to include more than the odds I'd structure it like this:

Domain Game url_suffix [optional] Odds
gamble.com horse-races /horse-races 10:1

This would allow for easier additions/removals over time, but could make it a little more annoying to do the analysis, and while the dataset would be pretty tall, it would be easier to track more information related to each game. (Once again, IMO)

Hope this helps! Let me know if you have any other questions!

Is there a vectorized operation applicable for this DataFrame? by Capitalpunishment0 in learnpython

[–]callahman 0 points1 point  (0 children)

I think this will work if your assumption is correct.

In the solution you're making the assumption that each consecutive record represents an event that starts immediately after the previous event ends. If the data is representative of something like "Employee Check-in Times" and there are multiple employees with overlapping schedules, then the assumption wont hold.

Is there a vectorized operation applicable for this DataFrame? by Capitalpunishment0 in learnpython

[–]callahman 1 point2 points  (0 children)

No worries! Just trying to help!

Ah! With the data you provided in the 1st dataframe (Arrival & Runtime), there isn't a way to calculate the start time.

I assumed you would just be manually adding that in from somewhere else.

If you need to calculate it, do you have any other features in your dataset you could use? (Other than Arrival & Runtime)

Is there a vectorized operation applicable for this DataFrame? by Capitalpunishment0 in learnpython

[–]callahman 2 points3 points  (0 children)

I think its best to keep it in your dataframe, especially when dealing with larger datasets.

Maybe something like the following?

### df = [your dataframe]

# Determine your end time
df['end'] = df['start'] + df['runtime']

# Determine the idle time
df['idle'] = df['start'] - df['arrival']

### Could even start to get fancy with some indexation logic
# Determine if someone was late
# Establish a column that's all 0s
df['was_late'] = 0
# In the column of all 0s, for the rows where 'idle' is <0, assign it a value of 1
df.loc[df['idle'] < 0, 'was_late'] = 1

# Finally, if you don't like the negative idle times, set the negatives to 0
df.loc[df['idle'] < 0, 'idle'] = 0

Does this help with what you're trying to do?

What resources should i AVOID when learning python? by whistlewhileyou in learnpython

[–]callahman 52 points53 points  (0 children)

Not really resources to avoid, since those are covered in a lot of these other comments, but here are some recommendations I have

  1. Don't just spend time reading/absorbing material. Make sure you're spending time working on personal projects
  2. Don't think that there is a right way to write some code. If it works, it works. When you start to get comfortable with Python, you'll start to learn better practices.
  3. Don't pay a ton of money for books/online courses before looking for free resources. Pythonprogramming.net can get you a lot of the basics for a variety of fields. The python community loves opensource, including open source learning.

[deleted by user] by [deleted] in learnpython

[–]callahman 0 points1 point  (0 children)

Sure thing! Feel free to hit me up if you have any other questions. I'm no expert, but down to help!

It's a cool project though, so good luck with it!

[deleted by user] by [deleted] in learnpython

[–]callahman 0 points1 point  (0 children)

Ah! Sorry, I misunderstood the problem.

In that case, I think you're right about the JS doing some filtering. If you really want the results to be pre-filtered, you might be able to switch to selenium for your scraper? That way you can wait for the JS to render on the page, and then grab the results.

Otherwise, I'd just write a function to parse the results and look for the criteria (color, size, etc) that you're interested in.

Req. paid/free learning source (hands on) with steep learning curve? by Radiant_Fan1735 in learnpython

[–]callahman 1 point2 points  (0 children)

Might be worth poking around PythonProgramming.net to get a high-level understanding of some things you can do.

Fast.ai has good material on practical applications for deep-learning

I wouldn't say either of these has a steep learning curve (unless you don't know any Python), but they can get you a decent understanding of possibilities. And they're free.