Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. A web portal is a device that sucks you into the web. A website is where you wind up after getting sucked through the portal. Don't forget your towel!
  2. I'm not all-seeing, but I would not say "a lot" of people have questions like that. I personally only see questions like that show up maybe once a week and they usually start out as regex questions. IMO this does not warrant a separate sub-forum. TBH I don't think we really need a Math sub-forum either...if memory serves correctly, that board wasn't spawned from debate, but from the whims of an old admin (/me makes a mental note to bring up removing that sub-forum).
  3. holy crap, what a brilliant idea!!! I can't believe nobody ever thought about this or suggested it before!
  4. btw you can technically use [..] as the delimiter like so: <?php $str="abcef"; $str2 = preg_replace("[[a-d]]","x", $str); echo '$str='.$str.' '.'$str2='.$str2; ?> ...but I wouldn't recommend it, since brackets have special meaning in regex (used for character class), so it makes for less readable code.
  5. This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=341905.0
  6. I'm serious though...wtf kind of site has that many individual pages? I can't even begin to imagine a site that would have that many "pages" worth of content except for a frakkin' library...but even then, why would they be individual pages and not stored in db with a template? Surely the real answer here involves cutting down how many physical pages you have...
  7. Coding with frameworks are always slow in the beginning. They really start to shine after you have something built up and then want to add more later, or when other people want to come in and figure out what's going on and add/change stuff. It is definitely an investment and a lot of people who do ad hoc / random small projects tend to skip using a framework either because of lack of time or lack of seeing the point (and it is indeed hard to argue a point to doing it for random ad hoc small projects)
  8. what...what kind of site has 17 million pages?!?
  9. .josh

    Firefox 6

    Well as a developer, the problem isn't just about having the latest browser/patch, but the addons actually working for it. And as a web developer, you aren't just working in a single browser (or browser version), so you don't get the option to pick the "always up-to-date" Chrome option and give everybody else the finger. I need to make sure stuff works in FF, even if Chrome is my browser of choice, you know? And therefore I heavily depend on a handful of Addons to work with it, as it makes my job 1000 times easier, arguably possible at all.
  10. well, we haven't made any changes to the forum software, haven't done any software upgrade since v2 RC5 a couple months ago, nor have we added any mods in a couple months soo...if this is something "new" then you changed something on your end. Different browser/OS (version)? Also, screenshots help. Also...you should be reporting this on the SMF community board...even if it is a bug, we don't make the SMF software!
  11. what errors are you getting? Do you even have error reporting turned on? One thing I immediately see is some missing quotes in your $sql = "..."; line...
  12. maybe need to rephrase or give more explanation or more context or somethin' because as-is, your regex works, in that you get "Capitalized Words" in "mygroup" Array ( [0] => text="ALL CAPITAL LETTERS - Capitalized Words" [1] => [mygroup] => Capitalized Words [2] => Capitalized Words )
  13. If I had to take a guess, you're probably doing '/\n+/' with single quotes. \n is treated as a literal backslash and n inside single quotes. Use double quotes "/\n+/"
  14. Of course it will be mercilessly abused, you really think CV made 12k+ posts??? Admins have DB-power, and they are not afraid to use it.. Hey now... I have not altered my post count at all, my count is legit...though now that I think about it, not all of the posts may actually be available, do to forum crashes/migrations over the years :/ Now...as to whether they are all high quality, helpful posts or not.... lol
  15. $tableRows = '<tr id="systemhalfTableRow_A1"><td>Hello</td></tr> <tr id="systemhalfTableRow_B12"><td>Hello</td></tr> <tr id="systemhalfTableRow_A2"><td>Hello</td></tr>'; $tableRows = preg_replace('~<tr id="systemhalfTableRow_A[1-2]">.*?</tr>~','',$tableRows); However...this isn't really perfect... if you have nested tables within this, it's not going to match right. You should really be using DOM to parse html, instead of regex.
  16. Sounds good on paper, but in reality would not work. We all have egos. We all want to know how many of our posts were "liked" and how much they were liked. And we all want the rest of the world to know how awesome we are. And I'm not saying any of this in a bad way - getting recognition for the help you give out around here isn't a bad thing. These are all the reasons why we (or anybody in general) likes karma systems. People just want to make sure that every single little point award to every single person is absolutely 100% accurate, because heaven forbid some jackass gets awarded a point you rightfully deserved, or some jackass downvotes you "unfairly". And I'm not trying to justify those "baddie" instances... just sayin', people have a tendency to focus on the negative aspects of shit (even if there is no physical negative rep). Someone can have 10k rep and fuck all if some twat took away 1 point, image shattered, end of the fucking world sort of thing. So it's either perfect system or nothing. And since a perfect system is not possible, we get nothing.
  17. Just goes to show how much you actually read my tl;dr's or pay attention to what's going on around here... Yes, we generally try to avoid hacking the software, but we don't mind using established mods that are maintained. And there are lots of karma/rep type mods out there, and hell, I'm pretty sure SMF actually has one version in its core and we just have it disabled. I'm fairly certain most of us want one...it's just that for some unknown reason, many argue that since there is no "perfect" karma/rep system that can't be abused, it's not worth having one in place at all. There is this "fear" that it will be mercilessly abused and there will be lots of noobies running around with a shitton of karma/rep, vs. lots of seasoned pros with little to no karma, causing random Joe poster to be confused about who to accept advice from. I'm not in that boat, I do want one in place, despite imperfections. And I call b.s. on those fears. Sure, there will be no shortage of instances of people unfairly handing out good and bad rep, but overall, I think it will be okay. I think people around here have trouble with the notion of looking at things from a "trend" perspective vs. "absolute" perspective. But hey, I'm just one person, and I respect the notion of "majority rules".
  18. This thread is not meant to promote using frameworks instead of using core javascript for everything. That is just silly. Frameworks are not alternative languages, they are tools built on existing languages to make certain things easier. This thread is about using a framework for AJAX specifically.
  19. What this board is for If you have some code you are wanting people to debug, or a website you are working on that you want people to 'beta test,' post the code/link here. The idea of this forum is that you have finished your code, and now you wish for people to test it for weak spots, logic problems, etc.. While you can of course expect feedback from your testers, if you need more help fixing your code, use the Help forums. This forum is for testing and testing feedback ONLY. This is NOT a "rate my script/site" forum. Please go to the critique forum for that. Try to give a good description of what your code is supposed to be doing. We can do little more than find syntax errors if we don't know what it's supposed to be doing. Your topic doesn't show? All new topics are moderated, meaning that they will not show up until a staff member approves it. Read the rules for posting in this forum and follow the directions. Some advice to be cautious Be very careful on what kind of info you post, especially when it comes to posting links to your site. Posts of this nature are often times aliases of "please try to hack my site and tell me if you do, and how, so I can fix it." We cannot and will not be held liable for any kind of damage or loss that results from you posting any of your stuff here (or anywhere else on the site, for that matter). Not everybody out there is honest. Someone out there may read your post, go to your script, find a security hole and exploit it without telling you, all the while giving you the thumbs up. Rules Regarding "Exploit Scanners" Use of exploit scanners can be an effective way to discover exploits on a website, so we have no intention of banning posting scanner results. But these scanners can also return bogus results. Secondly: Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. As of now, posting scanner results is only allowed under the following conditions: 1) You must share the name and how to get the scanner 2) You absolutely MUST explain every item in the result (why is this a risk, not just because the scanner says so) As with all forum rules, ignoring these could lead to moderation action. Ignorance of these rules is not a defense. Thank you for your cooperation.
  20. ...and you are NOT using a framework like jQuery or Prototype, think long and hard to come up with a very good reason why you are not! In all my years of coding, the only valid reason I have ever seen for not using one of these tools, is because someone is trying to learn it the old fashioned way (but not necessarily actually build websites with it). Or...someone is trying to build their own framework. That's it! IMO there has been no other reason worthy enough to warrant not using jQuery or the like! "It will bloat my website, increase page load time, blahblah" is not a good enough reason! These frameworks are compacted and browsers will cache them! So if you post an AJAX question here and your code and/or question does not involve the use of an existing framework like jQuery, then be prepared for you first response to be something along the lines of "Why aren't you using a framework?" Seriously. It is super easy. Way easier than that code you're trying to post. Save yourself the headache. Get jQuery or similar. DO IT.
  21. Also, since we probably won't be jumping in individually welcoming every single person comes by, here's your generic welcome message: Greetings, ___________ ! Thank you for joining the board! Feel free to ask any question, but please don't be stupid about it. Make an effort to pick the right forum, make an effort to be detailed about your question, make an effort to read relevant stickies/rules, and we'll make an effort to help you. .CV
  22. http://www.phpfreaks.com/tutorial/php-basic-database-handling
  23. "level system" is pretty ambiguous... care to be more specific?
  24. http://www.phpfreaks.com/tutorial/php-add-text-to-image
  25. GENERAL RULES AND GUIDELINES FOR POSTING This forum is not meant to be a formal freelance service system. It is available for those who wish to seek out services or work from other people, as a courtesy to the members of the phpfreaks community. phpfreaks.com does not specialize in freelance services. This forum is an informal mechanism, as a courtesy to the community. We have no formal mechanism in place (like escrow) to guarantee payment, refund, work done, etc... phpfreaks.com shall not be held responsible for any losses you incur. we have never and continue to not act as any kind of mediator or verification/compensation source for people/organizations who use those forums. We will not be held responsible/liable for any damages, loss, etc. that occur from use of those forums. If you hire someone and they rip you off, don't come crying to us. If someone hires you and they rip you off, don't come crying to us. Those forums are a convenience. If you want something more official that offers guarantees, go to a real freelance site! If you have any questions regarding the freelance forum, feel free to ask them here. RULES: WHERE TO POST:If you want to offer your services, post in the Service Offerings sub-forum.If you want to offer a job or position of employment, post in the Job Offerings sub-forum. DO NOT post your 'resume' in job posting threads. You must directly contact the person you wish to reply to. The only reason replies are allowed is to ask for clarification/details about the job. Failure to adhere to this rule will result in all kinds of things, like you getting banned, or us disallowing replies. DO NOT make more than one thread offering your services. You can edit/reply to your thread to reflect additions/changes. DO NOT post advertisements to other sites offering freelance system services. For example, rentacoder.com, odesk.com, etc.. we have no partiality for or against those sites, but posts such as those are regarded as advertisement, which is against our main site rules. We fully acknowledge that this freelance system is limited, but we aren't here to provide free advertising for other places. If you prefer to do actual business through one of those sites, please specify in direct contacts with the person. You are allowed, as a freelancer or freelance company, to post a link to your personal portfolio/company to those sites, or a site that you own. But general promotions to those other sites are not allowed. GUIDELINES: When posting in the freelancing forum it's important that you provide a way for users to contact you. They will not be able to reply to your topics so they need a way to contact you privately. This can be using PMs, emails, any type of instant messaging service (MSN, Gtalk, AIM, Jabber, etc.) or however you see fit.The more specific you are about your skills, previous experience(s), availability, rates, etc.. the better your chances of getting serious inquiries. Posting vague "I'm available for anything and everything" might get more inquiries on average, but there's a good chance that it will come to nothing, based on any number of things that you could have posted here in the first place. Better to receive 10 emails from people who have some idea of your qualifications/terms, than 100 emails that don't.Be honest about your skills. All day long we see people posting about how they jumped on a job and bit off more than they could chew. They tell the client they can do everything they need and more, promise them the moon, and then promptly crap their pants about 5 minutes into it. Don't be that person! Some people get lucky and figure it out. Some people get lucky and get help that figures it out. Most people end up having to give up the project. Which leads us to....Wasting people's time and money. You waste the client's time. You waste your own time. That bad rep will more than likely come back to haunt you. All day long we get people trying to get us to delete their posts because they don't want their skeletons to come out of the closet (no we won't hide them for you). So be smart! Do the simplest easiest thing to avoid all this headache: be truthful about your skills. If you feel that being truthful will limit your potential clients, then get off your bum and hit the books. You can't seriously be in the business of trying to con people, are you?Be very clear about what you are doing. Some clients know your job, and are just looking for extra set of hands. Most do not, and therefore seek someone who does. Therefore, if you want to avoid headaches, it is your responsibility to be very clear about what it is you're going to do. What you're willing to do. What kind of support you offer after the fact, etc... on that note..Be up front and thorough about your prices. Take a look at the situation. Quote a price for it. Quote prices for things that might come up later. The more you have to go back later saying that xyz was unforseen or xyz wasn't part of the deal, regardless of whether or not you are in the right, the more you are going to come off as shady, to the client. It's like when you take your car to a mechanic and that funny noise goes from being one little $50 thing to a $2000 rebuild because the mechanic kept coming back to you saying something else is wrong. That stuff may indeed be needed, but the fact that you didn't think about it and let them know ahead of time speaks volumes about your skills as a coder. Some things just aren't foreseeable. Most things are.
×
×
  • 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.