• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forums

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.channels > General discussion

    General discussion Chatter, desires, jokes & rants; some threads are banter some are serious - please show respect for others Add RSS Feed

    Reply
     
    LinkBack Thread Tools
    Old 24-12-2007, 09:52 AM   #1 (permalink)
    Seething Cauldron of Hatred
     
    Join Date: Aug 2005
    Posts: 6,039
    Thanks: 47
    Thanked 171 Times in 140 Posts
    Who's working this Christmas Eve?

    Ok so i'm at work. I'm bored.

    I'm a front office developer, what that means is i nock up all sorts of applications/software-infrastructure as required for the desk I support. Been the junoir muggins is in today.

    But not one of the sodding traders is. Not to mention that, but the broker booze i've been given is truely sub-pa. Villalin Quincy 2006. Sometimes i hate been the youngest.

    Now the problem is, i can't do any real development, as I need more app servers. So i'm left bored, with the only work to be done GUI stuff (I HATE UI WORK!).

    So, I present you with this offering, the money clock so you can watch it tick by:
    Code:
    namespace Money_Clock
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.Write("Please Provide Your Hourly Pay In Pounds: ");
    
                decimal rate;
                while (true)
                    if (decimal.TryParse(Console.ReadLine(), out rate))
                        break;
                    else
                        ConsolePlus.WriteError("Invalid Input, Please Provide Hourly Rate as Decimal.");
    
                Console.Clear();
                DateTime started = DateTime.Now;
    
                rate = rate/36;
    
                while (true)
                {
                    Console.SetCursorPosition(0,0);
                    Console.Write("{0} Pence.",(rate * (decimal)(DateTime.Now.Subtract(started).TotalSeconds)).ToString("F"));
                    Thread.Sleep(1000);
                }
            }
        }

    throw new ArgumentException (String, String, Exception)
    TheAnimus is offline   Reply With Quote
    Old 24-12-2007, 09:53 AM   #2 (permalink)
    Seething Cauldron of Hatred
     
    Join Date: Aug 2005
    Posts: 6,039
    Thanks: 47
    Thanked 171 Times in 140 Posts
    Re: Who's working this Christmas Eve?

    And the support class (this is all C# 2.0 or better btw)
    Code:
        public class ConsolePlus
        {
            private ConsoleColor _errorColour = ConsoleColor.Red;
    
            /// <summary>
            /// Writes to the console using the error 'style'.
            /// </summary>
            /// <param name="message">The message.</param>
            /// <param name="args">The args.</param>
            public static void WriteError(string message, params object[] args)
            {
                using (new ConsoleColorScope(ConsoleColor.Red))
                    Console.WriteLine(message, args);
            }
    
            /// <summary>
            /// Gets or sets the error colour.
            /// </summary>
            /// <value>The error colour.</value>
            public ConsoleColor ErrorColour
            {
                get { return _errorColour; }
                set { _errorColour = value; }
            }
    
    
            /// <summary>
            /// Sets the ConsoleColor, for only the time indended before reverting to the original.
            /// </summary>
            public class ConsoleColorScope : IDisposable
            {
                private readonly ConsoleColor _foregroundCol;
                private readonly ConsoleColor _backgroundCol;
    
                /// <summary>
                /// Initializes a new instance of the <see cref="ConsoleColorScope"/> class.
                /// </summary>
                /// <param name="ForegroundColor">Color of the foreground.</param>
                public ConsoleColorScope(ConsoleColor ForegroundColor)
                {
                    _foregroundCol = Console.ForegroundColor;
                    Console.ForegroundColor = ForegroundColor;
                    _backgroundCol = Console.BackgroundColor;
                }
                /// <summary>
                /// Initializes a new instance of the <see cref="ConsoleColorScope"/> class.
                /// </summary>
                /// <param name="ForegroundColor">Color of the foreground.</param>
                /// <param name="BackgroundColor">Color of the background.</param>
                public ConsoleColorScope(ConsoleColor ForegroundColor, ConsoleColor BackgroundColor)
                {
                    _foregroundCol = Console.ForegroundColor;
                    Console.ForegroundColor = ForegroundColor;
                    _backgroundCol = Console.BackgroundColor;
                    Console.BackgroundColor = BackgroundColor;
                }
    
                #region IDisposable Members
                ///<summary>
                ///Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
                ///</summary>
                ///<filterpriority>2</filterpriority>
                public void Dispose()
                {
                    Console.BackgroundColor = _backgroundCol;
                    Console.ForegroundColor = _foregroundCol;
                }
                #endregion
            }
        }

    throw new ArgumentException (String, String, Exception)
    TheAnimus is offline   Reply With Quote
    Old 24-12-2007, 09:56 AM   #3 (permalink)
    Senior Member
     
    Behemoth's Avatar
     
    Join Date: Jul 2003
    Location: Pasty Land
    Posts: 1,512
    Thanks: 85
    Thanked 43 Times in 39 Posts
    Behemoth's system
    Re: Who's working this Christmas Eve?

    Dude you are bored. What I'm moer amazed about is it's actually been about 6 years since I saw any programming code and kinda understood some of your code. It seems that ND isn't wasted after all.

    Oh and no I'm not working today, but I am working on boxing day
    Behemoth is offline   Reply With Quote
    Old 24-12-2007, 10:06 AM   #4 (permalink)
    Senior Member
     
    burble's Avatar
     
    Join Date: May 2007
    Posts: 572
    Thanks: 0
    Thanked 24 Times in 24 Posts
    burble's system
    Re: Who's working this Christmas Eve?

    I've been off work since November 30th. It's going to be a struggle to go back next month.

    burble is offline   Reply With Quote
    Old 24-12-2007, 10:09 AM   #5 (permalink)
    laser chasing loonatic
     
    Lee @ SCAN's Avatar
     
    Join Date: Dec 2003
    Location: M28, Manchester
    Posts: 11,270
    Thanks: 123
    Thanked 226 Times in 210 Posts
    Lee @ SCAN's system
    Re: Who's working this Christmas Eve?

    I'm Working here as well and then I've got to go do the xmas eve present dash for all the relatives

    I was going to do it over the weekend, but in the end I ended up travelling down the country, went clubbing and then travelled back yesterday after a small rest.

    Lee
    ----
    Lee @ SCAN is offline   Reply With Quote
    Old 24-12-2007, 10:20 AM   #6 (permalink)
    G4Z
    Senior Member
     
    G4Z's Avatar
     
    Join Date: Sep 2003
    Location: geordieland
    Posts: 2,485
    Thanks: 73
    Thanked 40 Times in 34 Posts
    G4Z's system
    Re: Who's working this Christmas Eve?

    I'm at work, sat here wasting time because I can't be arsed to do any real work. yay yetisports.

    HEXUS FOLDING TEAM It's EASY
    G4Z is offline   Reply With Quote
    Old 24-12-2007, 10:22 AM   #7 (permalink)
    Team HEXUS.net
     
    joshwa's Avatar
     
    Join Date: Jul 2003
    Location: Liverpool, UK
    Posts: 4,307
    Thanks: 44
    Thanked 37 Times in 35 Posts
    joshwa's system
    Re: Who's working this Christmas Eve?

    Gifts? What are these things you speak of?

    We get a tin of chocolates for the office as our "gift".

    And yes I'm working. Bah humbug.

    joshwa is offline   Reply With Quote
    Old 24-12-2007, 10:23 AM   #8 (permalink)
    HEXUS webmaster
     
    Steve's Avatar
     
    Join Date: Nov 2003
    Location: Bristol
    Posts: 11,403
    Thanks: 18
    Thanked 94 Times in 61 Posts
    Steve's system
    Re: Who's working this Christmas Eve?

    I'm always working. HEXUS never sleeps


    ------------------------------

    Steve is offline   Reply With Quote
    Old 24-12-2007, 10:45 AM   #9 (permalink)
    It's good to be bad
     
    pauldarkside's Avatar
     
    Join Date: Oct 2006
    Location: Cornwall
    Posts: 1,469
    Thanks: 45
    Thanked 72 Times in 66 Posts
    pauldarkside's system
    Re: Who's working this Christmas Eve?

    Not working here today - just putting off going to Asda until the last minute.

    @TheAnimus: Nice to see what I could have been earning mounting up though - had to import the Thread class - it's interesting to see how much one of my rollie/coffee breaks earns

    My only concern is should I hide my true identity? A costume maybe?

    Originally Posted by 0iD
    Plus weeing in it every now & again does it good
    pauldarkside is offline   Reply With Quote
    Old 24-12-2007, 10:55 AM   #10 (permalink)
    Seething Cauldron of Hatred
     
    Join Date: Aug 2005
    Posts: 6,039
    Thanks: 47
    Thanked 171 Times in 140 Posts
    Re: Who's working this Christmas Eve?

    I've actually turned mine off now, i'm not sure if its healthy.

    throw new ArgumentException (String, String, Exception)
    TheAnimus is offline   Reply With Quote
    Old 24-12-2007, 10:58 AM   #11 (permalink)
    Senior Member
     
    Join Date: Aug 2005
    Location: in a box
    Posts: 596
    Thanks: 4
    Thanked 0 Times in 0 Posts
    Re: Who's working this Christmas Eve?

    I work at a college, there are about 8 people in and 4 IT Technicians to support them. The local council have shut for the day so heaven knows y we are in work. Still we have been told we can go at 12.30 and so its not to bad


    Permanently confused
    zulander is offline   Reply With Quote
    Old 24-12-2007, 11:03 AM   #12 (permalink)
    Contented!
     
    menthel's Avatar
     
    Join Date: Apr 2004
    Location: Rainey Park...
    Posts: 4,298
    Thanks: 106
    Thanked 35 Times in 31 Posts
    menthel's system
    Re: Who's working this Christmas Eve?

    For the first time in 6 years I am off. No NHS christmas dinner etc and I am soooooo happy!

    menthel is offline   Reply With Quote
    Old 24-12-2007, 11:09 AM   #13 (permalink)
    Senior Member
     
    kopite's Avatar
     
    Join Date: Sep 2006
    Location: Liverpool
    Posts: 1,604
    Thanks: 9
    Thanked 27 Times in 23 Posts
    Re: Who's working this Christmas Eve?

    Im working today and then again on boxing day

    kopite is offline   Reply With Quote
    Old 24-12-2007, 11:15 AM   #14 (permalink)
    Chief Nutter
     
    tiggerai's Avatar
     
    Join Date: Aug 2003
    Location: On the HEXUS.social bridge - Warp Speed Mr Warf!
    Posts: 6,891
    Thanks: 63
    Thanked 107 Times in 96 Posts
    tiggerai's system
    Re: Who's working this Christmas Eve?

    Originally Posted by burble View Post
    I've been off work since November 30th. It's going to be a struggle to go back next month.
    You missed the trifle and the cheesecake and tiramisu... there were leftovers I polished off yesterday! Muahahaha.

    Originally Posted by joshwa View Post
    Gifts? What are these things you speak of?

    We get a tin of chocolates for the office as our "gift".
    Lanson Black label Champers.... I love working corporate again

    I'm not working any of xmas this year, for the first time in my working life! It's lovely.

    HEXUS.social Co-ordinator & [H3XU5].lan Team Captain
    Events coming soon:
    • 10/11th December - HEXUS.social Xmas Mini Meet - London
    • February (provisional) - HEXUS.social Meet - Manchester
    • March (provisional) - H3XU5.lan - Uttoxeter
    • 2009 - Provisional Calendar coming soon.... Watch this space!!
    For details, visit - http://forums.hexus.net/hexus-social/ or http://www.h3xu5.net

    FAQ: HEXUS.social FAQ!
    tiggerai is offline   Reply With Quote
    Old 24-12-2007, 11:24 AM   #15 (permalink)
    Senior Member
     
    Join Date: Jul 2004
    Location: Somerset
    Posts: 1,796
    Thanks: 16
    Thanked 9 Times in 7 Posts
    Mblaster's system
    Re: Who's working this Christmas Eve?

    I'm 'working' right now, but only a half day today SO all is good, off to finish the christmas shopping in Bristol later.
    Mblaster is offline   Reply With Quote
    Old 24-12-2007, 11:25 AM   #16 (permalink)
    Senior Member
     
    Behemoth's Avatar
     
    Join Date: Jul 2003
    Location: Pasty Land
    Posts: 1,512
    Thanks: 85
    Thanked 43 Times in 39 Posts
    Behemoth's system
    Re: Who's working this Christmas Eve?

    Originally Posted by tiggerai View Post
    You missed the trifle and the cheesecake and tiramisu... there were leftovers I polished off yesterday! Muahahaha.



    Lanson Black label Champers.... I love working corporate again

    I'm not working any of xmas this year, for the first time in my working life! It's lovely.
    Don't rub it in lol Working boxing day is no fun
    Behemoth is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.channels > General discussion


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On
    Forum Jump