• Web Development - WAYWO - #8
    5,514 replies, posted
Put in some anti-fun mechanics into Grubbit, it's open now at [url]http://46.196.158.169/[/url] [IMG]http://i.imgur.com/Qf364p8.png[/IMG] NO DDOS PLS THX
[url]http://www.svgsch.at/veggen/[/url] I made a thing with some new fancy CSS3 stuff!
[QUOTE=wauterboi;42507427]Personally, I think the background is really distracting. See if you can really lighten it up and take some contrast off in Photoshop. Also, I think the italicized selected link is weird - it doesn't fit too well. The search icon needs some contrast with the rest of the page. Either make it white, or make the background contrast more. The links on the bottom right don't really offer any functionality that the top navbar doesn't, so I'd do away with that and put something more fitting that last column. Try to get the bottom four columns to match-up height-wise too. Here's me being crazy stupid with Stylish (day one): [t]https://dl.dropbox.com/u/965202/ShareX/2013-10/2013-10-13_01-23-30.png[/t] I always thought the top links for Facepunch were kind of scattered and should've been collected in one place. The "funny" icon links to your profile. Also, the header is overall much more compact with 100% more Coolvetica. [t]https://dl.dropbox.com/u/965202/ShareX/2013-10/2013-10-13_01-49-23.png[/t] The pagination is moved up into the header for the interest of saving space. All usertitles are forced down to a specific font-size. Images that are larger than the max-width of the post is scaled down using CSS. Colors are changed. I am happy. [B]EDIT[/b]: Oh, screw Coolvetica. Segoe UI looks pretty damn cool: [t]https://dl.dropbox.com/u/965202/ShareX/2013-10/2013-10-13_02-03-35.png[/t][/QUOTE] I don't think this looks very good at all. Some of it's the color choice, some of it is the shadows/borders on stuff. It just feels dated to me already. Also, mystery navigation like you have with just icons and no text is [B]horrible[/B] UX.
[QUOTE=Dorkslayz;42511452]No - i'm planning to use something created in another language to be kinda like a gateway, sort of the way cloudflare works. But it obviously needs to be able to handle a lot of traffic.[/QUOTE] If you want something like Cloudflare then just set up an NGINX reverse proxy, takes 10 minutes. I'm not sure what you're asking here, nor what you're trying to do. It's really difficult for anyone to say what specs you will need if you aren't handling the traffic yet, and we don't know what optimizations you have done to your code or the machine hosting it.
[QUOTE=TuLiq;42511876][url]http://www.svgsch.at/veggen/[/url] I made a thing with some new fancy CSS3 stuff![/QUOTE] i think i brkoe it [editline]13th October 2013[/editline] [img]http://puu.sh/4Pkrd.jpg[/img] [editline]13th October 2013[/editline] [img_thumb]http://puu.sh/4PkuO.jpg[/img_thumb]
hide overflows sheesh
some insightful stuff posted there
[QUOTE=Dorkslayz;42509420]What's the best language in terms of performance? I use PHP but that can only handle around ~1000 requests a second on my current box.[/QUOTE] If you do it right, node can be incredibly fast.
[QUOTE=Dorkslayz;42509420]What's the best language in terms of performance? I use PHP but that can only handle around ~1000 requests a second on my current box.[/QUOTE] Assembly written by someone who really knows what they are doing. There are way too many domain specific variables to performance for us to really give you a best language.
Also what's wrong with 1,000 requests a second?
[QUOTE=Jelly;42517481]Also what's wrong with 1,000 requests a second?[/QUOTE] It's 1/10th of what my box can normally handle (using just HTML on Nginx), so it seems a bit of a waste.
i doubt you're hitting that anyway so why does it matter
[QUOTE=acpm;42517630]i doubt you're hitting that anyway so why does it matter[/QUOTE] I may of over exaggerated the performance a bit, I looked at the load test and realised my box with PHP can handle 1000 requests a second, with a 60% error rate. So really, only 400 of those 1000 requests would be successful.
Your connection drop rate should be 0%. [editline]14th October 2013[/editline] All requests should be fulfilled regardless of how long they takes.
[QUOTE=Jelly;42517730]Your connection drop rate should be 0%. [editline]14th October 2013[/editline] All requests should be fulfilled regardless of how long they takes.[/QUOTE] Sorry, I should of phrased that better. 60% of those requests are returned with a 503 error from PHP.
[QUOTE=Dorkslayz;42521064]Sorry, I should of phrased that better. 60% of those requests are returned with a 503 error from PHP.[/QUOTE] You should have gone to school.
[QUOTE=incognitocob;42523678]You should have gone to school.[/QUOTE] What does that have to do with anything of this? Most of the web-devs here are self teached, and has taken up studies later for the sole purpose of having the grades on paper.
Made a video demonstrating one of the latest features i've put in to my PHP function library, let me know what you think. [video=youtube;0xxyMoZ9_dU]http://www.youtube.com/watch?v=0xxyMoZ9_dU[/video] [editline]14th October 2013[/editline] [QUOTE=incognitocob;42523678]You should have gone to school.[/QUOTE] Any assertion or assumption that i've not undertaken some form of education is absurd considering that legislation in the UK has made it illegal for any child (or person) to not undertake some form of education until they are 18. Considering you have never contributed anything to WAYWO, I don't think you're in any kind of position to judge.
[QUOTE=Dorkslayz;42521064]Sorry, I should of phrased that better. 60% of those requests are returned with a 503 error from PHP.[/QUOTE] A 60% error rate is horrendous. Where are all the errors coming from?
[QUOTE=Dorkslayz;42523883]Made a video demonstrating one of the latest features i've put in to my PHP function library, let me know what you think. [video=youtube;0xxyMoZ9_dU]http://www.youtube.com/watch?v=0xxyMoZ9_dU[/video] [editline]14th October 2013[/editline] Any assertion or assumption that i've not undertaken some form of education is absurd considering that legislation in the UK has made it illegal for any child (or person) to not undertake some form of education until they are 18. Considering you have never contributed anything to WAYWO, I don't think you're in any kind of position to judge.[/QUOTE] I don't like the fact that the "function" value is "bar();" - this implies that you're using an eval-like function to evaluate the "function" value. You could just go with something like [url=http://www.php.net/manual/en/function.call-user-func.php]call_user_func[/url].
[QUOTE=KmartSqrl;42523973]A 60% error rate is horrendous. Where are all the errors coming from?[/QUOTE] It might be due to Nginx limiting the amount of requests or connections that can be made at once. If the limit is exceeded, Nginx will return a 503 error until the limit is no longer exceeded.
Nginx has no default throttling limits AFAIK.
He may be saturating php-fpm children if that is what he is running. I know by default there is a min and max set for children to spawn; something to check?
[QUOTE=andersonmat;42530221]He may be saturating php-fpm children if that is what he is running. I know by default there is a min and max set for children to spawn; something to check?[/QUOTE] I believe i'm using php-fpm, I checked in the pool.d/www.conf file and the max_children is set to 5, I guess I should raise this? [editline]15th October 2013[/editline] [QUOTE=Ac!dL3ak;42524504]I don't like the fact that the "function" value is "bar();" - this implies that you're using an eval-like function to evaluate the "function" value. You could just go with something like [url=http://www.php.net/manual/en/function.call-user-func.php]call_user_func[/url].[/QUOTE] I tried to find a solution better than eval'ing it, and even asked a question on SO - but I didn't get anything from either. I'll look into replacing eval with call_user_func, thanks :) [editline]15th October 2013[/editline] I started looking into [URL="https://www.facebook.com/note.php?note_id=10150415177928920"]HipHop-VM[/URL] instead of php-fpm, anybody have any experiance with it?
[QUOTE=Dorkslayz;42532026]I believe i'm using php-fpm, I checked in the pool.d/www.conf file and the max_children is set to 5, I guess I should raise this?[/QUOTE] I would, but it should be closely tied to how many cores you have.
[QUOTE=andersonmat;42532953]I would, but it should be closely tied to how many cores you have.[/QUOTE] Raising it doesn't really seem to do much. [editline]today[/editline] In PHP, when should I be using static functions and when should I be using non-static functions? I've written all my code in object, non-static style - but I want to convert it to static functions.
[QUOTE=Dorkslayz;42534840]Raising it doesn't really seem to do much. [editline]today[/editline] In PHP, when should I be using static functions and when should I be using non-static functions? I've written all my code in object, non-static style - but I want to convert it to static functions.[/QUOTE] I generally try to avoid static functions for anything but utilities classes without dependencies. For everything else I'll probably be using dependency injection and/or a factory/strategy pattern anyway so instantiated classes make far more sense.
[QUOTE=Dorkslayz;42534840]but I want to convert it to static functions.[/QUOTE] Why? If you don't know exactly why something should be static, it probably shouldn't be static.
I was bored, so in 15 minutes [URL="http://rockyb.co/oak"]this mess[/URL] happened.
[QUOTE=rbreslow;42536803]I was bored, so in 15 minutes [URL="http://rockyb.co/oak"]this mess[/URL] happened.[/QUOTE] jesus fucking christ. I thought I was blind after i saw that.
Sorry, you need to Log In to post a reply to this thread.