摘要: 为什么要研究这些,除了个人兴趣之外,还有可以了解语言是怎样解析字符串生成逻辑代码。他的应用性也是非常之广,如人工智能方面,把复杂的逻辑抽象成简单的文法,不懂编程的人都可以使用说到人工智能,数据库SQL查询也算是,大家可能会觉得,这也算人工智能?是的,如果程序员完全用过程方式去写逻辑查询的话,会疯掉,... 阅读全文
posted @ 2014-09-26 13:24 solq 阅读(3441) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport jsons = pd.Series([1,3,5,np.nan,6,8]);print(s);s = p... 阅读全文
posted @ 2014-08-01 14:50 solq 阅读(453) 评论(0) 推荐(0) 编辑
摘要: @RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = { "copy.xml" })public class MongoCopyData { @Autowired private MongoTemplate mongoTemplate; @Autowired @Qualifier("mongoTemplate2") private MongoT... 阅读全文
posted @ 2014-04-10 17:25 solq 阅读(3723) 评论(2) 推荐(0) 编辑
摘要: 会话管理{ //保存会话 _data : {}, /** 会话基本操作 ***/ //查找会话 getSession : function(id){}, //创建会话 createSession : function(){}, //替换会话 replaceSession : function(source,target){}, //销毁会话 destorySession : function(id){}, //共享会话 sharedSession : function(){}, /** 会话处理... 阅读全文
posted @ 2014-04-01 13:09 solq 阅读(1692) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(int argc,char **argv){ void* vp;void** vpp;int ivalue = 5;int** ipvalue;vp = &ivalue;vpp = &vp;printf("vp: [%d]\n", *( (int*)vp) ); // (int*) 是强制转换 ;*(强制转换后的var)printf("vpp: [%d]\n", *( (int *) (*vpp) ) ); // *vpp 指向 第一个*引向printf("vpp: [%d] 阅读全文
posted @ 2014-03-27 16:24 solq 阅读(244) 评论(0) 推荐(0) 编辑
摘要: .486 .model flat,stdcall option casemap:none ; case sensitive;http://www.popbook.com/wbbs/topic.asp?l_id=5&t_id=2294include \masm32\include\windows.inc include \masm32\include\kernel32.inc includelib \masm32\lib\kernel32.lib include \masm32\include\user32.inc includelib \masm... 阅读全文
posted @ 2014-03-25 00:41 solq 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 本来想拿 nodejs 做个 ip 查询小应用的,做的时候想着把基础弄好再做应用,没想到做着做着就变成 spring 了可能太多数人觉得不知道怎么用,以后我会写详细点使用教程个人感觉自己做出来的东西还是挺牛的,国内应该没有人做吧用JS 写个 spring 出来,哈哈,我就是牛今天家的小猫死了,很难受。。唉小猫一定不要洗澡,我女朋友帮他洗澡全身都不动了,我就知道完了,以后再也不领养宠物 阅读全文
posted @ 2014-03-04 11:11 solq 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: var obj={ f1:{f2:{f3:2}}} var key="f1.f2.f3" var value=eval("obj."+key); console.log(value);来点变态的var obj={ f1:{ f2:{ f3:2, '/test/@xxx':'testxxx' } }}var key="f1.f2['/test/@xxx']" var value=eval("obj."+key); console.log(value); 阅读全文
posted @ 2014-03-01 20:56 solq 阅读(9288) 评论(0) 推荐(1) 编辑
摘要: var ar=[];var o1={ id:'o1', o2:null}ar.push(o1);var o2={ id:'o2', o1:null}ar.push(o2)var ioc={}for(var i in ar){ var obj=ar[i]; ioc[obj.id]=obj;}for(var i in ioc){ var obj = ioc[i]; for(var j in obj){ if(j!='id'){ obj[j]=ioc[j]; } }}console.log(ioc... 阅读全文
posted @ 2014-03-01 19:18 solq 阅读(796) 评论(0) 推荐(0) 编辑
摘要: var run = function(){ //is run}var aopBefore = function(){//aopBefore}var tmpFn=run;run = function(){aopBefore();tmpFn();} 阅读全文
posted @ 2014-03-01 19:17 solq 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 作者 : solq最新文档请看http://www.springnodejs.com本文不再更新blog :http://www.cnblogs.com/solq/p/3574640.html1.只需要添加 wsController 文件就行,启动自动注入Controller2.path 路径参数,请求参数自动注入3.请求参数格式转换,可扩展转换类型4.容器变量字段自动注入5.容器初始化执行6.aop 实现方法拦截7.url 拦截分发反正是就仿spring 那套git :https://github.com/solq360/springnodejs写起文档,发觉很不容易,大家将就一下吧框架来源 阅读全文
posted @ 2014-03-01 02:47 solq 阅读(3696) 评论(1) 推荐(1) 编辑
摘要: .486 .model flat,stdcall option casemap:none ; case sensitive;http://www.popbook.com/wbbs/topic.asp?l_id=5&t_id=2294include \masm32\include\windows.inc include \masm32\include\kernel32.inc includelib \masm32\lib\kernel32.lib include \masm32\include\user32.inc includelib \masm... 阅读全文
posted @ 2014-02-27 21:55 solq 阅读(208) 评论(0) 推荐(0) 编辑
摘要: (function(){ var CacheQueue=function(name,weightValue,maxLength,clearTimerTime){ //public this.name = name; //缓存器名称 this.maxLength = maxLength || 10000; //队列最大长度 this.clearTimerTime = clearTimerTime || 1000 * 60 * 10 ; //十分钟清一次队列 this.weightValue = weigh... 阅读全文
posted @ 2014-02-27 20:07 solq 阅读(535) 评论(0) 推荐(0) 编辑
摘要: public class Weight { public static void main(String[] args) { Date now =DateUtils.string2Date("2014-02-20 24", "yyyy-MM-dd HH"); Date dataTime = DateUtils.string2Date("2014-02-20", DateUtils.PATTERN_DATE); double day=1D; //总天 double dv=1D; //总访问数 ... 阅读全文
posted @ 2014-02-27 20:02 solq 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1 (function($){ 2 $.triggerDropTableThead=function(obj){ 3 var ths=$(obj).find("th"); 4 ths.unbind("ondrop"); 5 ths.bind("ondrop",function(){ 6 var isDragging = false, 7 min_width=50; 8 var _this=$(this) 9 .mous... 阅读全文
posted @ 2013-01-06 23:04 solq 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: 相关文章: http://freeze.blog.51cto.com/1846439/884925http://blog.csdn.net/yulchaochow/article/details/6050079 简单的参数说明: –logpath 日志文件路径 –master 指定为主机器 –slave 指定为从机器 –source 指定主机器的IP地址 –pologSize 指定日志文件大小不超过64M.因为resync是非常操作量大且耗时,最好通过设置一个足够大的oplogSize来避免resync(默认的 oplog大小是空闲磁盘大小的5%)。 –logappend 日志文件末尾添加.. 阅读全文
posted @ 2012-12-05 15:34 solq 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 这是一段Oleg Podsechin与NodeJS主程序员Ryan Dahl之间的访谈录。虽然不是NodeJS的教程,但是从访谈之中可以看出关于NodeJS的一些情况,帮助我们理解NodeJS之所以存在的前因后果。 Frank.OP:第一个问题就是介绍一番了。你是如何做出 NodeJS 来的?你以前有 JavaScript 的经验吗?你是什么时候开始 JavaScript 的,还有就是事件驱动的项目?The first question is an introduction really. How did you arrive at Node? Did you have experience 阅读全文
posted @ 2012-12-02 03:52 solq 阅读(407) 评论(0) 推荐(0) 编辑
摘要: https://github.com/eriknyk/addendum/blob/master/README.md<?phprequire_once 'annotations.php';class Persistent{ }/** @Persistent */class Person { // some code}$reflection = new ReflectionAnnotatedClass('Person'); // by class nameecho $reflection->hasAnnotation('Persistent 阅读全文
posted @ 2012-11-21 01:38 solq 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1 package com.my9yu.manager.module.test; 2 3 import java.io.File; 4 import java.io.IOException; 5 import java.io.InputStream; 6 import java.io.RandomAccessFile; 7 8 import org.apache.http.HttpEntity; 9 import org.apache.http.HttpResponse;10 import org.apache.http.client.ClientProtocolException;11... 阅读全文
posted @ 2012-11-17 15:38 solq 阅读(3056) 评论(0) 推荐(0) 编辑
摘要: public interface LogTaskBuilderRepository extends MongoRepository<LogTaskBuilder, String> { @Query(value="{ 'type': {'$in' : ?0} }",fields="{ 'type' : 1}") public List<LogTaskBuilder> findTest(String[] name); @Query(value="{?0:?1}") p 阅读全文
posted @ 2012-10-27 12:59 solq 阅读(969) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/laigood12345/article/details/7056093mongodb 有三种查询方式哈哈1.通过接口数据仓库来处理2.也是通过数据仓库来处理,支持JS风格查询3.通过MongoTemplate 接口来查 阅读全文
posted @ 2012-10-27 10:25 solq 阅读(247) 评论(0) 推荐(0) 编辑
摘要: print(db.player.count())var startDate=new Date();//db.player.find().limit(10).skip((db.player.count()-5*10)).forEach(printResult); //db.player.find({"_id":{$gt:4999956}}).limit(10).forEach(printResult); db.player.find({"name":"solq_7"}).limit(10).skip(10).sort.forEach(p 阅读全文
posted @ 2012-10-05 21:53 solq 阅读(700) 评论(0) 推荐(0) 编辑
摘要: print(db.player.count())var startDate=new Date();db.player.find().limit(10).skip((10)).forEach(printResult);print(new Date()-startDate);function printResult (r) { print(tojson(r))}//http://www.mongodb.org/display/DOCS/Scripting+the+shell//api//http://docs.mongodb.org/manual/reference/javascript/运行&g 阅读全文
posted @ 2012-10-05 20:42 solq 阅读(248) 评论(0) 推荐(0) 编辑
摘要: http://mrdoob.com学习引擎最好的语言,加上全是开源的 阅读全文
posted @ 2012-09-08 22:11 solq 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 合并行GROUP_CONCAT( cast( id AS char ) )时间截select UNIX_TIMESTAMP(’1997-10-04 22:23:00′);select FROM_UNIXTIME(875996580);select FROM_UNIXTIME(UNIX_TIMESTAMP(), ‘%Y %D %M %h:%i:%s %x’);当前select UNIX_TIMESTAMP();eclipse 配置webhttp://limingnihao.iteye.com/blog/830409eclipse配置 hibernateeclipse 插件http://radiu 阅读全文
posted @ 2012-09-07 13:37 solq 阅读(183) 评论(0) 推荐(0) 编辑
摘要: <style>body{ position:relative;}</style><script>function point(x,y){ var oDiv=document.createElement('div'); oDiv.style.position='absolute'; oDiv.style.height='5px'; oDiv.style.width='5px'; oDiv.style.backgroundColor='red'; oDiv.style.left=x+ 阅读全文
posted @ 2012-09-03 02:44 solq 阅读(250) 评论(0) 推荐(0) 编辑
摘要: http://jpkc.zju.edu.cn/k/686/wljx/Netcourse/H05.htmunity3d 插件,,,,,http://danim.tv/blog/archives/unity3d-tools/ 阅读全文
posted @ 2012-08-26 00:09 solq 阅读(233) 评论(0) 推荐(0) 编辑
摘要: http://cs.ecs.baylor.edu/~donahoo/practical/JavaSockets2/textcode.html 阅读全文
posted @ 2012-08-23 03:03 solq 阅读(394) 评论(0) 推荐(0) 编辑
摘要: int runTime=1000*5; int FrameRate=1000/6; int checkTime=FrameRate; long startTime=new Date().getTime(); while(runTime>checkTime) { //checkValue=moveVector3(90, checkValue); //checkValue.print(); checkTime+=FrameRate; ... 阅读全文
posted @ 2012-08-22 13:45 solq 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.下载JDK1.7 gz 包直接解压.配置用户变量环境sudo gedit /etc/profileexport JAVA_HOME=/solq/jre1.7.0_05export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar2.配置eclipsesudo gedit eclipse.sh下载 eclipse 直接解压#!/bin/shexport GDK_NATIVE_WINDOWS=1export ECLIPSE_HOME=/solq/setup/ecl 阅读全文
posted @ 2012-08-19 21:06 solq 阅读(408) 评论(0) 推荐(0) 编辑