Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. Well that's why I linked to the manual for ini_get. Just add this line to the start of your script. If an error then shows up instead of a blank script, you know errors aren't being displayed and the error should explain what's wrong. ini_set('display_errors', 1);
  2. What does ini_get('display_errors') return?
  3. Adam

    Ellipsis

    You can use text-overflow, but it's relatively new so support isn't great. I'm not too keen on how it looks though, you'd get a better effect using a background image on a fixed width and/or height DIV.
  4. Here's my work set-up..
  5. Ha well I didn't really mean the big executive type managers, just line managers and stuff.
  6. Given plenty of information about your service and pricing is available on the homepage, I wouldn't worry too much about bounce rate from there. Do you track conversions? That's what you should be focussing on.
  7. If you want the kind of offline support that software offers, you should really be looking at writing a native Android/iOS app. You need to be able to read and write records to a database. HTML5 has introduced "localStorage" in modern browsers, but it's not exactly sophisticated; you just store a clob of JSON-encoded data and then decode it on the next request. It's not sufficient for something like this. Plus you need the website to be available offline, which would probably require some kind of manual interaction from the user to do it. In terms of syncing the data created offline, just have a table within the database for logging transactions. Could even be a log file. When a connection is next available, check with the server the last datetime it knowns about and push all the changes since then, using the log table/file to locate all the data needed.
  8. Very true, but if the OP is/was working on an existing system he might not have that choice.
  9. It's jQuery. Can you please repost the code indented CoolAsCarlito?
  10. Sorry, wasn't thinking when I wrote that. What you should have seen is clicking any of the links alerted the last ID in the array. Here's a fiddle that demonstrates it.
  11. Javascript automatically imports all variables from it's parent scope(s), Christian. jazzman1's solution should work fine for you. An anonymous function bound to an event is always executed in the context of the DOM object. So this refers to the link. It is possible to do it in the way you were trying though. The problem was that, for the same reason you have access to the links array, the anonymous functions always has access to i. So as you loop through, i is being incremented and each function is reading the same variable. What you should have seen is the last ID in the array of links being alerted 20 or so times over. The solution to that is to use an 'anonymous, immediately invoked function', that will form a closure around the current value of i: for (i=0; i<links.length; i++) { links[i].onclick = (function(i) { return function() { alert(i); } })(i); }
  12. I'll be sure to write as much up of it as I can
  13. Well I work in the city centre so it's like, a minute walk to a load of restaurants? Whenever we have those kind of meals they quite often last over an hour, perhaps going up for two, or even more. All the managers come along, nobody's clock watching. There's a nice relaxed atmosphere about my work place. So long as we produce the goods there's no problem. Personally I think that's a great way to be with your staff, because they'll have a genuine love for the company and want it to be successful. Same goes with work hours. I'm on very laid flexi-time. I can arrive at any time I want (providing it doesn't mean that I miss any meetings or anything like that), and can leave when I want. Obviously there's core hours you have to be there, but outside of those it's just left to our own morals to ensure you do the hours you're paid to do. Nobody keeps tabs, but it would be pretty obvious from the amount you're getting done if you're slacking off all the time. Point being, such a relaxed atmosphere really brings out the best in your work.
  14. Ha we're only talking about a pint or two over a meal here. Doesn't have much effect, it's just nice having a refreshing, crisp, cold print of lager to wash down a nice meal We have work nights out when people leave, big project releases, special occasions and such. They're not that often but it's interesting to see work mates outside of work, people tend to let the hair down a bit. Also, legally it's perfectly fine to have a pint and drive. After 3 or 4 hours on top of that there's no worries.
  15. Dinner over here (at least up t'North) is your lunch time, so usually an hour between 12pm and 2pm. Ha why don't you like your co-workers? I've met some good mates at work. An I just enjoy drinking a pint with my meal, as do a lot of the people I work with. The UK is one of the booziest nations in the world though, so perhaps it's just the norm' over here.
  16. I don't work from home. There's no where to stand up at work either, unless I bent down quite far, which I bet would give me backache.
  17. Oh yeah I just read the first result. Forgot I had clicked a link, perhaps there is more factual evidence..
  18. That kind of undermines the whole article. Until there's factual evidence I'm not going to believe it .. Besides I'm a while off 45 yet. I'd like to try it for a day though. Does it take time to adjust? Everything kills you these days. "Health and safety" drives me nuts.
  19. Ha.. well like once a month or so (generally around pay day) my scrum all go out for a big dinner and have a pint or two. Then when we get back everyone's bloated and tired. I couldn't think of anything worse than standing up for the rest of the day. I don't know why you'd get backache actually, perhaps tired legs? Maybe it's been too long since I've had a job I had to stand up for.
  20. Don't you get back ache or anything? What about after a large pub dinner or something and you're in that lazy afternoon mood?
  21. What so you just stand up all day? :/
  22. My home office.. Ha yeah I don't really have an office right now. Only live in an apartment, there's not really room! Moving at the end of next month though .. I'll get a snap of my work set-up tomorrow.
  23. Nice place. What guitar is that? Kind of looks like a Les Paul with a round back?
  24. Have you enabled and checked the rewrite log? It's very useful to figure out what's going wrong.
  25. Millions of rows really isn't that much for a well-indexed table. MySQL can handle this no problem. The OP doesn't need to worry about scaling write operations right now; that situation is so far out of sight it's insane to be suggesting it at this stage. Who said it's short-lived data? And why are you suggesting caching servers WITHOUT a database? That's madness. What if the caching server crashed? There's a reason data is stored on a hard-drive and backed up regularly. Caching servers are meant to act as a middle man to prevent repeat queries for the same data, not be the source of data. It fits with "Web2.0"? I hate that term, not that it has absolutely anything to do with hardware or data access, or animations, or Javascript, or AJAX, or CSS!
×
×
  • 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.