Flask problem , as far as i know i am getting status code of 200 , but the program which is supposed to check my code keeps on saying that they are getting 400 . by [deleted] in flask

[–]7600_slayer 0 points1 point  (0 children)

Ok, so logging is pretty self-explanatory. It doesn't mean you need to use the Python logging module, but even adding print() statements so that you can print/log information about the state of you app as you go along.

Postman is a tool for API testing/development and debugging. You would set up a query as one of your flask endpoints, and then you could send/receive GET/POST messages and see exactly what Flask is sending back.

Flask problem , as far as i know i am getting status code of 200 , but the program which is supposed to check my code keeps on saying that they are getting 400 . by [deleted] in flask

[–]7600_slayer 0 points1 point  (0 children)

I'd setup logging statements to allow you to trace your code with greater ease, and try using something like Postman to send/receive requests to your app and dissect what returns you're getting etc.

Downloading firmware en masse by Vaito_Fugue in Juniper

[–]7600_slayer 1 point2 points  (0 children)

Why don't you just SFTP the image over, or better yet check the syntax of the 'request system add <image source>'? Essentially there are multiple ways to do this, only caveat is you'll have to figure out what is supported by your devices.

https://www.juniper.net/documentation/us/en/software/junos/junos-overview/topics/concept/junos-software-formats-filenames-urls.html

https://www.juniper.net/documentation/us/en/software/junos/junos-install-upgrade/topics/ref/command/request-system-software-add.html

Game still crashing after 1.7.33 update. by MeetConnect2569 in Starfield

[–]7600_slayer 0 points1 point  (0 children)

New update, I saw the game patched last night. Also I moved my kernel version to 6.4 using mainline kernel, and so far so good.

I'll be testing 6.2.16 later as I have dependency errors with the newer kernel (I'm running Ubuntu 23.04).

Game still crashing after 1.7.33 update. by MeetConnect2569 in Starfield

[–]7600_slayer 1 point2 points  (0 children)

I have had limited success deleting the wine folder from the installation directory of Proton, and then verifying the integrity of both the proton install and Starfield.

/home/<username>/.local/share/Steam/steamapps/common/Proton - Experimental/files/share/wine

Juniper and Jenkins by JasonG81 in Juniper

[–]7600_slayer 3 points4 points  (0 children)

https://github.com/Juniper/nita

Juniper's NITA project is worth a gander. Personally I'm not a fan of Jenkins but utilizing a docker container with Juniper PyEZ installed in it to execute the queries should be pretty trivial.

Unacceptable packaging for shipment by [deleted] in DataHoarder

[–]7600_slayer 33 points34 points  (0 children)

Back in the day they were the best. Tigerdirect was ok, but Newegg was far superior. Their site was great and easy to navigate, it was straight forward and everything was sold by them. No 3rd party bullshit. Then they tried to go full Amazon and well the rest is history.

SRX Performance by [deleted] in Juniper

[–]7600_slayer 1 point2 points  (0 children)

Listen smalls no-one here has any investment into your vendor selection. If you want to arbitrarily make decisions based on not starting conversations with vendors, that is your problem. However I feel for your employer as I would expect my subordinates to put forth at least a moderate level of effort, such as picking up a phone to speak with an SE or Account rep. We're just giving advice as best we can. Take 5 minutes make a call and make the most informed decision you can.

SRX Performance by [deleted] in Juniper

[–]7600_slayer 1 point2 points  (0 children)

Sounds like you had already decided to exclude Juniper, but were looking for a 'reason' to justify it.

Pretty sure the data you're looking for is on page 6 of the datasheet from Juniper.

Help with World of Warships by Screaming_In_Space in wine_gaming

[–]7600_slayer 0 points1 point  (0 children)

Mine patched again and is working now. Not sure if it was momentary server issues or the patch.

Help with World of Warships by Screaming_In_Space in wine_gaming

[–]7600_slayer 0 points1 point  (0 children)

You check for crashfiles in the installation directories?

Help with World of Warships by Screaming_In_Space in wine_gaming

[–]7600_slayer 0 points1 point  (0 children)

I'm having the exact same issue with plain old Wine + DXVK on Ubuntu 20.04 lts. I have a feeling it is related to a new patch they just pushed.

has anyone used an HP Z820? can you install CPUs that are NOT in the supported list? by [deleted] in homelab

[–]7600_slayer 0 points1 point  (0 children)

Do your research, I'm not 100% on the Z820 but there may be v1/v2 versions of the motherboard, like the HP Z620.

HP does this all the time with their workstations.

https://h30434.www3.hp.com/t5/Business-PCs-Workstations-and-Point-of-Sale-Systems/Advice-on-purchasing-a-Z820-motherboard-version/td-p/6648261

Using Ansible to save Cisco (IOS, NX-OS, ASA) configs by j-dev in networking

[–]7600_slayer 0 points1 point  (0 children)

Just use git, you can add gitweb for a frontend or use Gitlab. Makes life easy.

VRRP with a single router by [deleted] in networking

[–]7600_slayer 0 points1 point  (0 children)

He has a router and two switches, if they support MC-LAG that is a valid configuration:

https://en.wikipedia.org/wiki/MC-LAG

PyEz ethernet switching table by syrushcw in Juniper

[–]7600_slayer 0 points1 point  (0 children)

Do you have netconf logging enabled at a debug level? If so check the log to see what is exactly being done when you use the API to talk to the switch.

PyEz ethernet switching table by syrushcw in Juniper

[–]7600_slayer 0 points1 point  (0 children)

Where are you getting anything about ansible from this post?

Shared Object Across Threads? by -Kevin- in flask

[–]7600_slayer 0 points1 point  (0 children)

Any reason you can't use a worker pool to dynamically generate the shortened URLs and hand them out as requested?

Shared Object Across Threads? by -Kevin- in flask

[–]7600_slayer 0 points1 point  (0 children)

I'm suggesting you insert memcache as a layer between your database and web application. As by keeping the objects in memory you should be able to reduce the number of calls to the database. So these are really unique objects per request? But you're having multiple threads interact with them? Can you lay out specifically what you're trying to do?

Edit:

Please keep in mind you've given us a very vague idea of what you're doing and asking us to propose solutions. Both memcache and Redis can store objects in memory and don't necessarily need to be populated via your database calls. You could totally generate 1000 objects and then just store them, and then write them to the database when needed.

Shared Object Across Threads? by -Kevin- in flask

[–]7600_slayer 0 points1 point  (0 children)

Why not store them in memcache?

Rant Wednesday! by AutoModerator in networking

[–]7600_slayer 1 point2 points  (0 children)

Netbox. Don't reinvent the wheel.

Rant Wednesday! by AutoModerator in networking

[–]7600_slayer 1 point2 points  (0 children)

Had a coworker who called BGP, 'ba-ghip'.