'Program'에 해당되는 글 38건
- 2011/03/12 Lua - MessageFrame:AddMessage
- 2011/02/23 Lua - Control Statement
- 2010/04/20 C++ 용량이 큰 소스파일에서 상단에 설정하는 내용
- 2009/10/10 Your files are always in sync - DropBox.com
- 2009/07/07 PHP - Detects what compression file uses
- 2009/06/29 Visual C++ 6 Unleashed
- 2009/02/13 Visual Studio에서 " " 따옴표로 묶은 문자열만 잡기
- 2009/02/13 Editplus의 정규표현식 사용 문자열 바꾸기 (3)
- 2009/02/01 PHP on IIS 7.0, 6.0, 5.1 with Fast CGI
- 2008/04/15 Visual Studio Add-in CopySourceAsHtml
ref : http://www.wowwiki.com/API_ScrollingMessageFrame_AddMessage
Outputs text to a local MessageFrame, with optional color id.- Updated in 2.4.2
MessageFrame에 문자열을 출력한다, 옵션으로 색상 아이디를 포함해서. - 2.4.2 버전부터 지원
MessageFrame:AddMessage(text[,r,g,b[,id][,addToStart]]);
Parameters
Arguments
- (String text, Number red, Number green, Number blue, Number id, Boolean addToStart)
-
- text
- The string message to output
- r
- The intensity of the red component. A number between 0.0 and 1.0
- g
- The intensity of the green component. A number between 0.0 and 1.0
- b
- The intensity of the blue component. A number between 0.0 and 1.0
- id
- A number that classifies the line of text, for later changing the color
- addToStart
- Boolean - Set to true to add the message to the start of the MessageFrame as if it was the first printed message - New in 2.4.2.
Returns
-
- nil
Example
DEFAULT_CHAT_FRAME:AddMessage("Testing", 1.0, 0.0, 0.0);
Outputs "Testing" on a single line in your default chat window -- in red.
DEFAULT_CHAT_FRAME:AddMessage("AddOn Loaded!", 0.0, 1.0, 0.0, nil, true);
Outputs "AddOn Loaded!" at the start of your default chat window -- in green.
Escape Sequences
It is also possible to control the text of parts of lines in the MessageFrame with escape sequences in text.
Set color
Syntax:
|cAARRGGBB colored text
Example:
|cFFFF0000This Will Be In Red
Reset color
Syntax:
|cAARRGGBB colored text |r uncolored text
Example:
|cFF00FF00In Green|rDefault Color
See also
'Program > Lua' 카테고리의 다른 글
| Lua - MessageFrame:AddMessage (0) | 2011/03/12 |
|---|---|
| Lua - Control Statement (0) | 2011/02/23 |
* Compare
if (left < right) then
elseif (left == right) then
else
end
* Loop
for i = 1, 10, 1 do
end
* Loop for array
for item in expression do
end
* Function definition
function foo()
end
* Print message
print("Hello world!")
** Wow Register
this:RegisterEvent("PLAYER_TARGET_CHANGED")
'Program > Lua' 카테고리의 다른 글
| Lua - MessageFrame:AddMessage (0) | 2011/03/12 |
|---|---|
| Lua - Control Statement (0) | 2011/02/23 |
C++ 소스에서 소스파일 크기가 64k 가 넘는 소스코드의 경우
아래와 같은 내용을 헤더 소스 상단에 지정해 주어야 한다.
처음 알았다능 - _-;;
#pragma warning( disable: 4049 ) /* more than 64k source lines */
'Program' 카테고리의 다른 글
| C++ 용량이 큰 소스파일에서 상단에 설정하는 내용 (0) | 2010/04/20 |
|---|---|
| Your files are always in sync - DropBox.com (0) | 2009/10/10 |
| Visual C++ 6 Unleashed (0) | 2009/06/29 |
| Visual Studio에서 " " 따옴표로 묶은 문자열만 잡기 (0) | 2009/02/13 |
| Editplus의 정규표현식 사용 문자열 바꾸기 (3) | 2009/02/13 |
| Visual Studio Add-in CopySourceAsHtml (0) | 2008/04/15 |
제길 저는 아이팟 터치 구버전인데 ㅠㅠ 3.0 이상 어플에서 설치가 가능하네요..
전 iPod 에서 사용 못할듯 ㅠㅠ
'Program' 카테고리의 다른 글
| C++ 용량이 큰 소스파일에서 상단에 설정하는 내용 (0) | 2010/04/20 |
|---|---|
| Your files are always in sync - DropBox.com (0) | 2009/10/10 |
| Visual C++ 6 Unleashed (0) | 2009/06/29 |
| Visual Studio에서 " " 따옴표로 묶은 문자열만 잡기 (0) | 2009/02/13 |
| Editplus의 정규표현식 사용 문자열 바꾸기 (3) | 2009/02/13 |
| Visual Studio Add-in CopySourceAsHtml (0) | 2008/04/15 |
유명한 MySQL 관리 툴이죠. phpMyAdmin 소스를 보던 중 좋은 내용을 발췌합니다.
libraries\import.lib.php 파일에 있던 내용이고요.
코드는 아래와 같습니다.
/**
* Detects what compression filse uses
*
* @param string filename to check
* @return string MIME type of compression, none for none
* @access public
*/
function PMA_detectCompression($filepath)
{
$file = @fopen($filepath, 'rb');
if (!$file) {
return FALSE;
}
$test = fread($file, 4);
$len = strlen($test);
fclose($file);
if ($len >= 2 && $test[0] == chr(31) && $test[1] == chr(139)) {
return 'application/gzip';
}
if ($len >= 3 && substr($test, 0, 3) == 'BZh') {
return 'application/bzip2';
}
if ($len >= 4 && $test == "PK\003\004") {
return 'application/zip';
}
return 'none';
}
'Program > PHP' 카테고리의 다른 글
| PHP - Detects what compression file uses (0) | 2009/07/07 |
|---|---|
| PHP on IIS 7.0, 6.0, 5.1 with Fast CGI (0) | 2009/02/01 |
| PHP : natsort() Natural order sorting 로 숫자를 제대로 정렬 (0) | 2007/05/25 |
| PHP 성능 최적화를 위한 방향 (0) | 2007/05/22 |
간만에 정말 유용한 사이트를 찾은 것 같다.
뭐 자주 볼일은 없는 C++ 이지만,
Visual C++ 6 관련된 내용을 보게 된다면 거의 바이블이나 마찬가지인 사이트이다.
정말 내용이 방대한 -_ -;;
책을 안가지고 계시다면!!
여기를 한번 보면 좋을듯 후훗~
(아래 링크들은 Shift + Click 으로 봐주시길 ^ ^)
http://www.informit.com/library/
http://www.informit.com/library/library.aspx?b=Visual_C_PlusPlus
Visual C++ 6 Unleashed
Visual C++ 6 Unleashed provides comprehensive coverage of the core topics for Visual C++ 6 programming. This book skips the beginning level material and jumps right in to Visual C++.
Table of Contents
Copyright
About the Authors
About the Contributors
Acknowledgments
Tell Us What You Think!
Introduction
How to Use This Book
What You Need to Use This Book
What's New in Visual C++ 6.0
Contacting the Main Author
Part I: Introduction
Chapter 1. The Visual C++ 6.0 Environment
Part II: MFC Programming
Chapter 2. MFC Class Library Overview
Chapter 3. MFC Message Handling Mechanism
Chapter 4. The Document View Architecture
Chapter 5. Creating and Using Dialog Boxes
Chapter 6. Working with Device Contexts and GDI Objects
Chapter 7. Creating and Using Property Sheets
Chapter 8. Working with the File System
Chapter 9. Using Serialization with File and Archive Objects
Part III: Internet Programming with MFC
Chapter 10. MFC and the Internet Server API (ISAPI)
Chapter 11. The WinInet API
Chapter 12. MFC HTML Support
Part IV: Advanced Programming Topics
Chapter 13. Using the Standard C++ Library
Chapter 14. Error Detection and Exception Handling Techniques
Chapter 15. Debugging and Profiling Strategies
Chapter 16. Multithreading
Chapter 17. Using Scripting and Other Tools to Automate the Visual C++ IDE
Part V: Database Programming
Chapter 18. Creating Custom AppWizards
Chapter 19. Database Overview
Chapter 20. ODBC Programming
Chapter 21. MFC Database Classes
Chapter 22. Using OLE DB
Chapter 23. Programming with ADO
Part VI: MFC Support for COM and ActiveX
Chapter 24. Overview of COM and Active Technologies
Chapter 25. Active Documents
Chapter 26. Active Containers
Chapter 27. Active Servers
Chapter 28. ActiveX Controls
Part VII: Using the Active Template Library
Chapter 29. ATL Architecture
Chapter 30. Creating COM Objects Using ATL
Chapter 31. Creating ActiveX Controls Using ATL
Chapter 32. Using ATL to Create MTS and COM+ Components
Part VIII: Finishing Touches
Chapter 33. Adding Windows Help
Part IX: Appendix
'Program' 카테고리의 다른 글
| C++ 용량이 큰 소스파일에서 상단에 설정하는 내용 (0) | 2010/04/20 |
|---|---|
| Your files are always in sync - DropBox.com (0) | 2009/10/10 |
| Visual C++ 6 Unleashed (0) | 2009/06/29 |
| Visual Studio에서 " " 따옴표로 묶은 문자열만 잡기 (0) | 2009/02/13 |
| Editplus의 정규표현식 사용 문자열 바꾸기 (3) | 2009/02/13 |
| Visual Studio Add-in CopySourceAsHtml (0) | 2008/04/15 |
오늘은 정규표현식(Regular Expression)에 대한 것을 많이 다루네요 -_ -;;
작업이 노가다 작업을 자주해서 그런가;;
자꾸 편한 방법을 찾다보니 -_ ;;;
"{([:Ha:Wh:Pu:a])+}"
자~~
먼저 답을 해보면 위와같이 하면 되구요.
위에 축약형 기호들은 Visual Studio 전용이에요 ㅎㅎ
다른곳에선 안된답니다;;
위와 같이 사용하면 Visual Studio 에서
public static string strName = "application name";
이렇게 따옴표 안에 글자들을 전부 잡을 수 있어요~
찾아 바꾸기로 많은 변수를 잡아서 일괄적으로 변경할 일이 있으시면 이걸 사용하시면 되겟죠 ^ ^
일반 정규표현식이랑 다르게 VS에서는 {} 가 테그 치환자네요.
바꾸기를 할 경우 따옴표 안에 있는 문자들만 선택되게 되고.
\1 을 통해서 재사용 할 수 있겠습니다~
위 코드에 들어간 것들은 아래와 같은 뜻이에요~
:Ha - 한글
:Wh - 공백
:Pu - 기호
:a - 영문자 & 숫자
+ - 1개 문자 이상
'Program' 카테고리의 다른 글
| Your files are always in sync - DropBox.com (0) | 2009/10/10 |
|---|---|
| Visual C++ 6 Unleashed (0) | 2009/06/29 |
| Visual Studio에서 " " 따옴표로 묶은 문자열만 잡기 (0) | 2009/02/13 |
| Editplus의 정규표현식 사용 문자열 바꾸기 (3) | 2009/02/13 |
| Visual Studio Add-in CopySourceAsHtml (0) | 2008/04/15 |
| Windows RSS Platform (0) | 2008/04/07 |
뭐 부연설명 안해도 빨간색 메모장으로 잘 아시리라.. 생각하는 Editplus..
오늘 하던일 중에
C# 에 변수들이 주우우욱~~~~
장황하게
DB_Insert_SMS_User_aspx_03= "이름";
이런식으로 변수들이 엄청나게 늘어있는 코드들 중에서
이름
이런식으로 줄마다 값만 남고 다 필요게 하는 작업이 필요했다.
처음엔 '노가다 작업을 그냥 할까? - _-... ' 생각했지만..
문득!!!
'Editplus에 정규표현식으로 바꾸면 되자나!!' 라는 삽질스러운 생각이 왜 들었는지 ㅠ_ ㅠ
결국 10분이나 걸려서 정규표현식(Regular Expression)을 완성했다...
짜잔~
'바꾸기 (Ctrl + H)' 를 눌러서 '정규식(&x)' 를 체크해주고,
찾을말 : [_a-zA-Z0-9 ]*[=]?[\t| ]*"(.*)"[\t| ]*;[\t| ]*$
바꿀말 : \1
이런식으로 입력하면 다들 내가 원하는 변환을 얻을 수 있을 것이다 ㅠㅠ
혹시라도 100년만에 나와 같은 삽질을 할 지 모르는 위인을 위하야~~!!
내용은 별거 없다..
(10분동안 뭐한게냐... ㅠㅠ)
'Program' 카테고리의 다른 글
| Visual C++ 6 Unleashed (0) | 2009/06/29 |
|---|---|
| Visual Studio에서 " " 따옴표로 묶은 문자열만 잡기 (0) | 2009/02/13 |
| Editplus의 정규표현식 사용 문자열 바꾸기 (3) | 2009/02/13 |
| Visual Studio Add-in CopySourceAsHtml (0) | 2008/04/15 |
| Windows RSS Platform (0) | 2008/04/07 |
| Editplus 3.0 으로 갈아타기 (3) | 2008/02/14 |
FastCGI 가 이제 IIS 7.0 뿐 아니라 6.0, 5.1에서도 지원하는 HTTP Handler가 나온 것 같네요.
PHP on IIS : The Official Microsoft IIS Site
위 링크에 영문이지만 각 버전에 맞게 자세한 설정 방법과 MySQL 등 기타 연결된 정보도 제공하고 있군요.
FastCGI 를 이용한 PHP와 같은 스크립트 언어 제공 성능향상이 7.0에서 높은 점수를 받았는데,
6.0, 5.1 버전에서도 좋은 성능을 낼지 궁금하네요.
다운로드 파일은 x86, x64 두가지를 제공합니다.
(다운로드 링크는 MS Download 사이트의 페이지를 스크랩했습니다.)
fcgisetup32.msi 635 KB Download
fcgisetup64.msi 691 KB Download
PS. 기타 궁금하신 사항은 아래 포럼을 참조해주세요~
http://forums.iis.net/1102.aspx (english)
'Program > PHP' 카테고리의 다른 글
| PHP - Detects what compression file uses (0) | 2009/07/07 |
|---|---|
| PHP on IIS 7.0, 6.0, 5.1 with Fast CGI (0) | 2009/02/01 |
| PHP : natsort() Natural order sorting 로 숫자를 제대로 정렬 (0) | 2007/05/25 |
| PHP 성능 최적화를 위한 방향 (0) | 2007/05/22 |
http://msdn.microsoft.com/msdnmag/issues/05/12/VisualStudioAddins/#S9
비주얼 스튜디오에서 코드를 복사해서 웹에 게시하거나 할 때
코드를 우리가 보던 그대로 색도 나오도록 하고 싶은데 그렇게 넣기 힘든게 현실이다.
이런 때에 비주얼 스튜디오의 Add-in인 CopySourceAsHtml 을 이용하면, 코드를 비주얼 스튜디오에서 사용하던 색상 그대로 웹 페이지에 게시할 수 있다.
아마도 이미 쓰고있는 사람이 많겠지만.. -_ -..
아직 모르는 분을 위해..!
'Program' 카테고리의 다른 글
| Visual Studio에서 " " 따옴표로 묶은 문자열만 잡기 (0) | 2009/02/13 |
|---|---|
| Editplus의 정규표현식 사용 문자열 바꾸기 (3) | 2009/02/13 |
| Visual Studio Add-in CopySourceAsHtml (0) | 2008/04/15 |
| Windows RSS Platform (0) | 2008/04/07 |
| Editplus 3.0 으로 갈아타기 (3) | 2008/02/14 |
| Visual Studio 2005 성능 향상 팁 (0) | 2007/11/06 |





Prev




