Lab 14 - Git Immersion - Brought to you by EdgeCase
http://gitimmersion.googol.im/lab_14.html#main_content
Git一步一步學習~
公告版位
目前分類:CODE (61)
- Jan 27 Fri 2012 02:16
[git] git 學習
- Jan 25 Wed 2012 16:04
How to change App ID in Inline Translator - miya.pe.kr
How to change App ID in Inline Translator - miya.pe.kr
http://miya.pe.kr/2012/01/23/how-to-change-app-id-in-inline-translator/
- Nov 08 Tue 2011 15:26
[Web]IE 8 9 InnerHTML不能設option問題
IE下Select InnerHTML的问题 | 实践.最佳 - 行.思.悟
http://fwso.cn/notes/ie%E4%B8%8Bselect-innerhtml%E7%9A%84%E9%97%AE%E9%A2%98/
- Oct 13 Thu 2011 11:59
Dennis Ritchie: 1941-2011 RIP
Dennis Ritchie: 1941-2011 C語言之父
http://www.muppetlabs.com/~breadbox/rip-dmr.html
#include <stdio.h>
int main()
{
printf("goodbye, dad\n");
- Jul 20 Wed 2011 18:11
[php] eregi() is deprecated
line 10: Function eregi() is deprecated
use perg_match
preg_match("/^[[:alpha:].' -]{2,15}$/i",$str);
- Jul 14 Thu 2011 12:20
[C]fopen update use r+ mode
fopen update use r+ mode
"r+" Open a file for update both reading and writing. The file must exist.
fopen - C++ Reference
http://www.cplusplus.com/reference/clibrary/cstdio/fopen/
- Jul 04 Mon 2011 23:55
PCNewPixnet Expand PIXNET album
PCNewPixnet Expand PIXNET album
昨天晚上趁著無名從兩點開始維修到早上十點,
想了好幾天,終於趁這個時候。
改了一下 Expand PIXNET album extension
在firefox 跟chrome上都能使用。
而且會自動調成看大圖的張數跟大小。
Expand PIXNET album
- Jul 03 Sun 2011 14:04
[C] 使用 open write read 做 copy file
首先這是期末考一個很容易Google到的題目,但是還是很多人沒做,甚至是課本都有的東西了。
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#define PERMS 0666
- Jun 17 Fri 2011 01:12
[python]產生 年 月 格式
>>> ['%d-%02d' % (i/12, (i%12)+1) for i in xrange(2008*12+8-1, 2011*12+6)]
['2008-08', '2008-09', '2008-10', '2008-11', '2008-12', '2009-01', '2009-02', '2009-03', '2009-04', '2009-05', '2009-06', '2009-07', '2009-08', '2009-09', '2009-10', '2009-11', '2009-12', '2010-01', '2010-02', '2010-03', '2010-04', '2010-05', '2010-06', '2010-07', '2010-08', '2010-09', '2010-10', '2010-11', '2010-12', '2011-01', '2011-02', '2011-03', '2011-04', '2011-05', '2011-06']
- Jun 13 Mon 2011 20:49
簡易相簿
之前有幫通識中心弄一次性的相簿,
後來使用JetPhoto 來產生但是免費版的只有能5次。
想一想只好自己土砲一下,
先用XnView縮圖成應該放的資料夾,
套用JetPhoto的那些JS,
所以只要改index.html內的
<div><p><a rel="lightbox[jetphoto]" href="1024x768/DSC_0019.JPG" title=""><img src="128x128/DSC_0019.JPG" /></a></p></div>
- Jun 06 Mon 2011 23:06
Flash Message Django python
剛好在pycn的mail list看到Flash Message,
查了一點資料,
原來就是,做完一些動作,會存在session內,
然後顯示出來做了什麼的動作。
類似,
"已經成功插入了1筆資料"
Django中的flash message - maplye - ITeye技术网站
http://maplye.iteye.com/blog/419966
- Jun 05 Sun 2011 18:30
[java] image getRGB read/write
Writing/Saving an Image (The Java™ Tutorials > 2D Graphics > Working with Images)
http://download.oracle.com/javase/tutorial/2d/images/saveimage.html
FLASHC: [java]getRGB()
http://flashc.blogspot.com/2009/05/javagetrgb.html
[java]getRGB()
getRGB()返回默认 sRGB ColorModel 中表示颜色的 RGB 值。(24-31 位表示 alpha,16-23 位表示红色,8-15 位表示绿色,0-7 位表示蓝色)。
- May 23 Mon 2011 17:56
[python]RealWorldPython for learnner
这是 RealWorldPython for learnner~大蟒本色 — RWPy4learner v11.3.30 documentation
http://shellexy.info/books/obp.rwpy4learner/html/index.html
- May 23 Mon 2011 00:25
[GAE]python Channel API
在GAE上使用服务器推(Channel API)+聊天室示例
http://www.keakon.net/2010/12/03/%E5%9C%A8GAE%E4%B8%8A%E4%BD%BF%E7%94%A8%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%8E%A8%EF%BC%88ChannelAPI%EF%BC%89+%E8%81%8A%E5%A4%A9%E5%AE%A4%E7%A4%BA%E4%BE%8B
- May 11 Wed 2011 10:53
[Python] raise Handling Exceptions
The raise statement allows the programmer to force a specified exception to occur. For example:
The sole argument to raise indicates the exception to be raised. This must be either an exception instance or an exception class (a class that derives from Exception).
8. Errors and Exceptions — Python v2.7.1 documentation
http://docs.python.org/tutorial/errors.html#raising-exceptions
- Apr 20 Wed 2011 21:12
[python] readline file
因為要grep binary file某個欄位不能grep
所以寫了小python script
file1=open('rr010','r');
line=file1.readline()
#for lineA in file1.readline():
while line:
#print line,
if line.startswith('@H:'):
print line,
line=file1.readline()
- Apr 13 Wed 2011 20:31
[C]binary search 折半查找
binary search 折半查找
#include<stdlib.h>
#include<stdio.h>
#define NELEMS(arr) (sizeof(arr) / sizeof(arr[0]))
int numarray[] = {123, 145, 512, 627, 800, 933};
int numeric (const int *p1, const int *p2){
return(*p1 - *p2);
}
int lookup(int key){
int *itemptr;
/* The cast of (int(*)(const void *,const void*))
is needed to avoid a type mismatch error at
compile time */
itemptr = (int *)bsearch (&key, numarray, NELEMS(numarray),
sizeof(int), (int(*)(const void *,const void *))numeric);
return (itemptr != NULL);
}
int main(void){
if (lookup(512)){
printf("512 is in the table.\n");
}
else{
printf("512 isn't in the table.\n");
}
return 0;
}
- Apr 06 Wed 2011 00:45
NetBeans IDE C++
發現自己要寫的很長程式,用vim寫還沒有這麼熟悉。
使用一下好用的IDE才能好debug。
在win下配置NetBeans
安装和配置 C/C++ 支持 - NetBeans IDE 6.0 教程
http://netbeans.org/community/releases/60/cpp-setup-instructions_zh_CN.html
如果已在 Windows 系统中安装了 Cygwin GNU 编译器、GNU make 和 gdb 调试器,并且在 Path 变量中正确设置了可以找到它们的路径,请确保使用的是正确版本。如果安装了正确版本,则无需再进行设置。
- Mar 28 Mon 2011 16:19
dev C++ [Linker error] undefined reference to `__dyn_tls_init_callback'
[Linker error] undefined reference to `__dyn_tls_init_callback'
出現這個錯誤,
原來是之前有裝MinGW把他更名之後就好了。