-
Java GUI中的各种layout
日期:2009-05-28 | 分类:C/C++/Java
Java GUI 中有些多种layout,分别是:
1)Flow Layout
2)Border Layout
3)Grid Layout
... -
关于Radiobutton的值获取和排列问题
日期:2009-05-12 | 分类:C#
首先关于值获取,需要先在Radiobutton的属性中定义一下每一个项的index值,然后在函数中就可以直接获取SelectedIndex。
再次关于Radiobutton的排列,不能在designer里改,必须在属性里改,有个Vertical/Horizontal的属性。
-
如何判断字符串是否为数字
日期:2009-05-11 | 分类:C#
我这个函数是用C#写的,定的规则是:不能有负号,可以有小数点。 private bool isNumber(string str) { char[] chr = new char[str.Length]; chr = str.ToCharArray(); bool allowPoint = true; for (int i = 0; i < chr.Length; i++) { ...
-
VS2005 the application failed to initialize properly (0xc0150004)的解决方法
日期:2009-04-21 | 分类:C/C++/Java
通常需要重新装一遍vs的sp1。(在装的过程中很可能遇到磁盘空间不够,没办法,必须先腾出空间。其实它不需要占用那么多,只是拿来做临时空间)
再不行的话装个redistribute。
博客http://hi.baidu.com/qinpc/blog/item/7700bb316c08b4ad5edf0ef7.html说还不行的话“在C:\WINDOWS\WinSxS中搜索 “8.0.50727.163” 和 &ld... -
VS使用者的Qt的初始化系统配置
日期:2009-04-16 | 分类:C/C++/Java
首先要把Qt的文件夹拷贝到某个位置,let's say,C:\Qt\4.4.4\...
然后需要设三个系统变量:
1、在用户变量里的Path里加上C:\Qt\4.4.4\bin\
2、在用户变量里新建QTDIR,为C:\Qt\4.4.4
3、在用户变量里新建QMAKESPEC,为(如果你用VS2005)win32-msvc2005
最好再装个VS的插件,如qt-vs-ad... -
如何设置VS2005的字体、颜色和背景颜色
日期:2009-04-03 | 分类:C/C++/Java
中英对照:
工具-->选项-->环境-->字体和颜色
Tools-->Options-->Environment-->Fonts and Color -
解决耳塞杂音噪音问题
日期:2009-02-26 | 分类:I Am A Geek~
给实验室电脑接了新的耳机延长线,发现还是有噪音,通过以下方法解决了,不一定适用。
双击声音图标,打开声音属性控制,里面有个“线路输入音量”,将其设为静音。
搞定。
-
如何让VS2005显示行号
日期:2009-02-25 | 分类:C/C++/Java
感谢以下链接:
http://www.cnblogs.com/fishert/archive/2007/04/28/731585.html
工具(Tools)-->选项(Options)-->文本编辑器(Text Editor)-->所有语言(All Languages)-->显示(Display)-->显示行号(Line numbers)
搞定。
-
MSVCP80D.dll not found的解决方法
日期:2009-02-17 | 分类:C/C++/Java
感谢以下链接,但窃以为治标不治本: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/60fe1672-9db6-4411-8bd4-62f2d21201c7/ 在Project->Project Properties->Configuration Properties->Mainfest Tool->Input and Output->Embed Manifest 中把'YES'... -
解决Error spawning 'cmd.exe'的问题
日期:2009-02-16 | 分类:C/C++/Java
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/adc6e067-60a4-4914-9673-571b047d9376/
感谢以上链接。解决方法:
Options -> Projects and Solutions -> VC++ Directories page
在Executable中添加
... -
如何快速便捷地建立Qt工程
日期:2009-02-13 | 分类:C/C++/Java
假设你已经把Qt装好了……
1、建立你的工程所在的文件夹;
2、加入(如果有的话).h文件和.cpp文件(至少用记事本建个main嘛);
3、打开cmd,进入该文件夹(就是该目录)
4、输入命令:qmake -project
5、输入命令:qmake -tp vc
搞定。(看看文件夹里是不是多了东西) -
The Mathematics of Communication Complexity
日期:2009-01-30 | 分类:ITCSC Winter School 2009
<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;...
-
Introduction to Game Theory and Its Application in Network
日期:2009-01-29 | 分类:ITCSC Winter School 2009
Game Theory is about decison-making and its trade-off between several players. Each player make their strategies according to the anticipated behaviour of the others, pursuing a maximazation of benefits.
A classcial model of game theory is t... -
Tools for Designing FPT Algorithm
日期:2009-01-28 | 分类:ITCSC Winter School 2009
For an NP hard problem we can make it into NP solvable if we confine some of its parameters to stay within a certain boundary
For instance, given a graph G, we are to find a set of vertices that cover an arbitrary number of edges. This problem is ... -
Multiuser Information Theory
日期:2009-01-24 | 分类:ITCSC Winter School 2009
The lecturor, Chandra Nair introduced 3 basic models of multiuser information exchange, namely, Multiple Access, Broadcast and Interference.
Multiple Access is about many-to-one message sending. Broadcast is about one-to-many message sendi... -
Network Coding & Abstract Algebra
日期:2009-01-23 | 分类:ITCSC Winter School 2009
This talk concerns about the basic problems of a network. For example, A wants to send an email to B and so does B. How can this happen, say, simutaneously?
A little bit mor sophisiticated is about encoding and decoding. Say, instead of se... -
关于syscall_table.S的问题
日期:2008-12-24 | 分类:Operating System(操作系统)
什么是syscall_table.S? 每当系统调用发生时,操作系统会先到/usr/include/asm/unistd.h中,看该系统调用是否存在,若存在则读取一个索引号,利用该索引号到arch/i386/kernel/syscall_table.S中寻找相应表项,然后根据该表项到kernel/sys.c中调用相应函数。syscall_table.S就扮演这样一个“二级索引” 本实验中遇到的一个问题 当在syscall_table... -
grub下进入操作系统
日期:2008-12-12 | 分类:I Am A Geek~
前段时间为了装ubuntu,在windows下把feodra分区给删除了,结果一启动就生生地进入了grub提示符了。经过多方google,得到了解决方法:
在grub下输入如下指令:
grub>root (hd0,0)
grub>chainloader (hd0,0)+1
grub>boot
就可以进入操作系统了。
-
远程桌面的尴尬
日期:2008-11-29 | 分类:I Am A Geek~
昨天在图书馆远程连接实验室,想把一个ppt搬到自己的本上。
通常的做法是:发个邮件给自己,然后在另一边下。然而有个问题,我实验室的Thunderbird特别灵敏,如果你发个邮件给自己,它马上就收到并且存到本地磁盘。也就是说,当你发完邮件回到自己本上时,邮件已从服务器上被剪切至实验室机子上了。
所以必须用别的办法。
最后我用了一个很扯的办法。我把文件传送到一个ftp上,然后在另一端下载。想起来,真是很囧…… -
Image Processing - Linear Discriminant Analysis
日期:2008-11-24 | 分类:Computer Graphics (计算机图形学)
An introduction to the LDA method -
Image Processing - Principal Component Analysis
日期:2008-11-23 | 分类:Computer Graphics (计算机图形学)
Introduction to the method of PCA
-
玩弄code的问题
日期:2008-11-19 | 分类:I Am A Geek~
今天在实验室的英文XP上登陆ftp,发现(其实早就发现了)对方电脑文件夹的名字都成了乱码。我想把作业传上去,但是找不到文件夹啊!怎么办……用了一个很雷的方法。
先复制文件夹名称(自然是一堆乱码),打开一个word新文档,粘贴,另存为网页,用ie打开,把编码设成简体中文,于是……就看到中文了。
我深信... -
Image Processing - Singular Value Decomposition
日期:2008-11-18 | 分类:Computer Graphics (计算机图形学)
Introduction to the method SVD -
How to make a colorful picture black and white
日期:2008-10-09 | 分类:Computer Graphics (计算机图形学)
How to make a colorful picture black and white? -
Bresenham Line Drawing (2)
日期:2008-10-04 | 分类:Computer Graphics (计算机图形学)
The code of Bresenham Line Drawing (1) -
Bresenham Line Drawing (1)
日期:2008-10-04 | 分类:Computer Graphics (计算机图形学)
Bresenham Line Drawing is rather tricky compared to DDA one. The basic idea is, when we move along x-axis, 1 pixel each time, it seems that we do not have much choice about our y coordinate. Because we want to draw a continuous line, so that a yi+1 can be either yi or y i +1, and what we need to do is to make a choice: yi or y i +1. The choice is still based on m, the slope: we will see whether the calculated y = mx+b is close to y i or y i +1. But this time we will not calculate directly: it costs too much. Instead, we will apply the technique of induction. -
DDA Line Drawing
日期:2008-10-03 | 分类:Computer Graphics (计算机图形学)
DDA is an algorithm for drawing lines. The idea is, due to the limitation of discrete pixels (which make it impossible to draw real continuous lines), we have to put a number of neighboring pixels to “make up” a line. The DDA does it in this way: say we “scan” the canvas along the x-axis, moving one pixel a time, and by the line equation we can calculate the corresponding y coordinate for each x-pixel and then we have the y coordinate rounded and put the pixel accordingly. One thing that needs concern is that if the slope of the line is greater than 1 or smaller than -1 we will have a series of discrete pixels (the dots cannot be connected if for each x-coordinate we only have one pixel). To solve this problem we can check the slope and move along x-axis or y-axis accordingly. -
VC2005下实现XP风格的做法
日期:2008-10-02 | 分类:C/C++/Java
通常用VC2005到MFC工具写出来的界面都是Windows到传统风格,如何在VC2005下实现XP风格…… -
Thread Experiment Using Java
日期:2008-09-25 | 分类:Operating System(操作系统)
[本日志已设置加密] -
Numerical Analysis Study Notes —— Newton's Method
日期:2008-09-17 | 分类:Numerical Analysis (数值分析)
A program for solving equations using Newton's Method.







