'전체'에 해당되는 글 26건

  1. 2010/04/29 안철수,박경철의 대화(다소 볼만함) (2)
  2. 2009/10/13 Fedora 11 x-window 가 root 로그인이 안되는 문제 해결. (2)
  3. 2008/11/25 어느나라 ip인지 알아내는 방법.
  4. 2008/10/14 Enable Or Disable Extension Loading(SQLITE)
  5. 2008/09/04 The hamsterdb Tutorial (http://hamsterdb.com) 번역문서
  6. 2008/07/10 이제 비키니를 준비할때인가... (1)
  7. 2008/06/24 http://www.freetds.org/ 메인 Page
  8. 2008/06/04 no root element found in xml 메시지 나올때
  9. 2008/01/29 /tmp
  10. 2008/01/07 itoa 함수를 만들어Boa 효~ (2)
  11. 2007/09/18 각 직급별 한자,영문 표기 (2)
  12. 2007/09/03 효율적인 일처리기술...(출처 farn501 아이디 쓰시는 모 과장님)
  13. 2007/08/10 EUC (Extended Unix Coding) 인코딩
  14. 2007/07/24 메일보내기 소스만들기.(idea만)
  15. 2007/07/06 Subversion 백업 스크립트.(출처는 KLDP 위키)
  16. 2007/05/11 유용한 정보 전화번호 와 GPS 좌표가 연계된 위치추적 시스템... 뚜둥... (2)
  17. 2007/04/28 XFERLOG MANUAL (1)
  18. 2007/04/19 rm 기능의 함수. (1)
  19. 2007/04/13 cp 명령 소스...
  20. 2007/03/21 SSH 를 사용하려는데 나오는 뭔지모를 불길한 메시지...
  21. 2007/03/19 DVD/CD 등의 장치 핸들링 및 써진 용량 체크(for linux) (1)
  22. 2007/02/23 씁씁~ 후후~ 복식호흡 (단식호흡의 반대말이 아님)
  23. 2007/02/06 번역의 20계명.
  24. 2007/01/14 한국에서 사는법 (2)
  25. 2007/01/14 Sat(Satellite Technology) howto - Introduction
  26. 2007/01/13 [microstrong@root]reboot

안철수,박경철의 대화(다소 볼만함)

알찬정보 2010/04/29 11:29
멍때리고 있을때 한번쯤 봐주세요.
http://blogsabo.ahnlab.com/300
top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/27

  1. 일퍼센트 2010/07/01 18:05 PERMALINKMODIFY/DELETE REPLY

    좋은 말 많이 하는군요..

    한시간동안 일 안하고 동영상봤네요....ㅋㅋ

  2. roulette strategy 2010/08/19 14:53 PERMALINKMODIFY/DELETE REPLY

    아름다운 기사

Write a comment


Fedora 11 x-window 가 root 로그인이 안되는 문제 해결.

Unix/Linux/Tip 2009/10/13 09:32
문제라기 보다는 보안상 고의로 막아놓은 설정을 고치는 것이다.
아래의 문서를 읽어 보면 해답을 찾을수 있다.
/etc/pam.d/gdm ,과 /etc/pam.d/gdm-password 두스크립트에서
해당 설정 부분을 지우면 된다.

http://www.labtestproject.com/using_linux/step_by_step_enable_root_login_on_fedora_11_gui_desktop.html

시간 날때 gdm 에 관한 심도있는 이야기를 해볼까 한다.
top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/26

  1. jenn air grill 2010/08/29 06:42 PERMALINKMODIFY/DELETE REPLY

    난이 기사를 사랑

  2. 유저 2010/09/05 14:18 PERMALINKMODIFY/DELETE REPLY

    어디부분은 삭제하라는건지 ㅡㅡ;;

Write a comment


어느나라 ip인지 알아내는 방법.

분류없음 2008/11/25 13:28
ip address <-> ip number 전환코드를 찾다가 찾아낸 조금 재미있는 것. ip대역 CSV 파일(GeoIp Country CSV)을 구해야함.
심심하면 함 만들어 보심.

GeoIP Country CSV Text Files

MaxMind GeoIP databases are available in a Comma Separated Value (CSV) format, in addition to the binary format. These CSV files generally contain IP Address range and geographical data for all publicly assigned IPv4 addresses.

Due to the large size of geolocation databases, we generally recommend using our binary format with one of our APIs, since they are highly optimized for speed and disk space. On the other hand, if you have a requirement to import the data into a SQL database, the CSV format is recommended. We have listed some guidelines for importing and querying the data with a SQL database.

CSV Format

The CSV File contains four fields:

   * Beginning IP Number*
   * Ending IP Number*
   * ISO 3166 Country Code
   * Country Name

This is an sample of how the CSV file is structured:

"begin_num","end_num","country","name"
"1029177344","1029439487","AU","Australia"
"1029439488","1029570559","HK","Hong Kong"
"1029570560","1029572607","ID","Indonesia"

* Beginning IP Number and Ending IP Number are calculated as follows:

ipnum = 16777216*w + 65536*x + 256*y + z   (1)

where

IP Address = w.x.y.z

The reverse of this formula is

w = int ( ipnum / 16777216 ) % 256;
x = int ( ipnum / 65536    ) % 256;
y = int ( ipnum / 256      ) % 256;
z = int ( ipnum            ) % 256;

Where % is the mod operator.

Here is sample Perl code to convert the IP number to
a IP address:

sub numToStr {
my ($ipnum) = @_;
my $z = $ipnum % 256;
$ipnum >>= 8;
my $y = $ipnum % 256;
$ipnum >>= 8;
my $x = $ipnum % 256;
$ipnum >>= 8;
my $w = $ipnum % 256;
return "$w.$x.$y.$z";
}


It is useful to have the IP Number if you are performing IP Address lookups using a database. For example the following queries will find the country based on IP Address 24.24.24.24:

SQL Query

SELECT ip_country FROM geoip WHERE 404232216 BETWEEN begin_ip_num AND end_ip_num

MySQL Query

SELECT ip_country FROM geoip WHERE 404232216 >= begin_ip_num AND
   404232216 <= end_ip_num

Here we used the formula (1) to compute the IP Number based on 24.24.24.24

404232216 = 16777216*24 + 65536*24 + 256*24 + 24

For more information on importing GeoIP CSV files into MySQL, see HOW-TO Import the MaxMind GeoIP Free Country CSV file into MySQL and save diskspace.

http://www.delau.net/php/geoip.html
top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/25

Write a comment


Enable Or Disable Extension Loading(SQLITE)

분류없음 2008/10/14 13:31

Interrupt A Long-Running Query
- 장시간 구동 쿼리 중지
  void sqlite3_interrupt(sqlite3*);

This function causes any pending database operation to abort and return at its earliest opportunity.
- 이 함수는 길어지는 database 작업을 중단시켜서 빠른시간안에 다른 작업을 수행할 준비를 할수 있게 해준다.

This routine is typically called in response to a user action such as pressing "Cancel" or Ctrl-C where the user wants a long query operation to halt immediately.
- 이 함수의 역할은 긴 시간이 걸리는 작업에 대해서 "Cancel" 하거나 Ctrl-C 를 통하여 작업 중지 하는 것과 같은 역할을 한다.

It is safe to call this routine from a thread different from the thread that is currently running the database operation.
- 이 함수의 사용은 현재 실행중인 다중 쓰레드의 동시 작업 들에 대해서 안전하다.
But it is not safe to call this routine with a database connection that is closed or might close before sqlite3_interrupt() returns.
- 하지만 sqlite3_interrupt() 가 끝나기 전에 중지된 혹은 중지될 database connection 에 대해서는 안전 하지 않다.

If an SQL operation is very nearly finished at the time when sqlite3_interrupt() is called, then it might not have an opportunity to be interrupted and might continue to completion.
- 만일 sqlite3_interrupt() 가 호출되는 순간 바로 끝나버릴 SQL 작업이있다면 작업의 온전한 중지를 하지 못한다.


An SQL operation that is interrupted will return SQLITE_INTERRUPT.
- 중지된 SQL operation 에 대해서는 SQLITE_INTERRUPT 를 반환한다.

If the interrupted SQL operation is an INSERT, UPDATE, or DELETE that is inside an explicit transaction, then the entire transaction will be rolled back automatically.
- 만일 INSERT,UPDATE,DELETE 명령어 수행중 중지 되었다면 전체 transaction이 자동적으로 Roll back 된다.

A call to sqlite3_interrupt() has no effect on SQL statements that are started after sqlite3_interrupt() returns.
- 시작된후 sqlite3_interrupt() returns 을 받은 SQL 문에 대해서는 sqlite3_interrupt() 함수를 (다시) 호출해도 아무런 영향이 없다.


Invariants:
H12271 The sqlite3_interrupt() interface will force all running SQL statements associated with the same database connection to halt after processing at most one additional row of data.
H12272 Any SQL statement that is interrupted by sqlite3_interrupt() will return SQLITE_INTERRUPT.


Assumptions:
A12279 If the database connection closes while sqlite3_interrupt() is running then bad things will likely happen.


See also lists of Objects, Constants, and Functions.

top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/24

Write a comment


The hamsterdb Tutorial (http://hamsterdb.com) 번역문서

transelate/Database 2008/09/04 21:42

Page 1

The hamsterdb Tutorial
:hamsterdb 강좌

A Tutorial Book for hamsterdb.
:hamsterdb 강좌 자료.

Copyright © 2007 Christoph Rupp
Created on Friday, March 23, 2007
Last update: Friday, February 08, 2008


This tutorial is a WORK IN PROGRESS. Do not consider it as a finished document.
:이 강좌 자료는 제작중 입니다. 아직 완료 되지 않은 문서임을 고려해 주세요.

Feedback and comments are always welcome. Please send them to contact@hamsterdb.com.
:의견이나 조언은 contact@hamsterdb.com 로 보내주시고 늘 환영합니다.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU
Free Documentation License, Version 1.1 or any later version published by the Free Software
Foundation; with Invariant Sections being „The GNU Free Documentation License“, with no Front-
Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled
„GNU Free Documentation License“.
:복제 나 배포 혹은 문서 수정은 GNU Free Documentation License (Version 1.1) 혹은 자유소프트웨어재단 에 의해
이후 버전의 License 에 의거하여 허용한다.  GNU Free Documentation License 의 Invariant 섹션에 의거하여
앞/뒤 표지의 Text 는 유지 해야 한다. 사본의 모든 권리(권한)는 전적으로 'GNU Free Doumentaion License' 에 의거한다.

-------------------------------------------------
Page 2

Table of Contents
Introduction.........................................................................................................................................3
What is hamsterdb?.........................................................................................................................3
Material Covered............................................................................................................................3
Conventions Used in this Tutorial...................................................................................................3
More Documentation on hamsterdb................................................................................................3
Obtaining the Most Recent Versions...............................................................................................3
hamsterdb Licensing.......................................................................................................................4
Getting Started.....................................................................................................................................4
Building for UNIX/POSIX systems................................................................................................4
Building for Microsoft Windows.....................................................................................................4
Porting hamsterdb to Other Platforms.............................................................................................4
Creating a Database.............................................................................................................................5
Creating an In-Memory Database....................................................................................................6
Creating a Record Number Database...............................................................................................6
Opening a Database.............................................................................................................................7
Changing the Default Key Sorting.......................................................................................................7
Inserting Database Items......................................................................................................................8
Deleting Database Items.......................................................................................................................9
Looking up Database Items..................................................................................................................9
Working with Database Cursors.........................................................................................................10
Creating a Database Cursor...........................................................................................................10
Moving Database Cursors..............................................................................................................11
Inserting Database Items with Cursors..........................................................................................12
Looking up Database Items with Cursors......................................................................................12
Overwriting Database Items with Cursors.....................................................................................13
Deleting Database Items with Cursors...........................................................................................13
Cloning a Database Cursor............................................................................................................13
Closing a Database Cursor.............................................................................................................13
Closing a Database............................................................................................................................13
Working with Database Environments...............................................................................................14
Creating a new Environment.........................................................................................................14
Creating In-Memory Environments..........................................................................................15
Opening an Environment...............................................................................................................15
Creating a Database in an Environment........................................................................................16
Opening a Database in an Environment........................................................................................16
Renaming a Database in an Environment......................................................................................16
Removing a Database from an Environment.................................................................................17
Closing an Environment................................................................................................................17
Working with Duplicate Keys............................................................................................................17
Enabling Duplicate Keys...............................................................................................................17
Inserting Duplicate Keys...............................................................................................................17
Traversing Duplicate Keys............................................................................................................18
Replacing Duplicate Keys.............................................................................................................18
Get the Number of Duplicate Keys................................................................................................18
Deleting Duplicate Keys................................................................................................................19
The C++ API.....................................................................................................................................19
Appendix I: The GNU General Public License 2.0............................................................................20
Appendix II: The GNU General Public License 3.0..........................................................................24
Appendix III: The GNU Free Documentation License......................................................................35

top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/23

Write a comment


이제 비키니를 준비할때인가...

Just Fun... 2008/07/10 11:53
top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/22

  1. 우주악당 2008/08/30 19:38 PERMALINKMODIFY/DELETE REPLY

    생각만해도...우웨에에에~~~~~ㄱ

Write a comment


http://www.freetds.org/ 메인 Page

transelate/Database 2008/06/24 14:42

FreeTDS is a set of libraries for Unix and Linux that allows your programs to natively talk to Microsoft SQL Server and Sybase databases.
FreeTDS 는 Unix 와 Linux 에서의 프로그램을 MS SQL 이나 Sybase data 베이스와 통신하기 위한 library다

Technically speaking, FreeTDS is an open source implementation of the TDS (Tabular Data Stream) protocol used by these databases for their own clients.
It supports many different flavors of the protocol and three APIs to access it.
Additionally FreeTDS works with other software such as Perl and PHP, providing access from those languages as well.
기술적으로 말하면 FreeTDS 는 MS SQL 혹은 Sybase Client 가 사용하는 TDS(Tabular Data Stream) protocol 을 사용하는 도구다.
FreeTDS 는 세가지 API 를 제공함으로서 많은 장점을 제공한다.
더불어 FreeTDS 는 Perl 과 PHP  같은 다른 Software 와도 잘 동작 한다.


If you are looking for a Java implementation, we refer you to the jTDS project on SourceForge.
혹시 Java 와 관련된 내용을 알고 싶다면 SourceForge 에 jTDS project 를 참고하길 권한다.

--이부분 번역 다시 해볼것.
FreeTDS has many possible uses.
It has been used by Unix/Linux webservers to present data stored in SQL Server to the web,
to port SQL Server database code from NT to Unix, to import data into SQL Server from a Unix source,
and to provide database access on platforms (such as realtime systems) that have no native drivers.
FreeTDS 는 많은 것들을 가능하게 해준다.
SQL Server에 저장되어 있는 데이터를 웹으로 보여주기도 하고 SQL Server code 를 NY에서 Unix로 전달하기도 한다.
또 Unix 로 부터 Sql Server 로 가져오기도 하고 본래 내장된 드라이버가 없는 시스템에서도 접근이 가능하도록 한다.


The FreeTDS C libraries are available under the terms of the GNU LGPL license, consult the COPYING.LIB file in the distribution for details.
FreeTDS C 라이브러리는 GNU LGPL 라이센스를 준수하며 자세한 내용은 배포된 COPYING.LIB 를 참고하시기 바란다.

top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/21

Write a comment


no root element found in xml 메시지 나올때

알찬정보 2008/06/04 17:21
To fix this problem, do this step
- Quit from Toad
- Delete or rename the file desktops.xml (probably corrupt), located by default in C:\Program Files\Quest Software\Toad for Oracle\User Files.
- Open Toad (any custom desktop setting will lose)
top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/20

Write a comment


/tmp

transelate/Unix/Linux 2008/01/29 09:53

Using the /tmp directory

Each Unix system has a directory /tmp which acts as a "scratch area" which you can use to hold files and directories for short periods of time. For example:

   mkdir /tmp/for_u_tim   cp -r surprise /tmp/for_u_tim

This creates the directory for_u_tim in the directory /tmp and then copies the directory surprise to it.

User tim might have been told that there is "something" for them in /tmp.

The access permissions and the group ownership must be set correctly before another user can copy the directory or link to it.

Remember to remove files and directories that you copy to or create in the directory /tmp; other people need that space too.

Do not use the /tmp directory to store vital information; it is cleared whenever the system is "booted up" and by the system administrator when the directory gets full.

top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/19

Write a comment


itoa 함수를 만들어Boa 효~

Code Project-X/Code - C 2008/01/07 23:21

itoa 함수를 사용하려는데 stdlib.h 를 include 했지만 함수가 없다고 한다.
무심코 검색했더니 나오는 코드 ... 그냥 이걸 가져다 썻다.
//////////////////////////////////////////////
int * ltoa (long val, char *buf, unsigned radix)
{
char *p;  /* pointer to traverse string */
char *firstdig;  /* pointer to first digit */
char temp;  /* temp char */
unsigned digval; /* value of digit */

p = buf;

if (radix == 10 && val < 0) {
    /* negative, so output '-' and negate */
    *p++ = '-';
    val = (unsigned long)(-(long)val);
}

firstdig = p;    /* save pointer to first digit */

do {
    digval = (unsigned) (val % radix);
    val /= radix;       /* get next digit */

    /* convert to ascii and store */
    if (digval > 9)
*p++ = (char) (digval - 10 + 'a');  /* a letter */
    else
*p++ = (char) (digval + '0');       /* a digit */
} while (val > 0);

/* We now have the digit of the number in the buffer, but in reverse
  order.  Thus we reverse them now. */

*p-- = '\\0';     /* terminate string; p points to last digit */

do {
    temp = *p;
    *p = *firstdig;
    *firstdig = temp;   /* swap *p and *firstdig */
    --p;
    ++firstdig;  /* advance to next two digits */
} while (firstdig < p); /* repeat until halfway */

return 1;
}

/////////////////////////////////////////////////

출처는 http://cpueblo.com 유광희 님의 홈피. 감사... ^^

top

Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/18

  1. 일퍼센트 2008/01/08 17:54 PERMALINKMODIFY/DELETE REPLY

    오랜만에 글 하나 썼네요~

    RSS 리더기에 3개월 이상 글 올라오지 않는다는 메시지만 보이더니..ㅋㅋ

  2. 우주해적 2008/02/03 21:44 PERMALINKMODIFY/DELETE REPLY

    Boa효~......나이도 많은기...촌빨날리게 시리...킁

Write a comment