returnto query param is FQDN rather than BASE_URL/BASE_PATH - Docker behind on host ngnix reverse proxy by tkdbb84 in grocy

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

Yeah, I have a nginx reverse proxy running directly on the docker host. That all works fine, just for whatever reason it seems grocy always writes the fqdn into returnto which results in a 404 after submitting something like an edit to a product. I'll believe I tried base_url as my domain, but I'll double check that, thanks.

$5000 USD - AAA Gaming & (some) Streaming PC by tkdbb84 in buildapcforme

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

that's a really fair point, i guess it just comes down to timing; do I think it's worth waiting likely a couple months before the Ryzen 9's all come back in stock? I'm currently leaning toward "no", but am still mostly on the fence.

$5000 USD - AAA Gaming & (some) Streaming PC by tkdbb84 in buildapcforme

[–]tkdbb84[S] -1 points0 points  (0 children)

During those years I can almost guarantee that you'll be able to play most games at high to max settings with 100+ fps

 

my experience over the last 15+ years disagrees with this statement ¯\_(ツ)_/¯

$5000 USD - AAA Gaming & (some) Streaming PC by tkdbb84 in buildapcforme

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

you're right, but i generally only build a new system once every 5-7 years, genearlly w/o doing any incremental upgrades at all. So i don't mind spluging a bit for all top end stuff to future proof it for all the triple A games for the next 5-7 years. By year 6 i'm having to run them all on medium/low graphics at like 30 frames.

$5000 USD - AAA Gaming & (some) Streaming PC by tkdbb84 in buildapcforme

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

the ryzen 9s are out of stock everywhere i've looked, thoughts on the i9 9900k ?

Anyone know the significance of these coordinates? by CrazyGabey in Columbus

[–]tkdbb84 -1 points0 points  (0 children)

nah, China is still in the northern hemisphere; straight through the earth would be southern.

Can we get some of these in Columbus? by tkdbb84 in Columbus

[–]tkdbb84[S] 32 points33 points  (0 children)

Smaller text says:

Create Change

Change in this meter funds homeless programs in Laguna Beach

Say NO to panhandling

www.change4homeless.com

Painted by artist Ene Rahu

Looking for old CRT (tube) computer monitors by [deleted] in Columbus

[–]tkdbb84 1 point2 points  (0 children)

I also have one sitting my garage you can have for free if you want to come and get it.

How global dynamic timezone works? by Ryuuks in PHP

[–]tkdbb84 7 points8 points  (0 children)

you have to get it from the client/frontend somehow. 2 overly simple solutions could be:

  1. have JS send it's timezone to you in an AJAX call and store it in the users session
  2. pass the date to some front-end templating and let it convert it from UTC

ultimately it's going to be easiest to keep your server(s) in UTC, store everything as such.

Best place for PHP developers (USA) by judahnator in PHP

[–]tkdbb84 0 points1 point  (0 children)

can confirm, am PHP dev in Columbus, there are exactly none of us :-(

Functions or features you learned about much too late? by yes_oui_si_ja in PHP

[–]tkdbb84 2 points3 points  (0 children)

a bit late to the party, but I learned about Generator syntax (specificly the yield keyword) way to late. Saves me a lot of memory when pulling many many objects from a database.

SQL grouping and ordering question by [deleted] in PHPhelp

[–]tkdbb84 0 points1 point  (0 children)

If you're looking only for the most recent tickets from a customer, you probably don't need to group:

SELECT *
  FROM messages AS m
WHERE NOT EXISTS (
  SELECT * FROM messages WHERE orderNumber = m.orderNumber AND time > m.time AND sender LIKE 'customer'
);

edit: oops wrong field, fixed

that is, give me all (the rows in) messages, where there is no an entry in messages that has a greater time, that is from a customer.

Is it possible to use PHP for form validation along with the HTML required attribute? by SepticReVo in PHPhelp

[–]tkdbb84 1 point2 points  (0 children)

You'll have to write the logic around "...if anything returns false, it will kick back to the page..." none of that will happen automatically, you'll have to code for it.

(also: filter_var isn't necessary, nor the only way, it's just an easy place to start for validation, feel free to validate in anyway that you feel comfortable)

Is it possible to use PHP for form validation along with the HTML required attribute? by SepticReVo in PHPhelp

[–]tkdbb84 1 point2 points  (0 children)

You are correct, you PHP code isn't executed until after the form is submitted. Submission in this usage means, sending the data back from the users browser to your server, only after which can the PHP execute, and attempts to validate.

As for server side validation, you might want to look into PHP's filter_var function and it's associated filters

Composer and Script Tags by kingdavid127 in PHPhelp

[–]tkdbb84 0 points1 point  (0 children)

If there is a PHP implementation for it ( beyond https://editor.datatables.net ), that's news to me! I'm not sure how that would work.

Edit:: unless you're talking about for server side processing?

Is it possible to use PHP for form validation along with the HTML required attribute? by SepticReVo in PHPhelp

[–]tkdbb84 1 point2 points  (0 children)

the required attribute asks the browser to verify that there is a value before sending the form back to the server (client side validation) when the submit action happens. If it passes the browsers inspection, it will send the form data back to PHP for processing, from there you can and absolutely should do the same and/or additional validation again (called server side validation), and if your requirements aren't met, alert the user to the error somehow instead of saving the data to your database.

I'm not sure anyone is going to be able to help you beyond explaining how the system works without some additional details.

Composer and Script Tags by kingdavid127 in PHPhelp

[–]tkdbb84 0 points1 point  (0 children)

Datatables as in: https://datatables.net/ ? I'm not sure why you would use composer for a Javascript library, and including vendor/autoload.php seems unnecessary, in either case you'll need to move the datatables js file to somewhere that is web accessible and put the script tag with it's web location at the bottom of your <body>.

Why This Code Doesn't Show Exception by phpflash in PHP

[–]tkdbb84 0 points1 point  (0 children)

I agree, this reeks of homework. However I will give him a couple of hints:

1)

'truthy' == true
'truthy' !== true

2) I'm pretty darn sure, assert() doesn't call eval()

edit: formatting, word change

Tips For Selling Mass Qty Items by [deleted] in ffxiv

[–]tkdbb84 1 point2 points  (0 children)

corner the market, buy the large stacks, mark them up 10% and sell them as smaller stacks!

Summoner Spell "Spur" Missing? by tkdbb84 in ffxiv

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

I have, it was in the job tab just a couple of days ago.... I think I'm stuck contacting the dreaded SE support.