Jump to content
Killersites Community

All Activity

This stream auto-updates     

  1. Today
  2. HTML, CSS, Javascript, PHP, etc.

    In a very general sense, it answers my question. It's obvious to me how the browser knows how to distinguish the three types of code, my question has more to do with the inner workings of browsers. Maybe I'm overthinking, unnecessarily, the issue. It seems to me, that in order for the browser to implement all three separate web page design languages, it has to act as a compiler that can compile three different computer languages. Well, I guess part of the answer is that it's not a compiler, it's an interpreter. And, I've actually read of scripting another programming language to perform functions from inside another programming languages code. For example, scripting Python inside C++ code. I'm rambling at this point, but, I was just curious about browsers conceptually. It seems to me, that they must be updated and patched every time another code is developed to program web pages. -Mike
  3. Yesterday
  4. HTML, CSS, Javascript, PHP, etc.

    Hi, For HTML, CSS and JavaScript, the web browsers 'know' what to do because the code has a particular structure that tells the web browser what kind of code it is. For example, with HTML, the tag structure with the angled brackets tell the browser it is HTML. For CSS, it can see CSS with the style attribute or the CSS tag block. With JavaScript, it is the script tag block. With PHP, you have to create a PHP page (ex: index.php) ... and when the web server see's the PHP extension, it passes the page to the PHP engine, and it knows how to find and read the PHP code. Makes sense? Stef
  5. I'm a fair way into the HTML 2015 course, and, maybe you will answer the question later on in the course, but, how does the browser know how to implement the different web page design languages, such as HTML 5, CSS, JavaScript, PHP? I was amazed that you can just type a CSS keyword "style" into an HTML 5 webpage script, and the browser automatically implements it. I'm old enough to know that I don't have to know all the gory details of how something works, in order to use and enjoy that it does, but, still, the "need to nerd" in me, would like to know. My guess is that browsers need to be updated for the latest and greatest web design languages as they are created? -Mike
  6. Square image

    I'm not familiar with Xara but usually, there is a box about locking aspect ratio where you resize things. However, if you're changing the dimensions of an existing rectangle to create a square, you'll distort things. Maybe you can provide more detail about what exactly you're trying to do?
  7. Career paths for Python on Linux?

    I was also thinking about the combination of Linux, Python, and eventually getting a Raspberry Pi. It might be interesting to see what Python and the Raspberry Pi library can do.
  8. Square image

    How to create the square image in Xara or wherever. When I change the height the weight is changed automatically and vice versa and they have never become equal, so I can't get a square image.
  9. Last week
  10. Hello world!

    Hey Stef, I really am enjoying your python course I feel like I'm able to understand the terminologies much better with your analogies. I'm taking my time with it though and really going through the videos slowly to make sure I am really 'getting it' and don't want to burn out by trying to cram too much into my brain in a shorter period of time. I'm trying to do an hour or so a day at the moment but plan on upping my study time to 5-6 hours a day in the next couple of weeks. A quick question though: How long would you estimate it will take me or the average person (with no previous computing skills) to become proficient with python? Thanks for all your help
  11. Mamp Install

    Hi, thanks for the quick reply Stefan, I had the directory mixed up. Regards, Rick
  12. Mamp Install

    Did you turn MAMP on? Stef
  13. Hi people! Since I couldnt get answers from Stackoverflow I desiced to ask you. Can someone explain how does these 2 functions work: class_exists() spl_autoload_register() Class exist function if(class_exists('User')){ echo "It does exists"; } class User { /* Some code here */ } // the output of file is "It does exists" So how does this function works? Scans whole file? Whole directory? I mean its called before I defined class. Spl autoload register function include 'functions.php'; // <- file where is the function class_exist('User') and spl_autoload_register() include 'db_config.php'; include 'database.php'; include 'user.php'; // <- Here is the class (User) So how does this function work? Its before any of those files that are included, and still it does it work? Does it scans whole directory where it is or what? I am really confused. Thanks peeps!
  14. Mamp Install

    HI, I was wondering if someone can help me with MAMP on my IMAC. I'm on Beginners PHP Chapter 1 , Lesson #5. I am following along with the video course too. I go to MAMP and Open Web Start Page . When I enter localhost/ch1-lesson-4.php in Google i get an error that reads: This site can’t be reached Would someone offer suggestions? Thanks Ric
  15. JavaScript Loops

    Try changing this: target.innerHTML = "LoopCount: " + loopCount + "<br>" + target.innerHTML; To: target.innerHTML = target.innerHTML + "LoopCount: " + loopCount + "<br>";
  16. If you do not understand why I think the repeal of Net Neutrality by the FCC is bad for us, or you simply do not understand what Net Neutrality is all about, Burger King will help you understand it while you wait on your whopper: Video from Twitter: https://twitter.com/BurgerKing/status/956166686054408192 You can see more on the subject here: The Issue of Net Neutrality
  17. JavaScript Loops

    I understand that but if we start with 5 then print on the screen current number, and then substract 1 from it, and repeat cycle, why isnt order 5,4,3,2,1 there? instead it goes from 1.
  18. Is studioWeb currently down.

    Yep. Server maintenance. They did it during the day ... I was amazed, in a bad way. Sorry for the 15 minute hiccup. Stef
  19. JavaScript Loops

    It makes sense because loopCount is in quotes: "LoopCount: " ... So JS sees that as a string datatype. Makes sense?
  20. JavaScript Loops

    I have two question about JS loops. Its about while loops. 1)if we type this line of code target.innerHTML = "LoopCount: " + loopCount + "<br>" + target.innerHTML; why does it write from lowest number to highest like this? LoopCount: 1 LoopCount: 2 LoopCount: 3 LoopCount: 4 LoopCount: 5 The function tells that starting loop is 5,we are targeting empty paragraph with id "target", then writting into it some text and saying that we want to see current loop number, which is 5 at the beginning , then we are substracting 1 from it(decrementing), and repeating, writing and so on again, so why doesnt it goes backward, 5,4,3,2,1? Why the first number is 1 when the starting was 5? My logic tells me if you start with 5, then print current number and then decrement it, and repeat it again all over , it should go in 5,4,3,2,1 order. function doItAgain(message) { var loopCount = 5; while(loopCount > 0) { var target = document.getElementById("target"); target.innerHTML = "LoopCount: " + loopCount + "<br>" + target.innerHTML; console.log("LoopCount is now: " + loopCount); loopCount = loopCount -1; } console.log("End loop"); var button = document.getElementById("looper"); button.value ="Done looping!"; 2) if we look at opposite case and write target.innerHTML = "target.innerHTML + "LoopCount: " + loopCount + "<br>" ; then it writes LoopCount: 5 LoopCount: 4 LoopCount: 3 LoopCount: 2 LoopCount: 1 But if we look the order into syntax, shouldnt it write this? 5 LoopCount: 4 LoopCount: and so on....
  21. HOwdy. It is 15 Feb 2018, time is 10:17 EST/NY time. Just wondering if anyone else is having this issue also?
  22. What's the latest and greatest in free HTML Editors?

    Notepad++ and Sublime text editors are the free html editors..
  23. photoshop versus gimp

    Photoshop is the best software for designing good images...
  24. Cybersecurity News

    Skype Microsoft Won't Patch a Severe Skype Vulnerability Anytime Soon [2/14/2018]
  25. Microsoft Issues Security Patch Update for 14 New Critical Vulnerabilities https://thehackernews.com/2018/02/microsoft-patch-update.html
  26. Hello world!

    Ahh very common among the courses out there. Sadly, this is because most of the courses are not created by people who know how to teach. I know though from your email, you are doing well with my Python course. Stef
  1. Load more activity
×