티스토리 툴바

goodgene's Blog
goodgene

Install apache2 using Mac Port

w/ Tech Geeks 2011/09/26 23:37 by goodgene
There are some issues to install apache2 using mac port. 
I've sovled the issue by below command .


$ sudo port -f install apache2 +universal 




웹사이트를 미러링하기 위한 가장 기본적인 툴은 wget 입니다.
그런데 naver, gmarket, 11st 등의 웹사이트를 로컬에 저장할 목적으로 wget을 이용시 잘 안되더라구요. 이건 매뉴얼을 잘 안보는 본인의 탓일 수도 있지만 보통 추천하는 다음의 명령어도 제대로 수행되지 않았지요.

'wget' is a basic tool to mirror a web site and I usually have used it.
 But I failed to mirror web sites like naver, gmarkget, 11st to save pages as local cache. Maybe the reason of failure is my wrong use but the command that 'man page' gives won't work well.
wget -m -k -K -E -l 2 http://www.daum.net 

그래서 다시 검색, 그 결과 찾은 툴은 httrack 입니다. 이것 아니었으면 몇 시간의 python 삽질 스크립트를 만들 뻔 했으나 다행이도 원하는 일을 잘 해준 고마운 툴입니다.

So I've tried to google, eventually found 'httrack'. Without this cool tool , I could have dig to implement python code. Thanks to httrack !
windows 툴도 제공하니 써있는 그대로 따라하면 됩니다~.
단, recursion depth를 1-2 정도로만 해서 쓰세요. 과한 트래픽 발생으로 귀찮은 문제가 생길지도 모르니~. 

Httrack also supports windows version.
And you should  be sure to use setting as 1-2 recursion depth. Without the setting, you'll see a some noisy problem ;)
With the help of mix1009's article, I applied our trac system to view our guy's 7 days working summary.
This SQL version is for SQLite, so if u want to apply to MySQL or other DBMS,
you can change 'strftime('%s','now') - 7 * 86400' to use your DBMS's date function.

mix1009님의 글을 보고 '7일간 활동한 작업을 개발자별로 확인하기' 트랙 리포트를 만들어보았습니다.
이 버전은 SQLite를 위한 것이므로 다른 DBMS를 쓸 경우 아래 녹색 부분을 해당 DBMS date function에 맞도록 수정해서 쓰시면 됩니다. SQL 성능은 좀...^^

select
   p.value AS __color__,
   owner AS __group__,
   id AS ticket,
   (CASE status WHEN 'assigned' THEN owner||' *' ELSE owner END) AS owner,
   summary,
   component,
   priority,
   t.type AS type,
   status,
   time AS _created,
   changetime AS modified,
   description AS _description,
   reporter AS _reporter

from (

    SELECT *
    FROM ticket
    where changetime > strftime('%s','now') - 7 * 86400
    order by changetime desc

) t, enum p

where p.name = t.priority AND p.type = 'priority'
order by owner, changetime desc


p.s. Trac's default index schema doesn't gurantee good performance of this script. If u have performance problem, build the indexes after 'explain sql' ;)
1 2 3 
분류 전체보기 (7)
w/ Tech Geeks (7)