UAE National Day 2012

UAE National Day 2012

On a cold evening walked from Emirates Palace hotel till Marina Mall to take some photos. Somehow, Rasena and kids co-operated. I miss Nikon D600 for this a lot.

 

It was a blooper taking photos of fireworks. Actually the first day fireworks on one side. So the second day, thinking the fireworks will be on the other side of corniche, we walked a lot towards Emirates palace.

 

Bang!! They put the fireworks on the same side. I had to zoom and cover it. Will post some fireworks photos soon.

 

Windows 8, Visual Studio 2012

Hi,

Started using Windows 8 and Visual Studio 2012 from today. Its the MSDN subscription release.

Installed on my office PC. The upgrade option from Windows 7 was not successful.

Had to overwrite Windows 7. I really felt some serious improvement in the operating system. You can expect a series of post on these two topics.

Going to attend the Metro App. development Boot camp next week in Dubai.

 

Usually I wait for around 2 minutes to boot into Windows 7 at home. Today it just booted within few seconds. Awesome. It was never like this before.

 

Initially struggled a lot to navigate through. Some of the short cuts of traditional windows remains the same. like

  1. Alt + Tab
  2. Alt + F4
  3. Alt + [Space] (only in Desktop mode)

 

Found hard to close any application. Either u can use Alt + F4 or drag from the top of any app. and drop in the bottom of the screen.

Browsing experience is so far good. Liked the metro style apps.

 

“You have no choice. you will be using this in another few months, for sure.”

 

See you in another post.

 

OracleBulkCopy Privileges

I had to export an excel file into a DB. The excel file contains cross tab information. So I had to store it in the DB as normal table. When I insert row by row, it took 150 seconds for a 800 row excel file.

 

So decided to optimize using OracleBulkCopy. When I tested in staging server, it took only 48 seconds for the same file.

 

After deploying the solution in production, I was getting the following error as the production environment is using a restricted/scaled down user.

ORA-01031: insufficient privileges

Even after granting the user, Insert privilege, the same error.

 

Finally found out “Select” privilege is also required. Though, not sure why this is required.

 

 

wkhtmltopdf – inconsistent conversion

For the past 2-3 days, i stuck with wkhtmltopdf tool. We have an ASP.NET application converting some html files to pdf files. It worked perfectly in dev/QA server. We are using .NET Process class to start the conversion.

The development server is “Windows Server 2008 R2″. The production server is “Windows Server 2003″ :)

hahaha Wait a minute! We will upgrade our production soon.

Ok, the problem here with the production server is, the html to pdf conversion is not consistent. One in 8 attempts it worked. After trying the followings

  1. give some pause for the process to complete
  2. thinking some image references is the problem, replaced absolute path with relative path

Nothing helped. It was really frustrating. My colleague Vijay asked to check if any command line option will help.

I tried the “-q” global option in the wkhtmltopdf tool and it worked perfectly everywhere. Don’t know the actual cause of this problem yet. Hope this helps someone.

 

Update: still not working consistently. planning to upgrade the server to Windows Server 2008 R2, before MS releases Windows Server 2012.