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.
Cool Inferno
Knowledgeable in C, C++, C#, Java, JS, MySQL, PHP, HTML, CSS, & BASIC - among other languages.
Setting up Local UPnP Network?
I am currently connected to university internet. I have Spotify as well as an iPod Touch (5th gen) and am looking to sync my local files to my device. As specified, I connect both to the university wifi and open the Spotify app on both. However, my device is not being recognized. I believe this is because the school wifi has UPnP disabled and thus my computer is unable to discover my iPod for syncing. I am hoping that I can circumnavigate this by somehow creating some sort of local, ad-hoc network on my computer with UPnP enabled that I can then privately connect to with my iPod Touch. Any links or instructions as to how to do this would be very much appreciated.
1 AnswerComputer Networking7 years agoSample API Request Call?
I'm currently using the Microsoft.AspNet.WebApi.HelpPage Nuget package to document my API. I'm looking for a functionality that I can create that will not only display API info, but also enable the user to perform a test call to "try it out." I'm looking for something very similar to the "try it out" feature in Swagger.
I'm wondering if anyone knows of any tutorials or implementations already out there for doing this in WebApi.HelpPage. Thanks!
1 AnswerProgramming & Design8 years agoMVC 4 Web API XML Documentation Generator?
I have an ASP.NET MVC Web App developed in C#. I currently have API functions scattered all about, but commented using the standard C# XML schema. I'm looking for some tool that will allow me to create a semi-interactive API documentation page. I've looked into Swagger - which looks great - but I couldn't figure it out for the life of me. I also tried ApiExplorer ( http://blogs.msdn.com/b/yaohuang1/archive/2012/05/... ), but that only grabbed info from ApiController (which looks like a built in class), rather than functions from my actual app. I'm desperately looking for any tools that people know of that are capable of taking my RESTful functions with XML comments and create a friendly API gui documentation schema. I've had zero luck finding anything.
Something similar to Swagger ( http://petstore.swagger.wordnik.com/ ) that a simpleton such as myself could understand how to implement would be awesome.
If you don't know of anything that specific, just anything that can parse XML comments from code and display an HTML/JavaScript/whatever rendition of each function would still be amazing.
Innumerable thanks to anyone who can help me.
2 AnswersProgramming & Design8 years agoUpload Permissions Ubuntu Server?
Hi all,
I have a server set up that I can SSH into just fine - both locally and remotely. However, when I try to manage the server via FTP, some things go wrong. Most files I am able to put and get just fine. The problem arises when I mount an external hard drive to home/username/storage/HD1 (a folder I created). The drive mounts just fine and I can get any file from it. However, when I attempt to put files, I keep getting permission denied errors. I have attempted chmod to give all users and groups rwx access to HD! and its contents, but that is denied - even if I try to make this edit after sudo -s to act as root. I'm stuck as to how I enable uploading to my mounted drive. Any resources or help is much appreciated.
Thanks so much.
1 AnswerComputer Networking8 years agoLimiting PHP Include/Require Access?
In order to make editing my site easier on my developers, I've implemented a basic structure including a variety of different php files that I include within my generic pages. However, in the interest of security, I don't want someone who figures out where these files are stored to be able to include them in their own script. Is there any way to limit a php file to where it may only be included within the current domain?
Thanks for your help!
2 AnswersProgramming & Design8 years agoMySQL Troubles Database/phpmyadmin Setup?
I'm currently in the process of setting up my own server so that I no longer have to deal with stupid query limits from my current host. In doing so, I am attempting to set up remote access to my MySQL databases.
Using phpmyadmin, I created a database entitled "db_1". However, when I SSH into my server and run mysql and command "show databases", none show up (not even the default system ones of mysql, phpmydamin, information_schema, etc.) I want to open this "db_1" to remote access, but I can't do this if it's not showing up under mysql in my terminal. Any ideas as to what's wrong?
Thanks for the insight. :)
1 AnswerProgramming & Design8 years agoStatic Routing My Server?
Hey guys,
I have set up a server in my home running Ubuntu 12.04 LTS. I can access the server itself via SSH locally at address xxx.xxx.x.xx, as it is hooked up to my router. However, I want to be able to access my server remotely via ssh and the web (so ports 22 and 80). I have searched long and hard and the best I have is that I have to give my server a static LAN address and then use DMZ or Port Forwarding. My problem lies within the address assignment. Under my router's IP, yyy.yyy.y.y, I have a tab named "Static Routing." Here it asks for Destination IP, Subnet Mask, and Gateway IP. I have no idea what to input into these in order to give my server a static LAN address that I may then set up to be port forwarded or used in a DMZ host.
Any help in clarifying what these mean and what I need to do with them would be greatly appreciated. Thanks so much for the help!
1 AnswerComputer Networking8 years agoPHP Sessions Easy Question?
I'm feeling that I'm just having a brain fart right now, but this is driving me nuts! I'm simply trying to access a session variable from one page to the next. To test this out, I've made pages, test1.php and test2.php. The code for each is short and simple:
test1:
<?php
session_start();
$_SESSION['name'] = "default";
echo "<html><body>Name = " . $_SESSION['name'] . "<br /><a href = 'test2.php'>Next</a></body></html>";
?>
test2:
<?php
session_start();
echo "<html><body>Name = " . $_SESSION['name'] . "</body></html>";
?>
Now, test1 should by default display "Name = default" It does. On page 2, I'm looking for the same, but I'm getting "Name = "
I was hoping someone would be able to see what easy mistake I've made that I'm just not catching right now. Thanks for your help!
3 AnswersProgramming & Design9 years agoWhat is the Name of this Piano Piece?
The piece starts at 1:10 in the following video. I know I've heard it before, but I can't, for the life of me, figure out what it is! Thanks for the help.
1 AnswerClassical9 years agoProbability Puzzle!!?
Hey guys,
I was looking for some help with the following challenging, albeit interesting, problem:
Suppose we have 8 children in a classroom, and we want to assign each of them a “Secret Santa.” Naturally, we don’t want to assign any kid to be his or her own Santa. How many distinct legal arrangements are there?
Here's the catch: these kids can be split into subgroups consisting of 2+ members. For example, we could split the kids into two groups of three and a group of two. Each group can only exchange between its members and must do so legally.
Once this is factored in, I see that this becomes a bit of a monster.
I'm also wondering if there an expression that solves the problem for n in general. i.e. As n gets large, what is the probability that any Secret Santa arrangement will be a legal one?
Any and all guidance and help is appreciated. Thanks for your efforts!
2 AnswersMathematics9 years agoLucas/Fibonacci Proof By Induction?
Hey guys,
I've been having so many troubles with this problem and I'm hoping that you could give me some guidance. The problem is to prove the following by induction:
F(2n) = F(n)*L(n)
Here, F(n) is the Fibonacci Sequence and L(n) is the Lucas Sequence. I have about 3 paths I've gone down and none of them end well. If it helps you, I have a side proof to show that L(n) = F(n-1) + F(n+1), so that can be used if needed.
I appreciate any help you can give with this problem.
Thanks!
2 AnswersMathematics9 years agoDual Monitor, One VGA Port?
Hey guys,
I currently have two monitors that I'm wanting to set up to extend my laptop's screen. I have an i5 processor with a GPU capable of running 2 displays, thus I'm wanting to port my display to the two monitors (and then just not have a display on my actual laptop when it's plugged in). The problem is that I want to have these displays be EXTENSIONS of each other and not just duplicates. However, I only have one VGA port on my laptop. I would appreciate links and suggestions as to how I should go about displaying an extended screen of my laptop on these two monitors with just the one port. Thanks! :)
6 AnswersMonitors9 years agoVisual Studio C++ 2010 Professional?
I'm trying to make the switch from EMACS to Visual Studio and am wanting to make life a little easier. What I'm wanting is to have it where every time I create a new .cpp, it is automatically filled with the following, since every .cpp I make contains this and I'd rather not have to type it out each time. Is there any way I could do this? Perhaps make a template? I'd appreciate some help here.
//----------------------------------------------------------------------------
// Documentation
//----------------------------------------------------------------------------
// Filename:
// Last Edited:
// Author:
// Email:
// Description:
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Directives
//----------------------------------------------------------------------------
#include <iostream>
#include <cstdlib>
#include <string>
#ifdef _WIN32
#define _USE_MATH_DEFINES
#include <math.h>
#else
#include <cmath>
#endif
#include <cassert>
using namespace std;
//----------------------------------------------------------------------------
// Named Constants
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Prototypes
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Function Definitions
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
int main()
{
return EXIT_SUCCESS;
}
//----------------------------------------------------------------------------
2 AnswersProgramming & Design9 years agoDisk Integration to find Moment of Inertia?
A disk of radius r_o and mass m has a hole in the center of radius r_i. It is spun around its center point, much like a CD. Use calculus to derive an expression for the moment of inertia of the disk/ring.
After a number of steps, I ended up with I = .5πρh(r_o⁴ - r_i⁴)
However, this seems to be wrong and I am not quite sure where, exactly, I went wrong. Any help is appreciated. Thanks. :-)
3 AnswersPhysics1 decade agoΣτ = Iα - A Physics Pulley Problem?
I cannot figure this out for the life of me. Any help is appreciated:
A pulley has a radius of 2.70 m and a moment of inertia of 39.0 kg·m^2. A hanging mass is 4.20 kg and it exerts a force tangent to the edge of the pulley. What is the angular acceleration of the pulley?
The answer is 1.60 rad/s^2
I am in the dark here - I know that torque = F x F_t in this case, where F_t = tension, but how to find that, I do not know.
1 AnswerPhysics1 decade agoPhysics Energy/Universal Gravitation Mix?
The magnitude of the attractive force of gravity between two bodies is F = GMm/r^2. G is a constant equal to 6.67×10−11 N·m^2/kg^2, M and m are the masses, and r is the distance between the centers of the two bodies. The gravitational force of a star of mass 1.14×1032 kg and radius 3.48×109 m is the sole force acting on a rocket of mass 1.25×106 kg. The rocket is stationary relative to the star at distance of 1.85×1011 m. Sadly, the rocket has exhausted its fuel, and it will be pulled to its doom inside the star. How fast will it be moving when it reaches the surface of the star?
I keep getting 1.52 x 10^7 and cannot figure out where I went wrong. Your help is appreciated. Thanks. :-)
1 AnswerPhysics1 decade agoAP Physics Centripetal Motion?
Hey,
If you could please give me some guidance and steps to solving this, that'd be great!
You are at the carnival and decide to go on the swing ride. It is a high rotating platform from which swing seats hang like pendulums. As the platform begins to turn, your swing's chain does not stay perpendicular to the ground but angles out from the vertical. If your distance from the center of rotation is 10.5 meters and you go around once every 12.0 seconds, what angle does your swing make with the vertical?
Physics1 decade agoAP Physics is Killer?
Ok. So I'm just totally lost here. I have normal force as 1.97N according to my calculations; however, I'm confused as to how I calculate the frictional force; and therefore the coefficient of friction. I have frictional force equaling 2.0678 / sin17.92, which would make the coefficient wrong as heck and way too big. Anyways, could anyone shed some light here?
You decide to find the coefficient of static friction between a paper cup and an archaic paper textbook. Armed with a metric ruler, you place the cup on the edge of the book, and raise the edge of the book until the cup starts to slide downwards. The length of the book is 26.0 cm, and you need to raise one edge 8.00 cm before the paper cup starts sliding. If the cup has a mass of 211 grams, what is the coefficient of static friction between the cup and the book?
1 AnswerPhysics1 decade agoRussian Translation Please?
I would very much appreciate if you could translate the Russian words within the image:
http://www.deathdyinggriefandmourning.com/Death-&-...
I appreciate your help!
1 AnswerLanguages1 decade agoStoichiometry - Mg & Zn(NO3)2?
I've looked this over and my answer just doesn't seem right...
Here is my chemical equation:
Zn(NO3)2 (aq) + Mg (s) → Mg(NO3)2 (aq) + Zn (s)
I want to know how many mL of zinc nitrate I will need to react completely with 4g of magnesium. I keep getting around 820mL - but that seems way farfetched for a mere 4g! Any help would be appreciated. Please show your process if you can. Here is my presumably incorrect calculation:
(4.0g Mg)/1 ∙ (1 mol Mg)/(24.31g Mg) ∙ (1 mol Zn (NO3)2)/(1 mol Mg) ∙ (1 L)/(0.20 mol Zn(NO3)2 ) ∙ (1000 mL)/(1 L) ≈ 820 mL Zn(NO3)2
Thanks a lot!
1 AnswerChemistry1 decade ago