2015年3月25日

SQL版本的Dijkstra最短路径算法

摘要: 受这篇文章《SQL,NoSQL以及数据库的实质》结尾处题目的启发,我尝试写了一个SQL版本的Dijkstra最短路径算法。算法描述如下:前提假设:Hive支持Stored Procedure或者 Mysql支持Insert into、insert overwrite、create table as... 阅读全文

posted @ 2015-03-25 21:51 一生只想往前飞 阅读(896) 评论(0) 推荐(0) 编辑

Why Sqls can be run via MapReduce?

摘要: in 《Core Model of Sql》, I showed that there are three driven operations in SQL: Group, Filter, Join. In this article, I'll illustrate why sqls can b... 阅读全文

posted @ 2015-03-25 21:38 一生只想往前飞 阅读(168) 评论(0) 推荐(0) 编辑

Core Model of Sql

摘要: Let's talk about SQL in two appects: Data Model and Computation Model.Data Model On one hand, each row in a table is actually an "Object". Columns of... 阅读全文

posted @ 2015-03-25 20:30 一生只想往前飞 阅读(174) 评论(0) 推荐(0) 编辑

2015年2月10日

linux shell 结构 与source 命令

摘要: Linux Shell&环境变量 登录到系统后,系统将启动一个用户shell。在这个shell中,可以使用shell命令或声明变量,也可以创建并运行shell脚本程序。运行 shell脚本程序时,系统将创建一个子shell。此时,系统中将有两个shell,一个是登录时系统启动的shell,另一个... 阅读全文

posted @ 2015-02-10 11:43 一生只想往前飞 阅读(965) 评论(0) 推荐(0) 编辑

2015年2月7日

ubuntu sources.list书写格式

摘要: 第一,找到一个linux镜像地址。 如 http://mirrors.163.com/,这个网页上有如下链接第二,进入ubuntu目录。每一个源目录下都应该至少包含dists和pool两个目录,否则就是无效的源第三,进入dists目录可以看到有许多目录。ubuntu每六个月发行一个新版本。每一个版本... 阅读全文

posted @ 2015-02-07 20:45 一生只想往前飞 阅读(1284) 评论(0) 推荐(0) 编辑

2014年12月15日

Some little problems while setting up nginx/uwsgi/django

摘要: I set up nginx/uwsgi/django, referencing . That's quite a comprehensive and detailed article. So I just listed serveral problems I encountered during ... 阅读全文

posted @ 2014-12-15 14:58 一生只想往前飞 阅读(172) 评论(0) 推荐(0) 编辑

2014年12月7日

Mysql in statement performance related with its position?

摘要: select *from ( select event_date, '2014-12-06' as active_date, channel_id, new_user_count as new_user_count, ... 阅读全文

posted @ 2014-12-07 20:51 一生只想往前飞 阅读(125) 评论(0) 推荐(0) 编辑

2014年11月21日

a little summary of Django

摘要: url routing mechanismurl name/namespaceWe can name a url pattern in urls.py, and reference this name to generate a url in other places. This ensures n... 阅读全文

posted @ 2014-11-21 11:27 一生只想往前飞 阅读(168) 评论(0) 推荐(0) 编辑

2014年11月20日

Is virtual function table really necessary for C++

摘要: OOP polymorphism In OOP languages, a base-class object pointer can do function call according to the actual type of the object.Let's see an example i... 阅读全文

posted @ 2014-11-20 11:06 一生只想往前飞 阅读(190) 评论(0) 推荐(0) 编辑

2014年11月19日

《Google File System》阅读总结

摘要: goals andassumptionsGoogle file system shares the same goals as previous distributed file systems: 1. scalability 2. performance 3. reliability 4.... 阅读全文

posted @ 2014-11-19 16:18 一生只想往前飞 阅读(556) 评论(0) 推荐(0) 编辑

导航