Thursday, August 11, 2011

AHA!


Í framhaldi af umræðu minni við Fannar um Fizz Buzz prófið fyrir alla sem sækja um starf forritara.

Ég sver það, ef það er svona auðvelt, þá hryllir mig við að hugsa um fólk sem sótti um starfið og gat EKKI leyst þetta. Ég kláraði það á 3ja degi*


*Það eru reyndar líklega hægt að kóða þetta mun hreinlegar.












#include <iostream>

using namespace std;

int main()
{
    //Kynning a forrit
    cout << "This program will prove to some interviewers that I am a good programmer." << endl;
    cout << endl;
    cout << "Fizz Buzz\n\n\n " << endl;
    //tilgreina breytu
    int teljari;
    // forlykkja til ad telja og reikna FizzBuzz
    for (teljari = 1 ; teljari <= 150 ; teljari++)
    {

        if (teljari % 3 == 0 && teljari % 5 == 0) cout << " Buzzbing " << endl;
        else if (teljari % 5 == 0) cout << " Bing " << endl;
        else if (teljari % 3 == 0) cout << " Buzz " << endl;
        else cout << teljari;
        cout << endl;
    }
    return 0;
}



Thursday, August 04, 2011

LIKE A BOSS!


 Slut double-standard

"The 'slut' double-standard always kind of annoys me. If a woman sleeps with a bunch of dudes, she's a slut, but if a guy goes out and does the same thing, all of a sudden he's 'gay'."


Og ég var sérstaklega ánægður með þetta komment:

I always figured girls as a labor union. They work together to artificially lower the supply of their goods and services on the market in order to negotiate for better benefits, job security and what not. Girls that break union ranks are like scab workers and have to be socially sanctioned, earning names like "slut."


I lol'd

Wednesday, August 03, 2011

Í tengslum við þessa frétt.


Það sem mér þykir einna helst skondið við þetta er að í lokin á skýrslunni sjálfri kemur þetta fram:


The study showed a substantial relationship between an individual’s cognitive ability and their choice of web browser. From the test results, it is a clear indication that individuals on the lower side of the IQ scale tend to resist a change/upgrade of their browsers. This hypothesis can be extended to any software in general, however more research is needed for that, which is a potential future work as an extension to this report. It is common knowledge, that Internet Explorer Versions to 6.0 to 8.0 are highly incompatible with modern web standards. In order to make websites work properly on these browsers, web developers have to spend a lot of unnecessary effort. This results in an extra financial strain on web projects, and has over the last decade cost millions of man-hours to IT companies. Now that we have a statistical pattern on the continuous usage of incompatible browsers, better steps can be taken to eradicate this nuisance.



Lítur út eins og fyrirtækið sé sjálft í einhverri krossferð gegn IE. Sjálfur er ég hrifnari af Chrome, en ég hef prófað IE version 9 og ég sé ekki betur en hann sé töluvert betri en allar útgáfur á undan og er alveg á pari við þá bestu.


EDIT: Nú er komið í ljós að rannsóknin var feik. Kemur svosem ekki á óvart en skemmtilegt að sjá hvað hún olli miklu fjaðrafoki. 

Saturday, July 09, 2011