1월, 2014의 게시물 표시

svn (subversion) *.a, *.so files commit

cd ~/.subversion vi config remove *.a, *.so from global-ignore in config file. in svn client, check View/Show Ignored Items.  ---------------- svn이 기본적으로 .a 파일에 대해 ignore되어 있다고 합니다. 이를 commit하기 위해서는 다양한 방법이 있습니다. 먼저, 직접 커맨드를 이용하여 하는 방법입니다. ; svn add 파일명 --no-ignore 그리고 svn설정에 .a가 ignore된 설정을 지우는 방법입니다. ; cd ~/.subversion ; config파일을 열어서 global-ignores에서 *.a 제거해주시면 됩니다.

utf 8 handling sample

strncpy() is a terrible function: 1. If there is insufficient space, the resulting string will not be nul terminated. 2. If there is enough space, the remainder is filled with NULs. This can be painful if the target string is very big. Even if the characters stay in the ASCII range (0x7f and below), the resulting string will not be what you want. In the UTF-8 case it might be not nul-terminated and end in an invalid UTF-8 sequence. Best advice is to avoid strncpy(). EDIT: ad 1): #include #include int main (void) { char buff [4]; strncpy (buff, "hello world!\n", sizeof buff ); printf("%s\n", buff ); return 0; } Agreed, the buffer will not be overrun. But the result is still unwanted. strncpy() solves only part of the problem. It is misleading and unwanted. UPDATE(2012-10-31): Since this is a nasty problem, I decided to hack my own version, mimicking the ugly strncpy() behavior. The return value is the number of characters copied, though.. #include #include

Subversion in OS X

After you have installed Xcode 4.5 you need to follow these instructions in order to install the command line tools. Once you've done that successfully then you should see that svn is installed: $ which svn /usr/bin/svn $ svn --version svn, version 1.6.18 (r1303927) compiled Aug 4 2012, 19:46:53 Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see http://subversion.apache.org/ This product includes software developed by CollabNet (http://www.Collab.Net/). The following repository access (RA) modules are available: * ra_neon : Module for accessing a repository via WebDAV protocol using Neon. - handles 'http' scheme - handles 'https' scheme * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme $

How to obtain Certificate Signing Request

Since you made an install of a new OS you probably don't have any more your private and public key that you used to sign your app in XCode before. You need to regenerate those keys on your machine by revoking your previous certificate and ask for a new one the iOS development portal. As part of the process you will be ask to generate a Certificate Signing Request which is where you seem to have problem. You will find all u need there which consist of (from the official doc): 1.Open Keychain Access on your Mac (located in Applications/Utilities). 2.Open Preferences and click Certificates. Make sure both Online Certificate Status Protocol and Certificate Revocation List are set to Off. 3.Choose Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority. Note: If you have a private key selected when you do this, the CSR won’t be accepted. Make sure no private key is selected. Enter your user email address and common name. Us

Fastest method of screen capturing

Fastest method of screen capturing up vote 75 down vote favorite 59 I want to write a screencasting program for the Windows platform, but am unsure of how to capture the screen. The only method I'm aware of is to use GDI, but I'm curious whether there are other ways to go about this, and, if there are, which incurs the least overhead? Speed is a priority. The screencasting program will be for recording game footage, although, if this does narrow down the options, I'm still open for any other suggestions that fall out of this scope. Knowledge isn't bad, after all. Edit: I came across this article: Various methods for capturing the screen. It has introduced me to the Windows Media API way of doing it and the DirectX way of doing it. It mentions in the Conclusion that disabling hardware acceleration could drastically improve the performance of the capture application. I'm curious as to why this is. Could anyone fill in the missing blanks for me? Edit: I read tha