20000 forum users - Awesome Special Event!

If he’s gonna post in this topic again I’ll re-link him to the post of mine where I intervened and said to not start political discussions here, which is this:

6 Likes

So I found that 99% of the errors in my code were from $_COOKIE and $_SESSION. It prompted something with an empty array. This didn’t cause any problems until now. I had to do (isset($_COOKIE["somecookie"])) && ($_COOKIE["somecookie"]); for each and every one of them.

7 Likes

I really like that your solving your problem instead of calling everyone b*stards.
Take a like from me :slight_smile:

Summary

Do NOT be like Paul Newman ( this is for everyone )

8 Likes

Be careful, you could end up summoning him here.

5 Likes

image
:rofl:

5 Likes

Hi YT_Xaos, here’s something that you might be interested in:

// check session for expected keys
if(!$_SESSION){
	session_start();
}

if(sizeof(array_diff(['your expected keys'], array_keys(array_filter($_SESSION)))) > 0){
	// you don't have all the keys.
}

// session is good.

// repeat the above for $_COOKIES

The way this works is to check if the preset $_SESSION array exists, if not then start the session, and an empty $_SESSION will be available. $_COOKIE is always available.

In the very long line, we took all array_keys that have values from $_SESSION that are not empty into an array. The array_filter() function has already removed meaningless empty values from the $_SESSION before making the following comparison. Then use array_diff to compare against a list of expected keys that you need, if such keys are found available, your reference list of keys will be cancelled out. If all keys exist, your array_diff should have a size of 0, because it’s empty. Anything that is not cancelled out is your missing keys and somehow you will then give a default value or redirect the user back to wherever he/she comes from.

Cheers!

4 Likes

:joy:
We welcome conversation from anyone, so long as they don’t violate the forum’s guidelines. If a violation occurs, the post may be flagged and deleted without warning, as the outage topics mention.

6 Likes

I like teaspoons :joy:

Screenshot 2023-10-06 200637

Since everyone is talking about AI, here I asked for help to visualize something


This imgs below doesn’t seem like 0.18% to me

6 Likes

It’s the best measurement possible for volume!

5 Likes

Nah, ounces ftw (jk).

Heck, I’m lost when it comes to ounces, quarts, gallons…

and the fact that ounces are both used to refer to weight and volume.

Sorry, I’d rather just learn the metric system than use the imperial system for weights and volume.

That’s probably defined in the U.S constitution as treason, right?

IG I have to be executed in the most American way possible now

If you can guess how

The judge is just gonna be like “now where is my scary lookin assault rifle? Using metric units is the worst possible offense you can make on these God-given grounds!”

3 Likes

Yeah, here’s proof that I can write like an AI:

While AI can certainly be helpful with writing your posts, there are downsides to using it this way.
Here are some issues that may come with using AI to write your posts:

  • Overreliance on technology: While AI may help you get your message across in a clear way, it may also hinder you from learning how to write good quality posts. A balance of your own words and those of the AI are crucial to ensure a benefit for both the audience of your post as well as yourself.
  • Relatively new technology: Large Language Models (LLMs) like ChatGPT are relatively new and therefore may not be as reliable with information. It is always important to check the veracity of AI generated text before you post it.
  • Social stigma associated with AI: Some people may not like that AI is being used to generate posts on the internet. They may feel like the experience of reading something that a human wrote isn’t there with an AI generated text or may express fear that AI could be used in place of humans, especially in the job force. Additionally, people may point out that AI can be inaccurate and that this will lead to an increase in the spread of misinformation.

In conclusion, there are several downsides to using AI to write your posts. It’s best to use AI responsibly and respectfully and to balance the use of your own words, and those of a machine.

-TW22 - 2023

(Yes, I actually wasted my time and wrote an AI-esque response)

Here’s how it holds up in a detector:

(this one saw through me)

There’s also the fact that a few sentences are hardly any data for the detector to work with, especially because AI rarely generates under 2-3 paragraphs of information (lol).

In conclusion… aherm… Basically, it’s easy to fool AI into thinking that AI wrote it.

Writing it all myself using WAT would be fun, but no… I’m using emscripten (as you saw with the C code)

6 Likes

Screenshot 2023-10-07 120718

This value doesn’t look right to me…wtf? :roll_eyes:
but the HDD has certainly done a lot of work during all 10+ years (there are several years for power-on time).

4 Likes

I am working on a new free domain provider called https://regist.cc/

2 Likes

Okay I want to see if it’s legitimate and works with InfinityFree

I have picture files uploaded with ftp tool on Termux. But when I see them on my site, it’s either blank or corrupted. How do I fix it?

3 Likes

I think the problem is this: is the FTP transfer type to upload your files set correctly? The images should be uploaded in binary and not ASCII.

5 Likes

Yup, type binary fixed it, thanks :slight_smile:

4 Likes
5 Likes

Screenshot_20231009-065244~2
How nice, PHP 8.2 running on vol8_2 :smiley:
Also, my new morning music

4 Likes

I think GMTV should be an acronym for Good Morning Television there!

3 Likes

After the presence of a large number of toxic and irritating compounds (formaldehyde, benzene, toluene, ethylbenzene, xylene group, styrene, acetaldehyde, phenol, furan, dioxin group, ethylene) in the affected area along with smoke and an increased concentration of floating pollutant particles
today there was a big drop…(blah blah)
and from tomorrow all the schools in the city and the surrounding area start working again…(blah blah)
until now, public gatherings and events have been postponed and there was an active recommendation not to stay outdoors.

Yesterday, the drone recorded a temperature of up to 500C under the buried fire ground, there is also one part that was not buried but is treated with foam because that part is reserved for the police/forensic investigation…

So tomorrow I’m back to normal :smiley_cat:

I didn’t have to use any of my own souvenirs from the war :skull_and_crossbones: :joy:

but it is not suitable for use because the rubber loses its properties over the years because it “peels off” and releases tiny microparticles and destroys your lungs even more.

7 Likes