• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
[QUOTE=tgara;30676839]Yes, it's all .NET. You don't even need to change the code of a library. [editline]24th June 2011[/editline] well then explain how stackoverflow only runs on 5 servers (including db servers) what a terrible attempt at anti-ms propaganda.[/QUOTE] I've said the same thing. Their website and documentation reeks of the most childish anti-microsoft bullshit I remember seeing outside the mac forums, but if you look past that, it (so far) seems to deliver some good results.
[QUOTE=StinkyJoe;30677728]I've said the same thing. Their website and documentation reeks of the most childish anti-microsoft bullshit I remember seeing outside the mac forums, but if you look past that, it (so far) seems to deliver some good results.[/QUOTE] I would have given it a shot but they don't even attempt to present themselves professionally - why should I trust their code on my servers?
Is this the correct way to hide file extensions in the url with a .htaccess? [code] RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [/code]
[QUOTE=Richy19;30678511]Is this the correct way to hide file extensions in the url with a .htaccess? [code] RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [/code][/QUOTE] Personally, I'd go with: [code] location / { try_files $uri $uri.php } [/code]
[QUOTE=tgara;30678564]Personally, I'd go with: [code] location / { try_files $uri $uri.php } [/code][/QUOTE] useful to know, but im on WAMP at the moment (for ease of setting things up, which isnt to say I might swap over to nginx at a later time)
[QUOTE=Richy19;30656564]A while back a few of you were saying that apache was crap and not to use it, what do you tthink of LightTPD?[/QUOTE] Bad memory leaks, that's all I know
Can someone help me set up MySQL remote connection properly with my VPS? This is the first time I'm trying this and I have no clue. I have set up an account in phpMyAdmin and I am trying to connect to the database through HeidiSQL, which I am unable to. The account has sufficient privileges, i.e. I punched a % in the host field.
[QUOTE=Within;30680280]Can someone help me set up MySQL remote connection properly with my VPS? This is the first time I'm trying this and I have no clue. I have set up an account in phpMyAdmin and I am trying to connect to the database through HeidiSQL, which I am unable to. The account has sufficient privileges, i.e. I punched a % in the host field.[/QUOTE] Double check your bind_address in /etc/mysql/my.cnf (or equivalent file).
[QUOTE=StinkyJoe;30680856]Double check your bind_address in /etc/mysql/my.cnf (or equivalent file).[/QUOTE] [quote]bind-address = 127.0.0.1[/quote] Should I replace with my VPS IP?
In MySQL is it possible to search for an element that contains part of a search variable? I.E have a database Files like: [code] (int)ID | (string)fileName | (string)Tags 1 blah ocean, sea, beach 2 hmnng fire, hell, sun 3 whut crazy, creepy, weird [/code] and then search in the database doing something like GET fileName WHERE Tags CONTAINS $tagVariable
[QUOTE=Within;30680938]Should I replace with my VPS IP?[/QUOTE] That or 0.0.0.0
Well, this is embarrassing. I've embedded tumblr into my website and now I would like to style it, but I can't on earth figure out how to style it! :what: If it's any use I'm using; [QUOTE]<script type="text/javascript" src="http://( YOU ).tumblr.com/js"></script>[/QUOTE]
[QUOTE=compwhizii;30681820]That or 0.0.0.0[/QUOTE] Thanks
which IDE's take advantage of doc tags?
[QUOTE=Chuushajou;30683041]Well, this is embarrassing. I've embedded tumblr into my website and now I would like to style it, but I can't on earth figure out how to style it! :what: If it's any use I'm using;[/QUOTE] Would help if you replaced ( YOU ) with your username or w/e it wants :what:
[QUOTE=Chuushajou;30683041]Well, this is embarrassing. I've embedded tumblr into my website and now I would like to style it, but I can't on earth figure out how to style it! :what: If it's any use I'm using;[/QUOTE] Just look at the source code of the page. Get all the CSS classes and stuff then style it.
Say I have div a which holds div b which holds content and I tell div b to float: left; how can I make div a extend in height so it goes right around div b?
I think this is what you want. Put this in div a, under div b. [code]<div style="clear:both;"></div>[/code] Not sure if there's a better way that this should be done or not. (I doubt it is) edit: see here [url]http://stackoverflow.com/questions/211383/which-method-of-clearfix-is-best[/url]
I seem to have been able to fix it with a simple overflow: hidden; in div#a.
Help! ORIGINAL should be centered but it's not, and the box is longer than it should be or something [url]http://antn.me/dev/tf2valuator/items.php[/url] This literally makes no sense at all :psyduck:
[QUOTE=AntoniD;30693860]Help! ORIGINAL should be centered but it's not, and the box is longer than it should be or something [url]http://antn.me/dev/tf2valuator/items.php[/url] This literally makes no sense at all :psyduck:[/QUOTE][img]http://dl.dropbox.com/u/1439918/Pics/2011-06-25_0025.png[/img] That shows the problem
Thanks, figured it out!
[QUOTE=PieClock;30692481]I think this is what you want. Put this in div a, under div b. [code]<div style="clear:both;"></div>[/code] Not sure if there's a better way that this should be done or not. (I doubt it is) edit: see here [url]http://stackoverflow.com/questions/211383/which-method-of-clearfix-is-best[/url][/QUOTE] I usually use <br style="clear:both" /> instead. Personal preference though.
[QUOTE=Richy19;30681012]In MySQL is it possible to search for an element that contains part of a search variable? I.E have a database Files like: [code] (int)ID | (string)fileName | (string)Tags 1 blah ocean, sea, beach 2 hmnng fire, hell, sun 3 whut crazy, creepy, weird [/code] and then search in the database doing something like GET fileName WHERE Tags CONTAINS $tagVariable[/QUOTE] To do this would I do a query like this? SELECT fileName FROM FilesTable WHERE Tags LIKE '%hell%' Which would give me the second file
[QUOTE=Richy19;30698340]To do this would I do a query like this? SELECT fileName FROM FilesTable WHERE Tags LIKE '%hell%' Which would give me the second file[/QUOTE] have a second tags table with a tag name and a foreign file id key
[url]http://en.wikipedia.org/wiki/Database_normalization[/url]
How can I take an argument in javascript and make it the name of a variable? So I can do something like this function echo(variable, value) { var variable = value; document.write(variable); } and echo('vegetable', 'carrot'); will print the word 'carrot'. Hope that made sense.
[QUOTE=ken188;30702427]How can I take an argument in javascript and make it the name of a variable? So I can do something like this function echo(variable, value) { var variable = value; document.write(variable); } and echo('vegetable', 'carrot'); will print the word 'carrot'. Hope that made sense.[/QUOTE] Why would you want to do that?
Please help out a poor boy playing with CSS. [code] #menuboxes li a { border:1px solid; border-color:white; height:60px; width:280px; position:relative; font-size:45px; font-weight:900; text-align:center; text-decoration:none; transition:width 1s; -webkit-transition:width 2s; } #menuboxes li a:hover { width:300px; background-color:red; } [/code] The transition won't occur for some reason, but the background color changes.
[QUOTE=ken188;30702427]How can I take an argument in javascript and make it the name of a variable? So I can do something like this function echo(variable, value) { var variable = value; document.write(variable); } and echo('vegetable', 'carrot'); will print the word 'carrot'. Hope that made sense.[/QUOTE] [code] function echo(variable, value){ document.write(value); } echo('vegetable', 'carrot'); [/code] derp -edit- Stupid me, I didn't understand what you were trying to do.
Sorry, you need to Log In to post a reply to this thread.