Slashdot Mirror


User: KnowlerLongcloak

KnowlerLongcloak's activity in the archive.

Stories
0
Comments
5
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 5

  1. Certain Math Knowledge and Skills Are Helpful on Math Skills For Programmers — Necessary Or Not? · · Score: 2, Interesting

    I learned Boolean Algebra for a CS degree. The application the University intended for its use was for designing hardware circuits.

    As a programmer, over the years I have had many cases where I had to write programs that did different things based on a list of inputs and their values. My knowledge of Boolean Algebra has helped me make the code simpler because I could reduce the input values to the lowest equivalent. My resulting code therefore has less conditionals (if..then..else and switch statements).

  2. BMI Clearance on Timmy O'Riley By L. Hadron and the Colliders · · Score: 5, Insightful

    I wonder if they purchased performance rights through BMI. If not, will the RIAA come down hard on ThinkGeek?

  3. Security !~ ROI on How To Stretch Your Security Dollar · · Score: 1

    If someone talking about security starts to mention ROI, I tune them out. They don't know the basics about security.

    When I talk security to upper management I never use the term ROI. That term is too steeped in revenue generation that you cannot separate the term from the expectation of increased sales or increased profitability.

    Security is like insurance it protects against loss. Security (for almost all companies) never generates revenue, therefore it can never have ROI in the traditional sense.

    Some security companies will try to say that the Return is [insert some intangible benefit here].

    They should really sell it like insurance where they mention the protection from loss in tangible terms.

  4. A Security Hole in Java on NSA Open Sources Tokeneer Research Project · · Score: 4, Informative

    ResultSet readFromDatabase(String userInput)
    {
        String sql = "select * from users where userid = " + userInput;
        PreparedStatement psMyStatement = connMyConnection.prepareStatement(sql);
        ResultSet rsResults = psMySQLStatement.executeQuery();
        return rsResults;
    }

    This is called a SQL Injection security hole. You can write it in practically any language that connects to a database.

  5. Capability Sniffing does not work in all cases. on DHTML Utopia · · Score: 1
    • No browser sniffing. This aims to future-proof code by testing for features rather than sniffing for browser name and version. So, before using the TimeTravelCureCancer method, the current browser is tested to see whether it's supported. If it is, the script continues. If it isn't,the script silently fails with graceful degradation.
    Here is an example that I ran into of how capability sniffing is not enough:

    The add method on a select element exists in IE 6 as well as Firefox. However, in order to add an option element to the end of the select element's list, you need to do this in IE:

    objSelectElement.add(objOptionElement);

    And this in Firefox:

    objSelectElement.add(objOptionElement, null);

    References:
    MSDN Reference
    DOM Reference