Quantcast
Channel: web ā€“ Imran Tariq's Blog
Browsing all 33 articles
Browse latest View live
ā†§

Image may be NSFW.
Clik here to view.

Google Iā€™m Feeling Lucky button

Ordinarily when you type in a key phrase in a Google search, you press the search button and Google returns a results page that shows multiple Web sites matching your search phrase. The Iā€™m Feeling...

View Article


Image may be NSFW.
Clik here to view.

Get URL parameters & values with jQuery

If URL is like http://www.example.com/?me=myValue&name2=SomeOtherValue Then use this jquery code $.extend({ Ā  getUrlVars: function(){ Ā  Ā  var vars = [], hash; Ā  Ā  var hashes =...

View Article


Image may be NSFW.
Clik here to view.

Dynamic HTML form creation and submit

Dynamic HTML form creation through JavaScript and submit var form = document.createElement("form"); form.setAttribute("method", "post"); form.setAttribute("action", "/admin/delete.htm"); var element1 =...

View Article

Image may be NSFW.
Clik here to view.

Programmatically refresh Spring mvc resource bundle

Programmatically refresh Spring mvc resource bundle OR Inject Spring ReloadableResourceBundleMessageSource OR Spring message translation found in JSP but not inĀ controller Define your ResourceBundle...

View Article

Image may be NSFW.
Clik here to view.

Json array parsing in jquery

Here is a very simple code in parsing JSON using jQuery. Suppose you have a JSON like this: { "userdata": [ { "first":"Ciaran", "last":"Huber", "email":"elementum.purus@utdolordapibus.edu",...

View Article


Image may be NSFW.
Clik here to view.

Google OAuth: Get User Data

Create a new Project from Google API Console and get Client Id and Secret Key.Ā  https://code.google.com/apis/console Following this example...

View Article

Image may be NSFW.
Clik here to view.

Helpful Things for Google OAUTH

OAuth 2.0 Playground Awesome Playground. This will make OAuth with your app and get your desired information. In other words you can see how will your application run for OAUTH and what information is...

View Article

Image may be NSFW.
Clik here to view.

Map attributes in xstream

Suppose you have XML like this <code><qualification name="access">Ā Ā Ā Ā <attribute name="abc">OK</attribute>...

View Article


Image may be NSFW.
Clik here to view.

File download code through stream, Java

If you want to convert String to a file and wants to get a downloadable dialog in browser to download file then below code will help you. This example code will work for servlets, struts, Spring MVC...

View Article


Image may be NSFW.
Clik here to view.

Configuring Your LinkedIn Application

Configure the LinkedIn authentication experience by setting fields in your Application Details. This page can be reached from the Developer Portal by selecting My Stuff->API Keys and then selecting...

View Article

Image may be NSFW.
Clik here to view.

Java Web Frameworks Comparision

Out of many frameworks choices available in Java I will discuss two and try to compare them. Spring Web Flow is a Spring MVC extension that allows implementing the ā€œflowsā€ of a web application. Spring...

View Article

Image may be NSFW.
Clik here to view.

Safari 6 not yet available for Windows

Safari 6 has been launched bu it appear that Apple has killed support for the browser on Windows based machines. There are no download links for a Windows version, and the latest version is still...

View Article

Image may be NSFW.
Clik here to view.

Install Jboss tools for eclipse juno

Open eclipse. Go to Help -> Eclipse Market place -> and search for ā€˜JBOSS tools for eclipse junoā€™. Install these JBOSS tools. JBoss Tools 4.0 ā€“ Core ā€“ Stable Release Update Site:::...

View Article


Image may be NSFW.
Clik here to view.

Create users in JBOSS AS 7

Open CMD Open directory for JBOSS bin folder like. Ā  Run add-user.bat file It will ask for type of user to add. Type ā€˜aā€™ to add Management user and press enter It will ask Real details. Leave empty and...

View Article

Image may be NSFW.
Clik here to view.

Run JBOSS AS 7 on standalone-full.xml

Double click on installed JBOSS server in eclipse. Ā  Select Runtime Environment Ā  Ā Select Standalone-full.xml file for JBOSS Ā  Ā Click Finish and restart server. Server will run on standalone-full.xml...

View Article


Image may be NSFW.
Clik here to view.

SEO Friendly URL Structure for WordPress

Why SEO Friendly URL Structure When you have a SEO friendly structure, you are increasing your chances of ranking higher in search engines such as Google and others. Which by default are the largest...

View Article

Mock Object

A Mock Object is an object that substitutes for a real object. In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways. A computer...

View Article


Unbound ID in-memory LDAP server | Multiple base DN

Define two base DNā€™s in ldif file that contains the schema for LDAP server like dn: dc=com objectclass: domain objectclass: top dc: com dn: SECAUTHORITY=DEFAULT objectclass: domain objectclass: top...

View Article

This regular expression is for which type of strings

How can one know that any particular regular expression matches which type of input? Like I want to know about \$\{([\w]+)\}. Which string will be matched by this regular expression? Pattern...

View Article

The wsimport tool and SOAP service

The wsimport tool reads a WSDL and generates all the required artifacts for web service development, deployment, and invocation. The wsimport tool supports the top-down approach to developing JAX-WS...

View Article
Browsing all 33 articles
Browse latest View live