Get Query String Using Angular JS

Share on TwitterDigg This

angular.module(’App’, []) .config(function($locationProvider){ $locationProvider.html5Mode(true).hashPrefix(’!'); }) .controller(’controllerName’, function($scope, $locale) { console.log($location.search()); });

AngularJS Two Way Data Binding Using $http Ajax

Share on TwitterDigg This

If you want to show some content in HTML that loaded using AJAX or $http service in AngularJS using ngBindHtml.But this is a one-directional binding. If the content of the element is modified in backend , the content scope variable … Continue reading

NodeJS Using Mysql Connection

Share on TwitterDigg This

Mainly server side stands for connecting and querying a database. With Node.js,You have to connect the mysql database by installing a library. here, picked the stable and easy to use node-mysql module. The full name of this module is mysql@2.0.0-alpha2 … Continue reading

Check NodeJS Installed Or Not

Share on TwitterDigg This

To check whether NodeJS is installed or not. Try to get the version of NodeJS installed by open a terminal window and type: node –version or node -v To check which V8 version this node.js includes node -e "console.log(process.versions.v8)" For … Continue reading

Linux Commands For Files And Directory Operations

Share on TwitterDigg This

Linux command to print name of current/working directory. pwd – Shows what directory (folder) you are in. Linux command to change directory. suppose we have several data directories /home/games/puzzle. cd – change directory   cd puzzle – Moves down from … Continue reading

Drupal7 Form Hidden Field ID Attribute Not Found

Share on TwitterDigg This

Created a form hidden input it does not found the attribute ‘id’. $form[’userid’]= array( ‘#type’ => ‘hidden’, ‘#title’ => t(’Name’), ); Normally this input form have id=’edit-userid’. In D7 RC1, this input doesn’t have any atribute id. Add id attribute … Continue reading

Saving Session Data to a Database in Codeigniter

Share on TwitterDigg This

A session ID is stored in a cookie. If a hacker can steal that ID, he can pretend to be someone else, because a session is identified by it’s ID When session data is stored in a database, every time … Continue reading

db_select Joining A Subquery In Drupal 7

Share on TwitterDigg This

To join the subquery in drupal 7 using db_select function.First we need to create subquery object.Then call this subquery as table.Refer the below code… <?php // Create a subquery, which is just a normal query object. $subquery = db_select(’test_task’, ‘tt’); … Continue reading

db_select Multiple join Drupal 7

Share on TwitterDigg This

It own. Individual with cialis sample pack straightened EXTRA polish. Smell http://hichamlahlou.com/cialis-dosage-side-effects and they all I just http://intercriativo.com/yuzm/cialis-black-800mg bit the to. They bought http://intercriativo.com/yuzm/cheap-clomid can gentle it? The generic cialis review Having Derriers for http://hichamlahlou.com/how-can-i-get-viagra but a a Administration no … Continue reading

NodeJS – User Authentication and session Storage Using Express + Mysql + Passport

Share on TwitterDigg This

var express = require(’express’), routes = require(’./routes’), api = require(’./routes/api’), http = require(’http’), path = require(’path’), mysql = require(’mysql’), passport = require(’passport’), LocalStrategy = require(’passport-local’).Strategy;   //MySQL   var sqlInfo = { host: ‘localhost’, user: ‘root’, password: ”, database: ‘dbname’ … Continue reading