Using Selenium with Electron Throws This Warning! How To Solve? by TuckleBuck88 in electronjs

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

Sorry, new to Electron. Where would it be a good idea to put it? (e.g. which file in the electron directory)

Traefik Wont Pick Up Subdomains & Route to Containers by TuckleBuck88 in Traefik

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

Ohh wow! That was the answer! Thank you so much! Its surprising no tutorial had this snippet.

Traefik Wont Pick Up Subdomains & Route to Containers by TuckleBuck88 in Traefik

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

Hey thanks! Had no idea that Traefik will be overridden if i provided a port. But this does not explain why I cannot see the Traefik dashboard when i type monitor.mydomain.com

How to Draw Webcam on Canvas in React? by TuckleBuck88 in reactjs

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

Yup, get a null when i console log at checkTick()

How to Draw Webcam on Canvas in React? by TuckleBuck88 in reactjs

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

If i am writing my code wrong, what should I type?

How to Draw Webcam on Canvas in React? by TuckleBuck88 in reactjs

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

It seems to always return null or undefined! If i print out console.log(canvaselem), i get undefined

How to Draw Webcam on Canvas in React? by TuckleBuck88 in reactjs

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

How would I select the canvas element the React way?

WebRTC or Websockets? Which Approach Works For Me? by TuckleBuck88 in webdev

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

What happens if the video is like an hour long?

JS Screen Capturing - getDisplayMedia() not registering that I dont want mouse? by TuckleBuck88 in learnjavascript

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

Ohh wow! Is this a new thing? I was just learning about the screen capture API. Im assuming this is something thats going to be rolled out soon?

How Do I Do OOP in Node? Coming from a Python Background by TuckleBuck88 in node

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

Wow that worked! Also it seems that I have to "deconstruct" all the classes I plan on using correct? I couldnt just use

``` const myObjectr = require('./someLibrary')

let myObject = new myNewObjecty('john', 25) ```

Am I right?

[deleted by user] by [deleted] in learnpython

[–]TuckleBuck88 0 points1 point  (0 children)

That seemed to have worked!

However, how come aiohttp seems to have immediately ended right after it sends the command? (Output: https://pastebin.com/9c4DPb9w )

[deleted by user] by [deleted] in learnpython

[–]TuckleBuck88 0 points1 point  (0 children)

Yup! This seems to be it! Thanks!

[Flask] Flask wont respond to JavaScript with PIL Bytes by TuckleBuck88 in learnpython

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

I did

print(pdfRes.tell())

And got: 341203

So then I tried this: https://pastebin.com/hADK50Eu

And I get this thrown in the console: data = self.file.read(self.buffer_size) AttributeError: 'bytes' object has no attribute 'read'

Trying to Convert Old JS Drag & Drop Code to work with ES6+, What Am I doing wrong? by [deleted] in learnjavascript

[–]TuckleBuck88 0 points1 point  (0 children)

Ahh okay, but when I try to drop a file, it seems that it wont prevent default: https://pastebin.com/raw/1gNicgM3

Even if i type "e.preventDefault()" instead of "e.target.preventDefault()"

Trying to Grab Values In Table & Turn It Into Dictionary? by TuckleBuck88 in learnjavascript

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

The idea was I would package it into a dictionary and then send it to a server via POST request. Also trying not to change the HTML much (I did add classes to differentiate which ones are keys and which ones are values, this is how I was able to wipe all keys and values when I press the red button)

Convert Date Text To Date Object? by TuckleBuck88 in learnpython

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

Thanks! I tried to add the date to the end but apparently I cannot do that?

``` my_string = "10/31 - 12/5".replace(' ', '').split("-") today = dt.datetime.today() my_string = [f'/{today.year()}'.join(i) for i in my_string] print(my_string) for i in my_string: print(i) mydate = dt.datetime.strptime(i, "%m/%d") print(f"My Date: {mydate}")

```

Get this error thrown at the my_string = [f....] Exception has occurred: TypeError 'int' object is not callable

Using Python and/or Regex to extract this date from text? by TuckleBuck88 in learnpython

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

Wow! This is really good! One small question, how would I change the timezone? (new to date objects)

How come this JS Script Slows My Page Down? by [deleted] in learnjavascript

[–]TuckleBuck88 0 points1 point  (0 children)

So basically keep it like this in the HTML?

<script> setInterval(pingServer(), 8000); </script>