Jump to content

deadonarrival

Members
  • Posts

    284
  • Joined

  • Last visited

    Never

Posts posted by deadonarrival

  1. It'll be about the same as any other laptop :) give or take an inch and a half usually. If you really care get one of those stupid commodore-64s... wait, I meant macbook air - I got the feature sets confused.

  2. I can see where you're coming from, but let me assure you (from someone who's family were all readig before they started school aswell, I'd say we're talking comparable kids here) that you won't damage his future by giving him toys, not technology.

     

    He's not old enough to understand the complexities of the computers, and while I'd hate to scare him off it - don't stop him using it necessarily - he'll never know or care if you don't offer it to him.

     

    I know he's quite advanced, but give him the mouse and paint and let him draw... or just a box of paint.

     

    We as adults like to do everything on our computers, but it'll do him more good in the long run to let him play with toys (albeit choose stimulating toys)... there's plenty of time to be stuck in front of a computer late in life.

     

    Sorry, realised I sound like I'm trying to teach you parenting here... please just take it as someone's 2 cents on it. :)

  3. I'd say not a CD drive... it's not an ultraportable, and has an optical drive built in.

     

    It's on the side, so it's still possible it's an expansion port... it's not on the front at any rate. Oh well. I doubt I'll ever need it. Was just hoping it might be something to do with graphics (I was hoping to find a graphics-in for a tv-tuner or similar).

     

    Thanks  for the help :)

  4. Definately not a parallel port, I would've recognised that... and they're hardly common on 2008 laptops :)

     

    I was thinking along the lines of monitor/sound out, although I do have a VGA port, and the standard mic/line im/speaker ports.

     

    I was wondering if it's a hi-def output (or even better, input) but I'd say it's more likely a standard def input for using my laptop for TV... but I can't find info on the port anywhere

  5. port.jpg

    I've no idea what it is. Some sort of monitor out?

     

    (Note, I mean the port on the left... I know what an ethernet port is, I just left that on for scale :D)

     

    Edit: I'll also accept answers as to what it is when it's not at home. In fact, its location isn't important. What plugs into it?

  6. i have read this news also.. and some react like they are afraid that MYSQL will be no longer  free

    any thoughts about this?

     

    Sun has consistently shown itself to be a contributor to the open source community - more then one sun developer is currently working on linux projects.

     

    Plus they know that if they made mysql a paid for service/application, their user base would drop significantly. It's so big mainly because it's free. If it wasn't, many of us would (through choice or economics) move on to something else.

  7. VB is quite similar in syntax to PHP - you shouldn't have much of a problem.

     

    Just remember to end lines with ; and use braces {}

     

    Oh, and you don't need to declare variable types.

     

    There are a few other differences, but that's about it with the code... other then that you use HTML for output instead of populating field forms etc.

  8. It's not a subject too often covered in PHP. I agree that AJAX would make it more interactive... but it could be done with just simple links.

     

    You basically want a node system, where each item has a parent node. You click the parent, and it finds all the children of that node. In that respect you can have a limitless number of levels.

     

    You also need to set the starting question somewhere.

  9. I'll concede that shlumph - but if I was going to learn something new I'd choose something more related to the language.

     

    Eg I wouldn't try to learn C by making a web forum system, nor would I try to make a text editor using PHP

  10. You may aswell just use microsoft access or something similar.

     

    Make a database of income and outgoing tables. Then just do some quick maths, add up what's gone in and out, and display whatever you need.

     

    No point making a bespoke package in C[whatever] when it can be achieved faster in something else :)

  11. I think what you need to do is setup two mysql tables with this structure

    table: image_keyword

    image_name varchar(255) [indexed] [primary key]

    keyword_id int(10) [indexed] [primary key]

     

    table: keyword

    id int(10) [primary key]

    word varchar(50) [unique] [indexed]

     

    If you upload any info about the image into a database, replace image_name with image_id where image_id is the id in the images table.

     

    Then you can just add new keywords, or create a link in the linking table between the image and keyword.

     

    Because the fields you might search by are indexed, you can very quickly search for all images with a set keyword, or all keywords for a set image :)

  12. Existing CMS's are a great way to get most basic websites up and running - they organise the pages, articles, documents, backups, images... almost everything. They simplify almost everything and usually have an intuitive admin system to get at all the functionality.

     

    The question is whether you use a pre-existing or bespoke package

    Pre-existing = taking something like Joomla and using it for your needs: your own design and content, but their way of working with the content, their admin functionality and their database structure (although you can often add some modules of your own)

    Pros

    -Quick

    -Easy

    -Cheap/Free

    -Usually quite complete (after being in development for years)

    Cons

    - Less flexible

    - Have to learn to use something new

    - Rely on someone else to keep it secure

    - Rely on somoene else making it secure in the first place...

    - Often bloated - they do far more than you need, but use more storage and processing to do it all.

     

    Bespoke = making something totally new: you usually end up re-inventing the wheel to create your own system which does something similar to the existing systems, but you have total control over what goes on : there are no limits to what you can do other than what PHP can do for you.

    Pros

    - Totally customised: it does what you want, how you want

    - Can be much sleeker and faster due to bein specialised

    - ...equally can be as powerful as you need

    - No limitations of what someone else has thought of/coded previously

    Cons

    - Expensive - you have to hire someone to make one, or put in some serious man-hours yourself.

    - Slow - the system has to be developed pretty much from scratch

    - Sometimes insecure... you don't have the years of debugging some of the larger packages have

    - Relies on the competance of the coder, and the time they can put in

     

    This is hardly a complete list of pros and cons, but hopefully it helps.

     

    Get a cheap php/mysql web host for a couple of months - one with fantastico installed by default - and try out some of the packages against each other. See which one fits your needs best and, if none seem to, think about writing your own (or having someone else do it)

     

    NB: As an aside to your situation in general, I don't think any CMS is going to be able to interact with your data - an estate agent is very specialised and may not be much good for what you need. Your best bet is probably to write, or have written, your own modules for one of the existing systems. WordPress, in particular, seems to be quite popular for people needing custom plugins/modules - a lot of developers for it.

  13. Yes, you'll have to hit the db every time. Usually more than once. It's not that big of a load really. I'd suggest adding to the permissions table... you're querying it anyway to get the navigation so you're not adding much overhead.

  14. Flexibility is never really a bad thing, and being able to set user permissions can be good at times... but what if you have several thousand users? Changing one permission for every account is a lot of sql queries - and if you need to do certain accounts only is VERY time consuming.

     

    That's the entire idea around user groups - you give everyone a group, and decide what the group can and can't do.

     

    It can be quite flexible. I only mentioned admin/mod/user permissions, but you could go into changing user group based on number of posts, or add donators. I use it as a "ban" technique. Instead of kicking users off my site (and more often than not losing the user) I give short bans, where the user is given limited permissions for a few days. A lot more effective.

     

    Like I said, if you will only have a few accounts with different permissions, it's not too much hassle, but usergroups can be as flexible, without the overhead.

     

    example.

    You have 10 users, 3 have one permission set, 5 have another and 2 have very unique permission sets.

    There are 10 permissions - or things the users can and can't do.

     

    In this scenario (even with very few users) then with 4 user groups (one for the 3, one for the 5 and one each for the other two) you only need 40 fields in your database. If you need to change one person to have unique permissions, you can make another group with 10 fields (and 1 to change their group), but if you need to change the 5 people's permissions, it needs only change one set (10 changes).

     

    Say you had the same 10 users, but each user had their own permissions set, to change one you would change 10 fields instead of 11 (only this time you're changing them instead of adding). A tiny bit easier...

     

    BUT if you wanted to change the permissions of the 5, you'd have to manually input their names, meaning you'd have to enter 5 names AND THEN update 10 permissions each... 50 changes

     

    Even with only 10 users it makes sense (even if my explaination may not). Now what if you had 1million users? Do you really want to have to go all the way through the table to change 2 fields for 500,000 people (1million changes), or would you rather change it in one user group (two changes).

     

    The same overhead to give one person their own permissions (plus one field change) for a saving of thousands.

  15. My process (when I'm feeling very paranoid, eg on eCommerce sites - less effort is put in when it's an RPG for example), with the idea of making it a bit random (ie the process isnt likely to be guessed by someone who only has a list of hashes) without compromising too much a) processing power - don't want the script to take an hour to parse and b) database storage

     

    Choosing numbers 0-10000 and adding them to the front of a dictionary attack is 5,000 times more effective (based on average time until the correct number is hit) security then with no hash.

     

    So I generate a 6 digit number (100,000 to 999,999) this is stored in a char(6) field in mysql - saves a lot of space over storing the 32 bit hash

    This is split in half, and put together again in reverse order (ie 123,456 becomes 456,123)

    It's then md5'd (much less space than sha512, my main encryption and faster)

     

    Again this is split in half, and the front half put in front of the password, the back half behind it.

    Finally I hash this concatenated string, and job done.

     

    Yes, slower than sha512 - but like I said, it's used only on sites I'm feeling ultra secure on, and since it's only used on registration and once per log on, so although it's slightly more processing overhead, I'm willing to make the sacrifice, and in terms of storage it's only 6 chars on top of the 128 of the final hash.

     

    To Naez - if someone got into my database, I would be very worried - and hopefully they can't ever get there... but for me, the customers privacy is a major concern if the database does happen to be breached. Any sensitive data I encrypt in some manner. Customer trust is a major factor - if it was revealed that Amazon had been hacked and hadn't bothered encrypting the passwords, they'd lose a LOT of customers. Trust is a lot in eCommerce... the more encryption the better :)

  16. You don't ever set $total2 back to zero, so every time you run the line

    <?php $total2 = $total2 + $total ?>

    It doesn't distinguish between orders, and adds it on.

     

    Replace this line

    <td>£<?php echo $total2 ?></td>

    With

    <td>£<?php echo $total2; $total2 = 0; ?></td>

     

    Or alternatively replace

    while($row=mysql_fetch_array($result))
    {?>

     

    with

    while($row=mysql_fetch_array($result))
    {
             $total2 = 0;
            ?>

     

    Actually, the second is more conventional - go with that :)

×
×
  • 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.