Le 4 mai 2021, la plateforme Yahoo Questions/Réponses fermera. Elle est désormais accessible en mode lecture seule. Aucune modification ne sera apportée aux autres sites ou services Yahoo, ni à votre compte Yahoo. Vous trouverez plus d’informations sur l'arrêt de Yahoo Questions/Réponses et sur le téléchargement de vos données sur cette page d'aide.
justme
How do I send text from a textbox from the web page to the server?
I can but if the text has a & or = in it the server does not get the full value.
Example:
the textbox has a name of "name" and the value in the text box is "notme&myname=justme"
When submitted the string is:
name=notme&myname=justme
This looks like two key/value pairs to the server so the name value becomes notme instead of the entire text box value. How can I send the entire value entered? Is there a way to put the value in quotes or something?
3 réponsesProgramming & Designil y a 4 ansSSL certificates for multiple web enabled devices?
I m developing a device that has a web server and uses SSL. There will be 100 s or 1000 s of these out there (so the salesman says). They will be on a private network, but how does the certificate work for this application?
Do I need a CA signed certificate for each one? Can I somehow use a shared certificate?
The customer will be setting the IP address of the device when they buy it, so I dont know in advance what it will be. It also wont have a domain name since it isnt a "real" web site, just an IP Address.
I have the SSL working and can generate a self signed cert, but the browser crys about it and says its not secure.
How can I make the browser happy without buying a cert for every device?
1 réponseSecurityil y a 4 ansDo I have to claim a capital loss on 1040 line 13 If I had a loss?
5 réponsesUnited Statesil y a 4 ansPower company installed a smart meter and it was making clicking noises. Electricians?
It sounded like a relay chattering and I could hear it louder from my main power panel which is on the other side of the wall from the meter. I had them try another one and it did the same thing. Then I had him put the old analog meter back in, and the noise went away. He didn't know what it was and called his supervisor who never showed up. I still have the old one in but I was wondering if any electricians have ever come across this problem and have an idea of what was clicking or causing the problem. There are no relays in the panel and no breakers tripped or anything. No power surges or anything (no lights flickering). I didn't look at the voltage (probably should have).
1 réponseMaintenance & Repairsil y a 6 ansJava: String and using the split function?
OK, Im trying to split a string containing an IP Address into the 4 byte address.
Here is my code:
getIP(String st){ //st contains "192.168.1.21"
String[] var = st.split(".");
...
After the split, var has a length of 0. WHY???
If I change it to:
String[] var = st.split("1");
...
I get what I would expect with var having a length of 4 and each string containing:
var[0] = ""
var[1] = "92."
var[2] = "68."
var[3] = ".2"
Can you not use the dot (.) character to split a string???
3 réponsesProgramming & Designil y a 7 ansJava: How to use an array of structures (sorry, classes)?
Im not an expert when it comes to Java, but have been writing C/C++ code for many years. So what I need to do in java is create an array of structures and be able to use it in my code.
OK, in C/C++ I would do it this way (and I will simplify it):
typedef struct mystruct{
char name[20];
int age;
};
....
in main:
mystruct People[20]; //this creates an array of 20 structs.
People[0].age = 40;
strcpy(People[0].name, "justme");
etc...
How can I do this sort of thing in Java? Some sample code for doing the above example would be nice.
This is what I tried in Java:
class myclass{
String Name;
int age;
};
...
myclass People[] = new myclass[20];
But if I try:
People[0].Name = "justme";
I get a null pointer exception. What am I doing wrong?
3 réponsesProgramming & Designil y a 7 ansWhere is section 179 expense reported on Illinois tax forms?
My Schedule K-1-P Step 4 line 31 shows -817.00 (column A and B) and is a section 179 expense. Where do I report this on my Illinois tax forms? Is it added on Schedule M Step 3 Line 13 or somewhere else?
2 réponsesUnited Statesil y a 7 ansDo dogs get liver spots?
My 11 year old was groomed yesterday, and today while rubbing his belly I noticed what look like liver spots (like old people get) around his penis area and below his butt. They are quite dark, but dont stick out or have any unusual texture. They just look like dark spots on his otherwise normal skin. I'm thinking it isnt anything to be concerned about, but just wondering.
He is due for one of his shots next month so I'll bring it up to the vet then (unless everyone here screams at me to get him checked NOW).
He's my first dog so I never dealt with a dog getting old before.
5 réponsesDogsil y a 7 ansWhere is the DANG spell checker in this new YA?
When I answer a question, the old YA automatically showed if you had a misspelling and you could EASILY do a spell check. Where is it in this new CRAPPY YA??
2 réponsesYahoo Answersil y a 7 ansPOST cgi-bin/php... I found this in a Wireshark trace and was wondering what it is?
I have been using Wireshark to capture Ehternet traces while I develop a web interface for a micro, and came across the trace below. BTW I have my router set up to forward port 80 to the micro, and can monitor traffic to / from the micro. I put spaces in the gibberish so YA doesnt truncate it, so ignore the spaces in the below message.
POST /cgi-bin/php/ %63%67%69%6E /%70%68%70?%2D%64 +%61%6C%75
%6F%6E+%2D%64 +%6D%6F%64+%2D %64+%73%75%68% 6F%6E%3D%6F
%6E+%2D%64 +%75%6E%63%74% 73%3D%22%22+%2D %64+%64%6E
%65+%2D%64+% 61%75%74%6F% 5F%70%72%%74+% 2D%64+%63%67
%69%2E%66% 6F%72%63%65% 5F%72%65%64%69%72 %65%63%74%3D
%30+%2D%64+ %74%5F%3D%30 +%2D%64+%75%74 +%2D%6E HTTP/1.1\x0d\x0a
Host:localhost\x0d\x0a
Content-Type: text/html\x0d\x0a
Content-Length:1\x0d\x0a\x0d\x0a
a\x0d\x0a
Is there any way to decode what this is? Im assuming its some kind of PHP script or something.
Any ideas on what it is? I have no doubt its from some hacker, but I'm just curious as to what exactly they are trying to do.
2 réponsesProgramming & Designil y a 7 ansHTTP Header Content-Length question?
Im capturing traces using WireShark and I have a question about the basic syntax for the items in the header (Content-Length, Accept, Host, etc).
The syntax I see is:
Content-Length: 10/n/r for example
Are the fields case sensitive (must be as above) or can it be:
content-length: 10
Also is the space between the : and the length (10) required or can it be:
Content-Length:10
I need to parse these fields and I need to know this.
1 réponseProgramming & Designil y a 7 ansDog trainers or someone knowing about dog behaviour. 11 year old dog meeting 12 week old pup?
I have an 11 year old male schnauzer that is good with other dogs and loves meeting them. My friend just got a 12 week old male schnauzer, and we introduced them yesterday, and it seemed to go quite well. The 11 year old was very interested in the pup, and the pup had no problems with the older dog.
They will be getting together quite often from now on (sometimes for several days at a time) and I just want to know if what I observed during their first meeting is OK or is there anything I should be concerned about and not allow.
The older dog was sniffing the pup quite often and sometimes licking him and I want to know what this means. Im assuming it means the older dog is accepting the pup into the pack, and looking after him, (although I think it was excessive).
The other thing is the older dog was sometimes showing dominance over the pup (humping motions). THIS is the thing I am unsure about. Is this a good or bad thing? Should we correct the older dog when he does this or allow it? Could allowing it cause problems in the future or would it make the pup (when full grown) be more respectful of the older (and much less energetic) dog?
Basically, is the sniffing / licking OK? Is the show of dominance OK?
4 réponsesDogsil y a 8 ansWeb page question. Populating user data in a page.?
I have a web page in a microprocessor that needs to show the current user settings in the micro (the settings can be changed through the page also, but Im good with that part). I have it working, but I was wondering if there is a better way of doing it. Im fairly new to HTML/Javascript, and as far as I can tell, I can only use GET or POST messages from the page to the micro.
What I do now is send the page out, and when its loaded, send a POST message requesting the data. When the data is received by the page, it populates the fields.
So in the web page I have this:
window.onload=getdata;
function getdata(){
... im skipping some code here because it doesnt matter
var u="setup.cgi?sid="+Math.random();
r.open('POST',u,true);
r.onreadystatechange=function() {rply(r);};
r.send(v); //v is '0', which I use to indicate I want the user settings
}
Is there a better way? I can only use HTML and Javascript as far as I can tell. I dont know if the RTOS will do any other language, besides I dont know them anyway.
2 réponsesProgramming & Designil y a 8 ansWhat languages do I need to know to make an e-commerce web site?
I know C/C++ and am quite good with them, but know NOTHING about doing web pages!
I plan on learning myself (Its just a hobby right now), but don't know the different languages needed or what tools to use (preferably free tools). Can someone give me an idea what a fairly simple e-commerce site would entail (accepting credit card orders or maybe paypal). Maybe a shopping cart or something also, along with shipping information (optional).
Basically, I want a web site that has pictures and descriptions of the items for sale, and the ability to either add to a shopping cart or just order with out the cart. Accept credit card info (and verify its valid), maybe email me with the order info so it can be shipped. Im not sure how all this works so info on the process would be helpful.
Remember, This isn't for some fortune 500 company! Its just something small and simple. For instance, suppose I wanted a web site to sell items in my own home (not what Im doing, but something small like that).
Don't tell me to use ebay or craigslist, because I want to learn how to DEVELOP the website, not necessarily SELL items.
P.S. My timeframe for learning is unlimited, so if it takes me a several years, so what.
4 réponsesProgramming & Designil y a 9 ansHow do I get rid of the stupid F'ing SPANISH ads on Yahoo?
Im sick of seeing spanish ads on yahoo! I dont speak spanish and have no desire to. How can I block or turn off ads in spanish?
2 réponsesMy Yahooil y a 9 ansSchedule K-1-P Illinois replacement tax deducted?
OK, On my schedule K-1-P line 33 says "Illinois replacement tax deducted" and has the same amount in column A and B.
What the F do I have to do with this for my Illinois taxes? Does it go on schedule M somewhere? If so, where? If not, where does it go? Can I just ignore it?
Its the only thing I have left to do and have never had an amount here before so I have NO clue!!!.
2 réponsesUnited Statesil y a 9 ansQuestion for anyone that has taken a cruise out of Miami?
What is the best way to get to the airport from the cruise terminal? Carnival offers shuttle service but its $16. pp (2 people = $32.). Would it be better (cheaper) to just take a cab? Im guessing they have plenty of cabs available when the ships pull in. What do they charge for 2 people? Any insight would be helpful.
3 réponsesCruise Travelil y a 9 ansWhere to stay at Wisconsin Dells?
Two adults (40's) planning a 3 night vacation to Wisconsin Dells in mid September and was wondering where to stay. Don't need the romantic crap or anything, just something that would be good for adults. Which water park would be best for adults and not too crowded. I was thinking of staying at either Atlantis water park hotel or Mt. Olympus w/p.
Any other suggestions are welcome, just not to expensive ($300 - $500 range). BTW. We dont want some place cheap and cruddy either. Some place that is nice, maybe a little upscale.
3 réponsesChicagoil y a 10 ansIs there any way to get Microsoft Visual Studio 6.0 to run on windows 7?
I developed some apps under MSVC 6.0 and still need to support those apps. Is there any way to get MSVC 6.0 to run on this P.O.S. windows 7? XP machine died so I had to get a new one, unfortunately it has Win 7.
3 réponsesProgramming & Designil y a 10 ansCan I install windows XP on this P.O.S. windows 7 machine?
Most of my development software and custom programs wont run under crappy windows 7. Can I somehow install windows XP on it and select which windows I use at startup?
2 réponsesSoftwareil y a 10 ans