General Questions

  • Thread starter Thread starter Orion
  • 2,283 comments
  • 107,885 views
Status
Not open for further replies.
There are people with a brain defect whom can literally taste colours and see tastes and so on.

Synaesthetes.

Thing is, it's not a defect. It's at the root of our success as a species... Synaesthetes have it a little more severe than the rest of us.
 
(if you don't know Java, don't bother reading on)

So, I've got this bit of code inside a for loop:

if(trainerList[f].indexOf(cmd) != -1)
{
blah blah
}

where cmd is a string read from the user via a Scanner, and trainerList is a string array (the for loop compares each item in trainerList to cmd in turn)

The problem is, it's case sensitive, so if the string cmd doesn't exactly match any of the strings in the trainerList[] array, nothing gets returned, which isn't what I want.

How can I make the if statement (ie the condition contained in it) not case-sensitive? (how it's done I don't care, as long as it works)

eg:
Currently "string" =/= "String", but I want "string" = "String".

Any help?

edit: resolved.

if(trainerList[f].toLowerCase().indexOf(cmd.toLowerCase()) != -1)
{
blah blah
}

worked a treat.
 
I can't see how it would have. They only ever play the U.S. and Canadian national anthems, and that's certainly not a total reflection of all the players in the game. Incidentally, at the two NHL games I've been to, the Star Spangled Banner was NOT played, as it was Vancouver vs. Montreal and Vancouver vs. Calgary. It's kind of weird, since we're so used to hearing the Star Spangled Banner at sporting events.
 
Well if they were two Canadian teams, I don't see why they would play the Star Spangled Banner. I believe they only play it if one or both teams are American.

Course I may have misread your statement and you already knew that info, but were just saying it was an odd experience not hearing it. :p

Speaking of the NHL, what's cool is paid professional hockey originated in the city that I'm going to college in which is Houghton, MI.
 
I knew that--I'm just saying it was the first time I didn't have to sit through the U.S. anthem at a sporting event.
 
Who the heck makes the delivery trucks that go door to door for the US Postal Service?

300px-Small_USPS_Truck.jpg


A random question I know but always wondered.
 
Grumman LLV, they do the body and final assembly and they use a GM 4cyl engine and front suspension that are similar to the ones in the S-10.
 
Grumman LLV, they do the body and final assembly and they use a GM 4cyl engine and front suspension that are similar to the ones in the S-10.


May I ask how you know that, out of curiosity. :)
 
So GTP, is there a place I can find wiring diagrams or an instruction manual for an 8 channel mic mixer or a 31 band equalizer built by the Rauland-Borg Corp.?

Google has yielded nothing relevant from that company outside of classroom speaker encasement's.

Here are some pics of the device as reference
http://i130.photobucket.com/albums/p251/spockmx/SIde.jpg
http://i130.photobucket.com/albums/p251/spockmx/Mic-Mixer-Model-3508.jpg
http://i130.photobucket.com/albums/p251/spockmx/Mic-Mixer-Back-Model-3508.jpg
http://i130.photobucket.com/albums/p251/spockmx/Full.jpg
http://i130.photobucket.com/albums/p251/spockmx/Eq-Model-6431.jpg
http://i130.photobucket.com/albums/p251/spockmx/EQ-Back-Model-6431.jpg
 
Synaesthetes.

Thing is, it's not a defect. It's at the root of our success as a species... Synaesthetes have it a little more severe than the rest of us.

Or Synesthesia as Americans would pronounce :p
But I was wondering, is it common for people suffering with Synesthesia to have better abilities than normal people? (like for example, a better ability to memorize, play musical instrument, perform actions, etc.) Also, does John Mayer suffer from synesthesia? (music → color) No wonder his musics are so wonderful!!!!! :D 👍
 
How many electrons can fit on each shell of an atom?

I know:

Shell 1: 2 electrons
Shell 2: 8 electrons


Is Shell 3, 18 electrons?

Shell 4 would be good too.

Edit: I've come to Chlorine and it has an Atomic Mass of 35.5. Can you have half a neutron?

Edit 2: Why do Argon and Calcium share the same Atomic Mass? Any particular reason why they are the only two to share AM?
 
How many electrons can fit on each shell of an atom?

I know:

Shell 1: 2 electrons
Shell 2: 8 electrons


Is Shell 3, 18 electrons?

Shell 4 would be good too.

Edit: I've come to Chlorine and it has an Atomic Mass of 35.5. Can you have half a neutron?

Edit 2: Why do Argon and Calcium share the same Atomic Mass? Any particular reason why they are the only two to share AM?

1. It depends on what orbitals happen to be in each shell. A full orbital is 2 electrons.

Shell 1 only has one orbital (an S orbital). 2 electrons.
Shell 2 has 4 orbitals (another S and 3 P orbitals). 8 electrons.
Shell 3 has 4 and 9 orbitals (another S and another 3 P orbitals, but transition elements also have up to 5 D orbitals). 8 or 18 electrons.
Shell 4 has 4 and 9 and 16 orbitals (another S and another 3 P orbitals, but some transition elements have up to 5 D orbitals and some have up to 7 F orbitals). 8 or 18 or 32 electrons.

The order in which shells are filled is 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p, 8s, 5g, 6f, 7d, 8p, 6g, 7f, 8d (and so on).

2. The Atomic Mass is the average mass of all of the isotopes by proportion. Chlorine has two isotopes - 75% of atoms are 35 protons/neutrons (17 protons, 18 neutrons), 25% of atoms are 37 (20 neutrons). (35*0.75)+(37*0.25) = 35.5.

In fact there are very many isotopes of most elements - chlorine's actual Atomic Mass is 35.453, but 35.5 works quite nicely.

3. For the same reason, Argon is 39.948 and Calcium is 40.078 - both being 40. Calcium's commonest stable isotope (97%) has 20 protons and neutrons, argon's most common stable isotope (99.6%) has 18 protons and 22 neutrons.
 
Who is the next most intelligent person after Steven Hawking?
 
I'm having quite a hard time with chemistry (as all the information from my teacher goes in one ear and out the other) and I need a bit of help.

I'm trying to figure the stock system names for different ionic compounds. I get the gist of it, but I came to a problem that is not explained in the book:

Mg(ClO4)2

Fe(NO3)2

I don't quite understand how to determine how it's said. I also cant figure out how you would say ClO or NO. I know they're associated with chorate, nitrate, and the like but those contain different charges and atom counts.

I'll probably have other questions later on. There's a test tomorrow and I barely know anything.
 
As you said, ClO would be perchlorate, and NO would be nitrate, as for knowing what to say you simply pay attention to the charges, atom counts and memorise how the symbol formula looks. Write down a list of the ones you're struggling with and use the internet to find their names, after some practice you'll eventually memorise them by heart.
 
I looked around and I'm still a bit confused, though I am glad that I was correct writing formulas :D (unrelated)

Someone apparently had the same worksheet as I do and had asked the same question on yahoo. I thought that like P4O10 (tetraphosphorus decaoxide) it would have a prefix, but it apparently doesn't. I know magnesium wouldn't, but the perchlorate is followed by a 2. On the one including Iron, someone made sense of it by saying that the number outside the parenthesis was the original charge (making it Iron(II) nitrate), but I don't see how it works out for magnesium perchlorate.

I am also trying to figure oxidation numbers and am stuck on a few as well.

Oxidation number for carbon in - (CO3)^2-

Oxidation number for chromium in - Na2Cr2O7

I'm stuck on the first because I know what number oxygen would be, but the ^2- is just baffling me. In the second, oxygen would apparently become -14 (oxidation number -2) but I can't figure how I would split Na and Cr to make the sum equal zero (one could be 6 and the other 8, but which will be which?)
 
A question from a stupid GTP member and Belgian, with a low IQ.


How do I address someone when I start a letter in English? It's a letter to a company in the US. I don't know if it is a female/male that I'm writing to (or is it, writing at someone?).

Dear sir/madam?

Hello?

Hi?

Hey?

Yow?


This is a serious question!




:)
 
To whom it may concern.

And, yes, it's writing to, not at.
 
Depends on how formal a message it is.

Could be something like
To whom it may concern, - but that always comes off very impersonal
Dear Sir or Madam,

You might try calling the company and ask reception/service who specifically you should address the message to if it is for some specific function, it'll show a higher level of interest and consideration if that is at all important.
 
Status
Not open for further replies.
Back