User Profile

Collapse

Profile Sidebar

Collapse
chaosprime
chaosprime
Last Activity: Aug 22 '08, 05:53 PM
Joined: Aug 20 '08
Location: New Jersey
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • chaosprime
    replied to Compare two complex Hash
    in Perl
    You probably need the CPAN module Data::Compare.
    See more | Go to post

    Leave a comment:


  • chaosprime
    started a topic Web Form Autofocus JavaScript

    Web Form Autofocus JavaScript

    If you have any interest in Web form usability, you may find my Web form autofocus JavaScript snippet useful. The idea is simple: if a user is presented with a form, they should be able to start typing right away in the most appropriate place. As you know if you've dealt with poor attempts at handling this, it's not that simple to do well; this script deals with the most common problems encountered and several uncommon ones. This is a drop-in script,...
    See more | Go to post

  • chaosprime
    replied to Closing connections
    A not-uncommon cause of slowdowns like this as a small site becomes more established is database design that works well when there are 20 rows in the table but not so well when there are 2 million. It may be worthwhile to look at what queries you're doing on slow-running pages and make sure that fields you're doing lookups on are indexed.
    See more | Go to post

    Leave a comment:


  • chaosprime
    replied to reading file into string
    in Perl
    I typically do like so:
    Code:
          open(FH, $file) or die "$!";
          my $sdpString = join('', <FH>);
          close FH;
          print $sdpString;
    I do want to say, though, that if it's in any way feasible for you to do whatever operation you're doing on one line of the file at a time, you ought to try doing it that way. The structure of Perl encourages you to do things one-line-at-a-time because it's a good...
    See more | Go to post

    Leave a comment:


  • chaosprime
    replied to Web security
    in PHP
    You should include some examination of denial of service attacks. While a lot of those are network issues outside of the scope of what a software developer can or should deal with, there are ways that software issues can make you vulnerable to DoSing. For instance, if your web site allows a user to start a very resource-intensive process, and there's nothing to prevent them from performing more requests and starting more processes, performing a...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...