Archive for March, 2008

Eclipse preferences and Visual Studio settings

My Visual Studio theme :

My Eclipse theme :

Like what you see? Go check out my download page for a .zip file.
The .zip file contains following .vssettings and preference files (while the .vssettings file are for Visual Studio and the preference files are for Eclipse) :

DarkGrey
DessertNights
GardenOfEden
Moria_Alt
Nightingale
Ragnarok_Blue (the one I am using. Check [...]

Tags: ,

C# AutoStarter Preview 2.0

If you sneaked in the AutoStarter Preview post you may want to check on this update.
The AutoStarter tool now supports profiles :

Access the profiles from the combobox :

Next feature to add is the possibility to launch the programs with parameters. If you would like to test the tool download Autostarter v.1.0. Feedback will be appreciated. [...]

Tags:

AutoStarter version 1.0 Preview

Actually I am working on this AutoStarter application. You can pick your everyday random applications, place them in a “List” and start them all from within a form with just one button click. The Tool is maybe about 20 – 30 % finished but the main functionality is there. The last bits are just some [...]

Tags: ,

C# Class CountLines. Return the amount of lines in a text file

I wrote a class that returns the amount of lines in a text files :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace CountLines
{
class CountLines
{
string filepath;
int i;

[...]

Tags:

C# Application.ExecutablePath;

Problem :
On first run of the program I need to generate a text file dynamically to runtime and the file should go into the install directory of the program.
So I needed to figure out how to get the applications install directory. Since I read and write to that text file a lot, I created [...]

Tags:

C# Delegates and anonymous methods

Here a bit of script to show the difference :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyDelegates
{
//Declare delegate MyDel
//==================================================
public delegate string MyDel(string n);
class Program
{
static void Main(string[] args)
[...]

Tags:

C# The Random Class

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RandomNumbers
{
class Program
{
// RANDOM -> Next, NextDouble, NextBytes
static void Main(string[] args)
{
[...]

Tags:

C# Sort arrays or Array.Sort();

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SortArrays
{
class Program
{
static void Main(string[] args)
{
int[] num = new int[100];
[...]

Tags:

C# Find objects in arrays or Array.BinarySearch();

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FindValueInArrays
{
class Program
{
static void Main(string[] args)
{
int[] num = new int[10];

[...]

Tags:

Internet Protocol Header explained

What you see above is how the IP header is built. This header is attached to every piece of data you send.

The file size of such a packet depends on the medium it is send through, for instance Ethernet allows a maximum file size of 1500 Bytes. This size is called Maximum Transfer [...]

Tags: ,

Simple addressbook in PHP

This address book is a very basic and simple address book, not too much focus on security. Thats why I recommend to only use it on a local machine. If you want to upload it to a webserver you should write your own filters / validations for the input fields. To run this software you [...]

Tags: , ,