• What are you working on? v7
    7,420 replies, posted
[QUOTE=swift and shift;39004191]i exclaimed "oh fuck wow" in reaction to yet another one of php's amazing obscure 'features'. please do not take it personally[/QUOTE] Oh I'm sorry, I thought it was aimed at something in my code specifically. Pardon me, for jumping to conclusions.
[QUOTE=Amiga OS;39004364]Javascript can do exactly the same thing too, its handy in some cases.[/QUOTE] No it can't.
[QUOTE=P1raten;39002956]Is it just me that was unaware that you could use [B]switch statements[/B] like this?[/QUOTE] [QUOTE=Amiga OS;39004568]It kind of can [html] <html> <head> <script type='text/javascript'> function lol() { var color = prompt('give me a color','blue'); switch(color) { case 'blue': alert('hurrr'); break; case 'red': alert('durrrr'); break; default: alert('woo'); break; } } </script> </head> <body onLoad='lol()'> </body> </html> [/html][/QUOTE] [editline]a[/editline] [php]case 'days' && explode[0] > 5[/php]
I thought he was talking about not using a break after every case.
[QUOTE=mobrockers2;39004759]I thought he was talking about not using a break after every case.[/QUOTE] That would be incorrect. And if that is what you were commenting on earlier, then no, I have never heard of ignoring breaks to be bad practice. EDIT: Just to clarify what I mean: [PHP] switch($keyboardKeys) { // The following is not bad practice afaik, since it saves you the trouble of rewriting the same code for both the up arrow and W if you want both of them to work as controls. case 'UP': case 'W': {...} break; // The following, however, is not something you'd want since it would mean that you are using the same code for both LEFT and RIGHT. case 'LEFT': case 'RIGHT': {...} break; }[/PHP]
[URL="http://www.facepunch.com/showthread.php?t=1235890&p=39012335#post39012335"]We launched Amuzor.[/URL]
[QUOTE=mobrockers2;39004759]I thought he was talking about not using a break after every case.[/QUOTE] i'm a c hacker, that is not new to me. the ability to put extra conditions did surprise me though
[QUOTE=swift and shift;39013182]i'm a c hacker, that is not new to me[/QUOTE] So hardcore. /s
[QUOTE=Jelly;39012355][URL="http://www.facepunch.com/showthread.php?t=1235890&p=39012335#post39012335"]We launched Amuzor.[/URL][/QUOTE] How about them veteran ranks? Do all beta tester get them or?? Also great work on Amuzor!
[QUOTE=Mega1mpact;39016614]How about them veteran ranks? Do all beta tester get them or?? Also great work on Amuzor![/QUOTE] You needed to upload at least 1 submission before launch to get Veteran rank.
[QUOTE=P1raten;39016853]You needed to upload at least 1 submission before launch to get Veteran rank.[/QUOTE] I mostly enjoy lurking.
[IMG]http://distilleryimage7.instagram.com/03a57c6651df11e2bccc22000a1f8cda_7.jpg[/IMG] Uh, dribbble?
Not sure whether this has been posted before (couldn't find it if it has) but this is a pretty useful tool to stress test a website: [url]http://blitz.io[/url] The following command checks how well your site scales from 1 to 1000 concurrent users in 60 seconds (using a timeout of 10 secs - default is 1) -p 1-1000:60 -T 10000 [url]http://yourwebsite.com[/url] It would be interesting to see how well different hosting providers perform. P.S - first post so please be welcoming :)
[QUOTE=daniel_c;39019531]Not sure whether this has been posted before (couldn't find it if it has) but this is a pretty useful tool to stress test a website: [url]http://goo.gl/7kARq[/url] The following command checks how well your site scales from 1 to 1000 concurrent users in 60 seconds (using a timeout of 10 secs - default is 1) -p 1-1000:60 -T 10000 [url]http://yourwebsite.com[/url] It would be interesting to see how well different hosting providers perform. P.S - first post so please be welcoming :)[/QUOTE] first post - check Shortlink - check wants me to download a program - check
[QUOTE=mobrockers2;39019613]first post - check Shortlink - check wants me to download a program - check[/QUOTE] haha You don't need to download anything - apparently they are too retro for a gui so they have a console box on the website instead. [IMG]http://files.danielchatfield.com/JV5c+[/IMG]
FYI, you can be banned for referral links.
[QUOTE=mobrockers2;39019678]FYI, you can be banned for referral links.[/QUOTE] Thanks for the heads up - i'll remove the referral code from the link pronto. [editline]29th December 2012[/editline] Feedback appreciated on [url]http://updates.volcanicpixels.com[/url] (especially issues with responsive design on mobile devices - I know there are a few) [IMG]http://files.danielchatfield.com/UXk+[/IMG] [IMG]http://files.danielchatfield.com/dra+[/IMG]
[QUOTE=daniel_c;39019682]Thanks for the heads up - i'll remove the referral code from the link pronto. [editline]29th December 2012[/editline] Feedback appreciated on [url]http://updates.volcanicpixels.com[/url] (especially issues with responsive design on mobile devices - I know there are a few) [IMG]http://files.danielchatfield.com/UXk+[/IMG] [IMG]http://files.danielchatfield.com/dra+[/IMG][/QUOTE] Unrelated to what you asked for above here's something I found: The "paper" on [URL="http://www.volcanicpixels.com/"]this page[/URL] is not the same color as the background color. [IMG]http://i.imgur.com/peZp9.png[/IMG] Left side is original. Right side i've modified with some brightness and contrast to show you more in detail what I mean.
[QUOTE=P1raten;39021111]Unrelated to what you asked for above here's something I found: The "paper" on [URL="http://www.volcanicpixels.com/"]this page[/URL] is not the same color as the background color. [IMG]http://i.imgur.com/peZp9.png[/IMG] Left side is original. Right side i've modified with some brightness and contrast to show you more in detail what I mean.[/QUOTE] Thanks for that - not too bothered as the new site will go live soon.
hi spiders designs
[QUOTE=swift and shift;39022884]hi spiders designs[/QUOTE] Hello, how are you? And I ditched that god-awful name ages ago. Volcanos for the win.
Don't normally post on these threads but I wanted to share something I just made for a client: [img]https://dl.dropbox.com/s/3tuu1qbffkcilgn/admin_menu.png?dl=1[/img] Features full login/account + permission system with steam's openID integration for verifying if users are actually admin
[QUOTE=Matt W;39024920]Don't normally post on these threads but I wanted to share something I just made for a client: [img]https://dl.dropbox.com/s/3tuu1qbffkcilgn/admin_menu.png?dl=1[/img] Features full login/account + permission system with steam's openID integration for verifying if users are actually admin[/QUOTE] please don't use those icons, they're so overused.
[QUOTE=Ac!dL3ak;39024944]please don't use those icons, they're so overused.[/QUOTE] I wanted it to somewhat retain the "garrysmod feel" as the icons on the server are also those.
you should never want to associate yourself with anything gmod related period
[QUOTE=amcfaggot;39025649]you should never want to associate yourself with anything gmod related period[/QUOTE] Why ?
[QUOTE=Matt W;39024920]Don't normally post on these threads but I wanted to share something I just made for a client: [IMG]https://dl.dropbox.com/s/3tuu1qbffkcilgn/admin_menu.png?dl=1[/IMG] Features full login/account + permission system with steam's openID integration for verifying if users are actually admin[/QUOTE] The icons aren't vertically aligned correctly and there's too much padding to the left of it also. I'd personally make the padding on the left and the right identical as well as match them to the top and bottom padding as right now they're all completely different - if that makes sense? Right now the inconsistent padding makes it look a little less polished then it could be.
[QUOTE=daniel_c;39019531]Not sure whether this has been posted before (couldn't find it if it has) but this is a pretty useful tool to stress test a website: [url]http://blitz.io[/url] The following command checks how well your site scales from 1 to 1000 concurrent users in 60 seconds (using a timeout of 10 secs - default is 1) -p 1-1000:60 -T 10000 [url]http://yourwebsite.com[/url] It would be interesting to see how well different hosting providers perform. P.S - first post so please be welcoming :)[/QUOTE] Have you ever heard about siege before?
[QUOTE=Emz;39028159]The icons aren't vertically aligned correctly and there's too much padding to the left of it also. I'd personally make the padding on the left and the right identical as well as match them to the top and bottom padding as right now they're all completely different - if that makes sense? Right now the inconsistent padding makes it look a little less polished then it could be.[/QUOTE] Thank you for that, I'll go adjust now.
[QUOTE=xmariusx;38985669]Just an idea that popped up in my head. [img]http://i.imgur.com/r9MPd.png[/img][/QUOTE] How are you getting on with this? Happy to compensate you for this if you can get it to a state I can use, by the way. Same offer applies to everyone, but do give me a quote first.
Sorry, you need to Log In to post a reply to this thread.