Monday, June 29, 2009

Using SoundEngine from apple

Sound Engine 2.0.3 from
http://stormyprods.com/SoundEngine/

Barebones Usage Example

#import 

UInt32     bangSound;

Sunday, June 28, 2009

Play short sound on iphone

Play short sound on iphone

SystemSoundID soundID;
NSString *path = [[NSBundle mainBundle] 
pathForResource:@"RapidFire" ofType:@"wav"]; 

Friday, June 26, 2009

FREE & COOL open source Tools: Jing, Audacity, Handbrake

Check it out, all of them run on Linux, Mac and Windows
And they are FREE! really COOOOOL!!!

Jing: Making your own tutorial, record your screen, share you skills.
http://www.jingproject.com/

Audacity: Sound Editor
http://audacity.sourceforge.net/

Handbrake: Video Transcoder
http://handbrake.fr/

Test Highlighter


public class HelloBlogger {
public static void main(String [] args) {
System.out.println("Hello Blogger!!");
}
}

Thursday, June 18, 2009

Cocos2d framework for iphone

Cocos2d is an open source, 2d graph engine for iphone.

Director
Scene
Layer
Sprite
Menu
....
Schedule animation --- no timer needed, very convenient

Resource List
http://www.alexcurylo.com/blog/2009/05/16/resources-cocos2d/

Great Cocos2d Tutorial
http://www.bit-101.com/blog/?p=2138

WAMP windows apache mysql php

WAMP quick install apache mysql php.
Selectable features.

Saturday, May 02, 2009

Dynamic Memory Allocation

Allocation of memory during execution is called dynamic memory allocation. C provides library functions to allocate and free memory dynamically during program execution. Dynamic memory is allocated on the heap by the system.


#include "stdlib.h"
int *ptr;
ptr = (int *)malloc(sizeof(int));


Sunday, April 19, 2009

How to connect MySql Server using JDBC

还没有试过呢,先粘上来再说。
How to connect MySql Server using JDBC
http://www.java-tips.org/other-api-tips/jdbc/how-to-connect-mysql-server-using-jdbc.html

User Rating: / 60
PoorBest
mysql-connector-java-3.1.10 is JDBC connector for MYSQL database. Place the mysql-connector-java-3.1.10-bin.jar file in your CLASSPATH variable or Application folder.

Example below makes connection to mySQL using com.mysql.jdbc.Driver.

Saturday, April 18, 2009

the twenty best facebook apps for job search

the twenty best facebook apps for job search
Thu, Apr 9, 2009
Articles
Tawny Labrum of BINC Search sent us a write-up of her twenty best Facebook applications for job seekers. Here they are:
Jobster Career Network - Join the Talent Networks of your favorite companies, and get personalized job alerts based on your career interests. Plus, get career advice from your friends; post your resume online, search for jobs, and more.
OfficeBook - What would you tell a friend about your office if he or she was interested in working there? Love your company? Hate it? Say It.
Indeed – Job Search - Find jobs where your friends work. Search millions of jobs from thousands of job sites and company career pages. Receive job proposals and resumes from your profile page.
Testimonials - Use Testimonials to gather your personal, professional and academic references in one place from your teachers, friends, and co-workers.
Professional Profile - Create a professional profile on Facebook. With one click, upload your resume in or import your LinkedIn profile and recommendations. Get recommendations from friends. See resumes in your network.
CareerBuilder - Find a Better Job - Users who add the applications will receive continuously updated job and internship listings. Based on information like major in school, hometown and network, users will receive the most relevant jobs from CareerBuilder’s database in their profile. You can apply to jobs directly or access a link to search for more job on the CareerBuilder.com Web site.
MonsterTrack Job Search Agent - Want to get jobs delivered right to your profile? Download MonsterTRAK’s Job Search Agent application today. Your own personal Agent will pimp your profile with only the jobs you want to see. (On second thought, per our feature post, this probably won’t be available much longer).
Work With Us by Jobvite - The Work With Us application displays jobs on profile or fan pages. Anyone can browse interesting opportunities at companies where friends work, apply to the jobs and send Jobvites to their own friends and contacts.
MeetingWave - MeetingWave is a business or social networking tool that helps you connect offline with people you would like to meet - whether traveling or near home. You can set up meetings with friends only or with a mix of friends and “new” people.
Inside Job - InSide Job connects you to helpful people at places you want to work next by giving you access to where people have interviewed, worked, or are currently employed. Find the right person you are looking for. Post jobs. Get the inside scoop.
Workin It by Simply Hired - Give gold stars to your friends to thank them—think of it as professional props for the people in your network. A good excuse to thank your friends…and a great excuse to get to know everyone else in your network a little bit better. You will thank yourself when you need that “friend of a friend” to help you find your dream job or give you an internal referral at their company, since 80% of jobs are found through friends.
Seek Job Search - SEEK & you shall find. The SEEK Job Search application lets you personalize relevant job search results in your Facebook Profile. Get the freshest jobs delivered every time you log in. Send it to your friends so they stay informed.
Konoker Jobs - KONOKER Jobs is a job advertisement and job search tool allowing individuals to advertise regular and freelance jobs for free, as well as apply for postings from within the application. KONOKER speaks English and Danish.
Jobs - Search thousands of open jobs, directly from employers. Find jobs where your friends work. See what jobs your friends are interested in. Find a job by updating your profile with your work status and dream job.
BraveNewTalent - BraveNewTalent.com is a new social networking site that allows you to connect to employers online. It allows you to take control of your career and engage directly with employers that interest you.
InCircle Connections - Receive exclusive job opportunities. Connect with other members. Join inCircle today to get connected and get ahead.
My LinkedIn Profile - Promote your LinkedIn account with a badge on your Facebook profile.
LinkedIn Contacts -LinkedIn Contacts allows you to view and share your LinkedIn contacts.
Business Cards - Business Cards will help you network better on Facebook. Personalize your card and attach it to your Facebook messages.
Easy CV - Easy CV is an add-on to the famous on-line resume service easy-cv.com. It adds a short view of your CV on your profile and a dedicated page. Resume is available in PDF, MS Word or video.

Monday, April 06, 2009

Sunday, April 05, 2009

下一些教程 chm



最近经常在下一些教程,虽然我经常不看。但我觉得这其实是有用的。

因为我以前也会下这样的东西,也是觉得没什么用,但是到了后来我真的要用的时候,我直接就可以拿来用了,还真方便啊!所以这也算是提前做一些准备吧,以后会用得着的。
我还是比较喜欢chm格式的,因为那些文本的宽度不是固定的,而且可以在我的770上面看,可以换字体大小之类的很方便。但最近下了一些看不了,但文件看上去是好的。上网查了一下,发现很简单地unblock就行了。

Thursday, April 02, 2009

ls and grep on windows

突然觉得打dir太烦了,下了个ls和grep玩一下。感觉还不错。
当然也是开源。估计我是不会去看源码的了。
http://utools.com/msls.asp

Wednesday, April 01, 2009

Atomicity: all actions are carried out, or none

Consistency: each transaction preserves the consistency of the database if executed by itself

  • many consist. states
  • e.g. transfer money, the total is the same - consist.
    T1 : Transf. $1000 from A to B
    -----R(A) W(A) R(B) W(B)
    T2 : same as T1
    ++ Serial Schedule

Isolation:

Isolation refers to the requirement that other operations cannot access or see the data in an intermediate state during a transaction. This constraint is required to maintain the performance as well as the consistency between transactions in a DBMS.

Duability :

Durability refers to the guarantee that once the user has been notified of success, the transaction will persist, and not be undone. This means it will survive system failure, and that the database system has checked the integrity constraints and won't need to abort the transaction. Many databases implement durability by writing all transactions into a transaction log that can be played back to recreate the system state right before a failure. A transaction can only be deemed committed after it is safely in the log.

A Mug's Guide to Unix

---- P. A. Robinson

This guide is intended to introduce the rank beginner to enough UNIX to get started. It is a list of useful commands that work. For more information on these and other commands, use the man command described below.
Note: CR=carriage return.

Friday, March 27, 2009

组合优化 quiz3

还好,homework4也拿了个A,希望这门课可以拿A吧,不要A-。后面的两次quiz好好考吧。project4还是挺好玩的,对批处理也搞了一下。向其他人学习会进步得很快的。

下面提醒一下自己

Quiz #3

When: Monday, Mar 30, 2009
Description:

Linear programming. Simplex algorithm. Integer-linear programming.
Branch and Bound algorithm. Bounds and the Knapsack Problem.
Dynamic programming (matrix multiplication and TSP).
And all previous material.

Thursday, March 26, 2009

qq和google的工具栏

那个在线的收藏夹一直是我很喜欢的功能,看到QQ工具栏有这个,我很高兴就装了。其实QQ工具栏好像挺不错的,但是登录上面的有一些不方便,又比较占资源,那个收藏夹加东西,同步超慢,所以没用了。可能是因为我在美国的原因吧,但还是没有用了,现在在用google bar了,他家的bookmark虽然挺难看的,但胜在快啊。有时候用一个软件真的很看印像,从小处为用户着想,才有人喜欢用。

如果delicious也可以加到这上面来就更好了。这样的东西可能早就有了只是我不知道而已啦。现就去搜一下吧。好像没有,那就算了。

如果可以做到QQ登录了,网页就自动登录就方便多了,或者弹出一个窗口确认登录也是不错的。QQ真的做了很多东西啊,能进去工作的话也真不错,应该有很多新鲜的东西可以尝试。不过听说里面很辛苦。

就这样的。工作最近没怎么找,人倒是放松了,舒舒服服地上自己的课,做自己的project. 然后,自己做做网页,我还是很喜欢搞这个的,如果真的可以很我现在学到的编程的功力用到一处当然是我所希望的啦。好好做我现在的事情吧。我觉得我一点也不怕回国。也不怕留在这里。我在哪都能找到我自己地方。我觉得我可以学到更多,这种学习只能靠自己了,如果有人教就最好了,但是不要寄希望在这种地方,只有自己可以创出自己的天地来。

Friday, March 13, 2009

Set Up the Sun Java Server GlassFish

  J2EE的服务器装好了很久了,没用过,又安装了Tomcat, 之前跟着教程试过了好几个servlet,但是还不知道jsp是什么工作的。今天想一用一下吧。就回归到这个问题上了。想用netbean,看了一下自带的quick start结果发现很多文件夹都对应不上,东西都找不到,quickstart不了。于是想去sun网站找个新的quickstart 吧,结果找到一个旧的,倒是对应上了。就start了一个,于是我的第一个jsp helloworld就出现在我的屏幕上了,然后呢,又不知道干什么了。不过先总结一下吧。

quick start: http://docs.sun.com/source/819-1004/QuickStart.htm
(1) 服务器网址: http://localhost:8080/
(2) www server root 在 install_dir/domains/domain1
(3) 例子在 install_dir/samples , helloworld也在这
(4) 在domain1里面有个autodeploy的文件夹,把war文件放进去就会自动deploy了。
(5) 管理地址: http://localhost:4848/asadmin
  不过好像 http://localhost:4848/ 就可以了。我没用过。

Saturday, March 07, 2009

Java on My Nokia 770 --- (2)

http://www.internettablettalk.com/forums/showthread.php?t=6555

转一个贴。好像讲了很多,贴过来再说吧

WARNING: DO NOT ATTEMPT TO USE THESE FILES UNLESS YOU'RE ABSOLUTELY SURE YOU KNOW WHAT YOU'RE DOING. NO SUPPORT WILL BE PROVIDED.

原文的链接已经坏了。

The first link is a ARMEL CVM built on QT 3.3.4. (Circa 8M unpacked)
The second link is the QT 3.3.4 libraries. (Circa 40M unpacked)

Some of you might have seen my (extremely) cryptic post about libqt3-mt. This was what I was going for. I've tested it on my N800 and was able to get basis.DemoFrame up and running (although it interferes with basically everything at this point, get ready to hit HOME and force-kill the xterm .

INSTALL: (Note that you'll need 50M of root space. I'm working on that...)(this assumes you downloaded the two files to your external MMC)


再转一个: phoneME Advanced: Building Qt Embedded

Thursday, March 05, 2009

Find a job now

I think I should focus more on the on-campus jobs. I can find my way out. It's a very important time to determine my life. I could have done more. I am starting again for my future. Whatever the result is, i will not have any regret, if i have try my best. Wish me success. Good luck!

Tuesday, March 03, 2009

Nokia Internet Tablet Resources 770/n800/n810

http://mg.pov.lt/

http://www.internettablettalk.com/

http://www.mulliner.org/nokia770/

http://examplified.net/guide/Nokia_770/
Introduction
Recommended Accessories
Flash Newest Image
Install XTerm and Root Access
Tethering to a Bluetooth Phone
Installing a SSH Client and Server
Booting from MMC
Using GPS and Maemo Mapper
Resources

Java on My Nokia 770

It's actually called "PhoneMEAdvanced MR2 Java CDC/FP version 1.1 VM"
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatformsNokia800

Step 1 Install tools we need

1.1 OpenSSH server
1.2
osso Xterm
1.3
unzip
1.4
wget

1.1 OpenSSH is not needed here, but it's a very interesting tool. I install both of the client and server. Having the server installed, it's supposed that we can access the device via its IP address from a normal computer so that the typing would be easier. Need password, it might be "rootme".

1.2 osso Xterm is the terminal console
We do everything here.

1.3 unzip
so that we can unzip the .zip files.

1.4 wget
it's a GNU freeware, search "maemo wget", you will get to here:
http://maemo.org/downloads/product/OS2007/wget/
for 770, http://maemo.org/downloads/product/OS2006/wget/
Open the page on 770 using the OS2006 link. However, my 770 cannot find the resource.
We can get it here:
http://mg.pov.lt/770/dists/mistral/other/binary-armel/
There are many other application at mg.pov.lt too.

Step 2.
get a binary runtime build here

http://thehereweb.googlepages.com/N800-java-cdc-fp-pmea-mr2-rev5444.zip

link to the java.net page. and show the java servlet on 770
http://thehereweb.googlepages.com/runningosgionthenokian800

This is the most important materials
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatformsNokia800

Step 3. Run to Validate

we can unzip it on our PC and send to 770 and must be on the ram, cannot save in the mmc card.
put it anywhere in the /home/user/MyDocs/.documents/
chmod 555 ./bin/cvm
give it the permission to execute.

Transfer zipfile to N800, unzip to a directory of your choice and validate on N800 with these commands: Nokia-N800:/cdc/# ./bin/cvm -version
Product: phoneME Advanced (phoneme_advanced_mr2-b18)
Profile: Foundation Profile Specification 1.1
JVM: CVM phoneme_advanced_mr2-b18 (mixed mode)
Nokia-N800:/cdc/# ./bin/cvm -cp testclasses.zip HelloWorld
Hello world.
Nokia-N800:/cdc/# ./bin/cvm -cp testclasses.zip Test
<... lots of output ...>
*CONGRATULATIONS: test Test completed with 411 tests passed and 0 failures
*Output lines starting with a * should be checked for correctness
*They can be compared to src/share/javavm/test/TestExpectedResult

Write blog on my 770!!

I write this blog on my Nokia 770.
Interesting!

I installed the wordpy on it. And can connect to wordpress or blogger

Wednesday, February 25, 2009

三年之后重新开blog

这几天在想用blog来记录一下自己的学习,找不到一个好的地方,就想到了google,要一个situee的帐号竟然被占了。打开一看原来是自己三年前开的,由于那时blogspot被封了就没有用了。转眼就三年了,重新开博要的就是要记录自己学习的轨迹,用一个一个的脚印来激励自己。加油啊,这只是一个开始。坚持就是胜利!!