SSamTure.net

워드프레스

CakePHP’s Approach to the MVC Architecture

CakePHP’s Approach to the MVC Architecture Readers who already know Ruby on Rails may find CakePHP very similar to it. For one thing, Cake is based on an MVC-like architecture that is both powerful and easy to grasp: controllers, models and views guarantee a strict but natural separation of business logic from data and presentation […]

CakePHP cheatsheet

CakePHP cheatsheet <- pdf파일 다운로드 받기

siege

http://www.joedog.org/

Model–View–Controller, MVC

모델-뷰-컨트롤러(Model–View–Controller, MVC)는 소프트웨어 공학에서 사용되는 아키텍처 패턴이다. 이 패턴을 성공적으로 사용하면, 사용자 인터페이스로부터 비즈니스 로직을 분리하여 애플리케이션의 시각적 요소나 그 이면에서 실행되는 비즈니스 로직을 서로 영향 없이 쉽게 고칠 수 있는 애플리케이션을 만들 수 있다. MVC에서 모델은 애플리케이션의 정보(데이터)를 나타내며, 뷰는 텍스트, 체크박스 항목 등과 같은 사용자 인터페이스 요소를 나타내고, 컨트롤러는 데이터와 비즈니스 로직 사이의 […]

CakePHP

CakePHP는 PHP로 만든 웹 어플리케이션 프레임워크이다. 루비 온 레일스가 인기를 끌면서, 이에 대응하는 웹 프레임워크를 PHP로 만든 것이다 CakePHP 공식 웹사이트 CakePHP 한국 사용자 모임

3D wall

너무 어렵다..ㅠㅠ x,y,z,sin,cos 아-_-이래서 공대에서 수학을 그렇게 배웠나부다..ㅠㅠ 조금만 더 하면 될꺼 같은데, 왜 카메라위치가 이상한건가 옆으로 안움직이고 rotation이 되지.. 

MySQL 외부접속권한 계정 추가[우분투기준]

mysql> grant all privileges on *.* to ‘아이디’@’%’ identified by ‘비밀번호’ with grant option; Query OK, 0 rows affected (0.08 sec) mysql> flush privileges; Query OK, 0 rows affected (0.05 sec) 계정을 생성한 후에 /etc/mysql/my.cnf에서 bind-address       = 127.0.0.1 부분을 주석처리 한후 mysql를 재시작 한다.

include, include_once, require, require_once 차이점

include() – include를 만날 때마다 포함된 파일을 재 실행한다. include_once() –  이미 실행 된 파일은 실행하지 않는다. require() – 무조건 포함된 파일을 실행 한다. require_once() – require()와 같이 무조건 실행 하되 이미 실행된 파일은 실행 하지 않는다.

웹사이트가 느려질 때~

웹서버랑 디비서버를 별도로 운영 한다면, 디비서버의 다음 설정을 확인해 봐야한다. client에서 DB server로 접속시에 DNS Lookup 과정이 발생 하는데, Webserver랑 DBserver가 같을 경우에는 상관 없지만, IP로 접속 시에는 변경하는 과정으로 속도가 느려질 수 있다. 이럴 경우에는 my.cnf파일의 [mysqld]란에 다음을 추가해주면 된다. “skip-name-resolve”

웹페이지 로딩 분석관련 사이트

http://www.octagate.com/service/SiteTimer/?Target=AJAX HttpWatch라는 프로그램도 같은 기능을 하는데, Octagate사이트를 이용하면 별도의 프로그램을 설치하지 않고도, 웹사이트 페이지로딩에 대한 내용들을 볼 수 있다.

bloggingAPI에서 내용 보낼때~

태그가 포함되면 제대로~ 포스팅이 안될 때가 있다. 그럴때는 다음의 두가지를 이용해서 보내면 타 블로그에도 정상적으로 포스팅이 된다. $body = htmlspecialchars_decode($body); $body = stripslashes($body);

PHP Encrypt Decrypt using Base64

Here are two methods to encrypt and decrypt using Base64. I forgot where I got this from but these 2 methods are pretty handy. Make sure you remember your key as your string will be encrypted and decrypted according to what you specify as key. Key is a string here. Usage is as follows: $encrypted […]

Enterprise Network Monitoring Tools and Utilities

  Big Brother Big Brother monitors System and Network-delivered services for availability. Your current network status is displayed on a color-coded web page in near-real time. When problems are detected, you’re immediately notified by e-mail, pager, or text messaging. Platforms: Windows, Linux, Unix   Cacti Cacti is a complete frontend to RRDTool, it stores all […]

Free PHP Uptime Monitor Script: phpWatch

As we all experience, every hosting account or server sometimes fails, no matter how good the hosting company is. And, this can be accepted as normal when it is within the limits. For better reacting to the downtimes, analyzing the health of the web application & the environment it is hosted on, uptime monitoring is […]

Integrate Statistics Into Any Application Using Open Web Analytics

Open Web Analytics is an open source framework that developers can use to integrate web analytics into any application. It is built with PHP & besides the standalone usage, it has built-in support for WordPress, Gallery & MediaWiki. OWA comes with 2 APIs: PHP: which makes it easier to integrate into any PHP application JavaScript: for […]