Subscribe to The Madman Scribblings        RSS Feed
- - - - -

Damn Statistics

Icon Leave Comment
Since it is possible the get the average of IEnumerable(Of Double) by using .Average, it thought lets extend it provide the other statistical functions.
To help me out I do use some of custom helper extension methods to extend IEnumerable(Of T), which then makes them accessible on all IEnumerables.
The general helper extension methods....
- - - - -

LINQ Codes: GetNamedControl

Icon Leave Comment
Finds the named control recursively searching the child controls. (If there isn't one return nothing.
...
- - - - -

Periodic Table (2 Class 1 XML File+Loads of Exts.)

Icon Leave Comment
In this topic the user is wanting to replicate the periodic table with class, and I though I'll have a go at it.

They are after code the that looks like this.
MyTable.Carbon.AtomicNumber

I decided to store the data on the atomic elements in xml file, so it is easy update.

Class: AtomicElement
...
- - - - -

Trying to implement a valid StringOf<T> .

Icon Leave Comment
The following April Fool Joke by Scott Hanselman as been bugging be for ages;- StringOr<T>
So I been attempting to bring it in to realisation a valid implementation of it.

First a attempt: StringOf(Of T) Code Snippet
It has it problems. Like you to hard code each

Second attempt:
...
- - - - -

VB.NET Coolness is LINQ + XML Literals

Icon Leave Comment
Using the w3schools xml example: XML CD catalog

Task: From this catelogue I want you group the cds by date descending and display the titles, artist and price.
...
- - - - -

vb.net 1-Liners

Icon Leave Comment
Christmas Diner time is nearly here and you're sick of hearing those terrible cracker jokes. I bring to you the beginnings of collection vb.net code samples that only contain a single line of code.
Note: These require .net>=3.5
Fibonacci
...
* * * * *

Textboxes and Numbers (Are these Numbers?)

Icon 1 Comments
What does the two textboxes contain?
Image reduced in size

Answers
a. they contain the numbers 123 and 456 respectively.
b. they contain strings that can be interpreted as the numbers 123 and 456.

If you answered a...
- - - - -

Combinations and Generics

Icon Leave Comment
In This Thread the OP is trying to find the words that can be made from the digit key that letter appears on.
Like from a mobile phone keypad
0 ->1 ->2 -> ABC3 -> DEF4 -> GHI5 -> JKL6 -> MNO7 -> PQRS8 -> TUV9 -> WXYZ

So if the code was 27753 the possible letter would be
27753DPPJDEQQKEFRRLF SS
...
- - - - -

Overlapping Events

Icon Leave Comment
NO OVERLAPP

1) A BEFORE B
[ A ]
[ B ]

A.ST<B.ST
A.ET<B.ST
Analysis: A.ET<B.ST

2) B BEFORE A

[ B ]
[ A ]

A.ST>B.ST
A.ET>B.ET
Analysis: B.ET<A.ST
==========================================
N=(B.ET<A.ST) EOR (A.ET<B.ST)
O=NOT N
==========================================

OVERLAPS
--------

3) A STARTS...
- - - - -

Coding:

Icon Leave Comment
Currently writing a class so you can map class properties to controls.

Public Class Test Protected m_Text As String=""Public Property Text() As String Get End Get Set(ByVal Value As String) End SetEnd PropertyEnd Class


...

  • (14 Pages)
  • +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13
  • Last »