市面上常见的Linux都是发行版本,典型的Linux发行版包含了Linux内核、桌面环境和各种常用的必备工具,国内使用较多的是Ubuntu(乌班图)、CentOS、Fedora。我以Fedora 21 workstation 系统 为例来讲述如何编译C程序。顺便介绍一下Fedora 21 Works...
分类:
编程语言 时间:
2015-05-12 13:10:39
阅读次数:
122
用最多需要的香蕉数减去目标串出现的概率就行啦。。。。
如何求出现的概率?
每个字符出现的概率乘起来……再乘以目标串能摆的位置个数……
Problem
Your publishing house has decided to use monkeys randomly typing at keyboards to write great works of litera...
分类:
其他好文 时间:
2015-05-11 00:09:29
阅读次数:
280
1、安装插件Toast is compatible withCordova Plugman, compatible withPhoneGap 3.0 CLI, here's how it works with the CLI (backup your project first!):Using th...
分类:
移动开发 时间:
2015-05-10 12:45:17
阅读次数:
162
就为这个问题纠结了一晚上,最后还让本来能运行的程序搞到不能运行,真是太郁闷了,重新建了一个工程,还是一样。。。
查了好多资料,就是无法找到问题所在。。。
最后,无意中将form表单中的method改为”post”,it works!
我认为,当method方法为get时,参数是放在地址栏中传递的,中文字符传递的过程中会出现乱码,问题就在这里,下面把可能导致出现乱码的地方贴出来,问题解决!...
分类:
其他好文 时间:
2015-05-08 23:55:50
阅读次数:
143
1.启动服务器
MacBook-Air:~ wgyp$ sudo apachectl start
Password:
MacBook-Air:~ wgyp$ sudo apachectl -v
Server version: Apache/2.2.26 (Unix)
Server built: Dec 10 2013 22:09:38
2.在浏览器中输入ht...
分类:
Web程序 时间:
2015-05-07 00:58:50
阅读次数:
128
callerlocAn Android app to show location info of incoming calls or outgoing calls in a floating window. Only works for numbers from mainland China.The...
分类:
其他好文 时间:
2015-04-30 17:32:23
阅读次数:
121
1:首先安装apache:打开终端(ctrl+Alt+t),输入命令:sudo apt-get install apache2即可安装,安装完后,打开浏览器,在地址栏输入:localhost或者http://127.0.0.1看到It works,表示安装成功!默认根目录:/var/www/2:安装...
分类:
数据库 时间:
2015-04-29 23:01:53
阅读次数:
140
11624 Fire!
Joe works in a maze. Unfortunately, portions of the maze have caught onfire,and the owner of the maze neglected to create a firee scape plan.Help Joe escape the maze.
Given ...
分类:
其他好文 时间:
2015-04-28 22:59:05
阅读次数:
179
Typical tree recursion works. The key is: ANY node can be treated as the root, since it is about edge, not about node. This simplifies things a lot.#i...
分类:
其他好文 时间:
2015-04-27 14:59:09
阅读次数:
120
解决方案:用记事本打开httpd.conf将里面的#ServerNamelocalhost:80注释去掉即可。再执行httpd然后可以通过浏览器访问http://localhost:80,如果页面显示“It works!”,即表示apache已安装并启动成功。++++++++++++++++++++...
分类:
Web程序 时间:
2015-04-23 12:25:52
阅读次数:
135