摘要: 【原始链接】http://apachefelix.blogspot.com/2012/05/offtopic-mac-cant-resolve-localhost-and.htmlOfftopic: Mac can't resolve localhost and Eclipse Debug Mode does not workI always had problems to run eclipse in debug mode.Error: Invalid memory access of location0x14 rip=0x########After reading millions 阅读全文
posted @ 2013-03-27 17:58 Eric Young 阅读(955) 评论(0) 推荐(0)
摘要: 最近把开发环境转到mac系统,可是在用maven编译的时候总是报内存溢出的错误,第一反应是配置文件有问题,然后从windows及我们linux服务器上拷贝了相同的maven,还是不行。后面从网上找各种资料分析,应该是maven没有设置java堆的大小,因为我们工程比较大,我编译了一个小的工程是ok的..在~/.bashrc文件中添加export MAVEN_OPTS=-Xmx1024m然后执行source~/.bashrc 让变量立即生效重新编译工程一切ok。。。 阅读全文
posted @ 2013-03-27 11:44 Eric Young 阅读(894) 评论(0) 推荐(0)
摘要: 找到解决办法 :http://blog.omgmog.net/post/a-possible-solution-to-bad-interpreter-operation-not-permitted-error-on-mac-os-x-lion/原文如下:Out of the blue I started having an issue in my Terminal.app on Lion where downloaded scripts/applications wouldn’t run. I first noticed this when trying to setup the Androi 阅读全文
posted @ 2013-03-26 19:09 Eric Young 阅读(405) 评论(0) 推荐(0)
摘要: 昨天在用post请求同步到豆瓣出现乱码,我刚开始以为直接把内容用String编码成utf-8就ok了,后面试了一下不行。在网上找到了解决办法,地址在http://www.blogjava.net/yifeng/archive/2009/01/22/252281.html,方法如下(三种方法都可以,我试了第一个是ok的): postMethod.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET,"UTF-8");postMethod.addRequestHeader("Content-Typ 阅读全文
posted @ 2012-12-12 10:52 Eric Young 阅读(6222) 评论(0) 推荐(0)
摘要: 今天参加淘宝的笔试,第一道题就没做出。题目是:不使用另外的变量,交换整型变量x和y的值,假设x、y的取值范围在0-5000之间。后面回来想了一下,觉得用移位就可以搞定:int a =232, b = 12;a=a<<16;b=b|a;a=b&0x0000FFFF;b=b>>16;System.out.println("a: "+a+" b: "+b );移位交换x和... 阅读全文
posted @ 2009-02-28 20:29 Eric Young 阅读(609) 评论(2) 推荐(0)
摘要: 在C#中可以通过Process来启动一个进程,Process位于System.Diagnostics命名空间。下面来看一个具体实例:[代码]通过上述程序就可以打开IE进程,浏览Google主页! 阅读全文
posted @ 2008-08-17 21:39 Eric Young 阅读(1267) 评论(0) 推荐(0)
摘要: 今天去恒生电子笔试,碰到一个关于sizeof()的问题。题目是:char ch[6] = "Hello",sizeof(ch) = ?。回来后运行了一下,啊!竟然是6,我以是指针的大小4。当程序变为 char * ch = "Hello",sizeof(ch) 才等于4。 阅读全文
posted @ 2008-07-02 19:57 Eric Young 阅读(432) 评论(0) 推荐(0)
摘要: 今天在网上终于找到了延长Windows Server 2008 评估时间的办法!详见http://support.microsoft.com/kb/948472。根据上面介绍一共可以最多240天的评估日期!看来Microsoft还是比较大方的,呵呵!你可以在命令行中输入slmgr.vbs -dli 来查看你的评估期还有多长时间。当你的Windows Server 2008 的评估期60天将要结束的... 阅读全文
posted @ 2008-04-30 16:20 Eric Young 阅读(290) 评论(0) 推荐(0)
摘要: 今天在博客园安家了,以后还请大家多多关照! 阅读全文
posted @ 2008-04-22 17:37 Eric Young 阅读(142) 评论(0) 推荐(0)