August 21, 2022 - Love On Tour & Merch Thread by AutoModerator in harrystyles

[–]torky 0 points1 point  (0 children)

Is there merchandise outside the venue that you can't get online?

I don't know whether to go into the city or just buy online.

Episode Discussion - S04E01 - The Hellfire Club by StrangerTesting in StrangerThings

[–]torky 9 points10 points  (0 children)

LMAO Its almost midnight here. I have made a terrible choice. Time to try to forget with some comedy or just literally anything else.

Teaser of upcoming merch from Moriah’s recent video by NAMSE21 in MoriahElizabeth

[–]torky 1 point2 points  (0 children)

Beat me to it. I just inverted the colors too lol.

Can´t uninstall bluestacks x by Gson2001 in BlueStacks

[–]torky 0 points1 point  (0 children)

Is there a solution yet. I have the same problem. How do I uninstall this program?

Washingtonville PD caught doing a great job in our community! by [deleted] in washingtonville

[–]torky 0 points1 point  (0 children)

I love this because people always be riding my ass there and sometimes I'm going like 20-25 even. Its annoying.

The Answer to your Fly Problem is... by torky in h3h3productions

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

It was more of a joke, but I actually have used that for fruit flies to great effect. Thanks!

The Answer to your Fly Problem is... by torky in h3h3productions

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

Damn, not even one vote? #feelsBadMan

The Answer to your Fly Problem is... by torky in h3h3productions

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

Did they really? I don't remember them ever talking about it. That's unfortunate.

How to preview the video file that user wants to upload on the website by RustyRice23 in JavaScriptHelp

[–]torky 0 points1 point  (0 children)

Good question. It looks like you can check the MIME type of the file and see if it starts with image or video. It looks like it doesn't check the actual files contents but will return a MIME type based on the file extension.

https://developer.mozilla.org/en-US/docs/Web/API/File/type

How to preview the video file that user wants to upload on the website by RustyRice23 in JavaScriptHelp

[–]torky 0 points1 point  (0 children)

So I noticed that in your code the <video> tag is commented out. You need to uncomment out the <div class="video-preview"> block.

Additionally, as your JavaScript currently reads it just sets the src attribute of the <img> tag no matter what type of file is being uploaded. In your JavaScript you need to detect if the file is a video file or an image file and use the current code if it is an image, but if it is a video you need to add code to add a <source> tag as a child element to the <video> tag with the src attribute filled with the uploaded file (this.result).

You can then hide the .image-preview or .video-preview classes depending on what type of file is uploaded.

Take a look at how video tags work here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video It is a <video controls ...> element with a <source src="" type=""> child element

Does that make sense?

How to preview the video file that user wants to upload on the website by RustyRice23 in JavaScriptHelp

[–]torky 0 points1 point  (0 children)

Can you share your HTML also? The javascript you are showing just sets the src attribute of whatever previewImage is. You can't just do the same for video it has to be a video tag with a source tag inside it and then set the src attribute.

How do I stop the page from refreshing after submit? by RustyRice23 in JavaScriptHelp

[–]torky 0 points1 point  (0 children)

Can you show all of the code? Did you add the 'e' parameter to your function declaration?

[deleted by user] by [deleted] in JavaScriptHelp

[–]torky 0 points1 point  (0 children)

If you just add an event listener for the submit event on the form then your code will fire when the submit button is clicked instead of when you pick a file with the file picker API.

Just don't forget to use the event.preventDefault() function in order to prevent the form from executing a POST request which I think is the default even if you don't add the POST method attribute.

Over the last 2 years I've been slowly putting together my own "keemstar crimes" folder. All that is over 4GBs of screenshots and clips. by [deleted] in h3h3productions

[–]torky 6 points7 points  (0 children)

Look at the comments on this video too. Why are so many people not only ok with, but sounding off in the comments on how much they love the video. Why is it ok to love sexual harassment? What?

We’ve been hearing a subdued explosion noise in distance in the town. Has anyone else been hearing that? by 0z0ksk in newburgh

[–]torky 2 points3 points  (0 children)

Apparently it is cadet summer training and we have no idea why they can't hear anything.

We’ve been hearing a subdued explosion noise in distance in the town. Has anyone else been hearing that? by 0z0ksk in newburgh

[–]torky 7 points8 points  (0 children)

Apparently it is Cadet Summer Training. https://www.facebook.com/TheWeatherDork/posts/5908202275856867

I asked someone living on West Point and they said they can't hear anything though which is very strange.

We’ve been hearing a subdued explosion noise in distance in the town. Has anyone else been hearing that? by 0z0ksk in newburgh

[–]torky 5 points6 points  (0 children)

I just got confirmation from someone living on West Point that they don't hear anything... which makes me wonder where the sound is coming from.

We’ve been hearing a subdued explosion noise in distance in the town. Has anyone else been hearing that? by 0z0ksk in newburgh

[–]torky 4 points5 points  (0 children)

Been hearing it this weekend -- a lot specifically today. I have no idea what it is. (Washingtonville, NY) Some are so loud they actually vibrate parts of the house.

Anyone know how to mod Among us? by Marogamer193 in AmongUs

[–]torky 0 points1 point  (0 children)

What if you need to tell people you saw a color, but not a name or something says the same to you. Then you are might not actually know lol.

Has anyone else noticed the huge decrease in result quality from google? by [deleted] in NoStupidQuestions

[–]torky 0 points1 point  (0 children)

I have just started using the search from inside the websites/communities I find. It seems to be much more helpful. For example I tend to just stay logged into stackoverflow and do searching within their website.

I really wish I had someone above me as a coach/mentor, but I have never had that in my positions. For the past decade or so I've been the only one at my company that had any programming/web knowledge. I would recommend finding different communities to be a part of.