Skip to main content

Posts

Programming Raspberry Pi by Examples

Example 1: Programmatically controlling the LED

Join the Raspberry Pi Course (link) Implement LED connection in the course week 2 lecture (link) .





Example 2: Using the DHT11 - Humidity and Temperature Sensor with Raspberry Pi:
The example in Uugear (link) did not work because my DHT11 had the pins in different order the pins were marked + and - rather than S, V and G.

So I connected :

+ symbol in DHT11 to 3.3V- symbol in DHT11 to GNDout pin to  pin  GP4
Also I used this github library (easy to understand) : https://github.com/szazo/DHT11_Python

Example 3: IR Controlling your TV and AC with Raspberry Pi
These 2 tutorial were followed to do this example:

1. http://www.raspberry-pi-geek.com/Archive/2015/10/Raspberry-Pi-IR-remote (main)
2. http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/ (helped to resolve issues)

Extra Steps :The above tutorial had 2 missing steps that I am documenting below.

Step 1: Run the following command before restart:

lircd -d /dev/lirc0 
Step 2: The key b…
Recent posts

Datamining with Rattle for R - My Talk at GDG, Trivandrum 2015

Recently, I got a fantastic opportunity to be a speaker at Google Developers Fest 2015, Trivandrum. It was a wonderful topic I enjoyed learning and sharing.

Data Mining with R for Rattle :



And here is me on stage:








Learn Awesome Mnemonic Hacks and Help Build New Ones @ Spellogram.com

Mnemonics are cool techniques that are immensely helpful remembering facts. Be it
anything from spelling of english words to quantum physics, you can make a mnemonic to learn it. 

For example: 

The spelling of 'SEPARATE' is one of the the most commonly misspelled word in English language. 

"There is A RAT in sepARATe" - visualizing and remembering this sentence will help anyone recall the spelling of separate quickly without mistake. 

Another example is the spelling of 'necessary'Just remember the sentence 'Shirts have 1 collar and 2 sleeves' to avoid misspelling the number of 'c' and 's'. 

 It's a clever idea to keep these tricks under your sleeves to impress your friends or teachers with your new exceptional memory powers. 


A trick to recall the first10 element of periodic table is to just remember : "Henry Hester Likes Beer But CanNot Obtain Food Now"

Elements: Hydrogen, Helium, Lithium, Beryllium, Boron, Carbon, Nitrogen, Ox…

Data Mining & Analytics with R : Running R Scripts and Data Mining Techniques - Day 2

Warning: These are my messy study notes, much better legible notes can be found here http://onepager.togaware.com
1. A Tour Thru Rattle
Transform Tab ( by no means near to the full power of underlying R) Data Mining Tabs - Cluster, Associate Model Log Tab  - Capture the corresponding R command Working from Left to Right on Tabs Remember to Click Execute Button'Save' -> Projects save the current state, all models etc.'Open' Projects can be restored at a later timeYou can even load it back to R 2. First R Program Load rattle and ggplot2
library(rattle)  # Provides the weather dataset  library(rattle)  # Provides the ggplot() function ggplot -> Grammar of Graphics : Just like english grammar or grammar of a computer language. A result of Hadley's Phd . Look him up to learn more details.
Then produce a plot using ggplot() # handsondatascience.com - tips on elegantly writing repeated code ds <- weather 
1. ggplot(ds, aes(x=MaxTemp, y=MinTemp)) + geom_point()
aes - aest…

Data Mining & Analytics with R : Introduction to R, RStudio and Rattle - Day 1

This is a blog post on a workshop I attended : a three-day hands-on Workshop on Data Mining & Analytics with R at Technopark, Trivandrum on 5th May 2015



Taught by :  Graham Williams - Senior Director and Data Scientist , Australia Graham.Williams@togaware.com
http://datamining.togaware.com
Read About  - Literate Programming  - Literate Data Mining
Philosophy We are not writing program for the computer, it is written to share with other people. Everything that we write should be written for others. We should control the computer not vice versa. 
Introducing Data Science
Data Mining  Started in around 1989. Lego house - model - > not real but we get an idea. Data mining is all about building such models.
Analytics Descriptive Analytics - what happens , suggestions in Amazon Diagnostic Analytics - explain why the above happened Correlation and Causation - Find up people who ended up in hospital after taking a particular drug Predictive Analytics - machine learning and statistics model…

Hadoop The Definitive Guide [Book] - Study Notes

Chap-1- Meet Hadoop

Requirement and adoption in yahoo.A framework that can scale to the web.Map and Reduce acitivity and features like data locality.Can be applied with a variety of algorithmsHuge data processing can beat good algorithms

Chap-2 - MapReduce

The Map Java class and Reducer Java classThe Job java classJobtracker and tasktrackerHadoop reduces the input to input splits or just splitsMap tasks write the intermediate output to local disks, so that they can be discarded after use.Outputs of Reduce tasks are stored in HDFSCombiner function can be run on map output, and the combiner functions output forms the input to the reduce functionHadoop streaming proivide hadoop apis in languages other than Java

Chap-3 - The Hadoop Distributed Filesystem

Fault tolerant solution. Same data written at multiple places.Filesystems that manage the storage across a network of machines are called distributed filesystems.Blocks - a block size is the minimum amount of data it can read and write (for hd…

How To Publish An Apple Watch App To The AppStore

The Apple Watch launch is almost nearing at the time of writing this article. I'm all excited and ready to submit my first Apple Watch compatible application to the AppStore. I'll write down my learning experience here so that you can publish your own Apple Watch application to the app store. I'll do this step by step, as the work of my current app progress. This article will be updated over time until I reach the final step to see it live in the AppStore.

Step 1 : Make the iPhone Part of the Apple Watch

An Apple Watch app is not much different from an iPhone app. In fact, it is a sub-part of the main iPhone application running on the iPhone and the Watch App merely acts as the extension of the parent app in the iPhone. So essentially, need an iPhone app anyway. In this scenario, I'm thinking of building an app that will be useful both on iPhone as well as the Apple Watch, instead of solely focusing on the the Apple Watch aspect. The app will be very simple, but all it h…