Tuesday, July 29, 2008

Hell i uhell























Jeg var heldig som slapp med skrekken...
Posted by Picasa

Problemer med publisering

Jeg hadde store problemer om å ta opp denne bloggen igjen og bruke den som mobil blogg etter inspirasjon fra Jon Vidar. Dessverre har det vist seg svært vanskelig. Etter mye feilsøking og sammenlikning med Sunniva og min sin fellesblogg har jeg funnet ut at jeg har blitt registrert som mulig spamblogg. Nå har jeg endelig funnet ut av dette og håper at det vil bli fikset snarlig:
----
Bloggen krever ordbekreftelse
Bloggers roboter for beskyttelse mot spam har oppdaget at bloggen din har de samme karakteristikkene som en spamblogg. (Hva er en spamblogg?) Ettersom det er en virkelig person som leser dette, er bloggen din antageligvis ikke en spamblogg. Automatisk spamregistrering er upålitelig av natur, og vi beklager på det sterkeste for denne feilen.
Den 29. juli 2008 mottok vi din forespørsel om å låse opp bloggen. På vegne av robotene beklager vi å ha låst den søppelfrie bloggen din. Vi håper at du kan vise tålmodighet mens vi tar en titt på bloggen din og bekrefter at det ikke snakk om søppelinnlegg.
Finn ut mer om hvordan Blogger bekjemper spamblogger.
----
Forespørsel mottatt
Vi har mottatt forespørselen din om å kontrollere at bloggen din ikke er en spamblogg. Vi vil se på bloggen din og sende et svar på epost.
Finn ut mer om hvordan Blogger bekjemper spamblogger.
----

Rekkverket kommer på plass


Stolpene som skal brukes til rekkverk kommer på plass
Posted by Picasa

Start bygging av terrasse

Vi har lenge vurdert om vi skal bygge veranda. Jeg kom først godt i gang i midten av mai. Her har jeg akkurat blitt ferdig med de 12 pilarene som skal holde terassen i riktig høyde.
Posted by Picasa

Sunday, December 30, 2007

Easy to make protein waffles

This simple receipe of protein waffles was made while experimenting in the kitchen. You should be able to make ~8 waffles.
















Ingredients:

  • 2 Eggs
  • 3 table spoons Splenda
  • 80 g/2.4 dl neutral taste protein powder (I use a blend of whey, casein and egg)
  • 5 dl water
  • 5 table spoons spelt flour
  • 1 tea spoon baking powder
  • 2 table spoons healthy oil

Instructions:
Mix eggs and splenda. Make a shake of protein powder and all the water. You should not use flavored protein as it contains aspartame which should not be heated. Mix the shake with the egg mix. Add flour, baking powder and oil. Keep it in the fridge until beeing used after mixing the ingredients well. Cook it in the waffle iron. Stirred berries (strawberries, raspberries etc) and splenda makes a perfect combo.

Impressions afterwards:
The waffles taste ok, but can be improved. They are lacking a bit of fullness due to low fat content. I think the fullness fill improve if using skimmed milk instead of water and/or using wheat instead of spelt.

Friday, December 21, 2007

Simple ice lanterns in 5 steps

These ice lanterns were inspired by ideas found on instructables.com. The instructions found were how to make ice balls and how to make battery powered LED ice lanterns. I thought it would be an idea to make a low tech version of the LED lantern.

Here are the instructions:
1. Fill ordinary balloons with water from the sink. Fill to a safe size.
2. Put the balloons in the freezer for at least four hours until fully frozen. Make sure as few as possible objects deform the balloons while freezing.
3. Use a drill with a hole saw to mark the outline of where you want to put a tea light candle.
4. Make the hole deeper by using a knife and carving the ice from the hole. You have to make sure the candle wick will be below the top of the hole to make the lantern shimmer and to shelter the fire.
5. Put a tea light candle within the hole and light it.

That's it - enjoy the beautiful light in these dark days.
Posted by Picasa

Monday, November 19, 2007

How to set up MouseClick and MouseDoubleClick in 6 steps (C# / Visual Studio 2005)

Do you want to add clicking and double clicking to the same button in C#? This is the only way I have found that works:

  1. Start by adding an integer variable to set the status for the mouse and initialize to zero (clickStatus)
  2. Drag a timer to the form to monitor how much time have elapsed between mouse clicks (timer1). Set “Enabled” property to “false”.
  3. Set the timer interval to the system doubleclick time (timer1.Interval=SystemInformation.DoubleClickTime)
  4. Add a Click event to the form or whatever you want to check the clickstatus of.
  5. Add the Click event to the Tick event of timer1
  6. Add additional code as shown below:

    namespace WindowsApplication3
    {
    public partial class Form1 : Form
    {
    private int clickStatus=0; //0=not clicked, 1=single clicked, 2=double clicked

    public Form1()
    {
    InitializeComponent();
    timer1.Interval = SystemInformation.DoubleClickTime;
    }
    private void Form1_MouseDoubleClick(object sender, MouseEventArgs e)
    {
    clickStatus = 2;
    }
    private void Form1_MouseClick(object sender, MouseEventArgs e)
    {
    clickStatus = 1;
    timer1.Enabled = true;
    }
    private void Form1_Click(object sender, EventArgs e)
    {
    timer1.Enabled = false;
    if (clickStatus==2)
    {
    //MessageBox.Show("Double clicked");
    clickStatus = 0;
    }
    else if (clickStatus==1)
    {
    //MessageBox.Show("Single clicked");
    clickStatus = 0;
    }
    }
    }
    }

    The click events are called in the following order: Click – MouseClick – MouseDoubleClick, but MouseDoubleClick will not be raised if a MouseClick is raised. The trick is to use the timer. When a single click is made then the following events will be raised: Click – MouseClick – Click. When a double click Is made the following events will be raised: Click – MouseClick – MouseDoubleClick – Click. Make sure to add the same events to other components that you want to have similar behaviour (labels, boxes etc).