Friday, July 3, 2009

C# BigInt Using The F# Libraries

Download and install the F# September 2008 CTP.
This will add the necessary assembly's needed to access the F# BigInt class from C#.

Then just add a reference to the FSharp.Core assembly:


If you can't find the assembly try restarting Visual Studio and/or reinstalling the F# runtime.
Dont forget to add an "using Microsoft.FSharp.Math" statement like done below.

Example:
using System;
using Microsoft.FSharp.Math;

namespace BigIntExample
{
class Program
{
static void Main(string[] args)
{
//make a BigInt with the max value of a long
BigInt x = new BigInt(long.MaxValue);

//same but with an integer
BigInt y = new BigInt(int.MaxValue);

//then do some big math hoho
var sum = x * y;

Console.WriteLine(sum);
Console.ReadLine();
}
}
}

If you're interested in learning more about F# check out
the F# - Microsoft Research site.
Also the F# libraries will be included as a standard in the
new Visual Studio 2010.

Tuesday, June 23, 2009

Skype Push To Talk (PTT)

Update: Skype PTT 1.0 Final is released

I've been checking out skype as an alternative to ventrilo because we were getting some really bad feedback, but I was really surprised to find there was no real PTT support other than a mute mic hotkey.

So I decided to make a little utility program for skype.


(Skype PTT in action, nevermind the not responding :P)

Quick Guide:
1. Start Skype as normally and login.

2. Download and unzip from the link below, if you're having trouble starting the program you should download and install the .net 2.0 framework or higher.
3. You may get a screen saying SkypePTT.exe wants to use Skype, click Allow access.
4. Call and press your hotkey to talk! (note u may have to click abit before talking because of the mute/unmute delay).


This version is outdated, get the new version here: Skype PTT 1.0 Final.
If u still want to get the old version for any reason click here to download it.

Note: Requires Windows XP or higher and the .net 2.0 framework at least to run.
Personally tested in Windows XP and Vista 64 bit.

Update: If it's failing to run try registering the skype dll file.
Click on Start
Type in cmd in Run
Then cd to the folder where the files are extracted ->
Type in: regsvr32 Skype4COM.dll