Skip to main content

Posts

Showing posts from 2015

Sorting table with angular

Below is a demo of sorting a table with Angular.
-----------

NameAgeSalary DEC
table will be ordered by {{orderBy}}

nameagegenderemailsalary{{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">
{{message}}
</div>
Refresh your pag…
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 updatesudo apt-get install curlSource: 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. By the Grace of God, this 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 serverSource code.Three commands.

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 :- Don’t be …

a tiny gallery update

OnHub: A Closer Look

How to optimize web pages across the browser.

Google Chrome is my favourite browser. It has given immense developer features.
When I opened my first web page on Firefox for the first time, it disappointed me.
I found some length, padding, margin, font etc. mismatches.
The pages which correctly rendered in Chrome were not that much accurate on any other browser.
It was because of the default values stored in them. Different browsers may have different default values for them. I used Google Chrome to develop my website - thus chose values for margin, padding etc. in a way that it balances the default values. Those chosen values cannot balance the default values stored in other browsers.

Mainly there are 2 solutions.

You should use one of these solutions while developing a website.
1. Use a css reset.
The simplest method is to use a CSS reset.
here is one..



---
2. Use a framework.
Using frameworks are one of the best choices. They offer fast development and responsiveness.
Most popular frameworks are Bootstrap and Foundation.

Polym…

4 tiny questions you fail easily.

Below are four (4) questions and a bonus question. You have to answer them instantly. You can't take your time, answer all of them immediately. OK? 


Let's find out just how clever you really are . 

Ready? 
GO!!! (Scroll down) 

Question 1 :
You are participating in a race. You overtook the second person. What position are you in? 
...... 
...... 











...... 
...... 
...... 
...... 
...... 
...... 
...... 
......  
......  
......  







......  
......  
......  
......  
...... 
...... 
...... 
...... 

-first?, lol absolutely wrong! -If you overtake the second person and you take his place, you are second! 


Try not to screw up in the next question. 
To answer the second question, don't take as much time as you took for the first question. 


Question 2 :
If you overtake the last person, then you are...? 
...... 
...... 
...... 






...... 
...... 
...... 





...... 
...... 











...... 
......  
......  
......  




......  
......  
......  








......  
...... 
...... 
...... 


...... 

Answer: If you…

Market Segmentation

How to pass variables to res.render() in Node.js

I was trying to figure out how to render a view inside a view, as I was stuck with this issue.

Horrible Effects of Misplaced Extensions ;)
I was using Node.js platform with ejs template engine.

My index.ejs file has an included header.ejs file.
Everything works well except that I can't pass values to the variable status in header.ejs.

Here is my abstract code...

index.ejs

header.ejs

app.js

The most funniest solution ever!
The solution is as easy as this.
Just remove .ejs extension from the include command.
I spent at least an entire night to figure it out.

Taking Slow Motion videos are so funny

Testing SlowMo in Moto G...
Do blogger play videos from Google Photos ?
If you cant play is let me know, So that I can use YouTube...


Seminar on Internet of Things

Recently I had taken a seminar on Internet of Things. By the Grace of God Almighty, it received very beautiful responses from my teachers and friends. I thank all of them.




Here is a video from it:



Tutorial: The Knuth-Morris-Pratt (KMP) String Matching Algorithm

Knuth-Morris-Pratt algorithm for String Matching

Formia Screenshots - Google Forms Simulation.

Below are a some sample views of Formia:

You can download Formia here.
Screenshots.








Comment below your suggestions. ----

Formia - A Simulation of Google Forms. Part 1 - My Experience

This time I would like to share one of the exciting moments in my life, in which I understood what the Client - Server Concept means and by the Grace of God, simulated one of the Internet Giant's product, Google Forms from scratch. I finished the project a couple of months ago. Here is the story. (and the project).

Screenshots

Install Formia.
What it is?Formia is an incredible web application for Massive Feedback Analysis.Developed on May 2015.More than 4000 lines of codes.Flexible.Well structured.This can be viewed as a simulation of Google Forms, a product hosted by the Internet Giant, Google.Service available in mobile, laptop, tabs. Languages Formia is constructed on 7 languages, including PHP, AJAX, JS, SQL etc. The Analysis part utilizes Google APIs which is one of the coolest (and hottest) feature.
Usability Formia is optimized for easiness. User friendly just like Google Forms. Heavily abstracted. Screenshots are attached below.
Behind the Scenes --
-- My Experience
A few m…

Formia - A Simulation of Google Forms. Part 2 - Download and Install

<< Formia - A Simulation of Google Forms. Part 1
OK guys, here is how to try Formia.
All you have 6 steps to go.


Download the project.Run the server.Create user.Copy the folder.Run initialization file.Good to go.Go to Github Page. Documentation/Report.

Install FormiaNote For My Personal Friends: When you finished installation, you will be prompted to create an account on Formia. Use your original First Name.The steps are also available at here.
Follow the steps below to install Formia.

Step 1: Download the Project
In 2 ways you can get the project

From Github: (recomended).Getting the files from Github is recommended because, you will be getting the latest version of Formia. Also it's backed up with a large community.
If you have no git installed on your device, no problem. You can download the zip of the project files from my github page. Look for the "download zip" button.If you got git software on you machine,Open command prompt / git shell.type git clone https://gith…

I'm already connected to internet. But it shows I'm NOT! Please Fix ...

[this post serves as a reference to my questions in some web communities.] Hello guys. I posted this question on some web communities, and this post serves as a reference to them. If you know any fix, just comment here. It would be useful to the people who google the same problem.
A picture worth more than words.


My Windows 7 PC says it's mot connected to the Internet. The bottom right icons and menus shows the same. ( see the figure )But still I can browse, visit websites and do anything.I was ignoring this problem for a few weeks since there was no problem to access internet through my browser.I came to know that some advanced functions are disabled in this mode.I thought the problem is with the router in my home. The problem persist even after the modem reset.Please answer if you have any fix ?OR tell me how to reset the entire network settings in my PC ?Update (9/9/15) : The problem has fixed with the most terrific method. I made a RESET on it. No problems found on Windows 7.  …

Masons gain formula

Java Program to FILTER PRIMES

Hi guys,
This simple java program accepts a number as a limit and analyse each number. If it is prime a flag is set and it is displayed. Also it shows the total number of primes obtained within the range.

Here's the program.
PROGRAM



Click here for instructions for executing the program. --------------------------------------- If not working/incorrect execution please notify me below. Also share your experience. Have a nice day.