Terje Isaksen Developer blog

2013-02-18 (Monday)

Apps for Android

Filed under: Developing — Terje Isaksen @ 12:55

Using C# – Mono

http://docs.xamarin.com/guides/android/getting_started/installation

Advertisements

2013-01-11 (Friday)

Sending email through smtp-server

Filed under: Developing — Terje Isaksen @ 17:46
Tags:

Well, you have to have access to a smtp-server of course.

http://stackoverflow.com/questions/5028728/c-sharp-how-to-send-email

If not – you can use Gmail, maybe:

http://lifehacker.com/111166/how-to-use-gmail-as-your-smtp-server

Or this (not tested):

http://www.smtp2go.com/blog/free-smtp-server/

2012-10-24 (Wednesday)

Win 8 tile style web

Filed under: Developing — Terje Isaksen @ 08:43
Tags: ,

http://aozora.github.com/bootmetro/

Promises:

“Simple and flexible HTML, CSS, and Javascript for web apps that wants to use the “Windows 8 MetroUI” style, without the need to run on Windows 8.”

Have not tried yet, but looks interesting!

 

2012-10-09 (Tuesday)

At last: a new compiler for Pascal

Filed under: Developing — Terje Isaksen @ 09:48

http://www.lazarus.freepascal.org/

“Lazarus is the class libraries for Free Pascal that emulate Delphi. Free Pascal is a GPL’ed compiler that runs on Linux, Win32, OS/2, 68K and more. Free Pascal is designed to be able to understand and compile Delphi syntax, which is of course OOP. Lazarus is the part of the missing puzzle that will allow you to develop Delphi like programs in all of the above platforms. Unlike Java which strives to be a write once run anywhere, Lazarus and Free Pascal strives for write once compile anywhere. Since the exact same compiler is available on all of the above platforms it means you don’t need to do any recoding to produce identical products for different platforms.”

2012-10-08 (Monday)

Live tiles without Win 8

Filed under: Developing — Terje Isaksen @ 09:19

http://www.codeproject.com/Articles/421601/Droptiles-Metro-style-Live-Tiles-powered-Web-Dashb

Interesting solution if you like Live Tiles in Windows 8 but doesn´t want to install Windows 8.

2011-06-23 (Thursday)

600+ different programming languages

Filed under: Developing — Terje Isaksen @ 12:58
Tags:

http://99-bottles-of-beer.net/

Every language from A+ to ZZT

One C# version is:

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

namespace _99Bottlez
{
    class Program
    {
        static void Main(string[] args)
        {
            int countOfBottles = 10;
            string lineTemplate = @"{X} bottles of beer on the wall, {X} bottles 
                                  of beer. Take one down and pass it around, {Y} 
                                  bottles of beer on the wall.";

            string lastLine =  @"No more bottles of beer on the wall, no more   
                               bottles of beer.Go to the store and buy some 
                               more, {X} bottles of beer on the wall.";

            List<string> songLines = new List<string> ();
            Enumerable.Range(1, countOfBottles)
                .Reverse()
                .ToList()
                .ForEach
                 (c => songLines.Add(lineTemplate.Replace("{X}", 
                 c.ToString()).Replace("{Y}", (c-1)!=0?(c - 1).ToString():@" No 
                 more bottles of beer on the wall.")));

            //Add the last line
            songLines.Add(lastLine.Replace("{X}", countOfBottles.ToString()));

            songLines.ForEach(c => Console.WriteLine(c));
            Console.ReadLine();
        }
    }
}

2011-06-21 (Tuesday)

Excel tips and tricks

Filed under: Developing — Terje Isaksen @ 14:40
Tags:

New function in Excel 2007:

=IFERROR(expression; safevalue)

If something is wrong, giving #ERROR och #VALUE – the safevalue is used. Combination of IF() and ISERROR()

To prevent user from saving workbook:

Private Sub Workbook_BeforeSave (ByVal SaveAsUI As Boolean, Cancel As Boolean) 
    '  Following line will prevent all saving
    Cancel = True
    '  Following line will prevent the Save As Dialog box from showing
    If SaveAsUI then SaveAsUI = False
End Sub

Source: http://www.ozgrid.com/forum/showthread.php?t=26224&p=133079#post133079

To be able to save this anyway, go to Developer tab and click on Design Mode – then macros will not run, and you are able to save.

2010-11-05 (Friday)

WCF: Tutorial

Filed under: Developing — Terje Isaksen @ 17:04
Tags:

http://msdn.microsoft.com/en-us/library/ms734712.aspx

 

2010-09-08 (Wednesday)

C#: String formats.

Filed under: Developing — Terje Isaksen @ 14:50
Tags:

Excellent overview at:
http://blog.stevex.net/string-formatting-in-csharp/

2010-05-05 (Wednesday)

Facebook: How to develop applications

Filed under: Developing — Terje Isaksen @ 11:49
Tags: ,
This is icon for social networking website. Th...

Image via Wikipedia

See informative text on:
Stevetrefethens blog

Also:
http://wiki.developers.facebook.com/index.php/User:C_Sharp

http://www.softwaredeveloper.com/features/develop-facebook-app-072607/

« Previous PageNext Page »

Blog at WordPress.com.