活到老学到老  

记录遇到问题的点点滴滴。

0

SQL:SHOW KEYS FROM table WHERE Key_name = 'PRIMARY'

7年前发布  · 1131 次阅读
0

遇到了 SQLException: access denied for  @'localhost' (using password: no) 解决办法  grant all privileges on *.* to joe@localhost identified by '1'; flush privileges; 拿  joe    1...

7年前发布  · 1632 次阅读
  grant 
0

通过select使用别名aliasSELECT SUM(field1 + field2) AS col1, (select col1) + field3 AS col3 from core

7年前发布  · 1633 次阅读
  mysql  alias  select 
0

When deep $watch is needed on an array, but not for the entire object, you can strip off irrelevant data, this way you make the comparison much faster.$scope.$watch(funct...

7年前发布  · 943 次阅读
0

在开发呼叫中心的过程中要播放语音,要把自己录制的语音的wav格式转换为gsm格式,asterisk中也支持wav格式,但是不清楚为什么wav文件大一些就无法播放,所以只有转换为gsm格式。命令 :sox 00.wav -r 8000 -c 1 00.gsm resample -ql下面的是在网上找到的一篇文章 文章来源 Sox是最为著名的...

7年前发布  · 2014 次阅读
  sox 
0

Binary ReleasesPrebuilt Packages for Linux and BSDMost Linux distributions and BSD variants have NGINX in the usual package repositories and they can be installed via wha...

7年前发布  · 1424 次阅读
  install 
0

MySQL is an open source free relational database management system (RDBMS) released under GNU (General Public License). It is used to run multiple databases on any single...

7年前发布  · 1274 次阅读
  install 
0

PHP 7.1.1 has been released on PHP.net on 19th January 2017, and is also available for CentOS/RHEL 6.8 and 7.2 at Webtatic via Yum in it’s testing repository.PEAR install...

7年前发布  · 2086 次阅读
  install 
0

Thanks to Wandisco, which is maintaining the rpm packages for latest Subversion version. This article will help you to install subversion 1.9 ( svn client ) on CentOS/RHE...

7年前发布  · 1947 次阅读
0

开启80端口firewall-cmd --zone=public --add-port=80/tcp --permanent出现success表明添加成功命令含义:--zone #作用域--add-port=80/tcp  #添加端口,格式为:端口/通讯协议--permanent   #永久生效,没有此参数重启后失效重启防火墙system...

7年前发布  · 1045 次阅读
0

    购物车相当于现实中超市的购物车,不同的是一个是实体车,一个是虚拟车而已。用户可以在购物网站的不同页面之间跳转,以选购自己喜爱的商品,点击购买时,该商品就自动保存到你的购物车中,重复选购后,最后将选中的所有商品放在购物车中统一到付款台结账,这也是尽量让客户体验到现实生活中购物的感觉。服务器通过追踪每个用户的行动,以保证在结账时每件商...

7年前发布  · 2298 次阅读
0

  这些天应朋友的要求抓取某个论坛帖子的信息,网上搜索了一下开源的爬虫资料,看了许多对于开源爬虫的比较发现开源爬虫scrapy比较好用。但是以前一直用的java和php,对python不熟悉,于是花一天时间粗略了解了一遍python的基础知识。然后就开干了,没想到的配置一个运行环境就花了我一天时间。下面记录下安装和配置scrapy踩过的那...

7年前发布  · 2187 次阅读
0

解释以下rgba    rgba的含义,r代表red,g代表green,b代表blue,a代表透明度。       rgba(0,0,0,.5) 这样就代表了黑色,透明度为0.5 要想解决在IE8下的透明度问题,可以增加这样一句话:filter:progid:DXImageTransform.Microsoft.gradient(star...

7年前发布  · 889 次阅读
0

在web开发的时候我们经常会遇到网页抓取和分析,各种语言都可以完成这个功能。我喜欢用python实现,因为python提供了很多成熟的模块,可以很方便的实现网页抓取。但是在抓取过程中会遇到编码的问题,那今天我们来看一下如何判断网页的编码:网上很多网页的编码格式都不一样,大体上是GBK,GB2312,UTF-8等。我们在获取网页的的数据后,...

7年前发布  · 1265 次阅读
0

精度为5%的碳膜电阻,以欧姆为单位的标称值: 1.0     5.6     33      160      820       3.9K      20K      100K      510K      2.7M 1.1     6.2     36      180      910       4.3K      22K    ...

7年前发布  · 1265 次阅读
0

python中 getopt 模块,该模块是专门用来处理命令行参数的函数getopt(args, shortopts, longopts = [])参数args一般是sys.argv[1:]shortopts 短格式 (-)longopts 长格式(--) 命令行中输入:python test.py -i 127.0.0.1 -p 80...

7年前发布  · 874 次阅读
0

#coding:utf-8 #两个小函数 #一、查找字符在字符串中第一次出现的位置. def find(string, char): index = 0 while index < len(string): if (string[index] == char): return...

7年前发布  · 877 次阅读
0

#coding:utf-8 #字符串的操作 #使用中括号[]可以从字符串中取出任一个连续的字符 #注意:中括号内表达式是字符串的索引,它表示字符在字符串内的位置, #中括号内字符串第一个字符的索引是0,而不是1 #len返回字符串的长度 test_string = "1234567890" print test_string[0]...

7年前发布  · 831 次阅读
0

#coding:utf-8 def testReturn(x): if x > 10000: return print "test return!!" #这句话永远不会得到执行 elif x > 1000: return 100 elif x &g...

7年前发布  · 1135 次阅读
0

#coding:utf-8 #下面的函数用来计算偶数的数量 def NumberOfEven(x): count = 0 while(x): if (x % 2 == 0): count += 1 x -= 1 return count print Nu...

7年前发布  · 889 次阅读