SrcCodes
  • Home
  • Internet Of Things
  • Agile
  • Contributors
  • Contact
  • About
  • Home
  • Internet Of Things
  • Agile
  • Contributors
  • Contact
  • About
  • Search
Demo: Apache Log4j2 Vulnerability | CVE-2021-45046 | CVE-2021-44228 | CVE-2021-45105 | Mitigation Apache Log4j2

Demo: Apache Log4j2 Vulnerability | CVE-2021-45046 | CVE-2021-44228 | CVE-2021-45105 | Mitigation

Now, most Java developers are busy mitigating Apache Log4j2 Vulnerability (CVE-2021-44228 and CVE-2021-45046). Applications are literally on fire. Here, I have created a sample project using Spring Boot and Log4j2 to demonstrate (Video Demo) the vulnerability and possible remediation. Please take a

10 Dec 2021 · 5 min read
How to Install Windows Subsystem for Linux (WSL2) on Windows 10? Windows Subsystem for Linux

How to Install Windows Subsystem for Linux (WSL2) on Windows 10?

Windows Subsystem for Linux (WSL) is an awesome feature of Windows 10. No more VMware or Oracle VirtualBox is required to run Linux on Windows. WSL is faster and less resource consuming, zero or less configuration compared to any other traditional Virtual Machines (VM). Installation and setup of Lin

26 Aug 2021 · 10 min read
Scrum Master - A Leader who Serves Scrum Master

Scrum Master - A Leader who Serves

The launch of the 2020 version of the Scrum Guide reimagined the role of the Scrum Leader. Servant-leader a term that had become synonymous with the role of a Scrum Master was coined by Robert Greenleaf in his essay published in 1970. > A servant-leader focuses primarily on the growth and well-bei

16 Aug 2021 · 2 min read
How to change hostname on Ubuntu running on Windows WSL? WSL

How to change hostname on Ubuntu running on Windows WSL?

If you are running Ubuntu on Windows WSL (Windows Subsystem for Linux) and wondering how to change hostname permanently then follow all steps mentioned below. Once hostname is changed, if you get "unable to resolve host <hostname>: Name or service not known" then follow the step #4 for the fix. Vi

13 Jul 2021 · 3 min read
Scrum Guide - November 2020 version - Updates you can't miss Scrum

Scrum Guide - November 2020 version - Updates you can't miss

Ever since the November 2020 version was released, I had been curious about the what's and why's of the changes that were made to the July 2017 version. Whether we choose to drop the term "servant-leader" (to describe a Scrum Master) from our vocabulary is altogether a different (and contentious) co

2 May 2021 · 3 min read
Got My Scrum Certifications. What's Next? Scrum

Got My Scrum Certifications. What's Next?

Let me begin by congratulating you for securing the Scrum certification! But I hope you realize that a certification simply validates your awareness about the guiding concepts and theories. It is not a living proof of your actual ability to bring those thoughts to life. So, how do you build your

2 Apr 2021 · 2 min read
PSPO I Certification - Preparation Strategies and Tips Scrum

PSPO I Certification - Preparation Strategies and Tips

There are many reasons why one would want to become a Professional Scrum Product Owner. An IT professional working as a part of a Scrum Team, in the scope of a Business Analyst, might decide to transition to the role of a Product Manager/ Product Owner, while a person not from the industry might use

22 Mar 2021 · 7 min read
PSM I Certification - Preparation Strategies and Tips Scrum

PSM I Certification - Preparation Strategies and Tips

There are many reasons why one would want to become a Professional Scrum Master. An IT professional working as a part of a Scrum Team might decide to transition to the role of a Scrum Master, while a person not from an IT background might use this as a foothold to join the IT industry. Once you deci

14 Mar 2021 · 6 min read
Breach COMB List 3.2B - Mine got exposed. Check yours. COMB 3.2

Breach COMB List 3.2B - Mine got exposed. Check yours.

"No News is Good News". That is what I used to get from Identity Guard®. But yesterday, I got email & sms notification "Alert: Your Login Credentials Have Been Exposed Online". And partial password shared in that notification is actually matching with my credentials. So, mine got exposed. Check your

20 Feb 2021 · 4 min read
[SOLVED] How to Add Quick Properties in Techsmith Camtasia 2020 | Reusable Assets, Group & Template Camtasia

[SOLVED] How to Add Quick Properties in Techsmith Camtasia 2020 | Reusable Assets, Group & Template

Techsmith Camtasia 2020 introduces a video template. Now, we can create a video template and share it with the team to build consistent and professional videos quickly. This is really great. But like many Camtasia users, I also terribly miss the feature to add Quick Properties to the custom groups,

25 Jan 2021 · 2 min read
Exception: Falling with style. Error: Failing with smile ExceptionHandling

Exception: Falling with style. Error: Failing with smile

Andy  learning to code. He seemed a little worried. Mike happens to stop by. "You seem worried. What’s on your mind?" asked Mike. "Well Mike, I’ve been trying to understand exception handling. But I can’t seem to wrap my head around it." answered Andy. Mike laughed and said "I see. Come with me.

1 Jan 2021 · 1 min read
gyp: No Xcode or CLT version detected - ERR! configure error in macOS Catalina node-gyp

gyp: No Xcode or CLT version detected - ERR! configure error in macOS Catalina

Is node-gyp (Node.js native addon build tool) failing during yarn install or npm install? If your macOS got upgraded to Catalina (10.15) recently, then you will find the fix right here.

26 Aug 2020 · 2 min read
Customize Logback Configuration for Log Optimization Logging Framework

Customize Logback Configuration for Log Optimization

4,153,406 hits in single day! Sounds like a really big number for many of us. I was surprised when I noticed this in Production ELK for the first time. I didn't expect that many hits for an application with only 5 microservices. That too for a Beta application with a handful (~2k) of users. It wil

12 Aug 2020 · 4 min read
Top 6 characteristics of a successful entrepreneur Entrepreneurship

Top 6 characteristics of a successful entrepreneur

Entrepreneurs are not a homogeneous group and hence attributing their success or failure to a set of characteristics might be difficult as well as open to challenges.  People often have the notion that entrepreneurs are born with their natural affinity to innovation and an appetite for risk taking.

11 Aug 2020 · 2 min read
Pandemic in Application - Circuit Breaker Pattern Microservices

Pandemic in Application - Circuit Breaker Pattern

Pandemic! Human race is now at stake. Flatten the curve. Whole world is running after this epidemic curve. Why it so important? [https://commons.wikimedia.org/wiki/File:20200403_Flatten_the_curve_animated_GIF.gif#/media/File:20200403_Flatten_the_curve_animated_GIF.gif] By RCraig09 [//commons.wik

9 Aug 2020 · 4 min read
Kid's Eye and Energy Safe Smart TV - Part 2 IOT

Kid's Eye and Energy Safe Smart TV - Part 2

Sometimes I feel, kids do this just to irritate us. Or may be, we always have a prioritized  list of problems in our subconscious mind. When we solve the top one, the next one pops up and gets highlighted. It is indeed never ending. Few extra hours of running TV will hardly make any difference in m

9 Jul 2020 · 5 min read
Kid's Eye Safe Smart TV - Part 1 classic

Kid's Eye Safe Smart TV - Part 1

Outside of home COVID-19. Inside at home COVID-16. Whole world is fighting against COVID-19. But for COVID-16, I am all alone. I am tired of saying "please stay away from the screen". So thought of this concept project to avoid brain infection at home. By the way, I call two of my kids (age 1 and 6

20 Jun 2020 · 4 min read
Log Forging by CRLF Injection Log-Forging

Log Forging by CRLF Injection

Live feed forging formed the base of the Professor's "Paris Plan" to rescue Lisbon from police custody in Money Heist (Season 4). A smart attacker always makes or covers up his tracks by forging something. Cyber-attacks inflict loss of reputation and wealth worth millions.

11 Jun 2020 · 5 min read
Secure your Web Application using HTTP Security Headers - Cloudflare Workers http-security-headers

Secure your Web Application using HTTP Security Headers - Cloudflare Workers

Security is always an essential aspect of any web application. HTTP security headers play an important role to tighten up the security of web application. It acts as an additional security layer to defend many common vulnerabilities and attacks like clickjacking, cross-site scripting (XSS), cross-s

7 Jun 2020 · 3 min read
Internet enabled (IOT) smoke alarm with SMS notification using esp8266, MQ2, ThingSpeak and Twilio IOT

Internet enabled (IOT) smoke alarm with SMS notification using esp8266, MQ2, ThingSpeak and Twilio

ESP8266 based Internet enabled (IOT) smoke and fire alarm to send SMS notification (Twilio) and to trigger alarm with flashing red LED if it detects smoke and leakage of combustible gas using MQ2 gas sensor. Also ThingSpeak analytics is a great bonus.

4 Sept 2017 · 7 min read
IOT - Home Automation project using Geofencing, MQTT, ESP8266 and MycroPython IOT

IOT - Home Automation project using Geofencing, MQTT, ESP8266 and MycroPython

A home automation project that maps switching on/off of appliances with your entry/exit of a geofence (virtual perimeter for a real-world geographic area). Step into a cool room without having to wait for the air conditioning to start functioning? Watch the garage door open as you drive in.

8 May 2017 · 8 min read
Home Automation - Internet of Things - MQTT (MQ Telemetry Transport), ESP8266 and MycroPython Internet of Things

Home Automation - Internet of Things - MQTT (MQ Telemetry Transport), ESP8266 and MycroPython

This is my first post on home automation. As a 'Hello World' project, switching on/off a bulb is a common use case. This post is not an exception. But to spice it up, we'll use MQTT (MQ Telemetry Transport) - a machine-to-machine (M2M)/Internet of Things (IOT) connectivity protocol and an android ap

22 Mar 2017 · 6 min read
Configure STA_IF interface of ESP8266 (MycroPython firmware) to connect with WIFI network automatically on boot IOT

Configure STA_IF interface of ESP8266 (MycroPython firmware) to connect with WIFI network automatically on boot

ESP8266 can act as both Station / WIFI client (STA_IF interface) and Access Point (AP_IF interface). AP_IF interface is active by default in MycroPython firmware on ESP826 . In the earlier post, we connected to the access point (AP mode) of ESP8266 and used WebREPL to remotely control switch on/off

14 Mar 2017 · 3 min read
Example: Remotely switch on/off and control brightness of an LED using MicroPython WebREPL IOT

Example: Remotely switch on/off and control brightness of an LED using MicroPython WebREPL

So far, we have flashed MicroPython firmware onto an ESP8266 and setup WebREPL to run programs over WIFI on the chip. Now it's time for a hands-on excercise. We'll remotely switch on/off and control brightness of an LED using MicroPython WebREPL.

8 Mar 2017 · 5 min read
How to setup WebREPL to connect to Python prompt (REPL) of ESP8266 over WIFI network? IOT

How to setup WebREPL to connect to Python prompt (REPL) of ESP8266 over WIFI network?

WebREPL daemon auto-start is disabled by default in MycroPython on ESP8266 for security reason. Here, we'll enable the same, connect to the REPL over WIFI using locally installed WebREPL client and run a "Hello World" program remotely on the chip.

23 Feb 2017 · 2 min read
How to flash MicroPython firmware onto an ESP8266 ESP-12E chip using esptool? IOT

How to flash MicroPython firmware onto an ESP8266 ESP-12E chip using esptool?

By default, ESP8226 module comes with AT Firmware. In this post, we'll see how to flash MicroPython firmware onto an ESP8266 ESP-12E chip using esptool. Tools,Technologies and Components used in this article 1. ESPlorer IDE [https://esp8266.ru/esplorer/#download] 2. MicroPython [https://micropyth

4 Feb 2017 · 6 min read
How to uninstall OpenCV (Open Source Computer Vision) from Raspberry Pi - Raspbian Jessie? OpenCV

How to uninstall OpenCV (Open Source Computer Vision) from Raspberry Pi - Raspbian Jessie?

To uninstall OpenCV (Open Source Computer Vision) from Raspberry Pi (Raspbian Jessie), follow the steps mentioned below in this article.

10 Jul 2016 · 3 min read
Troubleshooting for Hue-Solr Integration Hue

Troubleshooting for Hue-Solr Integration

Troubleshooting: Cloudera Hue not able to access Solr collections through Search tab assuming both are set up with CDH4.

18 Jun 2015 · 1 min read
4 Effective Tips to Reduce Your WordPress Database Size Wordpress

4 Effective Tips to Reduce Your WordPress Database Size

Are you serious about speeding up your WordPress-hosted website? If so, chances are high that you have shelled out money for clutter-free codes or designs that will reduce your site's loading time. If you are like most Webmasters, you have eagerly devoured webinars, eBooks, and worksheets that teach

13 Jun 2015 · 2 min read
NRT (Near Real Time) Indexing using Cloudera Search And Lily HBase Indexer Apache Hadoop

NRT (Near Real Time) Indexing using Cloudera Search And Lily HBase Indexer

You are not so strong with SQL or you are not good at programming? And you need to create distributed scalable search on a very large dataset stored in HBase? And you need to achieve NRT (Near Real Time) indexing? Cloudera search along with Lily Hbase Indexer is there to rescue you! Goal of Documen

19 May 2015 · 13 min read
Cloudera Hadoop (CDH 5.x) Installation Guide Cloudera

Cloudera Hadoop (CDH 5.x) Installation Guide

It is affectionately said that what Oracle is to Relational Database, Cloudera is to Hadoop. Most of the Hadoop aspirants, at the beginning of their Hadoop development learning curve, fiddle with the setting up of CDH, some able to do it smoothly (Cloudera has put up an incredibly exhaustive install

10 May 2015 · 9 min read
Hadoop Hands on - A POC Covering HDFS API, MapReduce, JSON and AVRO SerDe, HBase API With FuzzyRowFilter usage Apache Hadoop

Hadoop Hands on - A POC Covering HDFS API, MapReduce, JSON and AVRO SerDe, HBase API With FuzzyRowFilter usage

My learning phase with Hadoop is still continuing. During this phase what I found is a great lack of a comprehensive POC which covers at least a few prominent Hadoop technologies. My POC can fill up that void. After having set up CDH4.7 in my laptop, I completed implementation of this POC touching H

13 Apr 2015 · 3 min read
Install and Configure Oracle Java ME Embedded on Raspberry Pi IOT

Install and Configure Oracle Java ME Embedded on Raspberry Pi

Raspberry Pi is a low cost, credit-card sized and fastest selling personal computer. In this article, we'll install and configure Oracle Java ME Embedded on a Raspberry Pi. > What is a Raspberry Pi? The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV,

17 Mar 2015 · 7 min read
Design - a start-up approach to adopt developers' language Design

Design - a start-up approach to adopt developers' language

I have to observe lots of developers as part of my job description. I sit back and stare at what they do all the time, how they communicate to each other, how they express their ideas and how easily they get into a fight in a design discussion. As per my experience, 80% of the design meetings do no

12 Mar 2015 · 5 min read
Cucumber Quick Start Guide Testing Framework

Cucumber Quick Start Guide

I have been told that, medically, Cucumber can cause indigestion. Let's see... What is Cucumber? Cucumber is a testing framework that helps to bridge the gap between software developers and business managers. Tests are written in plain language based on the behavior-driven development (BDD) style o

14 May 2014 · 6 min read
Build, Install and Configure Eclipse Plugin for Apache Hadoop 2.2.0 Apache Hadoop

Build, Install and Configure Eclipse Plugin for Apache Hadoop 2.2.0

Apache Hadoop Development Tools (HDT) [https://hdt.incubator.apache.org/] is still in development phase. So, no official distribution of Hadoop 2.2.0 Eclipse Plugin is available now. But we can build the same using winghc/hadoop2x-eclipse-plugin [https://github.com/winghc/hadoop2x-eclipse-plugin].

23 Apr 2014 · 5 min read
Shell$ExitCodeException - Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/service/CompositeService Apache Hadoop

Shell$ExitCodeException - Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/service/CompositeService

If you are getting "Exception from container-launch:org.apache.hadoop.util.Shell$ExitCodeException" in FAILED application's Diagnostics (or Command prompt) and "java.lang.NoClassDefFoundError: org/apache/hadoop/service/CompositeService" in 'stderr' containerlogs while running any Hadoop example on

28 Feb 2014 · 5 min read
Run Hadoop Wordcount MapReduce Example on Windows Apache Hadoop

Run Hadoop Wordcount MapReduce Example on Windows

In this post, we'll use HDFS command 'bin\hdfs dfs' with different options like mkdir, copyFromLocal, cat, ls and finally run the wordcount MapReduce job provided in %HADOOP_HOME%\share\hadoop\mapreduce\hadoop-mapreduce-examples-2.2.0.jar. On successful execution of the job in the Single Node (ps

3 Feb 2014 · 3 min read
AttachNotSupportedException: Unable to enqueue operation: the target VM does not support attach mechanism Testing Framework

AttachNotSupportedException: Unable to enqueue operation: the target VM does not support attach mechanism

Following exception occurs in Windows for IBM JDK 6 while executing a JUnit testcase which uses JMockit framework, in-spite of enabling the Attach API " -Dcom.ibm.tools.attach.enable=yes" - java.lang.RuntimeException: com.sun.tools.attach.AttachNotSupportedException: Unable to enqueue operation: th

10 Jan 2014 · 1 min read
Maven Build Failure - Hadoop 2.2.0 - [ERROR] class file for org.mortbay.component.AbstractLifeCycle not found Apache Hadoop

Maven Build Failure - Hadoop 2.2.0 - [ERROR] class file for org.mortbay.component.AbstractLifeCycle not found

In the previous post on Build, Install, Configure and Run Apache Hadoop 2.2.0 in Microsoft Windows OS [/build-install-configure-run-apache-hadoop-2-2-0-microsoft-windows-os], many people have encountered Maven build failure issue ("[ERROR] class file for org.mortbay.component.AbstractLifeCycle not f

22 Dec 2013 · 1 min read
Configure SSL/HTTPS support on Apache Tomcat 7 Apache Tomcat

Configure SSL/HTTPS support on Apache Tomcat 7

By default, HTTPS / SSL is not configured and enabled in Tomcat Web server. SSL setup is required to make your web application accessible over HTTPS protocol. This post will guide you to configure SSL in Tomcat 7 Web server. Tools and Technologies used in this article : 1. Tomcat 7.0.47 [https://t

27 Nov 2013 · 2 min read
Get Redirections of a URL using Apache HttpComponents HttpClient Java

Get Redirections of a URL using Apache HttpComponents HttpClient

Many websites use URL redirection technique to forward the original request from one location to another several times for different reasons (Domain forwarding, URL shortening, Privacy protection, Maintaining similar domain names referring single website, etc.). In this post, I'll try to demonstrate

25 Nov 2013 · 3 min read
Determine Click Position (Row and Column Number) on click of a table cell jQuery

Determine Click Position (Row and Column Number) on click of a table cell

This example shows how to determine click position (row and column number) on click of a table cell using jQuery.

24 Nov 2013 · 3 min read
ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path Apache Hadoop

ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path

If we directly take the binary distribution of Apache Hadoop 2.2.0 release and try to run it on Microsoft Windows, then we'll encounter ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path.In the previous post - Build, Install, Configure and Run Apache Hadoop 2.2.0 in Mic

3 Nov 2013 · 1 min read
Build, Install, Configure and Run Apache Hadoop 2.2.0 in Microsoft Windows OS Apache Hadoop

Build, Install, Configure and Run Apache Hadoop 2.2.0 in Microsoft Windows OS

Good news for Hadoop developers who want to use Microsoft Windows OS for their development activities. Finally Apache Hadoop 2.2.0 release officially supports for running Hadoop on Microsoft Windows as well. But the bin distribution of Apache Hadoop 2.2.0 release does not contain some windows nativ

3 Nov 2013 · 10 min read
Expand Shortened Link using Java Java

Expand Shortened Link using Java

Nowadays we use different URL shortening services (like bit.ly [https://bit.ly/] , TinyURL [https://tinyurl.com/], Google URL Shortener [https://goo.gl/] etc.) to shorten long URL to fit in micro-blogging sites (like Twitter [https://twitter.com/]), to beautify a link, view analytics on link clicks,

22 Oct 2013 · 2 min read
Spring Security HTTP Basic Authentication Example Spring Framework

Spring Security HTTP Basic Authentication Example

HTTP basic authentication (BA) is a simple authentication mechanism. When a web client requests any secured web resources, server sends an HTTP response with status code 401 (Unauthorized) and WWW-Authenticate HTTP header like WWW-Authenticate: Basic realm="realm here". And browser pops up a login

9 Sept 2013 · 2 min read
Spring Security Custom Login Form Example Spring Framework

Spring Security Custom Login Form Example

In previous posts Spring Security 3 Hello World Example [/spring-security-3-hello-world-example] and Spring Security Logout Example [/spring-security-logout-example], we have used default login form generated by Spring Security framework. Now we'll set up a custom login form for authentication with

5 Sept 2013 · 4 min read
Problem: failed to create task or type eclipse.refreshLocal Ant

Problem: failed to create task or type eclipse.refreshLocal

Eclipse platform provides different useful Ant tasks [https://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/ant_eclipse_tasks.htm] to interact with the workspace. If you have added any such Ant task (say eclipse.refreshLocal) in your ant build script and started getti

30 Aug 2013 · 2 min read
Integrate Free Anti-Bot Service reCAPTCHA with Spring MVC application Captcha

Integrate Free Anti-Bot Service reCAPTCHA with Spring MVC application

reCAPTCHA is a free CAPTCHA service to protect a site against spam and other types of automated abuse by bots or computer programs. reCAPTCHA provides widget which can easily be integrated to your blog, forum, comment, registration form, contact form, etc and you can be rest assured that only human

5 Aug 2013 · 4 min read
Spring Security Logout Example Spring Framework

Spring Security Logout Example

Spring Security provides Logout Handling Service for logging out by navigating to a particular URL (by default /j_spring_security_logout). LogoutFilter [http://static.springsource.org/spring-security/site/docs/3.1.x/apidocs/org/springframework/security/web/authentication/logout/LogoutFilter.html] s

17 Jul 2013 · 2 min read
Spring 3 Hello World Example / Tutorial using Maven Tool and Eclipse IDE Spring Framework

Spring 3 Hello World Example / Tutorial using Maven Tool and Eclipse IDE

This tutorial will help you to write your first Hello World Spring program. We will use Maven tool to generate the project and Eclipse IDE to implement a method which will print 'Hello World!' in the console.

11 Jul 2013 · 3 min read
Spring Security 3 Hello World Example Spring Framework

Spring Security 3 Hello World Example

Security is of great concern in any web application. If you are looking for a proven and industry standard solution to secure your Java/J2ee based application, then widely used and highly customizable authentication and access control framework - Spring Security is well worth considering. This post

11 Jul 2013 · 5 min read
Build Hadoop Eclipse Plug-in Jar From Source Code And Install That Plug-in In Eclipse IDE Apache Hadoop

Build Hadoop Eclipse Plug-in Jar From Source Code And Install That Plug-in In Eclipse IDE

Hadoop Eclipse plug-in (installed in Eclipse IDE or Spring Tool Suite) eases the experience of Map/Reduce on Hadoop. Hadoop distribution does not include Hadoop Eclipse plug-in jar, but includes source code of that plug-in. In this post, we'll see all the steps to build Hadoop eclipse plug-in from s

22 Jun 2013 · 7 min read
Spring Asm Dependency Issue: java.lang.IncompatibleClassChangeError - Fixed Spring Framework

Spring Asm Dependency Issue: java.lang.IncompatibleClassChangeError - Fixed

If you have migrated / upgraded your project to Spring Framework 3.2 and project builds successfully but when application starts, you are getting IncompatibleClassChangeError, then this post will help you to resolve the same.

10 Jun 2013 · 4 min read
Get started with Open Source Code Quality Management Platform - Sonar in few minutes Code Quality

Get started with Open Source Code Quality Management Platform - Sonar in few minutes

Sonar is an open source platform for code quality management. It covers different aspects of code quality management like code duplication, complexity, coverage by unit tests, architecture & design, rule based defect identification etc.

14 May 2013 · 2 min read
Make HTML table sortable using jQuery Tablesorter plugin Javascript

Make HTML table sortable using jQuery Tablesorter plugin

This post describes how to make an HTML table (having THEAD and TBODY) sortable in few minutes using tablesorter jQuery plugin. This plugin can parse and sort many types of data like number, text, currency, URI, IP address, date, time including linked data in a table cell.

30 Apr 2013 · 3 min read
Setup, Run and Experience Chromium OS in Oracle VM VirtualBox before you buy Google's Chromebook Virtual Machine

Setup, Run and Experience Chromium OS in Oracle VM VirtualBox before you buy Google's Chromebook

Are you planning to buy a Google's Chromebook? Want to experience how it looks like before you decide? Then this is the post worth looking into. Here we'll see how to setup, run and explore Chromium OS in Oracle VM VirtualBox.

31 Mar 2013 · 2 min read
Spring Mobile Hello World Example that includes DeviceResolver, SitePreference, urlPath SiteSwitcher and LiteDeviceDelegatingViewResolver Spring Framework

Spring Mobile Hello World Example that includes DeviceResolver, SitePreference, urlPath SiteSwitcher and LiteDeviceDelegatingViewResolver

Spring Mobile is an extension to Spring MVC for development of mobile web applications. The Spring Mobile Device module provides a feature (DeviceResolver / LiteDeviceResolver) to detect devices like mobile and tablet in the server side. Device aware view management is very useful specially when it

17 Feb 2013 · 7 min read
Spring 3 MVC Framework Based Hello World Web Application Example Using Maven, Eclipse IDE And Tomcat Server Spring MVC

Spring 3 MVC Framework Based Hello World Web Application Example Using Maven, Eclipse IDE And Tomcat Server

In this post, we'll see how to get started with a Spring Web model-view-controller (MVC) framework based Hello World web application in few steps.

8 Jan 2013 · 5 min read
Build Android application package file (APK) using Eclipse IDE and Android Developer Tools (ADT) Plugin Android

Build Android application package file (APK) using Eclipse IDE and Android Developer Tools (ADT) Plugin

Android application package file (APK) is program binary used to distribute and install Android application onto the Android operating system. Here we'll see step by step procedure of creating .apk file ready to be installed in Android device.

15 Dec 2012 · 2 min read
Android Hello World Example using Eclipse IDE and Android Developer Tools (ADT) Plugin Android

Android Hello World Example using Eclipse IDE and Android Developer Tools (ADT) Plugin

This tutorial will help you to write your first Android 'Hello World!' program. Here, we'll use Eclipse IDE with Android Developer Tools (ADT) plugin to build the application and Android Emulator - Android Virtual Device (AVD) to run the application which will draw 'Hello World!' text on the screen.

7 Dec 2012 · 3 min read
Logback using SLF4J Hello World Example Logging Framework

Logback using SLF4J Hello World Example

Logback is an increasingly popular logging framework intended as a successor to the popular log4j project. It is designed by the founder of log4j. Logback offers many advantages over log4j like faster, smaller memory footprint, automatic reloading of configuration files, automatic compression of arc

21 Nov 2012 · 3 min read
Java File and Directory operations made easy in JDK 7 Java

Java File and Directory operations made easy in JDK 7

Here we'll see two examples - Copy operation & Traversing a file tree. If you have already worked using JDk 6 or earlier versions then you can see how easy it is to use JDK 7's nio package. And you need to write less code to implement the same. This tutorial shows two examples on the file IO mechan

7 Nov 2012 · 3 min read
org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available Spring Framework

org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available

Spring AOP uses either JDK dynamic proxies or CGLIB to create the proxy for a given target object. If the target object to be proxied, does not implement any interfaces then a CGLIB proxy will be created. In this situation if CGLIB is not present in the classpath following exception will be thrown

1 Nov 2012 · 1 min read
Send logs by Email Notification using Apache log4j SMTPAppender Logging Framework

Send logs by Email Notification using Apache log4j SMTPAppender

It is always better to get notified as soon as any major issues / exceptions occurred in the Application, instead of manually going thorugh huge logs to find probable exception messages. Apache log4j provides out of the box log Appender (called SMTPAppender) to send email alerts for the log level co

11 Oct 2012 · 2 min read
Deploy to AppFog PaaS using Cloud Foundry Integration plugin of Eclipse / STS Cloud

Deploy to AppFog PaaS using Cloud Foundry Integration plugin of Eclipse / STS

AppFog Cloud Platform is built by using the Cloud Foundry OSS bits alongside its own set of custom extensions and enhancements. AppFog provides good command line tool to deploy application but we can configure Cloud Foundry Integration plugin of Eclipse / Spring Tool Suite (STS) to deploy web applic

1 Oct 2012 · 2 min read
Configure Simple Logging Facade for Java (SLF4J) with log4j as underlying logging framework Logging Framework

Configure Simple Logging Facade for Java (SLF4J) with log4j as underlying logging framework

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This tutorial describes how to configure SLF4J with log4j as underlying logging framework. To use SLF4J, it is required to include 3 jars SLF4J API (slf4j-a

26 Sept 2012 · 2 min read
Example to Generate Random Alpha Numeric Text Java

Example to Generate Random Alpha Numeric Text

This example shows how to generate random alpha numeric text which is not easy to guess.

18 Sept 2012 · 1 min read
Dynamically create image from text using Java Servlet Captcha

Dynamically create image from text using Java Servlet

This example shows how we can dynamically create an image from a text ('Hello World!') by writing a simple Java Servlet. In the next post, we'll see how this dynamic creation of image can be used to implement custom CAPTCHA validation.

15 Sept 2012 · 2 min read
How to retain DOCTYPE declaration while saving DOM Document to an XML file XML

How to retain DOCTYPE declaration while saving DOM Document to an XML file

If we save a DOM Document to an XML file using javax.xml.transform.Transformer, DOCTYPE declaration gets emitted by default. This example shows how we can retain PUBLIC and SYSTEM id of the DOCTYPE declaration for external DTD.

13 Sept 2012 · 4 min read
Configure GZIP Filter on Jetty 8 for dynamic compression of contents Server

Configure GZIP Filter on Jetty 8 for dynamic compression of contents

Jetty provides Gzip Filter to enable dynamic compression of contents like html, javascript, css etc. Just a servlet filter 'org.eclipse.jetty.servlets.GzipFilter' needs to be configured in web.xml to save bandwidth and speed up your website.

10 Sept 2012 · 1 min read
Programmatically Start or Stop an Application, deployed in IBM WebSphere Application Server (WAS) using Java Code and ANT script Apache Ant

Programmatically Start or Stop an Application, deployed in IBM WebSphere Application Server (WAS) using Java Code and ANT script

This tutorial describes how an application, deployed in IBM WebSphere Application Server (WAS) can be started or stopped programmatically using Java code.

17 Aug 2012 · 2 min read
Invoke and Execute Hello World Ant Script Programmatically using Java Code Apache Ant

Invoke and Execute Hello World Ant Script Programmatically using Java Code

Apache Ant is an XML-based build tool to automate different tasks like compile, assemble, test source code, building deployment packages and run Java applications. This Hello World example shows how to invoke and run a simple Ant script programmatically using java code.

6 Aug 2012 · 3 min read
Full Text Hibernate Lucene Search Hello World Example Using Maven and SQLite

Full Text Hibernate Lucene Search Hello World Example Using Maven and SQLite

Hibernate Search is a full text search engine built using Apache Lucene framework. Hibernate Search indexes your domain model, keep the index upto date and also performs full text search functionality to fetch matching domain objects. This Hello World example shows how you can setup hibernate search

26 Jul 2012 · 8 min read
Hibernate Hello World example using Maven build tool and SQLite database Hibernate

Hibernate Hello World example using Maven build tool and SQLite database

This tutorial will help you to write an annotation based hibernate java program which will save some records into a database and fetch them all using Hibernate API. We will use Maven tool to build the project, Eclipse IDE to code and SQLite database to save / retrieve records. SQLite is a self-conta

18 Jul 2012 · 5 min read
How to traverse a folder or directory recursively using Java File API Java

How to traverse a folder or directory recursively using Java File API

This example shows how we can traverse a folder or directory structure using recursive algorithm by writing a small java program using Java File API.

16 Jul 2012 · 1 min read
Hello World Example of Simple Logging Facade for Java or SLF4J Logging Framework

Hello World Example of Simple Logging Facade for Java or SLF4J

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This gives the developer an opportunity to plug-in desired logging framework at deployment time without changing the code. To use SLF4J, it is required to i

15 Jul 2012 · 2 min read
Tomcat Hello World Servlet using Eclipse IDE Servlet

Tomcat Hello World Servlet using Eclipse IDE

This simple tutorial explains you, how you can run your first Servlet class that will print "Hello World!" string in the browser. We will use Eclipse IDE to develop the code and Tomcat webserver to run the servlet code.

14 Jul 2012 · 3 min read
How to perform binary search on a java.util.ArrayList Java

How to perform binary search on a java.util.ArrayList

This example shows how an element of a java.util.ArrayList can be searched using 'binarySearch' method of java.util.Collections class. This method internally applies binary search algorithm to search a particular element.

14 Jul 2012 · 2 min read
JSP Hello World Example using Eclipse IDE and Tomcat web server JSP

JSP Hello World Example using Eclipse IDE and Tomcat web server

This simple tutorial describes how you can print "Hello World!" string in your browser by writing a simple JSP (Java server pages) program developed using eclipse IDE.

10 Jul 2012 · 2 min read
Java Hello World Example using Eclipse IDE Java

Java Hello World Example using Eclipse IDE

This article describes how to create a "Hello World" java program using Eclipse IDE. This program will print "Hello World" in the console.

8 Jul 2012 · 1 min read

About

  • About SrcCodes
  • Contact
  • Privacy Policy
  • RSS Feed

Follow Us

  • Facebook
  • Twitter / X
  • LinkedIn
  • YouTube
SrcCodes

Programming tutorials, how-tos, and open source projects.

© 2026 SrcCodes.