Archive

Archive for the ‘Misc’ Category

Success or Luck

July 14th, 2011

Success or luck, yeah there could be a lot of debate on it. Lot of material could be read on Internet about it. Let me focus on successes in interviews only. Before any interview, we usually surf internet, any related materials, have gossips with colleagues/friends for tips and stuff Read more…

Misc , , , , , ,

Understanding Windows Error Reporting (WER)

March 5th, 2011

Misc, Windows , , , , , ,

Disater Recovery — Sound Good

February 10th, 2010

Disaster recovery is something every one looks to here is in place. In fact very few companies ever tried to actually review the plan and exercise is as well. In hard economic situations, organizations find it hard to actually implement disaster recovery practices with full strength but they also need it for a good selling point.

Read more…

Misc , , , , , ,

Ay Quaid Bohat Sharminda Hain

August 13th, 2009

The great legend we have forgotten completely. To utter disappointment we are also getting rid of even his presence in our state buildings. Here found the speech given by QUAID on the inauguration of Pakistan assembly

quaid

Speech on the inauguration of the Pakistan Constituent Assembly at Karachi: August 14, 1947

Your Excellency. I thank His Majesty the King on behalf of the Pakistan Constituent Assembly and myself for his gracious message. I know great responsibilities lie ahead, and I naturally reciprocate his sentiments and we are grateful for his assurance of sympathy and support, and I hope that you will communicate to His Majesty our assurance of goodwill and friendship for the British nation and himself as the Crown head of the British.

I thank you for your expressions of goodwill and good wishes for the future of Pakistan. It will be our constant endeavor to work for the welfare and well-being of all the communities in Pakistan, and I hope that everyone would be inspired by the idea of public service, and they will be imbued with the spirit of co-operation and will excel in their political and civic virtues which go to make a great nation and help to advance its greatness.

I once more thank you and Lady Mountbatten for your kindness and good wishes. Yes, we are parting as friends and sincerely hope that we shall remain friends.

I wish to emphasize that we appreciate the spirit in which those in the Government service at present and in the Armed Forces and others have so willingly and ungrudgingly volunteered themselves provisionally to serve Pakistan. As servants of Pakistan we shall make them happy and they will be treated equally with our nationals. The tolerance and goodwill that great Emperor Akbar showed to all the non-Muslims is not of recent origin. It dates back thirteen centuries ago when our Prophet (Peace be upon him) not only by words but by deeds treated the Jews and Christians, after he had conquered them, with the utmost tolerance and regard and respect for their faith and beliefs. The whole history of Muslims, wherever they ruled, is replete with those humane and great principles which should be followed and practiced.

Finally, I thank you for your good wishes for Pakistan, and I assure you that we shall not be wanting in friendly spirit with our neighbors and with all nations of the world.

Dear Quaid, hum bohat sharminda hain. I feel ashamed of whatever negligence I have committed and made my homeland ill-place to live. I am sorry that I was not able to make your Pakistan, my Pakistan. I was not able to work like you want me to work. I was not able to love Pakistan like you wanted me to. At the end, I request ALLAH and his MESSENGER that please we want 1948 ka Pakistan. Give us back the same level of dignity, enthusiasm and faithfulness of 1948. Please please ……..

Misc , , , , , , , , , , , , , ,

Kiwi’s — Not Again

June 17th, 2009

In 20-20 world cup, kiwis are behaving childishly after loosing a game against Pakistan :) Whenever Pakistan is doing good or any bowler is performing excellent, media started looking into any issues that may create problems. Usually aussies are the ones but now Kiwis are also behaving the same way.

Umer Gul performed excellent and kiwis were just got stunt on what has hapened to them. Kiwi’s captain complained to the empire and empire & match refferee tested the bowl and found it in perfect condition. After the complaint at least kiwis should shut their mouth. But obviously they wanted to deviate the concentration of Pakis. 

Well done Pakis, keep it up and don’t get embarassed

General , , , , , , , , ,

How to recover admin password for WordPress

March 19th, 2009

In the beginning of this week, when I tried to log into my wordpress, I came to know my password has been modified. Then immediately as I opened my website, it was redirected to some other url. When I contacted my ISP, I came to know the server has been hit by brute force attack. Then this is what I have done:

- Copied index.php again from word press to my website so that it stops redirecting itself.

- In order to recover my admin password for my word press, I googled and came across this url: http://www.zappersoftware.com/Help/md5.php which helps generating password in MD5 format. I copied the MD5 password and connected to my word press database and modified my admin password. This time I included special characters as well :) for more protection.

Wordpress , , , , , , , ,

Message of Condolence for Sri Lanka

March 4th, 2009

I feel deep sorrow over the incident happened with Sri Lankan team here in Pakistan. As a Pakistani, I feel sorrow and ashamed as well not being able to provide you (Sri Lankan Team) with the hospitality and security that you (Sri Lankan Team) deserve. We Pakistanis condemn all such terrorist activities and would like to stand by you. Please accept our sorrow, and grief over this incident. We would like to play with your team again and again. And please do not consider this incident to stop playing cricket with us OR may it effect Pakistan’s relationship with Sri Lanka.

I do not have a lot of words to condol you as I am short of words and words might not heal all of it.

Please send this message of condolence to all of the following:

Duleep Mendis
Chief Executive Officer
Email: ceo@srilankacricket.lk

Charith Senanayake
Head of Marketing
Email: homarketing@srilankacricket.lk

Ashley de Silva
Head of Operations
Email: dco@srilankacricket.lk

Jerome Jayaratne
Head of Coaching
Email: coachingdepartment@srilankacricket.lk

Chandramalie Korale
Head of Finance
Email: hofinance@srilankacricket.lk

Media Manager
Email: media@srilankacricket.lk

B H Perera
Administration Manager
Email: admin@srilankacricket.lk

Chandima Mapatuna
Manager – Tournaments
Email: tournament@srilankacricket.lk

Ronnie Gunaratne
Manager – Umpires
Email: umpires@srilankacricket.lk

Chanaka Senanayake
Head of Legal & HR
Email- legal@srilankacricket.lk

Above addresses are taken from http://www.srilankacricket.lk/contact_us.asp

Misc , , , , , , , , , , , , ,

Windows Azure

November 22nd, 2008

Windows emerged as one of the most user friendly operating system we have been using since many years. With the advent of technology, world is moving towards a distributed environment. Our businesses have been utilizing services of different providers for hosting, data centers, and corporate services. Not all of those providers offer a full range of services that our businesses need.

Looking at that requirement, Microsoft has announced Windows Azure utilizing Microsoft infrastructure running in MS data centers. Microsoft has offered a full range of services. If a business is using Microsoft technologies it could be one of the best solutions for you. Here is what Windows Azure may offer:

  • It provides a development, hosting and service management environment.
  • It is an open platform that supports both Microsoft and non-Microsoft languages and environments.
  • You may use its run time capabilities like ASP.Net, IIS 7.0 and .Net 3.5 just to name a few.
  • Web portal to deploy, utilize and upgrade your services
  • Its data storage supports authentication, and replication.

Just imagine using services on internet already available on Windows Azure for your business:

  • Windows Live
  • Office Live
  • Exchange Online
  • Sharepoint Online
  • Dynamic CRM Online

At a glance this is what services are being provided:

As per the figure, Windows Azure runs on multiple machines, all located in Microsoft data centers and accessible via the Internet. Windows Azure computing services are based on Windows.

Community Technology Preview (CTP) was made available in fall 2008. Microsoft has allowed to run .Net framework based applications on this new platform. MS has plans to support unmanaged code as well in future. A lot of details may be found at www.microsoft.com/azure/default.mspx

Windows , , , , , , ,

Happiest Day of My Life

November 4th, 2008

24th Oct, 2008 happened to be the happiest day of my life. On that day, GOD blessed me with a baby boy. Unexplained happiness, joy, honour blah blah blah were the feelings when I heard of this news. At the same time, tears of happiness came out of my eyes.

It was hard to wait when I can see my little angel. It was the unforgetable moment to see him weeping and opening up his tiny mouth for first feed. Having just heard what is the feeling of being parent and actually being a parent is entirely different that can’t be explained. We’ve named him “Hasan”.

Thanks GOD several times who has shower HIS blessings upon me and my wife in the form of my son. May GOD always bless my child.

General , , , , , , ,

Build Automation

October 13th, 2008

You must be hearing and working as well on all the buzz about build automation, minimizing the chances for manual interaction by CC personnel. Yet it is a challenge to keep build scripts updated at all the times. I will talk about two tools that I have used for build automation and will share my experiences. I liked two aspects regarding build automation. These are:

  • Continuous Integration
  • Automated Build Generation

When I say continuous integration, I mean:

  • Monitor changes in the repository
  • Publish the results via web and email

When I say build automation, I mean:

  • Get source code from the repository
  • Build the complete application package
  • Executing unit tests
  • Coding standards validation using FxCop or some other tool
  • Creating documentation using NDoc or some other tool

My choice is to use CruiseControl.Net for continuous integration and NAnt for build automation. I feel more power & flexibility using NAnt. I am more comfortable using its tags. Its your choice you may make use of CruiseControl.Net tags if you want. In the following I would show you sample scripts for both of these tools to work hand in hand.

CruiseControl.Net (Continuous Integration)

This tool as I mentioned is used for Continuous Integration. Once the repositories are in place, we can make use of this tool so that on every change in the repository OR in a timely manner, this process could be started off.  You can download this tool from http://ccnet.thoughtworks.com.

It is purely xml based, you just need to configure its configuration file named ccnet.config. In the following, you will find a sample script which will contain tags for the repository to monitor, call NAnt & publish results on web and email.

<cruisecontrol>
<project name=”ProjectName”>


<sourcecontrol type=”vss” autoGetSource=”true”>
<ssdir>\\YourServer\vss\</ssdir>
<executable>\\YourServer\vss\win32\SS.EXE</executable>
<project>$/ProjectName</project>
<username>YourUsername</username>
<password></password>
</sourcecontrol>

<!– Changed to correct url –>
<webURL>http://localhost/ccnet</webURL>
<schedule type=”schedule” sleepSeconds=”60″/>
<build type=”nant”>
<executable>DrivePath\nant\bin\NAnt.exe</executable>
<baseDirectory>DrivePath:\projects\ProjectDir\</baseDirectory>
<buildFile>MyBuild.build</buildFile>
<targetList>
<target>build</target>
</targetList>
<buildTimeoutSeconds>300</buildTimeoutSeconds>
</build>
<modificationDelaySeconds>10</modificationDelaySeconds>
</project>
</cruisecontrol>

The above is a sample script file that contains source control tag for VSS. Repository mentioned in this tag will be monitored for any changes. Then in the build type tag, NAnt has been invoked using build tag. NAnt will automated build generation. When cruise control is being invoked, this script gets executed.

Let’s look at NAnt now.

NAnt (Build Automation)

The above script will invoke NAnt whenever there is a change in the repository. NAnt is also open source, which is an equivalent for .Net like Ant for Java. Using NAnt we will generate the complete build and related processes. It could be downloaded from http://nant.sourceforge.net/.

Along with NAnt you will also need NAntContrib, its a contribution written over NAnt to provide you with some additional tags. NAntContrib can be downloaded from http://nantcontrib.sourceforge.net/. You will just need to copy all the contents of bin folder from NAntContrib to NAnt bin folder, and you are done. You will start getting all the advantages of NAntContrib as well.

NAnt’s configuration file is named like FileName.build. It’s an xml file as well, so no need to worry about any specific structure. Just need to get familiar with its tags. Sample script is as follows:

<?xml version=”1.0″?>
<project name=”ProjectName” default=”build” basedir=”.” xmlns=”http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd”>
<description>Write down any description</description>

<!– ********** –>
<!– Properties –>

<!– Solution.Filename represents the filename of the solution to build –>
<property name=”Solution.Filename” value=”DrivePath:\Project.sln”/>
<property name=”Solution.Configuration” value=”RELEASE”/>
<property name=”Build.OutputFolder” value=”Drive_Path\BuildLocation\”/>
<!– End Properties –>

<!– build will trigger main build –>
<target name=”build” description=”compiles the source code”>
<call target=”runGetLatest”/>
<solution solutionfile=”${Solution.Filename}” outputdir=”${Build.OutputFolder}${sys.version}\” configuration=”${Solution.Configuration}”/>
<call target=”runUnitTests”/>
<call target=”runFxCop”/>
<call target=”runCreateDocumentation”/>
<call target=”runCopyResults”/>
</target>
<!– End Targets –>

<target name=”runGetLatest”>
<vssget
user=”username”
password=”pwd”
localpath=”PathToGetCode”
recursive=”true”
replace=”true”
writable=”true”
removedeleted=”false”
dbpath=”\\Path\VSS\srcsafe.ini”
path=”$/DirNameInVSS”
/>
</target>

<!– runUnitTests will run the nunit task on the test dlls –>
<target name=”runUnitTests” description=”Runs unit tests on specified dlls”>
<nunit2 failonerror=”false” verbose=”true”>
<formatter outputdir=”${Build.OutputFolder}${sys.version}\” usefile=”true” type=”Xml” extension=”.xml”/>
<test>
<assemblies basedir=”${Build.OutputFolder}${sys.version}\”>
<includes name=”*Test.dll”/>
</assemblies>
</test>
</nunit2>
</target>

<!– runFxCop will run the fxcop file of the same name as the nant project –>
<target name=”runFxCop”>
<exec program=”DrivePath\fxcop\fxcopcmd.exe”
commandline=”/p:${nant.project.basedir}\${nant.project.name}.fxcop /o:${Build.OutputFolder}${sys.version}\fxcop-results.xml” failonerror=”false”/>
</target>

<!– runCreateDocumentation will create msdn type documentation for the building solution –>
<target name=”runCreateDocumentation” description=”Will create documentation for Buidling Solution”>
<ndoc>
<assemblies basedir=”${Build.OutputFolder}${sys.version}\”>
<includes name=”ProjectAssembly.dll” />
</assemblies>
<summaries basedir=”${Build.OutputFolder}${sys.version}\”>
<includes name=”Project.xml” />
</summaries>
<documenters>
<documenter name=”MSDN”>
<property name=”OutputDirectory” value=”${Build.OutputFolder}${sys.version}\doc” />
<property name=”HtmlHelpName” value=”ProjectNAme” />
<property name=”HtmlHelpCompilerFilename” value=”hhc.exe” />
<property name=”IncludeFavorites” value=”False” />
<property name=”Title” value=”ProjectName” />
<property name=”SplitTOCs” value=”False” />
<property name=”DefaulTOC” value=”" />
<property name=”ShowVisualBasic” value=”True” />
<property name=”ShowMissingSummaries” value=”True” />
<property name=”ShowMissingRemarks” value=”True” />
<property name=”ShowMissingParams” value=”True” />
<property name=”ShowMissingReturns” value=”True” />
<property name=”ShowMissingValues” value=”True” />
<property name=”DocumentInternals” value=”False” />
<property name=”DocumentProtected” value=”True” />
<property name=”DocumentPrivates” value=”False” />
<property name=”DocumentEmptyNamespaces” value=”False” />
<property name=”IncludeAssemblyVersion” value=”False” />
<property name=”CopyrightText” value=”" />
<property name=”CopyrightHref” value=”YourCompURL” />
</documenter>
</documenters>
</ndoc>
</target>

<target name=”runCopyResults”>
<copy todir=”${Build.OutputFolder}Latest\”>
<fileset basedir=”${Build.OutputFolder}${sys.version}\”>
<includes name=”*-results.xml” />
</fileset>
</copy>
</target>
</project>

In the above you will find tags for getting latest source, building the solution, running fxCop & NDoc. I have shown in this sample some tags that may help to get started with CC.Net and NAnt.

Misc , , , , , , , , ,


Copyright © 2006-2011 W@rfi