J2SE 5.0 New Features

J2SE 5.0 (Tiger) is the major revision to the Java Platform introduced on 2004. In this and my next set of posts, i am going to explain about the new features and their sample implementations. J2SE has the following festures.

Enhanced for Loop
Auto boxing and Auto-Unboxing of Primitive Types
Static Import
Formatted Output
Formatted Input
Varargs
Generics
Enumerated Types
Concurrency Utilities
JDBC RowSets

Enhanced for Loop

The Iterator class is used heavily by the Collections API. It provides the mechanism to navigate sequentially through a Collection. The new enhanced for loop can replace the iterator when simply traversing through a Collection as follows. The compiler generates the looping code necessary and with generic types no additional casting is required.

ArrayList<Integer> list = new ArrayList<Integer>();
for (Iterator i = list.iterator(); i.hasNext();) 
{        
     Integer value=(Integer)i.next();    
}

Now with the enhanced for loop

ArrayList<Integer> list = new ArrayList<Integer>();  
     for (Integer i : list) { ... }

In next post, we will see the remaining features in details.

Send Files through Adobe

There are lots of mail server does not allow to send document or file which is more than the given limit. The given limit is based on the mail server. For example, we cannot send documents which is greater than the size of 100 MB in yahoo.  In this kind of situation, the below free service would help us. That’s nothing but Adobe SendNow

SendNow takes a freemium approach – the basic features are available for free while you need to pay a monthly fee to unlock certain premium features.

For instance, you may send a single file up to 100 MB in size with a free Adobe SendNow account and the file will be available for download for seven days after which it will be automatically deleted. You may upload only one file at a time and total storage space available in your SendNow account is limited to 500 MB.

adobe files

Adobe SendNow is primarily for transferring Office Documents, PDFs, ZIP files, etc. and the service won’t accept MP3s, video files, fonts or EXEs.

There are quite a few to SendNow and one among them is Google Docs – you can upload files of any type to Google Docs, they can be as large as 1 GB in size, there’s no limit on the number of downloads and your files will never expire. You however don’t get to track the file activity.

Organic Search Engine Optimization

We have created this space called Organic Search Engine Optimization on clarifying all about SEO and teach in a manner everyone can come out of the bad myth about SEO. This series of post will clarify all your doubts about SEO and will teach you from the basics. Be tuned and have fun.

Let me start with the case study. That gives you an thought to ask a question “Why we need SEO ?” . Here is one which i have experienced recently.

Case Study

There are plenty of web sites available in the internet and most of the websites are not able to locate. The following case study is one of them which i encountered recently. Here it goes:

A friend of mine need to find out the restaurant in his locality. He tried his best to find out but failed and asked to find out. Instead of just getting the result, i wanted to learn what’s really happening when we try to find the something in search engine that was not easily available.

I decided to look in a popular search engines. There was a plenty of sites listed in the SERP [Search Engine Result Page]. However, none of them related to the one which i typed.

SERP – Search Engine Result Page

Further, i was thinking to get more relevant search results, i decided to include the town. Now, i got something related to the firm. Unfortunately, all the pages were restaurant reviews and articles again bad luck. I was shocked. What could be wrong or there is no restaurant in his town ?.

Finally, one of those articles mentioned the website address of the restaurant, though they did not provide a link to the site. But i got the name typed in search engine and landed in the website. The website is professionally done with graphics as well as music but the content of the site is a Flash.

What was difficulty i have had in finding the site ?. Later i have found, the problem is site developers having little apparent understanding basic SEO.

Search Engine knows that the site exists, and it knows that there is flash content, but it has no idea what the site is all about. It doesn’t know if it is a site for a restaurant, or a site trying to sell products or services.

Conclusion

Most of the site is not crawled properly by search engine because of the poorly design or less knowledge about SEO who design the website or inadequate knowledge of technologies and tools. We covered the case study. Next set of posts will talk lots around the case study.

Author

rLambda Solution – Internet Consultants

LightSwitch Visual Studio 2010

Another great update from Visual Studio team Microsoft. They have introduced new set of tools called “LightSwitch”. They have asked the developer to concentrate only on business logic and everything else will be taken care by LightSwitch. This posts gives the overall glimpse of the new tool that is going to release soon and links to learn.

LightSwitch applications can be deployed as desktop application, giving them the ability to integrate with hardware devices such as a scanner or bar code reader, as well as other applications like Microsoft Word and Excel

LightSwitch applications are based on Silverlight and a solid .NET n-tier application framework, you can create both browser and desktop applications that look and act the same.In most cases, you can even switch from a browser application to a desktop application and back again by changing a single setting and redeploying.

Users expect certain features like search, the ability to sort and rearrange grids, and the ability to export data. With every LightSwitch application those features are already built in — you don’t have to write any code for navigation, toolbars/ribbons, or dirty checking. Common data operations such as adding, updating, saving, and deleting are also built in, as well as basic data validation logic. You just set some validation properties or write some simple validation code based on your business rules and you’re good to go. You can also use custom business types which help reduce the code that you write. For example, the EmailAddress and Phone data types are built in. This eliminates the requirement to apply formatting in the user interface.

Please keep your eye on LightSwitch. The developer’s blog for the lightswitch here

Google Video Sitemaps

Google has introduced to submit video to the Google search. We can display our video in organic Google search video results. Google ask to submit five important information on submitting Google video sitemap. The following picture gives you the five most important things.

Google-Video-Sitemap-Checklist

Google can crawl the following video file types: mpg, .mpeg, .mp4, .m4v, .mov, .wmv, .asf, .avi, .ra, .ram, .rm, .flv, .swf. All files must be accessible via HTTP. Metafiles that require a download of the source via streaming protocols are not supported.

If you need more information, please visit the following links

http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=80472

http://googlewebmastercentral.blogspot.com/2010/07/video-sitemaps-101-making-your-videos.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+blogspot/amDG+(Official+Google+Webmaster+Central+Blog)

Cheers

Client Flip Wall Using ASP.net

We have planned to change our client page with more interactive page using Jquery with the combination of ASP.net. I have found out one interesting plug-in that would be helpful for everyone. Please check at rLambda Clients for a demo. The sample would line one below:

i12

This tutorial will explain on how to use that plug-in in your website using ASP.net, JQuery.

Here are steps to do that.

Step 1: Class

To develop this application, we need to write few classes. I guess it is self explanatory to understand it.

public class ClientImage
{
    public ClientImage(string companyName, string description, string url)
    {
        CompanyName = companyName;
        Description = description;
        Url = url;
    }
    public String CompanyName
    {
        get; set;
    }

    public String Description
    {
        get;
        set;
    }

    public String Url
    {
        get;
        set;
    }
}

Another class to get the list of above class

public class ClientImageList
{
    static ClientImageList()
    {
        cmplst = new List<ClientImage>();
        cmplst.Add(new ClientImage("facebook","The biggest social network in the world.","http://www.facebook.com/"));
        cmplst.Add(new ClientImage("adobe", "The leading software developer targeted at web designers and developers", "http://www.adobe.com/"));

    }

    public static List<ClientImage> cmplst { get; set; }

}

Step 2: ASPX

<div class="sponsorListHolder">
            <asp:Repeater ID="rptClient" runat="server" OnItemDataBound="rptClient_ItemDataBound">
                <ItemTemplate>
                    <div class="sponsor" title="Click to flip">
                        <div class="sponsorFlip">
                            <asp:Image ID="imgTheImage" runat="server" />
                        </div>
                        <div class="sponsorData">
                            <div class="sponsorDescription">
                                <%# ((ClientImage)Container.DataItem).Description.ToString() %>
                            </div>
                            <div class="sponsorURL">
                                <%# ((ClientImage)Container.DataItem).Url.ToString() %>
                            </div>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="clear">
            </div>
</div>

.CS File

protected void Page_Load(object sender, EventArgs e)
    {
        rptClient.DataSource = ClientImageList.cmplst;
        rptClient.DataBind();
    }
protected void rptClient_ItemDataBound(object sender,RepeaterItemEventArgs e)
    {
        ClientImage client = (ClientImage)e.Item.DataItem;
        if (client != null)
        {
            String sFile = client.CompanyName;
            Image oImg = e.Item.FindControl("imgTheImage") as Image;
            oImg.ImageUrl = "~/img/sponsors/" + sFile + ".png";
        }
    }

Please download the sample here. If you have any more queries, please revert back.

Useful Twitter Tools 1.0

Yesterday I was talking to  Chuck and we discussed quite a lot of things. He asked me why not you can write something about social networking. He read my one of the post on Build Links in Twitter and he also liked my Web Development Company

Here is some information on some of the useful tools on Twitter….

1.Blog to Twitter

Every one of us wants to cross post articles from your blog in to twitter. If so, then there is a tool called FeedBlitz.  How to do that? Go to FeedBlitz, After signup, there is an address box and type your feed and choose your twitter subscription options. There is an another alternative but you need a OpenID, Please check it out TwitterFeed.

2.E-Bay in Twitter

I don’t know how many of us know you can track e-bay thing in twitter. Just follow TrackThis on Twitter.   You just have to send message to the above bot with your Air Mail Number. You will be notified every time packages change the location. It works with UPS, FedEx, USPS, DHL.

3.Twitter to Google Calendar

To enable this feature, Go to Twittercal, add gCal as your virtual friend on Twitter. To add events by simply sending direct messages to your new Twitter friend.

Lots of more will be added soon based on your comments :)

Cheers

Computer Language

1. Language

My first post on learning C# begins Here…

Before i get into C# or language…  Let us ask the question Why we need to learn a language?

Everyone knows one language by default. We always call it as “Mother Tongue”.  There are so many languages in the world and different country uses different language… Though we have universal language [English], we are learning other languages. It does make others comfortable those who don’t know the universal language… or the one we know. Everyone knows computer understand only “Binary Language”. It’s nothing but 0 or 1.

As a human, we cannot right programming in binary language. The next question is, how you are going to speak to the computer? Is it easy to do that? Yes, it is easy nowadays. Before it’s used to be very difficult and programmer has to understand Binary Language.

Now, we are not writing programs in binary language… Again, the strange question comes, how come computer understands our programs written in English? Fantastic…. let’s go back to the basic again and ask ourselves. If two persons are facing each other and both cannot speak in common language. How it’s possible for them to talk? The answer is “We need a translator to do the job”. The translator has to know both the language and should be capable of converting from one language to other. C# is one of the translators written by Microsoft to convey our message or our instruction to the computer. The other name for the translator we call it as “Language”.

I guess, the other question comes to your mind. We are writing programs in English Language. C# converts our English verbs or sentence to a binary language, then why are calling as a language. The answer is pretty simple. You cannot write programs as you are talking. For example “Print the document”. You have to follow the syntax of the programming and you have to follow the reserved words. Same like every other language. If you read my next question and following posts, you will understand…

The second question, how we are learning any language? Here is the road map on learning any language.

Alphabets ==> Words ==> Sentences ==> Paragraphs.

The same fundamental applies to any languages in the world even computer language does fit.

My next Posts start with the how the programming language evolution starts in the world. Where C# fits in?.

Cheers

rLambda is a Web Development company. Please visit for more information

Build Links in Twitter

Hello everyone.

I have started using twitter long ago and have added lots of link about our services, but no luck i did not get any back links through twitter.  I sat back and found that links in twitter are “nofollow”.  This posts gives you the idea of building the links through twitter. Lets start now.

Before start explaining how to build the links in twitter, let me explain about “nofollow”.

nofollow is an HTML attribute value used to instruct most of the search engines that a hyperlink should not influence the link target’s ranking in the search engine’s index. for example, the search engine won’t follow the following link when it is getting indexed. <a href=”http://www.google.com” rel=”nofollow” > Google </a>

Ok. Now, lets see what all the ways we can build links through twitter or some other tools

  • Use Twitter Tools –  Twitter from your own blog. Use Twitter Tools to write your tweets. They will appear as blog posts on your blog and as Tweets on Twitter. The blog posts will be dofollow and add content to your blog. There is one twitter tools available in word press or you can use Twitter Doodle. Twitter Doodle plugin will create a blog post of the tweets and link back to the source. Those links should link juice.

Just try these to get more and relevant links…

Cheers…

Global Internet Usage

No one can think of doing anything without internet in this era. Internet is everywhere right from communication to information. It gives one stop solution for all our needs. Since our company is providing solutions on Web, We need to know how internet is using across the world. For more information, please visit http://www.rlambda.com/

This article provides information relating to the number of people who use the Internet by language, nationality, geography, etc.

When i started looking the internet for the best tool to find about the internet usage across the world, i have come across the one tool from Google.  The name of the tool is Google Public Data. More detailed information is available on the official Google Blog. In the blog post, you will also find an interesting downloadable dataset of the 80 most popular data and statistics search topics, based on the aggregation of billions of queries people typed into Google search.

You can also find the internet usage in the world by clicking the following link.

http://www.google.com/publicdata?ds=wb-wdi&met=it_net_user_p2&tdim=true&dl=en&hl=en&q=world+internet+usage#met=it_net_user_p2&tdim=true

The screen shot of the link would be like one below:

Web Development rLambda Solutions

I hope this would help everyone to understand the global usage of internet.

Cheers…

Follow

Get every new post delivered to your Inbox.