윈도우에서 Winmerge를 사용했었는데

맥에서 어떤걸 써야 하는지 검색 검색


https://www.slant.co/versus/4397/4402/~meld_vs_winmerge


meld가 나름 Winmerge의 경험을 그대로 익숙하게 해주고 더 좋은 평가 ?


공식 홈페이지는 여기 인것 같고

http://meldmerge.org/


비공식 OSX지원이라... ㅎ


실제적인 다운은 github

https://github.com/yousseb/meld/releases/

VS의 Command Tool을 배치에서 실행 했더니 아래 메세지를 보이며 안되는 경우가 있다.

cannot determine the location of the vs common tools folder


vs2008은 안 그랫는데 vs2012 오류...-ㅅ-


bat 파일안에서 reg를 호출 하는데 그것을 경로를 모르기 때문에 오류가 난다. -ㅅ-

환경변수에 Path에 Windows\System32 경로를 넣어주면 해결 된다.


System32 경로를 추가하는 건 reg를 이용하여 VS Common Tools folder를 찾기 위함...

Swift에서 replace는 어떻게 하나 하면서 찾아본...

역시나 있다...


그것도 아주 이쁘게..


You can use this:

let s = "This is my string"
let modified = s.replace(" ", withString:"+")    

If you add this extension method anywhere in your code:

extension String
{
    func replace(target: String, withString: String) -> String
    {
       return self.stringByReplacingOccurrencesOfString(target, withString: withString, options: NSStringCompareOptions.LiteralSearch, range: nil)
    }
}

Swift 3:

extension String
{
    func replace(target: String, withString: String) -> String
    {
        return self.replacingOccurrences(of: target, with: withString, options: NSString.CompareOptions.literal, range: nil)
    }
}


실제 링크는 여기

http://stackoverflow.com/questions/24200888/any-way-to-replace-characters-on-swift-string


Swift2


Swift3



Kanna가 css을 지원한다는데

사실 문법을 잘 모르겠다 -_-;


그래서 좀 검색 해보니


튜토리얼이 있다.

http://tid-kijyun.github.io/Kanna/tutorials/v2/searching.html


그리고 구글을 통해 찾은 샘플 ? 이랄까...

이건 Alamofire랑 같이 해서 사용 하는 방법...

https://www.twilio.com/blog/2016/08/web-scraping-and-parsing-html-in-swift-with-kanna-and-alamofire.html


여기서 힌트를 얻고 하니 잘 된다...

문제가 되엇던 부분은...


이런식의 코드랄까 ? 특수기호를 위해선...저렇게....

for show in doc.css("td[id^='Text']") {

어플리케이션 초기 실행 시


어플리케이션 사용에 도움말을 Coach Mark라고 한단다.

+ Recent posts