dotnetjunkies communityserver upgrade ???

Its a dismal that there is no staff around dotnetjunkies to upgrade communityserver,why guys,both browser support is so less.Main reason I dont post is this.Shame no upgrade for years they just want the ad revenue !!!

Date Intersection TSQL Query , Dates between range.

Say you want to find the range of dates or date values between two dates (say Start Date and and End Date) Just add AND NOT((EndDate @EndDate)); Intersecting dates are returned

Sorting DataTable Snippet

 private static void SortDataTable(DataTable dt, string sort)
{
DataTable newDT = dt.Clone();
int rowCount = dt.Rows.Count;

DataRow[] foundRows = dt.Select(null, sort); // Sort with Column name
for (int i = 0 ; i < rowCount; i++)
{
object[] arr = new object[dt.Columns.Count];
for (int j = 0; j < dt.Columns.Count; j++)
{
arr[j]=foundRows[i][j];
}
DataRow data_row = newDT.NewRow();
data_row.ItemArray=arr;
newDT.Rows.Add(data_row);
}

//clear the incoming dt
dt.Rows.Clear();

for(int i = 0; i < newDT.Rows.Count; i++)
{
object[] arr = new object[dt.Columns.Count];
for (int j = 0; j < dt.Columns.Count; j++)
{
arr[j]=newDT.Rows[i][j];
}

DataRow data_row = dt.NewRow();
data_row.ItemArray = arr;
dt.Rows.Add(data_row);
}

}

Via http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=36859

IP Address Validation .net 2.0 Snippet

IPAddress IP;
bool valid = IPAddress.TryParse("143.3.3.3", out IP);
if (valid)
{
          MessageBox.Show(String.Format("IPAddress {0} is valid",IP.ToString()));
}
else
{
         MessageBox.Show("IPAddress is not valid");
}

Courtesy: AdGroot (ExPExchg)

.CHM files residing on a network drive don't display their contents

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
"MaxAllowedZone"=dword:00000001

Make a .reg file with this and test

Windows Registry Editor Version 5.00

CORBA EXPLAINED SIMPLY

A concise book for people who want a technical understanding of the concepts and terminology of CORBA without learning the low-level details http://www.ciaranmchale.com/corba-explained-simply/ Available in PDF also at http://www.ciaranmchale.com/download/

SQL Server could not spawn FRunCM thread.

Well after updating to service pack 2 for MSSQL2005 the above error seemd to block sql server from starting.The message appeared in the eventlog.A quick google search and it seems you have to disable VIA Protocol should be disabled (SQL Server Configuration Manager -> SQL Sever 2005 Network Configuration -> VIA (Disable it).

Instead of Mork

I'm just downloading Firefox 3.0 (Minefield (trunk build), the trunk releases of Mozilla Firefox version 3).You can try it out from The Burning Edge.
The thing I noticed was "Fixed: 355738 - Make global history use Places. History is now stored in an SQLite database instead of Mork. Bookmarks are not yet stored in the new database, and the History UI hasn't changed much." Well the devs apparently did have time to include it in the 1.5 or 2.0 release.I had previously blogged a few links about mork.Well its been a long time since I posted.Well hope to post more on the new stuff (wcf,.net2.0) etc when I get time.Well for all the guys n girls reading wish you a merry christmas and a happy new year.

PS: The nightly build crashed.Maybe some time later....

Getting Started with WPF

I previewed some xaml (XAML is a declartive markup language that defines an object model) back in mid 2003,I think.Well after many breaking changes I got the WinFX SDK (Beta 2 build of WinFX) setup along with VS2005.Well you have to download the Microsoft Windows Software Development Kit (SDK) for Beta 2 then the Microsoft Visual Studio Extensions for WinFX Beta 1 and have the XAML notepad handy to try out some of the samples.You can try the Microsoft Expression Interactive Designer May 2006 CTP also.The book O'Reilly - XAML in a Nutshell can give you a quick start into the subject.And Chris Sells Programming Windows Presentation Foundation with the latest sample code found here

Friday @ weblogs.asp.net

J.D. Meier's Blog : http://blogs.msdn.com/jmeier/ Jackie Goldstein's Weblog http://weblogs.asp.net/JackieG/ .NET Reference Messenger Bot - Source Code Posted http://weblogs.asp.net/skillet/archive/2006/03/16/440449.aspx Ruby for .NET http://www.plas.fit.qut.edu.au/rubynet/ More Atlas stuff http://weblogs.asp.net/bleroy/

Open Source Python for Nokia S60

Nokia today announced that it has taken a step further in support of mobile
open-source software application development by agreeing to release the
source code for its Python for S60 Platform software package to the global
community of open-source software developers.
The agreement follows on last year's launch by Nokia of the Python for
S60 Platform, which enables programmers, ISVs and businesses worldwide to
utilize the powerful Python programming language to execute Python commands
and run Python scripts and applications on S60-based mobile devices.
The source code for Python for S60 Platform will be made available to the
open-source software development community through SourceForge.net, which
provides free hosting to open-source software development projects and is the
world's largest Open Source software development web site, hosting more than
100,000 projects and over 1,000,000 registered users with a centralized
resource for managing projects, issues, communications, and code.

http://opensource.nokia.com/
http://www.artima.com/weblogs/viewpost.jsp?thread=146708

Mercury on .NET

Mercury is a functional logic programming language geared towards real-world applications. The first version was developed by Fergus Henderson, Thomas Conway and Zoltan Somogyi and was released on April 8th, 1995. The latest official release was version 0.12.1, released on the 21st November, 2005.

http://www.cs.mu.oz.au/research/mercury/information/related.html

Mercury on .NET

http://www.cs.mu.oz.au/research/mercury/dotnet.html

Oberon for .NET

Oberon is a reflective programming language created in 1986 by Professor Niklaus Wirth (creator of the Pascal, Modula, and Modula-2 programming languages) and his associates at ETHZ in Switzerland. The name is from the moon of Uranus, Oberon.

http://www.bluebottle.ethz.ch/oberon.net/


Oberon Language Genealogy Tree
http://www.oberon.ethz.ch/genealogy.html

Native Oberon Operating System
http://www.oberon.ethz.ch/native/

Native Oberon is written in the original Oberon language designed by Niklaus Wirth. The system is an evolution of the operating system co-developed by Niklaus Wirth and Jürg Gutknecht and published in the book Project Oberon: The Design of an Operating System and Compiler, Addison-Wesley, 1992. The system is completely modular and all parts of it are dynamically loaded on-demand. Persistent object and rich text support is built into the kernel. Clickable commands embedded in "tool" texts are used as a transparent, modeless, highly customizable and low-overhead user interface, which minimizes non-visible state information. Mouse "interclicks" enable fast text editing. An efficient multitasking model is supported in a single-process by using short-running commands and cooperative background task handlers. The basic system is small - it fits on one 1.44MB installation diskette, including the compiler and TCP/IP networking. It is freely downloadable (with source code).


     

Bluebottle is a powerful operating system developed in the Programming Languages and Runtime Systems Research Group, based on the Active Object System (Aos) kernel. The Aos kernel provides a compact runtime environment for the Active Oberon language (pdf), which supports active objects (threads) directly, and enables the construction of efficient active object-based systems that directly run on the hardware.
http://www.bluebottle.ethz.ch/
http://www.bluebottle.ethz.ch/bbreact.html
PC Native Oberon Hardware Compatibility List
http://www.oberon.ethz.ch/hcl.html

Application domain

What is an application domain - an explanation for .Net beginners

http://codebetter.com/blogs/raymond.lewallen/archive/2005/04/03/61190.aspx

 An Application Domain Example - Level 000

http://codebetter.com/blogs/raymond.lewallen/archive/2005/04/07/61461.aspx

Executing Code in Another Application Domain (C# Programming Guide) 
http://msdn2.microsoft.com/en-us/library/ms173139.aspx

Mork

Mork: a case study in "clever" programming : http://bjf.id.au/cgi-bin/blosxom.cgi/software/20050429-mork.html

Mozilla2:Unified Storage : http://wiki.mozilla.org/Mozilla2:Unified_Storage

Jamie Zawinski 's Blog : http://jwz.livejournal.com/
(mork: http://www.jwz.org/hacks/mork.pl)

How To Write Unmaintainable Code http://thc.org/root/phun/unmaint

Windows XP delay when log on to a domain or to connect to a network resource

http://www.kbalertz.com/redir.aspx?kbs=195340
now  they publish it

SQL Server 7.0 SQL-DMO Error and remote registered servers error

Quick fix I found

Re-registered the following components in the SQL BINN directory:
dtsui.dll
sqldmo.dll
sqlns.dll
sqllex.dll

Atleast two of them will register (regsvr32 sqldmo.dll etc),that will get it working.

Saw this issue for sql server 2000
FIX: Registered remote servers disappear from SQL Enterprise Manager in Windows XP when user password is changed
http://support.microsoft.com/default.aspx?scid=kb;en-us;323280

ASP.NET 505 Error and other troubles and fixes.

Spend a couple of hours fixing windows,

couldnt start a new web project in vs.net 2003 so I reinstall iis and the windows installer ask for staxmem.dll missing,there is a issue here fixed it with

(enter following in command line)
esentutl /p %windir%\security\database\secedit.sdb
click ok and follow the prompts
after this i was able to install IIS without the staxmem.dll errors etc.

I wanted to follow up some stuff I was doing on visual studio 2003 and things get worse.Blame me I had shut down most of the services in the service manager well that was a habit some time anyway classic asp too does not work so I turn of the friendly errors in IE settings then I run http://localhost/localstart.asp still no go,I cant remember the order in which I have to start the services.I finally start some,you have to set some of them to automatic and well I restarted windows,some people actually went in for a format.That was because the 505 error thing , well the Component Services was throwing some errors.I finally nailed it to

http://www.brooksyounce.com/xp_asp_fix.htm

I was getting
Check Event Log!
Check your Event Viewer for these errors...
MSDTC errors (4427,4691,4135 are common error events for this)
W3SVC Event 36 "The server failed to load application '/LM/W3SVC/1/ROOT/'. The error was 'Class not registered"

Of Course Try these First...
At the command line type "sfc /scannow" (have your XP CD in the CD drive)
Reinstall Service Pack 1 for Windows XP
Try uninstalling IIS then reinstalling it

How to Fix it! (if nothing else can!)
Open "Control Panel" and then "Administrative Tools" then Open "Services"...
Locate the "Distributed Transaction Coordinator" make sure the process is "Started" and "Automatic"
(If its not, open a command line and type "msdtc -install", then try and start the service)
Open a command line and type the following...
    cd %windir%\system32\inetsrv
    rundll32 wamreg.dll, CreateIISPackage (NOTE: "CreateIISPackage" must be typed exactly; it is case-sensitive.)
    regsvr32 asptxn.dll (wait for a dialog box to notify you asptxn has registered correctly)
    IISRESTART
Open "Control Panel" then "Component Services"...


C:\WINDOWS\system32\inetsrv>rundll32 wamreg.dll, CreateIISPackage  regsvr32 asptxn.dll

ASP Pages should now be working!!!
If ASP Pages are still not working, Uninstall your antivirus software, and repeat steps.

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

Well sometimes this applies to asp.net

Finally some googing and thanks to brooksyounce's help and screen shot i could understand the apparent missing things...

The VS7.x(Visual Studio 2002 Visual Studio 2003) Debugger doesn’t work. What can I do? By Min Kwan Park for handy reference
http://blogs.msdn.com/mkpark/articles/86872.aspx