Tags » Vlad

Australia Discriminating Against Motorcyclists

Australians are supposed to enjoy five fundamental freedoms: freedom of speech, assembly, religion, movement and association… Unless, of course, you live in Queensland. If you reside in the sunshine state and associate with a motorcyclist (or are one yourself), your freedom seems to take a running leap right out of the closest window. 679 more words

Hyde Magazine

Vampire Lore something to sink your teeth into before Halloween

The Great New England Vampire Panic

Two hundred years after the Salem witch trials, farmers became convinced that their relatives were returning from the grave to feed on the living… 1,824 more words

Halloween

First Blog Post

. So, if I want to be a writer, I have to write a blog, huh? That means I have to write about interesting… 386 more words
Blog

Creating a method for finding the root(s) of an equation

I want to create a method that calculates the root of a function of my choice. So far i have:

private static int function(int n){

    int root;
    for(int i = 0; i<=100; i++){
/**
i want to replace the x(see below to see the equation) value with i,
     untill the equation(n) == 0 and then use the i value and return it as an
     integer variable called 'root'
**/

    }

    return root;
}
… 180 more words
Stackoverflow

Vlad the impala **

I’ve just sat through the interminable Hollywood crap-pic Dracula Untold – if only it had been untold, I’d be a lot less cranky right now. Or at least if someone had given the scriptwriters a good slap upside the head before they filled the script with a load of bollocks that was apparently cribbed directly from daytime soap opera. 224 more words

Horror

Your Dose of Seuss: On Vlad

“’Horton, the kangaroo has sent Vlad!’
‘Vlad? I know two Vlads. One is a cute little bunny that brings me cookies. The other is bad Vlad.

17 more words

How to call the same function twice without recursion

let getValue number divisor =
    let firstNumber = int (System.Math.Floor((float) number / (float) divisor))
    let rest = number % divisor
    firstNumber, rest

let getNumeral value =
    match value with
    | (1, 1) -> "I"
    | (5, 1) -> "V"
    | (1, 2) -> "X"
    | (5, 2) -> "L"
    | (1, 3) -> "C"
    | (5, 3) -> "D"
    | (1, 4) -> "M"
    | (_,_) -> ""

let getStringRepresentation value =
    match value with
    | (1 , order) ->
        getNumeral (1, order)
    | (2, order) ->
        getNumeral (1, order) + getNumeral (1, order)
    | (3, order) ->
        getNumeral (1, order) + getNumeral (1, order) + getNumeral (1, order)
    | (4, order) ->
        getNumeral (1, order) + getNumeral (5, order)
    | (5, order) ->
        getNumeral (5, order)
    | (6, order) ->
        getNumeral (5, order) + getNumeral (1, order)
    | (7, order) ->
        getNumeral (5, order) + getNumeral (1, order) + getNumeral (1, order)
    | (8, order) ->
        getNumeral (5, order) + getNumeral (1, order) + getNumeral (1, order) + getNumeral (1, order)
    | (9, order) ->
        getNumeral (1, order) + getNumeral (1, order + 1)
    | (_, _) -> ""

let rec convertToRoman number =
    match number with
    | number when number >= 1000 && number < 4000 ->
        let value = getValue number 1000
        let rest = convertToRoman (snd value)
        let current = getStringRepresentation ((fst value), 4)
        current + rest
    | number when number >= 100 && number < 1000 ->
        let value = getValue number 100
        let rest = convertToRoman (snd value)
        let current = getStringRepresentation ((fst value), 3)
        current + rest
    | number when number >= 10 && number < 100 ->
        let value = getValue number 10
        let rest = convertToRoman (snd value)
        let current = getStringRepresentation ((fst value), 2)
        current + rest
    | number when number >= 1 && number < 10 ->
        let value = getValue number 1
        let rest = convertToRoman (snd value)
        let current = getStringRepresentation ((fst value), 1)
        current + rest
    | _ -> ""

printfn "%A" (convertToRoman 49)
… 82 more words
Stackoverflow