Tuesday, September 08, 2009

Benz Show 2009

Recently I managed a project which targeted iPhone and SharePoint server. This was a project for Dimo who are the dealers for Mercedes Benz in Sri Lanka. Total software services were provided by IronOne Technologies.

When we finalized the technologies I thought that this project will be an interesting one.
But the real interesting part was on the day when I saw all the Benz models present on the day. Even though I have seen international car shows before this, this is the first time I have seen this much of cars of the same manufacturer on the same place live.
You will agree after you see the photos.

Sunday, September 06, 2009

SharePoint Content Placeholders

I found the following image describing the content placeholders in Windows SharePoint Services (WSS) 3.0 master page.
I think I got this from Microsoft. Thanks Microsoft.

Hope it helps to you.

Friday, September 04, 2009

iPhone / iPod Not Shown in iTunes

Is your iPhone or iPod not getting detected by iTunes?
If yes here is the way to get your device back to the iTunes.
iTunes is using two background services (Apple Mobile Device Service and iPod Service) while it is running. These services will be watching your USB ports and if an iPhone or iPod is connected they will detect those.
If your device is not getting detected first thing you need to do is to check the service statuses. It is always good to stop and restart the services using the Services in your machine.
To check the statuses first making sure iTunes is closed and your device is disconnected from USB ports then go to Start -> Control Panel -> Administrative Tools -> Services.
There you will find Apple Mobile Device Service and iPod Service.
Right click on each service and Restart (Better to Stop and Start) them.
Then start iTunes and connect your iPhone or iPod and the device will get detected again in iTunes.
If this fails you need to restart your machine and check again and if that also fails better try reinstalling iTunes with the latest version from Apple.

Friday, August 21, 2009

Missing Textbox in BlackBerry Application

Recently in one of my BlackBerry projects my development team faced a peculiar error.
We were targeting the device BlackBerry 8900 Curve for the project.
The device we purchased was having OS version 4.6.1.114 and our application was functioning properly on that.
But when we sent the application to our client suddenly he was complaining that one textbox was missing completely. Only difference was that the client was using a BlackBerry 8900 Curve having the OS version 4.6.1.250.
Following are the view at the two ends.
At our device.
At the customer site.

To find out the issue we had to even upgrade the BlackBerry OS and we found that in the new OS version the HorizontalFieldManager is having its default width wrong. So our textbox was hidden. We corrected it by the following change, making the sub layout always have a width that we prefer.

hfmtxtPassword = new HorizontalFieldManager() {

protected void paint(net.rim.device.api.ui.Graphics graphics) {

graphics.setBackgroundColor(Color.WHITE);

graphics.clear();

super.paint(graphics);

}

protected void sublayout(int maxWidth, int maxHeight) {

super.sublayout(278, maxHeight);

}

};

Tuesday, August 18, 2009

Updating the OS of Blackberry 8900 Curve

Recently I needed to update the OS of the BlackBerry 8900 Curve device from 4.6.1.114 to 4.6.1.250.
To do this first you need to download the BlackBerry Desktop Manager Latest Version (5.0) and the OS required (4.6.1.250).
You can download the files required at,

Desktop Manager
and select the desktop manager software and download it.

OS
Downloading the correct OS is bit tricky. You need find the correct version for the service provider (Dialog Sri Lanka, T-Mobile, Rogers, etc...). All the available service providers are listed in the above link.

When the download is complete you will get a file similar to 8900jEastAsia_PBr4.6.1_rel378_PL4.2.0.113_A4.6.1.250_Dialog_Sri_Lanka.exe
After completing the download, first install the Desktop Manager and then run the executable (8900jEastAsia_PBr4.6.1_rel378_PL4.2.0.113_A4.6.1.250_Dialog_Sri_Lanka.exe) of the OS. That will add the OS files to a place where desktop manager can use them to update the device.

Browse to the place where the Desktop Manager is installed (C:\Program Files\Common Files\Research In Motion\AppLoader), then delete the "Vendor.xml".
Now run the "Loader.exe" to start the application loading process. Make sure your BlackBerry is connected to the computer. In the second screen you need to select the connection which your device is using (for e.g. USB).
Then after few clicks of the next button the wizard will start installing the new OS to the device.
It will take about 25 minutes to complete the updation process. While that is happening make sure that you are not pressing any buttons on the phone and as also make sure you keep the USB connection alive.
After sometime the BlackBerry will get restarted with the new OS. Enjoy.
I you are having any problems please contact me, I may be able to help you.

Monday, June 08, 2009

Configuring DB Mail to use GMail

Have you configured SQL DB Mail to use GMail to send mails?
This post shows you how to achieve it.
1. Start the SQL Server Management Studio and login as SA.
2. Expand "Management" and right click on Database Mail and click on Configure Database Mail.

3. Select the first radio button and press Next.
If DB Mail service is not started it will prompt you to enable it.4. Put a profile name, then click on Add to configure the SMTP account.5. Click on the New Account, to create the account.
6. You need to put the account name, email address, display name, server name (smtp.gmail.com), port number (587), check the checkbox for Require secure connection (SSL) and select basic authentication as the SMTP authentication method and provide your user name and password.
When all are done press Ok.

7. Now pressing Next will bring you a screen to select the default profile. Select the newly created profile as default and click Next.
8. Using the Configure System Parameters screen you can change the parameters if required. But in this case defaults are perfect. Press Next.
9. Press the Finish button after checking the actions to create the new profile.
10. You can check whether it is properly setup by right clicking on Database Mail and Sending a Test Mail.

Wednesday, June 03, 2009

Bing - But It’s Not Google

Did you check out the new search engine from Microsoft?
If you used to use Live search you may have noted that now you are redirected to Bing, since Bing is replacing Live.
They have named it as BING and its having some few cool new things to look for.
Soon after the launch on 1st June 2009 Bing is getting bit popular at the moment in the context of search engines.
New Explorer Pane
Helps to filter the search results more or to find more related information.
Categorized Search Results
All the results will be categorized accordingly, so you will be able to find the related things easily.
Results Preview
You don't need to open the web site to view its content, Results Preview will show you a preview of the site so you can decide on it faster.
Image Search
You will be able to sort out the results fast according to things such as size, colour, layout, etc.
Video Search
One cool thing is without opening the site you can preview the video being inside of the Bing which will save lot of time.
There are much more it is better you check the rest of the features your self.
Bing
Travel
Maps
Shopping
Health
Local

Saturday, May 30, 2009

Enabling Office SharePoint Server Publishing Feature

To enable publishing features you need to enable publishing in your SharePoint site.
Go to "Site Settings" by using the "Site Actions" button.
Click the "Site Features" link in the "Site Administration" category.
Clicking the Activate button of Office SharePoint Server Publishing to enable publishing.
  • Some of you might get a message saying publishing is not enabled since Office SharePoint Server Publishing Infrastructure is not active.
This is because publishing is not enabled from the site collection level, what you need to do is select "Site collection features" from the "Site Collection Administration" category and activate the Office SharePoint Server Publishing Infrastructure feature for the entire site collection. Then you will be able to activate publishing by going to "Site features".

Changing the Default Welcome Page of a Site

Do you know that we can change the default page of a site in SharePoint?

This is done by going to "Site Settings" and accessing the "Welcome page" option under "Look and Feel" category.
  • If you cannot find a link named "Welcome page" that means you don't have Office SharePoint Server Publishing enabled on your site. If you need more help on how to enable Office SharePoint Server Publishing please feel free to read my next post.

Now browse or type the page that you want to set as the welcome page and click Ok.

Wednesday, May 20, 2009

Temporary Internet Files Location

Did you ever tried to locate the place where the temporary files of the Internet Explorer is stored?
Knowing the location is really worth if you edited a file while keeping it in the temporary folder and accidentally close the file without saving it into a proper place.
Exact same thing happen to me, even though I knew the place where it would go in a Windows version prior to Windows Vista, but surprisingly it was different in Windows Vista.
So had to struggle a bit to find it, and I was too late to recover the changes that I did to the document. But since it is here, you are not too late.
C:\Users\ArjunaC \AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\Content.IE5
The trick here is the folder named 'Low' is completely hidden by Vista, even you enable, show hidden and system files and folders the folder 'Low' will not appear. But you will be able to type it and browse the contents of the folder.

Friday, February 20, 2009

Offline Email in GMail

Have you checked offline GMail in action?
GMail team had developed GMail to work even when there is no internet is available.
It is a cool thing to us because we always are not connected to internet. Adding to that it is simply great since we don't have to install anything and it will work in Microsoft Internet Explorer as well.
Check it out by enabling it by going to settings page in your GMail account, click on Labs, select the Enable radio button of Offline feature and press on Save Changes button.
Then a link named Offline will appear in the top right of the GMail page. You can initiate the mail synchronization by clicking on this. It will guide you in setting up the feature.

Thursday, February 12, 2009

IE Developer Toolbar not Working

Recently I needed to install IE Developer Toolbar to get some values of some applications. But after the installation I found out that it is not displaying any information about the loaded site.
Later I got to know that IE Developer Toolbar is not working if Internet Explorer Enhanced Security Configuration is installed.
So if you are also facing the same problem go to Add / Remove Programs and open up the Windows Components wizard and uncheck Internet Explorer Enhanced Security Configuration to remove it and when the wizard is finished and after you have restarted the Internet Explorer the IE Developer Toolbar will function as usual.

Monday, January 19, 2009

Changing Execution Timeout in SharePoint

If any of the tasks that you are performing in your site takes more time than usual and if the page is timing out then one solution that you can do is to increase the execution timeout value.
To change this value you need to edit the web.config files of SharePoint and the web site.

1. Open the SharePoint web.config file located at
Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\TEMPLATE\LAYOUTS
(C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS)
using NotePad or Visual Studio.
2. Find the section and insert executionTimeout value there as shown below. 3. Save the site config file.4. Now you need to edit the web applications' web.config file. Normally this can be found under Drive:\Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder(C:\Inetpub\wwwroot\wss\VirtualDirectories\82)using NotePad or Visual Studio. 5. Find the line maxRequestLength and add executionTimeout in to it as shown below. 6. Save the application config file.7. Do an IIS restart and then your change will be in effect.

Thursday, January 15, 2009

Changing the IIS Connection Timeout

For many reasons you might need to increase the IIS connection timeout.
The many reasons can be many time consuming processes, large transactions, slower connections, etc.
As a result if your application is timing out, one thing you can do is to increase the connection timeout.
  • To change the timeout value you need to open Internet Information Services (IIS) manager. Either type InetMgr in the Run window or click on Start -> All Programs -> Administrative Tools -> Internet Information Services (IIS) Manager.
  • In the IIS Manager expand the main node and right click on the Web Sites and click on Properties.
  • In the Web Sites Properties page give the appropriate value in the Connection timeout field under Connections section in Web Site tab and press Ok.
  • Now to make the setting take effect restart the IIS by either typing IISReset in the Run window or right clicking on the machine name and going to All Tasks and clicking on Restart IIS... in the IIS Manager.

Tuesday, January 13, 2009

Configuring Large File Uploading in SharePoint

As you have noted the maximum file size that is supported by SharePoint by default is 50MB. What if you want to upload larger files?
Luckily we can change this limit to support larger files by increasing the default upload size in SharePoint Central Administration.
1. Go to SharePoint Central Administration by clicking on Start -> All Programs -> Administrative Tools -> SharePoint x.x Central Administration.
2. Click on Shared Services Administration link on the administration home page. 3. Click on SharedServices1 (Administration site host) link in Manage this Farm's Shared Services page to open the Web Application General Settings page. 4. Find the Maximum Upload Size property and change it to the maximum upload file size you want. Note that you can put file sizes up to 2GB (2047MB). Now you will be able to upload larger files than 50MB.
But to support uploading large files you also may need to increase the default timeout value.
I will be posting the next post of mine on how to increase the timeout value.

Monday, January 12, 2009

Windows 7

Next version of Microsoft Windows is here.
It is still in beta, but in Microsoft site you can preview it and even download a beta version.
Have a look at it.
http://www.microsoft.com/windows/windows-7

Tuesday, December 30, 2008

Exception from HRESULT: 0x80040E14

Recently in SharePoint server I got an error when trying to do almost any action.
The error was Exception from HRESULT: 0x80040E14.
After sometime I did find out, that my C drive has gone out of disk space, and that caused SQL transaction log creation failure which resulted this error.
So freeing up more space on C drive solved my problem.
You will be able to get more details of the error by checking SharePoint log files.

Saturday, December 06, 2008

Planning to Buy a Vehicle?

Thought to share some expensive and valuable information that might help you if you are planning to buy a vehicle. Lookout for two main things.
1. Quality of the Vehicle
2. Legal Side of the Vehicle

Although most of the things I mention in this are specific to Sri Lanka I definitely know there are similar things to check in other countries as well.

1. Quality of the Car
If you are buying a brand new vehicle this is not required because the company will give you the details technical overview and will also give you a warranty.
But if you are going for a used vehicle then you have to check for its quality. Anyway I am not that good in the technical side so you have to rely on the knowledge that you have or someone who knows better.

2. Legal Side of the Vehicle
This is one area most people are not paying that much interest. But this is the most important side, imagine a vehicle that you buy having problems with its documents, If that happens you wont be able to transfer it to your name with ease. Sometimes you even might need to go to courts. If that happens you face the difficulty when selling as well because no one would buy a vehicle from you that you don't own. Further more I advice you to check the vehicle documents because if you buy a technically unfit vehicle you can go to a mechanic and get the vehicle repaired after spending some time and money. But if documents are not good then it will be a big issue.
So what are these documents that you have to look for?

1. Certificate of Registration (CR)
This certificate will have all the details of the vehicle such as Make, Model, Year of Manufacture, Registration Number, Chassis Number, Engine Number, Present Owner, Absolute Owner, Previous Owners, Etc.
All of these are important to check, but for a successful legal transfer of ownership to you present and absolute owners are important. Always it is better to buy a vehicle from the person mentioned in the present owner field. Because the vehicle is owned by him. There are cases which people will keep vehicles with open papers.
Open Papers means that the owner will not get the vehicle transferred to his name, but he will get a set of forms filled from the seller and keep with him.
For example if Mr. ABC is buying a vehicle from Mr. STUV (Mr. STUV is the current owner in the CR). Mr. ABC will keep the transfer documents signed by Mr. STUV after doing the payments to Mr. STUV, but he will not fill them or submit them to the Department of Motor Vehicles for registration.
One advantage of open papers is the number of owners will be lesser.
One disadvantage of this is, if buyer needs to transfer the vehicle to his name he will not be guaranteed that the transfer will happen smoothly since his transferee will be an unknown person. For example in the above case if Mr. ABC is going to sell the vehicle to Mr. XYZ and if Mr. XYZ is needing to get the vehicle transferred to his name the legal transferee will be Mr. STUV who is unknown by Mr. XYZ. In which case while the transfer process is happening problems might arise.
Absolute owner - In normal case this field should be empty. If this is filled with some name that means the vehicle is on a finance or lease. In this case you cannot buy directly from the current owner. That is because when the absolute owner is superior to the current owner. So you will be needing a no objection letter from the absolute owner.
Also note in either case a company is printed under Current Owner or Absolute Owner you will be needing a no objection letter from the company in a company letter head, with the emboss seal and signed by a rightful director of the company.

2. Vehicle Identity Card (VID)
All the English number registered (HE, KA, KC, ...) vehicles will have a VID. you will be requiring this VID to carry out any legal things on the vehicle (Transferring the vehicle to you).
This is only applicable to English numbered vehicles since it is issued new.

If you follow these I think you would be able to buy a vehicle and live peacefully.

Visual Studio not Showing Errors

Is your Visual Studio showing error line numbers and respective pages while you develop?
If not read on, recently I came up to a machine which was having Visual Studio error. Visual Studio was showing errors when a project is compiled but the error details (error code line number, error file) which we can use to identify the error are not displayed.
After trying out several things found the cause of it and thought to share it.
The problem was not with the project but with the path the project was kept.
In the machine the failing project was stored under a folder which was having parenthesis or brackets "(".
For example the solution path was like C:\ProjectsA(V1)\MyProj\.
The (V1) part was confusing Visual Studio making it stop displaying the error details.
If you also have the same problem simply remove the brackets by renaming the folder and reload your project to Visual Studio from the new path. The error details will be shown correctly.

Friday, November 21, 2008

Regular Expressions

In the resent past I had to write some simple regular expressions.
So thought of sharing them with you.

An EMail Address Validator

^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}[0-9]{1,3})(\]?)$
This will validate the entered EMail address.

A Password Validator

(?=.{6,})[a-zA-Z]+[^a-zA-Z]+[^a-zA-Z]+[a-zA-Z]+
This will validate the password to have at least 1 alphabetic character and 1 numeric digit, and altogether the password will be more than 6 characters long.

A Telephone Number Valdator

\d{4}\s\d{3}\s\d{6}
This will expect the telephone number to be in international format. For example (0094 777 123456).

A Simple Length Validator

[\s\S]{1,200}
This will allow only only 200 or lesser characters for input.


A Length Validator Which Works With Linefeed (Return, Enter)

^(.\n){0,500}$
This will validate and allow only 500 input even in a multi line field when linefeed (enter) is used in between.

A Date Validator

(0[1-9]1[012])[- /.](0[1-9][12][0-9]3[01])[- /.](1920)\d\d

This will check for the date validness. The date format should be mm/dd/yyyy to correctly validate by this.

If the date format is required as yyyy/mm/dd then use the following.

(1920)\d\d[- /.](0[1-9]1[012])[- /.](0[1-9][12][0-9]3[01])

Following are some good sites that you can refer for regular expression help.

http://www.visibone.com/regular-expressions/

http://books.google.lk/books?hl=en&id=NYEX-Q9evKoC&dq=Regular+expressions&printsec=frontcover&source=web&ots=qok1lUQubw&sig=XVd8_Z3hM_CWqk5r9dupyAWIllk&sa=X&oi=book_result&resnum=6&ct=result#PPP1,M1

http://regexlib.com/CheatSheet.aspx

Monday, November 17, 2008

Installing HyperV Integration Services

I think at least some of you might have started using Hyper V.
Did you feel how difficult to move from your Host Operating System (OS) to Guest OS (You have to click some keyboard combinations to move in and out).
To make our life easier you can install HyperV Integration Services to the guest OS.

To install, after starting your virtual machine click on the Action menu and click Insert Integration Services Setup Disk. This will start the installation process. After this finishes you no need to click key sequences to go back and forth among the OSs.
This will also install the required components so that the virtual machine will be able to communicate with local area networks and internet.
Please note that you need to install the Integration Services in each and every virtual machine separately.

Thursday, November 13, 2008

Google Video Chat

Check out the new Google Video chat.
Now you can video chat using GMail.

http://mail.google.com/videochat

Hyper-V

Hyper-V is the name for the next generation hypervisor-based server virtualization technology from Microsoft.
This is included in Windows Server 2008 as a role and enables you to create and manage virtual servers or machines.
A free version of this also available which is named as Microsoft Hyper-V Server 2008. This is a Windows core having only the Hyper-V functionality enabled.
If interested better visit the following sites.
http://en.wikipedia.org/wiki/Hyper-V
http://www.microsoft.com/windowsserver2008/en/us/hyperv-overview.aspx
http://www.microsoft.com/windowsserver2008/en/us/hyperv-faq.aspx