1. Post #2201
    Richy19's Avatar
    May 2010
    5,368 Posts
    Wha was that tool posted not too long ago that draws a timeline graph of a git/svn project?
    Reply With Quote Edit / Delete Linux United Kingdom Show Events

  2. Post #2202
    Gold Member
    ZenX2's Avatar
    February 2009
    4,914 Posts
    I decided that I really needed to get server-side client code (HUD-like stuff), so I added a little bit to my virtual filesystem library, now I can load entire directories into the vfs and send them to clients
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  3. Post #2203
    Paid for a title.
    Maurice's Avatar
    June 2005
    6,175 Posts
    Made object size not matter with portals! That's been bugging me for months (really).

    Feels good to finally get it done. I'm invincible!
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Programming King Programming King x 4 (list)

  4. Post #2204
    Gold Member
    robmaister12's Avatar
    January 2008
    4,969 Posts
    Wha was that tool posted not too long ago that draws a timeline graph of a git/svn project?
    Are you talking about gource?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 2 (list)

  5. Post #2205
    Gold Member
    LuaStoned's Avatar
    September 2007
    1,349 Posts
    I use TortoiseSVN for virtually all my stuff, so the one time I tried git, I used TortoiseGit and it was a friendly way for me to ease into it.
    Now it's time to use TortoiseHG!

    In other notes, I cloned the Facepunch Lua API over to Mercurial. It's on BitBucket
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Agree Agree x 2Friendly Friendly x 1 (list)

  6. Post #2206
    Kate Adams
    COBRAa's Avatar
    June 2009
    970 Posts
    Added an OGG codec to Holly. The example program outputs webm and ogg now.

    EncodingExample.exe : http://puu.sh/bd90

    Ogg:




    WebM:



    Edited:

    OGG don't loop so good.
    First one doesn't loop, second one plays but uses all my CPU.

    Edited:

    oh hey you made an italy
    And.... my coffee is everywhere.
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Funny Funny x 2 (list)

  7. Post #2207
    Gold Member

    July 2006
    1,951 Posts
    Now it's time to use TortoiseHG!

    In other notes, I cloned the Facepunch Lua API over to Mercurial. It's on BitBucket
    BitBucket is awesome.
    Reply With Quote Edit / Delete Windows Vista Finland Show Events Agree Agree x 5 (list)

  8. Post #2208
    Gold Member
    Electroholic's Avatar
    June 2011
    2,288 Posts
    I'm thinking of using FMOD instead of writing my own audio decoder for all of the many containers/formats. But I really don't like the fact that it is proprietary.
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Agree Agree x 1 (list)

  9. Post #2209
    RusselG's Avatar
    February 2011
    599 Posts
    Now it's time to use TortoiseHG!

    In other notes, I cloned the Facepunch Lua API over to Mercurial. It's on BitBucket
    are you working on the API with them?
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Agree Agree x 2 (list)

  10. Post #2210
    Hates php
    high's Avatar
    May 2006
    2,413 Posts
    Was tired of filling my code with

    this.SuspendLayout();
    //code
    this.ResumeLayout();

    Now I can fill it with
    using (new SuspendLayout(this))
    {
    //code
    }

    	/// <summary>
    	/// Suspends layout on construction, resumes on dispose.
    	/// </summary>
    	public class SuspendLayout : IDisposable
    	{
    		protected readonly Control control;
    		public SuspendLayout(Control cont)
    		{
    			control = cont;
    			control.SuspendLayout();
    		}
    		public void Dispose()
    		{
    			control.ResumeLayout();
    		}
    	}
    Reply With Quote Edit / Delete Windows 7 United States Show Events Useful Useful x 4Informative Informative x 1Artistic Artistic x 1 (list)

  11. Post #2211
    Gold Member
    Ortzinator's Avatar
    May 2005
    1,647 Posts
    Was tired of filling my code with

    this.SuspendLayout();
    //code
    this.ResumeLayout();

    Now I can fill it with
    using (new SuspendLayout(this))
    {
    //code
    }

    	/// <summary>
    	/// Suspends layout on construction, resumes on dispose.
    	/// </summary>
    	public class SuspendLayout : IDisposable
    	{
    		protected readonly Control control;
    		public SuspendLayout(Control cont)
    		{
    			control = cont;
    			control.SuspendLayout();
    		}
    		public void Dispose()
    		{
    			control.ResumeLayout();
    		}
    	}
    That makes me feel dirty.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 2 (list)

  12. Post #2212
    Gold Member
    Electroholic's Avatar
    June 2011
    2,288 Posts
    Just wiped like a week of work and replaced all my shit with FMOD within a few minutes
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Winner Winner x 1 (list)

  13. Post #2213
    Gold Member
    danharibo's Avatar
    July 2006
    4,432 Posts
    That makes me feel dirty.
    That's not a terrible way to go about it tbh, using scope like that isn't a bad thing.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 4 (list)

  14. Post #2214
    Naarkie's Avatar
    September 2011
    319 Posts
    Added a nice captcha window. It should work, but I'm not sure, because Omegle refuses to send me a captcha request. It's way too trusting.
    CleverBot v1.0.5 get
    Reply With Quote Edit / Delete Windows 7 South Africa Show Events

  15. Post #2215
    benji2015's Avatar
    October 2010
    476 Posts

    Finally back, with no bandwidth limits.

    Dunno why the zombies keep going invisible yet.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 4Programming King Programming King x 1 (list)

  16. Post #2216
    Gold Member
    LuaStoned's Avatar
    September 2007
    1,349 Posts
    are you working on the API with them?
    Yeah? I contributed most of the Ajax / POST stuff :P
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Winner Winner x 3Agree Agree x 1 (list)

  17. Post #2217
    I bought a title for $1.
    sambooo's Avatar
    March 2011
    2,557 Posts
    Code:
    if (correct)
    {
        return true;
    }
    else
    {
        return false;
    }
    Code:
    return correct;
    ?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 32Funny Funny x 7Zing Zing x 1 (list)

  18. Post #2218
    Gold Member
    danharibo's Avatar
    July 2006
    4,432 Posts
    Code:
    if (correct)
    {
        return true;
    }
    else
    {
        return false;
    }
    Code:
    return correct;
    ?
    I knew someone who kept writing:
    Code:
    if( a == true )
    {
         b = true;
    }
    else if( a == false )
    {
        b = false;
    }
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 16Agree Agree x 1 (list)

  19. Post #2219
    DevBug's Avatar
    July 2010
    1,059 Posts
    I'm more worried about the unsanatized input.
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Agree Agree x 3Disagree Disagree x 1Informative Informative x 1 (list)

  20. Post #2220
    Audio Enthusiast
    Tezzanator92's Avatar
    June 2006
    2,777 Posts
    Psuedo-Crapcode
    Code:
    return (bool)math.clamp((int)correct, 0, 1);
    I had to sell my soul to write that code.

    (I would never do this, just to clarify)
    Reply With Quote Edit / Delete Windows XP United Kingdom Show Events Funny Funny x 2Winner Winner x 1 (list)

  21. Post #2221
    Gold Member
    Robber's Avatar
    January 2006
    6,035 Posts
    I knew someone who kept writing:
    Code:
    if( a == true )
    {
         b = true;
    }
    else if( a == false )
    {
        b = false;
    }
    One guy at school did this:
    public void doSomething(boolean large) {
        if (large) {
            //Code
        }
        if (small) {
            //Code
        }
    }
    Needless to say, he failed the class.
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Funny Funny x 18 (list)

  22. Post #2222
    Gold Member
    Ortzinator's Avatar
    May 2005
    1,647 Posts
    Code:
    if (correct)
    {
        return true;
    }
    else
    {
        return false;
    }
    Code:
    return correct;
    ?
    I can sympathize. For a while I had to force myself to not write code like that.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  23. Post #2223
    Hi.
    reevezy67's Avatar
    July 2011
    4,258 Posts
    Checking out angelscript so I can mess around and make an amnesia custom story, looks very easy it's based on C/C++.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events

  24. Post #2224
    Gold Member
    Robber's Avatar
    January 2006
    6,035 Posts
    One guy at school did this:
    public void doSomething(boolean large) {
        if (large) {
            //Code
        }
        if (small) {
            //Code
        }
    }
    Needless to say, he failed the class.
    Holy shit I found the actual code in the revision history:
        public float getPendlerpauschale(float km, boolean large) 
        {
            if large=true
            {
            if(km<20)
                return 28;
            if(km<40 )
                return 113;
            if(km<60)
                return 196;
            else
                return 281;
            }
            if large=small
            {
                    if(km<40)
                return 52;
            if(km<60)
                return 103;
            else
                return 154; 
        }

    It's a bit different than I what I remembered but just as horrible! And I'm pretty sure he never even tried to compile that... thing.
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Funny Funny x 6 (list)

  25. Post #2225
    HQRSE FUCKER
    ief014's Avatar
    September 2009
    3,046 Posts
    Well, at least he put those if statements in good order
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Optimistic Optimistic x 5 (list)

  26. Post #2226
    Gold Member
    ZenX2's Avatar
    February 2009
    4,914 Posts
    Dear lord.

    Edited:

    My Day:

    Make some exciting progress on a feature that is potentially extremely useful, and yet barely understand this despite writing it
    Determine that this progress is actually very useful
    Run into problem after problem when attempting to use the new feature as intended, wasting hours firing away at it, wearing it down piece by meaningless piece

    Then, some time in the future...

    Do something and the feature suddenly works. Hark, and hear the angels singing! All is now clear.
    Begin work on next feature. Repeat.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 3Friendly Friendly x 1Artistic Artistic x 1 (list)

  27. Post #2227
    garry's Avatar
    September 2001
    12,320 Posts
    Fixed OGG codec.. you need to mark the last frame as the last frame. If this don't loop now then I don't know what its problem is.



    Edited:

    Blargh guess I don't know what its problem is.
    Reply With Quote Edit / Delete Windows 7 Show Events Funny Funny x 7Friendly Friendly x 1 (list)

  28. Post #2228
    Hruhf's Avatar
    September 2007
    574 Posts
    One guy at school did this:
    public void doSomething(boolean large) {
        if (large) {
            //Code
        }
        if (small) {
            //Code
        }
    }
    Needless to say, he failed the class.
    Ashamed to say it took me a while.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Friendly Friendly x 1Funny Funny x 1 (list)

  29. Post #2229
    voodooattack's Avatar
    October 2009
    1,933 Posts
    Do you mean you want to display the captcha image in console? I could make it work with Windows Forms, so it displays a basic form with a picturebox.
    Thanks once more for le patch. If you want, I can add you as a contributor to the project.
    Gonna make the thread tomorrow morning, too tired right now.

    EDIT:
                           case "count":
                                 if (this.Count != null)
                                     this.Count(this, new EventArgs()); //I'm a cheapskate, ev[1] holds user count though.
    
    The "user count" is actually a number randomly generated with each user connection. #themoreyouknow
    No problem, and.. not sure about contributor status, I have commitment issues.

    Added a nice captcha window. It should work, but I'm not sure, because Omegle refuses to send me a captcha request. It's way too trusting.
    CleverBot v1.0.5 get
    I just saw that you added the form, not sure if that'll work, but I'll test it out. From what I remember, displaying a winform from a console application will freeze because of the lack of a message pump (you'd need a separate thread to run it). I think a modal form would work though.

    I'll get it to show me a captcha and try it out.
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events

  30. Post #2230
    Gold Member
    danharibo's Avatar
    July 2006
    4,432 Posts
    Have you considered putting the Chatlog inside a winform? then you could just display the captcha no worries.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  31. Post #2231
    garry's Avatar
    September 2001
    12,320 Posts
    Reply With Quote Edit / Delete Windows 7 Show Events Friendly x 7Programming King x 2Winner x 1Informative x 1Agree x 1Artistic x 1 (list)

  32. Post #2232
    voodooattack's Avatar
    October 2009
    1,933 Posts
    Actually, that would be the right way to approach the whole thing, I'm going the quick route though.

    I think showing a modal form that has a text field for input would be easiest.

    Edited:

    Garry, I'd pay to change your title to something manageable.
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events

  33. Post #2233
    garry's Avatar
    September 2001
    12,320 Posts
    Reply With Quote Edit / Delete Windows 7 Show Events Funny Funny x 6 (list)

  34. Post #2234
    voodooattack's Avatar
    October 2009
    1,933 Posts
    I'm not paying you.
    Reply With Quote Edit / Delete Windows 7 Egypt Show Events Funny Funny x 36 (list)

  35. Post #2235
    garry's Avatar
    September 2001
    12,320 Posts
    What are you talking about then? Who would you pay to change it?
    Reply With Quote Edit / Delete Windows 7 Show Events

  36. Post #2236
    Gold Member
    Robber's Avatar
    January 2006
    6,035 Posts
    What are you talking about then? Who would you pay to change it?
    It's a rhetorical "I'd pay" meaning if there wasn't an option to pay for it he would pay if there was an option to pay.

    Maybe we should split the cost of changing his title? I'd contribute 3$!
    Reply With Quote Edit / Delete Windows 7 Austria Show Events Funny Funny x 4 (list)

  37. Post #2237
    TVC

    April 2010
    300 Posts
    It's a rhetorical "I'd pay" meaning if there wasn't an option to pay for it he would pay if there was an option to pay.

    Maybe we should split the cost of changing his title? I'd contribute 3$!
    Change it to something like "Massive Twat".
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Funny Funny x 9Friendly Friendly x 2Agree Agree x 1 (list)

  38. Post #2238
    Ask about my EBOLA fetish
    GameDev's Avatar
    February 2010
    12,352 Posts
    Made object size not matter with portals! That's been bugging me for months (really).

    Feels good to finally get it done. I'm invincible!
    Oh christ, I love you for fixing that

    [sub][sub]But let's be honest, I've always loved you.[/sub][/sub]
    Reply With Quote Edit / Delete Mac United States Show Events Optimistic Optimistic x 4 (list)

  39. Post #2239
    Gold Member
    Sc00by22's Avatar
    August 2007
    1,253 Posts
    Code:
    if (correct)
    {
        return true;
    }
    else
    {
        return false;
    }
    Code:
    return correct;
    ?
    It's been a while since I've done any programming but I admit that was silly of me.


    I'm more worried about the unsanatized input.
    I did that a few minutes after I posted.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Late Late x 1 (list)

  40. Post #2240
    Andrew McWatters
    Dennab
    March 2011
    4,658 Posts
    Now it's time to use TortoiseHG!

    In other notes, I cloned the Facepunch Lua API over to Mercurial. It's on BitBucket
    I have the best co-developers ever^
    Reply With Quote Edit / Delete Windows 7 United States Show Events Friendly Friendly x 2Disagree Disagree x 1Agree Agree x 1Optimistic Optimistic x 1 (list)