Search comma-separated list attribute using jQuery

I have an attribute that is comma-separated list, and I want to search for a particular value in that list example: <img id=”img1” src=”somepic.jpg” tags=”nature,flower,color”> SOLUTION Using jQuery, it’s simple to do, for example, I will search for the tag “nature” in the image var exists = $.inArray(“nature”, $(“#img1”).attr(“tags”).split(‘,’)) != -1;

Search comma-separated list attribute using jQuery Read More »

Get radio group value with Jquery

Assume you have one radio group name default_lang and you want to know which one is selected <input name=”default_lang” value=”en” type=”radio” /> <input name=”default_lang” value=”fr” type=”radio” /> <input name=”default_lang” value=”de” type=”radio” /> Well, it’s easy with jQuery var default_lang = $(‘input:radio[name=default_lang]:checked’).val();

Get radio group value with Jquery Read More »

The following artifacts could not be resolved: javax.jms:jms:jar:1.1

Building a project with maven and have the problem with POM configuration that result in error when compiling The following artifacts could not be resolved: javax.jms:jms:jar:1.1, javax.media:jai-core:jar:1.1.3, com.sun.media:jai-codec:jar:1.1.3: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connector available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory SOLUTION You need

The following artifacts could not be resolved: javax.jms:jms:jar:1.1 Read More »

Installing Apple Remote Desktop in OS X Lion or Mountain Lion

The Apple Remote Desktop 3.3 installer may report that it requires Mac OS X v10.6 when used with OS X Lion. In Mountain Lion, the Apple Remote Desktop 3.3 installer may report that “”RemoteDesktop.mpkg” can’t be opened because it is from a an unidentified developer.” Show how to solve this? Resolution Copy the Apple Remote

Installing Apple Remote Desktop in OS X Lion or Mountain Lion Read More »

Apple released Lion 10.7.3 Update

Apple has officially released update 10.7.3 for Lion. The new update fixes some bugs related to file sharing with Windows, access Directory, wifi connection disconnected after sleep state The detail for the Update you can read from http://support.apple.com/kb/HT5048 Apart from that, Apple also makes update for Safari to 5.1.3 and provides many bug fixes & security

Apple released Lion 10.7.3 Update Read More »