[php]thinkphp后台新增配置项后显示出错(CONFIG_GROUP_LIST)
使用thinkphp的过程中,一直纳闷一个问题: 在配置文件中新增一行数据后,往往管理页面就正常获取不到配置表了。 仔细追踪之下发现 C('CONFIG_GROUP_LIST'] 这种基本的功能都返回的空值。 再往前看时,发现 AdminController.class.php 中对配置缓存有一个初始化过程: $config = S('DB_CONFIG_DATA'); C($config); 然而这里的S方法确没能正确获取数据库数据。 S方法起到一个数据库缓存读写的作用...标签: php
[JS]漂亮的chart.js实例——js图表
<div style="width:600px; height:450px;"> <canvas id="canvas"></canvas> </div> <script type="text/javascript" src="Chart.min.js"></script> <script type="text/javascript"> var ctx = new Chart(document.getElementById("canvas").getContext("2d")); var op...标签: JS
[C]Safari对websocket的支持及websocket版本问题的解决记
昨天有人反应苹果手机不能访问我的物联网项目,我大惊,立马开始分析。 发现果然苹果端的safari连接websocket失败了。但是我确信之前一直用着好好的。可能是贱贱的A厂悄悄变更了某些软件吧,没办法,谁让世人都称他是老大,谁让你们那么多人没有iPhone不行呢。我只好认为我自己的服务器有问题了。 于是检查服务器的日志,发现websocket的握手过程显示协议错误。 那么我抓包分析下safari与其他浏览器的行为有什么不一样吧: 这是Google: Sec-WebSocket-Key:GX2sEWmKLhgktWvslt8xxw== Sec-WebSocket...[embedded]Port mqtt client to arm platform
1.Build openssl. Download openssl-1.0.2.tar.gz tar openssl-1.0.2.tar.gz cd openssl-1.0.2 vi Makefile, let: CC = arm-linux-gcc AR = arm-linux-ar RANLIB = arm-linux-ranlib INSTALLTOP = /home/nicholas/workspace/project/mosquitto/run/for_arm/openssl_install OPE...标签: embedded
[C#]Connect to sql server
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; namespace ConsoleApplication1 { class Program { static void test() { SqlConnection con = new SqlConnection(); con.ConnectionString =...标签: C#
[embedded]audio: /dev/dsp: No such file or directory
madplay移植成功了之后可以播放第一支曲子了,于是 madplay /home/music/nic.mp3 可是,竟然出现: audio: /dev/dsp: No such file or directory 如果出现上述错误,想必是驱动的问题, 对于Embedded的驱动看了下配置: <*>Device Drivers---> <*>sound card support ---> &...标签: embedded
[embedded]Port madplay to embedded system
1.Prepare tar packages: libid3tag-0.15.1b.tar.gz libmad-0.15.1b.tar.gz madplay-0.15.2b.tar.gz zlib-1.2.3.tar.bz2 2.Install zlib cd zlib-1.2.3 ./configure -shared --prefix=/usr/local/madplay/zlib-1.2.3 vi Makefile CC=arm-Linux-gcc LDSHARED=arm-linux-gcc -shared -W1,-soname,libz.so.1 CPP=...标签: embedded
[embedded]How to install NFS on ubuntu
1.Install. sudo apt-get install nfs-kernel-server 2.Config. vim /etc/exports Add a line to the end of file. /home/nicholas/.../busybox/busybox-1.13.3/_install *(rw,sync,no_root_squash,no_subtree_check) 3.Restart. /etc/init.d/nfs-kernel-server restart标签: embedded
[embedded]How to build phonon for arm
1.Go to library directory of arm qt first. cd qt-everywhere-opensource-src-4.8.6-arm/src/phonon 2.Here you can find that the true code is not in the directory by phonon.pro 3.But you can build as well. make make install 4.Head and library files will be insta...标签: embedded
[embedded]The first program about gstreamer like "Hello world"
1.Install gstreamer librarys. But in my system its version is 0.10. gstreamer1-devel gstreamer1-plugins-base-tools gstreamer1-devel-docs gstreamer1-plugins-base-devel gstreamer1-plugins-base-devel-docs gstreamer1-plugins-good gstreamer1-plugins-good-extras gstreamer1-plugins-ugly gstreamer1-plu...标签: embedded
日历
最新微语
- 有的时候,会站在分叉路口,不知道向左还是右
2023-12-26 15:34
- 繁花乱开,鸟雀逐风。心自宁静,纷扰不闻。
2023-03-14 09:56
- 对于不可控的事,我们保持乐观,对于可控的事情,我们保持谨慎。
2023-02-09 11:03
- 小时候,
暑假意味着无忧无虑地玩很长一段时间,
节假意味着好吃好喝还有很多长期不见的小朋友来玩...
长大后,
这是女儿第一个暑假,
一个半月...
2022-07-11 08:54
- Watching the autumn leaves falling as you grow older together
2018-10-25 09:45
分类
最新评论
- Goonog
i get it now :) - 萧
@Fluzak:The web host... - Fluzak
Nice blog here! Also... - Albertarive
In my opinion you co... - ChesterHep
What does it plan? - ChesterHep
No, opposite. - mojoheadz
Everything is OK!... - Josephmaigh
I just want to say t... - ChesterHep
What good topic - AnthonyBub
Certainly, never it ...