Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 32,415 points

Brady

Favorite Answers56%
Answers280

4 years of programming experience. Languages include Java, C#, PHP, JavaScript Also Familiar with MySQL, HTML, CSS http://www.besternews.com

  • hulu queue for cbs shows?

    I'm looking for something similar to the hulu queue where new episodes of shows I select pop up in a list with links to play them. It seems rather simple, but I have not found a site that does this for CBS shows. Thanks.

    2 AnswersOther - Television1 decade ago
  • IBM Lenovo Active Protection System gone?

    Did this get replaced by something on new models or did they just discontinue it?

    2 AnswersLaptops & Notebooks1 decade ago
  • MySQL UPDATE query taking 5+ seconds? HELP!?

    I have a field that counts the number of times a page is viewed. So when the page is loaded i have a script that does `views` = `views` + 1.

    Here is an example query:

    UPDATE LOW_PRIORITY table SET `views` = `views`+1 WHERE ID = 4954214

    This is not an indexed field so there should be no updating of indexes at all. Simple a primary key update.

    Sometimes when I run it in phpMyAdmin it takes subsecond (like .0008sec), sometimes it takes over 5 seconds. Can anyone help me optimize this so that it does not take that long?

    1 AnswerProgramming & Design1 decade ago
  • Introductory Unix Globbing Help?

    Question from Homework:

    How would you list all files in the elements directory that either start with the "c" character, or end with the "m" character, or both. (hint, you may need to use more than one globbing pattern on the same command line)?

    I currently have "ls c* m* c*m" but this creates duplicates. I'm not sure if that's wrong but if there is a better way I would appreciate it.

    2nd Question:

    Change directory to /usr/local/lib/glob. Look at the contents of the two directories inside of glob. Without changing directories, how would you list all files in example01 and example02 that DO NOT end in a 5, 6, 7, 8, or 9? What is the minimum number of characters you can use for this command?

    Don't even know where to start on this one.

    Thanks for the help!

    1 AnswerProgramming & Design1 decade ago
  • Mootools powered "Subscribe to Feed" button?

    I remember seeing a mootools project that created a popup for users to subscribe to an rss feed similar to AddThis or Add to Any. However, I cannot find the project now that I would like to use it. I would prefer to use this project instead of an offsite hosted solution. Thanks

    1 AnswerProgramming & Design1 decade ago
  • Accounting Question About investing in new machines?

    If Kinko’s buys another copy machine for $20,000, it will generate net annual cash flows of $5,000 a year for 5 years, after which it will be worthless. If their discount rate is 10%, should they invest in the copier? (ignore income taxes)

    1 AnswerInvesting1 decade ago
  • MySQL sorting based on if row exists in another table.?

    I am running the query to get data out of table A (items). If there is a corresponding row present in table B (redirects) then I want to sort off of A.`update` otherwise i want to sort off of A.`original`. Table B is accessed by key ex (A.`key` = B.`key`).

    So this is sort of the sample i have right now but is not working:

    SELECT `items`.* ,

    CASE WHEN EXISTS (

    SELECT 1 FROM `redirects` WHERE `redirects`.`key` = `items`.`key`

    )

    THEN `items`.`update`

    ELSE `items`.`original`

    END CASE AS `sort_by`

    FROM `items`

    WHERE (`items`.`key` = xxx)

    ORDER BY `sort_by`DESC

    1 AnswerProgramming & Design1 decade ago
  • PHP Application Migration Utility?

    I am looking for a utility that controls the migration from development to production (in this case moving from one directory to another). Something similar to JAM for java.

    1 AnswerProgramming & Design1 decade ago
  • Javascript regular expression to find numbers (positive, negative, in parentheses)?

    What is the best way to create this regular expression...

    needs to find

    123.012

    -123.12

    (232.20)

    This is what i got: ^[(-]?\d+[.]?\d*[)]?$

    but there is no way to make sure both "(" and ")" are present in my expression.

    3 AnswersProgramming & Design1 decade ago
  • Update only if greater than current value in MySQL?

    Is there a way to create a query that only updates if the passed value is greater than the current value.. something like this (obviously doesn't work but portray intent):

    UPDATE `table` SET (if `field < '$total') {`field` = '$total'} WHERE `ID` = '$id';

    2 AnswersProgramming & Design1 decade ago
  • Upgrading CPU in IBM (Lenovo) T60?

    I have a T60 with a 1.66GHz Core 2 in it and was wondering if it was possible to upgrade this to a faster chip that used the same slot. I'm worried that the CPU may be tied to the motherboard through the onboard security chip. (ie. If I replace the chip the computer won't start because it thinks its been tampered with) Is anyone familiar with restrictions on this type of upgrade?

    1 AnswerLaptops & Notebooks1 decade ago
  • MySQL statement to choose greater field?

    Is there a way to sort a query by the greater of two fields?

    I have one field that stores the original post date (`original`) and another field that stores update date (`update`), update is 0 by default. Both fields are numeric timestamps. I want to find the most recent articles (original or updated), so i need a query that does something like:

    (`original`>`update`?`original`:`update`) as `time`, ORDER BY `time` DESC

    Is this possible?

    2 AnswersProgramming & Design1 decade ago
  • Discrete and Continuous Distributions?

    Let p.m.f. of X be defined by f(x) = 6/(pie^2 * x^2), x = 1,2,3,... Show that E(X) does not exist in this case.

    is it because f(x) approaches 0 as x grows?

    4 AnswersMathematics1 decade ago
  • Bernoulli Probabilities?

    A man claims to have extrasensory perception (ESP). As a test, a fair coin is flipped 23 times, and the man is asked to predict the outcome in advance. He gets 19 out of 23 correct. What is the probability that he would have done at least this well if he had no ESP?

    1 AnswerHomework Help1 decade ago
  • Conditional Probability Question?

    a1, a2, a2 form a partition of the sample space S and given that P(a1) = .2, P(a2) = .5), P(a3) = .3

    e is an event on S with P(e|a1) = .5, P(e|a2) = .4, P(e|a3) = .4

    find P(e)

    Thanks for the help guys

    thanks guys

    2 AnswersMathematics1 decade ago
  • What is the probability that a 8-digit phone number contains at least one 9?

    Repetition of numbers and lead zero are allowed.

    Is there an equation to solve this?

    1 AnswerMathematics1 decade ago
  • Alert users with OS X widgets?

    Is it possible to notify users with information using a widget in the dashboard? I'm looking for something similar to the notifications in Google Desktop or Gmail Notifier. A look through the documentation did not show anything, but did say you can access thirdparty scripts/plugins.

    2 AnswersProgramming & Design1 decade ago
  • Accessing Wikipedia Summaries?

    Does anyone know of an API or something similar that provides wikipedia summaries like the ones shown on many sites?

    1 AnswerWikipedia1 decade ago