Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Licensing issues would probably be a problem.
  2. Backup your stuff, wipe the HD and reinstall the OS. A compromised system cannot be trusted.
  3. +1 for recaptcha from me.
  4. Alright then try with a negative lookahead: $text = preg_replace('#</?(?!h[1-3]|b|strong|a)[^>]*>#', '', $html);
  5. Your examples are only similar because you choose an ID selector. Had you chosen a more complex selector then you could immediately have seen a major difference between vanilla and jQuery powered Javascript. Then you have all the cross-browser issues that JS frameworks such as jQuery frameworks. Simple examples like the above simply doesn't illustrate anything.
  6. I don't think elance, getafreelancer, odesk, rentacoder, etc. are good sites for finding freelance jobs. Their primary function is, as I see it, outsourcing work to Asian countries. For the most part, western developers will have a hard time competing with the prices on those sites. You're probably better off by improving your skills, building a portfolio and establishing connections. Word-by-mouth advertising is by far the best; if you did a good job for someone then they'll likely recommend you to whomever they know. You'd probably want to aim for small businesses. They'll know, unlike some private individuals, that getting something done takes money. The projects won't be too big either so you'll be able to build experience and respect and gradually move onto bigger targets if that's what you wish.
  7. Strictly speaking there is no IT work that cannot be outsourced apart from jobs where you have to physically do something at a particular location. As for development, it can always be outsourced. I don't think it's too much of an issue though. If you're good enough then you can find a job. There are also people who prefer programmers who are native in their own language and who will be able to show up at their office (or vice versa).
  8. I think it's an awesome framework. I don't think frameworks make you look like a worse developer. There is no point in rewriting what other people already wrote.
  9. You can do this: $text = preg_replace('#</?(h[1-3]|b|strong|a)[^>]*>#', '', $html); That'll work with invalid HTML as well.
  10. I thought waiting staff in the US was paid below minimum wage because it's expected that people tip them. I don't know if there are other job types where something like that is done and I don't know about Canada at all.
  11. Only if the book is strictly theoretically oriented. I hate seeing new people whose code is outdated before it's even finished. The GOF book is still good even though it's 14 years old for instance, but that's hardly true for all books.
  12. I don't mean to sound condescending or anything, but how did you work it out in hand then?
  13. But he could also use the PCRE functions, which he, according to the manual, should. That is assuming he is using 4.2+, but seeing as support for the 4.x branch is discontinued and the latest PHP4 version is 4.4.9 it would be logical to assume that's not the case. That's a stupid example and what is it even supposed to be showing?
  14. Yes you can, and should. You are escaping to prevent SQL injection. Whether you are updating or inserting is irrelevant. mysql_query("INSERT INTO foo (bar) VALUES('" . mysql_real_escape_string($unescapedBar) . "')"); If you actually see O\\\'Sullivan John Mr in the database then your script is broken.
  15. Could you rephrase that, please? It's not legible.
  16. Yes. No.
  17. You need to escape it just before inserting it and no other time, i.e. not when echoing it. Of course you might want to convert HTML entities if you are outputting HTML though...
  18. Yeah I hate when software vendors do not take foreign keymaps into considerations. A lot of programs have shortcuts that are like Ctrl+[, but on Danish keyboards the [ is made using AltGr+8, so Ctrl+[ would be Ctrl+AltGr+8, but AltGr=Ctrl+Alt, so Ctrl+[=Ctrl+Ctrl+Alt+8=impossible.
  19. Btw it's called caret, not carrot. Just figured it'd be nice to know
  20. It depends on the amount of traffic you get. There is no generic price.
  21. When GingerRobot said "Cant you just use one of the readily available programs to mount the iso as a virtual CD drive?" he meant "Just use one of the readily available programs to mount the iso as a virtual CD drive". It was a rhetorical question.
  22. I thought all IE releases were alpha releases...
  23. That gives portability problems seeing as short_tags is turned off by default in PHP5+. If you were to do that then you might as well take it the full way and do <?= $name ?> though.
  24. I do it if I have something like this: Hi, <?php echo $name ?> If I have a block containing multiple statements then I'll always include the semi-colon though.
  25. Couldn't you just record the screen?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.