KevinM1
Moderators-
Posts
5,222 -
Joined
-
Last visited
-
Days Won
26
Everything posted by KevinM1
-
What did you do in order to become more proficient at SEO?
KevinM1 replied to yoursurrogategod's topic in Miscellaneous
The best thing to do is write good, semantic code and have good, relevant, non-repetitive content. Other things like sitemaps and well-crafted meta tags help, but SEO is largely about how relevant and well structured content is. If you have a well designed site with good content, the backlinks will come. If you're looking to see how frivolous all the supposed 'rules' are, use Firefox and install the SenSEO extension. According to it, this particular thread scores higher than the index of Stack Overflow. -
Your Predictions for the Future of the Advertising Industry?
KevinM1 replied to justlukeyou's topic in Miscellaneous
Not very. -
Is your id really called 'theid1'? Because that's a horrible way to do ids. Usually, for something that's not 100% critical (like financial or medical records), an auto-incremented integer is used. Also, you should never actually delete entries from a database. Instead, set a flag to mark if they've been deleted. That will save you from having any gaps. Since you know you only want the first 20 records, you could do something like: $result = mysql_query("SELECT * FROM database LIMIT 20 ORDER BY id ASC"); while($row = mysql_fetch_assoc($result)) { echo $row['title']; echo $row['copy']; echo $row['type']; } That said, you shouldn't be using the old mysql_* functions. They're soft deprecated. Instead, use either MySQLi, or, better yet, PDO.
-
Don't use WordPress. It's notoriously bad with security, especially if it's not up-to-date and if you're relying on plugins to do most of the heavy lifting.
-
How do you expect anyone to help without seeing code?
-
For security reasons, people don't generally download attached files. So, you should place snippets (NOT whole files) within tags. So, try to narrow down where you think the problem is and show us that code. And then tell your instructor that using $_REQUEST is bad and that they should be teaching their students best practices out of the gate.
-
Are you using something like Markdown to mark up your content? In any case, the only time you should use a JS formatter is if you need to see a live preview of what you're writing. Otherwise, like everyone else said, do it on the back end. Semantic markup is paramount in SEO. More important than a sitemap.
-
Well, it doesn't have to be anything new. Anything you feel that showcases your talent would be enough. Are there any old/not finished projects that you could show? Recruiting people online is difficult because there's no way for anyone to actually judge your character or ability without seeing some sort of proof. It's easier to do it in person because it's easier to just talk or show sketches on-the-fly, and dialogue and direct interaction means a lot. Having seen what you sent me in the PM, I think you do quality work. I, myself, don't have the time to dive into a new project, but I think what I saw of yours is good. Would you be willing to post your current employer's site as an example of the overall quality you provide? I followed the link in the footer of what you showed me, and seems similar enough in terms of look and feel for a general idea.
-
What is there to discuss if you don't show anything? That's where the disconnect is. And no one is denying that you have the right to try to find people (although, technically, it may fall under the freelancing section here), it's just that finding quality people is hard to do. In the vast majority of cases, one's view of their own abilities is radically skewed. People generally think they're incredibly skilled when they're not, or not skilled enough when they are. That's why things like your brain-wiki and your questionaire aren't good tools for recruitment. They're, by definition, non-objective, and if you're looking to do real work, you'll need to be able to actually judge people on what they can do, not what they think they can do. Similarly, people should be able to get an idea of your own skill level. You don't even need to reference any of your project ideas. Take something completely unrelated and get feedback. I dunno. It just seems like a completely ass-backwards way to do it if you're truly interested in getting your idea(s) off the ground. But, whatever. With no sarcasm or snark, good luck in finding people.
-
Note that I didn't say "Create something huge and useful." Look at Composer. It's a fairly small PHP package manager that's incredibly useful. Our very own trq started work on his own MVC framework, posted it to GitHub, and now has a couple other people working on it as well. I mean, your brain-wiki is nice and all, but all anyone has is your word that you're as skilled as you claim to be. I can't count how many times people have come on here, talked a good game, and then demonstrated that they had no real clue as to what they were doing. Not saying that you fall into that category, but people (in the most general sense of the word 'people') tend to be weary about a sales pitch with no product or demo. Especially on a web development forum. For web developers, vague promises and claims are almost always a lie. So, again, if you want to actually get quality people on your team, you're going to actually have to show something. It doesn't need to be finished, or fully featured, or polished, or anything of that nature. A demo, prototype, or proof-of-concept could work. Hell, even a blog going over it, with enough technical detail to convince others you know what you're talking about. Anything more substantial than your own, non-objective view of your own credentials and purposely vague "I wanna do something great" claims.
-
Part of the problem is that going to forums and saying "I want to build a Justice League of awesome, motivated nerds. Do you want to join?" is a bit pie-in-the-sky. Especially when a forum is filled with professionals who have both jobs and their own tangible projects they're working on. To entice them/us, you need to be able to provide more than a positive attitude and a grand vision. So, my advice is to make something useful first, put it on GitHub, and build your team off of the various pull requests you get. If you can get people volunteering their time and effort to fix/modify/expand your code unsolicited, chances are they'll be willing to do more. The pull requests will allow you to judge their work, giving you the ability to pick and choose who you want based on demonstrable talent.
-
That, and no one should use the mysql_* functions any longer. Use MySQLi or PDO.
-
Local vs. Global variable - Example from W3schools
KevinM1 replied to dmfgkdg's topic in PHP Coding Help
More to the point: 1. W3Schools sucks as a learning resource. It is not affiliated in any way with the W3C, and is notorious for giving out false information. If you want to learn PHP, get yourself a good book (I recommend starting with Larry Ullman's: http://www.amazon.com/PHP-MySQL-Dynamic-Web-Sites/dp/0321784073/ref=sr_1_2?s=books&ie=UTF8&qid=1359031826&sr=1-2&keywords=ullman) and look at the documentation on the official PHP website. 2. You should learn what 'global' is and how it works, but don't use it in your own code. There's a far better, cleaner, more readable way to send values to a function. 'global' is a surefire sign of doing it wrong, and if any of the resources you're currently reading/using to learn PHP feature it, that means they're a bad resource.- 5 replies
-
- local variable
- global variable
-
(and 1 more)
Tagged with:
-
Please don't bump up topics that are nearly 5 years old.
-
A name is not a site, and this forum is for site critique, not project ideas. Locked.
-
You either need a form or ajax. This comes down to the "Do you know the differences between PHP and Javascript?" question I asked you a few weeks ago.
-
Can you combine conditionals? Are any candidates to be turned into guard clauses? Can you refactor certain parts (like your user lockout/ban check) into a separate private method?
-
OO-equivalent of wrapper function in this context
KevinM1 replied to stijn0713's topic in PHP Coding Help
It really depends on whether you want different kinds of objects, or a single kind of object that can exhibit different kinds of behavior. In the first case, Christian's suggestion of the Factory Method design pattern is what you should look at. In the second case, look at the Strategy Pattern. -
PixelMedia is about 30 minutes from where I live.... Yay New England tech companies!
-
It's a metaphor for something that works properly out of the box, with minimal-to-no fiddling with things. Turnkey, I believe, comes from automobiles, where you turn the key and it just runs. Same idea. Example: WordPress (yuck) is largely turnkey. You install it, enter some basic info, and *boom*, working blog. An Xbox 360/PS3/Wii/whatever is turnkey as all you have to do is plug it into a wall outlet and a TV for it to work.
-
1. There's obviously a language barrier issue here. 2. @us2rn4m2, this isn't a contest. One person asked for help, several (including you) provided possible solutions. The question itself was not a matter of "Find the best/most efficient way to solve the problem" but rather to simply attempt to solve it. Remember: the question was given in the context of a web design course. Because the topic has seemingly run its course, I'm going to lock it. The OP can either send me a private message to re-open it, or simply make a new topic.
-
Just read the first two links I gave you. They explain how to use it. That's why I said to read them first.
-
The easiest thing would probably be to use phpass. So, first, read this: http://www.openwall.com/articles/PHP-Users-Passwords and this: http://sunnyis.me/blog/secure-passwords/ Then, download it from: http://www.openwall.com/phpass/phpass-0.3.tar.gz
-
There's no standardized way to do it because it depends on your table structure and what you want to return. So, if you want to roll your own, you'll need to employ some combination of INNER JOIN, DISTINCT, and/or UNION. In that case, show us your table structure and what info you'd like to return. The other option is to use 3rd party fulltext search, like Lucene or Sphinx (MySQL itself comes with fulltext search, but I've heard it's slow).