20096 total geeks with 3178 solutions
Recent challengers:
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
Domuk
No, not an issue with the PHP - I was responding to "AJAX not being cross site is annoying"
MaxMouse
Really? i thought that would only be important if the user had some kind of control over where the XML came from, if you hard code it (As in a PHP file) wouldn't that eliminate XSS attacks?
Domuk
Yes, but very, very necessary. AJAX requests run in the context of the browser, there'd be no security if it was cross-domain .
MaxMouse
AJAX not being cross site is annoying, all other scripts can be used in that way, having to resort to PHP to patch it is a shame.
SAJChurchey
thx MaxMouse

Donate
Donate and help us fund new challenges
Donate!
Due Date: Nov 30
November Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
MySpace makes peace
with Indies
Nvidia previews
next-gen Fermi GPUs
Potty-mouths
charged for Comcast
hijack
Microsoft
Silverlight - now
with hidden Windows
bias
Apple cult leader
emails outside
world
Sony demos monster
3D TV
Wrecking CRU:
hackers cause
massive climate
data breach
Skinny Acer
notebook delivers
six-day battery
life
VTOL gyro-copter
flying car mates
with killer robot
Oracle begs EC for
more time
Slashdot
iPhone Owners
Demand To See Apple
Source Code
Proton Beams Sent
Around the LHC
Microsoft"s Lack of
Nightly Builds For
IE
Some Claim Android
App Store Worse
Than iPhone"s
Climatic Research
Unit Hacked, Files
Leaked
Aging Nuclear
Stockpile Good For
Decades To Come
Netbooks Have
Higher Failure Rate
Than Laptops
Xbox Live Class
Action Being
Investigated
Patent Issued For
Podcasting
Linus Torvalds For
Nobel Peace Prize?
Articles in topic

Dot.Net

Dot.Net: Using an Enumeration as a Data Source for Binding, v.2.0
by: dbirdz - 2009-07-25 07:27:18
This is an extension of the code written by Gimlock published on 2005-07-22, with some issues of inflexibility addressed. Additionally it supports not only WinForm ListControls, but also WebForm ListControls.
13063 bytes more - viewed 867 times - comments - zero rated
Dot.Net: Copy Files in C# with a progress bar
by: cadey - 2009-05-27 16:11:03
This seems like a hot topic and so I decided to make my own class to do this simple function. Its got a few extras that may not be needed for your implementation but feel free to rip those out or add more functionality to it :)

Added this as a project.
http://www.osix.net/modules/folder/index.php?tid=33709&action=vf
18682 bytes more - viewed 3796 times - comments - rated
Dot.Net: Included Dlls with your exe without needing an install
by: Pertinax - 2009-05-06 18:18:31
I created a WinForms utility that depended on some DLLs and wanted the user to be able to just download and click on the exe to run the app. Usually if your exe needs some other files you wrap things up into a package and the user has to go through an install process. This takes time and forces the user to unistall if they don't want the program after it's served its purpose. I didn't like this and found a way to embed the files I needed into my exe and extract and link them when the program ran.
2535 bytes more - viewed 1270 times - comments - zero rated
Dot.Net: Downloading file using C#
by: Galax - 2007-09-30 03:21:39
This article explains how to make simple program that will download file every n minutes and save it to specified folder. So you can basically grab web cam pictures.
4696 bytes more - viewed 10263 times - comments - rated
Dot.Net: C#: Getting Started With Mono and Gtk#
by: zenogais - 2007-09-10 21:45:15
The mono project (http://www.mono-project.org) provides a fantastic implementation of .NET that is truly cross-platform. This article shows you how to get started writing applications in mono and the basics of using Gtk# for cross-platform user interfaces.
7556 bytes more - viewed 5469 times - comments - rated
Dot.Net: A Set Class
by: sfabriz - 2007-07-27 12:52:17
This time we'll see a possible implementation of a Set class written in C#, since the framework doesn't implement it natively.
11813 bytes more - viewed 3321 times - comments - rated
Dot.Net: Using crypto streams with TCP/IP and the Framework .Net 2.0
by: sfabriz - 2007-01-31 15:58:22
This time we'll dig into crypted streams under the TCP/IP protocol. We will see a basic implementation of a client/server application and we will learn how to write custom network headers classes to implement our own transmission protocol.
25140 bytes more - viewed 6752 times - comments - rated
Dot.Net: Enable file drop onto a form
by: sfabriz - 2006-12-31 23:54:07
The purpose of this article is to enable a windows form (or control) to handle file drop. We will also see a little about data bindings and RichTextBox file handling capabilities.
8364 bytes more - viewed 7036 times - comments - rated
Dot.Net: Accessing controls from a worker thread
by: sfabriz - 2006-12-17 13:47:24
This article shows the correct way to access UI controls from a worker thread
7978 bytes more - viewed 9191 times - comments - rated
Dot.Net: List parameters from an SSRS (SQL Server Reporting Services) report into an expression.
by: bb - 2006-10-24 07:55:46
How to get a list of parameters and their values from an SSRS (SQL Server Reporting Services) report from within an expression of the report. Its a nice way to echo out all parameters a report was run with without having to hardcode and means you can implement standard footers easily.
2238 bytes more - viewed 10930 times - comments - rated
Dot.Net: Custom controls Part II : Enhanced ProgressBar
by: sfabriz - 2006-10-12 09:35:31
This time is about enhancing the System.Windows.Forms.ProgressBar .Net control.
14313 bytes more - viewed 6359 times - comments - rated
Dot.Net: Custom controls Part one
by: sfabriz - 2006-09-26 22:10:58
A light introduction to custom control creation (C#).
8357 bytes more - viewed 2949 times - comments - rated
Dot.Net: Dragging transparent background images
by: sfabriz - 2006-09-21 22:21:33
This article shows how to overcome problems when dragging around transparent background images.
8319 bytes more - viewed 8777 times - comments - rated
Dot.Net: Toggle Button in C#
by: bb - 2006-06-26 07:37:06
Ever wondered how to create a button which toggles it's state in C# windows Forms? It used to exist in VB6 / Office development as a ToggleButton, but cannot easily be found in C#
469 bytes more - viewed 22023 times - comments - rated
Dot.Net: Solving sudoku with C#
by: sfabriz - 2006-06-15 10:10:36
This article shows you how to solve any Sudoku using a C# implementation of Knuth's DLX algorithm.
21708 bytes more - viewed 24489 times - comments - rated
Dot.Net: Prime numbers
by: sfabriz - 2006-06-15 10:10:00
This article will explore my "challenge" math library, talking about prime generation, primality testing, prime factorization and some other useful functions too.
21520 bytes more - viewed 10697 times - comments - rated
Dot.Net: Eval Function - with variables and custom functions
by: inFinie - 2006-06-13 11:44:07
This article explains and demonstrates a way of defining and using variables and programmatically definable custom functions. Workings of a tokenizer, infix to postfix converter and a postfix expression evaluator with support for variables is described.
5815 bytes more - viewed 5028 times - comments - rated
Dot.Net: Make a Windows Forms application single-instance
by: gimlock - 2006-05-10 18:39:33
There are a couple of ways of making it so only one instance of a Windows Forms application can run at any one time, involving threading objects or the Process objects in System.Runtime. This article details potentially the best method to achieving single-instance Windows Forms applications.
1003 bytes more - viewed 5402 times - comments - rated
Dot.Net: The Eval Function II -> The Revenge of the Notation
by: sfabriz - 2006-01-17 04:27:05
This article will propose a different version of the Eval() function, based on the postfix notation (a.k.a. Reverse Polish Notation RPN). You'll see how to convert from infix notation to postfix notation, how to evaluate a postfix expression as well as some C# details that I used to do this such as regular expressions and custom exceptions.
15654 bytes more - viewed 9607 times - comments - rated
Dot.Net: The Eval function
by: sfabriz - 2005-11-30 08:26:17
This is a C# version of JavaScript's eval() function.
5443 bytes more - viewed 11622 times - comments - rated
Dot.Net: Ever wanted to Export a List View to Excel and have it look Nice?
by: cadey - 2005-11-08 16:26:00
This function will export a list view into Excel, keeping with it all the colours of your list views, items, and its fonts!!

All you need to do is call...

ExportListViewToExcel(MyListView)
9143 bytes more - viewed 15301 times - comments - rated
Dot.Net: Writing to Unmanaged Memory in C#
by: bb - 2005-09-05 09:25:31
I've been working on porting a C++ application to C# for the last few weeks (although it seems like years), and I've had to do a few funny tricks to emulate how the C++ application works.
3553 bytes more - viewed 22195 times - comments - rated
Dot.Net: Using an enumeration as a data source for binding
by: gimlock - 2005-07-22 15:19:34
Sometimes you may have an enumeration of values that would be quite usefully used as data for a combo box or list box.
2505 bytes more - viewed 10308 times - comments - rated
Dot.Net: Sorting in "linear" time with Radix Sort
by: sfabriz - 2005-06-17 11:36:50
This time is about radix sorting and the fact that we can sort in linear time if we have to order a set of keys of fixed max length.
5428 bytes more - viewed 13150 times - comments - rated
Dot.Net: The Power Algorithm
by: sfabriz - 2005-05-25 12:20:27
How a programmer can save time rising a real number to the power of a positive integer number. The code is dot.net but it's easily adaptable to any other language.
3758 bytes more - viewed 24347 times - comments - rated
Dot.Net: Faster than quicksort? Use quicksort!
by: sfabriz - 2005-05-24 08:21:19
This article shows some result obtained from a comparison between C# built-in sorting quicksort and my implementation of quicksort... Guess who is faster!
3441 bytes more - viewed 18946 times - comments - rated
Dot.Net: Tcp connection with serialization but what about Udp?
by: sfabriz - 2005-05-11 13:22:06
This article shows how we can use the benefits of serialization sending data using Udp datagrams instead of Tcp connection.
7277 bytes more - viewed 13531 times - comments - rated
Dot.Net: Creating Custom Events in C#
by: sfabriz - 2005-04-12 02:08:12
This article shows how to create a custom event in C#. You create a custom object and you want that when one of its properties changes it raises an event. Can apply also to custom controls.
5809 bytes more - viewed 57641 times - comments - rated
Dot.Net: How to sort a custom made class using ArrayList, IComparer and IComparable in C#
by: sfabriz - 2005-03-18 23:07:14
This article shows how to sort a custom made class using C# interfaces IComparable and IComparer because sometimes the simple Array.Sort() method is not enough...
7263 bytes more - viewed 34876 times - comments - rated
Dot.Net: Creating Mobile Apps - In Depth Tutorial
by: TroPe - 2004-11-11 13:36:43
Learn to create functional mobile applications with .NET. We'll learn about emulators, multi-page forms, and mobile controls. When done with this tutorial, you should have a good enough understanding to create your own simple mobile application.
25086 bytes more - viewed 9670 times - comments - rated
Dot.Net: Url and Email validation using Regex
by: bb - 2004-09-22 12:37:39
A class which checks for valid urls and email addresses in C#
1148 bytes more - viewed 96006 times - comments - rated
Dot.Net: Advanced .NET MSI handling
by: bb - 2004-06-14 10:25:54
This article describes how to get access to variables used during an MSI installation process in .NET by extending the System.Configuration.Install.Installer class.
2834 bytes more - viewed 13026 times - comments - zero rated
Dot.Net: Stopping a form from closing
by: bb - 2004-06-10 13:46:51
How to stop a windows form closing.

Typically if you want to ask the user a question to confirm saving changes etc. This is easily done by catching the form.closing event.
573 bytes more - viewed 10180 times - comments - rated
Dot.Net: Managing ASP.NET Datagrid columns with AutoGenerateColumns
by: bb - 2004-05-14 13:07:55
How to hide a column in an ASP.NET Datagrid if AutoGenerateColumns is set to True
523 bytes more - viewed 8810 times - comments - rated
Dot.Net: Sending Mail using C#
by: bb - 2004-04-28 15:07:33
More mail sending code, and its not even mine! Heres an interesting free snippet of code I just used to send mail from my .net application. Why write your own rather than use the System.Web.Mail namespace? easy .. its rubbish!
5198 bytes more - viewed 13427 times - comments - rated
Dot.Net: Writing your own SQL Query Analyser in C#
by: bb - 2004-03-23 09:38:17
How to write a Windows form in the C# .Net programming language which takes a SQL instruction and dynamically produces a results list in about 7 lines of code.
1838 bytes more - viewed 16203 times - comments - rated
Dot.Net: Mapping Win32 Functions to the .NET API
by: bb - 2004-02-02 14:28:02
Want to know how to do everything you used to do directly via Windows system dll calls but via the .NET Framework API.
703 bytes more - viewed 7306 times - comments - rated
Dot.Net: DNS Lookups in .NET
by: dimport - 2003-06-21 07:19:46
Microsoft know how to make things easy, and with Microsoft.NET most things are at your fingertips. Heres an example of doing a DNS Lookup in just two lines of code.
660 bytes more - viewed 5841 times - comments - zero rated
Dot.Net: The .NET Language Choice
by: dimport - 2003-06-21 07:19:46
At some point, every organisation moving to .NET is going to have to choose which .NET languages to adopt.  Microsoft is offering four languages out of the box: C#, VB.NET, Managed C++ and JScript.  This article briefly discusses our opinions on these language offerings and who's going to be using what.

In short, we believe C# will gain predominant market share; JScript is a non-event; C++ will continue to be marginalised and VB.NET doesn't appear to have a ready market.
8167 bytes more - viewed 7514 times - comments - rated
Dot.Net: Developing Re-usable libraries in .NET
by: dimport - 2003-06-21 07:19:46
FxCop is a free .NET Developers tool which you can run over your .NET application and check how it performs compared to the Microsoft .NET Framework Design Guidelines.

Download it here, and get your applications running at full speed.
833 bytes more - viewed 4018 times - comments - rated
Dot.Net: Command Line Browser in 10 lines
by: dimport - 2003-06-21 07:19:46
It never fails to amaze me how nice and easy .NET is to use.

This example shows how simple http GET requests can be performed using vb.net. Personally I always prefer to use C#, but this example will give you a little feel for with the vb.net syntax looks like.
1518 bytes more - viewed 6477 times - comments - zero rated
Dot.Net: .NET Decompiler
by: dimport - 2003-06-21 07:19:46
It was only a matter of time before decompiling of .NET Exe's and DLLs to MS Interlingua became a reality. Here are a couple of industry strength .NET decompilers which produces some incredibly accurate results.
769 bytes more - viewed 25373 times - comments - rated
Dot.Net: .NET Framework Cryptography
by: dimport - 2003-06-21 07:19:46
The .NET Framework contains a rich set of cryptography resources. This document answers some of the questions commonly asked about these resources
7214 bytes more - viewed 7449 times - comments - rated
Dot.Net: Source Code for .NET Encryption Algorithims
by: dimport - 2003-06-21 07:19:46
Ok, so everyone says Microsoft aren't interested in open source. And yeah, i suppose I have to agree, however I was very surprised to see that they have published the source code for System.Security.Cryptography namespace of the .NET Framework.

Due to licensing issues we can't actually host that source here, but read on for how to get access to it
1640 bytes more - viewed 6795 times - comments - zero rated
Dot.Net: Number To Text Change Using C#
by: dimport - 2003-06-21 07:19:46
Accepting numeric values and returning their textual equivalents, useful for .. er .. something im sure.

This example uses c# forms, so you can at least see how windows forms are built up in C# using code only (no WYSIWYG editor)
3695 bytes more - viewed 11677 times - comments - rated
Dot.Net: Entry Point into a C# program
by: dimport - 2003-06-21 07:19:46
The first function to be called in any C# program is Main. We can have as many as four different ways to declare Main in our program. This article gets you started with an entry point into your first C# application
6028 bytes more - viewed 9798 times - comments - zero rated
Dot.Net: Batch filestamp changing
by: dimport - 2003-06-21 07:19:46
Remember touch from UNIX? It refreshes a file(s) modified time which can be very useful. This small tool lets you change many file datetime stamps from a simple GUI - no more shell scripts or batch files.
444 bytes more - viewed 6330 times - comments - zero rated
Dot.Net: Boulderdash for .NET !
by: dimport - 2003-06-21 07:19:46
You better believe it. The .NET version of a Boulderdash game written for East German hardware in 1988.
589 bytes more - viewed 4048 times - comments - zero rated
Dot.Net: Getting started on C# for Linux
by: dimport - 2003-06-21 07:19:46
When Microsoft launched its .NET strategy, one of the objectives was to allow software to be written for a variety of different platforms. It submitted .NET to ECMA for standardization and many people now consider it to be more "open" and accessible than the Java platform.

Heres some information on how to get up and running on your Linux machine
4065 bytes more - viewed 7459 times - comments - rated
Dot.Net: File Encryption in C#
by: dimport - 2003-06-21 07:19:46
The classes in the .Net Framework cryptography namespace manage many details of cryptography for you. Some are wrappers for the unmanaged Microsoft CryptoAPI, while others are purely managed implementations.

Here are some examples on how to get started on file encryption using the .net classes.
4338 bytes more - viewed 21892 times - comments - rated
Dot.Net: dynamic arrays in .net
by: dimport - 2003-06-21 07:19:46
Every language has its own way of making dynamic array manipulation simpler. in .net two classes, arraylist, and ienumerator are used for this purpose.
611 bytes more - viewed 5573 times - comments - rated
Dot.Net: Reflection and Dynamic Classes
by: dimport - 2003-06-21 07:19:46
The .NET Reflection API allows a program to inspect and manipulate itself.
Using it you can check methods on a class, invoke them, passing parameters.
It can also be used to compile code on the fly, providing a unique and funky way to write your code.
2671 bytes more - viewed 6103 times - comments - rated
Dot.Net: .NET or .NOT
by: dimport - 2003-06-21 07:19:46
An interesting interview with Eric Rudder, Microsoft's 35-year-old senior vice president of developer and platform evangelism.
Microsoft have invested heavily in the .NET Framework and building a large developer community is more than just important, its crucial.
323 bytes more - viewed 2801 times - comments - zero rated
Dot.Net: ASP.NET to run on Apache
by: dimport - 2003-06-21 07:19:46
Microsoft is planning to extend its Active Server Pages Web programming language, ASP.net, to cover the popular open source Web server from Apache.
ASP.net is one of the key programming languages for developing applications for Microsoft .net, which has been heavily criticised for its lack of support for non-Microsoft technologies.
1206 bytes more - viewed 7797 times - comments - rated
Dot.Net: Simple HTTP Server In C#
by: dimport - 2003-06-21 07:19:46
Here's a simple web server written in C# that even serves up ASP and ASP.NET web pages.
349 bytes more - viewed 14568 times - comments - rated
Dot.Net: SharpDevelop : Open Source C# IDE
by: dimport - 2003-06-21 07:19:46
Great news, it was only a matter of time, but here arrives the first (of surely many) .net IDE's other than Microsofts Visual Studio.NET
So now people really have got no reason not to embrace Microsofts attempts at delivering a high quality programming lanuage, with freely available compilers, run time libraries and now WYSIWYG IDE's
241 bytes more - viewed 7779 times - comments - zero rated
Dot.Net: Microsoft, HP betting on .NET
by: dimport - 2003-06-21 07:19:46
Microsoft Chief Executive Steve Ballmer used a European tour to launch a new initiative with HP, aimed at bringing .NET services from Microsoft to businesses.
556 bytes more - viewed 2858 times - comments - zero rated
Dot.Net: Grabbing data from the web using C#
by: dimport - 2003-06-21 07:19:46
Using programs to pass data around on the internet is something that i never get tired of!
Here's some of my applications showing how I suck down web pages from C#
2825 bytes more - viewed 9801 times - comments - rated
Dot.Net: .NET for MacOS and FreeBSD
by: dimport - 2003-06-21 07:19:46
You must be crazy, .NET for a non-Win32 operating system.
Believe your eyes, and read on for how to get your hands on the filthy inner workings of the .NET CLR for your operating system
542 bytes more - viewed 6458 times - comments - zero rated
Dot.Net: Sending Email in VB.Net
by: dimport - 2003-06-21 07:19:46
It could not be simpler to add email functionality to your vb.net application, including support for attachments.Heres how ...
1239 bytes more - viewed 49827 times - comments - zero rated
Dot.Net: Implementing Multicast Sockets in C#
by: dimport - 2003-06-21 07:19:46
Ever wanted to broadcast to everyone but still be able to use the net? How about being able to send data only to the nodes that really requested it?Interested? well this is where the next generation of broadcast comes in -> Multicast.
7945 bytes more - viewed 40832 times - comments - zero rated
Dot.Net: Rijndael Managed Encryption made easy in C#
by: dimport - 2003-06-21 07:19:46
Encrypting files is cool. It proves your strength, and the girls love it.No seriously, in your applications, encrypting data you save down on the disk is good practice. In addition, writing custom applications to encrypt your important documents protects you and your files from intruders. Heres a 45 line class for encrypting and decrypting files using the Rijndael Managed encryption method.
1538 bytes more - viewed 16583 times - comments - rated
Dot.Net: Microsoft leads the way for Open Source?
by: dimport - 2003-06-21 07:19:46
Who would have thought of Microsoft being associated with the biggest movement in open source for years! The IT world is sat at a crossroads, to one side a meandering path pointing to the well trodden Java route. The other a brand new 5 lane freeway with a huge sign saying .NET This Way.
651 bytes more - viewed 3680 times - comments - zero rated

Features

The Forums
Re: Maximizing
a Cone

(UnTaran/Geek Tips)
In the .bin
(UnTaran/Geek Tips)
Re: Triangle
Geometry

(CodeX/Geek Tips)
Re: Please help
with challenge
1!!!

(maxmouse/Geek Tips)
Re: Error in
PHP statement

(Domuk/Technical Questions)

Recent Blogs
Blog entry for
Mon 9th Nov 4am
feck you
all!!!!!!!!
0 comments
echmil's blog
Sat 7th Nov 11pm
IIS 6 SelfSSL
and Windows 7
0 comments
bb's blog
Tue 29th Sep 12pm
My PHP Projects
PSP

Current Poll
Given the
opportunity to
work for any game
developer, which
would you choose?
Share you're
reasoning plus
any other
developers, this
is only a tiny
list off the top
of my head so
share away!

Lionhead Studios
Konami
Pandemic Studios
Activision
Blizzard Entertainment
Capcom
Bethesda Softworks
Other (Please Comment)



View Results
(16 Comments)

Site Comments
Good tutorial.
I really loved
it

(Anonymous / Creating Custom Events in C#)
Hi
Tim, there
is one mistake
in your c...

(jirka77 / ROL/ROR in C)
i tried to use
the above code
and im getting...

(Anonymous / Sending Email in VB.Net)
upload it
again!!

(Anonymous / Tic-Tac-Toe: an unbeatable foe)
:) WINK WINK
(Anonymous / Introduction to Visual Basic Socket Programming)
your code
doesn't work
for any othe
bmp f...

(Anonymous / A 24-bit v.3 BMP Primer)
Thanks for
sharing.
Jonny cleaner
revie...

(Anonymous / A simple IRC BOT written in Python)
Ok, i writing a
similar program
but i need t...

(Anonymous / Simple C++ program to find all numbers that are divisible by a number)
Thanx a lot. A
very good
explanation.
Wik...

(Anonymous / Solving sudoku with C#)
need to install
john for my
homework, i
j...

(Anonymous / John the Ripper Tutorial)


     
Your Ad Here
 
Copyright Open Source Institute, 2006