-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
There we go then. Just North America call it soccer!
-
Starting With The Binary System - Operating System Creation
Adam replied to ferrari's topic in Miscellaneous
Windows is an awful OS to base your ideas on. The whole registry idea is just ridiculous. I'm sure many will disagree (though hopefully not too many on a predominately Linux based programming language forum) but look to Linux for inspiration. You can even download the source of various distros on-line. As for how to develop an OS, that's not the kind of thing to discuss on a forum, you need to read books. Good starting advice would be to learn a low-level language like C first though, and go from there. -
Starting With The Binary System - Operating System Creation
Adam replied to ferrari's topic in Miscellaneous
Given the variety of your posts (e.g. this, this and this) it does suggest you've been off reading and posting your random thoughts on the matter. Jumping from post-redirects to writing an OS reinforces that. However I may be wrong, which is why I asked the question: What kind of reply do you expect to this? I don't think anyone really knows what kind of reply you're looking for. Take that as criticism or take it as someone trying to tell you, that you're asking the wrong kind of question. It's up to you. -
Starting With The Binary System - Operating System Creation
Adam replied to ferrari's topic in Miscellaneous
Look pal I'm not trying to be some nazi western guy pointing out your mistakes, I'm just trying to explain that your threads don't make sense. They read like random thoughts popping into your head. It probably is just a language barrier. -
No, the rest of the world calls that "American Football". Except maybe Australia. I don't know what they call it.
-
Starting With The Binary System - Operating System Creation
Adam replied to ferrari's topic in Miscellaneous
... Not that there's anything actually wrong with trying to spark up conversation about something you've read about, but just ask a proper question. What kind of reply do you expect to this? -
Starting With The Binary System - Operating System Creation
Adam replied to ferrari's topic in Miscellaneous
What the..? Are you just thinking aloud or something? These are such vague and odd questions. I'm not sure if there's some kind of language barrier here, but from my point of view at least, you just seem to be creating nonsensical threads based on articles you've read in the last hour or something. -
Looks okay. Could you post the two calls you have?
- 6 replies
-
- popup
- windowname
-
(and 1 more)
Tagged with:
-
Just to add, searches should be a GET request anyway. You shouldn't need to POST anything to perform a search.
-
Have you not heard of Google Docs before? M$ is late to the table here, assuming this has only just come out?
-
As Jessica mentioned, jQuery makes DOM manipulation really easy, I would take a look into it. Although you could still save yourself some trouble without using it, by just adding/removing a class name instead of trying to change individual styles.
-
.. It helped.
-
Validation Text Area To Dont Let Insert Emails Or Website Links
Adam replied to madness69's topic in Javascript Help
Assuming you're aware of what trq has said and you have server-side validation as well... You have two options. If you're not bothered about older browsers falling back to the server-side validation, you can use the new HTML5 input types "email" and "url" along with the "required" attribute if needed. The browser will handle the validation and highlight any mistakes to the user automagically. This obviously saves you a huge amount of time, but there's no support in older browsers and you can't control the look of it (though you can control the message shown). Still, browser support for it isn't that bad, and is getting better. Or the second option is to build on what you have, though you really need to drop those alert()s and insert elements into the DOM instead. You can detect characters in a String using indexOf(), which returns -1 if no match was made. For URLs you could also check the string starts with "http://", which you can also do with indexOf() returning 0 (meaning at match was made at position 0). The problem with this of course is you have more work to do, cross-browser issues to content with, and the validation isn't all that comprehensive. Personally I would save yourself the headache and let the browser do it, falling back to the server-side validation if needed. Obviously that might not be possible if full cross-browser compatibility is required. -
http://www.cracked.com/article_15229_5-things-hollywood-thinks-computers-can-do.html
-
FYI "PHPSESSID" is just the default name for the session cookie in PHP. You can change it within your php.ini file. Google doesn't use PHP, but they have a cookie named "SID" which I'm guessing it their main session ID. Sessions are not PHP specific, but most web languages will take a similar approach.
-
It's up to you... Do you want to track a general total of page views, or a total for each page? I don't really see how much use the former would be, though. What's this data to be used for? You may be better off using Google Analytics (or an equivalent) if you just want to get some stats. Unless you only want to register views for unique users, there's no need to try to identify the user, just increment the count.
-
I think you've mistaken clean for basic. Clicking through the pages there's no consistency. Everything seems either randomly positioned apart or you have, for example the contact form, a bunch of content squeezed into a tiny box. It's fine to have a website without too much text content (though as others have said the point of the website is completely unknown), but you need to make better use of space. Add some margins between paragraphs, remove the harsh borders, let stuff breathe a bit. The white background of the logo sticks out like a saw thumb. You could remove it, but you'll have another issue with the colour of the logo text and the background colour of the navigation; there's not enough contrast between the two. The hover colour of the navigation is also a bit brutal. Try using another shade of the same colour instead of dark grey. I think you need to go back to the drawing board with this one and try to give the site some structure and a common theme.
-
Hmm right. So what have you done so far? Given it's clearly code from a tutorial we're not just going to do it for you, you're supposed to learn from it.
- 4 replies
-
- javascript
- ajax
-
(and 3 more)
Tagged with:
-
If you're talking about an interpolable data format, I'd recommend using JSON. It's really light-weight and both languages have native support for it. If you're talking about how to actually pass that data into the program though, you can read from stdin with Ruby using the ARGF class.
-
No I didn't think for a moment it would be legal for them to let you download BF3, but the OP could be wanting to replicate the system for legal use. I guess. Maybe. Probably not..
- 4 replies
-
- javascript
- survey
-
(and 1 more)
Tagged with:
-
I'm sorry but do you even download a game at the end of that? Most of those things just loop through an endless amount of surveys, they're a scam. If you're wanting to create a scam we won't help.. Not that I'm trying to accuse you of scamming. Just asking.
- 4 replies
-
- javascript
- survey
-
(and 1 more)
Tagged with:
-
Lower-case with underscores? General convention with JS is to use camel case, like you're doing.
-
Trying To Consolidate And Condense This Code For A Menu
Adam replied to simcoweb's topic in Javascript Help
Okay well it's worth pointing out that internally jQuery will use, where possible, document.querySelectorAll to find elements. This is a native function that will perform miles better than jQuery can ever do manually. By combining multiple jQuery selectors in one call, you can combine them all into one call to this function.. // Previously jQuery("div.productmenu").hide(); jQuery("div.biomenu").hide(); jQuery("div.companymenu").hide(); jQuery("div.contactmenu").hide(); ... // After jQuery( "div.productmenu," + "div.biomenu," + "div.companymenu," + "div.contactmenu," ).hide(); Probably won't have any noticeable effect though if I'm honest, but it's certainly not wasteful and it's cleaner. Just generally learning how to write the syntax cleanly will help. Everything you posted is on one single line and very difficult to read. Beyond that though I can't really help, I'm not about to sit down and work out everything happening there. If you indent it, explain it, etc. Then I'll be happy to help with anything. -
Trying To Consolidate And Condense This Code For A Menu
Adam replied to simcoweb's topic in Javascript Help
That menu is a usability nightmare. Took me about 10-15 seconds just to get the hang of how to use it, and then browsing about was tedious because you hide parent parts of the menu when you scroll down to a child. Honestly I think you should forget reducing repetition for now and concentrate on making it easy to use. -
@AndrewRenn It's also "spelt", not "spelled".. Edit: Apparently both are valid