直接上配置,你懂的
lai'mac:~ laijingli$ more .bash_profile
###add my scripts to the search path for convenient daily usage
export PATH=$PATH:/Users/laijingli/autoshell:/opt/local/bin:/opt/local/sbin
##...
分类:
其他好文 时间:
2014-07-06 10:12:26
阅读次数:
185
首先一点Linux中的每个命令其本质是一个可执行的文件,以ls命令为例。通过命令:$:whereis ls可以查看ls命令的位置在/bin/目录下。当用$:ls -l /bin/ls命令查看文件/bin/ls的属性时,得到如下结果:
其实我们在任意目录下执行的ls命令时,其实执行的是位于/bin目录下的ls文件。那么当在任意目录下执行各种命令时,是怎么找到各自的命令的呢?这就...
分类:
系统相关 时间:
2014-07-06 10:06:20
阅读次数:
380
在使用libgdx来开发游戏时,如果遇到这种问题。很可能是因为你没有在libgdx的项目中导入Android的现骨干jar包导致的。解决方法如下:右击项目---“build path”-----》“configure build path”--------》这时候会出现如下图所示的界面。这时候把图中红色的钩所钩中的选项的选上------》这时候在clean以下project,close在openp...
分类:
编程语言 时间:
2014-07-06 09:14:58
阅读次数:
285
The Game
Description
One morning, you wake up and think: "I am such a good programmer. Why not make some money?'' So you decide to write a computer game.
The game takes place on a rectangular...
分类:
其他好文 时间:
2014-07-06 09:02:34
阅读次数:
287
标准库:一些最爱
os
os模块为你提供了访问多个操作系统服务的功能。
os和它的子模块os.path还包括一些用于检查、构造、删除目录和文件的函数,以及一些处理路径的函数。
os模块中一些重要函数和变量
函数/变量
描述
environ
对环境变量进行映射
system(command)
在子s...
分类:
编程语言 时间:
2014-07-06 00:30:46
阅读次数:
311
今天在写slidingmenu和fragment示例demo的时候,发现应用程序部署到手机会直接崩掉,logcat里面提示的消息如下:
出现了didn't find class on path dexpathlist错误,于是上google搜答案,发现stackoverflow上面有很多人遇到这个问题,于是找了个赞比较多的答案,看了看,确实是那么回事,之前从actionbarsherlo...
分类:
其他好文 时间:
2014-07-06 00:09:59
阅读次数:
443
/**
* 获取路径文件夹下的所有文件
* @param path
* @return
*/
public static File[] getKeywordFiles(String path) {
File dir = new File(path);
if (!dir.exists())
return null;
File[] fs = dir.listFile...
分类:
编程语言 时间:
2014-07-05 23:31:41
阅读次数:
192
非常简单的一个题,和path sum非常类似。 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *rig...
分类:
其他好文 时间:
2014-07-05 22:03:48
阅读次数:
251
问题编程以来今本没有使用input[type=file]这个控件过,今天突然使用尽然报错了,在本地chrome,firefox等其他的浏览器都是好的,唯独ie报错了。在服务器的时候,尽然chrome也是报错的。问题原因出现这个错误的主要原因是,在本地上传图片的时候HttpPostedFileBase...
分类:
其他好文 时间:
2014-07-05 21:48:51
阅读次数:
178
Description: Given two strings, write a method to decide if one is a permutation of the other.We could use the same idea from CTCI 1.1. The only diffe...
分类:
其他好文 时间:
2014-07-05 21:43:01
阅读次数:
231