• Web Dev Questions That Don't Need Their Own Thread v4
    5,001 replies, posted
[QUOTE=xianlee;41510635]Thanks, Ill try it at work tomorrow, also I'm wondering on this website: [URL]http://www.kiddicare.com/[/URL] You know on the navigation bar how a grey line "|" separates the different categories, whats it called or where can i find the code to learn it myself?[/QUOTE] They've used a border on an element, specifically this code: [CODE]border-right: solid 2px #f3f3f4;[/CODE] I would learn a bit more before trying to implement however.
Ok thanks, is it not easy to do then? I'm thinking of making my own website but not sure what to do for the navigation bar yet
[QUOTE=xianlee;41510779]Ok thanks, is it not easy to do then? I'm thinking of making my own website but not sure what to do for the navigation bar yet[/QUOTE] It's relatively easy to do, it just depends upon how you're planning on doing your navigation. For example, with the following HTML: [code] <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> [/code] You could use the following CSS to add a border between the list elements: [code] li + li { border-left: 1px solid #ccc; } [/code] It is more contextual than anything. [url=http://jsfiddle.net/exJKC/]Here's something you can play with.[/url]
[QUOTE=andersonmat;41510903]It's relatively easy to do, it just depends upon how you're planning on doing your navigation. For example, with the following HTML: [code] <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> [/code] You could use the following CSS to add a border between the list elements: [code] li + li { border-left: 1px solid #ccc; } [/code] It is more contextual than anything. [URL="http://jsfiddle.net/exJKC/"]Here's something you can play with.[/URL][/QUOTE] Yea I was thinking of just making it really simple but elegant, most tutorials online have the method you just said but they dont have the dividers so thats a big help, didn't know it was that simple! will have a play on the weekend, cheers
cURL PHP is shitting itself on my CentOS dedicated server, it didn't do that on a shared hosting in a VPS, what gives?
[QUOTE=01271;41514197]cURL PHP is shitting itself on my CentOS dedicated server, it didn't do that on a shared hosting in a VPS, what gives?[/QUOTE] What is the issue? Getting errors? Make sure that the PHP cURL module is properly installed and is being loaded. [php]<?php phpinfo(); ?>[/php]
It is properly installed. curl CURL support enabled CURL Information libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 It seems that overall my server is not downloading items at any reasonable rate, it's exceptionally slow.
[QUOTE=01271;41514630]It is properly installed. curl CURL support enabled CURL Information libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 It seems that overall my server is not downloading items at any reasonable rate, it's exceptionally slow.[/QUOTE] Have you tried running cURL from command line? Same results? It could be a number of things...
I'm so tired of managing all my websites. I really should hire someone to do it for me. Is there any services where I can put in a SVN URL and set up a container (like PHP with curl etc) and it will just manage it. Scaling as needed? I would manually host them all on somewhere like Softlayer, on a single server.. but in my experience Softlayer just null route the traffic if the server gets ddossed. Which is terrible. What I'm looking for is somewhere totally managed, that scales with traffic, so if I get ddossed it just throws up more servers and copes - and costs me more money. So I don't have to do anything.
[QUOTE=garry;41517066]I'm so tired of managing all my websites. I really should hire someone to do it for me. Is there any services where I can put in a SVN URL and set up a container (like PHP with curl etc) and it will just manage it. Scaling as needed? I would manually host them all on somewhere like Softlayer, on a single server.. but in my experience Softlayer just null route the traffic if the server gets ddossed. Which is terrible. What I'm looking for is somewhere totally managed, that scales with traffic, so if I get ddossed it just throws up more servers and copes - and costs me more money. So I don't have to do anything.[/QUOTE] Sounds like [URL=https://www.heroku.com/]Heroku[/URL] and [URL=https://www.appfog.com/]AppFog[/URL]. Although you'll have to use git to deploy on Heroku [url]https://devcenter.heroku.com/articles/git#using-subversion-or-other-revision-control-systems[/url] and I'm pretty sure AppFog uses it's own cli.
[QUOTE=andersonmat;41510903]It's relatively easy to do, it just depends upon how you're planning on doing your navigation. For example, with the following HTML: [code] <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> [/code] You could use the following CSS to add a border between the list elements: [code] li + li { border-left: 1px solid #ccc; } [/code] It is more contextual than anything. [URL="http://jsfiddle.net/exJKC/"]Here's something you can play with.[/URL][/QUOTE] Been playing with it, think im slowly getting there now, thanks again! edit: stumped, how do i get rid of this white gap to the left of home? [IMG]http://i.cubeupload.com/eGCXS1.png[/IMG] [URL="http://jsfiddle.net/exJKC/2/"]heres the code [/URL]
[QUOTE=xianlee;41517562] stumped, how do i get rid of this white gap to the left of home? [URL="http://jsfiddle.net/exJKC/2/"]heres the code [/URL][/QUOTE] Ok, well, if you want equal width elements in your navigation bar, this is how you'd do it. [url]http://jsfiddle.net/exJKC/4/[/url] It feels empty because "Home" takes up less content than the others. If you don't want them to have equal widths, then it is likely you'll have to manually set widths for each navigation element.
[QUOTE=garry;41517066]I'm so tired of managing all my websites. I really should hire someone to do it for me. Is there any services where I can put in a SVN URL and set up a container (like PHP with curl etc) and it will just manage it. Scaling as needed? I would manually host them all on somewhere like Softlayer, on a single server.. but in my experience Softlayer just null route the traffic if the server gets ddossed. Which is terrible. What I'm looking for is somewhere totally managed, that scales with traffic, so if I get ddossed it just throws up more servers and copes - and costs me more money. So I don't have to do anything.[/QUOTE] What's wrong with using CloudFlare in front of your sites to absorb the attacks? It's free and wouldn't require an assumingly expensive service that'll throw up more servers to absorb the attack.
[QUOTE=Banana Lord.;41518964]What's wrong with using CloudFlare in front of your sites to absorb the attacks? It's free and wouldn't require an assumingly expensive service that'll throw up more servers to absorb the attack.[/QUOTE] I think garry would be better off with their pro plan, if he were to get cloudflare.
[QUOTE=garry;41517066]I'm so tired of managing all my websites. I really should hire someone to do it for me. Is there any services where I can put in a SVN URL and set up a container (like PHP with curl etc) and it will just manage it. Scaling as needed? I would manually host them all on somewhere like Softlayer, on a single server.. but in my experience Softlayer just null route the traffic if the server gets ddossed. Which is terrible. What I'm looking for is somewhere totally managed, that scales with traffic, so if I get ddossed it just throws up more servers and copes - and costs me more money. So I don't have to do anything.[/QUOTE] Garry, my company could manage your websites for you! Please look at this thread if you would like to read a little about our company. :downs: [url]http://facepunch.com/showthread.php?t=1291146[/url]
[QUOTE=garry;41517066]I'm so tired of managing all my websites. I really should hire someone to do it for me. Is there any services where I can put in a SVN URL and set up a container (like PHP with curl etc) and it will just manage it. Scaling as needed? I would manually host them all on somewhere like Softlayer, on a single server.. but in my experience Softlayer just null route the traffic if the server gets ddossed. Which is terrible. What I'm looking for is somewhere totally managed, that scales with traffic, so if I get ddossed it just throws up more servers and copes - and costs me more money. So I don't have to do anything.[/QUOTE] You're looking for a platform as a service (PaaS). I know you've used AWS in the past, they have their own service called Beanstalk. [url]http://aws.amazon.com/elasticbeanstalk/[/url]
[QUOTE=RusselG;41520249]I think garry would be better off with their pro plan, if he were to get cloudflare.[/QUOTE] Agreed, $20/mo (and $5/mo for each additional site) is much cheaper than what he's looking at
I can't curl, wget or otherwise download the steam api on my server. It works with my key on my browser but not on my server at all. I managed to make it wget up to 29% but then it stopped. Any ideas?
I'm trying to set up a web comic style of site, and I'm using wordpress. I have no experience in making a custom theme for it, so I was wondering if anyone has any recommendations for a good theme for a kind of comic style site, or any tips for me. I was thinking some kind of slide where you can scroll trough recent comics (they're made on a A4 paper) and then some way to explore more, but I'm not quite sure. I'm using wordpress because I like it apart from HTML/CSS and so on, and the way the comics are gonna be published is kinda blog like, but it shouldn't look too much like a blog. Really hard to explain but any help would be appreciated!
[QUOTE=Banana Lord.;41518964]What's wrong with using CloudFlare in front of your sites to absorb the attacks? It's free and wouldn't require an assumingly expensive service that'll throw up more servers to absorb the attack.[/QUOTE] Cloudflare is fucking terrible. They want $200 a site to enable 'real' DDOS protection. If you don't pay the $200 this happens (I was on the $20 plan at the time). [img]http://i.imgur.com/AhsvFMd.png[/img]
I'd imagine $200/mo is still cheaper than what you're looking at though.
[QUOTE=garry;41521569]Cloudflare is fucking terrible. They want $200 a site to enable 'real' DDOS protection. If you don't pay the $200 this happens (I was on the $20 plan at the time). *cloudflare rage*[/QUOTE] Have you tried Prolexic or Blacklotus? I've not tried either personally and apparently prolexic is quite expensive. Regardless, most DDoS Protection services are $200+ if you want proper protection.
I have the following setup, [code] <table> <thead> <tr> <th>Description</th> <th>Show Capacity</th> <th>Prices</th> <th>Allocation</th> <th>Actions</th> </tr> </thead> <tbody id="allocations"> <tr class="allocation"> <td><input type="text" name="description" placeholder="Description"/></td> <td><input type="text" name="showCapacity" placeholder="0"/></td> <td><input type="text" name="price" placeholder="0"/></td> <td><input type="text" name="allocation" placeholder="0"/></td> <td><a class="remove-allocation btn btn-small btn-inverse"><i class="icon-white icon-trash"></i></a></td> </tr> </tbody> <tbody> <tr> <td></td> <td></td> <td></td> <td></td> <td><a id="add-allocation" class="btn btn-small btn-info">+</a></td> </tr> </tbody> </table> [/code] And these scripts, [code] $('#add-allocation').click(function () { $('<tr class="allocation"><td><input type="text" name="description" placeholder="Description"/></td><td><input type="text" name="showCapacity" placeholder="0"/></td><td><input type="text" name="price" placeholder="0"/></td><td><input type="text" name="allocation" placeholder="0"/></td><td><a class="remove-allocation btn btn-small btn-inverse"><i class="icon-white icon-trash"></i></a></td></tr>').appendTo('#allocations'); }); [/code] [code] $('.remove-allocation').click(function () { $(this).parentsUntil("tbody").remove(); removeFunction(); }); [/code] Now I can add new rows fine, but when it comes to deleting them, I can only delete the original... jsfiddle: [url]http://jsfiddle.net/9d8Az/[/url] What's going on?
It's a damn shame DDoS protection is even necessary; people suck.
Hey guys, still never managed to get such menu done even using css transform. Any suggestions please? [img]http://i411.photobucket.com/albums/pp196/arleitiss/Untitled-1fw_zps408374a9.png[/img]
[QUOTE=arleitiss;41523144]Hey guys, still never managed to get such menu done even using css transform. Any suggestions please? [img]http://i411.photobucket.com/albums/pp196/arleitiss/Untitled-1fw_zps408374a9.png[/img][/QUOTE] Can you use css3 in your project? I can easly make it for you so you can see how it's done.
[QUOTE=jaooe;41522744]I have the following setup, -code- And these scripts, -js- Now I can add new rows fine, but when it comes to deleting them, I can only delete the original... jsfiddle: [url]http://jsfiddle.net/9d8Az/[/url] What's going on?[/QUOTE] Mainly, the new blocks don't automatically get that function assigned. You'd have to use .on or .delegate. I tried .on but it didn't seem to work either, but here's my working version with .delegate: [code] $('table').delegate(".remove-allocation", "click", function () { $(this).parentsUntil("tbody").remove(); removeFunction(); }); [/code] Use that instead of the second script.
[QUOTE=xmariusx;41523421]Can you use css3 in your project? I can easly make it for you so you can see how it's done.[/QUOTE] Just noticed you said you tried with transform, which is css3, so here ya go: [url]http://jsfiddle.net/WYNzg/1/[/url] edit: small update.
[QUOTE=xmariusx;41523681]Just noticed you said you tried with transform, which is css3, so here ya go: [url]http://jsfiddle.net/WYNzg/1/[/url] edit: small update.[/QUOTE] nice thank you, that will help me to learn how it works and how to use it. Thanks a lot.
As much as I love CSS3 transitions, I try to avoid using them because they don't work in firefox
Sorry, you need to Log In to post a reply to this thread.