Why Women Don’t Do Programming?

Being a Programmer, the most confusing statement I hear is ” why are women not programmers”? Indeed women are very hard workers, sincere with their tasks, and get high grades in exams but still their existence in Programming and in field work is very low. There are many factors behind this and we try to discuss all these points with details and share the opinion of psycholinguists about it. The idea behind this article is…

"Why Women Don’t Do Programming?"

How to make your laptop or PC welcome you!

Everyone loves getting praised and there’s no harm in it. We love it when people see our outstanding work and are AWESTRUCK. We all have seen in the Hollywood flicks and sometimes even in the Bollywood ones, How the computer used welcomes the user and used to think that the laptops or PCs used are the expensive ones. But you will be glad to know that even we can make our laptops or PCs welcome us. The following…

"How to make your laptop or PC welcome you!"

Backup and Recovery: How to clone Hard Drive and boot from cloned drive

How to Clone a Hard Drive and Boot from Cloned Drive If you have a desktop PC with a main drive (C) and a backup drive(E), and you also use an external Hard drive for recovery and backup then that is a great combination. If you lost access to the main drive(C), then you can go with backup drive(E) although it is a time consuming process. To get remedy this, you can easily backup all…

"Backup and Recovery: How to clone Hard Drive and boot from cloned drive"

Java Tutorial – Variables

You’re probably reading this post because you want to know how to work with variables in Java. Or maybe you’re just curious. Well, you’ve come to the right place (or post if you will, hehe.) You should know the following to be able to understand this tutorial: The class template/structure What classes are How to use an IDE How to write I’ll talk about variables first. What is a variable? In simple terms, a variable…

"Java Tutorial – Variables"

Loops in Java

Often times as a programmer, you’ll encounter situations where you’ll need to use loops – it’s inevitable! So learning how to use loops in Java as fast as possible is a good idea! Why use loops? Well, this is pretty self-explanatory. If you want a specific set of instructions to execute for a specific number of times or for all of eternity, you’ve got the reason right there! You use loops in java when you…

"Loops in Java"

Learning How to Program : Tips on Getting Motivated

Hello there! This post isn’t about babbling about why you should program, how easy or hard it is, etc. I can assure you that you are in the right place when learning how to program. If you are kind of unmotivated because learning how to program seems so out of reach, read on! Here’s 7 tips to keep in mind when you are going to start learning how to program. #1 – Pace the learning…

"Learning How to Program : Tips on Getting Motivated"

Learn Android: Hello World App – Making it Personal

Last tutorial focussed on setting up Android Development Tools (ADT) and getting a simple Hello World application running on an Android Virtual Device. This time we will look at how the Hello World App works by looking at the layouts and some code. We will learn about Activities, what they are for and how we can get them talking to each other to make more than one screen in the application. We will look at…

"Learn Android: Hello World App – Making it Personal"

Learn Android: Setting up in Android Development

If you have an Android phone, or even if you haven’t, getting set up for Android development is a rewarding experience and can teach you lots about Java and is an excellent choice for getting your teeth into learning how to program.  One of the biggest frustrations for those new to programming is that whilst you get to learn lots of new concepts and learn to apply logic to problems, the display of your hard…

"Learn Android: Setting up in Android Development"

Google Place API for Android to Find City

I have seen the tutorial to find the city using autocomplete text view in android.i have done everything that is instructed but now when I hit this url. It always throws me an exception saying : java.net.UnknownHostException: Unable to resolve host “maps.googleapis.com”: No address associated with hostname but the same url work fine when i hit through browser and i am getting the results also. Here is the code I’m hitting with :

 …

"Google Place API for Android to Find City"

How to fix an Adobe Edge Html5 animate that restarts the loop

How to fix an Adobe Edge Html5 animate that restarts the loop before animation completes in live browser? I have put together an animated banner ad with Edge Animate and embedded it within my website. When the looped ad plays, it finishes pre-maturely, then starts at the begining again. Each time the ad plays, abit more of the animation plays out before it stops and starts again. For example, the 1st play through may get…

"How to fix an Adobe Edge Html5 animate that restarts the loop"

Three levels of GIT config

There are 3 levels of git config; project, global and system. project: Project configs are only available for the current project and stored in .git/config in the project’s directory. global: Global configs are available for all projects for the current user and stored in ~/.gitconfig. system: System configs are available for all the users/projects and stored in /etc/gitconfig. Create a project specific config, you have to execute this under the project’s directory.

Create a…

"Three levels of GIT config"

Running your code as a different user with Alfresco

Alfresco is using acegisecurity, so every running thread has a security context associated and every line of code runs with the executing user’s credentials. However sometimes you need to run a custom code with admin credentials or other system user’s credentials. For example in a current project that I am involved in, we created a configuration utility to store our configuration on Alfresco as content nodes, however in order to read the configurations you have…

"Running your code as a different user with Alfresco"

Application Development on SalesForce

For a project, I was asked to evaluate force.com to see if it can be considered as a platform of choice for a couple of specific applications. During evaluation I mainly looked into the feature set to see how aligned it is when compared to regular enterprise software development routines the development experience to see the efficiency, learning curve, etc. I have not yet finalized my evaluations, but in this post I will try to…

"Application Development on SalesForce"

How to debug deployed content model on Alfresco?

I am trying to merge two AMP modules into one, but the content model in one of the modules seems to be not loaded since the tests are failing. So I tried to find a menu to see the deployed content models on Alfresco Web Client however there is none. As a result I decided to use built-in Get Class Definitions webscript to debug. You can also use this webscript to see if an expected…

"How to debug deployed content model on Alfresco?"

Handling multiple queries with Google Visualization API

Google Visualization API supports multiple data queries. So on the client side if you use google.visualization.Query, it automatically increases reqId with every new request you make on the same page. The reason is to identify query responses correctly using reqIds. In order to make this work, you also have to prepare your query responses with the correct reqId. You can use the following snippet if you are using gviz python library. However the idea is…

"Handling multiple queries with Google Visualization API"

Running Alfresco 3.3 with embedded database (H2 in PostgreSQL compability mode)

Alfresco is a very good open source content management system, however there is only one problem with Alfresco, testing. It is a complete headache, writing an integration test, forget it! You will end up with functional tests; fire up an Alfresco instance use one of the existing interfaces to setup some test data and finally do your test Unfortunately, starting from version 3.2 you cannot even do that and why? Because starting from version 3.2…

"Running Alfresco 3.3 with embedded database (H2 in PostgreSQL compability mode)"

Making Alfresco Maven Friendly

Since Alfresco source code is not managed by maven, implementing Alfresco extensions (AMP extensions) even simple JAR extensions with maven is very painful. Actually maven aside, Alfresco’s extension mechanism is itself very basic or rather primitive and based on MMT (Module Management Tool). MMT is a executable jar file for overlaying AMP’s (Alfresco Module Plugin) into Alfresco war file. The simple steps are; Extracting Alfresco war file Extracting AMP Copying everything inside the AMP into…

"Making Alfresco Maven Friendly"

Interacting with an argument passed to a mocked method in EasyMock

I don’t know EasyMock very well, I just use what I know. I hear you saying; C’mon man, how hard can it be? Besides the whole library consists of 11 classes. Just read the manual and the API docs. I hear you, however I could not find that time ever. I found my own ways when I found myself in situations that can not be handled with EasyMock –my view of EasyMock of course– For…

"Interacting with an argument passed to a mocked method in EasyMock"

How to setup up a new JDK with update-alternatives in Java?

update-alternatives in Java is a very good/clever tool especially for developers who has to maintain different versions of SDK‘s. I frequently use this feature to manage different Ruby versions, JDK versions and many other things but I always had to google it to check how to use. I saw that having to google it every time I need is time consuming so I finally decided to learn it and I noticed that it is not…

"How to setup up a new JDK with update-alternatives in Java?"

Is it possible to reload the content model on Alfresco at runtime?

I am asking this question to myself for sometime, unfortunately I could not find time to investigate it because of other important(!) stuff I had to do. I even asked the same question to a consultant while interviewing him for a project. The answer was; There is not a particular way of doing it, but I am sure it is possible up to some context, since Alfresco is Spring based, blah blah blah. So I…

"Is it possible to reload the content model on Alfresco at runtime?"

Man has to have his own HTTP abstraction in Java

I hate the fact that every project is building their own HTTP abstraction on top of some library, sometimes java.net, sometimes commons-httpclient but always a custom implementation that depends on something different. Currently I am trying to implement a Constaint on Alfresco that can get the allowed values from a controlled vocabulary service via HTTP. First I tried to use Alfresco’s own abstraction to deal with HTTP calls in order to facilitate the existing code-base.…

"Man has to have his own HTTP abstraction in Java"

Meta-Programming in Ruby – So Easy, So Elegant

Ruby is arguably the most meta-programming friendly language of the current dynamic languages since it has no compile time at all, and most constructs in Ruby are available at runtime. Simply, there is no distinction between the code you are writing and the code that your computer runs, and you can change the code that your computer is running at any time you want. Is it dangerous? hell yes. Does this prevent me doing it?…

"Meta-Programming in Ruby – So Easy, So Elegant"

JIRA Exceeded Expectations on GreenHopper

Personally I am not a big supporter for agile tools or rather I am not a big supporter for agile methodologies like; Scrum. I think, this kind of frameworks just enable developers with different personalities/styles and from different profiles to work together. Although I am not a big fan of these kind of methodologies, it is not easy to form a team that you don’t need to use them. Enough for the analysis, it is…

"JIRA Exceeded Expectations on GreenHopper"

Don’t use internal APIs while integrating 3rd party Libraries

While coding in a hurry, you sometimes use internal API’s either willingly –since you don’t want to spend more time– or unwillingly instead of public equivalents. I am saying don’t use them because they meant to change, as the name implies they are for internal use. Just today, I spent three hours just to replace these kind of codes after upgrading Alfresco to 3.3 from 3.2 for a project I am working on. Those who…

"Don’t use internal APIs while integrating 3rd party Libraries"

10 Easy Steps to Create Bootable USB Flash Drive

Steps to Create Bootable USB The process of creating a windows 7 USB flash drive is fairly easy, however you will have to download a copy of ISO file.Once you have downloaded an ISO file, you can then follow the instructions provided below to create a Bootable windows 7 USB flash drive. To create a USB Drive as Bootable manually,you need to open a Command Prompt(cmd).For creating a bootable USB drive as a Windows installation media,…

"10 Easy Steps to Create Bootable USB Flash Drive"

Show recent viewed product list on website in php

I am writing down the code to show the recent viewed product on the e-commerce websites. if(!$_COOKIE[‘recentviews’]){ setcookie(‘recentviews’,$_GET[‘pid’],time()+86400); }else{ $cArray=explode(“,”,$_COOKIE[‘recentviews’]); if(!in_array($_GET[‘pid’],$cArray)){ setcookie(‘recentviews’,$_COOKIE[‘recentviews’].”,”.$_GET[‘pid’], time()+86400); } } ?> Note:before using $_COOKIE start the session ie write down the session_start() on the top of the page. $query=”select * from product where id in(“.$_COOKIE[‘recentviews’].”) AND id!=’”.$_GET[‘id’].”‘”; Explanation: Suppose i am on the page with url like http://www.example.com?productdetail.php&id=32 where 32 is the id of the product i am viewing. We…

"Show recent viewed product list on website in php"

PHP Functions every PHP Developer Should Know

One thing which I like the most about the PHP is its inbuild/pre-defined functions. If you are coming from C/C++ background. Then you will start loving the gift of PHP functions. For Eg. array_sum() . you don’t have to write a logic for iterating through all the array and add their values. PHP has a pre-defind function which do the same job for you. 1) explode() : it converts a string into array with the supplied…

"PHP Functions every PHP Developer Should Know"

Complete Cheatsheet of Mod_rewrite

Below is the Complete Cheatsheet of Mod_rewrite Download mod_rewrite Cheat Sheet [.pdf] RewriteRule Flags C Chained with next rule CO=cookie Set specified cookie E=var:-value Set enviro-nmental variable “var” to “value” F Forbidden (403 header) G Gone – no longer exists H=handler Set handler L Last – stop processing rules N Next – continue processing NC Case insens-itive NE Do not escape output NS Ignore if subrequest P Proxy PT Pass through R[=code] Redirect to new…

"Complete Cheatsheet of Mod_rewrite"

Algorithms {Longest Palindromic Substring}

Today we will talk about “Longest Palindromic Substring” problem. I’ve developed solution about year ago but a few days remembered it and thought about it. So, full problem description: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. Ok, good, on the face of it, we can use some simple naive algorithm with O^2 complexity…

"Algorithms {Longest Palindromic Substring}"

Algorithm {Binary Tree Maximum Path Sum}

I’ve just solved one more problem from leetcode and going to share that solution. So, solved problem calls Binary Tree Maximum Path Sum. Problem description: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree,

Return 6. OK, stop and think …. What do we have ???  The main point is binary tree. We can use perfect traversing algorithms. In…

"Algorithm {Binary Tree Maximum Path Sum}"

Evaluate Reverse Polish Notation Algorithm

I’ve solved a few tasks from http://leetcode.com/ and going to publish my solutions, So, first task is Evaluate Reverse Polish Notation The task description is : Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, –, *, /. Each operand may be an integer or another expression. Some examples:   [“2”, “1”, “+”, “3”, “*”] -> ((2 + 1) * 3) -> 9   [“4”, “13”, “5”, “/”, “+”] -> (4 + (13 / 5)) ->…

"Evaluate Reverse Polish Notation Algorithm"

Algorithm {The maximum-subarray problem}

I’ve just opened Introduction to Algorithms on Divide-and-Conquer chapter, and found interesting item – The maximum-subarray problem. In book you can find implementation with complexity O(NlogN) with good explanation, but in Exercises part there is good task: Use the following ideas to develop a nonrecursive, linear-time algorithm for the maximum-subarray problem. Start at the left end of the array, and progress toward the right, keeping track of the maximum subarray seen so far. Knowing a…

"Algorithm {The maximum-subarray problem}"

Algorithm {Single Number}

We are working on next task from leetcode. So, next task will be …. , {Single Number} 🙂. Task: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? Stop and think … What we have, input array of integers and we should find one NOT DUPLICATE number. So, it’s easy … Go to the…

"Algorithm {Single Number}"

Algorithm {Triangle}

Hey, next problem from leetcode will be Triangle. Task description: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle

The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 + 1 = 11). Note: Bonus point if you are able to do this using only O(n) extra space, where n is the total number of rows in the triangle.  Stop and think ……

"Algorithm {Triangle}"

Reverse Words in a String Algorithm

Today we will try to solve “Reverse Words in a String” task for leetcode. Task description: Given an input string, reverse the string word by word. For example, Given s = “the sky is blue“, return “blue is sky the“. Clarification: What constitutes a word? A sequence of non-space characters constitutes a word. Could the input string contain leading or trailing spaces? Yes. However, your reversed string should not contain leading or trailing spaces. How about…

"Reverse Words in a String Algorithm"

Algorithm {Max Points on a Line}

Today we will try to solve next problem from leetcode. The problem is Max Points on a Line. Problem description: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. So, that is short desciption…. Try Stop and Think … What do we have, we have input array/list of points and should return max number of the points on one line. We can try to remember school math course…

"Algorithm {Max Points on a Line}"

VitualBox VMs increase disk size

I am using VirtualBox as VM platform for different OS’. Last time I’ve investigated kafka messaging system I’ve created simple VM based on the ubuntu OS. Disk was created by default with size amount 8 Gb. During investigation I’ve found that kafka stores a lot of files (related to configuration) and free space on my disk is very low, I’ve decided to extend it, but did not found standart ( on menu ) option to…

"VitualBox VMs increase disk size"

Reverse LinkedList {Loop implementation}

In the first part I’ve described how to reverse single LinkedList using recursion. Today we will to do the same using one loop. The structure of linked list will be the same, look to the Node class. OK, What we should understand? The first implementation used next steps: Go throughout all nodes and set next to null { after these steps we have n-null pointed LinkedLists.} Read from end and change direction of linking. Current…

"Reverse LinkedList {Loop implementation}"

How to Clean your Mac after Deleting IntelliJ IDEA

If you tried to delete an IntelliJ IDEA from your mac station you know that problem is not simple, so, I’ve decided to write short note “how to clean your mac after deleting IntelliJ IDEA app from Application folder”. Generally check all next folders and clean/change what you want:

Where it can be used ? If you have some problems in update; If you have problems with license; If you have problems with old…

"How to Clean your Mac after Deleting IntelliJ IDEA"

How to Get IP Address Linux

Today I’ve tried to prepare auto configuration of my application and one of the main point was create correct cluster with real IP addresses . For example you have some config files where you want to put real IP of installed machine. In real Linux world it should be configured manually after installation but I want to emulate auto configuration, so, I’ve prepared bash script to get ip address on linux for auto config all…

"How to Get IP Address Linux"

Maven: Set up java.library.path

I’ve tried to set up java.library.path as next example      <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <systemProperties> <property> <name>java.library.path</name> <value>target/lib/</value> </property> </systemProperties> </configuration> </plugin> but there were problems in testing, one test with JNI was passed but others were failed. I’ve spent about 4 hours for investigation and found that in last part of documentation there are special properties, so I’ve tried it and it is working!!! Simple example of working plugin configuration <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>once</forkMode> <workingDirectory>target</workingDirectory> <argLine>-Djava.library.path=${basedir}/lib</argLine>…

"Maven: Set up java.library.path"

Amazing story about crashing JVM

A few days ago I’ve investigated API of one over price external library. One note this library is native, written using C++ and provides ports to other language in particular for Java using JNI. So, I’ve started to run provided example all is OK, and I’ve decided to use this application to write my API using OSGI and Spring. Native example implements 5 interfaces and provides a lot of methods that I do not need…

"Amazing story about crashing JVM"

Development Workflow: Usual Steps

Do you have established dev’s process ? How do you use it ? Do you like it ? What is the benefit from it ? And others … These questions are usual in programmers’ area (at least for me), so I decided to write short note about process and how it established in company where I am working. Short and simple Rules: Firstly – all have to use it, if some one decided to stop…

"Development Workflow: Usual Steps"

Simple puzzle NPE (String)

We had training related to java, and was short example of code, like that :

and all developers tried to find places where NPE can be thrown. Yes, we found that name can be null

also that agent.getFullName() can throw NPE. But I asked, next question :

So, here is short description how that can be implemented 🙂 OK, we should know where method length() is declared, short investigation can show us that method length()…

"Simple puzzle NPE (String)"

Longest substring with 2 unique chars Algorithm

A few days ago my friend asked me a question, How can we find the longest substring which contains 2 unique characters in linear time without additional memory? Yeah, we spoke about algorithms 🙂. I suggested to use 2 cursors like start and end and just get substring by these cursors. Generally idea is right, but how can we manage these cursors ? This is quite hard. Maybe not so hard but need some time to…

"Longest substring with 2 unique chars Algorithm"

Algorithm {Find Minimum in Rotated Sorted ArrayII}

I’ve solved next task Find Minimum in Rotated Sorted ArrayII. The main difference between two solutions is duplication. So, task description: Follow up for “Find Minimum in Rotated Sorted Array”: What if duplicates are allowed? Would this affect the run-time complexity? How and why? Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the…

"Algorithm {Find Minimum in Rotated Sorted ArrayII}"

Algorithm {Min Stack}

I’ve just found that leetcode added new one task and decided solve it 🙂. SO, new task is Min Stack. Task description: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) — Push element x onto stack. pop() — Removes the element on top of the stack. top() — Get the top element. getMin() — Retrieve the minimum element in the stack. As you can see we need…

"Algorithm {Min Stack}"

Algorithm {Intersection of Two Linked Lists}

Today I will describe about easy but with interesting solution problem – Intersection of Two Linked Lists. OK, let’s read problem description: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists:

begin to intersect at node c1. Notes: If the two linked lists have no intersection at all, return null. The linked lists must retain their original structure after…

"Algorithm {Intersection of Two Linked Lists}"

Algorithm {Longest Valid Parentheses}

Today we will try to solve that problem for the Longest valid parentheses. First time I’ve faced the task I did fail, Yes, I’ve thought about the task in right way but had problems in some implementation details. Today, I’ve analysed the problem on the fresh mind and found/fixed my mistakes. So, task description: Given a string containing just the characters ‘(‘ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For…

"Algorithm {Longest Valid Parentheses}"

Android: Formatting Strings

Introduction If you are java developer you can use String.format for adding some parameters into your string. Core Java provides us mechanism to manage it using symbols like %s or {1}, but how to use this mechanism in Android resource strings? Resource Strings Android provides us good mechanism to format strings in application too. Just try to add %1$s  or %1$d into your resource strings. The last symbols mean s –  for string formatting d – for decimal…

"Android: Formatting Strings"

Android: Unit Test Issues

I’ve created this project for testing my Android Application and tried to start it. After starting I have received next error: Test run failed: Unable to find instrumentation info for: ComponentInfo {<my package>/android.test.InstrumentationTestRunner} After few hours of investigation I have found solution for this situation. Problem So, Problem is name of package in the manifest files.  The package in “real” manifest file and test manifest file are equal. For instance, look at the package com.blogspot.jugn in…

"Android: Unit Test Issues"

Android: Amazing Story about Sending SMS Messages from the Code

I’ve found amazing case of sending sms messages from the code. Task I need to send SMS message from my test method and test behavior of parsing it. Just for this post we are interesting in first part: Sending SMS message from code. I’ve written next simple code: final SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(“5554”, null, “Test”, null, null); and tried to test it. Just put this code in simple test method and run Android Unit Test. The result is … nothing!!! Why?!! I…

"Android: Amazing Story about Sending SMS Messages from the Code"

Android: Localization

Introduction The next step in development Android application will be localization. I’ve read documentation from official site and from http://www.icanlocalize.com/ and decided to describe it. Sequence of resources lookup How does android lookup the resources from applications? The example of lookup steps below: ‘res/values-en-rUS/strings.xml’ ‘res/values-en/strings.xml’ ‘res/values/strings.xml’ Firsltly Android looks for resources in en-rUS folder if not found, looks in -en folder and just after it in default. If resource has been found then  the search stops. Dismantle folders structure The next question that worried me…

"Android: Localization"

PlayFramework: Run and Debug Using IDE

Introduction I think each of us looking for the best IDE and best way of development. I think the best code editor is IntellJ IDEA and I am using it for 6 years. A few month ago I’ve started to use PlayFramework and were surprized that there is no way to debug application using IDE just browser and console logs and messages. After short investigation I’ve found solution … Solution This step-by-step solution for IntellJ…

"PlayFramework: Run and Debug Using IDE"

How to Delete Your Google+ Page?

Do you have a Google+ page that is unused from long time or for some reasons you want to delete it? When you tried to delete Google+ Page, it warned you that Google account associated with that page will also get deleted and thus you got confused which account they are talking about? Don’t worry. I’ve tried to explain here what exactly that message means. I had one unused Google+ page and I decided to…

"How to Delete Your Google+ Page?"

How to Optimize Your Blog Post for the Search Engines

Blogs have become one of the most useful methods in getting more visitors to your website. This is quite beneficial most especially to companies and businesses that have online presence since it helps in getting more leads and potential customers. But having a blog with a bunch of relevant articles doesn’t always mean you’ll succeed at your goal of getting more site visitors. It takes more than just skillfully writing with a specific style and…

"How to Optimize Your Blog Post for the Search Engines"

Modifying Gamification Design Framework Octalysis for India

First of all let me give a brief introduction of Gamification and Octalysis. Gamification is defined as the addition of game mechanics to programs, processes and platforms that normally would not use such features. Octalysis is a Gamification framework that employs eight point approach to implement a successful gamification technique. This framework has been developed by Yu-kai Chou who is a Pioneer of gamification. The eight core drivers of the gamification design framework are: Epic…

"Modifying Gamification Design Framework Octalysis for India"

Why Digital Marketing in Education is the NEXT BIG THING?

Gone are those days when you had to spend a great deal of time standing in queues to get the application form, brochure, admission details and in-depth details of the Degree Programs available at the college of your choice. With rapid digitization of marketing in the Education sector, all these hustle-bustle can be avoided. This also provides added advantages like Universities/ Colleges giving you more in-depth and panegyric details of their institutes for comparison of…

"Why Digital Marketing in Education is the NEXT BIG THING?"

11 Business Startup Strategies for Entrepreneurs

Many times you find that entrepreneurs come up with these awful ideas that they think are going to become the “next big thing”.  There are even amazing ideas that are brought down with the worst of presentations and awful valuation of their company. But those one percent of ideas that get an offer – it wasn’t through a good product alone.  No, it’s a combination of everything that makes for a good investment:  a solid…

"11 Business Startup Strategies for Entrepreneurs"

Mistakes to Avoid While Doing PHP Coding

There are some mistakes which can be avoided if coding is done, while keeping the below points in mind. # Always open and close the brackets for loops or if else condition. It is common mistake to forget about closing the curely braces or loop closing braces. # End all the PHP lines with “;”(semi-colon).It is good practice  to avoid errors in php. # I will advice to use <?php and ?>  for opening and closing php…

"Mistakes to Avoid While Doing PHP Coding"

How to Add Secondary Domain to Google Apps Standard/Free/Grandfathered Account

Can I Add Google Apps Additional Domain? Google in November 2014, had disabled the default function of adding a secondary domain to to Google Apps free/standard accounts. The domains which are already added still works. Google Apps for work has this functionality working which cost you $5/user/month. You have Google Apps Free account and you want to add domain into it? Don’t worry we have a workaround which enables you to add domains to your account.…

"How to Add Secondary Domain to Google Apps Standard/Free/Grandfathered Account"

Codeigniter 500 error issue with Godaddy Hosting – Resolved

Godaddy hosting has got its’ own way of handling things. We need to work extra hard for running things smoothly on Godaddy & Codeigniter is no exception to this. I really used to ignore hosting my codeigniter projects on godaddy. But finally , I figured out the way of running Codeigniter on Godaddy. Write the below code in your htaccess file. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php?/$0 [PT,L] and make the below…

"Codeigniter 500 error issue with Godaddy Hosting – Resolved"

List in HTML

List are a way of representing things in a chronological manner.Sometime we use it to show the hierarchy also. List can be of two types : Ordered List , UnOrdered Listfirst published! (required) Ordered List in HTML Cricket Playing nations India Pakistan England South Africa For above list, we have to use the below code <ol> <li>India</li> <li>Pakistan</li> <li>England</li> <li>South Africa</li> </ol> Another style for ordered list India Pakistan England South Africa For above list,…

"List in HTML"

Tips and Tricks in PHP

I am sharing some tips and tricks with you here, with the experience I have had in programming # If you are uploading any files using form , always use enctype=”multipart/form–data”  in the form tag. For eg.   <form name=”myform” method=”post” enctype=”multipart/form–data“> If you don’t use the above attribute , you will be not able to upload the file onto the sever # if some of your form values are not submitting, then the first…

"Tips and Tricks in PHP"

Mysql Introduction

Mysql is a RDMBS ie Relational Database Management System. It is the most popular RDMS used with php. Mysql uses various storage engine .Some of them are MyISAM,MEMORY,HEAP,MERGE,InnoDB etc .The defalut storage engine is MyISAM. Below are the some operations which are frequently used . Insert Syntax : insert into tablename(column1,columan2…..) values (values1,values2…….). alternate  syntax insert into tablename values (values1,values2…….). Eg :  Insert into user (name,age,sex) values (‘Manish’,’23′,’Male’) Here table name is user, the order…

"Mysql Introduction"

C ++ → Recursive XOR

I used to deal with cryptography some time ago and thought of my own algorithm. A part of this I will introduce to you. I call it recursive XOR. The reason behind this is that you encode an entire byte with only one bit. I will show you the simple principle, which is behind it in a brief example: We take a byte we want to encrypt (01001110) and a bit (1). We apply XOR…

"C ++ → Recursive XOR"

Decorating Django views that require Google Authorization with python decorators

In a project that I am currently involved, we needed to authenticate with Google Analytics in order to query statistics. As you may know currently Google supports three authentication mechanisms to allow other applications to authenticate on someone’s behalf. ClientLogin: You give your username, password and the application does the rest for you. I don’t think there are still people out there who can give away their passwords to applications to be used on their…

"Decorating Django views that require Google Authorization with python decorators"

The default PackageResolver for gwtoolbox has changed?

I spent the last 4 hours to understand why gwtoolbox is not injecting dependencies. It was a painful process; there was not any log, just a NullPointerException since there is nothing to inject in the container. Anyway the problem occurred after upgrading gwtoolbox to 2.0-SNAPSHOT from 0.7. Finally I figured out that they changed default PackageResolver strategy in the new version. Before I wasn’t specifying any PackageResolver, meaning; I was relying on the default package…

"The default PackageResolver for gwtoolbox has changed?"