Skip to main content

Posts

Showing posts from 2016

Building node.js applications on Google Cloud Platform.

found this as very inspiring and informative.

Hello World in MongDB.

On 15th January 2016, Divin , one of my best friends sent me a message in Whatsapp. Greetings from ICT Academy of Kerala, We are pleased to invite your college to participate in the ICT Academy of Kerala’s Student Magazine to be released in 2016. Students may submit articles related to technology(all engineering disciplines), social innovation, individual and  group projects. The submitted articles which will be reviewed by ICT Academy of Kerala’s editorial board before incorporating it to Student’s Magazine . The ICTAK Students Magazine will be a unique blend of articles by students from your college and the industry. The best student article will be rewarded by ICT Academy of Kerala.  Articles to be send to this email id: <divin's email>  Please ensure the following steps to submit the articles.  1)      Articles should be related to technology(all engineering discipline), social innovation, individual and group projects. 2)      Articles should not be more than 2

Dynamic Divs

Some days before I was asked to do something like this. That was terribly simple! Here is a snapshot from my wandering editor.. See the Pen dynamic divs by Vajahath Ahmed ( @vajahath_ahmed ) on CodePen .

Polymer element to make a success feel to user.

Some days ago our team lead told me they want something like this. I produced one and gave it back. But I thought I could make a stand alone custom element so that it can be reused a hundred times without writing the entire bulky code. I published an npm package here:  https://www.npmjs.com/package/successful-operation Here is the docs:

Save a lot by modularizing your CSS.

I recently published an article on facebook discussing a good practice in CSS that we should follow. At my baby steps in designing  (mm may be 3 yrs ago) I wrote a new class for each element and styled them. The funniest thing was most elements had the same style. First styled a class, then copy-pasted to a dozen times. Finally I used to look at them and think "God! I wrote this much!", in which most of them are repetitions which are ctrl+v d. Those days were the funniest.. When I learned Bootstrap, I really liked the way they modularized their CSS. Then I started doing that modularization my own. Now here is a note for kids who are getting started.

Piano is beautiful #Yiruma

Yiruma, (이루마) - Reminiscent

How to keep a user logged in?

Hi everyone, Let's prepare some Cookies this time... I've been searching for a secure method for keeping a user logged in. You knew that's easy by keeping sessions in server side. Well, I'm not referring that scenario. You must have seen many " remember me "s just like the one in the figure. This time I'm gonna share some insights of remembering the user after he leaves the current session. But, hey! Do you like Cookies ? Well, I know that's an ambiguous question. Anyway we're going to prepare some Cookies and coffee. Nice combination, right? Actually coffee helps me to create Cookies, mentally. One insane thing here is no one else will be able to taste your Cookies, but you. And that's a necessary thing for adding security to your system. Let's start overflowing from the Stack I noticed this discussion on Stackoverflow, which essentially gives you some kind of... i don know... pleasure!? But there is a possib

A tiny update from Bangalore

a view from the roof top

Specifying Paths in Express.js

Hey whassup! This time I'd like to resolve a mess I faced during coding. There is a function called sendFile() in node. In use cases, it becomes res.sendFile(path_to_file) . Specifying file path for res.sendFile() from other directories is a bit tricky! We have to either use absolute path or specify root for the file location. ( Here is a good article about specifying paths in JavaScript :  natashabanegas.com . But unfortunately this is not the solution in our case! )  In Express.js most of our works are concentrated on the routes directory, which enables modular coding. So specifying paths for res.sendFile() from routes is not as traditional as in the above linked article, but still simple. There are two simple ways to do it: res.sendFile(path.join(__dirname, '../our_directory', 'our_file.html')); res.sendFile('our_file.html', { root: path.join(__dirname, '../our_dir') }); The __dirname returns the directory that the current

One cannot judge the backend complexity by looking at the frontend.

I've seen people saying "this one is pretty easy to implement" by looking at the frontends of some awesome applications. Making frontend and user interface clean and KISS (keep it simple and stupid) is essential for an application to win the users. By that it never meant that it was easy. To make an app more user-friendly, developers has to write extra code to balance the "things" that they have abstracted. For an instance, consider www.google.com page. How simple and stupid that page is... 6 large letters and a text box. What else in it?! By that would you conclude Google is easy? I do also have personal experience from a guy, who comments after evaluating our project of 5000 LOC that "is it only this much to do that? Child's play". He also suggested a new feature to add, which was a nice one. On the implementation phase of that feature, we pulled him to find a bug. And after spending 30 mins on our code his reaction - "Someone's ca

Need a browser? Go for Chrome

Yesterday one of my friends asked me to compare browsers on PC. I found Google Chrome's JS engine is more powerful than any other browser. The 64bit-Chrome + 64bit-OS combination is an awesome experience (with a good internet connectivity) . Firefox is a nice browser. And Firefox Dev Edition is good for development. But Chrome is extraordinary, perfect for everything. Unfortunately Kaspersky Internet Security sometimes block the the entire Firefox experience, which is a dark mark on both Kaspersky and Mozilla. Safari and Edge are OK. But I can't prefer them over Chrome and Firefox. I heard that Opera is nice for less data consumption (?)