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.
Duds331
What size of FLV file should I have?
I captured some Xbox 360 game play using a Hauppauge capture card. I captured at 640 x 400 (smallest allowed) as an mpeg. I used Riva to convert to FLV at 320x200. The video is approximately 15 minutes and as an mpeg is 400 MB, as an FLV it is 40 MB. Does that seem about right? Is there a way I can make the file smaller without lowering the resolution (videos will be viewed on web pages)? I'm trying to minimize file size for faster downlods as well as storage costs. Thanks.
1 AnswerOther - Computers1 decade agoWhat am I missing with GD2?
Here's the set up:
Windows Server 2003 SP2
Apache2
PHP5
MySQL
I am trying to get the test utility for a CMS to work and when I hit the GD2, it fails. I have uncommented the extension in php.ini, checked the extension path, etc. phpinfo says gd2 is enabled.
What are some good ways to test my GD2 installation? What could I be missing or forgetting to do? What can you suggest that I try? I am lost. This is my first time trying to do anything with the GD2 extension. Thanks.
1 AnswerProgramming & Design1 decade agoCan MySQL and MSSQL be installed concurrently without problems?
Currently I have MSSQL installed and I am looking at testing a CMS written using MySQL. Can I install MySQL on the same server that already has MSSQL installed, and in use without any problems?
If problems are possible, what kind of problems are likely?
Is there anything I need to do before installing MySQL?
I don't want to disrupt the MSSQL at all, the site is currently being driven by the MSSQL database.
2 AnswersProgramming & Design1 decade agoHow's the commute between Seneca, SC and Greenville, SC?
I will be moving to Seneca, SC at the end of the month. I am trying to find an IT job. The majority of decent jobs I come across are located in Greenville. How's the drive between Seneca and Greenville? How long? What type of roads, etc? I've looked at Mapquest, but that's normally a little (or a lot) off.
Thanks.
2 AnswersCommuting1 decade agoConnect to MSSQL through PHP using Windows Authentication?
Title says it all. How do I connect to a MSSQL database using PHP and Windows Authentication
mssql_connect($host, $user, $pass);
This doesn't work, and the user is set up. I'm not sure what the server admin has set up, but he says I need to use Windows Authentication??
2 AnswersProgramming & Design1 decade agoPHP Pagination, not a list?
Currently I have a table that holds a text field with a lot of text in it. What is a good way to paginate the result of that field. Since I'm not pulling a list, I figure a character count may be the way to go. I am considering switching to where the news is entered in paragraphs so it can at least be broken at the correct spots easily, but I am still not sure what is the best way to find the spot. I have a page that uses absolute positioning, so the text on the page has to end before a certain point. Any suggestions?
1 AnswerProgramming & Design1 decade agoMinor Traffic Accident, No Report, Insurance Info Swapped?
I have a friend was in a minor accident about a month ago. According to my friend he changed lanes into someone. Not hard or anything. I've seen his car... he was a few lines of paint rubbed off, no dents, dings, etc... just rubs. They did not file a report, but they did change insurance info.
The person he hit FINALLY got estimates on the damage, and on the only itemized estimate it has stuff like replace headlight, replace driver's side mirror, and stuff that he is confident he did not do. It even listed something on the right side (my friend switch over to the right so... my friend's passenger side hit his driver side)! He didn't see it when they looked at each other's cars. He said he figured a few hundred dollars and he would just pay it, no need for insurance. Anyway the estimate was nearly $2,000.
Also, the guys wife has been all over him about getting it fixed, and I wonder if she took it in and the guy just looked over the entire car.
QUESTION IN DETAILS!
9 AnswersInsurance & Registration1 decade agoCalling PHP results in Javascript?
I have a Javascript function that creates a tabbed browsing section, for example, one tab is the most recently added news. How do I get the results from my sql query (recent news) in the Javascript. Here's how I would be able to do it in a perfect world... You should see what I am looking for...
var center_tabs = [
//first tab
[
'images/tabs/news.gif',
'images/tabs/news_selected.gif',
'<?php
for($i=0; $i < $news_query; $i++)
{
$tag = $news_query[$i][2];
if($class != "tab_row1")
$class = "tab_row1";
else
$class = "tab_row2";
echo "<div class=\"$class\">$tag</div>\n";
}
?>'],
//second tab
[
Thanks.
4 AnswersProgramming & Design1 decade agoProblem Connecting with MSSQL and PHP?
ok.... so here's my connection string... or at least my latest attempt... I've tried with ' without...
$link = mssql_connect('$mssqlhost', '$mssqluser', '$mssqlpass') or die("Unable to Connect");
my variables are...
$mssqluser = "db";
$mssqlpass = "*********";
$mssqlhost = "(local)";
I have an echo before and after the connect string so I know that it is dying there since the echo after it doesn't show. Ideas? It doesn't display any error or anything. Just stops.
3 AnswersProgramming & Design1 decade agoWhere can I find the name of my server for the mssql_connect string?
I am not sure what to put in for the server in the connection string, localhost, the ip, none of that seems to work
1 AnswerProgramming & Design1 decade agoCSS Woes FF/IE?
Ok... I can get it to work in one or the other, but not both simultaneously.
This one works in IE...
http://www.nlgaming.com/test/ie.html
This one works in FF
http://www.nlgaming.com/test/ff.html
I am just trying to get all the box positioned correctly... The css and everything is in the HTML file. Please view both in both browsers to see my problem... Any ideas? Thanks.
3 AnswersProgramming & Design1 decade agoPassing Checkboxes in PHP?
I am trying to pass a form in PHP between pages using $_POST. I'm getting snagged up on the check boxes. I've tried a few things here's my latest attempt...
The error is... Notice: Undefined index: field_trip
Here's some code.
On the form page... <input type="checkbox" name="field_trip[]" id="field_trip[]" value="saline" />
On the next page... I've tried...
$trip = $_POST['field_trip'];
Also...
if(isset($_POST['field_trip'])...
{ echo "stuff";}
Also..
if($_POST['field_trip'] != "")
{do stuff}
None of it seems to work. I've also used field_trip[] on the second page to no avail.
Help please.
5 AnswersProgramming & Design1 decade agoPassing Checkbox values in PHP?
I am trying to pass a form in PHP between pages using $_POST. I'm getting snagged up on the check boxes. I've tried a few things here's my latest attempt...
The error is... Notice: Undefined index: field_trip
Here's some code.
On the form page... <input type="checkbox" name="field_trip[]" id="field_trip[]" value="saline" />
On the next page... I've tried...
$trip = $_POST['field_trip'];
Also...
if(isset($_POST['field_trip']))
{ echo "stuff";}
Also..
if($_POST['field_trip'] != "")
{do stuff}
None of it seems to work. I've also used field_trip[] on the second page to no avail.
Help please.
2 AnswersProgramming & Design1 decade agoJavascript error in Explorer only. Object not defined.?
I get...
Error: 'document.regform.subtot1' is null or not an object
I also get it in another spot... here's what I'm working with..
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
interval = setInterval("calc()",1);
function startCalc()
{
interval = setInterval("calc()",1);
}
function calc()
{
one = document.regform.subtot1.value;
two = document.regform.subtot2.value;
three = document.regform.subtot3.value;
document.regform.grandtotal.value = (one * 1) + (two * 1) + (three * 1);
}
function stopCalc()
{
clearInterval(interval);
}
dinner_interval = setInterval("dinner_calc()",1);
function dinner_startCalc()
{
interval_dinner = setInterval("dinner_calc()",1);
}
</script>
It works fine in Firefox, but IE gives an error, and the code does not work. Any ideas? Thanks. I know this is a common IE thing, but I can't find a solution that works for me.
3 AnswersProgramming & Design1 decade agoDynamically update text field based on selection in dropdown.?
I would like to dynamically update the value of a text field based on what a user selects in a drop down menu. The text fields are sub-totals and later will be added together for a grand total. So for example. A user selects (from a drop-down) registration type A ($35). Next to that drop-down is a section total text box that should read $35 as soon as the selection is made. I have it readonly, I just can get the text box to update on the fly.
here's what I'm trying...
<select... onFocus="calculateOrder(this);>
heres the function
function calculateOrder(form)
{
if (form.work_reg.value == "member" && form.date.value < "2007-02-01")
form.subtot1.value = 100
if (form.work_reg.value == "non_member" && form.date.value == "2007-02-01")
form.subtot1.value = 130
...
}
heres the text box as it is now... I've tried a few things.. I figure this is where I am going wrong?
<input type="text" name="subtot1" size="10" readonly onfocus="this.blur();"/>
Thanks for any assistance you can provide.
3 AnswersProgramming & Design1 decade agoInternet Explorer Displays a Gap in CSS?
Screenshot of problem...
http://i88.photobucket.com/albums/k169/sig331/css_...
html code...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...
<html xmlns="http://www.w3.org/1999/xhtml%22%3E
<head>
<link rel="stylesheet" type="text/css" href="nlg_style.css" />
</head>
<body bgcolor = "#989687">
<img src = "nlg.jpg"/><img src= "top.jpg"/>
<div id="page_nav">
<div class="nav_main">stuff</div>
</div>
</body>
</html>
CSS...
body
{
background-color: #989687;
padding: 0;
margin: 0;
}
#page_nav
{
float: left;
width: 159px;
}
.nav_main
{
padding: 5px 0px 0px 18px;
font-weight: bold;
background: Transparent url(lbar_bg.gif);
background-repeat: repeat-y;
}
Images...
http://i88.photobucket.com/albums/k169/sig331/lbar...
http://i88.photobucket.com/albums/k169/sig331/top....
Is there something I can put in there to get IE to render the page correctly?
2 AnswersProgramming & Design1 decade agoGap in CSS?
I am building a page using CSS and divs. I am getting a gap between the div that shows only in IE not in Firefox, Safari, etc... here's the css...
#page_nav { float: left; width: 159px; }
.nav_main { padding: 5px 0px 0px 18px; font-weight: bold; background-image: url('lbar_bg.gif'); background-repeat: repeat-y; }
and the HTML
<html>
<head>
<link rel="stylesheet" type="text/css" href="nlg_style.css" />
</head>
<body bgcolor = "#989687">
<img src = "nlg.jpg"/><img src= "top.jpg"/>
<div id="page_nav">
<div class="nav_main">stuff</div>
</div>
</body>
</html>
The gap looks like it is 3 pixels or so. The images fill the divs, the divs do not have any blank space etc... Like I said it looks fine in everything except IE... are there any attributes that IE ignores, or assumes that the others do not? Thanks.
3 AnswersProgramming & Design1 decade agoDynamic generation of form elements?
How do I dynamically generate form elements?
What I am wanting to do is generate check boxes based on an action. I'm not sure which route I will go, but here are my options.
The check boxes are categories, there are main categories, and beneath those there are subcategories.
First option. Make the main category (text) clickable so that when clicked the sub categories pop up underneath it with check boxes.
Option two. When a main category is CHECKED pop up the sub categories beneath it.
I know I need JAVA and all. I've pulled some sample code from the Internet, but no of them have a good explanation and I can't quite get it to act right. Any help is greatly appreciated. Thanks.
2 AnswersProgramming & Design1 decade agoAre there any area codes that start with 1?
I know when you call long distance you dial 1+(area code), but are there any area codes in the US or Canada that start with 1? I'm sure this is miscategorized, but there's now appropriate category for this question.
4 AnswersOther - Politics & Government1 decade agoValidating a phone number in PHP?
I am having trouble getting my PHP to correctly validate phone numbers. Length is easy, but I want to be sure that no letters are entered. I think I need to use ereg, but apparently I am not using it correctly.
Code:
if(!ereg("^([0-9]{10})$", $_POST["local_phone"]))
return error...
I would greatly appreciate a sample of this being done correctly if possible. Thanks.
4 AnswersProgramming & Design1 decade ago