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 58,980 points

?

Favorite Answers55%
Answers980
  • PHP Non uniform string functions?

    There are functions that manipulate strings in various different ways in PHP, for example str_replace (which replaces things within the string with something else) or strtolower (which converts all characters to lowercase).

    My question is this: Why are the function names non-uniform? Some of them start with str_, others start with str. It makes it confusing and hard to remember, so I couldn't think of a reason they would have done it.

    I'd just spent about 2 hours without internet, and was trying to work out the function to convert the string to lowercase. Having also used str_replace in the same webpage, I expected it to be str_tolower, however it's not.

    Is there some kind of explanation for this? This is more curiosity than anything else, to be honest.

    2 AnswersProgramming & Design7 years ago
  • Best Android apps at the moment?

    I'm going to look like a complete idiot for asking this, but I've just gotten back into the whole mobile industry, got myself a Galaxy Note 8.0, so I was hoping for some suggestions of good apps. I have most of the utility apps I normally use, so I'm mainly looking for games, but any are fine (who knows, perhaps you have a utility app that I would find useful). Preferably they should be optimised for tablets (it's an 8 inch screen).

    As a side note, if you happen to know any decent apps for assisting with web programming on the Android, let me know about those as well (focusing on PHP, JS, HTML and CSS).

    2 AnswersVideo & Online Games7 years ago
  • PHP - count() is returning double the amount of elements?

    This is my code: http://pastebin.com/j1eKCAm7

    For some reason, count($row) returns 14 instead of 7, though there are only 7 columns in the table, shown here: http://puu.sh/5CLM9/440a856ada.png

    Instead of this printing all the data from the specific row to the screen, it prints all the data, followed by 7 "Undefined offset" errors: http://puu.sh/5CLR9/e909d9d72d.png

    Does anyone know why this is happening, and how to fix it?

    2 AnswersProgramming & Design7 years ago
  • HTML - Align the start of form input box with text before the box?

    I have a webpage that looks like this: http://puu.sh/5zHcT/1b8d9c9aff.png

    As you can see, the start of the text box section is lined up, but some of the boxes have text in front.

    I'd like to have the start of each text box lined up instead. I put together a quick photoshopped image of what I'd like it to look like, hopefully this helps you understand it: http://puu.sh/5zHAh/da3aa1bae4.png

    Is it possible to do this? Preferably using just CSS and/or HTML, but Javascript if necessary.

    3 AnswersProgramming & Design7 years ago
  • Send MIDI signals to USB device?

    My school has a lighting desk, specifically the Grande Engineering 48 Channel Lighting Desk (which, inconveniently, has very little online information about it). It has a feature which allows it to be controlled by a computer through MIDI signals.

    I already have a USB MIDI interface, so there's no problem with connecting the two devices. All I need to know is how to actually send MIDI signals to the interface, so they can be passed on to the lighting desk. Ideally, it would be a way in Java, Python, Javascript or C++ (in that order), since those are the languages I know.

    Even if anyone just knows a program that I can use to manually send a MIDI signal, it'd still be useful to know about so I can test with. Hopefully it'd also be open-source so I could see how it did it.

    All of the libraries I've found seem to be used for creating MIDI files (.mid), not sending MIDI events to another device.

    1 AnswerProgramming & Design8 years ago
  • Cores 1 & 3 most used on a quad-core CPU?

    For some reason, cores 1 & 3 are more used than cores 2 & 4 on my CPU. It's an Intel 15 second generation quad-core CPU.

    I know cores 2 & 4 aren't broken or anything, because they're still used, just less.

    Is there any reason for this? I imagine there is, I just can't think of it.

    2 AnswersOther - Hardware8 years ago