Archive

Archive for the ‘Computer Science’ Category

Microsoft Bing: Much better than expected | Webware – CNET

Google Unlocks it’s Server Design

April 2, 2009 2 comments

Google revealed one of their server design. Google posses one of the most efficient, reliable and secure data centers and has revealed it’s server design to help increasing problems of huge Data Centers. For details please read the detailed article at here.

Top 10 Traits of a Rockstar Software Engineer

March 25, 2009 Leave a comment

I came across this excellent post on ReadWriteWeb about 10 traits of a Rockstar Software Engineer and I could not agree more. In 10 traits every thing about a software engineer is sufficed. It is a true analysis of what a software engineer must equip of. The traits are,

  1. Loves To Code
  2. Gets Things Done
  3. Continuously Refactors Code
  4. Uses Design Patterns
  5. Writes Tests
  6. Leverages Existing Code
  7. Focuses on Usability
  8. Writes Maintainable Code
  9. Can Code in Any Language
  10. Knows Basic Computer Science

Read them, analyze them and if you are a software engineer find how many you have from these. For more details read the complete post with description of each trait at here.

Demo – The Sixth Sense

March 11, 2009 Leave a comment

TED continues to prove to be the best meeting place for innovators and geniuses. Here is another brilliant video on Sixth Sense. Well though naming it sixth sense sounds a bit odd but video is superb!

Wonderful posts at TED

February 17, 2009 Leave a comment

Today I am going to write about three wonderful talks on TED (Technology, Entertainment, Design).

Number 1: Bill Gates unplugged at here on solving biggest problems of world and these are not technical btw :).

Number 2: Barry Schwartz’ passionate plea for practical wisdom, a standing ovation talk best in 2009.

Number 3: Technological wonderous :) in nature. Digital blocks with computational ability. MIT grad student David Merrill demos Siftables — cookie-sized, computerized tiles at here.

The last one is specially awesome to watch.

Find the complexity of code.

October 29, 2008 13 comments

I came across measuring complexity of a piece of code, which is really tricky one. Following is the code,

void function( int n)
{
while(n > 1)
n = sqrt (n); // assume sqrt returns square root of any number and ignore the complexity of square root
}

If any one wants to try this do try :) and post your answers.

Launching Executables (showing GUI) from Web Services deployed in IIS

October 16, 2008 6 comments

Recently one of my senior colleague was faced with a problem of launching executables from Web Services hosted in IIS. Following is the problem he was faced with (as is email),

“I am working on a dotNet web service that needs to launch an executable (.exe). I have used System.Diagnostics.Process to launch the process. When I run through VS2005 test environment, web service triggers the executable and its UI is displayed (e.g., launching notepad). But when I deploy the web service under IIS, the web service does launch the process but UI does not appear.

Can someone shed some light on what is happening and suggest a solution to this”

After searching on the internet I found the following solution and it worked fine.

According to Microsoft following are the reasons for this

1.    By default, ASP.NET runs its worker process (Aspnet_wp.exe) with a weak account (the local machine account, which is named ASPNET) which don’t have permission to interact with desktop.
2.    By default, IIS Admin Service won’t allow its application to interact with desktop.

These can be resolved by:

1.    Allowing worker process(ASP.NET) to run in SYSTEM account.
This can be done by editing the machine.config file which is located at (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG. Open the machine.config and find the ProcessModel tag and add the following attributes to it,

userName=”SYSTEM” password=”AutoGenerate”

2.    Enable IIS Admin Service to interact with desktop. To configure this, follow this steps.

a)    Open Control Panel and follow these steps:
For Windows NT: click Services.

For Windows 2000, Windows XP, and .NET Server: click Administrative Tools, and then click Services.
b)    Double-click IIS Admin Service.

c)     On the Log On tab, select the Allow Service to Interact with Desktop check box.

d)    Stop and restart the IIS Admin Service.

3.    Sometimes ASP.NET account does not have enough privileges to access certain WMI namespaces. So to resolve this do the following

a)    Open the Computer Management Microsoft Management Console (MMC) snap-in.
b)    Expand Services and Applications, and then select WMI Control.
c)    Right-click WMI Control, and then click Properties.
d)    In the WMI Control Properties dialog box, click the Security tab.
e)    Expand Root, select CIMV2, and then click Security.
f)    In the Security dialog box, click Advanced.
g)    In the Access Control Settings dialog box, click Add. Select localMachineName\ASPNET, and then click OK.
h)    In the Permission Entry dialog box, make sure that Apply Onto is set to This namespace and subnamespaces.
i)    Make sure that the Allow ‘Enable Account’ and Allow ‘Remote Enable’ check boxes are selected.
j)    Click OK in each dialog box until you return to the WMI Control Properties dialog box.
k)    Repeat steps 5 through 10 for other WMI namespaces that your application will access.
l)    Restart IIS. To do this, run IISRESET from the command line.

Information obtained from:

http://support.microsoft.com/default.aspx?scid=kb;en-us;317012

http://support.microsoft.com/kb/555134

Regards,

Follow

Get every new post delivered to your Inbox.