Archive for December, 2009

What branch of the military should I join?

December 29, 2009 - 7:58 pm 7 Comments

Yeah, broad statement and I know it depends on personal interests.
I’m 17 and will be graduating high school this year. Good grades, etc.
I wanted to join the Marines, but people are telling me I’d have better luck with the Army or Air Force.

Why did you choose what you did?

Alright first i’d like to say congrats on wanting to join the service and better yourself. I have plenty of experience and much of it from the school of hard knocks. I nearly joined the Marines originally a 17 and they were not supportive so I couldn’t get the waiver signed. I’m thankful for that much now. The recruiters wouldn’t allow me to pick a guaranteed job and either wouldn’t give me straight answers, or told me obvious BS. By the time I could make the choice on my own I wasn’t interested mostly due to the lack of honesty. I was interested in traveling the world and learning a trade and knew the Marines weren’t fond of sailors. So I said what the hell and joined the navy. Well that had its ups and downs but as I was in, I discovered many things about the Air Force I wish I had known. the living conditions are far better, they get paid extra if they have to live in what the rest of us consider nice housing. They have the shortest deployments (3 months usually) they are the most relaxed with regulations comparatively, The physical aspect is nearly non existent, The food is great, and they have great gyms and other facilities. Much of their funding goes towards morale for the people. They provide the most technical training and treat their people pretty well. It would have been a good choice but I didn’t do my homework until it was too late. They do not accept prior service for the most part. I looked into the Army to see what was up after my tour was up. They offered bonuses which the marines rarely ever do. Mine was 10K and I knew some with 30K enlistment bonuses. They are much better funded. The marines get the left over crap from the Navy. They deserve more but they money just isn’t there. Their living conditions aren’t near as good nor is their equipment. I’m using an M-4 Carbine and I have a bipod attachment with an ACOG scope on my rifle. My gear was all brand new. Promotion is much faster because there are more billets. You can make E-5 in the time it takes most marines to make E-4 if they get it at all. There are lots of training schools you can attend like jump school where it’s nearly impossible in the marines. They deploy for 12-15 months at a time which means more money. They highly encourage you to take civilian education courses and it helps towards promotion. These are just some of the things off the top of my head. I’ve worked with all branches of service and the marine hype is just what it is. I respect them but they are not a cut above soldiers. I go on 6 mile runs, do ruck marches with over 100lbs of gear, regularly train and go to the rifle ranges plus do my MOS. The Marines do not do all of the fighting while the Army stays back and other horseshit i’ve heard. I’m not trying to have a bash the Marines session and I respect them but I think the truth needs to be out there for you. I can direct you to a blog of countless marines that hated their experience. The Air Force has the highest retention rate of all branches and has so for the longest time. I don’t know how true this is (which I believe it) but alot of the female marines talk of a glass ceiling compared to their male counterparts in the marines. Promotion is already tough too because there are limited billets.

What is wrong with the following SQL statement? It is being used for a query in Access 2003.?

December 27, 2009 - 8:44 am 4 Comments

SELECT [Anabolic Steroids List].[BNF Name]
FROM [Anabolic Steroids List].[Max Dosage]
WHERE Max Dosage = 2;

Anabolic Steroids List = Table Name
BNF Name = Column Heading
Max Dosage = Column Heading

Max Dosage is set as a ‘number’ field and BNF Name is set as a ‘text’ field.

SELECT [Anabolic Steroids List].[BNF Name]
FROM [Anabolic Steroids List]
WHERE [Anabolic Steroids List].[Max Dosage] = 2

Where you went wrong -

You can use spaces in your Table /Column names, but if you do you -have- to surround the name with the square brackets.

The FROM clause references the Table not the Column.

In access, you can’t (shouldn’t) reference Column names without prefixing the Table name.

If you use the Wizard, you won’t get the syntax wrong!

loop of select statement in PHP?

December 27, 2009 - 8:44 am 1 Comment

I have a form with multiple select statements ( 10 select statements)

how can i post the selection of each statement ?

EX:
select city :
select school :
select color :
.
.
.
etc
No i mean <select >
i think it’s called drop down menu

select? you mean like select in mysql?..

my inbox always says one message in it but there is no message. How to delete this statement?

December 27, 2009 - 8:44 am 3 Comments

I searched back , way way back through my messages, but can find nothing. How can i delete the "one message" notice in my inbox?

Maybe theres an unread message you marked as safe in your deleted messages.

How can this statement in Koran be explained as scientific?

December 27, 2009 - 8:43 am 7 Comments

"Does not the unbeliever see that the earth and the heavens were joined together and we split it asunder"(quran21:30) .

Does that mean the heaven and earth were once the same Original Atom the science explains ?

A short statement like this can be interpreted in MANY different ways. It COULD be interpreted to fit in with some scientific theories - but the original meaning will NEVER be known (if it was a god explaining something, then the statement should have been less ambiguous)..

How do you generate a 10×10 multiplication table in C# using looping statement.?

December 24, 2009 - 9:51 pm 1 Comment


I hope this link will help you,
http://answers.yahoo.com/question/index?qid=20071022174321AAkg7g5

other links:
http://www.dreamincode.net/forums/showtopic48548.htm

How do i write a SQL statement with regular expression that cleans "-" and excess spaces from a number field ?

December 24, 2009 - 9:51 pm 1 Comment

i have a number field that needs cleaning up, for example
1) need to remove dash "-"
2) remove excess spaces in between numbers
3) prefix with some numbers if the length does not meet minimum length
4) remove text if found in the number field.

any help would be appreciated as i am nuts with sql..

1) use replace function
Update home Set address =replace(address,’-',”) From home where address like ‘%-%’

2) replace can work as well
select address , replace(address,’ ‘,”) From home where address like ‘% %’

3) sample:
declare

How do you write a Select statement that returns all rows in a SQL statement?

December 24, 2009 - 9:51 pm 2 Comments

SQL Oracle

About as simple as it gets:

SELECT * FROM someTable;

Note that doing SELECT * is generally considered bad programming practice…most of the time, you really don’t need every single column of the table, so you’re just needlessly using system resources to retrieve stuff you don’t want anyway.

delete a structure pointer, but type is changed to char* ?

December 24, 2009 - 9:51 pm 1 Comment

I have one structure called "abc".
So,

abc *pabc = new abc;

char* pChar = (char*)pabc;

delete pChar;
// is the above statement is valid in C++. is there any memory leak !

In most cases this will work, but it is not guaranteed to work and so it should be avoided.

row-by-row table join?

December 24, 2009 - 9:50 pm 2 Comments

I have two tables of equal length that I want to join together row by row:

Table 1
Number|
———–|
1 |
2 |
3 |
______|

Table 2
Letter|
——–|
a |
b |
c |
——-|

result

Letter | Number |
———|————–|
a | 1 |
etc.

A JOIN statement in the query would require something to JOIN ON to prevent getting all combinations, right? (a,1; a,2; a,3; b,1;etc). The only thing I can think of is to imbed a sequence generation inline and join on that:

SELECT Letter, i++ AS count1 from Table 1 JOIN Number, j++ AS count2 FROM Table2 ON count1=count2;

However, I don’t think PosgreSQQL(or maybe even any database) can do something like than, can they?

Hmmmm.