IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    love 0
    robin
    发表于
    2023-12-11 10:38:22

    2023 re:Invent 用 Amazon Q 打造你的知识库

    前言随着 ChatGPT 的问世,我们迎来了许多创新和变革的机会。一年一度的亚马逊云科技大会 re:Invent 也带来了许多前言的技术,其中 AWS CEO Adam Selipsky 在 2023 re:Invent 大会中介绍 Amazon Q 让我印象深刻,这预示着生成式 AI 的又一个里程碑。在本文中,我们将探讨 Amazon Q 是什么以及它能为我们做些什么。我们还将详细介绍如何使用 Amazon Q 来构建知识库,并分享一些实际案例。无论是个人学习,还是团队协作,Amazon Q 都将是您的理想之选。让我们一起深入了解 Amazon Q,并探索如何在知识库建设中充分发挥其潜力。Amazon Q 是什么Amazon Q 是一款基于生成式人工智能的助手,通过连接如代码仓库、网址、数据库、文档、email等各种信息库来帮助企业或者个人以自然语言对话的方式,提供历史数据检索、摘要生成、内容撰写等。Amazon Q 与通用生成式 AI 的区别通用的生成式 AI 最大问题在于内容来源于互联网的公开数据,无法针对特定的数据源进行训练,比如无法跟企业内部数据,业务相结合,也无法满足个人的个性化需求,记得当时玩 ChatGPT遇到最大的问题在于数据源的限制,为了让 ChatGPT 学习某个特定的技能,需要将内容拆分再提供给 ChatGPT 学习,这大大限制了生成式 AI 的能力。因此 ...继续阅读 (146)


    love 0
    XboxYan
    发表于
    2023-12-11 10:00:00

    了解一下全新进化的CSS linear缓冲函数

    欢迎关注我的公众号:前端侦探现实生活中,物体并不是突然启动或者停止, 当然也不可能一直保持匀速移动。就像我们 打开抽屉的过程那样,刚开始拉的那一下动作很快, 但是当抽屉被拉出来之后我们会不自觉的放慢动作。 或是掉落在地板上的物体,一开始下降的速度很快, 接着就会在地板上来回反弹直到停止今天就来介绍一下Chrome 113+全新推出的linear缓冲函数。一、目前CSS缓冲函数的局限性提到 CSS 运动缓冲函数,你可能会想到以下几种linear:线性steps:阶段ease-in:淡入,先慢后快ease-out:淡出,先慢后快ease-in-out:淡入淡出,先慢后快,再变慢cubic-bezier():贝塞尔曲线其中,cubic-bezier比较灵活,可以通过 4 个参数,来改变整个运动状态。下面是一个大家可能都知道的网站,可以通过拖拽实时生成缓冲函数https://cubic-bezier.com/效果如下可以说以上CSS所有的内置缓冲函数都可以用cubic-bezier()来表示,比如cubic-bezier(0,0,1,1) /*等同于*/ linear如下所示虽然cubic-bezier非常强大,可以做很多运动函数,比如在这个网站的前几行都可以用cubic-bezier来实现https://easings.net但是,问题在于cubic-bezier表示 3 次贝塞尔曲线, ...继续阅读 (113)


    love 0
    xuan
    发表于
    2023-12-11 09:16:27

    5454 Aluminum Plate for Oil Tankers

    At present,carbon metal and aluminum alloy are two not unusual material for making oil tankers. For tank vehicles underneath 10 lots, carbon metal may be a proper preference. Automobiles with this extent are commonly used for mobile refueling and haven't any fear for obese.For gas tankers of of greater than 10 lots, aluminum alloy is commonly better. It may substantially reduce the burden of the tank truck, fuel expenses and pollution. Aluminum plate for oil tankers make use of its homes inclusive of low density, excessive mechanical residences, correct electrical conductivity, strong corrosio ...继续阅读 (157)


    love 0
    Philippe Bouchard
    发表于
    2023-12-11 09:01:00

    Savoir choisir les meilleurs matériaux pour une isolation de vitre efficace

    L’isolation vitrée est un sujet essentiel tant lors de la construction que lors de la rénovation d’une maison. Mais comment choisir les meilleurs matériaux pour une isolation vitre efficace? Cet article a le but de dévoiler les options disponibles et de vous aider à faire le meilleur choix en tenant compte de vos besoins spécifiques. […]The postSavoir choisir les meilleurs matériaux pour une isolation de vitre efficaceappeared first onInfos et culture du Net. ...继续阅读 (107)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:33

    PHP cURL 超时设置 CURLOPT_CONNECTTIMEOUT 和 CURLOPT_TIMEOUT 的区别

    PHP cURL 的超时设置有两个 CURLOPT_CONNECTTIMEOUT 和 CURLOPT_TIMEOUT,他们的区别是:CURLOPT_CONNECTTIMEOUT用来告诉 PHP 在成功连接服务器前等待多久(连接成功之后就会开始缓冲输出),这个参数是为了应对目标服务器的过载,下线,或者崩溃等可能状况。CURLOPT_TIMEOUT用来告诉成功 PHP 从服务器接收缓冲完成前需要等待多长时间,如果目标是个巨大的文件,生成内容速度过慢或者链路速度过慢,这个参数就会很有用。使用 cURL 下载 MP3 文件是一个对开发人员来说不错的例子,CURLOPT_CONNECTTIMEOUT 可以设置为10秒,标识如果服务器10秒内没有响应,脚本就会断开连接,CURLOPT_TIMEOUT 可以设置为100秒,如果MP3文件100秒内没有下载完成,脚本将会断开连接。需要注意的是:CURLOPT_TIMEOUT 默认为0,意思是永远不会断开链接。所以不设置的话,可能因为链接太慢,会把 HTTP 资源用完。在 WordPress 中,wp_http 类,这两个值是一样的,默认是设置为 5 秒。©WordPress果酱/RSS 订阅/长期承接 WordPress 项目 ...继续阅读 (193)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:32

    PHP Curl 中如何分离 headers 和 body 信息

    在 PHP 中可以我们通过 Curl 来获取远程网站的数据,同时可以获取到 HTTP Response 的 headers 和 body,它们会一同作为结果返回,这时需要我们自己来分离它们。我们可以通过 Curl 自带的curl_getinfo()方法获取头的长度,然后使用substr来分割字符串:$url = "http://blog.wpjam.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, TRUE); //表示需要response header curl_setopt($ch, CURLOPT_NOBODY, FALSE); //表示需要response body curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $response = curl_exec($ch); if (curl_getinfo($ch, CURLINFO_HTTP_CODE) == '200') { $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); $headers = substr($response, 0, $hea ...继续阅读 (220)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:30

    Apache 和 PHP 如何开启 gzip 压缩

    网页开启 gzip 压缩以后,其体积可以减小 60%~90%,可以节省下大量的带宽与用户等待时间,下图就是我爱水煮鱼首页经过 gzip 压缩之后的比例。由于网站的 CSS/JS/图片 等静态资源我们已经使用阿里云进行 CDN 加速,而阿里云已经实现了 gzip 压缩,所以如果网站的 PHP 生成的内容也可以实现 gzip 压缩,则整站即可实现 gzip 压缩。下面我就从 Apache 服务器,PHP 等方面去讲解下如何开启 gzip 压缩:Apache 开启 gzip 压缩首先确保你的 Apache 已经加载了 mod_deflate 模块,然后在 httpd.conf 代码中加载以下代码:AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/json application/x-httpd-php application/x-javascript如果你没有权限修改你的主机,你也可以将以上代码复制到网站根目录的 .htaccess 文件。PHP 开启 gzip 压缩如果修改 Apache httpd.conf 文件无效,则可以通过修改 PHP 的 php.ini 方法:打开 PHP 目录下的 php.ini 文件,找到zlib.output_compression = Of ...继续阅读 (207)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:29

    PHP 基于 Mcrypt 的加密解密简单类

    最近的一个项目项目中需要对 Cookie 加密,所以使用到了 Mcrypt 的方法进行加密解密的工作,于是我就整理成一个简单的类,以后直接简单调用类实现即可。Mcrypt 介绍Mcrypt 是 PHP 的一个扩展,完成了常用加密算法的封装,mcrypt 库提供了对多种块算法的支持, 包括:DES,TripleDES,Blowfish (默认), 3-WAY,SAFER-SK64,SAFER-SK128,TWOFISH,TEA,RC2 以及 GOST,并且支持 CBC,OFB,CFB 和 ECB 密码模式。 甚至它还支持诸如 RC6 和 IDEA 这两种“非免费”的算法。可以使用mcrypt_list_modes()函数列出当前环境支持的模式,以及使用mcrypt_list_algorithms()列出当前环境支持的算法。简单的 Mcrypt 的加密解密类下面创建一个简单的类,默认使用 RIJNDAEL_256 算法和 ECB 模式,当然也可以传递其他的算法和模式进去。Class WPJAM_Mcrypt{ private $key; private $algorithm = MCRYPT_RIJNDAEL_256; private $algorithm_directory = ''; private $mode = MCRYPT_M ...继续阅读 (192)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:27

    PHP 如何向关联数组指定的 Key 之前插入元素

    PHP 关联数组可以通过三种方式插入新元素:$array[$insert_key] = $insert_value;$array = array_merge($array, $insert_array);$array = $array+$insert_array;但是如果要在指定的键之前插入元素呢?下面的代码将$data插入关联数组$array的键名为$key的 Key 之前:function wpjam_array_push($array, $data=null, $key=false){ $data = (array)$data; $offset = ($key===false)?false:array_search($key, array_keys($array)); $offset = ($offset)?$offset:false; if($offset){ return array_merge( array_slice($array, 0, $offset), $data, array_slice($array, $offset) ); }else{ // 没指定 $key 或者找不到,就直接加到末尾 return array_merge($array, $data); } }调用也很简单,比如下面在$columns的'au ...继续阅读 (214)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:26

    PHP 关联数组的十大使用技巧

    关联数组是 PHP 中使用最广泛的一种数据类型,PHP 内置多种操作关联数组的函数,对开发人员来说,要从中找出最有效,最合适自己所开发程序的方法来操纵这些数组。1、添加数组元素PHP是一种弱类型语言,这意味着你不需要显示声明一个数组及其大小,相反,你可以同时声明并填充数组。$weixin_card_types = array( 'DISCOUNT' =>'折扣券', 'CASH' =>'代金券', 'GIFT' =>'礼品券', )额外的数组元素可以象下面这样追加:$weixin_card_types['GROUPON'] = '团购券';如果正在处理数字索引数组,可能想使用明确的函数来前置和追加元素,如array_push()和array_unshift()函数,但这些函数不能操作关联数组。2、删除数组元素从关联数组中删除一个元素,请使用unset()函数,如:unset($weixin_card_types['GIFT']);使用数字索引数组时,删除数组元素的办法更多,更灵活,可以使用array_shift()和array_pop()函数分别从数组的开头和末尾删除一个元素。3、交换键和值 ...继续阅读 (202)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:24

    PHP 二维关联数组根据其中一个字段排序

    PHP 中二维关联数组如何根据其中一个字段进行排序,下面的代码将二维关联数组 $array 根据 $orderby 字段进行排序:function wpjam_array_multisort($array, $orderby, $order = SORT_ASC, $sort_flags = SORT_NUMERIC){ $refer = array(); foreach ($array as $key => $value) { $refer[$key] = $value[$orderby]; } array_multisort($refer, $order, $sort_flags, $array); return $array; }©WordPress果酱/RSS 订阅/长期承接 WordPress 项目 ...继续阅读 (197)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:23

    $_POST,$HTTP_RAW_POST_DATA 和 php://input 的区别

    PHP 7 已经取消了 $HTTP_RAW_POST_DATA,请用 php://input 代替。HTML标签的 enctype 属性首先来了解什么是标签的 enctype 属性,enctype 属性规定了在发送到服务器之前应该如何对表单数据进行编码,有三种类型:属性值描述application/x-www-form-urlencoded默认模式,在发送到服务器之前,所有字符都会进行编码(空格转换为 "+" 加号,特殊符号转换为 ASCII HEX 值)multipart/form-data不对字符编码,在使用包含文件上传控件的表单时,必须使用该值。text/plain空格转换为 "+" 加号,但不对特殊字符编码。当在网页提交了一个表单之后,可以使用三种 PHP 方式来获取 Post 数据:$_POST,$HTTP_RAW_POST_DATA 和 php://input,有什么区别呢?$_POST$_POST 是获取表单 POST 过来数据(body部分)的最常用方法,上传的文件信息使用 $_FILES 获取。$HTTP_RAW_POST_DATA当浏览器从表单发送 POST 请求的时候,默认的 media type 是 "application/x-www-form-urlencoded",意思就是字段名和值都编码了,每个 key-value 对使用 '&' 字符分隔开,ke ...继续阅读 (171)


    love 0
    Denis | 邓鸿华
    发表于
    2023-12-11 07:44:21

    PHP 5.6 如何使用 CURL 上传文件

    以前我们通过 PHP 的 cURL 上传文件是,是使用“@+文件全路径”的来实现的:curl_setopt(ch, CURLOPT_POSTFIELDS, array( 'file' => '@'.realpath('image.png'), ));PHP 从 5.5 开始引入了新的 CURLFile 类用来指向文件,CURLFile 类也可以详细定义 MIME 类型、文件名等可能出现在multipart/form-data 数据中的附加信息,PHP 推荐使用 CURLFile 替代旧的@语法,而PHP 5.6 直接只支持 CURLFile 方法。真的是让我欲哭无泪,我调试了 2天2夜,也怪我装逼一定要升级到 PHP5 的最新版,所以 PHP 5.6 使用 CURL 上传文件的代码:curl_setopt(ch, CURLOPT_POSTFIELDS, [ 'file' => new CURLFile(realpath('image.png')), ]);©WordPress果酱/RSS 订阅/长期承接 WordPress 项目 ...继续阅读 (188)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    如何备份和读取我的微信通讯录

    突发奇想会不会某一天因为微信账号被封导致我失去我的联系人带来不方便,今天备份了一次微信通讯录,当账号丢失时我还可以通过我的备份文件找到我的联系人。备份步骤使用 iTunes 也就是现在内置在 Finder 里面的 Device 里面了,不加密备份一次备份时间取决于你的设备数据大小,我的 iPhone 14 Pro 256GB 使用了 149GB,备份耗时 35 分钟。使用iPhone Backup Extractor的 Expert Mode 提取Applications/com.tencent.xin/Documents/[MD5 of Your Wechat ID]/DB/WCDB_Contact.sqlite文件使用DB Browser for SQLite打开刚刚 Extract 出来的WCDB_Contact.sqlite文件,选择 Friend 表,菜单栏中选择 File/Export/Table(s) as CSV File…为什么导出 CSV?请看我直接用DB Browser for SQLite打开看到的内容,很多字段是 BLOB 二进制类型,特别不直观,对于我们需要阅读和查找都非常不方便。特别是dbContactRemark字段,里面的格式很奇怪,包含 n 个 uniCode 字符 + 昵称 + 修改过的微信 id + 备注 + 拼音 等等解析、查询.CSV 内 ...继续阅读 (142)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Position Sticky in CSS

    position: stickyis a positioning property in CSS, which makes an element behave likeposition: fixedwhen the page is scrolled to a certain position, and behave likeposition: relativeat other positions. Specifically, the element will “stick” at the set position until the edge of its parent container reaches the corresponding edge of the “sticky” element.https://developer.mozilla.org/en-US/docs/Web/CSS/position#descriptionThe element is positioned according to the normal flow of the document, and then offset relative to its nearest scrolling ancestor and containing block (nearest block-level ance ...继续阅读 (180)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    2023秋末四川行

    前提我的时间很充足,但是我没有自驾经验。本次游览的景点之间没有高速公路且路程非常长,综合考虑选择了报团。原定计划是去稻城亚丁,考虑到亚丁的海拔比较高(4000m+),而且现在已经入冬,景色不如秋景,所以选择去九寨沟。为什么是去四川?没见过雪山,特别想看看雪山的样子,看雾凇,看瀑布。总结不要报团,不要报团,不要报团。这几个景点景色都很美,特别说明一下,九寨沟只有晴天美,毕棚沟票超所值。尽量选工作日出去玩,人会少点。如果报团了,团里的赠品(火锅)不要哈,是坑。交通不便,在路上很累,景点之间没有高速,走国道大卡车特别多,路上很多弯,晕车的别来下雪天的话,黄龙景区就别去了,门票贵不说,唯一一个特色景点五彩池是冻住的哈。本文内的图已压缩但未调色。拍照设备为 iPhone 14 Pro + Sony A7CM2 + Samyang FE35 1.8如果重来一次的话我的行程成都毕棚沟 2 天(住沟里娜姆湖酒店,慢慢逛,还可以看日照金山)成都行程日期行程2023.11.09上海出发 9 点起飞 =>成都☀️ 15°C ~ 21°C2023.11.10 ~ 2023.11.134 天 3 夜 景区行程2023.11.14成都出发 8 点起飞 =>上海☀️ 7°C ~ 14°CDay1成都☁️ 12°C ~ 20°C汶川☀️ 3°C ~ 10°C毕棚沟☀️ -3°C ~ 7°C黑水☀️ -3°C ~ ...继续阅读 (158)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    How to Deploy Next.js Project on Plesk

    Plesk supports node.js projects however it requires a entry.js file for launching. This is not the way we start our next.js project, so here are some tiny adjustments to run our next.js project on plesk.Project InitializationUsually we use git to pull our projects, I assume you already know how to download you project files to your plesk vhost.If Node.js were not installed, clickInstall Applicationto install it.Node.js SetupNode.js version, I Choosed 16.20Package manager,npmoryarnare both fineDocument root, this is where node.js reads compiled static files, it would be/DOMAIN_NAME/.next/static ...继续阅读 (158)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Ways Of Image Compression For Web Developer

    Web Page / PWAhttps://tiny.comBest compression tool for.pngimages.Should be noticed that imageswill be uploaded to tinypng’s server.https://squoosh.appSquoosh is developed by Google Chome Lab team, once loaded it runstotally offline. With WebAssembly integration, multiple de/encoders are available for choosing.Also, you can customize options for compression, very convenient.CLIimagemin-cli1234567891011121314151617181920$imagemin --helpUsage$ imagemin... --out-dir=build [--plugin=...]$ imagemin>$ cat| imagemin >Options--plugin, -p Override the default plugins--out-dir, -o Output directoryExa ...继续阅读 (147)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    How Do I Learn to Be a Better Developer

    In July 2023, it has been 5 years since I graduated from college. Over these years, I have held 2 jobs which have provided me with significant growth opportunities. Here are some key points helped me a lot.Understand the Product You DevelopAs a developer, it is essential to have a deep understanding of the product you are developing. Understand the product’s features and objectives, clarify the problems the product solves, and its positioning in the market. Only by doing so can you better understand user needs, grasp the core functions and key points of the product, and provide constructive su ...继续阅读 (149)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Use Gyro Data to Make Your React App More Interactive

    Cover Image Credit:https://unsplash.com/photos/uCPHkM2bnaIhttps://trekhleb.dev/blog/2021/gyro-web/In Javascript you may access your device orientation data by listening to the deviceorientation event. It is as easy as the following:12345678window.addEventListener("deviceorientation", handleOrientation);functionhandleOrientation(event) {constalpha = event.alpha;constbeta = event.beta;constgamma = event.gamma;// Do stuff...}This Demo Can Be Visited In HereThe demo video was compressed byhttps://clideo.com/from 4.3MB to 93KB, that’s impressive.To achieve the effect above, we need to dis ...继续阅读 (145)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Getting Started With WebAssembly

    What Is WebAssembly?WebAssembly(abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.WebAssemblyis a new type of code that can be run in modern web browsers — it is a low-level assembly-like language with a compact binary format that runs with near-native performance and provides languages such as C/C++, C# and Rust with a compilation target so that they can run on the web. It is also designed to run alongside JavaScript, ...继续阅读 (158)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Some Thoughts So Far - 2023

    今年需要做什么事情?保持健康,保持乐观:)换身份证直接在上海的派出所就可以办了,前提是需在随申办上填一下居住登记。15 个工作日可以直接去派出所拿新证或者选择邮寄(需要自付邮费)。换驾照打开12123查看附近的可以进行驾驶证换证体检的医院,然后去对应医院挂号体检,医生会上传体检记录到12123,此时可以进入12123 App进行换证操作。这个操作我重复了8次才完成,总是提示网络错误。手术&恢复身体手术已经完成啦,有一种开始了第二次生命的感觉。Ps. 麻醉的时候完全没有知觉,仿佛自己不存在了,连梦境也没有。办护照准备去公安局办,门口大爷说办护照需要去行政服务中心。去了行政服务中心以后取号办护照,民警给了一张单子,需要到村里和镇上依次盖章同意才可以办理。出来上海以后在随申办小程序进行了护照申领预约,然后过去预约的出入境管理局拍照,窗口签字,等待 10 个工作日再到出入境管理局领取护照。办港澳通行证很简单,民警几分钟就指导资料填写和照片采集了。花费 60 元 + 15 元香港签注 + 15 元澳门签注费用。通行证制作完成以后会使用 EMS 到付邮寄到申请的时候填写的邮寄地址。我是星期一办的,星期天收到 EMS 到付件送来的通行证卡片。失业登记&失业保险金领取失业当月是无法在随申办小程序上进行失业登记的,会提示读取个人信息出错,在次月 15 日再登记即可。一次申领最多可以申领 3 个月(按 ...继续阅读 (142)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Create a Color Picker With Vanilla JavaScript

    The RGB color mode is a color model formed by combining three primary colors: red, green, and blue. It can be used to describe the colors we see in a digital way, where the intensity of each color is represented by a number between 0 and 255. Therefore, we can know the value of each color in RGB.![](https://article-assets.lynan.cn/color-picker-761d98.png)Click Here to Color PickerObtaining and processing color dataStep1. Raw DataWe can obtain some color data and their English names fromRGB to Color Name Mapping (Triplet and Hex). Next, let’s process it. Run the following lines of code in the c ...继续阅读 (151)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    5 Ways to Preload Images in Web Applications

    With the increasingly rich API of web applications and improved device performance, user experience (UX) can be optimized by preloading images. This article introduces several ways to preload images in web applications.PrinciplesWeb applications function based on HTTP/HTTPS. Preloading involves writing the resources needed for a web page into the browser or disk cache, allowing the page to read from the cache directly when the resources are needed.When Do We Need PreloadingPreloading is particularly useful in the following scenarios:Opening a popup window with a background image via user inter ...继续阅读 (157)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    NanoPi R2S 折腾记

    最新更新放弃了。换了GLiNet-MT3000解锁可以使用这个脚本官方 wikiNanoPi R2S/zh - FriendlyELEC WiKiWAN 口 还是 LAN 口,什么用?记住一点,LAN 口是连接使用设备的口,WAN 口是连接外部网络的口心中就有数了。这一点也可以从他们的全称感知到:Local Area Network(局域网)和Wide Area Network)(广域网)。所以 LAN 口连接的是电脑、手机、交换机或者用来发送无线信号的路由器(AP),WAN 口连接光猫、宽带线路。固件选择ext4:固件文件名中带有 ext4 字样的文件为搭载 ext4 文件系统固件 ext4 格式的固件更适合熟悉 Linux 系统的用户使用,在 Linux 下可以比较方便地调整 ext4 分区的大小;squashfs:固件文件名中带有 squashfs 字样的文件为搭载 squashfs 文件系统固件而 squashfs 格式的固件适用于“不折腾” 的用户,其优点是可以比较方便地进行系统还原哪怕你一不小心玩坏固件,只要还能进入控制面板或 SSH 就可以很方便地进行“系统还原操作”。immortalWRT刷了 ext4 和 squooshfs 都进不去系统,放弃。iStoreOS用一段时间 DHCP 会挂掉,放弃。YAOF正在用,已经运行了半个月了,看来是最稳定的,没有重启,没有掉 ...继续阅读 (151)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Gardening Records

    大学时候在宿舍阳台种的草莓刚买的时候好小一颗呢,好像花了 5 块钱(P1),过了一个月开花了(P2),又过了一个月,果实成熟了(P3)最后呢果实当然是被我吃掉了,闻着好香好香。其实结了好多果,但是最后只有我一个人吃,可能是我的舍友不好意思。火龙果把火龙果的籽播撒几颗,就长出小仙人掌 🌵牵牛花想种它让他狂野生长爬满我的窗,但是它似乎太弱小了。栀子花好可惜,里面有蚂蚁窝,被我养死了 :(杜鹃花粉色的,全年都在开花,19 年购买的,20 年初疫情一个多月没有出来,没有人为它浇水,干死了 :(月季在淘宝买过宿迁发货的月季,被我养死了 :(21 年来上海了,打算买一盆果汁阳台,结果卖家发错货了,发了乐柏,和卖家反馈以后,重新给我发了一盆果汁阳台 :)五一回家的时候,买了一棵紫罗兰,种在门口,当时带着一朵花苞,种下第二天就开花了(P1)。2022 年上海疫情,五一没回去,22 年五一回去的时候开得可旺盛了(P2、P3)。今年又种了 4 棵月季,每周打电话给奶奶我都问问长得怎么样了,开花没,奶奶看见开花也高兴。 ...继续阅读 (145)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Lyrics Of \'All Fall Down\' By Jenny March

    Billy Billy flew from PhillyTo LA to make his millionsBeing a starWrote his verses on a napkinKnows for sure his dreams will happenWhile sleeps in his carBut he’s got no labels calling his phoneGot his parents ain’t come back homeAll his plans up in smokeHe’s falling down falling downSo he sells the strings and his guitarFor a one way ticket to PensilveniaAnd it’s too late nowCan’t turn aroundHe’s heading back home on a GreyhoundAnd we all fall downYeah we all fall downBut you get back on your feet againOn your feet againWe all fall downNow and thenMary Mary ordinaryGot herself in quite contra ...继续阅读 (150)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Optimizing Unnecessary Requests

    Take a look at this ⬇️On this page, we have 3 buttons to fetch 3 different sets of asynchronous callback data. The same container is used to display the data below. When buttons 2 and 3 are quickly clicked, the asynchronous request for button 2 is still pending while the request for button 3 has been sent. Once the callback for button 2 is complete, the data for button 2 is displayed below. After a while, when the callback for button 3 is complete, the data is replaced with the corresponding data for button 3.Optimization Method 1Set a flag to indicate which button callback needs to be display ...继续阅读 (156)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    Strapi创建Content Api自定义GraphQL接口

    上一篇文章介绍了使用 Strapi 创建 Content Api 的过程,这里简要写一下生成一个自定义的 GraphQL Content Api。1.创建 GraphQL SchemaSchema 文件路径/api/movie/config/schema.graphql.jsSchema example1234567891011121314151617module.exports = {query: `moviesCount(where: JSON): Int!`,resolver: {Query: {moviesCount: {description: "Return the count of movies",resolverOf: "application::movie.movie.count",resolver: async (obj, options, ctx) => {return await strapi.query("movie").count(options.where || {});},},},},};2.查询Query moviesCount123{moviesCount}注意:如果返回 403Forbidden,需要在设置 ...继续阅读 (155)


    love 0
    Lynan
    发表于
    2023-12-11 06:26:08

    一些个人的生活经验

    租房:签合同时确认房东房屋所属权,避免二房东的情况。看房时打开每一个见到的水龙头观察一下,看看水压大不大,如果白天水压也很小,那么晚上也没办法洗个痛快澡。检查灯具、空调、热水器洗衣机等家电是否能够正常打开。观察噪音来源和分贝是否过大会影响正常休息。观察房屋户型,选择两边都有窗户可以使空气对流的户型。选择中上位置的楼层。选择梯户较少的房屋,避免人员复杂以及等电梯过久的问题。检查燃气开关是否正常,燃气灶炉是否可以正常打开。看房时闻一闻甲醛,刚装修的房子不要租,甲醛重。选择带阳台的房屋。入住的时候更换新的花洒和连着花洒的那根水管,更换新的马桶盖(圈)。生活:芒果买熟的,自己催熟慢。榴莲买熟的,自己催熟慢。买草莓的时候观察茎蒂位置是白色还是红色,白的是没成熟的草莓,酸。晒床单被单可以使用衣架配合夹子。买一个米家的 wifi 插座,热水器插在上面,自动设置热水器开启时段,避免一整天都烧水浪费不必要的电。买一个米家的 wifi 插座,插在台灯上,设置开启时段,每天下班回家都有盏温暖的灯在等你回家。宜家的穆利格挂衣服很好用。宜家的脏衣篮很好用。买一套纯棉的床上三件套,越用越软。种一盆小花。微博上看到的:买一件东西犹豫的时候,如果是因为价钱贵舍不得买那就买,如果纯粹是因为便宜,不买。对我很有用。旧衣服可以送去 H&M;、优衣库回收。使用一次性的纯棉洗脸巾,可以避免湿毛巾上的细菌导致的皮肤问题。昂, ...继续阅读 (139)

上一页 447/4404 下一页
沪ICP备19023445号-2号
友情链接