Search:

Type: Posts; User: LuckY

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: MySQL Indexes

    by LuckY
    Replies
    1
    Views
    976

    MySQL Indexes

    I'd like to be sure about how exactly an SQL index will work in this particular situation, so please share your thoughts.

    I have a table of items with an index on column 'views' which is...
  2. Wow. Clearly I overlooked something quite...

    Wow. Clearly I overlooked something quite elementary. Enclosing $1 in quotes prevents using the asterisk as a wildcard:
    math(){
    echo "$1" | bc -l
    }Don't you hate when you try for hours to fix...
  3. Preventing Asterisk Expansion in Function Params in Bourne Shell Script

    I'm writing a shell script in which I am performing floating point calculations. I cannot use `expr` since it does not support real numbers, so I decided to write/use a function to use `bc` like...
  4. Replies
    10
    Views
    1,332

    To explain precisely what would occur with your...

    To explain precisely what would occur with your proposed code (assuming you were able to correct it for successful compilation), the foo() function would create a pointer variable 'p' which you point...
  5. Replies
    10
    Views
    8,949

    Sorry Hairy, but your answer isn't valid. I...

    Sorry Hairy, but your answer isn't valid. I actually browsed Google's validation code (JavaScript) and it basically does this to check your submission: if ((24 - your_answer) < 0.0001) you_win();...
  6. Replies
    14
    Views
    1,906

    Actually, working (both from employment and...

    Actually, working (both from employment and marriage) and not partying (unfortunately). I already have a full-time job and have been here for 9 years as of next month. As a result of graduating, I...
  7. Replies
    14
    Views
    1,906

    Finally Graduated

    I just wanted to take this opportunity to share my glee by announcing that I have finally graduated with my Bachelor's of Science degree in Computer Science (with honors, btw ;)). It took me 10 long...
  8. Replies
    10
    Views
    8,949

    Solution to Google Puzzle 3,3,8,8=24

    At first I was mildly entertained with my initial attempts to solve Google's current puzzle, but after dozens of attempts I became feverishly determined to solve it. I finally decided to screw my...
  9. Replies
    12
    Views
    1,479

    How to Celebrate Graduation

    Well, friends... The end is extremely f___ing nigh: I am graduating from my university with a B.S. in Computer Science with honors (I have to mention the "with honors" part because I just found that...
  10. The epsilon represents nothing. In other words a...

    The epsilon represents nothing. In other words a regular expression like ab?c could be accpeted by a grammar like:


    S -> aTc
    T -> b | epsilon


    In any case, I have found the problem, and it...
  11. Bison/Yacc Recursion Problem - "Rule never reduced because of conflicts"

    I'm suffering a problem with a yacc specification. I had a similar problem but was able to resolve it. I'm sure the problem is in the recursion madness I'm dealing with, but am unable to find a clear...
  12. Replies
    4
    Views
    698

    You must use the scope resolution operator (::)...

    You must use the scope resolution operator (::) instead of the dot operator, which is used to reference members of an object.
    cout << "gaurav " << hello::val;Also, you must declare static member...
  13. Replies
    27
    Views
    2,842

    I've an Associate of Arts degree in Liberal Arts,...

    I've an Associate of Arts degree in Liberal Arts, an Associate of Science degree in Computer Science, and I'll receive my Bachelor of Science degree in Computer Science with emphasis in systems...
  14. Replies
    11
    Views
    3,155

    I have an acquaintance in France who was hired on...

    I have an acquaintance in France who was hired on to a professional gaming company based largely on a single game he wrote from scratch. I don't know his previous achievements, but when I spoke with...
  15. Replies
    29
    Views
    6,506

    Scrabble. Now there's a fun challenge. In...

    Scrabble. Now there's a fun challenge. In addition to forming words (obviously, they'd come from a dictionary of valid terms), you need to use as many letters as possible, attempt to acquire as many...
  16. Ever heard of a Grapple? (No, not for scaling buildings.)

    I was walking around a Japanese market/shopping center with my wife last week and we were shocked when we found a plastic container with four apples in it, or so we thought. The label on the...
  17. Replies
    29
    Views
    6,506

    Just within the box, rows, and columns....

    Just within the box, rows, and columns. Diagonally wouldn't make sense because there are only two diagonals with 9 cells.

    Every complete puzzle, of which there are billions of trillions, has...
  18. Replies
    29
    Views
    6,506

    Su Doku is a puzzle. It consists of nine boxes...

    Su Doku is a puzzle. It consists of nine boxes composed of nine cells. Each box has each digit from 1 to 9. Each puzzle-wide row and column (spanning three boxes) has each digit from 1 to 9. This...
  19. Thread: Ascii

    by LuckY
    Replies
    20
    Views
    1,992

    Try using Borland...

    Try using Borland's command-line compiler (in the second table on that linked page named "Compiler"). It is free and works very well, but you may not be too keen on it because the free version...
  20. Thread: Ascii

    by LuckY
    Replies
    20
    Views
    1,992

    I think a brief explanation of ASCII is warranted...

    I think a brief explanation of ASCII is warranted here. You, Bag a Bones, seem to be confusing keyboard values for ASCII values. What you must keep in mind is that ASCII is simply a standard that...
  21. Replies
    6
    Views
    2,001

    Try something like this, adjusting the...

    Try something like this, adjusting the dereferencing et cetra to match your actual variables. This should work assuming you are attempting assignment.
    LONG smaller = *(LONG*)&bigger;
  22. Replies
    8
    Views
    3,126

    I know this is an old thread, but I just found it...

    I know this is an old thread, but I just found it and felt like implementing my own solution.


    #include <iostream>
    using namespace std;
    ...
  23. Replies
    13
    Views
    3,285

    Search the string for the current locale's...

    Search the string for the current locale's integer and decimal separator. (You're splitting hairs, CornedBeef. In a real situation that might present a serious concern, but our friend is surely...
  24. Replies
    13
    Views
    3,285

    A less elegant, yet highly precise solution would...

    A less elegant, yet highly precise solution would have you simply convert the resultant value to a string and analyze that.


    bool is_sqrt_int(double your_value) {
    std::ostringstream ostr;
    ...
  25. Thread: Win32Hooks

    by LuckY
    Replies
    2
    Views
    892

    In addition, you may find it beneficial to check...

    In addition, you may find it beneficial to check out my System-wide Hook for Key Logging tutorial for a step-by-step description of writing a system-wide hook.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4