• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
暌违
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2013年5月28日

gcc编译常见问题解决方法
摘要: 1、implicit declaration of function `sleep'#inlude<unistd.h>2、implicit declaration of function ‘malloc’#include<stdlib.h>3、implicit declaration of function `memcpy'#include <string.h>4、implicit declaration of function `inet_addr’#include <sys/socket.h>#include <neti 阅读全文
posted @ 2013-05-28 14:33 暌违 阅读(317) 评论(0) 推荐(0)
 
 

2013年4月15日

配置php5.4.11
摘要: 网上的教程一大把,但是都不精简,且都写了很久了。看得人迷糊。我配置成功之后,发现其实其中有很多部分可以省掉,于是写篇随笔记一记。1、如果你的机器是64位,则一定要下载64位的php和64位的apeche,这两者的官网都只有32位的版本。这里附上64位php的下载地址:http://www.anindya.com/php-5-4-12-and-5-3-22-x64-64-bit-for-windows/和64位的apache下载地址:https://blackdot.be/download-archive/2、php压缩包解压后,我放到了C:\php5.4这个目录下,目前看来php的环境变量没有 阅读全文
posted @ 2013-04-15 16:34 暌违 阅读(230) 评论(0) 推荐(0)
 
 

2013年2月28日

svn代码回滚
摘要: 阅读全文
posted @ 2013-02-28 14:24 暌违 阅读(108) 评论(0) 推荐(0)
 
 

2013年1月31日

打印首位相接的数组
摘要: 打印数组:1 3 4 10 112 5 9 126 8 137 1415package com.raystorm.test;public class PrintArrayByOddEvenNumber { static void printArray (int height) { int i = 0, j = 0, value = 0; final int row = 10, column = 10; int times = 1; int [][] array = new int [row][column]; ... 阅读全文
posted @ 2013-01-31 20:16 暌违 阅读(157) 评论(0) 推荐(0)
 
 

2013年1月26日

tar解压到指定目录
摘要: tar在linux上是常用的打包、压缩、加压缩工具,他的参数很多,折里仅仅列举常用的压缩与解压缩参数参数:-c :create 建立压缩档案的参数;-x : 解压缩压缩档案的参数;-z : 是否需要用gzip压缩;-v: 压缩的过程中显示档案;-f: 置顶文档名,在f后面立即接文件名,不能再加参数举例: 一,将整个/home/www/images 目录下的文件全部打包为 /home/www/images.tar[root@xoaocom ~]# tar -cvf /home/www/images.tar /home/www/images ← 仅打包,不压缩[root@xoaocom ~]# t 阅读全文
posted @ 2013-01-26 23:55 暌违 阅读(1245) 评论(0) 推荐(0)
 
 

2013年1月18日

在Mac上用Objective-C获取系统内存使用情况
摘要: 最终内存值是根据各类内存(活跃,非活跃,联动,空闲)使用的页面数*单个页面大小所得。#import <mach/mach.h>#import <mach/mach_host.h>- (NSString *)generateNumberFromValue:(unsigned long)originalValue { NSString * string = nil; double converteredValue = 0.0; if (originalValue >= 1000000000L) { converteredValue = originalValue /. 阅读全文
posted @ 2013-01-18 09:36 暌违 阅读(532) 评论(0) 推荐(0)
 
 

2013年1月16日

修改常用软件的背景色
摘要: Eclipse中,在Window-Preferences-Editors-TextEditors中,设置Background Color为自定义RGB(204,232,207),苹果绿.Chrome中,在C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets中,修改Custom.css,添加这段语句: html, body {background-color: #CCE8CC!important;} 阅读全文
posted @ 2013-01-16 07:05 暌违 阅读(296) 评论(0) 推荐(0)
 
 

2012年10月12日

分析crash report
摘要: 这是苹果官方对于crash report的一些讲解:http://developer.apple.com/library/ios/#technotes/tn2151/_index.htmlMAC上有个免费的小工具——dwarfdump,可以简便地检测出app和相应的dSYM。使用起来很简单。分三步即可。1> 根据crash log,得到App的UUID。UUID是个字符串,由32个字符组成。得到了UUID,你才能知道是你的哪个版本在用户的iPhone上出了问题。2> 使用dwarfdump检查app,看哪个app是上面那个UUID。命令行格式:dwarfdump --uuid Yo 阅读全文
posted @ 2012-10-12 10:05 暌违 阅读(572) 评论(0) 推荐(0)
 
 

2012年6月14日

打印菱形
摘要: 总结:对于每行的难点,重点在于利用循环条件,构造目标所述的情况package com.raystorm.test;public class PrintRhombus { void print(int lineNumber) { for (int i = 1; i < lineNumber; i ++) { for (int j = 0; j < lineNumber - i; j ++) { System.out.print(" "); } for (int j = 1; j <... 阅读全文
posted @ 2012-06-14 22:55 暌违 阅读(189) 评论(0) 推荐(0)
 
 

2012年6月3日

vi文本编辑器的使用
摘要: vi文本编辑器的使用一.vi的模式命令模式:vi启动默认进入的模式,可进入输入模"i",或末行模式(:),除了可以完成命令的功能外,也是后两种模式的转换点输入模式:即文本辑辑状态,最后一行显示"-- INSERT --"提示,按ESC返回到命令模式末行模式:可完成一些复杂操作,以":"开始,执行完一个末行命令后自动返回命令模式二.基本使用1.vi 编辑器的启动与退出:(1).使用命令"vi"直接进入编辑环境(2).在命令模式下输入":q!",可以强行退出编辑环境,对文件修改不进行保存(3).以文 阅读全文
posted @ 2012-06-03 08:52 暌违 阅读(334) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3