ingig.net

Ideas, problems and development of Fronturs websites

Paper prototyping

clock May 31, 2007 23:44 by author ingig

I was looking at stylegala.com and there was a link about paper prototyping. This is something that anybody who designs software should use. Most of the time I use paper or the whiteboard and recently my notebook since it's a tablet. There is still some trouble with using a tablet, mostly flexability. You can handle the paper anyway you want, it's light and not hot but there is something about the computer, like storing the prototype, the paper prototype usually ends up in the trash.

Also writing up flowcharts on paper is a great help, a lot better the using software to draw them. So the paper is still working well

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Graham Algorithm

clock May 26, 2007 21:39 by author ingig

This is something I've been looking for

http://www.codeplex.com/grahamalgorithm it's build on A Plan for Spam

The plan for this is for detecting indecent posts in guestbook and weblog comments.  For some reason kids(and even some adults) think it's funny(usually the kids) or just to be cruel(usually the adults) post indecent entries into others peoples guestbook.

Right now we are using a long word list to try to filter out the bad posts, some word are good with low spam probability and others bad word with high spam probability. This is hard because you can write the same word many different ways and there are endless amount of bad words out there.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


PublicDomain

clock May 26, 2007 20:52 by author ingig

Quite nice class library

http://www.codeplex.com/publicdomain 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Uppsetning á SMTP server og gamlir póstar

clock May 21, 2007 20:14 by author ingig

Ég var að setja upp localhost smtp þjón hjá okkur þar sem allur póstur sem sendur var til Vodafone(visir.is, mi.is, internet.is og fleira) skilaði sér ekki á leiðarenda í gegnum hinn smtp þjónin okkar. Nú virðast þeir fara allir í gegn en þá kom upp tvö önnur vandamál. Annarsvegar hættist að senda á önnur domain þar á meðal simnet.is sem er ansi stór en það ætti að lagast á morgun og allir ættu að fá póstinn sinn en aðeins og seint.

Mér var bent á hitt vandamálið en það virðist vera að í Queue-inu á smtp þjóninum voru gamlar póstsendingar frá 2004 sem fóru allt í einu af stað s.b. http://barnaland.is/messageboard/messageboard.aspx?advid=6534118&advtype=52&page=1 

Úps, afsakið allir þeir sem fengu póst. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Jeeee

clock May 21, 2007 04:04 by author ingig
http://www.fuckoffimbusy.com/

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


3D map of the world

clock May 21, 2007 03:51 by author ingig

This is just really cool

http://freeearth.poly9.com/

Currently rated 2.0 by 1 people

  • Currently 2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


jQuery

clock May 20, 2007 22:23 by author ingig
I must say that jQuery is quite amazing, it has alot of cool plugins

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Javascript bútar til að bæta við á síðuna

clock May 20, 2007 15:00 by author ingig

Hér eru nokkrir sniðugir javascript bútar sem allir geta sett á síðurnar hjá sér

Þessi birtir nýjustu umræðurnar undir flokkinum Annað

<script type="text/javascript" src="http://barnaland.is/dev/messageboard.js.aspx?type=52&page=1&itemsCount=10&style=0"></script>
Til að velja annan flokk þá breytirðu type breytunni, t.d. ef viljum sjá hvað nýtt er til sölu í smáauglýsingunum er type = 3

Hérna birtum við nýjustu myndirnar af heimasíðu, þannig getur mamman t.d. birt nýjustu myndirnar á heimasíðu barnsins síns á blogsíðunni sinni.

<script type="text/javascript" src="http://barnaland.is/dev/album.js.aspx?websiteId=27733&latestCount=10&style=1&width=150"></script>

Svo að lokum geturðu birt síðustu vefdagbókar færslur af heimasíðunni barnsins þíns.

<script type="text/javascript" src="http://barnaland.is/dev/weblog.js.aspx?websiteId=1193&latestCount=10&txtLength=150"></script>

Niðurstöðurnar fyrir albúmið og umræðuna geturðu sé hérna í hægri hliðinni ->, annarsvegar umræður frá barnaland.is og svo hinsvegar myndir úr albúmi sem ég setti en.  Myndirnar eru fengnar af einhverri ljósmyndasíðu og ætti að sjást watermark á þeim

Það er hægt að fá nánari upplýsingar inná síðunum hjá okkur undir API og þar Javascript 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Using the Frontur Webservice API

clock May 17, 2007 21:05 by author ingig

I'll try to give step by step description on how to use the Frontur Webservice API. In this first tutorial I'll be using Visual C# Express to connect to the webservice. If you use VB.Net you should be familiar with what's happening.

The next tutorial I'll use Java and the Intellij IDEA from Jetbrains.com, this is the only IDE that I have ever liked so I recomend it.

The first step is to register on one of our websites. Since this is in english I'll go to babyworld.net and pick my self a username and password and type in my email. You don't have to write any baby. Then click Save. Next  I click on API at the bottom of the page. There I'll get a litle description of what is possible. If needed I'll add more information.

Now click on My keys & Apps, this is where you can apply for a key. Type in your name and email. If you are going to write a web application you need to type in the Url. Select the application type, give it some name and description. The name of the application and description isn't important at this point. Right now we don't want to show the application on the public website since we are just trying this out. Check the terms box and click Save. [figure1]

This will give us a API key that we can use in our application, see [figure 2]

Now it's time to fire up Visual C# Express and create a new Window Application, I'll name it MyLatestPictures [figure 3]. I create a private variable called apiKey. [figure 4] Next we'll create a new web reference(Project -> Add Web Reference). We are going to use the the DataStorage webservice. This is where you can retrieve all files from our system. The path to the webservice is http://babyworld.net/dev/DataStorage.asmx as you can see if you go to http://babyworld.net/dev/ the WSDL file for that webservice is http://babyworld.net/dev/DataStorage.asmx?WSDL

So we will use that URL and paste it into the Add Web Reference window [figure 5]. We click the Add reference button.

Next we go into the Window Designer and setup few controls on that form. I have 3 pictureboxes, two buttons and one lable. [figure 6].

This is the code in form, the names of the controls are: lblTotalImages; button1; button2; currentPicture; prevPicture; nextPicture

public partial class Form1 : Form {

    //You'll need a new api key, this one doesn't work
    private string apiKey = "4717046c-9974-45ba-88b3-ad5a5d7fe6ca";
    private FolderFile[] files = null;
    private int currentPosition = 0;

    public Form1()  {
        InitializeComponent();

        //Create instance of the DataStorage object that the webservice provides
        DataStorage ds = new DataStorage();

       //We retrieve 10 last files from websiteId 27733, the password is empty
       //the websiteId is the path to the website. E.g. http://babyworld.net/baby/123,
       //http://barnaland.is/barn/123. WebsiteId should always be available to test

         //this application or others. If you don't know the websiteId you can use
        //http://babyworld.net/dev/website.asmx to look it up.
        files = ds.GetLatestFilesOnWebsite(27733, 10, "", apiKey);

        //Just setting some text
        lblTotalImages.Text = "There are total of " + files.Length + " files retrieved";

      //Disable the previous button, this is the first picture so there is
      //no previous picture

      button2.Enabled = false;

    //load current picture (the big one)
    for (int i = 0; i < files.Length; i++) {
        if (IsPicture(files[i].FileName)) {
            LoadImage(currentPicture, files[i].Path);
            currentPosition = i;
            i = files.Length;
        }
    }

    //lets load a thumbnail into the nextPicture PictureBox
    LoadNextPicture();
}


private void button1_Click(object sender, EventArgs e) {

    if (currentPosition+1 >= files.Length) button1.Enabled = false;
    button2.Enabled = true;

    //load current picture (the big one)
    for (int i = currentPosition + 1; i < files.Length; i++) {
        if (IsPicture(files[i].FileName)) {
            LoadImage(currentPicture, files[i].Path);
            currentPosition = i;
            i = files.Length;
        }
    }

    LoadNextPicture();
    LoadPrevPicture();
}


private void button2_Click(object sender, EventArgs e) {

     if (currentPosition-1 <= 0) button2.Enabled = false;
    button1.Enabled = true;

    //load current picture (the big one)
    for (int i = currentPosition - 1; i > -1; i--) {
        if (IsPicture(files[i].FileName)) {
            LoadImage(currentPicture, files[i].Path);
            currentPosition = i;
            i = -1;
        }
    }

    LoadNextPicture();
    LoadPrevPicture();
}


/**
* Loads the picture from the domain into the application
*/

private void LoadImage(PictureBox box, string path) {

    WebRequest wr = WebRequest.Create("http://babyworld.net/" + path);
    using
(WebResponse webResponse = wr.GetResponse()) {

        box.Image = Image.FromStream(webResponse.GetResponseStream(), false);
    }
}


/**
* Check if this fileName ends on a picture extension
*/
private bool IsPicture(string fileName) {

    return (Path.GetExtension(fileName) == ".jpg" ||
                Path.GetExtension(fileName) == ".jpeg" ||  
                Path
.GetExtension(fileName) == ".gif" ||

                    Path.GetExtension(fileName) == ".png");
}


/***
* Loads the previous picture thumbnail into the previous picture box
*/

private void LoadPrevPicture() {

    //load prev picture

    for (int i = currentPosition - 1; i > -1; i--) {
          if (IsPicture(files[i].FileName)) {
            LoadImage(prevPicture, files[i].ThumbnailPath);
            i = -1;
        }
    }
}

/***
* Loads the next picture thumbnail into the next picture box
*/

private void LoadNextPicture() {
    //load next picture
    for (int i = currentPosition + 1; i < files.Length; i++) {
        if (IsPicture(files[i].FileName)) {
            LoadImage(nextPicture, files[i].ThumbnailPath);
            i = files.Length;
        }
    }
}

}

}

You can get the project here If you have any questions please post it into our forum on frontur.com or post in the comments below or send me an email. Also, you get a 16GB account if you are using any of our webservices for free for life (or at least while the application works)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


New Branch for Next Version

clock May 17, 2007 17:07 by author ingig

Today I created a new branch in svn for our next version. All of the bugs and late features has been added into our last version, called Hovito. This version has the codename Sallah and will all our focus be on a new cms for the websites and work on it will start on monday.

I'll try to add some tutorials for our new Webservice API so somebody can use it.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Uppfærsla á kerfinu hjá okkur - Webservice API

clock May 7, 2007 01:00 by author ingig

Við vorum að uppfæra kerfið okkar í dag. Þar eru nokkrar nýjungar: Barnalandsarmböndin - Lost, Dagforeldarar og barnapíur, Nafnaskilti, Foreldrahópar, sækjum myndir frá Amazon S3 og svo opin Webservice API. Þetta gekk allt nokkuð vel, nokkrir böggar hér og þar en það virðist allt vera komið í lag núna. Ég mun samt fylgjast náið með á næstu dögum hvort eitthvað poppar upp sem ég hef ekki séð áður.

Það sem er að ég held stærst í þessu er opni vefþjónustu API-nn. Þarna geta forritarar forritað gegn kerfinu hjá okkur, sótt gögn og bætt við gögnum. Það verður spennandi að sjá hvað fólki dettur í hug að gera. Til að tengjast þjónustunni þarf að vera með sérstaka API lykil (API key). Hvert forrit þarf að vera með slíka lykil en hann kostar ekkert og því ætti það ekki að skipta nokkru máli. Hann er bara notaður til að geta aðgreint þjónusturnar. 

Við viljum svo verðlauna þá sem búa til forrit sem tengjast þjónustunum með ókeypis 16 GB áskrift meðan forritið virkar, þannig að ef þú kannt að forrita og ert með síðu hjá okkur, hvort sem er á barnaland.is, dyraland.is eða bloggland.is þá endilega skrifaðu eitthvað sniðugt forrit og sendu á mig póst til að fá fríu áskriftina.

Á næstu dögum ætla ég svo að skella inn nánari leiðbeiningum hvernig á að nota vefþjónusturnar til að auðvelda fyrir. Svo ertu að sjálfsögðu velkomin að skrifa inn á umræðu vefinn hjá okkur þar sem ég mun fylgjast með og svara eftir bestu getu. Ég geri mér líka grein fyrir því að það er ekki alltof miklar upplýsingar um hvernig á að tengjast vefþjónustunum en ég mun reyna að bæta það með tímanum.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Joost

clock May 2, 2007 01:00 by author ingig

Nú á ég allt í einu 998 invite, póstið í kommentin ef þið viljið 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


New prices at Amazon S3

clock May 1, 2007 01:00 by author ingig

I recieved an email from the Amazon Web Services telling me that the prices are going down. This I like.

Current bandwidth price (through May 31, 2007)
$0.20 / GB - uploaded
$0.20 / GB - downloaded

New bandwidth price (effective June 1, 2007)
$0.10 per GB - all data uploaded

$0.18 per GB - first 10 TB / month data downloaded
$0.16 per GB - next 40 TB / month data downloaded
$0.13 per GB - data downloaded / month over 50 TB
Data transferred between Amazon S3 and Amazon EC2 will remain free of charge

New request-based price (effective June 1, 2007)
$0.01 per 1,000 PUT or LIST requests
$0.01 per 10,000 GET and all other requests*
* No charge for delete requests

Storage will continue to be charged at $0.15 / GB-month used.

It's always good news to see the price go down. They have added a new category were you pay per request. I can' see that this will affect us in any way. 

The progress of uploading the files are going well. We have about 80% of all the files uploaded and soon we will start using it on our public website. I have been trying it here on the development machine and it seems to work fine.  

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Search

Twitter Updates

    Myndir

    Er.is

    Calendar

    <<  November 2008  >>
    SuMoTuWeThFrSa
    2627282930311
    2345678
    9101112131415
    16171819202122
    23242526272829
    30123456

    Archive

    Tags

    Categories


    Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in