Friday, July 31, 2009

This is a joint PDF question. (c) Draw up a table showing the joint probability function Px,y(x,y) of X and Y.

a random variable Y has probability function P(Y=2)= 0.6, P(Y=3)=0.2 and P(Y=4)=0.2.


once Y has been observed, Y fair coins are tossed; let X denote the number of heads which are observed.





(a) Write downt the conditional expectation of X given Y= y, for each y=2,3,4.


hence express E[X l Y] as a function of Y.


(b) Find E(Y) and use this to calculate E(X).


(c) Draw up a table showing the joint probability function Px,y(x,y) of X and Y.


(d) find the marginal probability function of X and verify that the expectation of this distribution agrees with the value calculated in (b)

This is a joint PDF question. (c) Draw up a table showing the joint probability function Px,y(x,y) of X and Y.
.. X ....... 0 ................. 1 ................ 2 ................ 3 ............... 4


Y=2 . (.25)(.6) ...... (.5)(.6) ........ (.25)(.6) ............ 0 .............. 0


3 .... (.125)(.2) .... (.375)(.2) ...... (.375)(.2) ..... (.125)(.2) ...... 0


4 ... (.0625)(.2) ..... (.25)(.2) ... (.375)(.2) . (.25)(.2) . (.0625)(.2)








If y = 2, 0 head: 1/4 , 1 head: 2/4, 2 heads: 1/4 (then multiply 0.6)





If y = 3, 0 H: 1/8 , 1H: 3/8 , 2H: 3/8 , 3H: 1/8





If y = 4: 0H: 1/16, 1H: 4/16 , 2H: 6/16 3H: 4/16 4H: 1/16





Also, E[Y] = 2*.6 + 3*.2 + 4*.2 = 2.6


I had now given you the table. Multiply to get the values and use that to determine the rest of the answers. ©
Reply:a)





E[X|Y=2] = 0.5*2 = 1


E[X|Y=3] = 0.5*3 = 1.5


E[X|Y=4] = 0.5*4 = 2


E[X|Y=y] = 0.5*y





b)





E[Y] = 2*0.6 + 3*0.2 + 4*0.2 = 2.6





E[X] = E[ E[ X|Y ] ] = Sum over all y of E[X|Y=y]P[Y=y]


= 1 * 0.6 + 1.5 * 0.2 + 2 * 0.2 = 1.3





c)


These are all found using the binomial distribution and mulitplied by P[Y=y]





Y = y | 2_________3___________4_______total P[X= x]





X = 0 | 0.25*0.6____0.125*0.2____0.0625*0.2


X = 1 | 0.5*0.6_____0.375*0.2____0.25*0.2


X = 2 | 0.25*0.6____0.375*0.2_____0.375*0.2


X = 3 | 0_________0.125*0.2_____0.25*0.2


X = 4 | 0_________0___________0.0625*0.2





total P[Y=y]





to finish the table sum the columns to get P[Y=y] and sum the rows for P[X=x]


How long to ride a horse after having a c-section?

A month ago I had a c-section. I asked a question here and someone said not to ride my horse yet. Why is that not ok? I took my kids to the fair and was walking for 10 hours there. I went swimming aleardy with the ok from my midwife. I rode my horse a few times and push my stroller up a small hill. I gave my seven year old a piggy back ride. The c-section DID knock me out and I coulnd't move or walk far at all. But that was 4 weeks ago today. I feel great now. So why in my last question was I told not to ride my horse? It does not hurt. If I felt any pain or pulling I would stop... I have pain at the incision at random times throughout the day, but I was led to believe that is normal.

How long to ride a horse after having a c-section?
If you feel you can handle it go ahead just be very careful. I think if can give your 7 year old a piggy back ride then you should be able to ride a horse
Reply:Well to tell you, you can develop adhesions if you do not take care of yourself. I cannot believe you gave your 7 year old a piggy back ride. That is just insane. Besides getting adhesions, you can develop a hernia.
Reply:try having a C section WHILE riding the horse!!!!!! jk idk ask your ob
Reply:ask your OB.

trading cards

How can I make some simple graphic game in C, char to move up / down and shoot stuff.?

I want to make a simple game in C ( not C++ ) with a simple spaceship going up and down and to shoot other ships that com from the right of the screen. Everytime I shoot a ship, I should get a point. Everytime I shoot a ship another one should appear. I should have 3 lifes. Random speed for ships. Whenever a ship gets past me, I loose a life. I don't care about colours yet.

How can I make some simple graphic game in C, char to move up / down and shoot stuff.?
Do you want to make a game yourself or want to get it made by others?





You have to first learn basic programming with C and only then you can understand graphics programming with C.





Spend some time on learning C and then you will get some ideas of how to do wonderful things with C.


"Guess the number" in C#?

Hi. I created a website in c# (using visual studio), that contains a simple "guess the number" game. I have a textbox, a button and a label. It works so far only if I specify the number that needs to be guessed.


So the problem is - I want to generate a random number from 1 to 100 let's say, but as the user clicks the button, the page refreshes, and a new number is generated.


I want to keep the randomly chosen number until the user guesses it or quits. How can I fix this?

"Guess the number" in C#?
Use the session-hash to store a number.





Example





session["secretNumber"] = GenerateSecretNumber();





On you page, you should read the number from the hash table.





Where/when to create?





1) When a new session is started; or


2) When no session-key is found; and/again


3) When the visitor guessed it


MAKING A C.D from my own discs to computer . how? please help.?

i am having a party and would like to make up a load of c.d's rather than hiring a d.j.


also i dont want to be messing about with discs all night long..... i want the music to be fluent, and enjoy ourselves and on just put the discs on random play. i dont know how to transfer some music from my own collection to empty discs on my computer





can anyone please help me with this.


i would appreciate it in simple terms, i am not an expert on computers!


thank you for your time.

MAKING A C.D from my own discs to computer . how? please help.?
You need


blank CDs preferably CD- RW


A CD writer








Put the CD you want to record into the CD drive and click copy CD. When it finishes copying, it will eject and then you can put in the blank CD and it will copy the music onto the blank CD
Reply:nero rom is good download it for free, use limewire again free to find all the music you want and nero to make the discs
Reply:i prefer to use nero.. try nero it is a good burning software..
Reply:well basically if you have your music on your computer already:


1.) insert blank cd in to computer.


2.) a box should come up asking you what you want to do with the cd. Just cancle it out and we'll go about it another way.


3.) with the cd still in your computer, go to start


4.) click on "my computer"


5.) there should be an icon of a cd that is blank. double click on it.


6.) it should open up an empty folder. this is the blank cd.


7.) now open the folder with all your songs in it, and drag and drop the songs in to the folder of the blank cd. (make sure you only put 20 songs at most, as there is a limit of course to the ammount of time put on the cd)


8.) when you are done, it should have an option to burn the songs on to the cd.








try that and tell me how it goes.








If you are copying music from your cd's on to blank cd's you will need to first put in the cd you wish to "rip." (the cd with music on it) then an option box should come up. You choose to rip it on to a blank cd, but only check off the songs you wish to have on the cd. However an easier way would be to simply transfer the music from the cd on to your computer, and then follow the steps above.


Statistics. Please check (b) - (c). Need help with (a).?

Let x be a random variable that represents the incubation time for Allen hummingbird eggs. The x distribution has a mean of µ = 16 days. Let us assume that the standard deviation is approximately σ = 2 days. The distribution of x values is more or less mound-shaped and symmetrical but not necessarily normal. Suppose that we have n = 30 eggs in an incubator. Let x be the average incubation time for these eggs.





(a) What can we say about the probability distribution of x? Is it approximately normal? What are the mean and standard deviation?





(b) What is the probability that x is between 16 and 17 days?


µ = 16 σ = 2 n = 30


P(16 %26lt; x-bar %26lt; 17)


= P(xBar %26lt; 17) - P(xBar %26lt; 16)


17 – 16 = -1


-1 / (2 / √30) = 2.74


16 – 16 = 0


0 / (2 / √30) = 0


0.9969 – 0.5000 = 0.4969


There is a 50% chance that the eggs will hatch between 16 and 17 days.





(c) What is the probability that x is less than 15 days?


P(Xbar %26lt; 15)


= 15 – 16 = -1


-1 / (2 / √30) = -2.74


= 0.0031

Statistics. Please check (b) - (c). Need help with (a).?
(a)





we can't say anything about the distribution of x itself other than what has been said in the problem statement. The central limit theorem tells us that the mean of any sample from any distribution with finite mean and variance will be approximately normal for a sufficient sample size. Since the distribution of x is mound shaped and the sample size is at the empirical magic value of 30 it is very plausible the mean will behave as a normal random variable.





The Central limit theorem is:


Let X1, X2, ... , Xn be a simple random sample from a population with mean μ and variance σ².





Let Xbar be the sample mean = 1/n * ∑Xi


Let Sn be the sum of sample observations: Sn = ∑Xi





then, if n is sufficiently large:





Xbar has the normal distribution with mean μ and variance σ² / n


Xbar ~ Normal(μ , σ² / n)





Sn has the normal distribution with mean nμ and variance nσ²


Sn ~ Normal(nμ , nσ²)





The great thing is that it does not matter what the under lying distribution is, the central limit theorem holds. It was proven by Markov using continuing fractions.





if the sample comes from a uniform distribution the sufficient sample size is as small as 12


if the sample comes from an exponential distribution the sufficient sample size could be several hundred to several thousand.





if the data comes from a normal distribution to start with then any sample size is sufficient.


for n %26lt; 30, if the sample is from a normal distribution we use the Student t statistic to estimate the distribution. We do this because the Student t takes into account the uncertainty in the estimate for the standard deviation.


if we now the population standard deviation then we can use the z statistic from the beginning.


the value of 30 was empirically defined because at around that sample size, the quantiles of the student t are very close the quantiles of the standard normal.





== -- == -- == -- == -- == -- == -- ==





(b)





In this question we have


Xbar ~ Normal( μ = 16 , σ² = 4 / 30 )


Xbar ~ Normal( μ = 16 , σ² = 0.1333333 )


Xbar ~ Normal( μ = 16 , σ = 2 / sqrt( 30 ) )


Xbar ~ Normal( μ = 16 , σ = 0.3651484 )





Find P( 16 %26lt; Xbar %26lt; 17 )


= P( ( 16 - 16 ) / 0.3651484 %26lt; ( Xbar - μ ) / σ %26lt; ( 17 - 16 ) / 0.3651484 )


= P( 0 %26lt; Z %26lt; 2.738613 )


= P( Z %26lt; 2.738613 ) - P( Z %26lt; 0 )


= 0.996915 - 0.5


= 0.4969151





== -- == -- == -- == -- == -- == -- == -- ==





(c)





Find P( Xbar %26lt; 15 )


P( ( Xbar - μ ) / σ %26lt; ( 15 - 16 ) / 0.3651484 )


= P( Z %26lt; -2.738613 )


= 0.003084950

our song

Help with C++?

Help with Basic Arrays and Pointers Bloodshed Dev-C++?


Start each animal at square 1 of 70 squares (each square represents possible position. Use variables to keep track of position and if animals slip before square 1 then move them back to square one. Generate %age's by using a random number generator in the range of 1%26lt;= i %26lt;= 10.





Tortoise: Fast plod 1%26lt;= i %26lt;= 5 moves 3 squares right


Slip 6%26lt;= i %26lt;=7 moves 6 squares left


Slow Plod 8%26lt;= i %26lt;=10 moves 1 square right





Hare: sleep 1%26lt;= i%26lt;= 2 no move


Big Hop 3%26lt;= i%26lt;= 4 9 squares right


small hop 5%26lt;= i %26lt;=7 1 square right


Big Slip i == 8 12 squares left


small slip 9%26lt;= i%26lt;=10 2 squares left





Need to print a 70 position line on each loop showing position T (Tortoise), H (Hare). If both land on same square print "OUCH" at that position. all print position should be blank except for T, H and ouch. After each loop test if either animal %26gt;=70 if so print who wins and terminate the program.

Help with C++?
You need a condition to reset the animals to square 1 if they are %26lt; 1.


Also, the while loop test for (hNum %26lt; 70 || tNum %26lt; 70) is not right since you are continuing the race even after one of them has won it. You need %26amp;%26amp; instead with appropriate final print statements.


Your "cout" statements in the for loop needs to account for a space if there is nothing in that position. You also need appropriate "endl"s.


Keep in mind that due to random number usage, the animals might take forever to reach the end line.
Reply:Could not figure it out, if you are still stuck, may be you can contact a C++ expert live at website like http://oktutorial.com/ .


MAKING A C.D from my own discs to computer . how? please help.?

i am having a party and would like to make up a load of c.d's rather than hiring a d.j.


also i dont want to be messing about with discs all night long..... i want the music to be fluent, and enjoy ourselves and on just put the discs on random play. i dont know how to transfer some music from my own collection to empty discs on my computer





can anyone please help me with this.


i would appreciate it in simple terms, i am not an expert on computers!


thank you for your time.

MAKING A C.D from my own discs to computer . how? please help.?
well if your using windows, i would copy the music to a folder on your hard drive.





as long as you have a CD writer in your machine you just right click the folder and copy to what ever drive your CD writer is





simple as that





regards x Kitti x





PS if xp because it will have writing software all ready installed on your PC
Reply:Why not just connect your pc to your stereo and play all your selected tunes from jukebox type software??





All it is is one lead ...two connectors on one end for stereo input (auxillary) and one connector on the other end for the soundcard.





That is a much better solution in my opinion.


Windows media player,realplayer or even winamp can be used for your playlist.


Possible c-section???

About 4 weeks ago I posted a question regarding some complications. The doctor and one of the P.A.s kept saying they were normal but they didn't feel normal. I finally switched doctors. (I am now seeing the doctor that runs the office instead of a random doctor they hired). I was supposed to see him yesterday but he was held up at the hospital. I saw a different P.A. I had never seen her before. I told her all the problems I have been having. She looked at my chart and then asked if I knew that I had a low lying placenta. I had no idea. She said they should have told me after my ultrasound 9 weeks ago! Apparently that is the cause of all my problems!!!


Well now I have a reason for all the issues. But I have a new problem. They are going to do an ultrasound in about 6 weeks to see if the placenta has moved. If it hasn't they will have to schedule a c-section. I'm terrified of being cut open. But I wouldn't be able to give birth vaginally because I could bleed to death.

Possible c-section???
I had a emergency c-section two months ago. Its not the birth experience that I had envisioned.... but it wasn't as bad as I had feared. You will be awake.... but you will be numbed. You won't feel any pain during the section. They will put a screen up so you don't have to watch them cutting you or pulling baby out. Once you hear that baby cry for the first time.....nothing else matters. They will continue to give you medication to control the pain while in the hospital and also send you home with some. It hurt after wards...... but not my incision...... just my whole stomach was really sore. Its hard for the first few days.... but you'll start to be able to get around better and better each day. It only took me a few weeks until I was feeling pretty good again.


If you do need a c-section..... don't be scared.... your having it because it is the safest way for you and baby to go through delivery. Also...... be sure to arrange to have some extra help while in the hospital and also after you go home. If will be hard to get up and down for at least a week. Don't worry..... I was terrified of having to have a c-section..... but when its happening you don't even think about it....... its goes by fast and next thing you know..... your holding that beautiful baby in your arms.
Reply:I had 2 c-sections my first one I healed fast and quick they do not put u asleep u are awake through the whole thing but they do knumb u good before they do anything send me an email and I will talk to you about the c-section I have had 2 of them with in 18 months apart please I will talk to you and tell u all details please
Reply:DW has had two c-sections and loved them... didn't have to go through the pains of child-birth. Of course that ment the recovery pains lasted a little longer, but luckly didn't require much pain medication once we left the hospital (your mileage may vary).





With a scheduled c-section, it is most likely that they will give you a spinal block. That basically means you won't feel ANYTHING down there nor be able to move your legs for about 6 hours (so yes, you are wide awake during the procedure).
Reply:Before your cesarean section procedure, you will be given anesthesia to numb the pain. The doctor will then make either a vertical or horizontal incision in your abdomen and your uterus. After the incision is made, your baby will be delivered through it, and your placenta will be removed. After the cesarean section procedure, the incision will be closed with either staples or stitches.





After your baby has been delivered, your placenta will be carefully removed from your uterus. At this time, you may also receive Pitocin®, which is a drug that causes the uterus to contract and helps prevent serious bleeding. Your doctor will then close the incision on your uterus, and the incisions in your skin will be closed with surgical staples or stitches that will later dissolve on their own.





To know more about the c-section visit the source site yourself
Reply:Recovery hurts, and it will be 1-3 months before you feel 100% again, whereas with vaginal birth it's 2-6 weeks of mild recovery time. During surgical birth you don't feel pain, only tugging and pressure while they do the surgery and take the baby out. You get numbed with an epidural and stay awake usually. You can request pain meds during the hospital stay after that you control the dosage on. Low lying placentas often move up in late pregnancy, making vaginal birth possible. Good luck!
Reply:Ok instead of focusing on the c-section...chances of it moving up as the uterus grows is a very good possibility here was its "low lying" and not being called "complete previa"...theres a very high chance you wont need a c-section!





Good Luck!
Reply:I've had 2 c-sections. They weren't to bad. I was scared the first time but once I got out of it I did'nt think of the pain I was in or anything else except my daughter. Same with my son. It takes about a month or so to recover. The first couple of weeks you'll feel wierd and you will be in some pain, but if thats what it takes I think it's worth it. And so will you.


Good Luck!
Reply:It has been 15 months since my emergency c section and while I am back to normal so to speak I still have feeling missing where I was cut. The surgery was not bad at all. I was awake up till the point that the baby came out. Once he was out they knocked me out to close me up. Me and the baby had alot of issues that I wasn't aware of so I don't know if mine was just a different way of doing things. I am 6 months pregnant now and will be having another c section. Don't be scared just make sure you are comfortable with everything that is there. You will be fine. Good job with changing Drs. That was wise.


I want a program to open one of three (or more) text files at random when it runs.?

assume the files are named File1.txt, File2.txt and File3.txt. I was thinking maybe i could get a random number from 1 to 3 and use that in


ifstream file;


file.open ("FileX.txt")





is there a way a can change the X?


If not then please help me find a way to do this.


I would like to be able to do this with any number of files (3 or 30 or 300) so i dont want to use a switch. The only thing i want to have to change in the code is the range of numbers it should randomly select from. knowning what i know about c++ (which admittedly is not a whole lot) im pretty sure there is a way to do this.

I want a program to open one of three (or more) text files at random when it runs.?
Why not store the file names in a String array and have the random number used an as index, whatever it picks is the string that gets returned to open the file.
Reply:You can do this with a regular batch file. Create a file called launch.bat or whatever and add this to it:





@echo off


set /A maxfile = 4


set /A filenum = %random% %% %maxfile% + 1


File%filenum%.txt





Change maxfile to your maximum file number and run it. The maxfile variable is currently set to 4 so it will open a random file between File1.txt and File4.txt.








***UPDATED***





A batch file is just a regular text file, you run them as you would any other program i.e. there's no C++ involved. Just create a text file called launch.bat (or whatever you want to call it), copy that text into it and then run it as you would an exe or any other file (it needs to be in the same directory as all of your text files).





If you really do want to do it in C/C++ then this code will do the same thing. The key is the system() function, which is what you use to launch another application or file:





#include %26lt;stdio.h%26gt;


#include %26lt;time.h%26gt;


#include %26lt;stdlib.h%26gt;





const int maxfile = 4;





void main()


{


char command[32];





// initialize random number generator


srand((unsigned int)time(0));





// pick a random number


int filenum = rand() % maxfile + 1;





// create the filename string


sprintf(command, "File%i.txt", filenum);





// tell DOS to launch it i.e. open the text file


system(command);


}





*** UPDATED ONE LAST TIME*** :)





No probs, if you need any further clarification then feel free to email me.

flower pots

A set of 312 small wild birds caught at random was found to be composed of 102 males (M)?

A set of 312 small wild birds caught at random was found to be composed of 102 males (M), having sample mean wing length = 12.5 cm, with a standard deviation of 0.81 cm, and 210 females (F), with sample mean wing length 11.75 cm, and a standard deviation of, 0.74 cm. We propose to use this data to find out whether there is a difference between the male and female birds wing lengths








(a) Establish the null, and alternative hypotheses. Find the estimated standard error, ESE, for the sampling distribution.











(b) Find the two sample test statistics, Z, associated with M, and, F.











(c) Do you accept or reject the null hypothesis at the 10%, significance level?

A set of 312 small wild birds caught at random was found to be composed of 102 males (M)?
LARGE SAMPLE, TWO MEANS TEST, INDEPENDENT SAMPLES, NORMAL


DISTRIBUTION - SIX STEP PROCEDURE





1. Parameters of interest: "μ1" = "small wild birds, males, wing length " population mean, "μ2" = "wild birds, females, wing length" population mean





2. Null Hypothesis H0: (μ1 - μ2) = 0 (no difference between means)





3. Alternative Hypothesis H1: (μ1 - μ2) %26lt;%26gt; 0 (different means)





4. Sample Data "males" x1-bar = sample mean [12.5] s1=sample standard deviation [0.81]


n1=number of samples [102] "females" x2-bar = sample mean [11.75] s2=sample standard


deviation [0.74] n2=number of samples [210]





5. TEST STATISTICS from "look-up" Table Standard Normal Distribution


z1(males) = (12.5-population mean)/ 0.81 = ???


z2 (females) = (11.75-population mean)/ 0.74 = ???





H0: (μ1 - μ2) = 0 [CANNOT BE DETERMINED WITHOUT KNOWLEDGE OF "population mean"]





H1: (μ1 - μ2) ] %26lt;%26gt; 0 [CANNOT BE DETERMINED WITHOUT KNOWLEDGE OF "population mean"]





6: Conclusion: Both Null Hypothesis H0: (μ1 - μ2) = 0 and Alternate Hypothesis H1: (μ1 - μ2) ] %26lt;%26gt; 0 CANNOT BE DETERMINED WITHOUT KNOWLEDGE OF "population mean"].


HELP strange folders in c:\WINDOWS?

hi guys





i just got my computer formatted 3 days ago from a virus and went into c:\windows and at the top are all the light colored folders with blue writing insead of black and there are 119 of them and they are named ill list 3 random ones


and i dont remember seeing them there any other time


$NtUninstallWIC$


$NtUninstallKB925398_WMP64$


$NtServicePackUninstallNLSDownlevelMap...


in llight blue and the folders are sort of see through (means they are hidden) and in them they all contain a folder called


spuninst


and in it is an application called spuninst and in the description it says microsoft service pack uninstall


so im wondering if i can delete these files





also after i went into control pannel folder options and ticked "show the contents of system folders"


i got some more folders in c:\ 3 are CONFIG IO MS DOS


and all are 0 bytes can i delete these ?


also there are


NTDETECT type ms-dos app


boot type configureation settings





experts plz

HELP strange folders in c:\WINDOWS?
Yes these are normal :) You need not worry. The files found on the root of your Hard Disk are normally unused - however do NOT delete these.





With regards to those folders found in C:\Windows... The text is in blue because it means that their contents have been compressed. Compress a folder yourself and the text is changed to blue. If the text is green it means that the contents are encrypted. Don't worry about that ;) Those folders are about Windows Updates and Service Packs.... Hope this helps ;)
Reply:those are the types of files/folders that have been used by the RAM. sometimes when you work on something and the computer shuts down, these kind of files are being created by the computer. this is only to protect the original file.
Reply:its ok these folders do exist , dey *** with ur OS





dnt worry abt it


B/c and period question.......scared out of my mind...?

okay i started my period or so i thought april 28th but it was so light started with spoting and then a litte blood for a few days only a little blood on the pad maybe enough for a pantey linar if even that.


im stressing out my back/chest and boob's hurt before the bleeding started and some light cramps im so scared out of my mind i know i can be pregnant and I am very moody cry at random times for little **** I can't tell my man **** he's dumb he just say's we'll find out month i live with him so we have sex like once a day unprotected .


could i be pregnant ?? got off b/c feb 25 and had period's on it heavy ones .. like normal

B/c and period question.......scared out of my mind...?
You could be pregnant. Take a pregnancy test to find out for sure. You also may just be having a light period.
Reply:you could be.. the only sure way to tell is .. go to the dr. I got pregnant while on bc..took lots of pregnacy test. they all said negative... went to the dr. and I was pregnant.
Reply:Of course any time you have unprotected sex you could be pregnant.





I just don't get it, you say you are "scared out of your mind" that you might be pregnant--yet you have unprotected sex at least once a day--what in the world do you think will happen?





It sounds like you two are no way ready for a child so either get back on birth control or use a condom!
Reply:yep, and your kids retarded
Reply:Sorry but if you have unprotected sex and don't take b/c pills, it's possible you could get pregnant.


Sometimes spotting or irregular periods could be due to hormonal shifts after getting off the pill.


It sounds like you currently have PMS so it's possible the April 28th was just some spotting and you'll get your period soon. You really do just need to wait a little longer before you know for sure or take a test.


In GTA IV, what are "text message cars" and "random pedestrians"?

There are maps available on some website at TW@. and they show hidden armor, weapons, health, etc.





Also there are "Random pedestrians" and "text message cars"





Does anybody know what these are?





I know it's not the "Friend" things b/c there is a separate map for htat.

In GTA IV, what are "text message cars" and "random pedestrians"?
you can dial up cars as cheats on ur phone... CAR 555 0100 is one of them... CAR 555 0175 is another i believe.
Reply:What you mean is Random characters you meet throughout the City and the course of the game. Text Message Car Deliveries are done with Stevie.... IDK, I have not gotten a hold of Stevie yet though so I can't help you much there but you meet the random characters throughout the City, They'll appear as a Blue Full body Symbol.


I'd save that for the end of the game to get part of that 100% Completion on the game. You can do the Car Deliveries for Brucie, You'll have to get 9 or 10 of those if I am correct.

flower beds

Anyone know about C.DIFF?

Clostridium difficile a hospital superbug. I have had it. Is it true that antibiotics can help cause getting it (but not just random people, mainly if your ill old or young)?? I am taking antibiotics called Trimethoprim which i just read on a site is one of the antibiotics that can cause c.diff. And cause i have already had cdiff does it mean i am more likely to get it again when i got into hosp than say my sister who is healthy and isnt taken anything. I no being clean helps but i just want to no if i am at a bigger risk? I am in the hosp on tuesday.

Anyone know about C.DIFF?
Normal, healthy human beings are not sterile. When we are born, we start to develop flora, bacteria that live in our guts and other places like on our skin. We get this from our mothers, the nursing staff and other people we are exposed to. The bacteria help us with digestion, aidin the development of our immune system and protect us from other micro-organisms in a number of ways, e.g. producing substances that would kill them and competing against them for food.





That's where Clostridium difficile comes in. Sort of like the supervillain running loose whe he thinks the hero is dead. Broad spectrum antibiotics kill out a wide range of bacteria including the normal protective flora when given by mouth. Flora gone, Clostridium starts to multiply, and doesn't stop until you have something called pseudo-membranous colitis (PMC), a severe infection of the colon.





Now when the doctors find out you have PMC, they stop the antibiotic right away, and give you Metronidazole, or another antibiotic known to kill clostridia species. After this, your normal flora grows back, and everything is like it was before.





The chance of you getting PMC is about the same as before, but higher than your sister while you are on the antibiotic and she isn't. PMC doesn't happen all the time, you were just unfortunate on the last occasion so I hope everything goes fine so you get better and go home soon. A hospital is a bad place to catch an infection.





Your ileostomy is another important risk factor for any GI infection, but I hope they can take it out soon. When did you first have this episode of colitis?
Reply:Why do you still have colitis following ileostomy? You should have no colon so no colitis.


Have you had the ileo-anal pouch or the trad ileo?
Reply:I hadn't heard that C.diff infections can be CAUSED by any antibiotic... just that they are impervious to almost all antibiotics except for a very small number.





you don't reference your sources... are you SURE you mean CAUSED?
Reply:C. diff is an unfortunate complication of antibiotic therapy. And yes, you can get it again. You don't have to be in a hospital in order to get it - you just have to be prescribed antibiotics again. Adding yogurt to your diet while taking any antibiotics (don't take with the pill though) will help prevent this from occurring. Anyone can be at risk if they are on antibiotics.


A set of 312 small wild birds caught at random was found to be?

A set of 312 small wild birds caught at random was found to be


composed of 102 males (M), having sample mean wing length = 12.5 cm, with a standard deviation of 0.81 cm, and 210 females (F), with sample mean wing length 11.75 cm, and a standard deviation of, 0.74 cm. We propose to use this data to find out whether there is a difference between the male and female birds wing lengths.


(a) Establish the null, and alternative hypotheses. Find the estimated standard error,ESE, for the sampling distribution.





(b) Find the two sample test statistics, Z, associated with M, and, F.





(c) Do you accept or reject the null hypothesis at the 10%, significance level?

A set of 312 small wild birds caught at random was found to be?
Here we have samples derived from two populations (male and female birds) and wish to compare the means of the two populations to determine whether they differ or not.





The null hypothesis is that μ1 = μ2 (μ1 is the mean for the male population, μ2 is the mean for the female population), and the alternative hypothesis is that μ1 %26gt; μ2.





The expected value for the difference in the sample means, (m1 - m2), is simply (μ1 - μ2), and the standard error of the difference in sample means is √{ (σ1²/ n1) + (σ2²/n2) }





Using the sample standard deviations as estimates for the population standard deviations, we have, therefore,





Standard error of the difference = √{ (0.81² / 102) + (0.74² /210) } = √0.00904 = 0.095





The 90% z-value is 1.28 standard deviations : here we have (m1 - m2) / S.E. = (12.5 - 11.75) / 0.095, which is equal to 7.89, and is greater than 1.28, therefore the null hypothesis is refuted : there is a difference in the wing-lengths.


--------------------------------------...





Or, are you dealing just with the distributions of the individual populations, and not with the difference between the two ?





In this case, the standard error of the mean for a single sample = σ / √n, so for the male population we have





S. E. = 0.81 / √102 = 0.080, and for the female population S.E. = 0.74 / √210 = 0.051





The null hypothesis is that m1 = m2, the alternative hypothesis is that m1 %26gt; m2.





Considering the male population, the probability of a wing-length of 11.75 is given by Φ(z), where z = (12.5 - 11.75 ) / 0.08 = 9.375.





Considering the female population, the probability of a wing-length of 12.5 is given by Φ(z), where z = (11.75 - 12.5) / 0.051 = -14.7





As stated above, the z-value which corresponds to a significance level of 10% is 1.28 (either + or - ), and these z-values are well outside this, confirming the difference in the two means.
Reply:LARGE SAMPLE, TWO MEANS TEST, INDEPENDENT SAMPLES, NORMAL


DISTRIBUTION - SIX STEP PROCEDURE





1. Parameters of interest: "μ1" = "small wild birds, males, wing length " population mean, "μ2" = "wild birds, females, wing length" population mean





2. Null Hypothesis H0: (μ1 - μ2) = 0 (no difference between means)





3. Alternative Hypothesis H1: (μ1 - μ2) %26lt;%26gt; 0 (different means)





4. Sample Data "males" x1-bar = sample mean [12.5] s1=sample standard deviation [0.81]


n1=number of samples [102] "females" x2-bar = sample mean [11.75] s2=sample standard


deviation [0.74] n2=number of samples [210]





5. TEST STATISTICS from "look-up" Table Standard Normal Distribution


z1(males) = (12.5-population mean)/ 0.81 = ???


z2 (females) = (11.75-population mean)/ 0.74 = ???





H0: (μ1 - μ2) = 0 [CANNOT BE DETERMINED WITHOUT KNOWLEDGE OF "population mean"]





H1: (μ1 - μ2) ] %26lt;%26gt; 0 [CANNOT BE DETERMINED WITHOUT KNOWLEDGE OF "population mean"]





6: Conclusion: Both Null Hypothesis H0: (μ1 - μ2) = 0 and Alternate Hypothesis H1: (μ1 - μ2) ] %26lt;%26gt; 0 CANNOT BE DETERMINED WITHOUT KNOWLEDGE OF "population mean"].


Would it be better to lose your virginity to someone special or to a random stranger?

this is about my friend anne* who just lost it last week to a random guy at a party and says she doesnt regret it because 'sex is no big deal and your first time is going to be bad anyways so it might as well be with a stranger'. i dont know, i kind of think what anne did was a little skanky and so do some of our other friends. anne got all pissed off at me b/c i said she shoudlnt have done it and she said i was a prude. im so mad at her! whose side do you take?





(**anne isnt her real name)

Would it be better to lose your virginity to someone special or to a random stranger?
I think it should be somebody special, it is such an important event in your life, and should be memorable. You sound like a good friend and have given her some excellent advice. I'm giving you a star!
Reply:damn that falls right under the definition of skanky


u are right but dont get into your friends business it is after all her life


ur first time should be with someone who is special u are attracted to makes u feel good not just some random *** drunk guy at a party


Is learning C programming that difficult?

I've been trying to teach myself C for some time now. I've gained a


good working knowledge of the basics. But, I seem to be stuck. Some of


the more advanced subjects (such as link lists, how the random


function generator works, etc.) are just not clicking.





When I see someone else's advanced source code, I find it hard to


decipher. I need a good reference book, learning software or perhaps,


an online course to take me to the next level. (As cheaply as


possible, I might add).





I would like to eventually move on to MS Visual Basic. I would like to


create some program applications to run under Windows. This may be a


little further down the road.





Can anyone make any suggestions?

Is learning C programming that difficult?
Yeah, learning a programming language is literally like learning a new language (if not harder). From what I've heard and seen, once you learn one, the rest are a piece of cake.





A good book to read when trying to learn C#/C++ would probably be the "For Dummies" line of books/ebooks. Once you have everything within its binds to a good working knowledge, I would suggest purchasing a Wiley's book/ebook. The Wiley's brand of books provides a little more indepth knowledge into the functions and whatnot...





Wiley's also provides books on very advanced working knowledge of the programming languages.
Reply:well, VB has nothing to do with C, and it would be better to learn it first than learning C if you plan on doing so. Also, you should learn C++ instead of C, as it has way more capabilities, and was a huge improvement upon the C language.
Reply:If the subjects seem too advanced, that simply means you're making too big a jump. If you're too eager to do very powerful things with the language, you might skip important medium difficulty tricks that serve as a base for harder things. My suggestion is that you just continue learning gradually, making fun things as you go along. Everything will come together, and you'll be understanding advanced code without even realizing you're doing it.
Reply:i'm not a programmer but i should say:





anything is not that difficult if you have your heart set to it...





visual basic is very different from C
Reply:check www.asohk.com to meet programmers and get answers!

wedding flowers

The student body of a large university consists of 30% Business majors. A random sample of 20 students is?

The student body of a large university consists of 30% Business majors. A random sample of 20 students is selected. What is the probability that exactly 10 are business majors?


a. .0008


b. .0039


c. .0308


d. .0479


e. None of the above

The student body of a large university consists of 30% Business majors. A random sample of 20 students is?
Because this is a relatively small sample, you can approximate the answer using the Binomial probability distribution binomialpdf(n,p,k) with n=20 and p=0.3 and k=10. You can get a fairly precise answer using a scientific calculator.





Alternatively you could use a table for the cumulative binomial probability distribution, as found in the appendices of most statistics textbooks, in which case the answer is the difference binomialcdf(20,0.3,10) - binomialcdf(20,0.3,9) which is equal to 0.983-0.952 or 0.031, which would correspond to answer choice C.


Pain after c-section?

I had a c-section 15 weeks ago. It's healed up fine, no problems with infection or anything like that. But I still get random stabbing pains where the scar is. It's so bad sometimes that I have to sit down for a while. My son has his 4 month checkup in two weeks so I'm going to talk to our doctor then, but in the meantime I'd like to know if anyone else has experienced something like this, and if so, was it normal?

Pain after c-section?
Hi there Ive had 5 c-sections and find its normal, often its just the scarring taking a while to heal, its not just the outter layers that need to heal too, theres all the inner layers also.





Congrats on your baby. :)
Reply:I had my daughter via C-section 15 months ago, and I still have times where it hurts.





My mom still has random pains sometimes and is numb in certain areas almost 21 years after having her last one.





Its normal...it takes awhile for an incision like that to heal completely, and because of the process (having to cut through so many layers), you may have pain/numbness/itching for YEARS.
Reply:my c section was 9 days ago and I don't get stabbing pains where the scar is. I am still sore and achy, especially at the end of the day.. but I don't get stabbing pains. I would definetly talk to your doctor about it. I am sure though, that it will be fine long term, it may be some nerve damage that will lessen with time. Congradulations on your baby:) Sorry I coulnd't give a better answer.. I can just say what my experience is.
Reply:i had a c-section 19 weeks ago and i also get random stabbing pain at times...not to mention itching and numbness in the area around the wound. i also sometimes have cramps and breakthrough bleeding (altho i'm breastfeeding). I asked my doc and he said it's normal for those things to happen...he said i can control the bleeding and regulate my periods by going on this low dosage pill but i said no to that. i think it's normal to feel pain for a while..esp. since they cut thru like 7 layers to get to your baby..it'll take quite a while to heal. one thing i noticed that affected my pain is whenever i carried heavy items (such as a pack of 24 cans of pop), it hurt a lot more the next day...
Reply:I never had that kind of pain on my C-section and its been 7 months now. The first 2 months may be quiet tender but stabbing pains? Never. Only a slight itching when the top of pants touches the scar but never pain.
Reply:I had a c-section 11 weeks ago and I have a few pains sometimes still when I asked the doctor about it he said that every body heals at a different pace and so as long as the pains aren't so bad that I have to go to the hospital it's just my body taking it's sweet time healing
Reply:I had the same problem as you after I had my C-section it lasted for around 6 months or more it is just the internal tissue and mussles healing also the weather can effect it I had my c-section 15 months ago and when it gets really cold I still get those pains.


Best of luck I hope your go away soon.
Reply:Unfortunately the outside healed now the inside has to heal.


Based on your day to day activities, it may take a couple more months. My girlfriend had a C-Section with our daughter, and she was in pain for about 5 months. She's back to work now, and sometimes she complains about her stomach hurting every once in a while. She rested for about 4 months, then decided to go back to work. When she went back to work, thats when her pain started. Now its slowly fading. Our daughter is 9 months old right now, and she hardly complains anymore. Its a deep wound that has to heal with a lot of rest. Hope you start to feel better, and Congratulations on your baby! =o)

paid survey

My ex left his stuff in my apartment??? Calls me about the most random things?? What do you think?

So here's the deal. I was dating this guy for two years. We were supposed to get married in December. We broke up about 3 months ago b/c of my mom (can be overbearing) he says and if we were meant to be we will end up back together....w/e...





Ever since he and I broke up, he's been calling me about the most random things (i.e. Are you going to homecoming (we both graduated from the same university), how's your mom, did I leave something at your apartment---he did leave a whole bunch of crap in my apartment like dvd's, clothes, etc.





He asks me why I don't call him, do I still love him, blah blah blah... I got a call today, and he said he's been dating someone else...However, he claims that he doesn't want to date her and he really wants to get married and have kids...He asked me, if still being in love with me and missing me counts for anything. I said no...





Tell me ...what do you think is his angle/what do you think about the situation and how would you handle it...?

My ex left his stuff in my apartment??? Calls me about the most random things?? What do you think?
Time for you to cut ties with him completely.





Send him a registered letter (return receipt requested) stating that he has left property in your home and that it will be donated to Goodwill if not picked up by 5 p.m. on (insert a date 30 days from the date of the letter). This protects you if he doesn't pick up his crap. Other than coordinating the return of his stuff, you owe him no further conversation.





His angle is that he won't face facts.
Reply:Put all his things in a box and take it round to him. This will make it clear that you do not want anything to do with him anymore.
Reply:Give a day and time to pick up his things.HAVE SOME ONE WITH YOU WHEN HE COMES.


if he don't pick it up move it to a shed or storage.Tell him if he come get it you will charge him storage..


He's leaving it there so he can move back in at a later time after he's finished running around


TELL THE GUY TO SUCK IT UP AND MOVE


ON WITH HIS CRUMMY LIFE.
Reply:He probably wants to see if you are open to eventually taking him back, if he decides that is what he wants to do in the future. It's like leaving a foot in the door, so to speak. He wants to keep you as an option in case whatever things don't work out with other women he goes out with. Kind of a sad position to put you in, like something to fall back on.
Reply:the best way to get the message across to him would be to take all of his things out of your apartment..maybe then he will get the hint..and stop taking his calls...
Reply:He cant let go he still wants to be with you
Reply:Right now he wants to keep his foot in the door. As far as getting married, him not be able to handle your mom was just an excuse for having cold feet. I don't know how old the both of you are, but I would get on with my life without him. Geez . . . how would he handle real pressure? Good luck!
Reply:I think he's trying to get back together.


If you really feel you're through with him, pack his stuff, take it to him, and then stop answering his calls.
Reply:I think it is what it is. He wants to get back together and get married. If you have no intention of ever getting back with him, tell him straight out. Otherwise you may be stringing him along. In his mind right now, he is thinking there still may be a future. Do the guy a favor and tell him the truth so he can move forward in his life. Even if it does hurt him.





I would much rather someone be honest with me.
Reply:Booty call.


He still wants your booty.





Pack his stuff and give it all back to him so he has no reason to call you.





I got a call yesterday from an old bf I haven't seen in 25 years. They NEVER give up unless you are very mean.
Reply:it is obvious what his angle is. he wants to get back with you. the problem is that, you seem to not want to. if i were you, you better tell him what's YOUR angle. be honest but not blunt. try to understand that both of you have gone through much.
Reply:You need to ask yourself, do you still love him? Also, did you *only* break-up b/c your mom is overbearing, or are there underlying issues?





If you two do get back together, you need to have a little chat with your mom to let you guys be.
Reply:Thats simple. He was ok with the break up because he thought you would come crawling back, and he could have the upper hand. When you didn't, and you were ok with breaking up, he didn't like that at all. He left stuff at your place so that he could have a connection to you. He calls you about random things because he is lonely, and realizes what an idiot he is for letting you go, and not fighting harder for you when you broke up.


Mr. Macho said he was cool about breaking up, cuz I got a new girlfriend anyway. When he realized you didn't care, he then couldn't admit that he was lying about the new girl friend, so he just says I really dont want her, I want you.


I think he is a controllling, manipulative, creep, that is lying to you now, and will lie to you in the future as well. I think you MUST take this chance to get rid of him now. Let him beg you to take him back. If you do go back with him, at least he'll learn a lesson that he cant just do what he wants, when he wants it, cuz you will not tolerate it, and you will leave.


If you do go back with him later, you will enjoy the upper hand
Reply:It sounds like he really still likes you. I think you need to be honest with your feelings about him and move on. Honesty is the best policy. It isn't fair to keep him hanging on unless you still have feelings for him and if you do still want him around then tell him.
Reply:You sound like your over it. Pack all his crap and call him to pick it up. Make it very clear that your over it and he should move on with his life.
Reply:he still loves you, i think it's kind of normal. i would tell him that you don't love him any more, we broke up remember?
Reply:He wants to get back with you.....Maybe you should hear him out and see where he's coming from...He's sorry and he's trying to let you know...Have a heart.
Reply:Right now you are saying that becuase you are hurt..And I do understand.. I've been there and been through that.. You really do love him and you really do want to be with him, but you have to play that HARD role sometimes just to see where his mind is at... Don't answer his calls... He said if it's meant to be then ya'll will be back where you were.. Well let him make that happen.. Let him worry and see how it feels to not have you in his life.... Let him be concerned... I know it may be hard.. And the Azz hole knew that he left his stuff at the apt....He's just trying to get you to converse with him.....Don't fall for that! LOL.... Seriously work on you and try not to concentrate on him..
Reply:that suck babe tell him to git lost babe
Reply:throw his shi* away and pay the phone company to block his calls for harrassment... his angle is he wasnt really into the breakup and is unhappy with his rebound... tell him to grow up and if he wants to be friends give you time and space to remember who you are so you can be a friend to him
Reply:I always think out of sight, out of mind. Just be busy, take up a hobby if you have time. Gather his things together, hand them over to a friend who could then hold them for your ex. make out a list of pros and cons, see where you get the most marks out of each and then think about if you really want to go thru the hassle of a relationship. Sometimes it's good to be by yourself for a while, to see what things make you happy, sad, excited or upset. such as maybe on weekends you want to go explore musuems or travel around your town. Find some ground to get yourself ready the next time you want to date and find your real match. Good luck.
Reply:Give him another chance.....poor thing!!
Reply:well if u dont like him, tell him how u truly feel, but if your mom is the problem, kick her *** out. I kno its mean but WTF, ur mom shoul,d understand anyway
Reply:from what your saying seems as if he is missing you and trying to make sure noone is there taking up ur time that should be his.
Reply:OK, here's what you do. Pack up all his sh%t and put it in a big box and mail it to him. Tell him to leave you alone for the time being. If he truly cares about you, he will respect your wishes. It is wrong of him to jerk you around and call about the most stupid things, and then start dating someone else!!!!??? You need some perspective, and that only comes with time and space. Good luck.
Reply:It sounds like he wants to get back together. Pack all of his stuff up and put in front of your door. Text or call him first to let him know you are doing so, so that he can come and pick it up. That way he can't call or text you asking about his stuff because it will all be back in his possession.


If he really wants to be married and have a family then he wouldn't of broken off the engagement to begin with. I understand what a pain mothers can be ... but unfortunately most people don't get along with their mom-in-laws anyway.


If you are really done with this dude and really don't want him in your life at all, stop answering his call and texts, stop talking to him, don't see him, just let it go. I know that is easier said then done but sometimes it is what needs to be done.


How do I fix a high pressurized A/C system on my 2000 Chevrolet S-10?

I had a mechanic replace my exhaust headers a while ago on a 2.2 L 4-Cyl. Engine and he had to remove the A/C unit to get to it. Now when I tried to use my A/C system it is not cooling down as it did before and when I tried to add more oil/frion mix into the system, the gauge was telling me that there is well over 100 psi of pressure inside and that I obviously shouldn't add any more. During the process I had the system on Max A/C and the fan on high. In the middle vent there were small bits of sponge being blown through it. Through my random search of answers I think it might be the sensor that controls the compressor and tells it when to turn on/off. Any suggestions or ideas would help....

How do I fix a high pressurized A/C system on my 2000 Chevrolet S-10?
OKAY FIRST PUT THE GAUGES BACK ON AND READ BOTH THE HIGH AND LOW SIDE PRESSURES.





LOW SIDE 30 TO 40 PSI AND HIGH SIDE 225 TO 250 PSI.





CHEAPEST WAY IS TO JUST REPLACE THE ACCUMULATOR AND THE EXPANSION TUBE AND EVACUATE AND RECHARGE AND ADD THE CORRECT AMOUNT OF FREON AND OIL.








TRY THIS GUY, I HAVE PURCHASED MANY ITEMS FROM HIM THROUGHOUT THE YEARS AND SOMETIMES HE HAS A LOT OF OLDER PARTS AND ODDBALL PARTS, ALSO HAS VERY GOOD PRICING AS WELL AND IS A VERY FAST SHIPPER.





WWW.TEXASERICK.COM
Reply:I am guessing that you are seeing 100 PSI on the low side...and the compressor is running??? It is WAY overcharged!! or the expansion oraface is plugged. Either way, it will not cool. You should see around 30-40 psi at 90 degrees ambient on the low side and around 250 psi on the high side. Hook up to the high side and see what you have.


Good LUck
Reply:It may be the sensor or it may be the compressor itself, check to see if the clutch on the compressor is engaging when you turn the AC on, if not the compressor may be bad.
Reply:First of all, find out if your "mechanic' opened the A/C system. If he did, the whole thing will have to be evacuated and recharged. He may have just rechardged the system without evacuating it.There can't be any dirt or moisture in the system.


Suppose 80% of all voters support Jones, and you pick 4 voters at random.?

Suppose 80% of all voters support Jones, and you pick 4 voters at random.


a. what is the probability that all 4 support Jones?


b.what's the probability that the first voter supports jones, thenthe next 2 don't support jones, then the last one does, in that exact order?


c.What's the probability that 2 voters support jones?


d. What's the probability that none of the voters support jones?

Suppose 80% of all voters support Jones, and you pick 4 voters at random.?
Since all 4 voters are independent of each other, we can multiply their probabilities:





a) P{all support} = 0.8*0.8*0.8*0.8 = 41%





b) P{ ... } = 0.8*0.2*0.2*0.8 = 2.6%





d) Similar to (a): P{None support} = 0.2*0.2*0.2*0.2 = 1.6%





c) P{2 support}


Need to know how many ways you can choose 2 from 4 (a


combination, denoted nCr). In this case, we have 2C4 = 6.


P{2 support} = 2C4 * 0.8*0.8*0.2*0.2


= 6 * 0.8*0.8*0.2*0.2


= 15.4%
Reply:a. 0.8 * 0.8 * 0.8 * 0.8 = 40.96%


b. 0.8 * 0.2 * 0.2 * 0.8 = 2.56%


c. 0.8 * 0.8 * 0.2 * 0.2 = 2.56% for exacxtly 2 supporters


c. 1 - (0.2 * 0.2 * 0.2) = 99.2% for at least 2 supporters


d. 0.2 * 0.2 * 0.2 * 0.2 = 0.16%


C# client/server programming question?

So it is as the title says: a "client-server" type program. Basically the objective is that a client has to query a server (actually just two projects that are "talking" on port 8888 right now...) about some quotes that the server has stored in an array.





The client has three options to input in a text box: '1' displays a random quote, '2' displays all quotes present and '3' displays a command list (what I am typing right now).





I am pretty new to C# so I am having trouble grasping how a string can effectively be read in the server project FROM the client project. (I will parse to an integer after the server reads the "text" value)





Forgive me if I am missing anything important -- I will be happy to provide you with anything you'd need





THANKS!

C# client/server programming question?
Its kind of complicated but to answer...the server is basically waiting to receive prompts from a client. The server project is sitting there waiting for commands to be sent to it. Just like any other server ftp, telnet, ssh. The server project/daemon waits for the client to connect to the proper port, the client then sends a connect command or something similar to the server along with login information etc etc.
Reply:okay.. the commmands... those are interpreted by you to the server.. I assume you have some sort of database holding your quotes, right? Well if the user types a command like "g:3".. it's your duty to determine what that means.. perhaps "g" stands for "get" and the colon indicates a parameter is coming next.. and the input of 3 is for the third quote.. as far as I understand what you are doing this is basic manipulation of the database.. so you would have stored procedure calls and again you are the ones to make the mapping of commands to the server..





if i knew more of what these commands were supposed to do I could be more exact in WHAT you want to do..





--------





I pulled this out of the MS help on how to set up sqlcommands and connections.. I understand your 'server app' is a console.. but is it supposed to pull from a db or something?





Dim queryString As String = _


"SELECT OrderID, CustomerID FROM dbo.Orders;" '-- clearly have your own stored proc or line here..


Using connection As New Sql Connection(connectionString)


Dim command As New S qlCommand(queryString, connection)


connection.Open()


Dim reader As SqlDataReader = command.Exec uteReader()


Try


While reader.Read()


Console.WriteLine(String.Form at("{0}, {1}", _


reader(0), reader(1)))


End While


Finally


' Always call Close when done reading.


reader.Close()


End Try


End Using
Reply:The easiest method would be to simply use a web service to handle the client/server communication. Remoting will work as well, but I think you'll find the web service is a much easier route to take.





*******EDIT********





Do you want to use remoting or sockets?
Reply:What exactly is your program? Is it a web App? A windows app? Two console apps one for client and one for server? Need some more details.
Reply:You may contact a c# helper live at website


like http://gionram.com/

customer survey

C&A users...?

What do you do in a blog?


I was just wondering because...look...


http://blog.360.yahoo.com/blog-RnepZvkod...





I made my own, but no one came...


-_-'





So...what is it for?





BTW, random questions...





1. What culture are you from? (Example- Me an Indian~!)


2. What is your favorite food? (Example- Me love ramen~!)


3. What is your 360 Page (if you have one)?


4. What is the first thing you're thinking of right now?


5. What is your 'famous quote'?





...I wanna know more about everybody!


...


I recommend 3 servings of ramen per day...


~ ^^ ~





P.S-


WHERE IS EVERYBODY IN C%26amp;A???


Do they have Spring Break or something?


Because I DO NOT!!!


No fair...


-_-'

C%26amp;A users...?
1. I'm mostly German in descent..a bit of English, some Welsh, but mostly German...... Why is everyone else of asian descent? I feel lonely...... Ok, nevermind... but still.......





2. BUFFALO WINGS! Actually, anything slathered in hot sauce works well...





3. Mine doesn't have anything...... I don't know what it's for :D I'm bad with technology...... sometimes......


http://360.yahoo.com/lifescamera12


You can add me, but I usually just use it for the pics....





4. PHALANGES! I MAY have broken a finger.....





5. It works in principle, but this is the real world.


I use that phrase when people try to make me into an ideal person. Yeah...... me + perfection = mess.


I also use the phrase, Treehugger Guaranteed!, since that's my nickname in RL, to give my stamp of approval!


also..... when i'm in a bad mood:


I WILL NOT LET THE DAY KNOW IT GOT TO ME! NEVER!





YEP! I'm on break! but I don't get a vacation.... I'm just repainting my room (teal and green, YAY!)





[edit] that just shows how much i use my 360...... I got a comment like 5 weeks ago.... and I never responded... lol


I JUST saw it....


I added you... I think...
Reply:i lov urs!! ^^ pretty funy!! n i see u lov cats!!!!!


1) white/black


2)ramen n pizza


3)its..http://360.yahoo.com/my_profile-CxIO0Ro8...


4)naruto!!!!!!!!!


5)"naruto 4eva!!!!!" n "naruto rulez!!!!"





n i dont hav spring break yet either!!!! no fair!!!!!!
Reply:I dont use 360 fpr that stuff. Just for an avatar.





1. What culture are you from? (Example- Me an Indian~!) %26gt;%26gt; Hmong


2. What is your favorite food? (Example- Me love ramen~!) %26gt;%26gt; Eggrolls, and RICE NOODLES


3. What is your 360 Page (if you have one)? %26gt;%26gt; Do I really have to give it too you guys?


4. What is the first thing you're thinking of right now? %26gt;%26gt; Thinking of an answer...


5. What is your 'famous quote'? None really.





I don't have Spring Break yet, I have it next week after Friday.
Reply:my blog? well, i just composed a blog bout itachi-kun... *crying*





1. I'm from Malaysia.. I'm Malay


2. Pepperoni Pizza %26amp; Sweet foods (lol, you could bribe me with these!)


3. http://360.yahoo.com/nejibana_twistedflo...


4. I want to pee


5. No one ever died for my sins in hell, as far as I can tell and there's nothing wrong with me, this is just how im supposed to be..








I don't have a spring break! But im going tothe wilderness camp at Langkawi next week tho..
Reply:1.I was born in America and im white. I have Irish,Scottish,Native American and German in me


2.Pizza


3.I just made a new one it sucks.


4.How My account got suspended and I for got my Back up accounts email address and I had to make a second back up account


5.Love %26amp; Peace
Reply:meh. i'm not on spring break either -_-


spring break's the week after next week %26amp; it's only one frickin week!


%26gt;=0





okay, so i don't have to go on a full rant on how much school SUCKS, i'll just answer your Q's





1. a lot lol


but i'm mostly filipino %26amp; japanese %26amp; i've been to the Philippines more so yeah.....


2. NACHOS!!!!!!


omg! the most bestest food in the world!


3. there's a link in my profile ^^


4. i wonder where i can get ahold of some crayons.......


5. well, i guess it's:


"if you don't say $h1t like it is, you might as well be keepin your piehole shut since all that's coming out of it is bull$hit"


since i once said that in a student meeting %26amp; now everyone's saying it with the phrase: "as Sakura said" before it ^^
Reply:1. I am a Hawaiian.


2. My favorite food is: Laulau. But you guys don't know


what that is soo i guess i like ramen too. lol.


3. i do have one but i neve ruse it so i dont think it wouold matter if i gave it to you. lol.





^_^





4. this guy. i met him right now. he told me 'i love you.'





5. Rip out my heart %26amp;%26amp; call me heartless.


[lol....i came up with that on top one of my answers


a while back.^^]





PS- i guess they aren't here right now.


but, i have spring break. it just started on


Tuesday. we return on april 1st. YEAH!!!!!!!
Reply:I just write about how I'm feeling on my blog. I'm thinking about showing it... but I'm not sure. =/





1. Italian, Irish (I'm a red head!), Swedish, Scottish, German, French, AUSTRALIAN! XD


2. Ramen~! And oreos...


3. http://360.yahoo.com/my_profile-YGETHJw1...


4. Sexy guys... *cough* Deidara *cough*


5. Art is a bang?





OH! I'm on Spring Break... but I'm all sicky. =_=
Reply:i cant believe this section is becoming P%26amp;S, why cant this happen to the religion section
Reply:1. um...im white, but all my asian friends say that i act more asian than they do! lol.


2. i love ramen, too! and these random little cookie things that are really light and have powdered sugar on them...i have no idea what theyre called (its some really weird name that ill never remember! ^_^)


4. well u have me thinking bout ramen from question 2...hm...i want some now...


5. lol...i quote random things all the time ^_^ i can think of a quote or song lyrics for almost anything!! but i say "this is troublesome" alot (yea shikamaru!! xP)





i dont have spring break either...not for 2 weeks still!! yuck...im so sick of school!
Reply:I'm not sure what you put in a blog because I don't have one.





1. I was born in America. I'm German, Italian, and Polish.


2. Spicy Buffolo Wings, Mac %26amp; Cheese, Crisp-Crust Pizza


3. Don't have one


4. Kamichama Karin (The new anime I started today!)


5. "Don't you want a banana?" "Click Click Booje!" "Woot Woot!" "Mwa ha ha." "I Live In A Cave, I Live In A Cave!"





A lot of people are on Spring Break. That just makes me mad cuz my Spring Break is getting this Friday and Monday off! 2 extra days! Isn't that awesome!!!! (Sarcasim Implied There) That's not fair. I'm sick of school!
Reply:i don't have one srryy





1)i'm native american and spanish (cultures) i'm black for my race but everyone thinks i'm mexican and white well i am mexican but not white


2)sushi i love sushi can't live without it


3)i don't have one i play on my brothers its free xb


4)what my friend sed to me


5) "everyone leaves"





i have springe break well mines starts this friday xb
Reply:im from the future.......


uhh pie!


no


" now.... what to type....."


watch anime.... be happy!
Reply:I think it's just a journal.....you say stuff about things that happened to you...like a life story I guess?





1. What culture are you from?


I be Indian......





2. What is your favorite food?


Ramen Crackers- me %26amp; my friends made it up %26gt;.%26lt;





3. What is your 360 Page?


I have one ,but it's so boring I won't bother to post a link.....





4. What is the first thing you're thinking of right now?


CHEESECAKE!!! - I'm hungry.....and all the homework I didn't do yet.........





5. What is your 'famous quote'?


aitsu yoki na chieokure futeteru usagi-chan........I didn't spell that right....please don't look that up- it's just something very insulting that I say to any guys that bug me





I Recommend 5 for a healthy lifestyle......so many different kinds of ramen %26gt;.%26lt;





I don't have spring break either.......mine doesn't start until April 7th......I feel your pain -_-





AND MINES ONLY ONE WEEK TOO!!!





P.S. new avatar!! ^.^
Reply:1. What culture are you from? (Example- Me an Indian~!)- cacasian 50% norweigon, 25% irish, 25% german


2. What is your favorite food? (Example- Me love ramen~!)~ cookies!!!


3. What is your 360 Page (if you have one)? here none visits it though http://360.yahoo.com/profile-fuz_R709fr5...


4. What is the first thing you're thinking of right now? cookie monster sasuke


5. What is your 'famous quote'? "one random moment a day, keeps the docter away" lol xD





*gives u a cookie*





Bleach Rocks!!!!!





*edit* mine doesnt start till 3 weeks %26gt;.%26lt; i wish it was sooner





*edit* deidara ur a red head just like sasori u can be deidaras partner lol xD but i have brown with ojos azules spanish for blue eyes
Reply:1. What culture are you from?





umm...this is difficult...i am mostly Chinese and Mongolian, a little bit Korean and a TINY bit Japanese...just a TINY bit. so to shorten it up...i am aisan with multi-color hair, DARK brown eyes and...yellow skin??





2. What is your favorite food?





umm...it's chinese...so you won't know...how about i just say it's rice, ramen, nachos, pizza, burger, cookie, ice cream, chips...and the list goes on and on and on and on...??? (i LOVE junk food!)





3. What is your 360 Page (if you have one)?





just like chu, i only use it for my avatar...don't exactly do anything on it...AND you wouldn't want to see it...it sux





4. What is the first thing you're thinking of right now?





about isabelle's IDEA for blowing up schools with clowns in them XD





5. What is your 'famous quote'?





ummm....it's coming!!!!





SPRING BREAK???!!!!! i only get ONE week when almost everyone else gets TWO!!! life is unfair!!!!





P.S: i know it's worse for you...i guess 1 week is better than none...


Who would like to read the beginnings of one of my novels for random fun?

Just give me your e mail and I can e mail you the first chapter or all of what I have so far, or whatever you want. I'm just feeling bored and random and needing opinons.


STORY A: a teenage girl dies and it's about her experiences in the afterlife. Only a little of teen partying.


STORY B: a historical taking place in Britain in the 1800s. a tough girl battles her past and a friend who wants to be more. Totally clean. Working on chapter three now.


STORY C: a modern story about a 22 year old woman who's life goal is to write a poem about love. So she dates men and when she can't write the poem she dumps them. Until she gets dumped first for the first time in her life. Very funny, mild language. Prologue and Chapter One are finished.





If you don't want to read, which would you most like to read?

Who would like to read the beginnings of one of my novels for random fun?
no
Reply:i would like to read story a and c.


hit me up:mikaa219@ yahoo.com


looking foward to it Report It

Reply:Story A or C.





But I prefer reading stuff about guys being the main character because it's really rare to find that in teen targeted books nowadays.
Reply:Steph, it's too hard to pick! Give me more details in an e-mail plzzzzzzz.
Reply:i would not mind reading on any of them, but shouldn't you get into one book at a time? just a thought. i don't know if that's good advice because j.k. rowling was in the middle of writing harry potter she was in the middle of another book. go figure.
Reply:al1enfreak@yahoo.com


Credit card company wants to estimate the average balance of its customers. A random sample of 20 customers...

A credit card company wants to estimate the average balance of its customers. A random sample of 20 customers shows a sample standard deviation of $43. Construct a 99% confidence interval for the standard deviation of the balance.





a. (6.84398, 38.5822)


b. (910.5494, 5133.1243)


c. (30.1753, 71.6458)


d. (31.1563, 67.8430)

Credit card company wants to estimate the average balance of its customers. A random sample of 20 customers...
Since answers a and b do not bracket the sample SD, they are almost certainly not correct. (However, it turns out they are not just random choices, as you will see.)





Assuming the average balances are normally distributed, then





L1 = (n-1) S^2 / chisq_(1 - a/2) and


L2 = (n-1) S^2 / chisq_(a/2)





form a 100(1-a)% confidence interval for the variance of the balance, where n is the sample size, S^2 is the sample variance, and chisq_(1 - a/2) and chisq(a/2) are, respectively, the 100(1 - a/2) and 100 a/2 chi-square percentiles of the xhi-square distribution with (n-1) degrees of freedom. (This should be in your book or class notes.)





For a=0.01,





chisq(a/2) = chisq(.005) = 6.84398 and


chisq(1 - a/2) = chisq(.995) = 38.5822





(Compare these values with answer a.)





If you use these values to compute L1 and L2, you will get the range given by answer b. But this is the confidence interval for the variance, and you've been asked for a confidence interval for the standard deviation. So if





L1 %26lt; sigma_squared %26lt; L2 is a 99% confidence interval for the variance, then it would seem reasonable to me that





sqrt(L1) %26lt; sigma %26lt; sqrt(L2) would be a 99% confidence interval for the standard deviation. If so, the answer is c.
Reply:lol
Reply:No


In the town of Springdale, 30% of the families p=.30 regularly plant vegetable gardens. A random sample?

In the town of Springdale, 30% of the families p=.30 regularly plant vegetable gardens. A random sample of n=100 families is selected for a particular study. What is the probability that the sample proportion, the proportion of families who plant a vegetable garden, is between .20 and .40





a. .0146


b. .0292


c. .4854


d. .9708


e. None of the above.





The U.S Bureau of the census reported mean hourly earnings in the wholesale trade industry of u=9.70 per hour in 1987. A random sample of n=49 wholesale trade workers in a particular city showed a sample mean hourly wage of x=9.30 per hour with a standard deviation of s=1.05 per hour. Test to see if wage rates in the city differ significantly from the reported 9.70.

In the town of Springdale, 30% of the families p=.30 regularly plant vegetable gardens. A random sample?
Let X be the number of families that plant vegetable gardens. X has the binomial distribution with n = 100 trials and success probability p = 0.30





In general, if X has the binomial distribution with n trials and a success probability of p then


P[X = x] = n!/(x!(n-x)!) * p^x * (1-p)^(n-x)


for values of x = 0, 1, 2, ..., n


P[X = x] = 0 for any other value of x.





this is found by looking at the number of combination of x objects chosen from n objects and then a total of x success and n - x failures.


Or, to be more accurate, the binomial is the sum of n independent and identically distributed Bernoulli trials.





the mean of the binomial distribution is n * p


the variance of the binomial distribution is n * p * (1 - p)





Find P( 20 ≤ X ≤ 40) = 0.9786144








to use the normal approximation to the binomial you need to have at least 10 expected failures and at least 10 expected successes.


expected successes are n * p %26gt; 10


expected failures are n * (1 - p) %26gt; 10





don't forget to use the continuity correction. Draw the histogram of the binomial and shade in the boxes you need to help make sure you do this correctly.





Xn is the normal approximation


Xn ~ Normal(μ = n * p, σ = sqrt(n * p * (1-p)))





Xn ~ Normal(μ = 30, σ = sqrt(21))





Find P( 20 ≤ X ≤ 40)


≈ P(19.5 %26lt; Xn %26lt; 40.5)


= P( (19.5 - 30) / sqrt(21) %26lt; Z %26lt; (40.5 - 30) / sqrt(21))


= P(-2.291288 %26lt; Z %26lt; 2.291288)


= P( Z %26lt; 2.291288) - P( Z %26lt; -2.291288)


= 0.98902662 - 0.01097338


= 0.9780532





----------------------------





Hypothesis Test for mean:





assuming you have a large enough sample such that the central limit theorem holds and the mean is normally distributed then to test the null hypothesis H0: μ = Δ





find the test statistic z = (xBar - Δ) / (sx / sqrt(n))





where xbar is the sample average


sx is the sample standard deviation


n is the sample size





The p-value of the test is the area under the normal curve that is in agreement with the alternate hypothesis.





H1: p %26gt; p0; p-value is the area to the right of z


H1: p %26lt; p0; p-value is the area to the left of z


H1: p ≠ p0; p-value is the area in the tails greater than |z|





the test statistic for the US Bureau question is:





z = (9.30 - 9.70) / (1.05 / sqrt(49))


z = -2.666667





p-value = P( |Z| %26gt; 2.666667) = 0.007660754





with a low p-value we can reject the null hypothesis and conclude the alternate is true that wage is different.

survey for cash

A few C++ questions?

Hey guys, just got a few c++ questions





1. What is an unsigned int?


2. When writing a boolean expression are numbers (other than 0) and "true" interchangable? (ie. bool a = true; is the same as bool a = 23;)


3. Can a float be an integer? (ie. float a = 6;)


4. What are substrings and how do you use them?


5. What order do you do commands like %26amp;%26amp;, || and ! in?


6. In relation to the commands above, what combos produce what? (f || t %26amp;%26amp; t || t yield what?)


7. How do you create random numbers (I remember my GSI telling us about special libraries that have to be called, what are they?)








Thanks

A few C++ questions?
1) The difference between signed and unsigned is how the computer interprets a particular bit pattern. For example, take an 8 bit byte.





If you tell the compiler this is an unsigned byte, the values range from 0 to 255. A signed 8 bit integer ranges from -128 to +127. unsigned integers are %26gt;= 0, ranging from 0 to (2^n) - 1.





2) yes. In any statement that takes a boolean expression (if, while, for. ?, until) any non-zero numeric value is treated as true and 0 is treated as false.





3) Yes, floats can represent some integers. Because of the float representation, there are some integers float cannot directly represent (though small integers are fine).





4) This is a very open question. Technically a substring is any inner portion of a source string. If you have a char pointer that points to a source string, you can make another pointer that points to somewhere inside the source string. What you do with it is up to you. You can parse for words, search for a token. Who knows what?





5) || has the lowest precedence, then %26amp;%26amp;, and ! is the highest of the 3





6) You didn't list any commands, so your example:


f || t %26amp;%26amp; t || t


%26amp;%26amp; is highest. t %26amp;%26amp; t -%26gt; t


f || t || t -%26gt; f || t





7) You call the standard library function rand(). Writing a good pseudorandom function is very difficult. Since computers are deterministic, the functions are not truly random, that's why they are called pseudorandom.
Reply:1. What is an unsigned int?


This is an integer value that is 0 or greater (ie: it does not include negative numbers).





2. When writing a boolean expression are numbers (other than 0) and "true" interchangable? (ie. bool a = true; is the same as bool a = 23;)


I think so. Its not 100% intuitive, but I can remember writing code like 'if (count) { //do something }', but its been a while.





3. Can a float be an integer? (ie. float a = 6;)


I think it has to be 6.0 (although assigning it to 6 might be okay, although it may be stored as 6.0). I am not 100% sure on that one.





4. What are substrings and how do you use them?


Substrings I think are just parts of a string. You can pull out parts and do what you want with them.





5. What order do you do commands like %26amp;%26amp;, || and ! in?


%26amp;%26amp; (and) and || (or) come in between logical arguments eg: (a %26amp;%26amp; B). ! (not) comes before !a





6. In relation to the commands above, what combos produce what? (f || t %26amp;%26amp; t || t yield what?)


f || t -%26gt; False or True = True


t || t -%26gt; True or True = True


(So I believe the entire statement is True)





7. How do you create random numbers (I remember my GSI telling us about special libraries that have to be called, what are they?)


I believe this is rand() or srand(int). The only difference is that srand takes a seed number that is used for calculating the random number. This is useful if you want to create a repeatable randomization. rand() always returns a different number. srand(100) always returns the same random number sequence.
Reply:1-





true = 1 false = 0


however something like this if (23){} a non-zero will be interpreted as true (non-NULL where NULL=0).





2-


unsigned int


The unsigned int type represents an unsigned integer comprised of 2 bytes. It has a range of 0 to 65535.





3- float a =6 is correct





4- a substring is a part of a bigger string. You can take a look at the String class to see how to manipulate strings.





http://www.cppreference.com/cppstring/in...








5- !(not) is always in front of a variable


when using a complicated expression its allways good to use brackets. If you don't use brackets the order is from left to right.





6- f || t %26amp;%26amp; t || l yield should never be used like this.


it should be something like this:


( (f || t) %26amp;%26amp; (t || l ))





7- the answer is described in detail and all different forms are also mentioned.





http://www.daniweb.com/forums/thread1769...
Reply:Hey, I am not sure about all of your questions, but I will try to answer them as best I can:





1. An int that does not have a sign, like 99, 53, 24. -5, -34, -67 all have signs, the '-'. Basically, just any non-negative number.





2. Not really sure, why not try it?





3. I am pretty sure it can, but would be a slight waste of memory to declare it as one, but not use it as one, plus the range of numbers floats can handle is smaller than ints im pretty sure.





4. Substrings are parts of other strings. So, if you have the string "Hello World", you could say that "Hello", "World", " ", "ello worl", "lo wo", or any other part of that string.





5 %26amp; 6. I am not really sure I understand you... first of all, %26amp;%26amp; and || are in a separate category of operators from !. Also, you can use parentheses to group logical statements. So, (f || t) %26amp;%26amp; (t || t) would return true, but I am not sure how it would go without the parentheses. Yet again, just try it!





7. I think you need stdlib.h, and you can use srand(int) to seed the generator, and then when ever you call rand(), a random number will be generated. Remember! Computers can not create random numbers! Thus, in order to create more true random numbers, always seed the generator with something that will be unique each time the program is run, like the current time/date in milliseconds. Try it! do:





cout %26lt;%26lt; rand();





three times inside of a normal program with iostream and stdlib included. You will get the same numbers each time!


Now, add srand(someInt); near the top, and be amazed!