User Profile

User's Address,Order,Post etc.

Signup time:2022.12.05 21:10:19

Showing 5 out of total 125

CMake Error: Error: generator platform: x64 Does not match the platform used previously:
Author : Anonymous Publish Time : 23 Nov 2024 22:16:40

CMake Error: Error: generator platform: x64
Does not match the platform used previously: 
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
Error: Unable to generate build files

from vscode cmake->configure change the plactform to x64

  • CMake Error: Error: generator platform: x64 Does not match the platform used previously:
flutter windows MSB3073 命令“setlocal " 无法启动程序 /x65/debug/ALL_BUILD 拒绝访问
Author : Anonymous Publish Time : 23 Nov 2024 15:00:29

 

flutter windows MSB3073 命令“setlocal "  无法启动程序  /x65/debug/ALL_BUILD 拒绝访问

 

  • flutter windows MSB3073 命令“setlocal "  无法启动程序  /x65/debug/ALL_BUILD 拒绝访问
本来想用 字节跳动豆包ai写一个网站的介绍,却被污蔑为恶意网站
Author : Anonymous Publish Time : 10 Nov 2024 20:29:04

细数中国这些大公司的恶行,他们无时无刻不在打压限制危害小公司,本来半夜想让什么豆包帮我写个网站介绍,一问他就说这可能是一个恶意的网站,可能存在违法信息?。 如果是用户查的,那对这些小网站有什么影响?肯定这是在暗示,是诬陷
​同样我又去了chatgpt网站一问,内容对不对不说,人家回复的确实明白是我让它替我写关于网站的介绍,
​我就不明白,它不了解这个网站怎么会说这个网站是恶意网站!这就是开发者和开发公司的品行,腾讯也是一样,你发个链接他就说这可能是危险网站!
​唉

就好比我向你问另外一个人怎么样,你不了解直接说这个人可能是个犯罪份子合适么?

 

为什么是这样?

首先我让他给我写一个关于网站的介绍,它理解成评价一下这个网站,可见在理解语意的能力方面,还是与国外先进的AI模型有差别,

另外就是能反应开发人员和公司的品行的东西,你细品为什么是这样,

 

 

  • 本来想用 字节跳动豆包ai写一个网站的介绍,却被污蔑为恶意网站
  • 本来想用 字节跳动豆包ai写一个网站的介绍,却被污蔑为恶意网站
install redis for php 8.1 8.2 configure: error: C preprocessor "/lib/cpp" fails sanity check
Author : Anonymous Publish Time : 10 Nov 2024 05:57:27

configure: error: in `/var/tmp/pear-build-rootw5cIJm/redis-6.0.2':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

 

the most esay way to install php redis is dnf/yum but it's not avaible for centos stream 9

so we use source code or pecl

pecl install redis
PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading redis-6.0.2.tgz ...
Starting to download redis-6.0.2.tgz (365,966 bytes)
..........................................................................done: 365,966 bytes
43 source files, building
running: phpize
Configuring for:
PHP Api Version:         20220829
Zend Module Api No:      20220829
Zend Extension Api No:   420220829
enable igbinary serializer support? [no] :
enable lzf compression support? [no] :
enable zstd compression support? [no] :
enable msgpack serializer support? [no] :
enable lz4 compression? [no] :
use system liblz4? [yes] :
building in /var/tmp/pear-build-rootw5cIJm/redis-6.0.2
running: /var/tmp/redis/configure --with-php-config=/usr/bin/php-config --enable-redis-igbinary=no --enable-redis-lzf=no --enable-redis-zstd=no --enable-redis-msgpack=no --enable-redis-lz4=no --with-liblz4
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/var/tmp/pear-build-rootw5cIJm/redis-6.0.2':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
ERROR: `/var/tmp/redis/configure --with-php-config=/usr/bin/php-config --enable-redis-igbinary=no --enable-redis-lzf=no --enable-redis-zstd=no --enable-redis-msgpack=no --enable-redis-lz4=no --with-liblz4' failed

 

how to fix this  

finally i got the answer ,

you should install 

dnf install kernel-headers

how to develop multiple yii3 apps in the same folder just like yii2 advance demo
Author : Anonymous Publish Time : 10 Nov 2024 05:36:54

 

yes, this site was developed by Yii3

https://www.tianex.com

 

if you want to  develop multiple yii3 apps in the same folder,just like yii2 advance demo

we have a solution

the idea is filter the url accessed  to the different app(instance) and load different config files

1. move the yii3 demo config files to a subfolder of config ,maybe frontend

if you want to add backend just copy frontend files to backend

if you need the app frontend and backend ,the config should includ 2 subfolders 

config/frontend, config/backend

and modify the .merge-plan.php file in each app config folder

from  

return [
    '/' => [

to 

return [
    '/frontend (or othe app name)' => [

make sure it can load the right vender libs

 

2.modify the public/index.php to forward access to the different apps,

such as https://www.tianexcom/backend to load config/backend config files,

$request_uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

$_ENV['YII_ENV'] = '/frontend';
 
if (!empty($request_uri)) {
    if (str_starts_with($request_uri, '/backend')) {
        $_ENV['YII_ENV'] = '/backend';

}

 

to do this, you also need to mody the 

vendor\yiisoft\yii-runner\src\ApplicationRunner.php
 protected function createDefaultConfig(): Config
    {
        return ConfigFactory::create(new ConfigPaths($this->rootPath, 'config'.$this->environment), $this->environment);
    }