slider

Halaman

Kamis, 03 Desember 2015

Raspberry Pi ?



Raspberry Pi adalah sebuah mini kit yang bisa di jadikan komputer mini

OS Raspberry bisa bermacam-macam, salah satu nya linux debian yang telah di paket mini kan.
silakan cek website tuk download OS nya http://www.raspberrypi.org/downloads

Raspberry terdiri dari beberapa model :
Raspberry pi Model A
Raspberry Pi model B
tuk lebih jelas nya silakan lihat : http://en.wikipedia.org/wiki/Raspberry_Pi

dipasaran ada dua tipe Raspberry Pi Model B :
1. Tipe elemen 14
2. Tipe RS
dua-dua nya sama percis,perbedaan nya adalah asal pembuatan nya. tipe RS diproduksi di China, tipe Element 14 diproduksi di UK (CMIIW)

apa saja yang ada di Raspberry ini ? coba lihat dibawah ini :

2 Port USB
1 Port HMI
1 Port RCA untuk Video output
1 Port Audio 3.5mm
1 Port SDCARD
1 Port RJ 45 (Ethernet LAN Port)
8x GPIO UART,SPI BUS
konsumsi listrik : 750maH/ 5VDC/ mini usb charge yang di pakai di charger blackberry

kelebihan Raspberry ini bisa digunakan untuk project-project misalnya :
1. NAS (Network Attached Storage) , yaitu sebagai file server berbasis IP.
pemakai rumahan skrg bisa memiliki NAS yang bisa berjalan 24-jam sehari dengan konsumsi listrik sekitar 50rb/tahun

2. Media Server
Jika ingin punya HD Media player ,alat yang bisa memainkan file-file music, gambar, dan video di dalam hardisk, Raspberry Pi ini bisa di jadikan Media player dengan menggunakan port HDMI ataupun RCA
Anda bisa menonton Streaming TV online, bisa nonton Youtube ataupun memutar film kesukaan anda.

3. Print Server
Print Server adalah Alat yang di hubungkan dengan Printer,menjadikan printer anda bisa di gunakan bersama-sama dalam sebuah jaringan LAN
Raspberry Pi juga bisa di jadikan print server ,dengan menghubungkan printer yang ingin di jadikan printer Jaringan


4. Server Torent -Bittorent
Raspberry Pi juga bisa di jadikan Server untuk download Torent

5. Download manager
Raspberry Pi bisa dijadikan sebagai Komputer yang mendownload file-file film yang bisa kita tinggal tanpa mengkhawatirkan konsumsi listri.

6. Wifi Internet Radio Player
Raspberry bisa juga di gunakan untuk memainkan music yang di streaming dari Internet Radio, anda bisa mengatur volume,mengatur list lagu dari handphone anda(android,Blackberry)

7. Reporting Dashboard


Bayangkan di ruangan Manager,CEO anda, ada satu monitor dengan kemampuan Screen touch, dan dibelakang monitor di pasang Raspberry+ Usb Wifi Mini,
Lalu anda install browser Chromium, dan setting setiap kali Raspberry menyala maka langsung otomatis membuka website internal anda yaitu berisi Dashboard Report misalnya
Report Piutang /Hutang Bulan ini,, Sales yang terjadi pada hari ini, semua yang online bisa di rekap menjadi satu window browser.


8. Home Automation
anda bisa membuat Home Automation untuk mengontrol lampu ,penyiraman taman, kipas angin,AC dan lain nya, dan bisa di atur baik dari layar LCD maupun Handphone anda.

9. Server Hosting website
anda punya koneksi internet di rumah dengan kecepatan lumayan ? punya ip publik ?
Raspberry juga bisa menjadi Server untuk hosting website anda, berbasis html, php dan mysql
anda bisa membuat website misalnya untuk company profile ataupun wordpres sebagai CMS
irit kan ?
Raspberry juga bisa digabung lagi (cluster) untuk mendapatkan performance yang lebih baik.

Read More..

Selasa, 30 Juni 2015

JS Tren

THEN
As I understand the question, and correct me if I am wrong, it refers to the classic server model with JavaScript only in the client side. In this classic model, with LAMP servers (Linux, Apache, MySQL, PHP) the language in contact with the database is PHP, so to request data to the database you need to write PHP scripts and echo the returning data to the client. Basically, the languages distribution according to physical machines is:
  1. Server Side: PHP and MySQL.
  2. Client Side: HTML/CSS and JavaScript.
This responds to a MVC model (Model, View, Controller) where we have the following functionality:
  1. MODEL: The model is what deals with the data, in this case the PHP scripts that manage variables or that access data stored, in this case in our MySQL database and send it as JSON data to the client.
  2. VIEW: The view is what we see and it should be completely independent from the model. It just need to show the data contained in the model, but it shouldn't have relevant data on it. In this case the view use HTML and CSS. HTML to create the basic structure of the view, and CSS to give the shape to this basic structure.
  3. CONTROLLER: The controller is the interface between our model and our view. In this case the language used is JavaScript and it takes the data the model send us as a JSON package and put it inside the containers that offer the HTML structure. The way the controller interacts with the model is using AJAX. We use GET and POST methods to call PHP scripts in the server side and to catch the returned data from the server.
For the controller we have really interesting tools like jQuery, as "low level" library to control the HTML structure (DOM), and then new, more high level ones as Knockout.js that allow us to create observers that connect different DOM elements updating them when events occur. There is alsoAngular.js by Google that works in a similar way, but seems to be a more complete environment. To help you to choose among the, here there are two excellent analysis of the two tools: Knockout vs. Angular.js and Knockout.js vs. Angular.js. I am still reading. Hope them help you.
NOW
In modern servers based in Node.js, we use JavaScript for everything. Node.js is a JavaScript environment with many libraries that works with Google V8, Chrome JavaScript engine. The way we work with this new servers is:
  1. Node.js and Express: The main frame where the server is built. We can create a server with a few lines of code or even use libraries as Express to make even easier to create the server. With Node.js and Express we will manage the petitions to the server from the clients, and will answer them with the appropriate pages.
  2. Jade: To create the pages we use a templating language, in this case Jade, that allow us to write web pages as we were writing HTML but with differences (it take a little time but is easy to learn). Then, in the code of the server to answer the client petitions, we just need to render the Jade code into "real" HTML code.
  3. Stylus: Similar to Jade but for css. In this case, we use a middleware function to convert the stylus file into a real css file for our page.
Then we have a lot of packages we can install using the NPM (Node.js package manager) and use them directly in our Node.js server just requiring it (for those of you that want to lear Node.js, try thisbeginner tutorial for an overview). And among this packages you have some of them to access databases. Using this you can use JavaScript in the server side to access My SQL databases.
But the best you can do if you are going to work with Node.js is to use the new NoSQL databases likeMongoDB, based on JSON files. Instead of storing tables like MySQL, it stores the data in JSON structures, so you can put different data inside each structure like long numeric vectors instead creating hug tables for the size of the biggest one.
I hope this brief explanation becomes useful to you, and if you want to learn more about this, here you have some resources you can use:
  • Code School: With a free and very interesting course about Chrome Developer tools to help you to test the client side.
  • Codecademy: With free courses about HTML, CSS, JavaScript, jQuery and PHP that you can follow with online examples.
  • 10gen Education: With everything you need to know about MongoDB in different tutorial for different languages.
  • W3Schools: This one has different tutorial about all this and you can use it as a reference place because it has a lot of short code examples really useful.
  • Udacity: A place with free video courses about different subjects with a few interesting one about web development and my preferred, an amazing WebGL course for 3D graphics with JavaScript.
Have fun!
Read More..

Rabu, 28 Januari 2015

Connecting and Disconnecting Internet Connection Using Command Prompt

Here is commands to disconnect Internet Connection, when you  want to disable it and whenever you need to connect, you can quickly reconnect it  using Command Prompt
Firstly Open Command Prompt as Administrator and use the below commands for Internet Connection such as Local Area connection , WIRELESS LAN (WiFi) and Dial Up Connection
For Local Area connection
To See  Network Interfaces
netsh interface show interface
To Disable  Network Interface
netsh interface set interface ” Connection Name” disable
To Enable  Network Interface
netsh interface set interface ” Connection Name” enable
For WIRELESS LAN (WiFi)
To See WiFi Networks
netsh wlan show networks
To Disable  WiFi Connection
netsh wlan disconnect
To Enable  WiFi Connection
netsh wlan connect “ connection name”
For Dial Up Connection
To Disconnect Dial Up Connection
rasdial “connection name” /disconnect
To Connect to Dial up connection
rasdial “connection name” 




Configure the Wireless Hosted Network:
netsh wlan set hostednetwork mode=allow ssid=[your_virtual_network_name] key=[your_network_password]


Enable the Wireless Hosted Network:
netsh wlan start hostednetwork

Disable the Wireless Hosted Network: 
netsh wlan stop hostednetwork

Retrieve the Wireless Hosted Network details:
netsh wlan show hostednetwork


Change the password:
netsh wlan refresh hostednetwork YourNewNetworkPassword
Read More..