'Programming > ITS' 카테고리의 다른 글
Image Uploader of CKEditor plugin (CKFinder) (0) | 2013.01.01 |
---|---|
Redmine & WIN32OLE(excel) 성공 - ruby (0) | 2013.01.01 |
Redmine - Issue statuses(원본) (0) | 2012.01.28 |
Image Uploader of CKEditor plugin (CKFinder) (0) | 2013.01.01 |
---|---|
Redmine & WIN32OLE(excel) 성공 - ruby (0) | 2013.01.01 |
Redmine - Issue statuses(원본) (0) | 2012.01.28 |
할일 : 아래 링크의 doc 파일을 다운받아서, 첨부하기.
-> 이미 ucloud에 넣었네... ^^;
-------------------------------------------
출처: http://blog.naver.com/ansysda/10028865422
SQL Server 전문 컨설턴트가 DB 운영의 문제를 안고 있는 중소기업체를 방문, 진단하여 성능향상과 효율적인 DB 관리 방안에 대한 최적의 방안을 제시해 드리고 있습니다. 현장의 DB 관리자들이 현업에서 겪는 실제 문제점에 실제 사례를 통해서, 시스템 진단에서부터 해결책 제시까지 문,답식으로 구성되어 쉽게 이해할 수 있으며, 현업에 적용이 가능하도록 구성이 되어 있습니다.
1. 중소기업을 위한 SQL Server 기본 모니터링
6. SQL Server 2005로 마이그레이션 후 운영 가이드
더 많은 자료들은 이곳에서..
[출처] SQL Server 실전 묻고 답하기 |작성자 JasonPark
MS SQL Server 데이터베이스 엔진 버전 및 Edition을 확인하는 방법 (0) | 2012.11.30 |
---|---|
SQL문 예제 - MySQL (0) | 2012.11.29 |
MySQL inner join 예제 (0) | 2012.09.07 |
내가 등록한 것.
http://www.redmine.org/plugins/ckfinder_for_redmine
|
Author: | Joshua Lee |
---|---|---|
Website: | - | |
Code repository: | - | |
Registered on: | 2012-11-26 (약 한달) | |
Current version: | 1.0.0 | |
Compatible with: | Redmine 1.4.x, 1.3.x |
You can use CKFinder to uploading images in CKEditor plugin.
Also you can browse images in CKEditor.
I didn't test in redmine v2.x, but it will work.
(* CKFinder is not free.)
0. Stop apache server
1. Copy unzipped CKFinder folder into
C:\Program Files\BitNami Redmine Stack\apache2\htdocs
2. Copy helper.rb file into
C:\Program Files\BitNami Redmine Stack\apps\redmine\vendor\plugins\redmine_ckeditor\lib\redmine_ckeditor\wiki_formatting
3. Copy config.php file into
C:\Program Files\BitNami Redmine Stack\apache2\htdocs\ckfinder
4. Restart apache server
Compatible with Redmine 1.4.x, 1.3.x.
redmine Plugin ScreenshotPaste (0) | 2013.02.22 |
---|---|
Redmine & WIN32OLE(excel) 성공 - ruby (0) | 2013.01.01 |
Redmine - Issue statuses(원본) (0) | 2012.01.28 |
Image Uploader of CKEditor plugin (CKFinder) (0) | 2013.01.01 |
---|---|
Redmine - Issue statuses(원본) (0) | 2012.01.28 |
[Redmine] 단어 정의 (0) | 2012.01.28 |
Drones+ 아이폰앱 제작자인 Josh Begley의 작품.
(Drones+에 대한 한국기사: http://www.bloter.net/archives/136377)
출처: http://prisonmap.com/about
Prison Map is not a map -- it's a snapshot of the earth's surface, taken at various points throughout the United States. It was made by Josh Begley, a graduate student studying Interactive Telecommunications at New York University.
The United States is the prison capital of the world. This is not
news to most people. When discussing the idea of mass incarceration, we
often trot out numbers and dates and charts to explain the growth of
imprisonment as both a historical phenomenon and a present-day reality.
But what does the geography of incarceration in the US actually look like? Prison Map is my attempt to answer that question.
The project came about in a Data Representation class with Jer Thorp
at NYU. It begins from the premise that mapping the contours of the
carceral state is important. A number of people and organizations have
done excellent work in this regard. Among them are the Prison Policy Initiative and Prisoners of the Census.
Over the past few years, they have culled together a database of
seemingly mundane but hard-to-locate information: the latitude and
longitude of every carceral facility in the United States (currently
with the exception of WA, WV, WI, and WY). Their locator tool,
which aims to identify correctional facilities counted in the 2010
census for the purposes of accuracy and redistricting, is the first
database I know of to include state and federal prisons alongside local
jails, detention centers, and privately-run facilities. You can explore
their facility locator here.
When using the tool, however, it was hard for me to get a sense of
volume -- what does it mean to have 5,000 or 6,000 people locked up in
the same place? What do these carceral spaces look like? How do they
transform (or get transformed by) the landscape around them?
In order to begin answering some of these questions, I started playing with satellite imagery. The Google Maps API
allows you to pass any latitude and longitude into its Static Maps
service, specifying parameters such as format and zoom level, and it
will spit back an image of that particular location. With Jer's help, I
wrote a simple Processing sketch that would grab image tiles at various lat/lons, save them as a .jpg file, and cycle through all 4,916 facilities:
String[] prisons;
void setup() {
}
void draw() {
prisons = loadStrings("prisons-latlon.csv");
for(int i = 0; i < prisons.length; i++) {
String[] values = split(prisons[i], ",");
String lat = values[0];
String lon = values[1];
String id = values[2];
PImage test = getSatImage(lat,lon);
test.save("facility" + id + ".jpg");
}
}
PImage getSatImage(String lat, String lon) {
String url = "http://maps.googleapis.com/maps/api/staticmap?center=" + lat + "," + lon + "&zoom=
16&scale=1&size=640x640&maptype=satellite&sensor=false&junk=.jpg";
return(loadImage(url));
}
감사합니다 이미지 (0) | 2014.02.04 |
---|---|
[펌] ASP.NET-DataGrid를 간단하게 Excel로 변환하기 (0) | 2012.11.29 |
[펌] mysql vs mysqli 속도 테스트 (0) | 2012.11.21 |
참고 : http://support.microsoft.com/kb/321185/ko
1. 새 쿼리 선택
2. select @@VERSION 실행
-> 쿼리 결과에서 버전은 R2 (SP2),
Edition은 Enterprise Edition을 조회가능.
[펌] SQL Server 실전 묻고 답하기 (0) | 2013.01.16 |
---|---|
SQL문 예제 - MySQL (0) | 2012.11.29 |
MySQL inner join 예제 (0) | 2012.09.07 |
[ASP,ASP.NET,PHP,JSP,JavaScript,Database 등 웹개발자 모임] | tlsgidgh
http://cafe.naver.com/webdeveloper/4014
Taeyo's ASP.NET
| ||||
|
공익웹 아이디어 & Google map api 활용사례 (3) | 2012.12.06 |
---|---|
[펌] mysql vs mysqli 속도 테스트 (0) | 2012.11.21 |
쉬운 HTML5 역사 (The history of HTML5) (0) | 2012.11.08 |
+---------------------+-----------------------------------------------------------+
| Variable_name | Value |
+---------------------+-----------------------------------------------------------+
| log_slow_queries | OFF |
| slow_launch_time | 2 |
| slow_query_log | OFF |
| slow_query_log_file | C:\ProgramData\MySQL\MySQL Server 5.5\Data\E01-1-slow.log |
+---------------------+-----------------------------------------------------------+
4 rows in set (0.00 sec)
MS SQL Server 데이터베이스 엔진 버전 및 Edition을 확인하는 방법 (0) | 2012.11.30 |
---|---|
MySQL inner join 예제 (0) | 2012.09.07 |
Table Join 소요시간 (MySQL) (0) | 2012.09.07 |
출처: http://blog.naver.com/zsssd/150021318263
옛날에 썼던 글이네요.. 어느 분이 퍼가셨던거 찾아서 올립니다.
김호 책을 보다가 전에 봤지만 써보지 않았던 mysqli 에 관한 이야기가 있길래 테스트해 보았습니다.
1. mysql 함수로 사용했을 경우
소스코드 :
<?
$start = microtime();
$link = mysql_connect($host,$user,$pw) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());
$result = mysql_query("select * from member limit 10") or die(mysql_error());
echo "<xmp>";
while($row = mysql_fetch_assoc($result))$out[] = $row;
for( $i=0,$cnt=count($out) ; $i < $cnt ; $i++ ){
$rank = $out[$i]['rank'];
$name = $out[$i]['name'];
echo "$rank $name \n";
}
echo "</xmp>";
mysql_close($link);
$end = microtime();
$time = $end - $start;
echo $time;
?>
0.002698
2. mysqli를 객체지향으로 사용했을 경우
소스코드 :
<?
$start = microtime();
$my_db = new mysqli($host,$user,$pw,$db);
if ( mysqli_connect_errno() ) {
echo mysqli_connect_error();
exit;
}
$result = $my_db->query("select rank,name from member limit 10") or die($my_db->error);
while($row = $result->fetch_assoc())$out[] = $row;
$result->close();
echo "<xmp>";
for( $i=0,$cnt=count($out) ; $i < $cnt ; $i++ ){
$rank = $out[$i]['rank'];
$name = $out[$i]['name'];
echo "$rank $name \n";
}
echo "</xmp>";
$my_db->close();
$end = microtime();
$time = $end - $start;
echo $time;
0.001557
?>
10건을 쿼리했을 경우
기존방식처럼 mysql 를 사용했을 경우 0.002698
mysqli를 사용했을 경우 0.001557
1000건 쿼리했을 경우
기존방식처럼 mysql 를 사용했을 경우 0.156648
mysqli를 사용했을 경우 0.052507
결론 : mysqli를 사용하는 것이 속도가 훨씬 빠릅니다.
[펌] ASP.NET-DataGrid를 간단하게 Excel로 변환하기 (0) | 2012.11.29 |
---|---|
쉬운 HTML5 역사 (The history of HTML5) (0) | 2012.11.08 |
Firefox Add-in 설정 : Firebug (0) | 2012.10.26 |
출처 : http://serverfault.com/questions/329845/how-to-forcibly-close-a-socket-in-time-wait
/etc/init.d/networking restart
Let me elaborate. Transmission Control Protocol (TCP) is designed to be a bidirectional, ordered, and reliable data transmission protocol between two end points (programs). In this context, the term reliable means that it will retransmit the packets if it gets lost in the middle. TCP guarantees the reliability by sending back Acknowledgment (ACK) packets back for a single or a range of packets received from the peer.
This goes same for the control signals such as termination request/response. RFC 793 defines the TIME-WAIT state to be as follows:
TIME-WAIT - represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request.
See the following TCP state diagram:
TCP is a bidirectional communication protocol, so when the connection is established, there is not a difference between the client and the server. Also, either one can call quits, and both peers needs to agree on closing to fully close an established TCP connection.
Let's call the first one to call the quits as the active closer, and the other peer the passive closer. When the active closer sends FIN, the state goes to FIN-WAIT-1. Then it receives an ACK for the sent FIN and the state goes to FIN-WAIT-2. Once it receives FIN also from the passive closer, the active closer sends the ACK to the FIN and the state goes to TIME-WAIT. In case the passive closer did not received the ACK to the second FIN, it will retransmit the FIN packet.
RFC 793 sets the TIME-OUT to be twice the Maximum Segment Lifetime, or 2MSL. Since MSL, the maximum time a packet can wander around Internet, is set to 2 minutes, 2MSL is 4 minutes. Since there is no ACK to an ACK, the active closer can't do anything but to wait 4 minutes if it adheres to the TCP/IP protocol correctly, just in case the passive sender has not received the ACK to its FIN (theoretically).
In reality, missing packets are probably rare, and very rare if it's all happening within the LAN or within a single machine.
To answer the question verbatim, How to forcibly close a socket in TIME_WAIT?, I will still stick to my original answer:
/etc/init.d/networking restart
Practically speaking, I would program it so it ignores TIME-WAIT state using SO_REUSEADDR option as WMR mentioned. What exactly does SO_REUSEADDR do?
This socket option tells the kernel that even if this port is busy (in
the TIME_WAIT state), go ahead and reuse it anyway. If it is busy, but with another state, you will still get an address already in use error. It is useful if your server has been shut down, and then restarted right away while sockets are still active on its port. You should be aware that if any unexpected data comes in, it may confuse your server, but while this is possible, it is not likely.
[펌] Eclipse 3.7 Indigo 한글 폰트 문제 (0) | 2013.04.05 |
---|---|
svchost.exe의 내부 service 확인방법 (0) | 2012.11.05 |
오픈소스SW 라이선스 가이드 (정보통신부) (0) | 2012.10.10 |
1장의 이미지로 표현된 HTML5 역사
출처: http://walyou.com/html5-infographic/
[펌] mysql vs mysqli 속도 테스트 (0) | 2012.11.21 |
---|---|
Firefox Add-in 설정 : Firebug (0) | 2012.10.26 |
php- failed to open stream: Permission denied 발생시 (0) | 2012.10.02 |
3개의 방법이 있다.
(아래그림들은 PID 324를 사례로 설명)
1. 명령 프롬프트에서 tasklist -svc
- 별도의 툴없이 간단 확인용도
2. Process Explorer 사용
- 특징: 내부서비스의 파일명과 위치까지 확인 가능
3. Svchost Viewer 사용
- 특징 : 위 1,2번과 달리 프로세스 중에서 Svchost만 보여주고, Description에서 상세설명 있음
Svchost Viewer Ver 0.5.0.1.zip
참고 url
http://www.orz.kr/tt/orz/entry/svchost-%EB%84%88%EB%A5%BC-%EB%A7%90%ED%95%B4%EC%A4%98?category=0
http://muzbox.tistory.com/m/189
How to forcibly close a socket in TIME_WAIT? (linux) (3) | 2012.11.16 |
---|---|
오픈소스SW 라이선스 가이드 (정보통신부) (0) | 2012.10.10 |
Virtual Serial Ports Emulator (serial port 에뮬레이터의 또다른 제품) (0) | 2012.10.04 |
쉬운 HTML5 역사 (The history of HTML5) (0) | 2012.11.08 |
---|---|
php- failed to open stream: Permission denied 발생시 (0) | 2012.10.02 |
javascript로 php 호출하여 파일 업로드하기 (0) | 2012.10.01 |
svchost.exe의 내부 service 확인방법 (0) | 2012.11.05 |
---|---|
Virtual Serial Ports Emulator (serial port 에뮬레이터의 또다른 제품) (0) | 2012.10.04 |
[펌] OSI 7 layer - 설명최고. (1) | 2012.09.29 |
32bit는 freeware.
http://www.eterlogic.com/Products.VSPE.html
오픈소스SW 라이선스 가이드 (정보통신부) (0) | 2012.10.10 |
---|---|
[펌] OSI 7 layer - 설명최고. (1) | 2012.09.29 |
Dependency Walker 2.2 (0) | 2012.07.25 |
It's a permission-related error. Set write permissions for web user to the folder templates_c.
To set permissions in Windows:
- right-click on your folder, go to Properties -> Security
- add user named UISR_<machine name> (if don't exists)
- and assign Full Permissions for this user.
- Then click OK.
Firefox Add-in 설정 : Firebug (0) | 2012.10.26 |
---|---|
javascript로 php 호출하여 파일 업로드하기 (0) | 2012.10.01 |
JavaScript 공부 (0) | 2012.08.27 |
* 목적: redmine의 CKEditor plug-in에 image upload 기능 추가하기
* 테스트 항목
: javascript에서 html 파일을 거치지 않고, php로 이미지 파일 업로드하기
1. CKEditor에 파일(이미지) 찾기 기능 추가 -> 완료
2. win7에서 IIS7에서 jquery 이용하여 php 호출
3. php에서는 이미지 업로드
동적으로 jquery.js를 삽입하기
php- failed to open stream: Permission denied 발생시 (0) | 2012.10.02 |
---|---|
JavaScript 공부 (0) | 2012.08.27 |
Eloquent JavaScript (Free ebook) (0) | 2012.08.10 |
from:
이젠 기억도 잘 안나는 OSI 7계층...ㅠㅠ 인터넷에 돌아다니는 이미지들을 참고하여 정리해보았다. 먼저, 각 층별 데이터 단위를 살펴보면 다음과 같다.
Virtual Serial Ports Emulator (serial port 에뮬레이터의 또다른 제품) (0) | 2012.10.04 |
---|---|
Dependency Walker 2.2 (0) | 2012.07.25 |
[펌] VS2008 배포시 문제 (0) | 2012.07.24 |
DELIMITER $$
### PROCEDURE ------ ###
DROP procedure IF EXISTS bitnami_redmine.proc1 $$
CREATE PROCEDURE bitnami_redmine.proc1(IN Process TEXT, IN Maker TEXT, IN ProbType TEXT)
BEGIN
# DECLARE i INT DEFAULT 0;
# DECLARE min_beforedate INT DEFAULT 0;
select a2.customized_id, a2.value, c.value from
(select a.customized_id, a.value, a.custom_field_id from
#(select customized_id, value, custom_field_id from custom_values as a where (custom_field_id = 17 and value = 'BOSCH')) as a
(select customized_id, value, custom_field_id from custom_values as a where (custom_field_id = 17 and value = Maker)) as a
inner join
#(select customized_id, value, custom_field_id from custom_values as b where (custom_field_id = 1 and value = 'PAINT')) as b
(select customized_id, value, custom_field_id from custom_values as b where (custom_field_id = 1 and value = Process)) as b
where a.customized_id = b.customized_id) as a2
inner join
#(select customized_id, value from custom_values as c where (custom_field_id = 3 and value = 'SFEM S/W')) as c
(select customized_id, value from custom_values as c where (custom_field_id = 3 and value = ProbType)) as c
where a2.customized_id = c.customized_id;
END $$
DELIMITER ;
SQL문 예제 - MySQL (0) | 2012.11.29 |
---|---|
Table Join 소요시간 (MySQL) (0) | 2012.09.07 |
MySQL error code (1) | 2012.08.28 |
* Table Join 소요시간 (MySQL)
inner join이 self join보다 빠름 : 테이블의 내부검색시(테이블 1개를 2개로 간주)
select a.customized_id, a.value, a.custom_field_id from
(select customized_id, value, custom_field_id from custom_values as a where (custom_field_id = 17 and value = 'AMAT')) as a
inner join
(select customized_id, value, custom_field_id from custom_values as b where (custom_field_id = 1 and value = 'ETCH')) as b
/* 0 rows affected, 38 rows found. Duration for 1 query: 0.016 sec. */
select a.customized_id from custom_values a, custom_values b
where
(a.custom_field_id = 17 and a.value = 'AMAT')
and (b.custom_field_id = 1 and b.value = 'ETCH')
and a.customized_id = b.customized_id
/* 0 rows affected, 38 rows found. Duration for 1 query: 0.124 sec. */
MySQL inner join 예제 (0) | 2012.09.07 |
---|---|
MySQL error code (1) | 2012.08.28 |
[펌] MySQL 튜닝 18 가지 (0) | 2012.08.09 |