分析UIWindowThe UIWindow class defines an object known as a window that manages and coordinates the views an app displays on a device screen. Unless an ...
给出K*K的矩阵,每一行取一个数,构成K个数的和,总共有 k^k种可能,从中取出前k个最小的。一开始犯了错,因为只要对每行排序,最小的必定是第一列的和,然后我当时就想着,逐步推进,每次将某行的那个数变成其下一列那个数,当然间距要最小。我这样明显是不对的,这样的话每个数只用了一次,而题目的意思明显是可...
分类:
其他好文 时间:
2014-07-07 20:58:44
阅读次数:
188
1. document.write( " "); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document- >html- >(head,body)4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,do.....
分类:
编程语言 时间:
2014-07-07 19:28:48
阅读次数:
316
maco精选的一些jQuery代码,也许你从中可以举一反三[代码] [JavaScript]代码001002 ★使用jQuery来切换样式表003 $("link[media='screen']").attr("href", "Alternative.css");004005006007 ★ ...
分类:
Web程序 时间:
2014-07-02 23:57:14
阅读次数:
495
有时一个程序需要运行很长一段时间,但是下班或者吃饭的时候离开电脑,电脑因睡眠导致虚机断开连接,导致程序中断。重新开始又是漫长的等待... screen可以保证即使你关闭了虚机窗口,进程也不会被杀死。 screen 可执行程序 :Screen命令创建一个执行程序的窗口会话 screen -l...
分类:
其他好文 时间:
2014-07-02 22:04:20
阅读次数:
168
Python 提取Twitter tweets中的元素...
分类:
编程语言 时间:
2014-07-01 09:20:10
阅读次数:
295
Gnome 3 does not have good support for multiple screen display. It is therefore necessary to use xrandr for such purpose. It can be used as follows.Di...
分类:
其他好文 时间:
2014-06-30 13:22:02
阅读次数:
268
Problem :It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and ...
分类:
其他好文 时间:
2014-06-28 08:13:17
阅读次数:
249
在RHEL上装好了python2.7.6,进入到交互模式后(就是输入python之后进入的screen),发现退格键和方向键都使用不了,(变成^H^H^H之类的乱码)一个命令输入错误了只能从头开始,不能删除,很是痛苦。查阅文档之后发现是readline模块没有安装的原因,所以只能卸载掉python,先装..
分类:
编程语言 时间:
2014-06-27 06:52:06
阅读次数:
234
【Unity3D的四种坐标系】1、World Space(世界坐标):我们在场景中添加物体(如:Cube),他们都是以世界坐标显示在场景中的。transform.position可以获得该位置坐标。2、Screen Space(屏幕坐标):以像素来定义的,以屏幕的左下角为(0,0)点,右上角为(Sc...
分类:
其他好文 时间:
2014-06-26 12:42:20
阅读次数:
238