Categories
Social Network Sites

Disable Facebook Autoplay Video

Recently facebook added a new feature that allows auto playing video on our timeline, somehow we need to disable it. To disable the Video auto play is easy, you need to go to your account’s setting and go to Video setting and you can now choose the auto play setting to off as following picture:…

Categories
Code Snippet

Snippet – Create YouTube Embedded Frame [JS]

Just share a small Javascript function to help you make a iframe embedded for your content. There exists a regular express to verify the link content Here’s right away: function youtubeEmbeddedFrame (content){ var matches = /(?:http:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=)?(.+)/g.exec(content); if(!matches){ return null; } var iframe = jQuery('<iframe width="300" height="200" frameborder="0" allowfullscreen />'); iframe.attr('src', location.protocol + '//www.youtube.com/embed/' + matches[1]);…

Categories
Social Network Sites

History of Your Facebook Login Access

In somehow, you need to monitor your login access to your facebook account, you can find them directly in your account’s setting security section as following. – Login to your account – Go to your account’s settings – Security Or you can follow this link directly: https://www.facebook.com/settings?tab=security§ion=sessions&view There are few session history listed over there.…

Categories
Source Control

SVN to Git User – Database Size

If we just check folder .svn and .git on the same project (svn project converted to git), we can see the storage size of history and repo info are different, git is smaller.

Categories
Source Control

Using Git as using SVN – First time for SVN Users

Now there is still in trouble when I am now need to switch in a big project group to use Git instead of SVN. Before I made a research on Git but it was intended to working alone or with few people on small projects, it won’t get me trouble much. Now it’s different, I…

Categories
Website

Bootstrap 3 – Auto Apply Default Form Control Style

Remember my case? To migrate full application from Bootstrap 2 to Bootstrap 3, there are still many cases to treat such as this one, we need to place CSS class: form-control to every input, textarea and select tag, how about if we have so many files to treat? Let’s go straight, here is a code…

Categories
General Java NodeJS

How to create maven bower grunt angularjs project

I just published an article on Webapp structure with maven, here I would like to add another structure with AngularJS project for my Quickstart series. The first procedure is the same for maven that you need to read the previous article. Install AngularJS Generator npm install -g generator-angular Generate AngularJS Webapp Structure yo angular Next,…

Categories
NodeJS

Grunt Serve – grunt-connect-proxy – Cannot read property ‘prototype’ of undefined

Starting grunt server via: grunt serve and got following error Loading "connect_proxy.js" tasks…ERROR >> TypeError: Cannot read property 'prototype' of undefined The issue seems already raised on grunt-connect-proxy module already and it has already fixed for the new version, if you still face the error above, please try following command to solve it: rm -rf…

Categories
Java

Solving the recursive Json data generation in Java Spring

Let me presume a quick remark or note on the use of jsonManagedReference, jsonBackReference or JsonIdentityInfo annotation when you will manage to display json data from the entity while working on Spring 3 and Jackson. The work likely in case you need to exchange the data via Json such as developing application with AngularJS and…

Categories
General

Tomcat 8 Performance Setting

Tomcat 8 comes with more performance features comparing to previous version, this version, Tomcat is using NIO2 according to Jboss’s blog. You might interesting to read Tomcat 8 overview at this slideshare by SpringIO. The performance setting of tomcat is similar to other previous version of tomcat as I already stated in my previous post…