• What are you working on? December 2011 Edition
    3,353 replies, posted
  • Wow, breaking my silence for a second just to commend your balls of steel. I'd of yelled myself hoarse at him for fucking up the repository and destroying it's actual function, and for fucking with shit he doesn't understand.
  • [QUOTE=Jookia;33845150]Wow, breaking my silence for a second just to commend your balls of steel. I'd of yelled myself hoarse at him for fucking up the repository and destroying it's actual function, and for fucking with shit he doesn't understand.[/QUOTE] Yeah, he got yelled at. Don't worry. I've been REALLY tolerant with his shit lately, he's probably gonna see this though.
  • All this talk about booleans reminded me how I would usually toggle a boolean from true to false or the other way: [cpp]if(enabled) { enabled = false; } else { enabled = true; }[/cpp] Then I learned to just do: [cpp]enabled = !enabled[/cpp] Much better :v:
  • [QUOTE=Zyx;33845596]All this talk about booleans reminded me how I would usually toggle a boolean from true to false or the other way: [cpp]if(enabled) { enabled = false; } else { enabled = true; }[/cpp] Then I learned to just do: [cpp]enabled = !enabled[/cpp] Much better :v:[/QUOTE] This is why I love you guys :v: I've been doing it like this [cpp] if(enabled = true) enabled = false; else enabled = true; [/cpp]
  • Making a GUI version of CleverOmegle. The big text box is for the conversation, and the smaller text box is for input. [IMG]http://puu.sh/bgVB[/IMG] [IMG]http://www.facepunch.com/fp/ratings/tick.png[/IMG] for good, [IMG]http://www.facepunch.com/fp/ratings/cross.png[/IMG] for bad. If bad, tell me what's bad.
  • [QUOTE=wingless;33845230]Yeah, he got yelled at. Don't worry. I've been REALLY tolerant with his shit lately, he's probably gonna see this though.[/QUOTE] Assign yourself as project leader. Tell him if he doesn't pull his shit together and follow standard project management routines he's out. Seriously I would have kicked the person off the project if they didn't want to work with source control(we're working with git). I can't tolerate fucking babies like that crossing their arms and refuses to follow standard, working routines. I had a moment with one of my team members where he would put out a massive sigh every time he had to merge source files because he didn't understand why he had to or what's so good about git. I promtly told him to stop acting like a fucking PMS whore and read up on source control and why we're doing it(school). Technological ignorance makes me furious.
  • [QUOTE=garry;33843066]Made a little coding blog: [url]http://garry.tv/post/14613360572/coding-evolution[/url][/QUOTE] That is surprisingly accurate.
  • [QUOTE=Naarkie;33845723]Making a GUI version of CleverOmegle. The big text box is for the conversation, and the smaller text box is for input. [IMG]http://puu.sh/bgVB[/IMG] [IMG]http://www.facepunch.com/fp/ratings/tick.png[/IMG] for good, [IMG]http://www.facepunch.com/fp/ratings/cross.png[/IMG] for bad. If bad, tell me what's bad.[/QUOTE] You should also make a feature so that 2 strangers can speak to each other while you are watching.
  • [QUOTE=miceiken;33846890]You should also make a feature so that 2 strangers can speak to each other while you are watching.[/QUOTE] That's pretty much Omegle Spy mode. Still working on it. On a side note, does anyone know of an extension like Tamper Data, but for Chrome instead of Firefox?
  • I literally just spent [i]two hours[/i] figuring out how CMake works, when I could've just used Premake to do the same thing in a few minutes. [lua]solution "Valo" language "C++" includedirs {"include"} -- Configurations. configurations {"Debug", "Release"} configuration "Debug" defines {"DEBUG"} flags {"Symbols"} configuration "Release" defines {"NDEBUG"} flags {"Optimize"} -- Projects. project "Valo" kind "StaticLib" files {"include/**.hpp", "source/**.cpp"} project "(Example) Window" kind "ConsoleApp" files {"examples/window/source/**.cpp"} links {"Valo"}[/lua]
  • I guess I'm just a loser, noob programmer. I never compile anything on Linux because I just don't really use it, so I don't really know how any of these *make things work.
  • They're basically scripts that can be used to automatically create project files for the IDE of your choice. This saves the effort for having to manually maintenance project files for a wide range of programs. If I wanted to create project files for Visual Studio 2010 from that, I'd just type [i]premake4 vs2010[/i] to the command line.
  • On the topic of version control: What's a good version control with a GUI that I can use for local development. I don't want to push up to Github or anything like that, just need version control to save myself from being a dumbass. v: I know there's the Tortis* stuff, but I've gotten mixed up after having used Git and Svn, etc.
  • [IMG]http://i.imgur.com/3rf4g.gif[/IMG] Look, I sorted out the alph-HEY GET BACK HERE
  • [QUOTE=Lexic;33847434][IMG]http://i.imgur.com/3rf4g.gif[/IMG] Look, I sorted out the alph-HEY GET BACK HERE[/QUOTE] Still pretty cool, nonetheless.
  • [QUOTE=garry;33843111]Go for it [url]http://www.facepunch.com/store/[/url][/QUOTE] Paid for it, approve it quickly please.
  • [QUOTE=Lord Ned;33847413]On the topic of version control: What's a good version control with a GUI that I can use for local development. I don't want to push up to Github or anything like that, just need version control to save myself from being a dumbass. v: I know there's the Tortis* stuff, but I've gotten mixed up after having used Git and Svn, etc.[/QUOTE] Mercurial (Hg). It's a DVCS like Git, has a good CLI and TortoiseHg is an excellent GUI for Windows. If you eventually want to get it on the net, BitBucket offers unlimited public and private Hg repositories.
  • [QUOTE=Naarkie;33845723]Making a GUI version of CleverOmegle. The big text box is for the conversation, and the smaller text box is for input. [IMG]http://puu.sh/bgVB[/IMG] [IMG]http://www.facepunch.com/fp/ratings/tick.png[/IMG] for good, [IMG]http://www.facepunch.com/fp/ratings/cross.png[/IMG] for bad. If bad, tell me what's bad.[/QUOTE] I think the input bar should be around 2 lines big. Might help focus a bit more attention to it. Other than that I like it.
  • [QUOTE=raBBish;33847718]Mercurial (Hg). It's a DVCS like Git, has a good CLI and TortoiseHg is an excellent GUI for Windows. If you eventually want to get it on the net, BitBucket offers unlimited public and private Hg repositories.[/QUOTE] Cheers. I'll go get that done as soon as I reach a 'working' point again. :v:
  • In school today we talked about design patterns. One of the teachers explanations gave me an idea to a "Simple" game involving chess. So far I just got basic movement rules down. [img]http://dl.dropbox.com/u/99717/NotChess.png[/img] Hopefully I will have time and experience to finish it :v: Update: I can now kill other pieces. What a messy way to do it though.
  • is it bad that when I see that screenshot I can't help but wonder how that white king got there?
  • [QUOTE=Zyx;33848311]In school today we talked about design patterns. One of the teachers explanations gave me an idea to a "Simple" game involving chess. So far I just got basic movement rules down. [img]http://dl.dropbox.com/u/99717/NotChess.png[/img] Hopefully I will have time and experience to finish it :v: Update: I can now kill other pieces. What a messy way to do it though.[/QUOTE] Reminds me of the chess I once made: [img]http://dl.dropbox.com/u/8226262/screen/chess2.png[/img] So surprisingly similar.
  • [QUOTE=Naarkie;33845723]Making a GUI version of CleverOmegle. The big text box is for the conversation, and the smaller text box is for input. [IMG]http://puu.sh/bgVB[/IMG] [IMG]http://www.facepunch.com/fp/ratings/tick.png[/IMG] for good, [IMG]http://www.facepunch.com/fp/ratings/cross.png[/IMG] for bad. If bad, tell me what's bad.[/QUOTE] Looking good. By the way, here's another patch: [csharp]Index: HttpPost.cs =================================================================== --- HttpPost.cs (revision 10) +++ HttpPost.cs (working copy) @@ -32,7 +32,7 @@ private string m_url = string.Empty; private NameValueCollection m_values = new NameValueCollection(); private PostTypeEnum m_type = PostTypeEnum.Get; - public event EventHandler WebExceptionEvent; + public event WebExceptionEvent WebExceptionEvent; /// <summary> /// Default constructor. @@ -195,7 +195,7 @@ { if (this.WebExceptionEvent != null) { - this.WebExceptionEvent(this, new EventArgs()); + this.WebExceptionEvent(this, new WebExceptionEventArgs(e)); } } } Index: Omegle.cs =================================================================== --- Omegle.cs (revision 10) +++ Omegle.cs (working copy) @@ -55,7 +55,7 @@ public event EventHandler Connected; public event EventHandler StrangerStoppedTyping; public event EventHandler Count; - public event EventHandler WebException; + public event WebExceptionEvent WebException; public event UnhandledResponseEvent UnhandledResponse; public event CaptchaRequiredEvent CaptchaRequired; public event EventHandler CaptchaRefused; @@ -115,6 +115,7 @@ PostSubmitter post = new PostSubmitter(); post.Url = "http://bajor.omegle.com/start"; post.Type = PostSubmitter.PostTypeEnum.Post; + post.WebExceptionEvent += WebException; ID = post.Post(); ID = ID.TrimStart('"'); //gets rid of " at the start and end ID = ID.TrimEnd('"'); @@ -147,6 +148,8 @@ sendPost.PostItems.Add("msg", message); sendPost.Type = PostSubmitter.PostTypeEnum.Post; + sendPost.WebExceptionEvent += WebException; + return sendPost.Post(); } @@ -159,6 +162,8 @@ sendPost.PostItems.Add("response", response); sendPost.Type = PostSubmitter.PostTypeEnum.Post; + sendPost.WebExceptionEvent += WebException; + return sendPost.Post(); } @@ -169,6 +174,8 @@ sendPost.PostItems.Add("id", ID); sendPost.Type = PostSubmitter.PostTypeEnum.Post; + sendPost.WebExceptionEvent += WebException; + sendPost.Post(); } @@ -179,6 +186,8 @@ sendPost.PostItems.Add("id", ID); sendPost.Type = PostSubmitter.PostTypeEnum.Post; + sendPost.WebExceptionEvent += WebException; + sendPost.Post(); } @@ -201,6 +210,8 @@ sendPost.PostItems.Add("msg", message); sendPost.Type = PostSubmitter.PostTypeEnum.Post; + sendPost.WebExceptionEvent += WebException; + return sendPost.Post(); } @@ -295,6 +306,8 @@ eventlisten.PostItems.Add("id", ID); eventlisten.Type = PostSubmitter.PostTypeEnum.Post; + eventlisten.WebExceptionEvent += WebException; + string response = eventlisten.Post(); Parse(response); Index: WebExceptionEventArgs.cs =================================================================== --- WebExceptionEventArgs.cs (revision 0) +++ WebExceptionEventArgs.cs (revision 0) @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Net; + +namespace dotOmegle +{ + public class WebExceptionEventArgs : EventArgs + { + public WebException exception; + + public WebExceptionEventArgs(WebException e) + { + this.exception = e; + } + } + + public delegate void WebExceptionEvent(object sender, WebExceptionEventArgs e); +}[/csharp]
  • Oh cool, Lua 5.2 was recently released [quote]Lua 5.2 was released on 16 Dec 2011. The main features in Lua 5.2 are yieldable pcall and metamethods, new lexical scheme for globals, ephemeron tables, new library for bitwise operations, light C functions, emergency garbage collector, goto statement, and finalizers for tables. The current release is Lua 5.2.0, released on 16 Dec 2011.[/quote]
  • [QUOTE=ief014;33851198]Oh cool, Lua 5.2 was recently released[/QUOTE] Welcome to WAYWO [editline]22nd December 2011[/editline] Though while on the topic of Lua 5.2 (again) - I'm a bit detached on wanting to move on to this new Lua version, though. It seems to be a significant update with not too much to offer. My works rely on Lua 5.1.4 and the ability to use LuaJIT as a drop-in replacement for speed gains, and even LuaJIT isn't going to move on to 5.2 (at least any time soon, afaik).
  • I made [url=http://www.kongregate.com/games/Supersnail200/pale-luna]this[/url] in an hour or two after reading the creepypasta.
  • [QUOTE=supersnail11;33851320]I made [url=http://www.kongregate.com/games/Supersnail200/pale-luna]this[/url] in an hour or two after reading the creepypasta.[/QUOTE] Wow, that was some damn creepy creepypasta. I was also impressed by the way you authentically froze the browser in the woods area.