Search results

  1. ah-blabla

    PHP/Apache Configuration

    Would it not be sensible to disable magic quotes server side though, since it is officially deprecated?
  2. ah-blabla

    Virus through Facebook?

    BTW, cookies are simple text files, not executables, being infected by cookies is highly unlikely, (well, it's possible on a (very) badly coded browser), since they are only stored, usually in a browser specific format, and aren't executed by the browser. Cookies are more a privacy issue. For a...
  3. ah-blabla

    How much RAM do you have?

    A server system as a desktop? Anyway, Anything above 1GB is overkill unless you do developing in my opinion. Obviously windows uses much more Ram, so you probably need about 2GB for good running. (I remember looking into a new Vista install which was using 800MB after logging in, i.e. when it...
  4. ah-blabla

    Stoli cpanel problem

    I can confirm a similar problem affecting horde on starka. Squirrelmail doesn't work either in that it doesn't connect to my mailbox, and cannot send email, i.e. it tries to use [username]@[domain].x10hosting.com, instead of my domain's email address.
  5. ah-blabla

    How to run Python on X10Hosting

    X10Hosting is one of the few free hosting providers allowing Python. Here you will learn how to run python scripts on your website: 1: Make sure your python script has the following as the very first line: #!/usr/bin/env python2. Upload the file (ftp), and make sure it is set as executable...
  6. ah-blabla

    Use .htaccess to redirect everyone except you

    The other option with dynamic IP is to set up dyndns for your router (or for your pc if the router can't), and then redirect in php, e.g you add in the code: <?php if (($_SERVER['REMOTE_ADDR'])!=gethostbyname("dyndnsaddress.dyndns.org")) { header( 'Location: http://newadress.com/bla' ) ; } ?>...
  7. ah-blabla

    Global Warming, melting glaciers, extinct species -- Do u believe?

    Carbon dioxide doesn't affect Ozone. CFCs (Chloroflouocarbons) affect ozone. The way ozone helps is that it absorbs UV light, keeping (damaging) UV rays away from the earth, thus protecting humans. Carbon dioxide is a greenhouse gas, i.e. causes more infrared radiation ("heat") to stay trapped...
  8. ah-blabla

    Which Operating System do you prefer?

    I used to be an Ubuntu fan, but 9.04 let me down. Actually, letting go of KDE 3.5 was the worst thing for me. Anyway, when I updated to 9.04 I first had a whole lot of bother to get KDE 3.5 back (i.e. from an unofficial repo), and then wireless broke. I therefore reverted back to 8.04 which I'll...
  9. ah-blabla

    Which is faster?

    On the other hand, with 64 bit more memory will be used by programs, since all instructions are 64 bits instead of 32 bits long. (Data types are still the same size though.) And also, you can still use more than 2GB with quite a few 32 bit pcs: as long as your processor supports PAE you should...
  10. ah-blabla

    Python

    Sorry, got mixed up with another hosting service. However regarding python working: it seems you have to place the script in the cgi-bin directory, i.e. go the folder where everything that is served to the web is, and you should find a directory called cgi-bin, place the script in there. Next...
  11. ah-blabla

    $3.99 Domains

    You don't need hosting there for domains. You do get free domains with hosting though. I stated that they "are from £2.99 (there are limited one-year cheaper options as well...)". That £2.49 is the cheaper option for one year. Admittedly, it's only .co/org/me.uk domains at £2.99 per year (i.e...
  12. ah-blabla

    $3.99 Domains

    Even better I would say is 1and1.co.uk (I think there's an American version too). The service is actually really good, and domains are from £2.99 (there are limited one-year cheaper options as well...). That's where I get my domains from.
  13. ah-blabla

    Watch Out Its Patch Tuesday

    Ah you poor windows users... I can rest assured that I'm using fully mature software, i.e. am running a GNU/Linux distribution with proper software testing mechanisms in place, just to make sure stable distributions are just that: stable). And if it is true that may computers will get *(()&^"...
  14. ah-blabla

    Why doesnt this code work? ( PHP )

    Classic beginners mistake: = is assignment operator, == is comparison operator. In the if statement you are setting $numberOfNumbersFound1 to "1", whereas you want to check whether it is 1, for which you need to write: if ($numberOfNumbersFound1 == 1) {do something} I did the same when I...
  15. ah-blabla

    archive file in image

    Doh... I wasn't thinking clearly... But you got it to work, so aim achieved.;)
  16. ah-blabla

    archive file in image

    Replace the ObjectOutputStream used in the first file, i.e. replace: out.flush(); out.close(); outOOS = new ObjectOutputStream((OutputStream) new FileOutputStream(output, true)); if(archiveType.equals("rar")){...
  17. ah-blabla

    archive file in image

    Hmm... Are you sure the length you are using at beginning (ie. when you are making the combined file) is correct? (The same code worked fine for the test program I wrote.) Try posting the full new code, so I can see what exactly is happening.
  18. ah-blabla

    archive file in image

    Sorry for being a bit confusing earlier on, I'll try and explain a bit more simply (however this isn't such a simple thing...) The problem with ObjectOutputStream is that when you write an int to a file, it doesn't simply write the 4 bytes that the int contains, but it first of all writes a...
  19. ah-blabla

    archive file in image

    If you store the size as an integer then yes, since an integer is 4 bytes long in Java (or rather, it's 32 bits according to specification (see http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html). The only problem is if the file's length is larger than the data that an int...
  20. ah-blabla

    Laptop Battery

    I had a laptop (acer) that after two years was the same: reported life was 20 mins, it actually ran for 40 though. (I simply disabled powering off with low battery, and had to make sure I did it myself. On the other hand I have a laptop from 2003 that still runs 3 hours on battery. However...
Top