Skip to main content

Popular posts from this blog

CakePHP Programmer's Reference Guide

What is CakePHP? CakePHP is a free open-source rapid development framework for PHP. Its a structure of libraries, classes and run-time infrastructure for programmers creating web applications originally inspired by the Ruby on Rails framework. Our primary goal is to enable you to work in a structured and rapid manner - without loss of flexibility. History of CakePHP In 2005, Michal Tatarynowicz wrote a minimal version of a Rapid Application Framework in PHP. He found that it was the start of a very good framework. Michal published the framework under the MIT license, dubbing it Cake, and opened it up to a community of developers, who now maintain Cake under the name CakePHP. Introduction This chapter is a short, casual introduction to MVC concepts as they are implemented in Cake. If you're new to MVC (Model View Controller) patterns, this chapter is definitely for you. We begin with a discussion of general MVC concepts, work our way into the specific app...

Cara Kerja disk magnet

DISK MAGNET Disk merupakan piringan bundar yang biasanya terbuat dari logam atau plastic dengan permukaan dilapisi bahan yang cepat dimegnetisasi. Mekanisme baca atau tulis menggunakan kepala baca atau tulis yang disebut head, merupakan kumparan pengkonduksi ( conducting coll ). Desain fisiknya, head bersifat stasioner sedangkan piringan disk berputar sesuai kontrolnya. Metode layout data pada disk terbagi dua, yaitu constant angular velocity dan multiple zoned recording. Disk diorganisasi dalam bentuk cincin-cincin konsentris yang disebut track. Track pada disk dipisahkan oleh gap (gap: mencegah atau mengurangi kesalahan pembacaan maupun penulisan yang disebabkan melesetnya head atau karena interferensi medan magnet). Sejumlah bit yang sama akan menempati track-track yang tersedia. Semakin ke dalam disk maka kerapatan (density) disk akan bertambah besar. Data dikirim ke memori ini dalam bentuk blok, umumnya blok lebih kecil kapasitasnya dibandingkan track. Blok-blok data disimp...

Mengurutkan string di C++

//*****************************************************************// // Mengurutkan data array string menggunakan bubble sort // // http://wirautama.net // //*****************************************************************// #include #include #include void main() { clrscr(); //declare the variable and array int n, test; char data[10][100]; char tmp[100]; n = 10; //input data for(int i=0; i { cout cin>>data[i]; } //sort data using bubble sort for(int i=0; i { for(int j=i+1; j { test = strcmp(data[i], data[j]); if(test > 0) { strcpy(tmp, data[i]); strcpy(data[i], data[j]); strcpy(data[j], tmp); } } } cout for(int i=0; i { cout } getch(); }