公告版位
星落的瞬間!放棄的後悔是永遠!

主要是參考 3D繪圖程式設計這一本書,恩。
code : http://damody.googlecode.com/files/DX9Font.7z



用法簡介:
初始化
    device->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    device->SetRenderState(D3DRS_LIGHTING, FALSE);
    device->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

http://efreedom.com/Question/1-1388871/Get-List-Available-Serial-Ports-Win32
根據這邊的程式來測的。
http://com0com.sourceforge.net/
上google聽這位仁兄說
http://florent.clairambault.fr/tag/com0com
需要小patch?
http://www.ngohq.com/home.php?page=Files&go=cat&dwn_cat_id=34&go=giveme&dwn_id=826
真的嗎?
試了沒用。


讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()


伸手拿杯
手伸起來往前,放下,拿杯,拿回來。
手昇起30公分,向前90公分,手打開90度角,手下降20公分,手合起到60度角,手昇起20公分,手向後90公分,手向下30公分。






讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

hw3.py

# -*- coding: utf-8 -*-
from datetime import date
import time
import random
import operator
import os
import sys
from numpy import *

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

我真的覺得大部份研究生的二次退選的理由很病態,
一.分數不好拿很難混,退了~
二.有project,東西不會做,程式不會寫,退了~
三.同學都退了,退了~
四.選課的都是男生,退了~
五.有某lab的高手分數太高,造成調分障礙,退了~


我個人覺得比較正常的理由
一.老師太OOXX

讓地獄深紅的天亮 發表在 痞客邦 留言(1) 人氣()

----C++區

c++標準程式庫
stl源碼剖析
c++設計新思維
c++編程規範
effective C++中文版
move effective C++中文版
Expectional C++中文版
Visual C++ 2008 教學手冊

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

dir "*.exe" | % {."$_"}


讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

大學工業化

http://www.ithome.com.tw/itadm/article.php?c=64561

http://stevenbenner.com/2010/08/will-the-really-real-programmers-please-stand-up/

!!!

Writing Unit Tests in Visual Studio for Native C++


This repository has MOVED to the OpenKinect project at:

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

我說的porting是把一套軟體在有或沒有source code的情況下移稙到另一個環境,
可能是
軟體版本
Window XP NoSP,SP1~3
Window Vista NoSP,SP1
visual studio 2008 sp1
visual studio 2005 sp1
作業系統
win<->linux<->BSD<->MAC
硬體

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

http://portableapps.com/

可以不安裝的執行,重點是有幫你做捷徑,
這樣以後我玩stepmania之類的就有選單了,
只要把程式丟到PortableApps的資料夾就可以了。
會自動出現exe的捷徑。


讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

PicObject* tmpobj = NULL;
    const int size = vPic.size();
    int i;
    for (i = 0;i < size;i++)
    {
        
        if (vPic[i].pobj.id == ID)
        {
            tmpobj = &(vPic[i].pobj);
            printf("vPic[i]:%d tmpobj:%d ID:%d\n", vPic[i].pobj.id, tmpobj->id, ID);

讓地獄深紅的天亮 發表在 痞客邦 留言(1) 人氣()

可是一般的ip都不能發信呀~ qq
所以就試用了免費的 http://www.bravenet.com/webtools/elist/
如果大家有找到更好用的請告訴我喔~
目前正在申請freelist http://www.freelists.org/


讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

  • 這篇文章限定好友觀看。
    若您是好友,登入後即可閱讀。


#! /usr/bin/python
import sys
import re
from math import *
p = r"(\d) *: *(\d) *, *(\d\.{0,1}\d{0,1})"
str = sys.argv[1]
func = sys.argv[2]
gg = re.search(p, str).groups()
x = float(gg[0])

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

最近我的專題的project用了愈來愈多library了,我覺得很奇怪的一件事,就是不能累加連結?
每次連結都要連結個30秒,超久的= =編譯的話我有用http://damody.pixnet.net/blog/post/26698772所以還好,
因此我就設定要累加連結

然後就fatal error CVT1100了!
根據http://dev.firnow.com/course/3_program/c++/cppsl/2008419/110680.html前人的智慧精華


發現在 資訊清單工具->輸入和輸出->內嵌資訊清單->否
就可以解決了!

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

之前都是開xp的vm來看,現在終於不用了= =
先去載這個http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
Autoruns
然後先打開gom隨便開一個加速會錯的影片
右鍵點檔案資訊

可以看到你的編碼器


現在打開Autoruns,點

讓地獄深紅的天亮 發表在 痞客邦 留言(2) 人氣()

http://andescore.blogspot.com/2010/02/sdlsimple-directmedia-layer.html

好他講的都對,但如果你在平台ADP-AG101上跑你就錯了!
就只有configure 不對

./configure --host=nds32le-linux --prefix=/usr/local/sdl --disable-shared --enable-static --disable-audio --disable-cdrom --disable-alsa --disable-esd --disable-arts --disable-nasm --disable-video-x11 --disable-video-dga --disable-video-fbcon --disable-video-qtopia --disable-video-dummy

如果你這樣編下去,那你就沒有半個video device了!
請把--disable-video-fbcon 砍掉
大概會長這樣
./configure --host=nds32le-linux --prefix=/I_am_gun \
--disable-shared --enable-static --disable-audio --disable-cdrom --enable-input-tslib\
--disable-alsa --disable-esd --disable-arts --disable-nasm --disable-video-x11 \

讓地獄深紅的天亮 發表在 痞客邦 留言(1) 人氣()


好啦,這是用qt4.6畫的,為什麼不用SDL,因為抓不到video device= =
用的是沒有gui 的linux,時脈我不清楚。


讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

# 只能轉與系統同編碼的ansi
function tounicode($orginFile = $(throw "input file required"))
{
 $data = get-content $orginFile
 set-content -value $data $orginFile -encoding utf8
}

# 可以自定來源編碼
function tounicode($orginFile = $(throw "input file required"), $coding = 'Shift-JIS')
{
 #$data = get-content $orginFile

讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()

雖然官網上只有到5.6.1,但其實在它的git上可以git到5.7.0的版本了,跟它的wiki範例比較同步,
http://www.vtk.org/Wiki/VTK/Examples/Cxx
有時候不能編譯的問題,常常是範例用5.7.0,但你用5.6.1所以功能比較弱。
最近發現這樣強大的vtk果然也是內插神!
http://www.vtk.org/Wiki/VTK/VTK_integration_point_support


讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()