Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now 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.
?
Can polyurethane foam provide sound insulation?
I have a wooden platform (more like a box) made of thick plywood that is used for smashing things on it with a sledgehammer/bat. The box is covered with a shock absorbing mat (the ones used on the floor of gyms), but is completely hollow.
The box itself is strong enough to handle strong blows, but with it being hollow, it can get very loud.
I am wondering if i mange to fill the inside of the box with polyurethane foam, will it dampen a good portion of the sound?
The box is secured to the floor and wall, so I can't feasibly take it apart to fill it with some other solid material. I'd essentially drill some holes into the sides and fill it layer by layer.
Also open to any other suggestions!
Thank you in advance.
3 AnswersDo It Yourself (DIY)3 years agoPHP database search works on XAMPP but not web hosting server?
Hello,
I'm working on a personal webpage with very limited knowledge of html so please bear with me.
I'm trying to search and display results from a sql database using php. While building and testing my code on XAMPP, the following code worked just fine:
$con = new PDO('sqlite:database.db');
$search=(!empty($_POST['search']) ? $_POST['search'] : null);
$query = $con->query("select * from Directory where Name LIKE '$search'");
$results = $query->fetchAll(PDO::FETCH_ASSOC);
I have an input box named "search", and I used a .db file named database.
However, my search function fails to work when I uploaded it to my web hosting server. I've added echo functions to see where the code stops running (not really sure if this is the correct way to find codes that don't work) and anything beyond $results don't seem to be running at all on my php page.
I've tried changing around the coding to the best of my ability, but I'm at a loss.
Is it possible that my web hosting server doesn't allow me to use a .db file? I did set the server to php 7, is my code not compatible with php7? I cannot seem to figure out why the same code works on XAMPP, but not on my hosting server. My XAMPP does runs in 5.6, but my hosting server only offers 5.2, 5.3, 5.5, and 7.
Any help would be greatly appreciated.
Thank you.
1 AnswerProgramming & Design4 years agoDoes PHP version matter?
Hello,
I am working on a personal webpage with very basic knowledge of html, so I apologize for the simplicity of the question.
I have a php file that was tested and ran fine with Apache in XAMPP. When I run phpinfo on the apache server, the current version is 5.6.28. Given that my code runs on Apache, I'm guessing my php code is for version 5.6.
Unfortunately, my web hosting server only offers php 5.2, 5.3, 5.5, and 7. The web hosting server is currently set to php 5.5, and I'm guessing this is why my php code doesn't work on the live server.
Since php7 seems to be the most current version, I figured I should run the web server with php7, but I'm guessing my code won't necessarily be compatible. Is this correct? Would I need to update my current code to version 7? Is there a tool I can use that would automatically convert my code as I'm not comfortable enough with coding to do it myself. It's a rather simple code, so I'm guessing some sort of tool should be suffice for my needs, but I can't seem to find any.
This is my current code:
Any help would be greatly appreciated.
Thank you.
1 AnswerProgramming & Design4 years agoJavascript backticks causing error in IE11?
Hello,
I'm working on a personal page with very limited knowledge of html so I apologize for the simplicity of my question.
The following javascript is causing errors only in IE.
$("#mouseXY").html(`X: ${mouse.x*10} Y: ${mouse.y*10}`);
Searching through google has led me to believe that it's the ` symbols that are causing this issue in IE as it doesn't support template literals? The script runs perfectly fine on every other browser.
How can I alter this portion of the script to make it work for IE?
I've tried everything I can with my little knowledge of html with no success..
Any help would be greatly appreciated.
Thank you.
2 AnswersProgramming & Design4 years agoPHP database query?
Hello,
I am working with very limited knowledge of html for a personal page, so I do apologize for the simplicity of my question.
I'm trying to implement a search function on my page. The search word will be searched for in the respective column of the db file and show results of the row, else say "Not Found." I've managed to create a db file (database.db) with 'Name', 'X' and 'Y' fields.
When I run the script below without the if-else function, it will return the relevant fields correctly. I wanted the added function of displaying "Not Found" if there is no match, but I can't seem to get it to work. The current code below returns Parse error: syntax error, unexpected 'else' (T_ELSE). Am I missing something? Assuming I can fix the error, is my if-else statement even correct for my purposes to begin with?
Thank you for any help in advance.
<?php
//load database connection
$myPDO = new PDO('sqlite:database.db');
// Search from SQL database table
$search=$_POST['search'];
$query = $myPDO->prepare("select * from Directory where Name LIKE '$search'");
$query->execute();
$results = $query->fetchAll(PDO::FETCH_ASSOC);
if (count($results) > 0){
Foreach ($results as $row){
echo $row['Name'];
echo "<br>";
echo $row['X'];
echo "<br>";
echo $row['Y'];
} else {
echo 'Not Found';}
?>
3 AnswersProgramming & Design4 years agoPHP database search query?
I'm working on a php script to search and display results from a sqlite database. I've created a database with 3 columns: 'Name', 'X', and 'Y' under the table name 'Directory'. I have an input box named 'search'. When a name is searched and found under the 'Name' column in the database, the results will be displayed on a simple table.
I have all the files and the database.db file all in the same folder.
The script seems to be connecting to the database file, but it doesn't return results even if there should be a successful hit. I always get the 'Nothing Found' result. Am I missing something?
Any help would be greatly appreciated.
Thank you.
<?php
//load database connection
$myPDO = new PDO('sqlite:database.db');
// Search from SQL database table
$search=$_POST['search'];
$query = $myPDO->prepare("select * from Directory where Name = '$search'");
$query->bindValue(1, "$search", PDO::PARAM_STR);
$query->execute();
// Display search result
if (!$query->rowCount() == 0) {
echo "Search found :<br/>";
echo "<table>";
echo "<tr><td>Name</td><td>X</td><td>Y</td></tr>"
while ($results = $query->fetch()) {
echo "<tr><td>";
echo $results['Name'];
echo "</td><td>";
echo $results['X'];
echo "</td><td>";
echo "$".$results['Y'];
echo "</td></tr>";
}
echo "</table>";
} else {
echo 'Nothing found';
}
?>
1 AnswerProgramming & Design4 years agoQuery and display results from database on html page?
Hello,
I'm working on a personal webpage with very limited knowledge of html so I apologize for the simplicity of the question.
I would like to search and display results from a database on my html page.
The database will only have 3 columns; column 1 will have search terms, and column 2&3 will hold the data to be displayed on the webpage when the respective search term from column 1 is searched.
Ex) 1: Product name 2: Price 3: Quantity available
I am in no way familiar with using databases like SQL, so based on my research, I'm thinking excel or SQLite will be the easiest for me to learn and implement.
I can't seem to find information or tutorials on the web regarding using SQLite the way I want to. Is my understanding of SQLite incorrect?
What method might be the easiest for me to implement my search function? Ideally, I would like my database to be scaleable as well.
Any help will be greatly appreciated.
Thank you in advance.
1 AnswerProgramming & Design4 years agoDisplay var data from javascript on html page?
Hello,
I am working on a personal website with very limited knowledge of html, so I apologize for the simplicity of the question in advance.
Below is the link to the script I'm trying to implement. It's an image magnifying script which basically uses two different sizes of the same image to create the effect. In addition to the magnifying effect, I'm trying to display the real time coordinates of the large native image when the mouse is hovering over the image.
http://cssdeck.com/labs/eusv0ui9
With the help of awesome folks from here, I was able to get the html page to display the real time coordinates of the smaller image on the page. I was wondering if it were possible to display the coordinates of the larger native image (background image inside the magnifying glass) instead.
Any help would be greatly appreciated.
Thank you.
1 AnswerProgramming & Design4 years agoHow to display var data from javascript on html page?
Hello,
I am working on a personal site with very limited knowledge of html.
I came across a javascript which magnifies a portion of an image that the mouse is hovering over. The script works by using both a small and large version of the image and tracking the mouse coordinates to give a magnifying glass effect.
http://cssdeck.com/labs/magnifying-glass...
I'm trying to implement this function into my page with the added function of displaying the real time coordinates of the mouse while it's over the image. I've tried using demo scripts of this function, but the coordinates do not track in real time in conjunction with the magnifying effect. It will freeze on the coordinates of the image moments before the magnifying effect turns on.
Seeing as the magnifying javascript is already tracking the mouse coordinates of the large native image in realtime, I would like to simply extract that data and display the current x and y coords somewhere on my html page. How would I go about doing this?
Any help would be greatly appreciated.
Thank you in advance.
2 AnswersProgramming & Design4 years agojQuery and CSS3 plugin?
I'm making a very simple personal website with my very limited knowledge of html.
I came across this function and would like to implement it into my page, but I can't seem to get it to work.
http://cssdeck.com/labs/magnifying-glass-plugin-wi...
I copy and pasted the html, css and js codes from the site into their own respective files, and changed the <link> and <script> paths to reflect my local css and js files, but only the body{ portion of the css seems to be loading.
<!DOCTYPE html>
<html>
<head>
<body>
<div align="center">
<link href='css.css' rel='stylesheet' type='text/css'>
<div id="wrap">
<h1>Super Cool Magnifying Glass For Image Zoom</h1>
<h2>Demo</h2>
<div class="product"><img class="magniflier" src="http://thecodeplayer.com/uploads/media/3yiC6Yq.jpg... width="300"/></div>
<div class="product"><img class="magniflier" src="http://thecodeplayer.com/uploads/media/40Ly3VB.jpg... width="300"/></div>
<div class="product"><img class="magniflier" src="http://thecodeplayer.com/uploads/media/00kih8g.jpg... width="300"/></div>
</div>
<!-- Time for jquery action -->
<script src="java.js"></script>
</div>
</body>
</html>
Is there something else I need to do to get this function to work?
I apologize if this is a dumb question, but I am in no way even remotely familiar with css,js and jquery.
Thank you in advance.
1 AnswerProgramming & Design4 years agoBuild custom android device?
I would like to know what the feasibility of building a custom android device with a custom UI would be.
I would like to create/purchase a touchscreen tablet (somewhere between 5~7in) that will function as an interactive digital menu. The idea is to have a fairly basic interactive menu, where patrons can click a particular item on the menu and see a description about the food and some pictures. The device doesn't need to place the order remotely, nor does it need input jacks, 3G etc. Given the desired functionality, an ipad or equivalent would be overkill.
I am thinking that cheap Chinese tablets ($50ish) would be suffice. If using an one of these cheap tablets with an android OS, how feasible would it be to create a digital menu app for it?
I would ideally like the menu app to be the only function of the device (ie. When I turn on the device, it would directly load the app). Is something like this possible?
3 AnswersProgramming & Design8 years agoHow to prevent wood warp/cupping?
I recently purchased a couple of red pine wood planks (3/8in thick) and had them cut into 3x12in slats. I'm pretty sure the planks were flat when I purchased and had them cut, but the slat were cupped by the time I brought them home. I don't have a garage nor do I have space or time to store and acclimate the wood like many people suggest doing. Is there a simpler way to prevent the wood from warping? Can i seal the wood with some sort of varnish as soon as I purchase the wood? Would that minimize warping/cupping?
Thank you
3 AnswersDo It Yourself (DIY)8 years agoFriend me on Simpsons Tapped Out?
On almost hourly since the new update.
Add me @ stevensham
1 AnswerComedy8 years agoPre-germinate grass seeds?
Hello,
I am trying to grow some turf grass hydroponically, but I do not have any experience growing so hopefully I could get some input and advice to help me get started.
I'm working with 3 strains of turf grass; Tall fescue, Kentucky bluegrass and Perennial ryegrass. I started by soaking the seeds in water to start the germination process before planting the seeds into a medium.. I've been soaking for 12 hrs, draining/resting the seeds for 12hrs then re-soaking for 12 hrs and so forth. I've done this for 48 hours now, but I'm not sure if I should keep soaking the seeds. Is it possible to over soak the seeds? I can't seem to find much info about pre-germinating turf type grass seeds. One site says soak turf grass seeds for at least 4-5 days, while other sources say not to soak seeds in general for more than 24 hours. Guide for grasses like wheatgrass say to soak for 12 hours and the sprouting seems to start within 24 hours.
I'm primarily interested in only keeping the grass alive for a few weeks. If that is the case, are nutrients necessary? I am aware that there are grasses out there, like wheatgrass, that only need water to grow until it is harvested (1~2 weeks of growing).
Any input would be appreciated.
Thank you.
3 AnswersGarden & Landscape8 years agoWhat do jumpers do in a PCB?
What is the function of a jumper in a PCB?
I am trying to connect a bare LiPo battery onto my PCB. The schematic that I have requires me to use a 2 pin jumper for the connection. The jumper basically seems like 2 pads. Can I just throw down 2 pads instead of using a jumper or does a jumper do something more?
1 AnswerOther - Computers9 years agoWhat do jumpers do in a pcb?
What is the function of a jumper in a pcb? Are they basically pads where you can connect wires or is there something more? Instead of using a 2 pin jumper, can I just throw down two pads?
Thanks.
2 AnswersOther - Computers9 years agoWhere to notarize and apostille diploma?
Hello
I need to get my college diploma notarized and apostilled.
I received my diploma in Illinois, but I'm currently out of the country. Are there any online services where I can mail in my diploma, get a notarized copy and have it apostilled?
Thanks
3 AnswersEmbassies & Consulates9 years agoprintable circuit board?
I'm looking to make a small device that will take 5V power from a USB power source and charge a 3.7v lithium battery with at least several hundred mA of current.. For that, I would need a circuit board that regulates the voltage and switches off the current when the battery is fully charged.
I'd like to try and get all the required circuitry to as close to 1mm in thickness as possible.
I am aware that pcbs can get as thin as 0.15mm. I'm curious as to what a realistic thickness would be with a charge controller IC attached as someone has told me that that would be the limiting factor.
Is http://www.mouser.com/ProductDetail/Fair%E2%80%A6 a charge controller? It doesn't seem like they get really thick.
Thanks.
1 AnswerEngineering9 years agoprintable circuit board?
I'm looking to make a small device that will take 5V power from a USB power source and charge a 3.7v lithium battery with at least several hundred mA of current.. For that, I would need a circuit board that regulates the voltage and switches off the current when the battery is fully charged.
I'd like to try and get all the required circuitry to as close to 1mm in thickness as possible.
I am aware that pcbs can get as thin as 0.15mm. I'm curious as to what a realistic thickness would be with a charge controller IC attached as someone has told me that that would be the limiting factor.
Is http://www.mouser.com/ProductDetail/Fairchild-Semi... a charge controller? It doesn't seem like they get really thick.
Thanks.
1 AnswerEngineering9 years agoprintable circuit board?
I'm curious as to how thin a printable circuit board with all the components, such as resistors and capacitors, can be. It seems like extra thin pcbs can be as thin as 0.15mm. Do resistors and capacitors get that thin as well?
I pretty much don't know anything about electric circuits, so please bare with me.
I'm basically trying to build a USB charger for a 3.7v lithium battery. I'm aware that USB delivers a 5v current so there needs to be some sort of current regulator. My question is, based on the amount of current that is traveling through the circuit (several 100 mA?), approximately how thin can the pcb get with everything attached to it? I'm guessing that there are capacitors and regulators that are less than 1mm, but I'm assuming that the capacity of those capacitors would be too small for my particular needs.
Besides the current regulator, I'm thinking that some sort of switch would also be needed within the circuit to prevent the battery from being overcharged. How would this affect the overall thickness of the board?
Any input or advice will be greatly appreciated.
Thanks
1 AnswerEngineering9 years ago