remove all .svn dictionaries

find . -name ".svn" -exec rm -rf {} \;

from http://www.dzone.com/snippets/remove-all-svn-folders

and

http://stackoverflow.com/questions/1294590/how-to-remove-all-svn-directories-from-my-application-directories

 

install gcc on mac snowleopad and homebrew

1 To install gcc on mac just follow the link:

https://github.com/kennethreitz/osx-gcc-installer

2 to install homebrew:

http://mxcl.github.io/homebrew/

now try gcc with

gcc -v

you will see:

Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure –disable-checking –enable-werror –prefix=/usr –mandir=/share/man –enable-languages=c,objc,c++,obj-c++ –program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ –with-slibdir=/usr/lib –build=i686-apple-darwin10 –program-prefix=i686-apple-darwin10- –host=x86_64-apple-darwin10 –target=i686-apple-darwin10 –with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)

great! done.

 

Getting JSON from ASP.Net

1. The chef said, I should use a normal aspx to solve this task, and write sth, like reponse.write(„accpeti encoding : txt/json“), it is ugly. Please read this atricle from Johnny Code (http://johnnycode.com/2012/07/16/getting-json-from-asp-net-beautiful-good-bad-ugly/). Why it is ugly.

2 by defualt .net response only to POST Request and return XML. as wrapper. You should add the following http header in your request.

Content-Type: application/json; charset=utf-8

An end the chef want to sue handler to solve the URL rewrite problme, show me some code in web.config to define a handler.
I found this article about add handler in web.config (http://www.yongfa365.com/Item/configuration-configSections-SingleTagSectionHandler-DictionarySectionHandler-NameValueSectionHandler.html)

SVN Schema

svn schema

svn schema

 

The image is from : http://www.codeproject.com/Articles/20603/Accessing-the-Subversion-repository-from-NET-using