NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Thu
18
Oct '07

Digital Millennium Copyright Act

As a Cyber Law guy I am interested in these stuff also - http://en.wikipedia.org/wiki/Digital_Millennium_Copyright_Act


The Digital Millennium Copyright Act (DMCA) is a United States copyright law which implements two 1996 WIPO treaties. It criminalizes production and dissemination of technology, devices, or services that are used to circumvent measures that control access to copyrighted works (commonly known as DRM) and criminalizes the act of circumventing an access control, even when there is no infringement of copyright itself. It also heightens the penalties for copyright infringement on the Internet. Passed on October 8, 1998 by a unanimous vote in the United States Senate and signed into law by President Bill Clinton on October 28, 1998, the DMCA amended title 17 of the U.S. Code to extend the reach of copyright, while limiting the liability of Online Providers from copyright infringement by their users.
Thu
11
Oct '07

W3C Markup Validator with c#

I developed a HTML/XHTML Validator tool in C# 2.x.


Further development will be based on the user’s response ;)



URL: http://www.ninethsense.com/validator/
Wed
10
Oct '07

System.ArgumentException: The serialized data is invalid

Some of you may faced this nasty error. May be while setting up a new web server or after upgrading an ASP.NET project. Well, I didnt not find any 100% good fix for this issue yet. As far as I know, this error occurs only for who have low-speed internet connection and those who do ’something’ before the page load completed. Here are two ways which /may/ help you resolve this issue. Well this worked for me:


1) Do not let the end-user touch keyboard or mouse ;) before the page load is complete. For this you can use some “loading…” technique.

2) Try adding this to your web.config:
 <pages enableViewStateMac=“false” 
        enableEventValidation=“false”
        viewStateEncryptionMode=“Never” 
        maxPageStateFieldLength=“200″ />
Tue
9
Oct '07

BgInfo By Bryce Cogswell

BgInfo from Microsoft (SysInternals !!!) Somehow I liked the tool BgInfo. I think this tool is helpful for developers and mainly system administrators in networked companies.





BGInfo simply writes a new desktop bitmap and exits you don’t have to worry about it consuming system resources or interfering with other applications.

Link: http://www.microsoft.com/technet/sysinternals/utilities/BgInfo.mspx
'

How to display string in webBrowser Control

DocumentText property of web browser control lets you dynamically display html text.

Simple -

webBrowser1.DocumentText = “<b style=’color:red’>P</b>ra<b>V</b>ee<u>N</u>”;
Fri
5
Oct '07

OVER and WITH in t-sql

OVER Clause

Determines the partitioning and ordering of the rowset before the associated window function is applied.
URL: http://msdn2.microsoft.com/en-us/library/ms189461.aspx


WITH

Specifies a temporary named result set, known as a common table expression (CTE). URL: http://msdn2.microsoft.com/en-us/library/ms175972.aspx


Below code demonstrates the creation of a temperory table and add a field new field which is an ID field of a sorted column

 
WITH temp_table AS
(
	SELECT *, (ROW_NUMBER() OVER (ORDER BY field_name)) AS row FROM table_name 
)
 
SELECT * FROM temp_table


The above code can also used for paging featuers ;) . Like MySQL’s LIMIT start, length.

 
SELECT * FROM temp_table WHERE row BETWEEN 10 AND 15



Useful, right?

Ref: Inspired from one of my friend Amit Benswal’s blog post
'

Dynamic varialbes from text file - PHP

This code snippet demonstrates how to read a resource file and convert them to php variables:

< ?_php
$arr = file(“resource.txt”);
foreach ($arr as $key => $value) {
	$arr = split(\t,$value); // tab delimeted. You can use any.
	$$arr[0] = $arr[1];
}
	
//Example - "name" is a word in text tile with ‘tab’ delimeted sample text. 
echo $name;
?>


Sample resource.txt file: (tab delimeted)
 
txt_title	hello world
txt_message	this is a message
name	Contact
Wed
3
Oct '07

Microsoft’s F# - Programming Language

F# is a programming language that provides the much sought-after combination of type safety, performance and scripting, with all the advantages of running on a high-quality, well-supported modern runtime system.

F# is developed by Microsoft Research.

http://research.microsoft.com/fsharp/fsharp.aspx
http://en.wikipedia.org/wiki/F_Sharp_programming_language


Sample Code:
 
    (* This is a comment *)
    (* Sample hello world program *)
    printf “Hello World!”
Tue
2
Oct '07

I am MVP again!!!

MVP again

I am again a Visual Developer MVP.

Thanks to the community again :)
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website