Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. To be fair: Shudder? I got kind of excited..
  2. Haha
  3. Yeah? Only four years..
  4. Congratulations! xxxx
  5. If you run "php -m" from a terminal, do you see memcache in there?
  6. If you're using a database, then passing the ID of the page through the URL is perfectly fine -- assuming you sanitise the ID and validate the 'visibility' you mentioned, before displaying the page. CMSs like Wordpress allow you to define a unique slug for each page and blog post, which means you don't have to expose the ID and makes the URLs a little cleaner and more descriptive. For example an "About Us" page, you can define the slug as "about-us", and requests to "/about-us" would be rewritten to "/page.php?slug=aboout-us" (or something along those lines) using the Apache rewrite module. The draw back here though is you need to store an additional piece of data for each page. Alternatively, like on these forums, you can combine the ID with the title of the page (lower-cased and with certain characters removed) in a set structure, so that you can parse out the ID and retain the descriptive URLs without having to store a separate slug. Again, you would rewrite the URL internally using the Apache rewrite module. If you're not bothered about having descriptive URLs, but also don't want query strings in them all, you could simply rewrite the request from something like "/page/123" to "/page.php?id=123". As for the editor, there's already some free and open-source WYSIWYG editors out there you can use. Most allow you to import your own styles so that what the user sees as they're editing is largely in-line with what the finished product will look like. Recently I've been liking the looks of in-line editors though, that take advantage of the "contenteditable" HTML attribute and allow the user to literally edit small blocks of the page at a time while viewing the site. Problem here maybe that managing blocks of a page as opposed to it whole, might be a bit too complicated for you if you're new to PHP.
  7. I decided just to get Black Ops 2 by the way. Is anyone here on ps3?
  8. Your .bashrc file is found in your home dir, as it's for your user only. I would drop the hate towards Linux and try and embrace it a little, if you're going to get anywhere with it. Even vim is a nice editor if you put in the effort to learn it and customise it.
  9. You need to add the export command to your bashrc file, to ensure it's exported on every start-up. You may already be exporting an EDITOR var in there you would need to replace.
  10. What is a "line bet"? I can't seem to work out what that line points to / what the point of it is? As you've already been told though, we're not just going to go read the API documentation and figure out how to do it for you. Post the code you have and explain what it does, and post links to the pages in the API documentation relevant to that code.
  11. I really doubt that completely overhauling the current processes and requiring everyone to learn a new web interface, plus developing it, would be the simpler task. As mentioned already, I would concentrate on integrating something like Sharepoint properly. At least use existing software, as I think you'll be surprised how much effort will be needed for this; making it feature adequate, secure, stable, fast, etc.
  12. "undefined" sounds like a Javascript error. I'm guessing you have some JS logic bound the form submit event that isn't working correctly and passing "undefined" in the request, instead of the input value you're expecting.
  13. The question marks in the SQL are known as parameters and used within prepared statements, where the execution plan for the SQL is cached on the server and can be re-used with different values bound to the parameter place-holders. A lot of frameworks, like Zend for example, will automatically run all SQL queries as though they are prepared statements.
  14. 1) I would advise to use a framework like Symfony2, over CakePHP. Frameworks will always add a considerable overhead, but will also make future changes much easier to manage, and provide a set of common libraries so devs aren't wasting their time. The benchmarks I've seen for Symfony2 are also pretty impressive. 2) As for how you can be confident about performance, any devs worth their salt should really be taking performance into consideration from the ground up, but you can have them benchmark everything to be sure. When finding your devs (assuming you haven't already), you'll want to ensure you find those with a history of similar experience. However when you reach the 5k current users level, you'll most likely scale horizontally to support that level of activity, so you'll want to ensure your platforms ops are up to scratch too. 3) It can be. Depends where the bottle necks in your system are. Again, benchmarking and monitoring your infrastructure activity should highlight where you need to concentrate your efforts.
  15. You should be using pushState() when loading new pages.
  16. What browser(s) do you see the adverts?
  17. Psycho mate, I have to disagree here. I think White_Lily was just saying he wanted to create something like this, and if it came to anything, way hey his boss will use -- White_Lily I would not agree to that, I would bill him for all the hours you spent putting it together. This is a solved problem though. There's plenty of solutions out there to generate relatively high-quality images based on the webkit engine or other libraries, in a variety of languages.
  18. https://github.com/raphaelcruzeiro/webimage
  19. Sorry, BA is Business Analyst and SA is Solutions Architect. Between the two, and perhaps more, they should provide all the business, functional and technical requirements of the product. Obviously not every company has those roles, or even a need for them, but what you've been asked to do sounds a lot like someone else's job. What information, requirements, etc. were you given? Oh an yeah. The company I work for has 4 scrums. In each scrum there's a product owner, BA, SA, scrum master, designer, devOps engineer, test engineer, and then about five developers. Means everyone can concentrate on what they get paid for.
  20. Hmm well at a guess, I would say given canvas and execCommand are two completely different things, you'll not be able to have the changes "automatically" reflected. You will need to write a common interface you can use to fire commands, that will in the background translate each command into instructions to the canvas and execCommand() calls.
  21. Sounds to me like the kind of document the BA and SA should be putting together. I would ask why, as the developer, you are being asked to specify what the business requirements of a product you're about to implement are. You should be given a specification.
  22. You can encode a space within a filename as %20 when requesting via HTTP. Pretty ugly though.. "ridiculous name.html" --> GET /ridiculous%20name.html
  23. The first thing I noticed was the logo. I think you should scrap that and try again, to be honest. Big harsh bevels on a fairly minimal looking site don't mix well. Big harsh bevels rarely work well anywhere. Also ditch the blue to white gradient in the background, looks more like the sky than ice. The extra bits in the header (flags, conversion drop-down, search) all look really random. There doesn't seem to be much consistency in that area. Moving down the page, things look better. You have content boxes separating different content nicely and consistently, but the content within those is pretty plain. I think you need to up the contrast a little between the background and foreground text colour, because trying to read the text makes me want to strain. Not good for a new/sports website! Also I didn't realise those DIVs were clickable until I accidentally clicked one. Looking at the footer, I think you could loose half of that information. People don't care how the website was made, if it's compliant or if it supports every browser, so long as it supports the one they're using right at that moment. I think you need to spend a bit more time thinking what content your users will want to see, and how you can lay that all out in a page without big gaps or hundreds of content boxes. So overall, not a bad effort, but I think there's a lot of room for improvement.
  24. Hmm hang about. Something went a bit crazy then and your last three posts only just showed up. What I meant in my previous post was directed at you saying you wanted to upload from one domain to the other. In response to the document root stuff, I don't really understand what you're trying to fix?
×
×
  • 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.