Jul 25

I am running a PHPBB forum for iPhone. I wanted to do SEO work for that for a while. I recently found out the good one to do it as mod for phpBB 3.0. The site is at PHPBB 3 - SEO checklist and it had a good review too. I did all those things described there. My current search listing in google is low and my google pagerank is zero right now. I will update the status sometime in the future. Good work.


Dec 10

When you are developing an application for iPhone users, you may need to find a way to have images uploaded or documents uploaded to your app online. The way i did was to setup an email to receive those things and help the user to fetch them in his page or portal.

i setup an account images@blahblahblah.com and ask users to send an email from their phone or other email accounts. When they go back to the site to see those images, i wrote the following code to fetch data from that POP server. I found a free or Open source POP library which can fetch and manipulate attachment and messages. It’s available at http://sourceforge.net/projects/hpop/.

Example Code: Pop Client Sample


Sep 27

Great idea to embed small or tiny graphs in a document or sentence. For example, if you are writing a page which shows the performance of Dow Jones Index, you can do so by the following:

Dow Jones Image:Sparkline dowjones.svg 10765.45 ?32.82 (?0.30%)

This makes the user not to get distracted and follow the story you wanted to convey. In technology part of it, this is a simple graph which you can draw it with basic API on most languages. I build a sample program in C# where i got the source from here.

Also, you can take this Visual Studio Solution to quickly have it working. Download Sample


Sep 19

I was curiout about this tool in Microsoft which can generate classes to serialize/deserialize XSD based xml files back and forth. I installed the tool provided  by microsoft in my previous column. Created a small project with customers/customer xml snippet and tested it. It was simple and worked great.

To read existing xml generated for xsd:

private void ReadExistingFile(ref FileStream fStream, ref MemoryStream mStream)
 {
 fStream = new FileStream(”XMLFile1.xml”, FileMode.Open);

 byte[] byteArray = new byte[90000];
 mStream = new MemoryStream(byteArray);

 // root xsd class
 XmlSerializer s = new XmlSerializer(typeof(customers));
 customers allcustomers = (customers)s.Deserialize(fStream);

 foreach (customer c in allcustomers)
 {
 textBox1.Text += c.id + “\r\n”;
 }
 }

Also to create a new snippet:

private static FileStream WriteANewXMLForThisXSDGeneratedClass(FileStream fStream2)
 {
 // write something new
 fStream2 = new FileStream(”XMLFile2.xml”, FileMode.Create);
 customers tobeWritten = new customers();
 customer muthu = new customer();
 muthu.id = “one”;
 muthu.name = “muthu”;

 customer kumar = new customer();
 kumar.id = “two”;
 kumar.name = “kumar”;

 tobeWritten.Add(muthu);
 tobeWritten.Add(kumar);

 XmlSerializer s = new XmlSerializer(typeof(customers));
 s.Serialize(fStream2, tobeWritten);
 return fStream2;
 }

It’s really cool…..

  • Download the entire solution from here: Sample

Jun 08

The master page implementation outlined above has another consequence to watch for. Since the master page injects it’s controls and markup into the page’s Controls array, any relative URLs in the master page markup may break. The browser will request the web form, not the master page, so all of the URLs will be relative to the web form. When the web form and master page are in different directories, relative URLs may point to the wrong location. To help alleviate relative URL problems, ASP.NET will rebase relative URLs for server-side controls in a master page. Rebasing will build the correct URL to the resource.

Courtesy from : http://www.odetocode.com/Articles/419.aspx


Apr 16

Imagine a library containing 25 billion documents but with no centralized organization and no librarians. In addition, anyone may add a document at any time without telling anyone. You may feel sure that one of the documents contained in the collection has a piece of information that is vitally important to you, and, being impatient like most of us, you’d like to find it in a matter of seconds. How would you go about doing it?

Posed in this way, the problem seems impossible. Yet this description is not too different from the World Wide Web, a huge, highly-disorganized collection of documents in many different formats. Of course, we’re all familiar with search engines (perhaps you found this article using one) so we know that there is a solution. This article will describe Google’s PageRank algorithm and how it returns pages from the web’s collection of 25 billion documents that match search criteria so well that “google” has become a widely used verb.

To read more, click here