Chapter1 and Chapter2方法定义:def methodName(param1: ParamType, param2: ParamType2, [maybe more]): ReturnType = { // method body}函数式编程中一个约定俗成的说法就是,方法会返回一....
分类:
其他好文 时间:
2014-06-25 19:15:35
阅读次数:
205
/*首页调用指定分类下的销售排行*/function get_cats_top10($cat = ''){ $sql = 'SELECT cat_id, cat_name ' . 'FROM ' . $GLOBALS['ecs']->table('category') . "WHE...
分类:
其他好文 时间:
2014-06-25 17:04:26
阅读次数:
231
【UIRoot】 It's responsible for keeping the scale of the UI somewhat more manageable. UIRoot被放置在场景的根节点,用于决定整个NGUI层次如何绽放。因为子结点会跟随父结点绽放。 Scaling Style有...
分类:
其他好文 时间:
2014-06-25 15:30:19
阅读次数:
161
这几天百度的结果,总结一下举例说明:某网站提供发送短信接口业务接口:SERVICE_URL变量参数:username,pwd,mobiles,content返回:resultcode1、构建发送的xml或者其他形式的请求stringpostData=string.Format("ActionCode...
分类:
Web程序 时间:
2014-06-25 15:12:11
阅读次数:
230
开发+运行第一个Mahout的程序代码:/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file di....
分类:
其他好文 时间:
2014-06-25 14:54:25
阅读次数:
328
原文 http://www.azure.com.cn/default.asp?cat=11&page=2Parallax Mapping 就是通过高度图中的高度,对纹理坐标进行偏移,来视觉上欺骗观察者,产生很有凸凹感个幻觉。uniform vec3 fvLightPosition;uniform v...
分类:
移动开发 时间:
2014-06-25 13:40:31
阅读次数:
242
最近网站出现 User 数据库名称 has already more than 'max_user_connections' active connections 的报错,网站瘫痪。有必要研究下这个问题。max_user_connections 是 MySQL 用户连接数的最大值设置,整段语句的意思...
分类:
数据库 时间:
2014-06-25 11:06:23
阅读次数:
246
Well , you know. As a college student who want to find a good job after graduating like me , scores are not that important. I just want to have some low scores which can help me graduate successfully...
分类:
其他好文 时间:
2014-06-25 09:59:37
阅读次数:
202
在linux下如何终止用户会话?公司使用的监控工具是cacti,在阈值里的设置是当已登录用户超过2个的时候就会报警。那么,我的疑问就出来了,如何终止多于的用户会话呢?我自己又是哪个用户会话呢,总不能自己把自己给终止会话了吧。第一步:查看哪些IP在操作服务器,who命令[roo..
分类:
系统相关 时间:
2014-06-25 06:29:38
阅读次数:
293
常用命令整理如下:查看主板的序列号:dmidecode|grep-i’serialnumber’用硬件检测程序kuduz探测新硬件:servicekudzustart(orrestart)查看CPU信息:cat/proc/cpuinfo[dmesg|grep-i‘cpu‘][dmidecode-tprocessor]查看内存信息:cat/proc/meminfo[free-m][vmstat]查看板卡信息:c..
分类:
其他好文 时间:
2014-06-25 06:21:07
阅读次数:
334