Self discovering

Archive for February, 2005

Two Kinds of Developers

Monday, February 21st, 2005

Mark is trying to tell readers about different kinds of developers,read yourself what`s he trying to say


nice C# tips

Monday, February 21st, 2005

Check this out


Compressed FileSystem(CFS)

Saturday, February 19th, 2005

I have been thinking /willing of a Compressed File system which can work similar to MP3 mechanism(i am not 100% aware of Mp3 mechanism but heard that it decompresses the file during playing and then it compresses again) ..

what I mean to say that,that Applications are deployed in compressed format(say have extension .cmp) on User machines,i am not talkig about Zipping the EXEs or MSI stuff in Zipped format..what i mean that instead of making simple MSIs or Setup Exes who get extracted on client machine during installation, the Compressed program gets installed on client machine with a shortcut link on Desktop or in start menu,the link will point to .cmp file which will initially opene the Header section or Base system section for the user (it could be a GUI or a Command line application..whatever)the base system system will have all necessary options which are part of that system.Whenever user selects some particular option of the system the files(dlls or whatever) of that particular section will get loaded only,and when the user closes that particular section,e.g Form Dialog)the files will get decompressed again)

Well will be wondering how come a single Compressed file could do all this?well i think that associated DLLs or exes could be loaded in memory to perform required tasks,it involves temporary Assembly registration in GAC and Registry,we could add references of all files who are packaged in .cmp format in Registry,so that they can be refer during uncompression of required files..

once the dialog form is unloaded,the files will also get removed from hardisks and from registry as well as memory..

these are just crazy thoughs..not sure how it could be done..what i know its not impossible,maybe we cant achieve 100% results but i think 70% could be achieved and 100% if filesystem itseld supports the mechanism,custom mechanism might not get so much success


Filesystem Watcher -A nice article

Saturday, February 19th, 2005

Luc Archambaultn has posted a very nice article about file System watcher class ,and came up with very wonderful utility.


AntiProgramming Day

Saturday, February 19th, 2005

for last 36 hours,i have not been writing a word which could help me to finish my projects,,reason?well i didn`t want to..i was tired ..

this morning i recieved mail from one of my good friend Taylor replied my mail about Mozilla Extension development

he came up with two good articles mentioned in his post,i am very tired ,there was a looong journey,because most of routes were block due to Moharram rallies..

tomorrow i have to resume work on my project(i won`t reveal details :D )and prolly i would do some more research on Mozilla/Firefox Extensions


Assigning keyvalues pair to ComboBox in C#

Wednesday, February 16th, 2005

it took a lot of time to find some solution to assign more than one values to combobox,since comboObject.Items.Add(”MyValue”) only allows to add a single value in comboBox which can be fetched by using comboObject.text property.

Hans de Bruijn has provided very clean and nice solution to tackle this problem for both combobox and List values.

Happy Coding


Diplay Virtual Direcotries in C#

Tuesday, February 15th, 2005

the code i mentioned earlier fetches the website Names only..what if you want to show the virtual folders as well?well it`s not so difficult.If you run the code in my previous post,it will display a numeric number which is unique Identifer for each site hosted on IIS,this can be retrieved by calling Site.Name in for each loop
In order to retrieve the virtual folders under that specific Website simple do the following

//Save Website Unique Identified in a variable

String SiteId=Site.Name

DirectoryEntry W3SVC = new DirectoryEntry(”IIS://” + ServerName + “/w3svc/”+SiteId+”/ROOT, “Domain/UserCode”, “Password”);

foreach (DirectoryEntry Site in W3SVC.Children)
{

//display Virtual Directories
Console.WriteLine(Site.Name.ToString());

}


Diplay IIS hosted Site Names in C#

Tuesday, February 15th, 2005

I have been working on a project module which will interact with IIS and will display hosted sites or virtual directories,so far i have done this by using ADSII ,the code is very raw,i will submit final snippet once it`s done..this code will display website names hosted on IIS

try
{
const string WebServerSchema = “IIsWebServer”; // Case Sensitive
string ServerName = “SIDDIQI”;
DirectoryEntry W3SVC = new DirectoryEntry(”IIS://” + ServerName + “/w3svc”, “Domain/UserCode”, “Password”);
foreach (DirectoryEntry Site in W3SVC.Children)
{

if (Site.SchemaClassName == WebServerSchema)
{
//Console.WriteLine(Site.Name + ” - ” + Site.Properties[”ServerComment”].Value.ToString());
}
}
}
// Catch any errors
catch (Exception e)
{
Console.WriteLine(”Error: ” + e.ToString());
}


Diplay Virtual Direcotries in C#

Monday, February 14th, 2005

the code i mentioned earlier fetches the website Names only..what if you want to show the virtual folders as well?well it`s not so difficult.If you run the code in my previous post,it will display a numeric number which is unique Identifer for each site hosted on IIS,this can be retrieved by calling Site.Name in for each loop
In order to retrieve the virtual folders under that specific Website simple do the following

//Save Website Unique Identified in a variable

String SiteId=Site.Name

DirectoryEntry W3SVC = new DirectoryEntry(”IIS://” + ServerName + “/w3svc/”+SiteId+”/ROOT, “Domain/UserCode”, “Password”);

foreach (DirectoryEntry Site in W3SVC.Children)
{

//display Virtual Directories
Console.WriteLine(Site.Name.ToString());

}


Some Weird thing happening with IE

Sunday, February 13th, 2005

Since morning,its been happening that IE is getting opened with new Instance having URL something like http://540.filost.com/randomsites/banner.aspx
which is redirected to some other url which is actually directing not file which isnot actually available
before that some porn dialers got installed with file name internt.exe which resided on WinNT`s root folder..
ifanyone of you get any clue,let me know


Search

You are currently browsing the Adnan`s Crazy Blogging World weblog archives for February, 2005.

Must Visit

Quran Reference on MSN Messenger
Dars-e-Quran
Fetch da Feed::AJAX based feed reader
Customized contact form for blogger or any other website

What am I Upto?


follow kadnan at http://twitter.com

Namaz Timing


Send n Recieve Money online


My blog is worth $16,936.20.
How much is your blog worth?


I also write for:

Pakistani Cricket Blog
Adnan Siddiqi::Let's Get Technical

Old Is Gold

June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 March 2005 February 2005
  • Categories

  • Syndications

     Subscribe in a reader

    Subscribe in NewsGator Online

    Add to Google

    Add to My AOL

    Add to netomat Hub

    Add to netvibes

    Subscribe in Bloglines

    Enter your email address:

    Delivered by FeedBurner