Posts

Showing posts from May, 2012

WCF Service Creation With C#

Image
CodeProject Basic WCF Service Creation in C#.Net => Part1 Hello All, this is the start up guide to create WCF service. This article is a pictorial step by step help to create WCF application. WCF (Windows Communication Foundation) is a part of .Net 3.0. So you need to install Visual Studio 2008 to use WCF. It is platform for SOA. WCF provides a way to create loosely coupled application. WCF is intended to provide services that are distributed and interoperable. It unifies ASMX and .NET Remoting, MSMQ and can be easily extended to support new protocol. When we create a Service, to expose the functionality to the world, it needs to be hosted into Host Process. Service Host will be used to expose the end point of the service to other Service or Clients. Let’s start with the steps... We will start with VS 2008. Create a File -> New Project -> WCF ->WCFClassLibrary project as shown below Select WCF in left panel and WCF Service Library in

What Firefox Users Want

Firefox was 1st choice of all techy guys before chrome and still it have a large user base and people love it. Still there are few things which users demands in Firefox from other browsers.    Here is the list what Firefox users wants This extension and separate/concurrent private browsing tabs and/or windows (Opera has private browsing tabs, which in my opinion are really useful). - by morally_bankrupt77 In Chrome you can have both private and normal session together but in Firefox starting private session suspend normal session and vice varsa. Dont know why private browsing is not implemented that way. - by dvgaba Auto-add of search engines and accessing them using tab in the awesome bar. When I visit amazon.com in chrome and search for something, and then the next time I open up a tab and start typing amazon.com, there is this option to hit tab and then search within amazon, without having to go to the page first. That is by far one of the things I miss the MOST fro

Firefox and great add-ons

Image
Firefox is a great browser to have as your default browser. Great speed, security and always one step ahead in innovation. And Mozilla itself takes a deep interest in users privacy and usability. Feature like "Do Not Track" and BrowserId are created for users.  Chrome is a decent browser but its a wrapper on webkit only where Firefox is true innovation and real product. Google created Chrome/Android keeping there ads business in mind. In terms of speed Firefox and Chrome are very close to each other but in terms of add-ons Firefox knockout Chrome. Install Firefox is you want innovation in browsers and you dont want to be tracked by Big "G".  And IE dont have anything to be compared with Firefox/Chrome as its a dead browsers and MS even dont roll new versions to Old versions for there own Old Windows OS.  Noscript - Best Add-on to have in your kitty. Want to know why then better try it today. Feel little annoying in starting but trust me it worth the headach

Getting Started With ForkJoinPool - Map & Reduce of Java

CodeProject ForkJoinPool - Java's Map & Reduce ForkJoinPool ::FJP is a executor service for Fork-Join Taks or tasks which can computed using divide and conqor or we can say FJP is inbuild Map & Reduce framework in Java.                FJP implements work-steal so all threads try to find and execute task submitted by other tasks in FJP or external program. FJP try to maintain active threads as per number of processor available.   FJP provides below methods to submit task ::==> Call Type External Task Clients i.e. main method Inner Task Divide and Conquer Calls Call from non-fork/join clients  Call from within fork/join computations Arrange async execution  execute(ForkJoinTask)  ForkJoinTask.fork() Await and obtain result  invoke(ForkJoinTask)  ForkJoinTask.invoke() Arrange exec and obtain Future  submit(ForkJoinTask)  ForkJoinTask.fork() (ForkJoinTasks are Futures)

My 1st Haskell Program

From past few days I was thinking to do something in Haskell. Gone though few blogs and also tried my hands on tryhaskell only Haskell interactive tutorial. It was way different then my bread & butter Java. So wasn't able to understand much. And now was feeling to write a factorial program in Haskell. My first experiment with Haskell.  Downloaded Haskell from here Now Install Haskell similar the way you installed millions of software. Haskell itself update %PATH% variable so you are not ready to rock and roll in Haskell. Haskell comes with ghci, ghc and runhaskell utilities to interpret, compile or run haskell programs. ghci provide haskell prompt where you can execute haskell statements on the fly. ghc is haskell compiler which compile haskell program and produce an exe on successful compilation. runhaskell utility run haskell program on the fly. Below is mine 1st real haskell program Line 1 Prototype of factorial function. Line 2 Body of factorial program

Starting with HTML5 Forms

Image
HTML5 forms add a lot of power to html forms which result in reduced development time. And HTML5 are improved for developer as well as users using them. HTML5 specification added lots of feature in forms but all browsers are at different states. Check  www.html5test.com  for current support to HTML5 form elements. Below is the list of newly added input type in HTML5.  Input Type Purpose tel For entering a telephone number. search To prompt users to enter text that they want to search for. url For entering a single URL. email For entering either a single email address or a list of email addresses. datetime For entering a date and time with the time zone set to UTC. date For entering a date with no time zone. month For entering a date with a year and a month, but no time zone. week For entering a date that consists of a week-year number and a week number, but no time zone.

Hello Vertx Javascript

Everyone is talking about node.js but another new kid in town is vert.x which is similar in nature to node (talking in terms of javascript server side programming). So today we will write Hello World in vertx.    Steps ::  Click  here  to download vertx or go to vertx home page here Create environment variable VERTX_HOME with value as extracted vertx directory Add %VERTX_HOME%\bin to %PATH% Now you are ready to code. Here is the code load('vertx.js') //Configure Vertx server to listen on port 8080 for incoming http requests vertx.createHttpServer().requestHandler(function(req) {   req.response.end("<html><body><h1>Hello from vert.x!</h1></body></html>"); }).listen(8080, 'localhost'); stdout.println("Server is running on " + "http://127.0.0.1:8080"); Save above code as server-helloworld.js Start node server as >vertx  run server-helloworld.js Server is running o