Haoxiang’s Blog
Skip to content
  • Home
  • Blog Posts
  • (中文)
  • (EN)
  • About
  • RSS
  • Messages

English

There are 36 posts filed in English (this is page 4 of 5).

Post navigation

fstream issue under 64-bits cygwin

This is a question I posted on StackOverflow: fstream issue under 64-bits cygwin, glad to get help from Nemo on Stackflow, all credits goes to him. The problem is when I use 64-bits g++ to compile the same piece of code, I get unexpected different result. The source code looks like this: #include #include using […]

in Blog Posts, English, Solution | 2012/03/14 | Comment

Use a different delimiter in sed

Think about this, you want to replace “XXX” with a path like “/path/to/YYY” in a file. Your file looks like this: XXX AAA XXX Your bash script looks like this: NEW_PATH=”/path/to/YYY” VAR=”XXX” sed -e ‘{s/$VAR/$NEW_PATH/g}’ your_file Well, it won’t work, since single quotes ‘ will force bash to keep variables as-is. Ok, we try to […]

in Blog Posts, English, Solution | 2012/03/13 | Comment

Project-Specific Vim Configuration

Usually, we have our own vim configuration in the file ~/.vimrc What if we want one for our project? For example, we are working on certain project which needs to read in a tags file. Well, here is a possible solution. You put a line at then end of your ~/.vimrc file source ./.project.vim Then […]

in Blog Posts, English, Solution | 2012/02/24 | 1 Comment

tail -n

Quite useful trick, when you want to get rid of the first certain lines of the output/file. $tail -n +2 tail prints out the result starts from the 2nd line. When you use the “find” command to generate a file list under certain folder, this is quite easy to eliminate the folder path at the […]

in Blog Posts, English, Solution | 2012/02/05 | Comment

Draw ROC Curve

A piece of fairly simple Matlab script to draw the ROC Curve from an array of scores and an array of labels. function [Tps, Fps] = ROC(scores, labels) %% Sort Labels and Scores by Scores sl = [scores; labels]; [d1 d2] = sort(sl(1,:)); sorted_sl = sl(:,d2); s_scores = sorted_sl(1,:); s_labels = round(sorted_sl(2,:)); %% Constants counts […]

in Article, Blog Posts, English | 2012/02/03 | 6 Comments

Check out your svn copy through ssh without those annoying password prompts

This is an instruction I wrote to help people in our lab to access codebase on our server. I have removed all the specific information. Since setting up something on Windows is always such a challenging work, help this one helps. The background is that, on the server side, you are using ssh to protect […]

in Blog Posts, English, Solution | 2012/01/20 | Comment

[iOS]use different names for icons and launch images

Useful references: In order to use different names for icons and launch images in your App, you need to add new entries in your info.plist file. For icons, refer to this: App Icons on iPad and iPhone For launch images, refer to this: App Launch (Default) Images

in Blog Posts, English, Solution | 2011/12/13 | 1 Comment

[iOS]CountDown with circle animation

You may want this :] Check it out from the github: Circle-Counter-Down

in Article, Blog Posts, English, iOS Development | 2011/11/26 | 2 Comments

Post navigation

这个网站使用的主机 (我的推广链接)
Independent Publisher empowered by WordPress