The flexible way: Set up avahi / zeroconf. Zeroconf is 'a set of techniques that automatically creates a usable Internet Protocol (IP) network without manual operator intervention or special configuration servers.'[3]. Avahi is an implementation of zeroconf which 'ships with most Linux and *BSD distributions' [4], but not the Raspberry Pi's Debian distribution. Zeroconf will … Continue reading If you don’t want to check or remember the IP address of Raspberry Pi on LAN
Internet of Things
How to access Ruby web server such as WEBrick or Puma (Rails framework) from other computers on LAN
Alright, so you are familiar with rails s -b IP_ADDRESS -p PORT To run the server on the localhost is simple (The default binding IP is 0.0.0.0) rails s To make it accessible from another computer on the LAN, you will need to specify your IP address and the port (normally port 80). If your … Continue reading How to access Ruby web server such as WEBrick or Puma (Rails framework) from other computers on LAN
Teensy 3.5 & 3.6 – Powerful Microcontrollers For Making Awesome DIY Electronic Projects
Teensy is a microcontroller development board used for building all sorts of awesome DIY electronic projects. Over the last year I've been designing 2 new Teensy models using far more powerful microcontroller chips; a huge step up in capability from prior Teensy and other Arduino compatible boards. Now, hopefully with your backing, it's time to … Continue reading Teensy 3.5 & 3.6 – Powerful Microcontrollers For Making Awesome DIY Electronic Projects
What is bashrc file?
.bashrc is a shell script that Bash runs whenever it is started interactively. You can put any command in that file that you could type at the command prompt. You put commands here to set up the shell for use in your particular environment, or to customize things to your preferences. A common thing to … Continue reading What is bashrc file?
Posting Form Data With $http In AngularJS
By default, when you go to post data in an AngularJS application, the data is serialized using JSON (JavaScript Object Notation) and posted to the server with the content-type, "application/json". But, if you want to post the data as a regular "form post," you can; all you have to do is override the default request … Continue reading Posting Form Data With $http In AngularJS
Angular $http POST request with request payload or form data
If you have RESTful API's on your server side and are trying to use Angular's $http service to consume the resource, you should be careful about how the request (for example, Http POST) is made, in particular how the data (perhaps in the format of form) is included in the request. As a JSON object … Continue reading Angular $http POST request with request payload or form data
Basic Subdomains in Ruby on Rails
In this article we will cover the basics of using subdomains in Ruby on Rails. Subdomains are quite useful in a number of different scenarios. For example, lets say you are building a multi user blog application. Each user gets their own blog. Being able to give each user a unique subdomain allows you to … Continue reading Basic Subdomains in Ruby on Rails
HTTP request in Node.js or other JavaScript framework
You should always consider using the Object provided by the MV* framework. If the JS framework doesn't have a built-in support for communicating with the server (which I highly doubt), you can opt to work directly with the low-level methods of the XMLHttpRequest object itself or use a general utility library such as JQuery. On … Continue reading HTTP request in Node.js or other JavaScript framework
The trillion dollar tech war between Amazon, Google, and Microsoft
For months and months, as Google's brain trust searched for the ideal candidate to lead the company’s come-from-behind bid for its biggest new opportunity since Larry Page and Sergey Brin began putting ads on their search engine, one name kept coming up: Diane Greene. Little known outside Silicon Valley, Greene is a legend in tech … Continue reading The trillion dollar tech war between Amazon, Google, and Microsoft
Module in JavaScript
A short personal note: var dayName = function() {}(); is equivalent to var dayName = function() {}; dayName(); You define a function first then invoke it. Modules A beginning programmer writes her programs like an ant builds her hill, one piece at a time, without thought for the bigger structure. Her programs will be like … Continue reading Module in JavaScript