Jump to content

pouncer

Members
  • Posts

    324
  • Joined

  • Last visited

    Never

Posts posted by pouncer

  1. hi guys, im designing my pages in jsp pages using dreamweaver

     

    my question is how would i make 1 class for connecting to the database, then call this class in all my jsp pages?

     

    would i code the class in a servlet? if so can anyone pls give me any info or tutorials for very simple servlet/jsp based sql stuff

  2. Hi guys, i have this function im using but i think its terrible coding..

     

    function EmotReplace(text) {
    var newText;
    
    newText = text.replace(/:\)/g, '<img src="emoticons/smile.gif">');
    newText = newText.replace(/:-\)/g, '<img src="emoticons/smile.gif">');
    newText = newText.replace(/<\)/gi, '<img src="emoticons/partyblow.bmp">');
    newText = newText.replace(/:O/gi, '<img src="emoticons/surprised.gif">');
    newText = newText.replace(/:-O/gi, '<img src="emoticons/surprised.gif">');
    newText = newText.replace(/;\)/g, '<img src="emoticons/wink.gif">');
    etc etc.. 100's of lines of replacement
    

     

    for e.g, :) would get converted into a smiley emoticon

     

    but im doing a replace line for each emoticon i have, which i think is bad coding practise. can someone help me do it a better way, possibly initialising an array with all the emots and text triggers for each emot ??

     

  3. say in my table (for hotel bookings) i have this:

     

    start data end_date (fields)

    10-nov-07 15-nov-07

    19-nov-07 25-nov-07

     

    how do i return the days where no bookings are taking place? i.e:

     

    16,17,18 and after 25th november

     

    i just want to somehow get the available days

     

  4. If you look back to years ago, there were textual programming languages.

     

    Nowadays, more and more languages based on visual alphabets are being defined to provide the user with a more intuitive and application specific interaction with the programming and application environment.

     

    Do you guys agree? What sort of applications do we really need visual languages for?

  5. im typing this message on firefox at the moment.

     

    my internet explorer 7 freezer when i try to load any sites, might have been some updates i installed,not sure.

     

    also, since then, i cant seem to dowload/install any windows updates, just doesnt work

     

    hope someone can help

  6. Last night at about 10pm I was asked to upgrade my security kit . That's sth my ISP offers that has an anti-virus, firewall, antispywre protection, smam protection etc. It's actually an F-Secure thing..my ISP gives it to its customers. Anyways..till last night the thing worked great. After the upgrade I was asked to reboot..I did. Since then I disconnect every hour! That's no joke..i honestly moof on an hourly basis.

     

    my messenger goes offline too. Earlier today I waited for itas I know when it's gonna happen ( cause it happens every hour). I had a page open..I refreshed it. It refreshed ok. Also..when I lose my connection and it reconnects I get that lil pop up that says I'm connected and shows my speed etc. When the disconnection happens I don't see that pop up

     

    Any ideas? Any suggestions? I'm running a full scan as I type this..but my friends (who's somewhat techy) thinks it's not a virus.

  7. my host is unable to do anything about the attack.. so at the moment, nothing i can do.

     

     

    i went to hostgator and they said they have cisco guards which can detect malicious packets and block them, sounds appealing.. anyone on hostgator?

  8. If i told him what Id done, i have a feeling he would just do it again! he's one off them 'script kids' who just happens to have access to someone elses botnet and is trigger happy with the power

     

    i'm surprised that no-one knows about any protection methods, surely there must be some sort of server side protection i can get for my domain?

  9. yep he does have an MSN email and i reported the attack to his ISP which happens to be the same ISP as mine. i was able to get his IP from my site as he was a registered member, thus getting his isp details.

     

    I've had no reply since though. He attacked me again yesterday, site was offline for about 30 mins, my host couldnt do nothing again.

     

    Isn't there any precautions i can take? anyone use any ddos protection stuff?

  10. A copue off weeks ago, my site was attacked by some sort off ddos/flood. The attacker had threatened me beforehand (it was a convo we were having on MSN) and when I retaliated he really did attack the site with his botnet, the site went down for 5 days.

     

    My host couldnt do anything about this attack, which was coming from 1000+ zombie botnet pc's. They told me i'd have to wait until the attacker stopped and deleted my account for 5 days so the ddos wouldnt affect their server

     

    Since then, i've been wondering if there are actions i can take to stop this kind of thing? I've come across this - http://ddosprotection.com - they told me they use some sort of filtering system and that i'd have to change my domain nameserver to the ddosprotection one.

     

    Has anyone ever come across a problem like this? Is there anything you've done? I've read many stories and news on how botnets have taken down sites/systems but never for once think it could happen to my own site

  11. Thanks but theres something i don't understand

     

    en-gb

     

    that means, english-great britain?

     

    so we specfiy like this?

     

    language-country

     

    so is it possible to have

     

    fr-gb

     

    french/great britain?

     

    i'm a bit confused about the syntax and stuff guys!

  12. i use a chat server where we can set iso codes for our rooms, so

     

    en-gb is English great britain

     

    but how do i set other languages like french, or spanish or something, the format must be like

     

    xx-yy

  13. I.E. 7 - Multimedia - Play animations in web pages* On

     

    Setting has been on the whole time, and still not showing animated emotes.

     

    settings on Vista are the same also, don't look like anything is different.

     

    any ideas mate?

  14. Just got a new machine, with Vista Home Basic, When I went into a chat network called Buzzen, the emotes show as animated. Was curious as to why on my XP Pro machines, this doesn't happen, they are plain and not animated. Anyone know of a fix, or what is causing the XP machines not to show animated emotes in the chatroom?

  15. function pop_window(url) {

    var popit = window.open(url,'console','width=800,height=600,scrollbars=yes');

    }

     

    then.. within php i have

     

    $content .= "<tr><td align=\"center\"><a href=\"javascript:pop_window('$image')\"><img src=\"$image\" width=\"115\" height=\"100\" border=\"0\"></a>";

     

    when the window opens, it contains the URL as the title. I want to change this title to 'screenshots'

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