Updates from November, 2010 Toggle Comment Threads | Keyboard Shortcuts

  • Subinkrishna Gopi 3:29 pm on November 4, 2010 Permalink |
    Tags: , , , ,   

    Today’s read – How To Build A Mobile Website 

    This one is really helpful. How To Build A Mobile Website. This article talks about the stylesheets, mobile stylesheets, customizing them, how to reduce the bandwidth usage and handling iPad/iPhone.

    Over the past few years, mobile web usage has considerably increased to the point that web developers and designers can no longer afford to ignore it. In wealthy countries, the shift is being fueled by faster mobile broadband connections and cheaper data service.  However, a large increase has also been seen in developing nations where people have skipped over buying PCs and gone straight to mobile.

    Unfortunately, the mobile arena introduces a layer of complexity that can be difficult for developers to accommodate.  Mobile development is more than cross-browser, it should be cross-platform.  The vast number of mobile devices makes thorough testing a practical impossibility, leaving developers nostalgic for the days when they only had to support legacy browsers.

    Source: Smashing Magazine

    Read the article

  • Subinkrishna Gopi 4:17 pm on August 13, 2009 Permalink |
    Tags: best practices, , , iphone, , , ,   

    How-to: Create my first iPhone application 


    These days everyone wants to create iPhone applications. But “user retention” is the biggest challenge most the application developers or companies facing. As per some analysis report which I went through sometime back, the amount of returning users/customers is very less. Problems may be the way we (developers) develop those products, not-so-good application usability or even the confused user.

    I think this Smashing magazine article – How to Create Your First iPhone Application – can help us to a great extend.

    What if you had a nickle for every time you heard: "I have the perfect idea for a great application!"? It’s the buzz on the street. The iPhone has created unprecedented excitement and innovation from people both inside and outside the software development community. Still for those outside the development world, the process is a bit of a mystery.

    This how-to guide is supposed to walk you through the steps to make your idea for an iPhone app a reality. This post presents various ideas, techniques, tips, and resources that may come in handy if you are planning on creating your first iPhone application.

    Read the article: http://www.smashingmagazine.com/2009/08/11/how-to-create-your-first-iphone-application/

  • Subinkrishna Gopi 11:55 am on June 18, 2009 Permalink |
    Tags: , exception, , , ,   

    A JBoss 5.1.0 Exception ! 


    This is about another exception you may get while playing around with JBoss, Transactions, Remote EJBs etc. And the exception is:

    Could not enlist in transaction on entering meta-aware object!

    My friend Venu had a post in his blog on why this exception happens and how to fix it in JBoss 5.0. You can read it here. But if we are using JBoss 5.1.0 this solution cannot help us. Because there are a couple of changes in the configuration in this new version of JBoss. In fact if you can take a look at the JBoss 5.1.0 GA release notes we can see a lot of changes in configuration especially if we are migrating from JBoss 5.0 to 5.1.

    And here is the solution.

    Open the JBOSS_HOME/server/JBOSS_CONFIGURATION/conf/jbossts-properties.xml. Set the following.

    <!-- Support subtransactions in the JTA layer? Default is NO. -->
    <property name="com.arjuna.ats.jta.supportSubtransactions" value="YES"/>

    Hope this helps.

    P.S. If you have any more details in this issue, please feel free to share it. Thank you.

  • Subinkrishna Gopi 11:52 am on June 11, 2009 Permalink |
    Tags: cryptography, , jce, mail   

    java.lang.RuntimeException: NYI 


    If we are using PGP based or similar encryption in our email application/module, we may get the following exception.

    java.lang.RuntimeException: NYI
        at cryptix.jce.provider.elgamal.ElGamalCipher.engineGetParameters(ElGamalCipher.java:120)

    Here NYI is Not Yet Implemented ! The default policy setting of Java is not capable of handling encryption/decryption with higher strength keys. To add that support we need to download the Java(TM) Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files.

    Download JCE: http://java.sun.com/javase/technologies/security/

    Extract the downloaded archive and copy the JAR files (US_export_policy.jar & local_policy.jar) to Java_home/jre/lib/security. If those JAR files are already present in that directory, replace them with the newly downloaded archives.

    Hope this helps.

  • Subinkrishna Gopi 2:48 pm on March 5, 2009 Permalink |
    Tags: , ,   

    The most commonly used (favorite) methods 

    Whenever we write code we will have certain set of code blocks – or methods written by us – which we will be using in every other method. isValidString(String aString) is my favorite method.

    public static boolean isValidString(String aString)
        return((null != aString) && (aString.trim().length() > 0));

    This one comes second in my list. This method is very useful if we are writing loads of conventional JSPs/Servlets.

    public static String getRequestParameter(HttpServletRequest request,
    		String paramName)
    	return (getRequestParameter(request, paramName, null));
    public static String getRequestParameter(HttpServletRequest request,
    		String paramName, String defaultValue)
    	String paramValue = null;
    	if ((null != request) && isValidString(paramName))
    		paramValue = request.getParameter(paramName);
    		paramValue = !Utility.isValidString(paramValue)
    			? defaultValue : paramValue;
    		paramValue = defaultValue;
    	return (paramValue);

    This method comes third. This method tries to implement in_array() of Php. This method checks whether the specified object is available in the given array.

    public static boolean inArray(Object[] array, Object key)
    boolean isKeyInArray = false;
    if (null != array)
    for (int i = 0; i < array.length; i++) { if (array[i].equals(key)) { isKeyInArray = true; break; } } } return (isKeyInArray); } [/sourcecode] But this was like reinventing the wheel. From Java 1.2, they had an API - java.util.Arrays - which does almost everything. I implementing it without knowing that (I am very bad).  But I love my code. So, what's your most commonly used (favorite) method?

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc