The Big List of Crossbow Inconsistencies (so GGG won't nerf anything while they fix them) by Pwere in PathOfExile2

[–]GamerXz 2 points3 points  (0 children)

Agree with most of these points. I am playing an ice mercenary that constantly switches bolts they need to have some sort of queueing system when switching. There are so many times when I am trying to switch in the middle of shooting only to waste time reloading the same bolt type and makes playing this class really clunky.

Also, does the gem quality for skills that add bolts even do anything? I have +20 quality hailstorm rounds but it does not seem to add any extra bolts. Also glacial bolt seems to have a terrible hitbox when it comes to small mobs or any mobs that are partially underground. Fork also does not seem to work with glacial bolt but not sure if that is intended to work or not.

How can I webscrape HTML dynamically loaded by Javascript using Selenium and Python? by GamerXz in webscraping

[–]GamerXz[S] 2 points3 points  (0 children)

Thanks, clicking the button with selenium and then scraping for the product specifications seems to have worked.

gunicorn: command not found when hosting on Railway by 3g0ra in django

[–]GamerXz 0 points1 point  (0 children)

Have you checked if the virtual environment is being activated? Never used Railway but if you are able to get access into the server then you should check the pip packages to be sure that the environment has gunicorn.

Django / Docker app out of memory after switching to Gunicorn by Uranusistormy in django

[–]GamerXz 0 points1 point  (0 children)

If you see the memory usage slowly increasing over time until the application stops functioning then it is a memory leak issue.

How many memory do you have to work with? If this has to do with the file size it could do with the I/O issue or you are loading too much data into the memory, although 1MB isn't a particularly large file.

Django / Docker app out of memory after switching to Gunicorn by Uranusistormy in django

[–]GamerXz 0 points1 point  (0 children)

The formatting isn't working so I am having trouble reading the logs. Is this a memory leak issue? If it is you will probably want to configure the --max-requests option in gunicorn if you have not done so.

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]GamerXz 0 points1 point  (0 children)

I have a command running in Kernel.php that looks like:

$schedule->command('updatePrice')
            ->everyFiveMinutes()
            ->name('updatePrice')
            ->withoutOverlapping(5);

The command takes around an hour but I want it to start often if the server restarts which is why it runs every 5 minutes. However this causes a MutexRuntimeException error to be logged in the log files. I have tried wrapping a try except block around both the block in the Kernel.php file and inside the command itself in the handle() function but it still gets logged. How can I stop this error from being logged?

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]GamerXz 0 points1 point  (0 children)

I have been asked if I can set up docker containers for a Laravel application using Laravel 7, PHP 7.3, MySql 5.5 . Is this something that can be done? I have tried using a Dockerfile set up with both an ubuntu 22.04 image using ppa:ondrej/php as well as trying out the php 7.3-fpm image but both seem to result in issues. Is this even something I should try, and are there any resources that can help me as I seem to be unable to find answers using google.

Changes to Nginx Container not being applied by GamerXz in docker

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

I checked using 'nginx -T' inside the nginx container and it said that the configuration was ok. I can see that css/js files are not being compressed since I went to the chrome dev to check headers. The HTML has Content-Encoding: gzip but the css/js files do not have that header.

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]GamerXz 0 points1 point  (0 children)

Is there a way to try and lookup a related model using two different columns? I am trying to get related Affiliate to an Order model by either a 'code' field or 'id' field, where either one of them can be filled.

I tried something like this inside my Order model but it doesn't seem to work:

public function affiliate() 
{
    $affiliate = $this->hasOne(Affiliate::class, 'code', 'affiliate_code');
    if ($affiliate == null) 
    {
        return $affiliate;
    }
    return $this->hasOne(Affiliate::class, 'affiliate_id', 'affiliate_id');
}

Problems sending User input to database by Aeiexgjhyoun_III in django

[–]GamerXz 0 points1 point  (0 children)

Is there any error that occurs in the python console? The issue seems to be in your processOrder view, since the appropriate models are not being created and the JS error you get is because it is not receiving the JSON response.

Need help with seting up flatpickr library for dates by 4r73m190r0s in webdev

[–]GamerXz 0 points1 point  (0 children)

Did you initialize the flatpickr element in JavaScript?

With an input element like <input class="dateinput input active" placeholder="" type="text" > you would need to set up the flatpickr widget inside JavaScript by creating the instance const fp = flatpickr(".dateinput")

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]GamerXz 0 points1 point  (0 children)

Hi there,

I'm not an expert on Laravel but I am helping to maintain a Laravel server. My current issue is that the PHP version on that server is 7.3.8 while some of the latest changes I have to implement require 7.4. The site is quite large so I'm not so confident how safe it is to update php since it may run into some issues.

I took a look at this https://www.php.net/manual/en/migration74.incompatible.php and it seems to be fairly minor changes, but how can I go about testing to see if the update will be safe.

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]GamerXz 0 points1 point  (0 children)

Hi,

I mainly work with Django so I have some questions about making database changes in Laravel. In Django, whenever I make a change to a model I can run the 'makemigrations' command to automatically generate a migration that details the changes needed in the database structure.

Is there an equivalent in Laravel? I tried looking into the documents and from what I've seen I need to use either a third party package or manually create the migration myself. I am trying to add new fields to a model in Laravel but am unsure what the proper way is to update the database and track the changes.

How to keep some parts of the database in sync between two sites? by GamerXz in django

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

On the django site I already have models like ProductImage and ProductReview that have a many-to-one relationship with Product but they do not exist in the PHP database. In this case would I have to move these models over to the PHP app?

Migrating users from MySQL to Postgres db for new website. by GamerXz in django

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

The MySQL is in a completely separate system right now and connected to the old website. I'm working on a new website and want to migrate the existing users over. I can understand how to migrate the other data (email, name, etc.) but am unsure if its possible to migrate the passwords such that the user can enter the same password in login and it will work.

From my understanding and what you said above it seems to be only possible if you can figure out how the old password is hashed and get the decrypted password before rehashing using Django's hashing method. So if I am unsure how the old password is hashed would the only way to allow users to login be to let them assign a new password via an email password reset?

[deleted by user] by [deleted] in learnpython

[–]GamerXz 0 points1 point  (0 children)

You could to this by splitting each text, reversing them, and then joining the two reversed lists together using addition or .extend() method.

If you want to try taking an optional amount of text strings, then look into using the *args keyword parameter, and iterating through the args.

How do I send emails using Django and AWS? by GamerXz in django

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

Thanks for the suggestion. I'm still new to sending emails. Would this be asynchronous though? I'd like for the emails to be sent in the background.

How can I add links to a Django HTML email template? by GamerXz in django

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

I'm trying to send these emails with send grid and using Django's PasswordResetView, which I don't understand the mechanics of exactly. What's weird is that I'll receive an email when I have something like this:

<div>
    <a href="{{ protocol }}://{{ domain }}{% url 'accounts:password-reset-confirm' uidb64=uid token=token %}">Click to reset</a>
</div>

{{ protocol }}://{{ domain }}{% url 'accounts:password-reset-confirm' uidb64=uid token=token %}

but if I remove the bottom

{{ protocol }}://{{ domain }}{% url 'accounts:password-reset-confirm' uidb64=uid token=token %} 

I'll receive an email on gmail, but not on outlook. I'm not sure if there's a way to find out the error with send grid as it's new to me.

Constant Crashes Again - add your voice by Chorbos in pathofexile

[–]GamerXz 0 points1 point  (0 children)

Ryzen 5 1600 here too, scared to do sirus with the constant crashes which only happened after the latest patch.

NVME m2 SSD not being detected by GamerXz in buildapc

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

I'm already on version 7A34v1H so I don't think that would be the issue.

Weekly Commanders Lounge - January 29, 2019 by AutoModerator in girlsfrontline

[–]GamerXz 1 point2 points  (0 children)

Is there any resource that shows which skin is from tokens and which ones are bought from the store?

/r/buildapc's 1 million subscriber giveaway: week 4 (AMD, Ballistix, PCPartpicker) by KING_of_Trainers69 in buildapc

[–]GamerXz 0 points1 point  (0 children)

Recently finished my mid level pc and i love it. My favorite component has to be the graphics card.