What do you want to save?
Add Code snippet
New code examples
-
SQL 2022-03-17 01:45:08
SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'
I finally found the solutions a days ago and I remembered this post. In the "config/database.php" file in mysql tag, the sql modes should be added in order to skip this error. https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sql-mode-fu... Add solution -
Other 2022-03-17 00:45:17
password authentication failed for user postgres pgadmin
happened with me as well, when I started pgadmin3 for the first time, i was expecting it to ask for the password which I provided during but it didnt ask and then didnt display any servers. anyways, you can create a server yourself, if your server is on t... Add solution -
-
PHP 2022-03-16 22:55:34
wp_query item count
<?php $count = $custom_posts->found_posts; ?> Add solution -
Python 2022-03-16 21:15:19
python lunarcrush script
import urllib.requestimport sslimport jsonimport timeimport tweepyssl._create_default_https_context = ssl._create_unverified_contextapi_key = "API_KEY_HERE"# Allows adding as many coins as desiredcoin_list = [ "LTC", "ETH&qu... Add solution -
Other 2022-03-16 20:10:09
view pdf file online without downloading using codeigniter
header("Content-Length: " . filesize ('theme/assets/pdf/ci.pdf' ) ); header("Content-type: application/pdf"); header("Content-disposition: inline; filename=".basename('theme/assets/pdf/ci.pdf')); header('Expires: 0'); ... Add solution