码迷,mamicode.com
首页 >  
搜索关键字:ps 用户登陆 top    ( 33422个结果
LeetCode: Triangle [120]
【题目】 Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [6,5,7], [4,1,8,3] ] The minimum path sum from top to...
分类:其他好文   时间:2014-06-08 17:52:45    阅读次数:235
关于margin-right的应用问题
今天在群里面,有人抛出了一个关于css中margin-right没有效果的问题。CSS代码和HTML代码如下: .style1{ width:400px; height:440px; background-color:red; border:5px solid silver; margin-top:20%; margin-right:30%; }...
分类:其他好文   时间:2014-06-08 17:38:27    阅读次数:204
linux用于后台监控指定程序运行状况的脚本(如果程序死了则重启程序)
#!/bin/sh while true do ps | grep "my_app" | grep -v "grep" > /dev/null #第一二个命令输出my_app的运行情况,第二个命令去掉带有grep的条目,然后把结果重定向到null里面不要回显 if [ "$?" -eq 1 ] # 1 : 表示有   ; 0 :表示没有 then ./my_app &...
分类:系统相关   时间:2014-06-08 10:06:03    阅读次数:346
普林斯顿公开课 算法3-2:求第k大的数
问题 给定N个元素的数组,求第k大的数。 特例 当k=0时,就是求最大值,当k=N-1时,就是求最小值。 应用 顺序统计 求top N排行榜 基本思想 使用快速排序方法中的分区思想,使得a[k]左侧没有更小的数,右侧没有更大的数 性能 快速选择算法的复杂度...
分类:其他好文   时间:2014-06-08 09:58:08    阅读次数:211
android精确绘制文字位置的方法
android 中使用Canvas的drawText绘制文本的位置,是基于基线的。如下图: 其中字母Q的小尾巴在横线下面了。 怎么样找准字母的中心位置呢? 先看下面的例子:(右边的数字,表示字体的 left, top, right, bottom) 这里面的关键是Paint.getTextBound。 getTextBound会填充一个Rect,这个Rect表示...
分类:移动开发   时间:2014-06-08 09:08:44    阅读次数:279
about greenplum collection tool
three collection tool for greenplum:pstack、strace、gcore.                                                                                     [gpadmin@gtlions5913 ~]$ ps -ef | grep postgres|grep data...
分类:其他好文   时间:2014-06-08 05:30:55    阅读次数:287
UVa--Rotating Sentences
Rotating Sentences  In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to b...
分类:其他好文   时间:2014-06-08 04:51:34    阅读次数:236
【Android】动态设置android:drawableLeft|Right|Top|Bottom
Android中有时需动态设置控件四周的drawble图片,这个时候就需要调用 setCompoundDrawables(left, top, right, bottom),四个参数类型都是drawableButton继承TextView,所以可以采用相同的设置方法方法一.XML方式方法二.JAVA...
分类:移动开发   时间:2014-06-08 01:17:39    阅读次数:430
LeetCode:Minimum Path Sum
题目链接 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its p...
分类:其他好文   时间:2014-06-07 21:59:08    阅读次数:344
photoshop:把路径存储为形状
这个其实跟定义画笔步骤是一样的路径存储为自定义形状1、用路径选择工具(快捷键A),选中路径2、菜单:编辑->定义自定形状3、选择自定义形状工具(快捷键U),可以看到刚定义的形状把当前形状区所有形状存储为一个文件扩展名为.csh载入外界形状photoshop自定义形状路径:ps安装路径下\Preset...
分类:其他好文   时间:2014-06-07 21:05:56    阅读次数:408
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!