Skip to main content

Posts

Showing posts from December, 2015

Sorting table with angular

Below is a demo of sorting a table with Angular. ----------- Name Age Salary DEC table will be ordered by {{orderBy}} name age gender email salary {{employee.name}} {{employee.age}} {{employee.gender}} {{employee.email}} {{employee.salary}} ----- codes -----

Missed you Angular

In a phase when I was developing Formia (our acadamic mini project), I needed to add a dynamic heading. hmm.., that means: I have an <input type="text" name="title"> and a <p>...</p> tag. I wanted to display the content of text box on <p> as I type on text box. At that point, I was unaware of AngularJS . I implemented that in pure JS. wired... For the record, this feature could be implemented easily by Angular, as follows: When you type on the box below, the content will dynamically display next to it. {{message}} (for best results use Chrome / Firefox) Well, how's this happening? Add the Angular CDN script to top of the HTML. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> Add this 4 line to have that magic. <div ng-app=""> <input type="text" ng-model="message">
This night, it's getting mid, I've to make a commitment myself. I received a call from a domain registrar. This is not the time to choose b/w choices. This is the time to build it.

How to install Node.js

Installing Node in Windows Installing node in Windows is pretty easy. To install Node you should be aware of your Windows bit version(32-bit / 64-bit). To know that, right click 'computer'>Properties. There you will find the bit version of the OS you are using. Now you know about the version of the OS you are using. - Head to nodes official website ( nodejs.org ) and download the msi for your version. - I recommend opting the LTS version of node. (if you have any suggestions, let me know.) - Install node with default recommended configuration. Installing Node in Linux/ Ubuntu This article will help you :  https://nodejs.org/en/download/package-manager/ If you don't have curl in your system, use terminal to: sudo apt-get update sudo apt-get install curl Source:  http://askubuntu.com/questions/259681/the-program-curl-is-currently-not-installed

Talky Messenger Documentation & Setup

( Github ) Just created a chat app that runs in Node and Socket. the attempt was worthy. Talky is a messenger app built with Node, Express, Socket, Angular & Bootstrap. It's like a server-client structure. (But obviously not like the one we done at OS lab using shared memory). It has a broadcasting structure. Talky does not keep a log on chat. i.e., It doesn't have a memory or database. When we close the browser window, chat history is lost. There I also added a basic console, protected by a password, to send real-time notifications to active clients. The name 'Talky' was suggested by a friend of mine. (hey, thank you for that. The fact is that I am not really good at naming...😝) What if sometimes your college blocks WhatsApp? Try Talky. ( There is also a website on internet in the name of 'Talky' which has no connection with this one. ) Download Talky Messenger To use Talky, all you need is 3 things: Node server Source code

LOL

New teacher joined in the school 😊 Teacher :- students tell your names nd hobbies ....1st boy :- My name is arun . My hobby is watching moon .2nd boy :- My name is arjun . And my hobby is watching moon .3rd boy :- My name is vikas & hobby is watching moon .Teacher :- wow good good πŸ‘ Everyones hobbies are same ... Ok ....Now girls turn .......1st girl :- Hello mam my name is moon ...... 😜😝Teacher shocked ...... ★☆★★ Boys rocked ......πŸ˜‚πŸ˜‚πŸ˜‚ In a Nursery School Canteen... There's a basket of apples with a notice written over it :-) "Do not take more than one, God is watching" On the other counter there's a box of chocolates,A small child went & wrote on it."Take as many as U want, God is busy watching the apples"... NEVER ACT SMART WITH Today's Generation..!.! 😜😜 KID :- Why some of ur hair are white dad...? DAD : – Every time you make me unhappy , one of my hair turns white… KID :- Now understand why grandpa’s hairs are all white… Moral :- D