• What are you working on? v19
    6,590 replies, posted
[QUOTE=AzzyMaster;30786318] Currently got a script that will go through a thread and collect all the ratings of posts, being mostly designed for LMAO pics. I'm gonna add it so it exports the results as a html file with the funniest, latest and dumbest users, and the top 10 images posted.[/QUOTE] Just make sure not to make a top list of dumbest users, this will cause LMAO pics to be filled with people wanting to get the most boxes.
[QUOTE=AzzyMaster;30786318][img]http://dl.dropbox.com/u/3695360/FP%20Parser.png[/img] Currently got a script that will go through a thread and collect all the ratings of posts, being mostly designed for LMAO pics. I'm gonna add it so it exports the results as a html file with the funniest, latest and dumbest users, and the top 10 images posted.[/QUOTE] Just the ones with most tool, winner and funny.
[QUOTE=AzzyMaster;30786318][img]http://dl.dropbox.com/u/3695360/FP%20Parser.png[/img] Currently got a script that will go through a thread and collect all the ratings of posts, being mostly designed for LMAO pics. I'm gonna add it so it exports the results as a html file with the funniest, latest and dumbest users, and the top 10 images posted.[/QUOTE] Are you parsing the HTML, or reading the json from the api output?
[QUOTE=AntonioR;30781898]Next time do post larger images so I can use them as a wallpaper, OK ?[/QUOTE] [QUOTE] [img]http://dl.dropbox.com/u/19756079/BG/1.png[/img] [img]http://dl.dropbox.com/u/19756079/BG/3.png[/img] [img]http://dl.dropbox.com/u/19756079/BG/4.png[/img] [img]http://dl.dropbox.com/u/19756079/BG/5.png[/img] [img]http://dl.dropbox.com/u/19756079/BG/6.png[/img] [img]http://dl.dropbox.com/u/19756079/BG/7.png[/img] [img]http://dl.dropbox.com/u/19756079/BG/8.png[/img] [/QUOTE] Here's a whole bunch
Ported my amazing calculator to Windows! It now uses floats instead of ints, handles exceptions, and has this awesome icon by Marcelomarfil. [img]http://i.imgur.com/4Th7V.png[/img][img]http://i.imgur.com/SsAWJ.png[/img][img]http://i.imgur.com/OLd8a.png[/img] [img]http://i.imgur.com/EYkPT.png[/img][img]http://i.imgur.com/VEZXD.png[/img][img]http://i.imgur.com/QkXu1.png[/img] The calculator: [url]http://dl.dropbox.com/u/7284637/Calculator.exe[/url] Source, so you can laugh at me some more: [url]http://dl.dropbox.com/u/7284637/Calculator.rar[/url]
Now use only one input field.
Starting working with LOVE. [img]http://puu.sh/2X59[/img]
[QUOTE=Ezhik;30787688]Ported my amazing calculator to Windows! It now uses floats instead of ints, handles exceptions, and has this awesome icon by Marcelomarfil. [img]http://i.imgur.com/4Th7V.png[/img][img]http://i.imgur.com/SsAWJ.png[/img][img]http://i.imgur.com/OLd8a.png[/img] [img]http://i.imgur.com/EYkPT.png[/img][img]http://i.imgur.com/VEZXD.png[/img][img]http://i.imgur.com/QkXu1.png[/img] The calculator: [url]http://dl.dropbox.com/u/7284637/Calculator.exe[/url] Source, so you can laugh at me some more: [url]http://dl.dropbox.com/u/7284637/Calculator.rar[/url][/QUOTE]I remember making one of those when I discovered the / + - * operators Where's your square root button? All you need to do is x^0.5
[QUOTE=Quark:;30789199]I remember making one of those when I discovered the / + - * operators Where's your square root button? All you need to do is x^0.5[/QUOTE] It's just to see if I can do anything at all without copypasting all the code. I wrote that myself, but looked exception handling up on MSDN. [editline]30th June 2011[/editline] By the way, I remember who was the fag that I mentioned in the WP7 version, it was efeX!
[QUOTE=Ezhik;30789341]By the way, I remember who was the fag that I mentioned in the WP7 version, it was efeX![/QUOTE] Gee, you totally took me by surprise, don't ever do that again!
What I wouldn't give for all websocket handshakes to be the same (or i'm doing something wrong)... Chrome sends it all in one part: [IMG]http://jimbomcb.net/files/06_2011/img_0107_0527.png[/IMG] Firefox sends it as two different parts [IMG]http://jimbomcb.net/files/06_2011/img_0108_0619.png[/IMG]
Anyone know some good networking resources?
[QUOTE=ZenX2;30790398]Anyone know some good networking resources?[/QUOTE] [url]http://beej.us/guide/bgnet/[/url]
[QUOTE=Jimbomcb;30790365]What I wouldn't give for all websocket handshakes to be the same (or i'm doing something wrong)...[/QUOTE] Browsers really need to update to [url=http://en.wikipedia.org/wiki/WebSockets#draft-ietf-hybi-thewebsocketprotocol-06]this[/url]. It's so much better.
I won ReSharper for free. Awww fuck yeah. Work just got a lot easier. I'm writing a script that throws tables with no metadata into the metadata repository, and to be frank IntelliSense sucks.
[QUOTE=Protocol7;30790901]to be frank IntelliSense sucks.[/QUOTE] are you kidding?
I'm getting places with this handshake stuff finally... Is it just me or does a string to int function returning 0 on a failure make no sense at all.
I almost always return -1 on fail (unless it's an OpenGL object index, where binding 0 does nothing) [editline]29th June 2011[/editline] alternatively you could thrown an exception?
[QUOTE=Jimbomcb;30791837]Is it just me or does a string to int function returning 0 on a failure make no sense at all.[/QUOTE] Ya, personally I like how .NET does it. It returns if it succeeds and has an out parameter which stores the result. int num; if (int.TryParse("nope", out num)) { }
Oh god, why did this shit take me 2 hours: [img]http://i.imgur.com/JmBTg.png[/img] Anyway, I tried doing it myself first, which ended up in a colossal disaster, then I tried using JScript, which ended up even worse. So I found thing thing called NCalc and used it. Except that it also acted retarded so I had to pretty much copy and paste stuff from that project's manual. There's also an unhandled exception, and I don't know how to fix it. Anyway, here are the files: EzhikCalc 2.0: [url]http://dl.dropbox.com/u/7284637/EzhikCalc.zip[/url] Source Code so that you can laugh even more: [url]http://dl.dropbox.com/u/7284637/Calculator%20II.rar[/url] Anyway, I probably should drop calculators now, they only bring pain. [editline]30th June 2011[/editline] 7 am. What did I do all night? Code a calculator.
Was just confused the by the fact, sourcepawns StringToInt returns 0 on failure... Got it working so that won't be a problem though, but I've hit another brick wall. The handshake requires a number to be divided by the number of spaces. The problem is, the number I need to divide can be greater than 2147483647, and I can't work out a way around this in sourcepawn. Meh...
[QUOTE=Ezhik;30792370]Oh god, why did this shit take me 2 hours: [img]http://i.imgur.com/JmBTg.png[/img] Anyway, I tried doing it myself first, which ended up in a colossal disaster, then I tried using JScript, which ended up even worse. So I found thing thing called NCalc and used it. Except that it also acted retarded so I had to pretty much copy and paste stuff from that project's manual. There's also an unhandled exception, and I don't know how to fix it. Anyway, here are the files: EzhikCalc 2.0: [url]http://dl.dropbox.com/u/7284637/EzhikCalc.zip[/url] Source Code so that you can laugh even more: [url]http://dl.dropbox.com/u/7284637/Calculator%20II.rar[/url] Anyway, I probably should drop calculators now, they only bring pain. [editline]30th June 2011[/editline] 7 am. What did I do all night? Code a calculator.[/QUOTE] How deep can you nest the parentheses?
[QUOTE=Ezhik;27113240]My new year's resolution is to post a project here and get at least 2 programming kings. Just wanted to let you know :buddy:[/QUOTE] [img]http://i.imgur.com/Bk8AS.png[/img] New Year's Resolution fulfilled :dance: Someone give me a nice starter project idea please, so that I could learn some really useful stuff while trying to create it :buddy:
[QUOTE=high;30792279]Ya, personally I like how .NET does it. It returns if it succeeds and has an out parameter which stores the result. int num; if (int.TryParse("nope", out num)) { }[/QUOTE] I'd prefer it if int.TryParse returned Nullable<int>
[QUOTE=taranga;30791775]are you kidding?[/QUOTE] When you get used to ReSharper you'll be singing the same tune as me. It doesn't suck, sure, but ReSharper makes it so much better.
[QUOTE=Ezhik;30793165][img]http://i.imgur.com/Bk8AS.png[/img] New Year's Resolution fulfilled :dance: Someone give me a nice starter project idea please, so that I could learn some really useful stuff while trying to create it :buddy:[/QUOTE]Try a text editor with tab support
[QUOTE=taranga;30793308]I'd prefer it if int.TryParse returned Nullable<int>[/QUOTE] Can always add an extension. Personally I would hate having num.Value all over my code though and would end up declaring a variable for it anyways. [B]Edit:[/B] How do you deal with udp flooding? Even if you don't process the packet, I imagine receive would get clogged with the packets. I know on linux you can just block an ip with iptables, but what about for windows?
[QUOTE=high;30792279]Ya, personally I like how .NET does it. It returns if it succeeds and has an out parameter which stores the result. int num; if (int.TryParse("nope", out num)) { }[/QUOTE] I'm probably just stupid but what does it assign to num if it fails?
Today I added support for flat collision meshes to my converter. Gamebryo supports flat collision meshes like those in this model: [img]http://images.overvprojects.nl/SS-2011-06-30_07.15.34.png[/img] Unfortunately Source does not support these flat collision meshes and turns the above into a single collision box. Now, Source requires collision meshes to be at least 0.5 units/inches thick on any axis, so what if we extrude the flat faces and make them just thick enough for Source to accept them? [img]http://images.overvprojects.nl/modelsprops_falloutvurmwall03.mdl-2011-06-30_07.19.18.png[/img] [b]Success! :toot:[/b] I'm really glad I got this working, because doing the collision manually with brushes is very tedious and boring. The faces are always extruded away from the center of the model, so to the player there is little difference between this and truly flat meshes.
[QUOTE=icantread49;30794518]I'm probably just stupid but what does it assign to num if it fails?[/QUOTE] Probably 0 as it does have to assign something because it is passed with 'out', but it doesn't really matter as you aren't meant to use it if it fails :P. (checking) [B]Edit:[/B] Yes it sets it to 0.
Sorry, you need to Log In to post a reply to this thread.