Friday, February 6, 2015

Wednesday, February 4, 2015

Build Apache Kafka

mahesh@hd-mahesh:~$ ./gradlew srcJar
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain


mahesh@hd-mahesh:~$ ./gradlew jar
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

you will get above errors if straight away execute the "./gradlew srcJar" or "./gradlew jar".

Type the followng it will bootstrap and download the wrapper.
gradle wrap
./gradlew clean



A successful build output.

mahesh@hd-mahesh:~$ ./gradlew srcJar
Downloading https://services.gradle.org/distributions/gradle-2.2.1-bin.zip
 

Unzipping /home/mahesh/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27/gradle-2.2.1-bin.zip to /home/mahesh/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27
Set executable permissions for: /home/mahesh/.gradle/wrapper/dists/gradle-2.2.1-bin/88n1whbyjvxg3s40jzz5ur27/gradle-2.2.1/bin/gradle
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html.
Building project 'core' with Scala version 2.10.4
:clients:srcJar
:contrib:srcJar
:core:srcJar
:examples:srcJar
:contrib:hadoop-consumer:srcJar
:contrib:hadoop-producer:srcJar

BUILD SUCCESSFUL

Total time: 5 mins 3.677 secs



All the above information is available in following URI:
https://github.com/apache/kafka/tree/trunk

Monday, February 2, 2015

Scala - Scalable Language

Expression Oriented Coding

Concise and Expressive
  • Scala will cut down your written code up to 60%.
  • Most of the design patters are build into  the language. This will allow you to focus on the problem itself. 
Java Interoperability
  • Scala compile into Java bite code
Reactive
  • Scalable
  • Resilient
  • Responsive
  • Event Driven
The Reactive Manifesto

Wednesday, January 21, 2015

The most Richest place on Earth - Monaco



It is literally a very small strip, and all  around it lies France. For the last 50 year it has been the most glamorous, most star studded  and the richest place on earth.
The security is absolutely tight, one police officer for every 62 residences and hundreds of security cameras, its a CCTV heaven.

All the millionaires  and billionaires  of the world are queuing up to come here because of its Tax free status.



Tuesday, January 20, 2015

Monday, January 19, 2015

Where Design Patterns Originated


Design Patterns are .....

  • A General and reusable solutions to common problems in software design.
  • Not a finished solution.
  • A template or a recipe for solving certain problems.
  • Design patterns are not algorithms.


History ....

Design patterns did not originate with software development in fact there are originated with a man named "Christopher Alexander" who was a very successful building architect. He was responsible for more than 200 buildings world wide. In 1977 he introduced a book "A Pattern Language Towns Buildings Construction" and in this book Alexander proposed that there are different patterns in architectural design that one can recognize and one can make reuse of where appropriate.

Kent Beck and Ward Cunningham took the Alexander's idea around classification of patterns and applied it to software development. They introduced their work in OOPSLA conference in 1987.

The first Design Pattern book was the "Design Patterns: Elements of Reusable Object-Oriented Software" and written by The "Gang of Four": Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides in 1994.


Monday, January 12, 2015

Text To Speech (TTS)

Its hard to find a Text To Speed software these days. Earlier there was a software called 'Read Please 2000' but its also pretty hard to find now.

So I just decided to write my own version of 'Text To Speech' software which is very simple and it uses the Microsoft Speech Synthesis engine (Microsoft.Speech) to generate speech.

Its a Windows based application written using C# .net. 


Source code: