Web Dev Questions That Don't Need Their Own Thread v4
5,001 replies, posted
Thanks, that worked.
Hey guys, started making my own website for a portfolio and I am looking into buying a domain and web hosting, anyone have any recommendations? GoDaddy seems quite good for the price. [url]http://uk.godaddy.com/hosting/web-hosting-new.aspx?isc=iap30offn[/url]
Can someone find out why my new site experiment cuts off after the iframe and the background restarts?
[url]http://cronosdage.x10.mx/[/url]
There are supposed to be some images, share buttons and a footer after the iframe but I can't find out why
[QUOTE=Valdread;43583528]Hey guys, started making my own website for a portfolio and I am looking into buying a domain and web hosting, anyone have any recommendations? GoDaddy seems quite good for the price. [URL]http://uk.godaddy.com/hosting/web-hosting-new.aspx?isc=iap30offn[/URL][/QUOTE]
Buy them separately, for better results.
Personally, Namecheap + LithiumHosting/ElpisHost/DoRoyalServices(haven't tried this one) would be a good way to go
[QUOTE=Valdread;43583528]Hey guys, started making my own website for a portfolio and I am looking into buying a domain and web hosting, anyone have any recommendations? GoDaddy seems quite good for the price. [url]http://uk.godaddy.com/hosting/web-hosting-new.aspx?isc=iap30offn[/url][/QUOTE]
I used [url=https://exodushosting.net/billing/index.php]Exodus Hosting[/url] and [url=https://www.namecheap.com/domains.aspx]NameCheap[/url], and they were really good I never had any problem with them.
Uh there's a [I]few[/I] problems with your site...
You have style tags before your opening head tag, you should move all your stylesheet data into its own .css file and include it inside your head like this:
[code]<link href='location/style.css' rel='stylesheet' type='text/css' />[/code]
It makes your source much cleaner and your files much easier to manage as well as external css files having the ability for users browsers to cache the file so the style information isn't being reloaded every page visit.
Your first script inside your first head tag (You shouldn't have more than one head section by the way) doesn't have a [B]>[/B] for the opening script tag, maybe you should consider moving scripts to a separate file too for the same reasons as moving the style information.
[code]<script src='location/script.js' type='text/javascript'></script>[/code]
You have a noscript tag inside the head which will display an iframe, although the iframe has a height and width of 0 you should still have this inside the body, probably after the opening body tag.
You didn't end the HTML comment correctly after:
[code]<!-- End Google Tag Manager[/code]
You should end it with [B]-->[/B] or I am pretty sure that google analytics JavaScript won't run as it's being commented out.
I've never actually used the HTML 5 audio element but I am pretty sure it should be in the body of the site and not the head.
Right before:
[code]<!-- where the fuck is the body -->[/code]
You have:
[code]
<head profile="http://www.w3.org/2005/10/profile">
</head>
[/code]
You already have an open head tag, remove that one and leave that closing head to close the first one you opened.
You're using background and bgproperties attributes on your HTML 5 page, those aren't supported anymore and you should be setting your background within the stylesheet:
[code]
body {
background:url("TESTBACKGROUNDLEL2.jpg");
}
[/code]
Your favicon tag should be inside the head and should be like this:
[code]<link rel='shortcut icon' href='location/icon.ico' />[/code]
I think modern browsers are ok with having a png as a favicon but I'm not sure, you should just use one of those png to ico sites to be safe and support all browsers. (I did a test a few months ago and I between Chrome and Firefox one of them displayed it fine whereas the other didn't but I can't remember which, but just use an ico)
[B]And the reason why you can't see anything after the iframe[/B] is because you didn't close the iframe tag with
[code]</iframe>[/code]
Sorry but there's so many problems with your site such as using the center element which is depreciated or the fact that pretty much nothing is done with the use of style information..
But I hope this helps you fix what you wanted fixing on the page.
it works! thanks a lot. according to wikipedia, IE has only supported png favicons since ie11 (latest :v:) so i'll consider changing that. For the style.css file, I have one but the software I have been using has made it faster to have the stylesheet internal/inline since i haven't been uisng like dreamweaver, sl3, coldfusion lately
the HTML5 audio element works in like any part of the page, I just changed the filename to something that's not on the site rather than commenting it out while i think of new copyrighted content to potentially bother people when they visit the site
background-repeat:no-repeat; is best way to maintain a fixed background like in the old html way?
[QUOTE=Cronos Dage;43585700]it works! thanks a lot. according to wikipedia, IE has only supported png favicons since ie11 (latest :v:) so i'll consider changing that. For the style.css file, I have one but the software I have been using has made it faster to have the stylesheet internal/inline since i haven't been uisng like dreamweaver, sl3, coldfusion lately
the HTML5 audio element works in like any part of the page, I just changed the filename to something that's not on the site rather than commenting it out while i think of new copyrighted content to potentially bother people when they visit the site[/QUOTE]
You can use this site to simply convert a png to ico with ease [url]http://www.convertico.com/[/url]
And yeah maybe the audio element works but it doesn't mean it should go there.
Glad I could help you fix the problem though :)
thanks for that; I was pretty pissed apple discontinued Icon Composer.
Need Help: Basically I have a div at a top which has a fixed position. I have a div that has a relative position and for some reasons the div with the relative position is above the fixed div instead of behind it. If I remove the second div position as relative then it's fixed but it has to be relative for one of my buttons.
[QUOTE=BoowmanTech;43587418]Need Help: Basically I have a div at a top which has a fixed position. I have a div that has a relative position and for some reasons the div with the relative position is above the fixed div instead of behind it. If I remove the second div position as relative then it's fixed but it has to be relative for one of my buttons.[/QUOTE]
z-index
Thanks that worked.
[QUOTE=01271;43579985]Is there a web tooltip that works well, looks ok and most importantly, will work as soon as it is loaded on a page? I need one that can load like that due to me showing data on pages that load slowly.[/QUOTE]
Reposting because still no answer.
I tried opentip and I also tried the default jquery tooltip.
I have a div in another div.
Ex: div1 and div2. div2 it's inside div1 but if I change the margin-top for div2, div1 moves down as well and div2 it's in the same position.
So, example 1 is how it is suppose to look and example 2 shows what is happening. instead of div2 moving down it moves div1 with div2 in it.
[url=http://i.imgur.com/qsf6Zx3.jpg][img]http://i.imgur.com/qsf6Zx3l.jpg[/img][/url]
[editline]19th January 2014[/editline]
FIXED: I used padding in div1
I'm a programming student and prefer developing desktop applications to web development, yet I wanted to at least learn the basics of web development, because it does not only look good on my CV, but who knows, it might come in handy at some point.
What are the most essential languages/things I should learn?
I've started off with the HTML introduction at codecademy and plan on moving on to CSS, PHP, JavaScript and SQL next.
[QUOTE=marvinelo;43592901]I'm a programming student and prefer developing desktop applications to web development, yet I wanted to at least learn the basics of web development, because it does not only look good on my CV, but who knows, it might come in handy at some point.
What are the most essential languages/things I should learn?
I've started off with the HTML introduction at codecademy and plan on moving on to CSS, PHP, JavaScript and SQL next.[/QUOTE]
All that you mentioned, definitely.
Also, if you want a fresher experience than PHP you could try Ruby on Rails.
[QUOTE=marvinelo;43592901]I'm a programming student and prefer developing desktop applications to web development, yet I wanted to at least learn the basics of web development, because it does not only look good on my CV, but who knows, it might come in handy at some point.
What are the most essential languages/things I should learn?
I've started off with the HTML introduction at codecademy and plan on moving on to CSS, PHP, JavaScript and SQL next.[/QUOTE]
All those are good yeah, I also suggest you to set up Apache + PHP with SQlite on your computer for making practice easier. I also agree with the post above me. If you're someone who values organisation and conventions,then you should definitely check out ROR.
How can I make node handle custom extensions OR open extensions as if they were .json with require()? I'm trying to open starbound files. I don't want to use the deprecated require.extensions.
So I've been programming for about 5 years now, mostly C#, but I've used a bunch of other languages such as Python, C, C++, Lua etc. Almost none of that 5 years is web development(I wrote something crappy in WebGL at some point). I feel like web development is something I should probably get in to, at least to the point where I can make a basic website by myself.
Where can I start, what are my options? I'm not talking about learning languages, I can learn those by myself, what web frameworks/software can I use for development? I'd prefer something with a rapid workflow.
Is there a simple explanation to when its best to use [B]for[/B], [B]foreach[/B] and [B]while[/B] loops?
Meaning in practical use.
here:
[code]
var i;
var array = ["h", "e", "l", "l", "o"];
var data = "";
for(i = 0; i < array.length; i++) {
data = data + array[i];
}
[/code]
Basically, in a for loop, you have an initial expression (far left, in this case it's i = 0), a conditional expression (evaluated every loop to check for a truthy value), and a loop expression (evaluated after every loop). You can use it to count up from a number, say, 0, up to a certain number (say, the length of the array). It will perform the loop that many times.
[code]
// TBH, not a lot of languages follow this exact definition of a foreach
// statement. Also, PHP.
$arry = array("hello" => "world", "foo" => "bar");
foreach($arry as $key => $value) {
echo "{$key}: {$value}";
}
[/code]
[code]
# Ruby!
hash = { hello: "world", foo: "bar" }
hash.each do |key, value|
puts "#{key}: #{value}"
end
[/code]
This one is more oriented to iterating over key value pairs. Some implementations may still let you use it to iterate over an array, but normally a "foreach" loop can be considered to do that.
[code]
var someCondition = true;
while(someCondition) {
// do something...
if(otherThing) { someCondition = false; }
}
[/code]
A while loop only accepts a conditional. To write it in our for loop above, you'd get:
[code]
var i;
var array = ["h", "e", "l", "l", "o"];
var data = "";
i = 0;
while(i < array.length) {
data = data + array[i];
i++;
}
[/code]
The two code samples do the same exact thing, but the for loop in that case is more concise. Normally, a while loop is used when an initial expression and a loop expression aren't needed, i.e. the conditional expression changes for some other reason other than a number increasing/decreasing.
Each of them can be written in terms of the other, but normally it's better to see if you can write it as concise and understandable as possible - basically, try to use the DRY rule as much as possible.
[QUOTE=Ac!dL3ak;43603109]-lots of stuff-[/QUOTE]
Makes more sense now, at least I know what to choose for which purposes. :v:
[QUOTE=reevezy67;43602742]So I've been programming for about 5 years now, mostly C#, but I've used a bunch of other languages such as Python, C, C++, Lua etc. Almost none of that 5 years is web development(I wrote something crappy in WebGL at some point). I feel like web development is something I should probably get in to, at least to the point where I can make a basic website by myself.
Where can I start, what are my options? I'm not talking about learning languages, I can learn those by myself, what web frameworks/software can I use for development? I'd prefer something with a rapid workflow.[/QUOTE]
Seeing as you already know Python you might want to take a look at [url]http://flask.pocoo.org/[/url] or [url]https://www.djangoproject.com/[/url] for if you wan't something backend.
[QUOTE=reevezy67;43602742]So I've been programming for about 5 years now, mostly C#, but I've used a bunch of other languages such as Python, C, C++, Lua etc. Almost none of that 5 years is web development(I wrote something crappy in WebGL at some point). I feel like web development is something I should probably get in to, at least to the point where I can make a basic website by myself.
Where can I start, what are my options? I'm not talking about learning languages, I can learn those by myself, what web frameworks/software can I use for development? I'd prefer something with a rapid workflow.[/QUOTE]
Well since you already know C#, you could go with ASP.net.
Oh also maybe a bit weird question but is Python something you guys would recommend to learn? I use codecademy and it's one of the few I haven't finished, thought about it but I don't see the potential or directly the "use" in it.
I don't really like the look of ASP.NET, plus I don't often find myself a reason to use Python. I think I'll go with Django. Flask looks great but it seems like Django has a bigger community behind it.
[editline]20th January 2014[/editline]
[QUOTE=Moofy;43603717]Oh also maybe a bit weird question but is Python something you guys would recommend to learn? I use codecademy and it's one of the few I haven't finished, thought about it but I don't see the potential or directly the "use" in it.[/QUOTE]
I don't have any experience with Python for web development but it is a great language.
I use it mostly for simple automation type stuff e.g. sorting files or copying dll's into binary folders. So basically the kind of thing I don't want compiled into an executable.
Python is just like any server-side scripting language. What you can do in another language you can probably do it in Python. Personally, I hate the Python syntax, but it doesn't mean it's useless. Tons of websites use Python as their core (like Reddit I think).
It's also a very popular and generic language, it gets used everywhere.
How do you deal with testing your pages?
I mean, yes, you know exactly what to do for X to do this and that, as you've shape it that way. But how do you deal with 'unexpected results'? Any kind of TesterHire that you know? Bugging friends until one accepts?
What kind of testing do you mean? Usability?
Sorry, you need to Log In to post a reply to this thread.