Jump to content
Killersites Forums

lwsimon

Moderators
  • Posts

    105
  • Joined

  • Last visited

Posts posted by lwsimon

  1. No offense was intended - I clicked the link expecting a static image, which would have been fine -- but I thought the better of watching that animated gif for extended periods on my work PC.

     

    I work in a corporate environment, as I'm sure some of your other visitors do, and things that are acceptable and fun at home are very much not acceptable at work.

  2. As I remember it, I uninstalled each package independently in Synaptic..

     

    Then you'll want to remove each package :)

     

    LAMPP means "Linux, Apache, MySQL, PHP, Perl".

     

    So, you'll need to remove Apache, which should remove all the mod_xxx stuff using Synaptic. Then remove MySQL and PHP. Perl, you might want to keep, as it is often used by other apps in Linux.

  3. One thing that *could* be done is to have an Include file of php code to check the Refferring page to make sure that the access for the page is from your Domain. If someone tries to hotlink the page, and the referral is from another site, or direct, they are sent to your Index page. But you need to know some php to code the script.

    ... and anyone with basic knowledge of javascript could obtain a copy of your code with nothing more than Internet Explorer. There is no way to protect client-side code on the web. At all.

  4. First of all it is "Javascript" not "Java Scripts".

     

    Second, the differences go far beyond how the machine handles execution of the code. Java is a strongly typed language following the classical inheritance model. Javascript is a weakly typed language, and uses the prototype inheritance model.

     

    Java was created by Sun Microsystems as a "write once, run anywhere" language, and it achieves that goal by running inside a JVM - Java Virtual Machine. It is indeed a compiled language, as you cannot run Java from source, but the argument can be made that it is also an interpreted language, as the compiled source - bytecode - is not run natively, but rather interpreted by the JVM.

     

    Javascript was originally developed by Brenden Eich at Netscape, as a browser-based, client-side language. It was first called "LiveScript", and I've heard many theories on why the name was changed. The language, however, has little in common with Java.

     

    The differences between compiled and interpreted code will be lost on most entry-level programmers. The best advice is simply to ignore Java until you have a grasp of Javascript, and know the difference between client-side and server-side. Java may be used as a server-side language, alone or in combination with JSP - this is perfectly acceptable, and is often done in corporate environments, but most independent developers use PHP or other open-source language (Python, Perl, Ruby, etc.)

     

    There are, of course, ways to embed Java into a webpage. The number of users without Java support far outnumber those without javascript support, though. I can't think of a reason to write a modern application with client-side Java.

  5. the == comparison operator does type coersion. When you say "if ( $var == 0 )", you're really saying "If you typecast 0 to the type of $var, are they equivalent?"

     

    The === operator, on the other hand, tests both value and type.

     

    I'm not sure if I"m being clear - its been a long day at work - so here are some examples

     

    $var = 0;
    
    if( $var == 0 ){ ... } //this executes
    if( $var == false ){ ... } //this executes
    
    if( $var === 0 ){ ... } //this executes
    if( $var === false ){ ... } //this does not execute
    

     

    PHP manual entry for comparison operators:

    http://us2.php.net/operators.comparison

  6. Firebug lets you do this in Firefox, that's what I've been using these days on Windows.

     

    On linux, I just have a cron job that refreshes the page every 3 seconds.

  7. What a load.

     

    First, CO2 has not been proven to be a "greenhouse gas" There are lots of fancy charts that show this, and lots of researchers that will tell you that it is, but there is not a single reproducible study that shows that CO2 in the atmosphere increases the surface temperature.

     

    Second, even assuming the above is false, this is incredibly flawed. There are so many variables, it isn't even funny. What load was the server under? How many hops from the PC to the server? What was the thermostat set at in the network closet of the ISP? What O/S were they using?

     

    I'm quite sick and tired of hearing these "studies" like they are actual science. They are nothing more than a bunch of ideologues doing "study" after "study", until they find a dataset that supports their conclusions, publishing it, and discarding the rest.

     

    100 years from now, this will be looked upon as a classic case of mass hysteria. The textbooks will show "global warming" right next to the "Salem witch trails".

  8. I think that "rule" and the evangelical worshipping of validating websites nowadays is ridiculous. This ridiculousness is shown by the number of high profile sites that exist today that do not refer to this unnecessary rule. Example, facebooks front page has over 30 Errors, yet it is a beautifully crafted site, simple and elegant.

     

    Don't get me wrong, following web standards is very important and it is in everybodies interest to produce sites like this. However, to have it as a prerequisites before a site gets judged on such forums is over kill.

     

    Please critiuqe it and please disregard validation as an assessment factor in this case.

     

    To your point about Facebook - just because something is popular doesn't mean it is correct. By and large, we are professionals here, and this is pretty much a teaching forum. You will almost always get a criticism before you get a compliment here. Its just the way it works.

     

    The rule is in place on this forum to push people on the right path - if you don't know what validation is, then you likely need to start there anyhow, and your site isn't as "done" as you thought it was.

     

    The errors on your site are not there because it would be a hack to get it to comply. They are there because you didn't escape characters reserved in XML. XHTML is a dialect of XML. If you page was being served correctly - which it isn't - then it would not display at all. You also didn't specify the type of style you are using in the

     

    The site is really cool, and I'd love to see the code behind it - but your understanding of the mechanics of markup is obviously flawed. You asked for a critique.

  9. "Any Money?"

     

    Looks like I jumped the gun a little - just paid all the bills - still in the game! I just had a woes-me moment.

     

    "Don't you get paid for modeling too? My wife did that for a while, I know its good money (if you can get work)"

     

    Not yet I don't. I let it go a couple years back to pursue other things (like web design for one). Plus, it was getting too hard to juggle with my main job (watching 12 kids - or 8 rather - plus my own 2). So now, I'm making the phone calls, getting it going again. Originally, I didn't want to make a comeback untill my balding head matched my ageing face (like around 55 yrs old or so), but, gota do what you gota do...

     

    Funny you should mention baldness - a coworker of mine looked over my should when I was browsing your sites, and is trying to get me to hook her up with you :) She has a thing for bald guys.

     

    I'm on the other side of your spectrum. I have a "real job", but I'm trying to get a web design firm off the ground, both as a fun thing (and side money), and as an insurance policy against job cuts in this economy.

  10. As some of you may know, amongst some others, I am a landlord and a childcare provider. Just a little example how this economic thing has hit everyone.

     

    For the last two years my wife and I have been maxed out here in our daycare (12 kids), with a long waiting list. Now, going on six months now, we have only 8 kids (3 of which are part-time) with zero phone calls. Before, for the last five years, the phone would ring all day - almost irratatingly so!

     

    My income property: Before, I would not even have to put a sign up in order to rent it out. Just an ad on Craigslist and I would get 40 phone calls the first day. Now - nothing! The only calls are loosers and looky-lews.

     

    So apparently, no one is buying houses, or renting, or working (therfore needing daycare). So I guess, everyone one is living in a cave somewhere, not working, and living off top-romin or something. Weird...

     

    I can always get myself out of a jam if I "had" to, so I'm really better off than most I presume. But I refuse to touch any of my nest-egg. So, this is probably the last month I can pay my bills by myself. My parents may be filling in the gap for a while if things don't turn around soon. Sucks!!!

     

    Don't you get paid for modeling too? My wife did that for a while, I know its good money (if you can get work)

×
×
  • Create New...