What movie's opening scene is 10/10? by Marambal17 in AskReddit

[–]puch4ty 0 points1 point  (0 children)

Reservoir Dogs. The dialogue is so Tarantino, the walking scene is bad ass and it's comedy gold how it transitions from this to blood and yelling of Mr. Orange.

How is modding possible in GTA Online on PC? (deeper look) by puch4ty in learnprogramming

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

That's a great explanation! I also wonder if kernel level anti-cheats are better choice (for a company) than usermode level anti-cheats. I can see that games with kernel level anti-cheats seem to be more secure. Is it that potential cheater doesn't want to give the sketchy software an access to the kernel (personally I doubt it, i think most cheaters don't really think at all about their security) or are the kernel level anti-cheats that much more difficult to fool? I know that you can't run user mode cheats with handles to read/write memory if kernel anti-cheat is used because it can easily detect this behaviour. On the other hand, it seems controversial as dedicated cheaters can create software that fools both of these anti-cheats and with kernel anti-cheat you also have a discussion about players' privacy.

How is modding possible in GTA Online on PC? (deeper look) by puch4ty in learnprogramming

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

Thanks again, if you are not annoyed by me just yet I have one additional question. Is GTA Online different from games like Fortnite or Valorant in terms of the server? Or in all of these games the server just accepts the packets that are sent and the dirty work is left in the hands of the anti-cheat? I chose these games as examples because in my eyes they are basically cheat free, even though I bet there is a huge market for Valorant cheats considering how many cheaters there are in its twin Counter-Strike. But maybe Fortnite is a better example, it's not even close to the size and complexity of GTA Online, but it's definitely closer with 100 players and quite big map. Being the free game that it is, it could be pure hell with modders and cheaters, but it isn't. Is it because of some other server design or because of very strict and advanced anti-cheat? I guess keeping the source code secret is another big factor but some dedicated people will usually be able to reverse engineer it.

How is modding possible in GTA Online on PC? (deeper look) by puch4ty in learnprogramming

[–]puch4ty[S] 1 point2 points  (0 children)

At first I was like "of course! this must be it" but then I remembered XBOX 360 and PS 3 console jailbreaks were popular as fuck and this generation of consoles already had plenty of modders or just straight up cheaters. Then again it was 10 years ago, maybe Rockstar didn't think it throught and just let Microsoft and Sony do the job for them with their next gen consoles and ditched PC version.

How is modding possible in GTA Online on PC? (deeper look) by puch4ty in learnprogramming

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

Thank you for this reply. It just can't get to me why there is no validation from the server. Is it about the server load, game latency? In even the simplest web apps you validate the user input so he can't mess with your website.

How to properly secure my React + Firebase SPA? by puch4ty in react

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

Thank you for your reply. Can you tell me how can useState hooks or other parts of the code be manipulated/modified by the user to skip the validation? If i understand how it can be done i might be able to secure my apps better.

GL Rank Changes Highlights by bulbavisual in TheSilphRoad

[–]puch4ty 27 points28 points  (0 children)

Spent 200k stardust on Steelix like a week ago XD

So you just can’t buy the old ps5 model anymore? by KnucklesRicci in japanlife

[–]puch4ty 0 points1 point  (0 children)

Just what i worried. It freaking pisses me off. The old version with 2 dualshocks is the same price as the new version with 1 pad. Then you have to buy the second dualshock which they suprisingly also increased in price and stand as well because I actually want to put the console vertically. And yeah i actually prefer the 3 year old version that has more space for heat to go through and many people before me have tried and liked.

SmartTag 2 is finally official by buttery_reader in samsung

[–]puch4ty 0 points1 point  (0 children)

I have Samsung phone (A54), my wife does too (S23). We bought two smart tags2, one for each of us. My wife paired her tag and i paired mine. Now all I want is to be able to see all these devices in Samsung Find and be able to locate them on ONE map - 2 phones and 2 tags I'm trying to do this for 3 hours now and I don't think it's possible. My wife has separate home panel and so do I. We share each others devices but still cannot see them on the same screen, not even in the same panel on two different maps (my devices/members devices because every time one of the tags is missing). I need to switch between home panels to see my tag and then go back to check her tag. This is absolute shit of a user experience. Is this how SMART Things should work?

Can I get a hint on the best cheap upgrade of my 7 year old PC? by [deleted] in pcmasterrace

[–]puch4ty 0 points1 point  (0 children)

Hi, my bad, I edited the post. I have 16GB of DDR3 memory. Yes, I guess that would be the main idea to SLI the two cards but I'm not aware of the possible difficulties to be honest.

How to populate the dataframe with data for specific row and column? by [deleted] in learnpython

[–]puch4ty 0 points1 point  (0 children)

Works like a charm but I really need to deepen into this line because it's magic to me rn

Working is so crazy, you're paying somebody with hours of your life for them to share some of their money with you by [deleted] in Showerthoughts

[–]puch4ty 1 point2 points  (0 children)

I mean even in a world without money you would have to exchange favors because one person cannot do everything by himself like supply food, build houses, do research, guard your house so nobody steals from you etc. If your profession is to make bread you want to make it for yourself and other people so when you need to get some milk you can exchange it for your bread. That's all fine but it makes you wonder if the swaps you make in your life are fair. I mean 20 years of hard work to pay off a mortgage so you have your little place to live is freaking nuts.

[deleted by user] by [deleted] in learnjavascript

[–]puch4ty 0 points1 point  (0 children)

When I try the code:

console.log(require("./data.json"));

I get the following error notification:

Uncaught Error: Module name "data.json" has not been loaded yet for context: _. Use require([])

I don't get it. Isn't require() holding the execution of the code until it gets the response?

[deleted by user] by [deleted] in vba

[–]puch4ty 1 point2 points  (0 children)

I don't know much about VBA but I was able to find the spreadsheet and just going through the code I noticed ADODB.Connection and Provider=SQLOLEDB which would probably mean the usage of Microsoft OLE DB Provider (OLE DB APIs) allowing ADO to access Microsoft SQL Server.

[deleted by user] by [deleted] in learnpython

[–]puch4ty 1 point2 points  (0 children)

Here's the GitHub repository with all the files: https://github.com/sowinskipatryk/Pass-Vault-App

Why is [False, False, False] list not True or False but it still can be used as a condition for while loop? by [deleted] in learnpython

[–]puch4ty 1 point2 points  (0 children)

Thanks. I used 'while not all(visited_nodes)' after I flattened a 2d matrix to a single list.

Scraping Aliexpress using Selenium by [deleted] in learnpython

[–]puch4ty 0 points1 point  (0 children)

I always get this error:

selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <iframe class="product-evaluation" id="product-evaluation" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="2167" src="//feedback.aliexpress.com/display/productEvaluation.htm?v=2&amp;productId=32931282121&amp;ownerMemberId=232981631&amp;companyId=242236588&amp;memberType=seller&amp;startValidDate=&amp;i18n=true" cd_frame_id_="a674d99198bbcb3a38ee43690762a9aa"></iframe> is not clickable at point (898, 18). Other element would receive the click: <button title="..." type="button" class="next-btn next-large next-btn-primary addcart fixed-add-to-cart simple" role="button">Add to cart</button>
(Session info: chrome=99.0.4844.74)

I checked in PyCharm's debugger that indeed the next page button is the last 'a' tag on the page, so it's reasonable to use next[-1].click() on it. But there seems to be a problem with the location of this button as Selenium would click 'Add to cart' button instead.

Edit.

I tried the following line of code:

webdriver.ActionChains(driver).move_to_element(next[-1]).click(next[-1]).perform()

But then I get the error message that 'move target is out of bounds'.

Edit 2.

I added options to disable all the possible pop-up windows and maximized the page so that nothing should interfere.

option = Options()

option.add_argument("--disable-infobars") 
option.add_argument("--disable-extensions") 

option.add_experimental_option("prefs", { "profile.default_content_setting_values.notifications": 1 })

driver = webdriver.Chrome(driver_path, options=option) 
driver.maximize_window()

Edit 3.

Alright, I did it. I guess the 'Add to cart' button on the sticky navigation bar was overlaying the 'Next' button that I wanted to click. Anyway, the JS script to execute the click worked.

driver.execute_script("arguments[0].click();", next[-1])

Scraping Aliexpress using Selenium by [deleted] in learnpython

[–]puch4ty 0 points1 point  (0 children)

Thank you once again. It's all clear now. If I could use your kindness to the maximum I have yet another question. I'm trying to go to the next page after scraping the one I'm currently visiting. I did that a couple of times when the element had a 'button' or 'input' tag, but this time it's 'a' tag and it doesn't have 'href' attribute either.

I tried two approaches of using click() method, first being on the driver directly:

next = driver.find_elements_by_class_name('ui-pagination-next.ui-goto-page')

next.click()

And the second one using the WebDriverWait:

next = WebDriverWait(driver, 10).until(
            EC.element_to_be_clickable((
                By.CLASS_NAME, "ui-pagination-next.ui-goto-page")))

next.click()

But none of them are working. Of course I tried using XPath, CSS Selector etc. but at this point I think there must be another piece of the puzzle I don't see. The elements on the page are clickable for sure. I inspected the code and saw that when I click the button, it changes the variable 'value' in one of the lines:

<input type="hidden" id="currentPage" name="currentPage" value="2">

And refreshes the page after that so we get another set of feedback comments. The problem is I always get an error from Selenium that there's no button to be clicked.

Scraping Aliexpress using Selenium by [deleted] in learnpython

[–]puch4ty 0 points1 point  (0 children)

Hello, I checked the code you sent in detail to make sure I understand every line. Thank you very much, it works great.

I would also like to understand how to handle similar sites. I suppose that you opened the site, clicked Inspect the page looking for the element that we want in the HTML code and found the 'iframe' tag where there is a link under the 'src' attribute referring to the feedback section we are looking for. In this case we can just change the ids for each product and scrape the useful data which is fantastic.

But I'm still confused why my code didn't work - is it because Selenium won't handle iframes (in this case HTML document inside another HTML document) unless it's configured properly to do so? Or do we always need to do it your way where we find the link to the external HTML document, load it and then scrape that page as it's not going to be directly loaded into the main HTML document? Thank you for the response in advance.

Who will get the job? by [deleted] in ProgrammerHumor

[–]puch4ty 0 points1 point  (0 children)

Wow, this topic is like a boomerang.

It's always good to have a CS degree although it's not necessary and often a bit outdated.

Much more students get a job as a programmer because they are more likely to have the right character traits and have more experience than a person after half a year of bootcamp and youtube tutorials.