How to Read online articles Later or Offline in Windows 8.1

I figured out some awesome stuff from my friend’s windows 8.1 Notebook, where it took her little more time to understand and get familiar with Windows 8, as previously she used Windows XP PC. But I really love Windows 8.1 even though it’s somewhat confusing for others. One of the great features is the Metro Apps, which were preloaded with some efficient apps, is the ‘Reading List’. This app lets you to save online articles…

"How to Read online articles Later or Offline in Windows 8.1"

How to Encrypt Text to Blank Spaces : Convert Text to Blank Spaces

    Ever wondered if you could encode your text into just blank spaces. By blank spaces I actual mean blank spaces i.e. ASCII 32 in computer encoding term which confirms it’s a blank character. If you’re reading this article, you’re probably interested in doing this. So, let me explain you how to encrypt text to blank spaces using my favorite online tool located at spammimic.com Encoding / Encrypt text to blank spaces Step 1.…

"How to Encrypt Text to Blank Spaces : Convert Text to Blank Spaces"

Can You Really Trust A Framework ?

If you are a PHP developer you will probably be pushed by everybody to learn how to use a framework to develop your application. But nobody tells you in a clear way what you’re going to obtain doing this. For every developer who is in this phase of personal growth, this choice is never easy and the main reason is the fear of being conditionated by this link in a bad way. In the journey…

"Can You Really Trust A Framework ?"

Transfer Call logs Messages From One Android Phone To The Other

The first concern that comes to your mind when thinking of getting a new phone would be about your call logs and messages. How to transfer everything to the new phone from the old one would stand as a big tall question mark before you. But don’t worry anymore. We have got the perfect solution right here for you. Dive into the article to learn how to hack this simple trick. Note: Make sure both…

"Transfer Call logs Messages From One Android Phone To The Other"

How To Disable Siri On Mac

  Some Mac users may wish to turn off Siri on their Mac, perhaps because they aren’t using the Siri service on their computer or maybe they’d rather just use Siri on the iPhone or iPad instead. Regardless of the reason, you can easily disable Siri in Mac OS, which will completely turn off the voice assistant service as well as remove the Siri icon from the Mac menu bar (and Touch Bar if applicable).…

"How To Disable Siri On Mac"

Change Windows Password by CMD Without Knowing Current One

Have you ever been thinking about the ways using which you can hack into the other accounts in your Windows system? What if I tell you that you are not required to know the current password to set a new password to any one of the Windows user accounts? Now the question arises: How can it be done? Do we need an additional software to achieve this hack? Well, what I am going to tell…

"Change Windows Password by CMD Without Knowing Current One"

How To Remove Shortcut Virus From Pen Drive Or PC

Today I will tell you how to remove shortcut virus from pen drive or hard disk. When I was a newbie to computers I also suffered from shortcut virus problem. Its most irritating virus problem we get in our computers. Sometimes we get pop up on opening file or file is not opened. So don’t worry today you will learn how to remove shortcut virus from pen drive. What is shortcut virus? First we need…

"How To Remove Shortcut Virus From Pen Drive Or PC"

Easy Fix : This Copy of Windows is Not Genuine Build 7601

If you are Windows 7 build 7601/7600 user than at some moment of time you might get error windows not genuine popup message stating “This copy of Windows is not genuine build 7601 / 7600“, after few days of installing Windows maybe 1 month or after doing updating windows 7 build 7601. This copy of Windows is not genuine error occurs due to three reasons: Windows is not genuine windows 7. Windows 7 validation error.…

"Easy Fix : This Copy of Windows is Not Genuine Build 7601"

Easiest Methods to Change Mac Address on Android

Do you use public WiFi hotspots frequently than you must be worried about online privacy than I have solution for you? All you have to do is change MAC address android phone on which you browse via public WiFi. It’s really good idea to change MAC address of your device as your device info will be secured. Today I will tell you how you can spoof or change MAC address of android phone. Yes MAC…

"Easiest Methods to Change Mac Address on Android"

How to go about creating login page in asp.net

Today I am going to show you how you can go about creating login page in asp.net website. Whenever you want to keep your information safe or stop unwanted traffic on your website, a login system works the best. My ongoing ASP.NET tutorial series will show you a complete demo of website creation. I will try my best to show you the easiest way to create a nice and secure website using ASP.NET. And therefore…

"How to go about creating login page in asp.net"

How to Perform Ubuntu 13.1 Password Reset

Need to know what to do if you forgot Ubuntu Password? Have no fear if you ever forget your password and are unable to log into Ubuntu in your computer . There is a very simple and quick way to reset your password with the help of recovery mode option in the Grub menu. Do the following steps to reset your password: Start your computer. In the Grub Menu which appears by default when you…

"How to Perform Ubuntu 13.1 Password Reset"

What is Basic Input Output System

Today we answer a question by a reader… what is basic input output system? Whenever a machine is powered on , the 1st program to run is the Basic Input Output System or BIOS. Basic Input Output System or BIOS is a simple an assembly language program . Primary jobs of BIOS are: POST :  Performs the Power On Self Test, or POST , to test the peripherals if they are functioning properly at hardware level. CPU Initialization : BIOS checks the clock…

"What is Basic Input Output System"

Step By Step Tutorial : Write Linux Device Driver Char

Now, let’s do a small exercise of writing Linux device driver char. Let’s assume that you have attached an imaginary character device named my_device with your computer. Let’s write driver for this device from whatever we have discussed so far.   Step 1: Creating the device node First step includes creating a device node in user space. Just go to your home directory and create a device node by using ‘mknod,. # cd /home/llk # mknod /dev/my_device c 256 0 Fig. 5.6 creating a…

"Step By Step Tutorial : Write Linux Device Driver Char"

Device Drivers Basics Char : Putting it all together

Now let’s put whatever we have learnt so far into writing a basic char device driver. Here is the code of a basic char driver for you, Finally. unsigned long copy_to_user (void* destination_address, const void* source_address, unsigned long num_of_bytes_to_copy); /* Your First Driver – Basic Char Driver ** Author: LLK ** Kernel version: 2.6 */ #include <linux/module.h> #include <linux/fs.h> #include <asm/uaccess.h>  // for copy_to_user & copy_from_user. #include <linux/init.h> #include <linux/sched.h> #include <linux/types.h> #include <linux/cdev.h> /* Initial Declarations */ static int                 char_device_id; #define CHAR_DEVICE_NAME   ”llk_chrdev” #define MAX_LENGTH         4000 #define MY_MAJOR                         254…

"Device Drivers Basics Char : Putting it all together"

How to Secure Your WordPress Site

Web security in General, or the WordPress security in particular is a very important issue that needs to be done early, as often, in parallel with the construction of the content and SEO for website. By probably one day, you wake up and the website with the enthusiasm and effort disappeared, hacked, inserting malicious code … The feeling at that terrible that you don’t want to experience. So let’s make the WordPress security method today…

"How to Secure Your WordPress Site"

How To Do BLUESTACKS Install And Run Android Apps In Windows/Mac OXP/7/8 PCS FREE

Bluestacks is a software based and designed for the purpose of virtualizing Android in our PC itself. It allows the users to run their desired Android apps and games in pc itself. The program was first released in 2011 and it began to grow in size along with reputation. Here I will show you how to complete a Bluestack Install Step 1: Bluestacks Install You need to download the Bluestacks software first and then install…

"How To Do BLUESTACKS Install And Run Android Apps In Windows/Mac OXP/7/8 PCS FREE"

How to Turn Off or Disable the SmartScreen Filter In Windows 8

Windows 8 has a new layer of security that builds in the SmartScreen filter from Internet Explorer right into Windows itself. If you don’t like that idea, here’s how to turn off smartscreen filter Windows 8. Editor’s Note: The SmartScreen Filter included in Windows 8 and probably should not be disabled, as it helps prevent malware infections. This article is intended for educational purposes only. Disabling the SmartScreen Filter Open up the classic control panel,…

"How to Turn Off or Disable the SmartScreen Filter In Windows 8"

Hiren : BootCD iso image from http server

Now we will take GPXE to boot an iso disc image through http protocol. This time I tried with an Hiren BootCD iso image – a very famous and popular All-in-One BootCD. It takes about less than 30 seconds to load and boot the image using 100Mbps LAN network. If move to Gigabit network, the time will be much better. To boot the iso file, grub4dos does use (0xff) mapping instead of (hd0). Detail entry…

"Hiren : BootCD iso image from http server"

How to Run Windows XP in Ram Memory

  Objective : As you know, PC memory (RAM) works at super fast speed. Maybe it is the second fasted factor in PC architecture (slower than CPU cache memory). This post will show you how to load and run Windows XP in RAM to see how fast it does run. Requirement : Suppose that you have already known how to : Make a vhd disk image which includes winxp. Make winxp to minimal size. Boot a…

"How to Run Windows XP in Ram Memory"

Using NLite for Windows XP Minimal Size

Objective : In normal circumstance, after installing, a full version of windows xp takes around 1GB (after turn off paging file) hard disk space. Windows XP has been shipped with alot of components which maybe you don’t need and maybe never use them like : support for netware network, transmeta cpu, netmeeting, help and supports, driver and dll caches, … While alot of people want to run winxp in minimal space environment like usb disk…

"Using NLite for Windows XP Minimal Size"

How to Create Windows XP Install to USB

  Objective : Winxp is really a good member of windows family. It is maybe the most common version of windows has ever used until now. This post will show you how to put a full winxp on usb disk to use it anywhere. Requirement : Ability to use some VirtualMachine Management like VirtualBox, VMware, … Good knowledge at using Winxp. Terminology : Vhd file : It looks like an image of a disk (and…

"How to Create Windows XP Install to USB"

Easy Troubleshooting 500 Internal Server Error Linux [Fix]

I am here again with a new topic and most common error while transferring from one server to another server or after uploading new files. The 500 Internal Server Error Linux is mainly due to conflict of user permissions as well as user ownership. Mostly after moving files from one linux server to another server, first thing which we encounter is internal server error. For new comers, making transfer for the first time, it is like…

"Easy Troubleshooting 500 Internal Server Error Linux [Fix]"

How to Upgrade MySQL 5.1. to 5.5 Latest Version on CentOS

Today, I came up with a simple solution to update MySQL from version 5.1 to latest version 5.5. If you are importing database MySQL and getting error about # 1273 Unknown Collation or having other issues while moving from one server to another and need to upgrade MySQL than go through solution provided below. Some simple SSH commands will do all for you. First of all confirm that you are using older version of MySQL…

"How to Upgrade MySQL 5.1. to 5.5 Latest Version on CentOS"

[Guide] Setup FTP Server & Complete Configuration on Centos

I am back again with a new article. This time I am going to explain you how to setup FTP centos with all of its options. FTP server is one of the most useful product for web servers as we usually need to upload and download files from the server. In absence of graphical control panels like cPanel, it becomes difficult to upload data so best product available for this is FTP server. Installing and configuring…

"[Guide] Setup FTP Server & Complete Configuration on Centos"

Motion: Use Your Webcam as a Security Camera

Last month, my landlord told me he had to send an engineer to fix the heating in my room. I could not be at home at the time they would come, but they would have access anyway. This is one of the many occasions in which you wish you had a hidden security camera at hand (together with when you want to know if you roommate is really stealing your chocolate and when you suspect…

"Motion: Use Your Webcam as a Security Camera"

MailMe: How to Get Notifications Automatically via Email through BASH

In my job, I have to perform calculations on a remote machine to which I connect through ssh. It happens quite often that I have to run a few jobs overnight, if not for days. I could check manually for their termination, but I came up with a better way. In a previous post I described how useful it can be to run script in background on the machine without having to be logged-in. Combining…

"MailMe: How to Get Notifications Automatically via Email through BASH"

Screen in SSH Server : How to Run Processes in Background After Log Out

So, you want to run a very long process on your ssh server but you need to log out. It sounds like an impossible problem, but as long the computer is on, why can’t it run processes in the background? Well, it can, and there is a simple solution using a quite clever command-line window manager: Screen Screen can create multiple windows in a shell, from which you can “detach” and leave them running in…

"Screen in SSH Server : How to Run Processes in Background After Log Out"

Ethernet Connection Troubleshooting

So your ethernet connection is not working or it is really slow. It is pretty common and Linux has a big number of tool to try to pinpoint the problem. Here we will go over some steps for ethernet troubleshooting. The first easy steps that really help understand what is wrong in the connection do not actually require any hack or software. I will call them Safety Checks. It includes parts of the routine checks they…

"Ethernet Connection Troubleshooting"

Quickly create new empty files on Gnome (Nautilus) desktops

I don’t know if you, like me, use the Desktop as a place for urgent notes. I do, and a lot! I create empty files and rename it with the note I want to write in it and dispose of them easily deleting them whenever I don’t want the note to appear. Unfortunately the way to create those files is not one of the nicest, if you are in a rush: right-click on Desktop, find…

"Quickly create new empty files on Gnome (Nautilus) desktops"

Ethernet Connection Not Working in Debian after Fresh Installation

Just after I installed Debian Squeeze, at first boot, the wired ethernet connection, which worked so well during the install, was not working in the X system (Gnome). I wondered a lot trying to find an error in ifconfig or dmesg, but could find none. After a while, I noticed that the “status” of the connection in Gnome whenever I clicked on the network manager icon was: “Wired device not managed” The device was simply not…

"Ethernet Connection Not Working in Debian after Fresh Installation"

Change Thunderbird, Firefox Language Settings

Just after I installed Debian, I immediately felt the need to install Firefox and Thunderbird, as they are my favorite web and mail browsers. As they are not present in the debian repositories, I had to use the ones from linuxmint (I added to my/etc/apt/sources.list): deb http://debian.linuxmint.com/latest testing main contrib non-free And after I installed Firefox and Thunderbird, I found myself with a Firefox in Afrikaans and Thunderbird in Arabic. Why this weird combination? It…

"Change Thunderbird, Firefox Language Settings"

ImageMagick Mogrify: Scale and Crop Multiple Images in One Command

When dealing with a lot of pictures, sometimes we want to make a common modification such as a change of resolution. In the case of multiple screenshots it is also common to crop all of the images at a fixed position (such as selecting only the same window). Here we will take a look at the command using ImageMagick mogrify. Doing this job by hand, even just for three or four times, using the same…

"ImageMagick Mogrify: Scale and Crop Multiple Images in One Command"

How to Reinstall the network manager if you accidentally removed it

Using the aptitude package manager in Debian, I noticed a message that suggested me to use the command: $ apt-get autoremove This would have removed the unused dependencies following to having removed some unused packages. The list was long and I skimmed quickly through it, noting the fact that there weren’t important packages, as someone would expect. Unfortunately, the Gnome network-manager was included in the list, and when I run the command it removed my…

"How to Reinstall the network manager if you accidentally removed it"

Monitor your bandwidth usage: bwbar

The repositories include a nice little program to monitor your bandwidth usage. Very useful if you have a restriction on your bandwidth and you want to track your daily bandwidth usage. The program is called bwbar. It generates a graphical readout of the bandwidth usage locally in a .png and a .txt file. Installation Ubuntu/Debian $ sudo apt-get install bwbar Fedora $ sudo yum install bwbar Usage When installed, you need to modify the configuration…

"Monitor your bandwidth usage: bwbar"

Linux : How to Batch Rename Files

Say you have a bunch of pictures and you want to rename them in a certain fashion. You can do it without the use of any external software and without painfully modifying the name of the pictures manually. You can do it using just one command line! (even without using sed nor rename, if in a bash shell) Strategy Open a terminal and access the folder in which you have the files you want to…

"Linux : How to Batch Rename Files"

How to Install Software on Linux Using Repositories

This is a beginner guide on how to install software through terminal, using package managers. I will list the most common distributions (according to Distrowatch) and their command to search and install a certain software. Search Ubuntu, Debian, Mint (apt) apt-cache search [software_name] Fedora, Red Hat, CentOS (yum) yum search [software_name] Mandriva, Mageia (urpmi) urpmi -y [software_name] openSUSE (ZYpp) zypper search [software_name] Arch (pacman) pacman -Ss [software_name] Gentoo (portage) emerge -s [software_name] Install Ubuntu, Debian,…

"How to Install Software on Linux Using Repositories"

Linux Internet Dongles : Everything you need to Know

Yet another mobile broadband dongle is not working out of the box on your beloved Linux distribution. If you are new to Linux, this might be one of the most annoying problems you will face, as there is a sea of different kinds of these internet dongles and they usually all require different drivers to be detected. Fortunately, as almost every single wireless broadband dongle user seeks for help on Linux forums for his particular…

"Linux Internet Dongles : Everything you need to Know"

Problem with Grsync and (partial) remedy

I seize the opportunity of a recent problem with Grsync to talk about it. Grsync is an useful GUI for the command rsync. This command is very powerful, since it synchronizes two folders that can be on two different machines, or the same machine. Usually, if on the same machine, rsync is used for backup purposes. Grsync provides a lot of options to make synchronizations and backups and is really user friendly: it only needs…

"Problem with Grsync and (partial) remedy"

10 Gnome Nautilus Tips and Tricks

Nautilus is the file manager for Gnome. Gnome is a GUI for many Linux distributions and it is my favourite so far. Here are 10 Gnome Nautilus tips for you. A file manager is the program that manages and lets you access your files. In plain words, it is the window with folders and stuff in it. Knowing how to use it properly can let you save a lot of time (unless you want to use…

"10 Gnome Nautilus Tips and Tricks"

How to install non-free drivers during Debian Installation

As you might know from my previous post, I am a new Debian user. This is the first (and only, actually) “problem” I encountered installing Debian. The Problem I was installing on an amd64 architecture, from a live install on a bootable usb. The install required a network connection and I was using my wireless when I saw this notice: Detect network hardware Some of your hardware needs non-free firmware files to operate. The firmware…

"How to install non-free drivers during Debian Installation"

PDFTK: How to Merge Two PDF Documents

Pdfs are an easy way to share documents through platforms without worrying about compatibility. While this is clearly an advantage, pdfs lack the ease of modification that can be found in other documents types as Word documents. Essentially, pdfs are easy to read, but difficult to modify. Fortunately, in Linux, there are many tricks to make the job easier. There is a piece of software called pdftkwhich allows great manipulation of pdfs. Installation Using Fedora:…

"PDFTK: How to Merge Two PDF Documents"

Installing Sun Java 6 on Ubuntu 7.10 (Gutsy)

About 2 years ago, if someone asked me what the hardest part about using Linux was, I would have replied with “Sun Java is just about impossible”. The instructions supplied never worked or where too hard to understand. My directorys where in the wrong place. It was hell. But now, after countless encounters with Java as Linux grows in popularity among desktop users, I have found a way of installing it that has never failed…

"Installing Sun Java 6 on Ubuntu 7.10 (Gutsy)"

Pipes Feature in Unix Shell : How to send and get data between ANYTHING

Pipes is probably one of the most important and useful features features that is available in the Unix shell. This feature is simply astonishing, specially to people who are not familiar to the concept of pipes are totally surprised when they see it work. Without further delay, lets get to the core issue. Using pipes can save you time and headachs. Explanation : Pipes as the name suggests is a sort of hollow tube (a…

"Pipes Feature in Unix Shell : How to send and get data between ANYTHING"

How to Configure Iptables Firewall on Linux

Iptables is well known as being one of the most powerful ways to secure and lockdown nearly any linux machine.  But it can be challenging and difficult to understand just how to configure iptables linux.  With a learning curve that can scare or intimidate most people just getting started with Linux it can be a very time consuming quest for information when it comes to trying to just learn the basics of iptables, or to…

"How to Configure Iptables Firewall on Linux"

Restoring Ubuntu (or any distro) Grub Bootloader After Windows Install

If your install of Linux is a dual boot setup with windows you have run into this problem before. You reinstall windows and suddenly you can no longer access your Linux partition or the Grub bootloader. You can always go through the entire install of Ubuntu again, or you can try to repair the bootload, but how do you repair the bootloader? Here we look for the way to restore grub after windows install. Well…

"Restoring Ubuntu (or any distro) Grub Bootloader After Windows Install"

How to recover lost SMS, phone contacts from Android Samsung Galaxy S5 ?

SMS Texting has been an Important Option for communication by sending short messages. With the Use of Internet and rapid Increase in Tele communication the Use of SMS has been increased and there have been an Important Data in the SMS. So a SMS Handler and Recover is necessary for a Smartphone like Samsung Galaxy s5 of Android Operating system. Here is the Process to Recover Lost SMS and Contacts from Samsung Galaxy S5. Coolmuster…

"How to recover lost SMS, phone contacts from Android Samsung Galaxy S5 ?"

Basic Windows Vista Troubleshooting Guide

Troubleshooting a Vista computer system that is having problems can be a difficult task due to the endless software and hardware configuration possibilities on a machine. However, I’ve put together a basic guide for Vista users that may lend a helping hand in finding out where the trouble lies and how to fix it. System Restore: If you do not know where to start and you don’t have a clue as to why you’re having…

"Basic Windows Vista Troubleshooting Guide"

Steps to Cleaning A Computer Mouse

Mouse cleaning is a process that is often overlooked. You should clean your mouse about every 6 months (depending on use) or whenever you notice the cursor doesn’t move as smoothly over the screen as it should. Here are the steps to cleaning a computer mouse as well as tops to avoid a dirty computer mouse. How to avoid a sticky cursor: Avoid spilling liquids on your mouse. Keep your mouse pad clean and dry.…

"Steps to Cleaning A Computer Mouse"

How to Install and Uninstall Additional Fonts on Windows Vista

  Note: Be sure that when you download fonts from the Internet that you are doing this from a trusted source. Install a Font: Go to Start Select Control Panel Select Appearance and Personalization Select Fonts Select File (if the File option is not visible, press the ALT key on your keyboard) Select Install New Font Select the drive where the fonts you are trying to add are located Select eh folder where your downloaded…

"How to Install and Uninstall Additional Fonts on Windows Vista"

13 Hidden iPhone Headphone Tricks

Yesterday we covered some ways to control the iPod app on your iPhone with the headphone cable buttons. But they can do much more than just control your audio ! Read on to be educated! Here’s 10 Hidden iPhone Headphone Tricks The iPhone headphone button does a great many things depending upon what you’re doing at that particular moment on your phone. Here’s a handy list of all of 10 Hidden iPhone Headphone Tricks: Receiving a Call…

"13 Hidden iPhone Headphone Tricks"

How to Boot your Android Device in Safe Mode

Perhaps you need to Boot your Android Device in Safe Mode. Similar to the experience that you have with you PC wherein you can start the PC in Safe Mode to rectify any issues with the computer, you can also boot your android device into safe mode. The safe mode in Android does not loads the third party apps during the booting process. Only the apps that came with the phone will get loaded. Therefore, if your…

"How to Boot your Android Device in Safe Mode"

A Simple Core Data Introduction

This guide assumes you are using Xcode 4 Core data is the feature of Cocoa that makes it the best tool for developing applications for the macintosh. It’s what makes Cocoa a better choice for developing full, feature rich applications than Java or Ruby (not that they’re bad languages) for the mac. The simple reason for this is it allows you to develop amazingly complicated applications in precisely 0lines of code. Even then, you can…

"A Simple Core Data Introduction"

Intro to Cocoa Bindings (As well as Key Value Coding)

Bindings are an incredibly useful feature of Cocoa. Cocoa bindings were introduced in Mac OS 10.3 allowing developers to create incredibly complex applications in very few lines of code and, as a result, eliminate many bugs from their software that would normally arise from the sheer mass of code a developer would normally have to write. Whilst learning Cocoa, bindings aren’t a necessary thing to learn about and many budding developers will skip over bindings…

"Intro to Cocoa Bindings (As well as Key Value Coding)"

Passing Arguments By Address In C++

For reference, I shall now refer to pass by address as PSA Let’s just get something out-of-the-way. Passing a parameter by address involves using pointers. Yes, those horrible little things that you hated/hate whilst you learnt/are learning C, C++. The idea of pointers is hard to understand and the most common thing novices will say is “Why learn pointers?” Well, this is one of those reasons to learn them. PBA relies completely on pointers and…

"Passing Arguments By Address In C++"

PostgreSQL ORM

PostgreSQL-ORM is an Object Relational Mapper (ORM) that complements Simple. It knows how to map high-level operations to PostgreSQL flavored SQL for Haskell types that are instances of the Model type-class, as well as perform join operations on associations between Model instances. Declaration Creating a Model in Haskell is easy. We simply declare a datatype using record syntax, include a field of type DBKey to hold the primary key and let Haskell Generics do the rest:…

"PostgreSQL ORM"

Getting Started Tutorial: Simple Basic Web Application

This getting started tutorial will get you up and running with a basic web application. At the end you will know how install Simple how to create a Simple application from scratch the structure of a Simple application how to add persistence with PostgreSQL. Guide Assumptions This guide assumes you have a working version of the GHC Haskell compiler, the cabal package manager and an up-to-date version of the PostgreSQL database. The best way to…

"Getting Started Tutorial: Simple Basic Web Application"

Simple Templates

Simple comes with support for the embedded templating language defined in the package simple-templates. Templates let you embed dynamic content in HTML, JSON or any other text format you return in your responses. Using with a Simple app Adding template support in your app is as easy as declaring an instance ofHasTemplates for your app settings:

HasTemplates has default definitions for all of its methods. However, in most cases you’ll probably want to override…

"Simple Templates"

The smpl Command-line Utility

Simple ships with a command-line utility, smpl, that helps bootstrap applications as well as run then in development mode. Synopsis

Global Options

Creating an application

Creates a new Simple application in the directory app_name. The Haskell module for the new application is the CamelCase derivation of app_name. For example, an app with the name test_app would be created with the module nameTestApp. By default, only minimal functionality is included in generated apps.…

"The smpl Command-line Utility"

How to Make A USB Drive Faster

Do you feel that your USB drive is slow in reading or writing data? Then this post is for you. Hello Readers, today I will be guiding you to make your USB drive work noticeable faster than ever before. However, this technique will work only for windows user. Misconception The common misconception among users is that USB drive/ Pen Drive works slow due to the large amount of data stored in it. But that is…

"How to Make A USB Drive Faster"

How to Get a Pikachu as your Starter in Pokémon GO

Pokémon Go is the latest hype in the video game industry. Pokémon fever is again at it’s peak. Everyone is hunting for their favorite pokémons to become an ultimate pokémon master. If you are also going to start playing Pokémon GO, then first read this. After finalizing your profile in Pokémon GO, the next step is to choose a pokémon to start your journey as a pokémon catcher. Originally, Pokémon GO offers you three choices for…

"How to Get a Pikachu as your Starter in Pokémon GO"

How to Hide Audio, Video, Image Media Files from Appearing in Android Media Players

Android devices come with some built-in apps like Music Player, Video Player and a Gallery to access your media files. Also, there are tons of apps like these on Play Store. But there is a very annoying problem with all of them. They will scan the phone’s storage and will include all the supported files. Thereby mixing up your media as well as non-media files. For e.g. in Music Player unwanted files like WhatsApp audio messages,…

"How to Hide Audio, Video, Image Media Files from Appearing in Android Media Players"

What is a Kernel? – Explained

Hello, readers. After spending some time around Android or Linux forums or discussions, you must have come across the term “Kernel”. A kernel is not a unique part of Android or Linux OS but it is a very important part of every operating system including Windows, Mac OS, iOS, Blackberry’s QNX, Symbian, etc. Most of the people even some programmers/developers misunderstands kernel and operating system to be one and the same thing. So, What is a…

"What is a Kernel? – Explained"

How to Hack WhatsApp Account? (Easiest Way)

Today we will discuss 3 most easy methods on how to hack Whatsapp account. Maybe you are interested in reading the chats of your friends/relatives or someone else.  Well it is super easy even if you don’t have any technical background. Everybody knows that WhatsApp is end to end encrypted and there is no serious loophole, vulnerability and any security bug in WhatsApp. But due to WhatsApp account setup mechanism, we can use WhatsApp on more…

"How to Hack WhatsApp Account? (Easiest Way)"

Creating an Online Server for ANY Game

We’ve all played online before. Whether it be a PC, console, or handheld game. And you’ve always wanted to be able to play with your friends, and them only. Well, luckily, with the power of a tool called LogMeIn Hamachi, you can do that. For any game. Anytime. Brief introduction LogMeIn Hamachi, in short, is free software developed by LogMeIn which allows you to utilize its servers to create your own private, safe networks where…

"Creating an Online Server for ANY Game"

How to Install Shaders for Minecraft

Minecraft looks bland. I’ll say it right there. After playing for hours looking at a simple color scheme with no real shadows, no real clouds, or any bit of realistic volume in the atmosphere – I understand your pain. Luckily, there’s a fix! It’s a mod called Shaders, and it completely transforms your game to look amazing – that is, if you can run it. Not all graphics cards can play with shaders, and every…

"How to Install Shaders for Minecraft"

Check Transaction Log and Torn Writes by Help of ESEUTIL

MS Exchange Server, the mail server application, maintains the record of actions executed by the database software in transaction log files. Transaction files help in ensuring the atomicity and durability of the database. When a database shuts down abnormally, a check is done in the transaction log files to see for pending or unexecuted database queries. If there is any pending query it is executed again; partially committed queries are aborted. In some circumstances, the…

"Check Transaction Log and Torn Writes by Help of ESEUTIL"

Exchange Database Corruption Issue in Microsoft Exchange Server

Handling corruption in an Exchange server mailbox database is the worst nightmare for any Exchange administrator. In the event of Exchange database corruption, the Exchange services fail to start and all the business comes to a standstill. In such circumstances, the first step should be to identify the corrupt file. If the pub.edb file is corrupt, all data present in the public folders on the Exchange Server would become inaccessible. These folders are often replicated…

"Exchange Database Corruption Issue in Microsoft Exchange Server"

How to Fix Inconsistency Issue in Exchange Database Files

Corruption of Exchange Server database directly affects the work of the organization. Whole communication channel inside and outside the organization cannot be carried out smoothly. In order to solve the above problem, it becomes compulsory to repair the corrupt Exchange Server database. Repair can be carried out with the help of inbuilt methods. But, sometimes inbuilt methods fail when the level of corruption is quite high. Discussed below is an error message that appears on the…

"How to Fix Inconsistency Issue in Exchange Database Files"

Reliable Software to Repair Corrupt Exchange BKF File and Recover Precious Data

If the data is important, it has always been advised to take its backup so that if by chance you lost the data, still you can manage to restore that back. But, without any backup copy, there are chances that you may not get back 100% data. As Microsoft Exchange Server stores all the business critical mail transactions of your entire organization, it is important to keep backup of the mailboxes, using NTBackup utility. These…

"Reliable Software to Repair Corrupt Exchange BKF File and Recover Precious Data"

Visual Studio and the Entity Framework Diagram – Scaffolding Progress

Been a hectic first two weeks on the job! Seven days in, we have agreement on our first set of entities – and have seeded it with data and some sprocs to generate manufacturing work orders and assembly history. Now comes the fun part – the UI! Big challenge here – we are under extreme pressure to deliver in a short time frame a fairly smooth and intuitive UI. Since I work on a manufacturing…

"Visual Studio and the Entity Framework Diagram – Scaffolding Progress"

Installing a Windows Server 2012 Virtual Machine Windows 8 VMware Workstation

Here today we are looking to install Windows Server 2012 as virtual machine in VMware workstation I have a Windows 8 machine that’s great for browsing. Unfortunately, for anything serious development-related – not so much. (There’s that annoying lack of Local Users and Groups, for example, which crippled my BT2013 install.) First make sure you have Oracle’s VirtualBox set up. This is really quite painless and a very light install (as distrustful as I am of…

"Installing a Windows Server 2012 Virtual Machine Windows 8 VMware Workstation"

Born to Becoming A Great Programmer

Had someone recently ask me about programming and whether it would make a good career for her. I took a few minutes and put down my thoughts. I think the following are good thoughts for people interested in building a career in programming – be in the Microsoft stack or other areas:   Build your own identity and get social: I do think you have to build your own brand as a developer separate from…

"Born to Becoming A Great Programmer"

Windows Performance Toolkit with Windows Vista , 7 , or 8

Easily half of the following is stolen wholesale with mad props from this video –50 Performance Tricks to make your HTML5 Application Sites Faster. We’re going to highlight the Windows Performance Toolkit and how it can help us quantify and isolate performance bottlenecks with our websites. (Most of the following would apply to Windows Store apps, Azure sites, and MVC/ASP websites.) And this blog was excellent as a step by step walkthrough. The presenter, Jatinder Mann,…

"Windows Performance Toolkit with Windows Vista , 7 , or 8"

ASP.NET Ajax Control Toolkit

I’m embarrassed to say, I hadn’t visited the AJAX control toolkit suite for a while… with the advent of MVC and the abolition of Postbacks/session state (or so I thought), I was putting all that stuff in my rear view mirror. But, suffice to say, there are still times when you’re going to be using WebForms. So, here’s some of my favorite controls from this suite – and why: Accordion – panels collapse/expand. Animation –…

"ASP.NET Ajax Control Toolkit"

Low Virtual Memory? Get It Fixed

Your system is low on virtual memory! Appearance of this message on your computer could be frustrating, but that doesn’t mean that your computer is in a danger zone. It is just that the system is low on physical memory, to carry out any process.   You might wonder that there should be any problem, when virtual memory is present. What if, the virtual memory is also running on low memory? Your system will not…

"Low Virtual Memory? Get It Fixed"

Embed Your Powerpoint Presentation into Website or Blog

With the launch of Microsoft’s Office 365 (Complete Office in the Cloud) and Skydrive, it has become extremely easy to embed your Powerpoint or excel document in your website or blog. I recently came across this feature of Skydrive and figured it out to be childs play to embed my document in webpage or blog. You can have a look the below presentation to see gow to go about if you want to embed powerpoint into…

"Embed Your Powerpoint Presentation into Website or Blog"

Merging tables with “Union” and “Union All”

I’m going to write about SQL Unions. This is a really handy function that lets you join 2 or more tables into one big “uber-table”. The syntax is quite simple. It’s either Union or Union All.  You would use these functions if you needed to join two (or more) tables that were the same structure but in completely separate databases. This is common in companies split into several businesses. The accounts or business package to…

"Merging tables with “Union” and “Union All”"

The Basic Principles of Select Queries

I am writing this update from outdoors, enjoying a glorious spring day on a beautiful terrace in Rome. This is about the basic principles of select queries. Incidentally I will be using the “AdventureWorks” database, which is a demonstration database provided by Microsoft. You can download the install file from here Probably the largest portion of my future updates will be using functions in select queries, so it’s worth covering that now and getting this…

"The Basic Principles of Select Queries"

Gundam RX-78-2 Texturing

Part 1 Katana is one type of Japanese sword. This tutorial will explain to you how to model a katana using 3dsmax. This tutorial is divided into 4 pages. The first page explains how to create a tsuba (guard), a piece of metal separate blade and grip. The second page explains how to create the blade. The third page is how to model handgrip. The last, you will learn how to texture this sword. {mosimage}After…

"Gundam RX-78-2 Texturing"

Managing Active Directory – PowerShell Tutorial

Any system administration task in that is regularly repeated should be automated! With the management of Active Directory (AD), that is a surprisingly high number of tasks. With PowerShell’s ability to easily work with AD, these tasks can made easier or completely automated! So what is a candidate for automation? In short, any task that you regularly do within Powershell Quest Active Directory Users and Computer (ADUC) or Active Directory Administrative Center (ADAC) should be automated! There…

"Managing Active Directory – PowerShell Tutorial"

Header row does not repeat on subsequent pages

If you want the header row of a table to repeat in a Reporting Services 2008 report you might find that setting the “Repeat header rows on each page” setting (shown in the below screenshot) does not produce the desired results. This normally happens when you have a table with no groupings, which would just contain the details group and a header row as in the screenshot below. In order to get the header row…

"Header row does not repeat on subsequent pages"

Clear The Active Worksheet With a Click of a Button

Many times when we are working on a modelling problem using Microsoft Excel, we might be required to clear the sheet contents. For example, you are just starting out to solve a problem and need to clear the cells without deleting the whole sheet. Personally, I don’t prefer wasting time on taking my hands to the mouse and then press clear contents. A better option is to write use some already written VBA macro which…

"Clear The Active Worksheet With a Click of a Button"

How to Generate Random Phone Numbers in Excel

One of the best things that Excel does is generating random numbers and repetition of formulas. All you have to do is to add a formula in a cell and replicate that formula in other cells. I am sure that most of the project managers love this tool because of the power of formulas and easiness of writing custom code for their requirements. This post can be useful for people related to telecom marketing and…

"How to Generate Random Phone Numbers in Excel"

How To Generate Pascal Triangle Variant Using VBA

In this tutorial, I will show a similar kind of trick to generate a variant of Pascal Triangle which seems to be a mix of forward and backward triangles. I am going to show how the output will look like. VBA CODE

PITFALLS OF THIS CODE This code works perfectly for all numbers which are odd.For example, when you click the Generate Triangle button in the excel workbook provided with this tutorial, you should…

"How To Generate Pascal Triangle Variant Using VBA"

Analytics Using MATLAB and Octave-Free Learning Series– Introduction & Basic Functions

MATLAB stands for MATrix LABoratory. It was designed to make matrix manipulation easy for scientific computations.According to Mathworks website,MATLAB is the high level interactive programming environment used by Millions of scientists, engineers, analytics professionals worldwide. Learning Octave & MATLAB are the best available tools for prototyping the algorithms of machine learning. This is what widely followed in Silicon valley as well. A lot of companies which work on artificial intelligence or machine learning algorithms first try…

"Analytics Using MATLAB and Octave-Free Learning Series– Introduction & Basic Functions"

How to Find Sum of all Primes below a Number

In this post I have written a program in Python which tries to find out the sum of all prime numbers below a number. I have implemented the solution in Python. This problem was originally posted on Project Euler and it asked to find the sum of all prime numbers below two Million. Seems exciting, right? Recently I have been experimenting with various problems related to prime numbers and trying to implement in Python. I…

"How to Find Sum of all Primes below a Number"

How to Enable Two Factor Authentication on Facebook in India

Password is not enough sometimes for growing technology, when we try to resolve a security threat then many other threats arise with the rising technologies. This increases the risks of our precious data. Most of the top websites like Gmail, Facebook, Twitter, LinkedIn etc  are always being the top target for hackers around the globe. There are many deadly ways like Phishing , spear phishing, social engineering , Malware injection etc by which malicious people…

"How to Enable Two Factor Authentication on Facebook in India"

9 Best Programming Languages To Learn

Have you ever wondered how the apps you play in your smartphones work and how are they created? Ever thought how people create such amazing websites. I am sure that you must have given a thought about it at least once. Well the credit of all such applications goes to programming languages. But one gets confused on how to get started with these applications. Well if you are also are confused then this is the…

"9 Best Programming Languages To Learn"

How To Recover Memory Card Password

Memory card stores all our cellphone data. We sometimes lock it with the password to maintain our privacy. In this busy life we all have several accounts which have password be it our bank a/c, e-mail id etc. Although we are supposed to remember many passwords, the chances are that we might forget our password. Here I have mentioned a few ways by which you can recover your memory card password. How to recover memory card password through…

"How To Recover Memory Card Password"

How to Make the Most of Wikipedia

Wikipedia is one of the biggest sources of knowledge online.  If you want to know about any place, country, celebrity etc. in full details then you can check out Wikipedia because you already probably know know you will not get disappointed from a lack of information there. Wikipedia is generally a big library where you can grab lots of valuable information. So today, I am going to share some of the best hacks of Wikipedia…

"How to Make the Most of Wikipedia"

13 Boom Beach Tricks, Tips & Strategies

Boom Beach is a fun RTS style game for the iPhone and iPad that is from the same company that makes the popular Clash of Clans game. This is not the same type of strategy game as command and conquer, but it is a fun fix for mobile gamers that want to control an army in island based warfare. Boom Beach takes place in an island setting with in-game currency like gems, gold and diamonds…

"13 Boom Beach Tricks, Tips & Strategies"

Guide to Log Into Multiple Gmail Accounts in Same Browser

In our last article, I have guided you about How to Launch Multiple Skype Accounts Simultaneously. Now, it’s time to guide the same for Gmail Accounts. 80% of people all over the world have more than 2 Gmail accounts for their commercial and non-commercial use and would like to log into multiple gmail accounts in the same browser. I am one of those as I have 2 Gmail accounts for my personal and business work. Often…

"Guide to Log Into Multiple Gmail Accounts in Same Browser"

Food Delivery System Project in C++

Structure of the Problem Requirements In this project we will implement the code of food delivery system in C++. The project consist of three modules , admin module, customer service module and user module. The admin module deal with Item’s prices, goods stock, food menu , and membership functions.  The Customer module deal with customer records functions and the user module deal with customers. In User module customer can signup sign-in and sign out. Here…

"Food Delivery System Project in C++"

5 Signs of Great Programmers

Great Programmers are also human like us but they have some special habits and rules in their life and the strictly follow them. Confidence and persistence make you great and the great programmers know it very well. Indeed programming is a thing which need your lots of concentration and energy but if you have confidence, sequence and passion to do it then definitely you will enjoy it a lot . According to my opinion if…

"5 Signs of Great Programmers"

Codewars Review for Gaining Code Experience

Since I had last posted about Codewars I have been spending more time trying out the challenges, and I realize now how valuable it is a tool to develop your coding skills. The last challenge I did required for me to create a function that would evaluate value x and return certain words based on whether the number is divisible by 3, 5, 3 and 5, or neither. I knew how to evaluate whether a…

"Codewars Review for Gaining Code Experience"

Star Wars’ hour of Javascript

I find a lot of coding learning devices that are mostly geared towards children. I am critical for most of these kinds of apps or tools because it does little for anyone that isn’t more than just a beginner. Although they are quite good at teaching programming logic, they are not going to help you learn how to write code itself. For myself and others it is most helpful to be physically typing code to…

"Star Wars’ hour of Javascript"

Writing, building, and running your C++ on a Mac

The very first wall that I had hit when I was looking for a C++ tutorial was that I struggled finding one that was OS X friendly. Most of the tutorials that I had found started out with installing software onto your PC and then explaining it based on how that program ran. I only have my iMac and Macbook right now (although the Macbook can run Ubuntu as well!), so finding something that would…

"Writing, building, and running your C++ on a Mac"

Recommending a C++ beginner’s tutorial

I struggled for a short while at first when I was trying to find a C++ tutorial that I liked, but I did and I’ve been using it for the past few days! This tutorial is at BeginnersCPP.com and it holds a pretty extensive collection of video tutorials that are suitable for beginners to the C++ language. I’m not sure if I would say that they would be right for beginners to coding in general,…

"Recommending a C++ beginner’s tutorial"

Programming in C++

I’ve made it far enough in my the BeginnersCPP.com tutorials that I was able to tackle the first of their code challenges! The goal was to write a program that could determine whether or not a number was a prime number. I did have to look up how to determine whether there would be remainders when dividing, but it turns out that was very similar to Python! This is what I came up with:

"Programming in C++"

Learn Python the Hard Way Course Review: Struggling with lists and arrays

I haven’t had a chance to post quite as frequently lately, mostly due to work or social obligations. Otherwise I have been pushing my way through the Learn Python the Hard Way course, but I’ve found myself struggling with the code in a way that I wasn’t before. I’m up to the point where we are discussing lists and arrays, and it has just been very technical and a little difficult to grasp. I’m determined…

"Learn Python the Hard Way Course Review: Struggling with lists and arrays"

Lrn app for on-the-go Review

I might be on the road this Thanksgiving but I won’t let that be an excuse to not continue to learn something new. I’ve had the Lrn app downloaded to my iPhone for a while now and decided to use this trip as a chance to try it out.   The app has options to learn a number of languages: HTML, CSS, JavaScript, Python, and Ruby. After you pick a language the lessons are separated into…

"Lrn app for on-the-go Review"

FreeCodeCamp.com Review

Now that I’m back home after a few days away, I’m back to trying and reporting on something new. After seeing a tweet about it recently I became curious about FreeCodeCamp.com. I’ve spent about an hour on there already going through their HTML 5 and CSS tutorial and liking it a lot so far. The website is made up of a large collection of short coding exercises that start with the basics and become more…

"FreeCodeCamp.com Review"

Differences between Depth-First-Search and Breadth-First Search

1. In General: The key difference between depth first search and breadth first search is the the order of visiting each nodes in a graph. In breadth first search, we start at a node, called root, visiting its all immediate neighbors before moving to another node. After moving to another node, we also trying ti discover all of its neighbors and so on. In other words, we are trying to go as WIDE as possible.…

"Differences between Depth-First-Search and Breadth-First Search"

Cache Long in Java

1. Compare two Java Strings In Java, if you want to compare two String, you know you should use equals instead of ==. To be more specific, here is the normal code to compare two String:

2. Compare two Long Long class is a wrappers of the primitive type long. The Long class contains a field long which is the value of a Long object and provides user with method to convert a Long…

"Cache Long in Java"

Make HTTP request using Java and Curl

Last week I was asked to make some tools that talked to a Rails app. Let say you have a Rails app that has a scaffold name Product and resides on www.your_app.com . If you want to create a new Product, you go to www.your_app.com/products/new, fill in the form in there, including typing in some information product name, choosing a photo to upload and finally hit Create. A new Product will be created. Now how…

"Make HTTP request using Java and Curl"

Java Unsupported Major Minor version 51 ERROR

I remember getting this error while running some Java.

Because it is annoying, let’s take a look at this. What does this error mean? It turns out to be an issue of version incompatibility. First of all, if you don’t know, here is some background on how Java is run. 1. The Java source code (the .java file) is compiled. This step generates a .class file with the same prefix as the .java. In…

"Java Unsupported Major Minor version 51 ERROR"

Git Undo a Commit after pushing it to a remote repository

Git Undo Commit Yesterday I made a mistake by git pushing a bad commit to a remote repository. Without going into details of how bad that commit was (or how bad I was), I want to present the situation focusing on git and how it can be fixed. 1. What is that mistake aka what did I do wrong? Here is the situation. I have a remote repository name heroku I make git commit -m…

"Git Undo a Commit after pushing it to a remote repository"

Rails: Replace a hand made authentication system with Devise

Yesterday I decided to replace a hand made authentication system with Devise: 1. What was the situation: I had a Rails app used SQL database and already had a hand made authentication system with the scaffold User and all the helper methods, the routing configuration … I wanted to replace it with Devise in order to be able to use all the features provided by it. 2. What to do: First of all, I wanted…

"Rails: Replace a hand made authentication system with Devise"

Speed Up Your Slow Computer – Top 5 Ways

Do you have a Slow Computer? It is so frustrating when the processing speed of your computer is too slow. Your brain starts to blow up and you wish you could give a hard punch to the CPU/Monitor, but you are not able to do so. Whenever we have any important work on a slow computer and the processing speed has much to desire; we feel so irritated and rather go to the local Internet Cafe. But how long…

"Speed Up Your Slow Computer – Top 5 Ways"

How to Get Windows 7 Start Menu for Windows 8

Since Microsoft uploaded the Windows 8 download links this week, every user got a good chance to download it and burn a disc/save it to any external drives like hard disks, USB devices etc. And finally tried to the superior view of the Windows 8 by installing it on their systems. Here I will show you how to get the Windows 7 start menu for Windows 8. From FAQs it is to be noted that…

"How to Get Windows 7 Start Menu for Windows 8"

Windows 8 : How To Set Up Picture Password and PIN Logon

 Windows 8 have launched with great and superior features never seen before in any older version of Operating Systems (Windows 7, Windows XP, Windows Vista) like Picture Password Setup, PIN Logon password, Metro Style UI. Windows 8 looks and feels are likely to be matched with Tablets. Here we are going to show you how to set up Windows 8 picture password These features were never seen before in any PC Operating Systems. In Windows…

"Windows 8 : How To Set Up Picture Password and PIN Logon"

Ultimate Trick to Set Video to Live Wallpaper in Android Smartphone

Android apps are on the top of the world now days. Every day some new and superior app is developed and launched. Many tricks are unleashed everyday by IT professionals for PC and laptops. But Android smartphone tricks are rare and people love to tweak their smartphones. I am sharing something today for those who love to tweak their phones to set video to live wallpaper. Have you ever heard about a trick in which you can…

"Ultimate Trick to Set Video to Live Wallpaper in Android Smartphone"

How to Launch Multiple Skype Accounts Simultaneously

Most of the online Email Messengers like Gmail, Yahoo etc doesn’t have feature to allow multiple accounts from a single computer at one time. Same as in case of popular messenger >> Skype. Yes, Skype also doesn’t allow multiple Skype accounts from a single browser on PC. However everyone knows about Skype but let’s have a little intro for it before the trick. Skye was launched a long time ago as a messenger for both commercial and…

"How to Launch Multiple Skype Accounts Simultaneously"

Photoshop Shortcuts

This post is going to list all of the Photoshop shortcuts that I use on a regular basis. You can find these shortcuts in many places, but I figured, while you are here looking at other helpful lessons and product reviews, you might catch a couple of these and put them to use. Call me a nerd, but when I learn how to do something faster and more efficient in a program, especially when it’s…

"Photoshop Shortcuts"

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?"

Compare Best Java HTML Parser Library

Today we will take a review to compare the Best HTML Parser Library. HTML Parsers dwells on the area where there is no standard operating conditions. There is no standard protocol to interact with web other than plain HTTP(S) protocol. And the HTML on the web is not strictly following fullest structure of the HTML format. Web browsers are very adaptive to incorrect or inappropriate HTML format. This makes life difficult for anyone who wants…

"Compare Best Java HTML Parser Library"

How to setup FTP Server Ubuntu 14.04

How to Setup FTP Server Ubuntu 14.04 I was following a tutorial to set this up on an AWS server and kept getting the same error: “Server sent passive reply with unroutable address. Using server address instead. Failed to retrieve directory listing.” I learned that FTP uses not only port 21, but another which is configured in your vsftpd.conf file. Here’s how to setup FTP Server Ubuntu 14.04. Install VSFTPD sudo apt-get update sudo apt-get install…

"How to setup FTP Server Ubuntu 14.04"

How to add alias commands in Ubuntu

How to… Use aliases for commands in Ubuntu I sometimes get tired of typing long commands over and over (for example, to install packages from apt-get) so I looked up how to create aliases (shortcut commands).  If you could type something like “gimme” instead of “sudo apt-get install” it can make life so much sweeter!  This was done using Ubuntu 14.04. Open .bashrc file for edit sudo vi ~/etc/.bashrc Add the following line: alias yourCommand=’oldCommand’ Eg.…

"How to add alias commands in Ubuntu"

How to forward ports using Apache

How to… Use Apache to forward port 80 to another application So I was trying to install Atlassian JIRA for project management and wanted to be able to access it with jira.example.com instead of jira.example.com:8080.  Typical users aren’t used to having to type port numbers in the browser bar, so here is a way to forward the default HTTP port (80) to another port (8080, in this case).  This was done on Ubuntu 14.04. Install…

"How to forward ports using Apache"

Administering Multi Tenent MySQL Installations

Problem When we have many MySQL installation in same hardware and many MySQL instances running from different base directories,Administration can get into messy ebecause we need to remember each instance’s base directory, port, socket, data directory, error log file etc. ofcource DBA can maintain this information in a spreadsheet and copy / paste. it works if you have only few databases to manage. and things can get even messy if you are not regularly updating…

"Administering Multi Tenent MySQL Installations"

How to Repair Linux Boot Loader after Windows Installation

Gone are those days where dual booting required required understanding of chain loaders. even today XOSL worth mentioning. it got lots of features – i would say most feature rich boot loader i ever seen. nowadays GRUB2 is decent enough to dual boot Linux and windows and very intuitive enough for a layman. Oh Windows Overwrites MBR and Linux is gone! Windows versions i ever used, never given respect to other operating system residing in…

"How to Repair Linux Boot Loader after Windows Installation"

Python and MySQL : Setup without root privilege and without installing rpms

This article deals with How to setup Python-Mysql connectivity using MySQLdb libaray without root privilege and without installing any rpms. but extracting binary files from rpm to any custom location. This may be helpful if you are not having root privilege or couldn’t get RPMs installed because of some other reasons. Important Points There are important points which we need to remember for better understanding. 1. RPM is a compressed zip file which contains binary…

"Python and MySQL : Setup without root privilege and without installing rpms"

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"

How to Automatically Delete your Browsing History on Android

One of the most popular used feature on Android is web browsing, and most of the people choose to use Chrome of Firefox browsers for a better browsing experience. But in some cases users will worry about their privacy, the data which they browsed can be saved as history, cookies and cache. Although there is an option to clear browsing data or wiping cookies etc. but in most of the cases users will forget to…

"How to Automatically Delete your Browsing History on Android"

Google Adwords Extensions for Small / Local Businesses.

In the online advertising world, digital real estate is essential. In the paid media field Boardwalk and Park Place are the top 3 ad positions in Google Search. While it’s great to get a spot in the top 3, it’s even more important to hold as much of that real-estate as possible. One of the best ways to do that is through Google Ad Extensions. Small and local businesses have a definite benefit from these…

"Google Adwords Extensions for Small / Local Businesses."

Sololearn for On the Go Code Practice Review

Like some others, learning how to code is something that I’m doing while also working full time doing something else. I like to be able to be practicing at any opportunity that I get, but for a long time I wasn’t really able to find what I had wanted in a mobile learning platform. A lot of apps about learning to program and learning programming logic generally are geared towards children, and I would like…

"Sololearn for On the Go Code Practice Review"

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"

Php Online Tutorial for Beginners

This post will cover the basics of PHP in this PHP Online Tutorial for Beginners and I will go into great detail about everything that I talk about. Let’s start out by finding out… What Is PHP ? PHP is short for PHP: Hypertext Preprocessor. This is called a recursive acronym. (Wikipedia) PHP is a very powerful programming language used all over the world. It can be used to create dynamic web pages. What is a…

"Php Online Tutorial for Beginners"

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"

How To Use JSoup

“jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods” – JSoup.org Like in the description above provided by JSoup’s website, the JSoup library serves as a great tool when you want to extract and manipulate HTML data on a webpage. This blog post will go into depth about the basics of the API, as well as…

"How To Use JSoup"

Change Default Leopard Kava JDK 1.5 to 1.6 – Easy Way

The first go around with this I had a hell of a time. Most posts said to change default jdk in java preference app but that didn’t work and changing symbilic links in java home showed correct 1.6 version when running “java -version” in terminal but my java app (in this case the wonderful open source coldfsuion engine Railo) was still reporting 1.5 jdk. Anyways…. I’ll cut to it and here’s the steps. Open up …

"Change Default Leopard Kava JDK 1.5 to 1.6 – Easy Way"

Coldfusion and Coda – Adding contextual menu scripts

I love Coda, while not a heavy duty coding app with all the “serious” tools, it is just right.. it just is. But one itsy bitsy teeny weenie thing has always driven me nuts and that is I always want too click a block of code and right-click and wrap it with cf comments, same thing with cssedit UGGGGGGGGGG it drives me nuts!!!!!! Yesterday I downloaded a few of the Coda scripts that are out…

"Coldfusion and Coda – Adding contextual menu scripts"

JQuery – Getting a Latitude & Longitude from address

I had a client realize today that their dealer search by radius function wasn’t working anymore so I dug in to find out why. The cause turns out to be the service we were using to geocode was no longer functioning which is rational since it was sevceral years old and before yahoo or google was offering geocoding. Basically they need the dealers address and latitude and longitude to be added to the database so…

"JQuery – Getting a Latitude & Longitude from address"

Recover deleted files with Ubuntu 10.04 Desktop

I’ve accidentally removed an important file from my HDD; this is not so awful, but it is very annoying to search in my USB key the information I need to remake this file. So, for this kind of troubles, you can try a recovery tool! This kind of magic software tries to recover the deleted files. Obviously, don’t expect to recover the file in minutes… you need some time, it depends on the size of…

"Recover deleted files with Ubuntu 10.04 Desktop"

Metaprogramming as a tool for refactoring Ruby on Rails controllers

Once you learn about metaprogramming in Ruby on rails you probably want to use it all the time. Once I learned about it, I went looking for places in my code to use it. Here is a simple example of a controller that is in need of some love. This is a controller for a blog or a news site. A few methods have been added which get the top, latest and trending articles respectively.…

"Metaprogramming as a tool for refactoring Ruby on Rails controllers"

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"

Source Code Control Advantages and Uses

In this post, I’m going to cover the reasons why you should use source control, its advantages, and why if you’re using source control that you should consider Git over other options available out there.  I’m not going to cover how you actually use Git or how to set it up as this is a whole separate blog on its own, but the first step in source control is understanding what it’s for and how…

"Source Code Control Advantages and Uses"

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"

Cakephp Plugin Search cakeDC Usage

I’m using the 2.0 version of cakephp search plugins by cakeDC (with cakephp 2.x) here . I’m need search in many models but thats models aren’t related. So I created a new model (search) and a controller (searches) . I got this error “Notice (8): Indirect modification of overloaded property SearchesController::$paginate has no effect [APP/Controller/SearchesController.php, line 17]” Model:

Controller:

The view is the same of any index make with bake Any idea how…

"Cakephp Plugin Search cakeDC Usage"

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"

What does Alfresco mean by Social Content Management?

For those who follow/use Alfresco content management platform, it is no secret that the product team is heavily working around this new phrase (social content management) and they are planning to release features starting with version 3.4. When I first heard the word social content management –in the same sentence as alfresco–, I let the intuitive side of my brain to understand what it might mean. What does social content management mean or rather what…

"What does Alfresco mean by Social Content Management?"

Maven plugin to force parent POM upgrades

It is no news that having a corporate POM for a group of projects is a maven best practice for standardization purposes and avoiding repetition. And just like any other project a parent POM is also a living project and you need to update it from time to time. When the parent POM is updated, you also need to make the inheriting projects receive this update. There are two ways to do this; We can…

"Maven plugin to force parent POM upgrades"

How to upload your artifacts to Maven Central?

I just applied for access to upload my maven plugin to Maven Central Repository and I would like to outline the steps I have followed. There is already a couple of HowTo pages on the subject but mine will be much shorter. You just have to follow the steps given below in order to have your artifact on the Maven Central. First of all you need to have a PGP (Pretty Good Privacy) signature known…

"How to upload your artifacts to Maven Central?"

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"

Changing the DHCP IP Address Range for VMware Player

VMware Workstation includes a utility called virtual network editor which can be used manage the virtual networks. VMware Player also had this utility but they decided to remove it and not by accident! It is an important utility since virtual machines will use NAT to automatically assign a virtual IP address that may or may not work for your network, it might collide with your network’s subnet. For the latest VMware Player the default range…

"Changing the DHCP IP Address Range for VMware Player"

Ruby one-liner to retrieve user groups from Atlassian Crowd

As you may guess from the title that my previous method did not work out for us –not that it is not good, actually it is much cleaner than this solution–. Apache authentication module mod_crowd does not work with SUSE Linux Enterprise Server 11 and it is our infra team’s choice of flavor for production servers 🙂 What I did instead was; I used mod_ldap_auth to do the authentication And made gitolite call a ruby…

"Ruby one-liner to retrieve user groups from Atlassian Crowd"

Integrating Gitolite with Atlassian Crowd

There is no argument that git is currently the best SCM tool. Now I can not believe how come we were using CVS,SVN back then and I know that there is no way for me to use any SCM other than git. While ago we decided to migrate all our repositories to git and while doing that we wanted to revisit the integrations between the other development tools that we are using. We are currenlty…

"Integrating Gitolite with Atlassian Crowd"

Script for changing GNOME proxy settings

Most of us are working in corporate environments and corporate environments do love proxies. And I hate them; I hate setting them every morning I hate un-setting them every evening I am assuming that you also use the same laptop at work and at home. Since I am so sick of changing proxy settings every time, I created the following bash script to set and unset proxy settings.

You can run it as follows.…

"Script for changing GNOME proxy settings"

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?"

Bootstraping Data with Alfresco

When you work with Alfresco, soon you realize that there lot’s of data/configuration that has to be done to run Alfresco properly. In the end developing with Alfresco means extending it; Implementing a custom content model Setting up a repository structure Applying custom rules on spaces Adding users/groups and configuring access rights … It means every time you install a new Alfresco instance, you also have to setup these prerequisites. However there is a much…

"Bootstraping Data with 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"

Surefire is not picking up JUnit 4/TestNG 5 tests

If you are using any of these artifacts from Spring Enterprise Bundle repository –just like I did–, you can face this problem. Since the artifact names of these artifacts are different than usual, it is not possible for surefire to detect. Solution is easy, just configure surefire as follows.

You can use mvn -X to run maven in debug mode, it is very useful, this is how I figured out the problem.

"Surefire is not picking up JUnit 4/TestNG 5 tests"

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"

Automatic deployment for Tomcat Applications

I like continuous deployment just like continuous integration. However it can be pain if you have too many environments to deploy to. In the project that I am currently involved in, we have 3 environments for which continuous deployment makes sense. Deployment frequency is different, deployment policies are different but I am sure it is possible to automatize the deployment process up to some extend. Just for that reason (and also because I am bored…

"Automatic deployment for Tomcat Applications"

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"

Testing Alfresco Webscripts

Waaah, too boring to test is too boring to write. I just wanted to start with this quote from Ray Ryan in Architecting GWT applications for production at Google session at Google I/O 2010. This really explains how I feel about extending Alfresco. Actually it is worse than that, writing tests for Alfresco extensions is painful rather than boring. While developing extensions for Alfresco, I often find writing even the simple unit tests unnecessarily difficult.…

"Testing Alfresco Webscripts"

Alternatives to Alfresco Share for Building Generic Forms

Alfresco introduced Share, it’s own collaboration portal based on Spring Surf technology and they have a pretty good idea to reduce the coding effort for building forms for your custom data types. It is called Forms Engine. Here we will point out some alternatives to Alfresco Share. The following diagram pretty much explains the whole idea. You have services on Alfresco side that can return metadata about a particular node for form creation, persist the…

"Alternatives to Alfresco Share for Building Generic Forms"

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"

Complete Cheatsheet of Mysql

List of all important functions of mysql which are used frequently Official Website Download MySQL Cheat Sheet [.pdf] MySQL Database Quick Reference [.pdf] Data Types Types CHAR String (0 – 255) VARCHAR String (0 – 255) TINYTEXT String (0 – 255) TEXT String (0 – 65535) BLOB String (0 – 65535) MEDIUMTEXT String (0 – 16777215) MEDIUMBLOB String (0 – 16777215) LONGTEXT String (0 – 429496-7295) LONGBLOB String (0 – 429496-7295) TINYINT x Integer (-128…

"Complete Cheatsheet of Mysql"

PHP Basics Introduction

PHP stands for Hypertext Preprocessor, although some people also call it Personnel Home Page. This was the full form given to it when there was no full form given to it. Later on a meaningfull full form is given to PHP  ie Hypertext Preprocessor. PHP is Server Side language . We need a Server to run the PHP code/files.In PHP’s case we use apache as a server.You can use the whole stack of (mysql+php+apache) by…

"PHP Basics Introduction"

How to Clear Facebook Cache URL

Please use the url to clear the cache, if you want to cache the url https://developers.facebook.com/tools/debug/og/object/ There is an Facebook API which uses CURL to clear cache.

"How to Clear Facebook Cache URL"

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 install Yakuake on Cenros 6.3

I’ve started to use Centos server and tried to find good terminal emulator. Previously I’ve used guake for Ubuntu and some port of this emulator for Mac OS X. I’ve started to find repository of yakuake and found that there are no 🙁, So, I’ve prepared short instruction how to compile Yakuake for Centos 6.3. Firstly you have to install kde dependencies, run your gnome terminal and execute next commands: su – go to root…

"How to install Yakuake on Cenros 6.3"

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"

Reverse Singly Linked List using Recursion implementation

Recently I’ve read IT topic about interview questions and was surprised, Programmers discussed about “hard” interview question “Reversing of Linked List”. Judging to that topic the task was hard for most candidates and I decided to write short note about Reversing Linked List. Firstly this task was to Reverse Singly Linked List using recursion; Secondly time for creating algorithm was about 5 mins; So, I’ve used Java for realization but you can write the same…

"Reverse Singly Linked List using Recursion implementation"

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 {Word Break II}

Today we will work on hard task Word Break II. Why this task is hard? I can say, here, during resolving this problem, you will and you should use a few techniques. First one traversing method called DFS (or BFS), second is Dynamic programming, third is some combining and tricks 🙂 to pass tests on leetcode. OK, try to read task description : Given a string s and a dictionary of words dict, add spaces in s…

"Algorithm {Word Break II}"

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}"

jQuery Form Validation in ASP.net Pt 2: The ValidatorUpdateDisplay Function

In this two part series of jQuery Form Validation in ASP net I’ll show you how to override the built-in ASP.net validation functions with your own jQuery-ized versions. Turn your boring ASP.net form validation controls into intuitive, user-friendly, and just all around snazzy feature of your ASP.net web forms. You’ll make your users want to throw validation errors! In Part 1 I showed how to override the built-in javascript and highlight an input control if it is…

"jQuery Form Validation in ASP.net Pt 2: The ValidatorUpdateDisplay Function"

ASP.net Form Validation with jQuery Part 1: The ValidatorUpdateDisplay Function

I use the built-in ASP.net validation controls all the time and they work quite nicely. However, they’re boring. Sure, some CSS formatting could be applied to make it look a little nicer and images could be used for the validation errors, but they still only work a certain way. The ValidationSummary especially can be problematic when you have a lengthy form that requires scrolling. To make this as user-friendly as possible you more than likely…

"ASP.net Form Validation with jQuery Part 1: The ValidatorUpdateDisplay Function"

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: Send SMS messages from Emulator using Telnet

I’ve started to develop first Android application and will write some notes during development process. The first note is sending sms messages from terminal. So, There are a few steps to send messages from emulator using terminal: Start emulator (The emulator has to be started becaue you need to know port to connect). For starting emulator go to the Andriod SDK and AVD Manager->Virtual Devices->Start  Start telnet. Type in console window

Open telnet connection to…

"Android: Send SMS messages from Emulator using Telnet"

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"

Algorithms: Customization Binary Search

I had some interviews into big companies like Google, Amazon and so on, and there were tasks related to the algorithms. So, Here I’ll describe one of the tasks and publish code for this algorithm. Note, during interview you can chose algorithm by your self and time for implementation (runtime implementation) about 30 mins….. Predefined: There is dictionary of words with unspecified size, we just know that all words in dictionary are sorted (for example by alphabet). Also we have…

"Algorithms: Customization Binary Search"