`
orcl_zhang
  • 浏览: 234411 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表

Latex shortstack

http://www.emerson.emory.edu/services/latex/latex_55.html 引用 \shortstack \shortstack[position]{... \\ ... \\ ...} The \shortstack command produces a stack of objects. The valid positions are: r - Moves the objects to the right of the stack l - Moves the objects to the left of the stack c - Mov ...

常用命令

1,查看文件夹下的文件个数(当前目录的文件数) ls   -l   |grep   "^-"   |   wc   -l  2,grep -n "str" -r ./ 这是查找当前目录下以及下辖子目录下所有包含str字符串的文件,会列出文件名.以及该行的内容.以及行号
http://www.personal.ceu.hu/tex/spacebox.htm

Latex dashed box

\documentclass[12pt]{article} \usepackage{graphics,color} \begin{document} \begin{flushleft} \begin{picture}(100,100) \dashbox{1}(100,100){a} \end{picture} \begin{picture}(200,100) \dashbox{1}(100,100){a} \end{picture} \end{flushleft} \linebreak \begin{tabular}{ c c } \dash ...
if(ob.onchange)) ob.onchange(); if(ob.onclick)) ob.onclick(); /** * Event.simulate(@element, eventName[, options]) -> Element * * - @element: element to fire event on * - eventName: name of event to fire (o ...

API

引用http://dev.mysql.com/ 引用A similar MySQL extension applies to the HAVING clause. Standard SQL does not permit the HAVING clause to name any column not found in the GROUP BY clause unless it is enclosed in an aggregate function. MySQL permits the use of such columns to simplify calculations. ...

Erlang起步

一个小疑问。 29> [H|T]="cat". "cat" 41> H. 99 42> T. "at" 43> [H]. "c" 44> ["c"]. ["c"]
   在项目里遇到一个很诡异的问题,因为有一些浮点数的计算,总是失败,所有将出问题的变量打印到日志里。    结果如下: 引用   ====reicpe_blocked  1.9    ====real_block 1.9    是这样的,recipe_blocked变量值是:1.9,real_block变量值是1.9,两个结果相减结果是result,但是在程序对result有个判断,判断result是否大于0小于0还是等于,本来正确的结果是等于,但是最后却到了小于这里。     google搜索了下,找到了两个关于ruby浮点数的帖子。     http://www.iteye.com/pro ...
\makebox, \mbox \makebox[width][position]{text} \mbox {text} The \makebox command creates a box to contain the text specified. The width of the box is specified by the optional width argument. The position of the text within the box is determined by the optional position argument. c - cente ...
From:http://blog.choonkeat.com/weblog/2006/08/rails-calling-r.html module RenderAnywhere class DummyController def logger RAILS_DEFAULT_LOGGER end def headers {} end end def render(options, assigns = {}) ...
引用u2@u2-laptop:~$ sudo gem install ya2yaml --source http://rubygems.org Successfully installed ya2yaml-0.30 1 gem installed Installing ri documentation for ya2yaml-0.30... Installing RDoc documentation for ya2yaml-0.30... 引用 u2@u2-laptop:~$ gem sources *** CURRENT SOURCES *** http://gems.github.com ...

2011年

    博客分类:
  • life
1,英语: 学英语。 年底可以挑战下雅思。 2,技术读书: 精通CSS,Dynamic HTML权威指南,JavaScript 权威指南 C程序设计语言(第2版·新版) 数据结构与算法分析:C语言描述(原书第2版),算法导论,2选1 High.Performance.MySQL_Second.Edition 概率论与数理统计,编程珠玑(第2版) 数据挖掘技术:市场营销、销售与客户关系管理领域应用(原书第二版),数据挖掘导论,2选1 TCP/IP详解 卷3:TCP事务协议、HTTP、NNTP和UNIX域协议——计算机科学丛书 3,其他书籍: 我的老千生涯,城门开,一九八四,费马大定理,三国志 4, ...
    今天同事问我关于rails transaction,如果有多个不同表回滚,如何做。我告诉他,就嵌套着写多个transaction,而且十分坚定的告诉他:只写一个是绝对绝对不行的!我以前遇到过,多表回滚的问题,后来就是这样解决的!     同事表示怀疑,去看api,告诉我,我错了,我当时怒了,不可能吧!     经过讨论,又看完api,一起做了一个小测试,证明我确实错了。     很久以前,其实我也不是很明白多表回滚如何实现,记得当时写过一个多表保存,要求有回滚。发现数据更新时有问题,找不到原因。我以为是多表回滚失败导致的,后来看了下面的帖子。http://www.iteye.com/pr ...
color_lot_manuallies = color_lot.color_lot_manuallies if color_lot_manuallies.size == 1 end 引用SELECT count(*) AS count_all FROM `color_lot_manuallies` WHERE (`color_lot_manuallies`.color_lot_id = 237) 当有A has many B时,a.bs.size并不是检索出所有a.bs再求出size,而是直接用select count(*)来计算结果。这应该是延迟加载,有点类似named_scope,但是 ...
<<高性能网站建设指南>> 目录: •减少HTTP请求     •使用外部JavaScript和CSS •使用内容发布网络   •减少DNS查找 •添力Expires头     •精简JavaScript •压缩组件        •避免重定向 •将样式表放在顶部      •移除重复脚本 •将脚本放在底部       •配置ETag •避免CSS表达式        •使Ajax可缓存
Global site tag (gtag.js) - Google Analytics