Archive for July, 2009

Using "1" and a blank space……How do I use an "If" statement in excel 2003 to hide coloured areas.

July 29, 2009 - 1:28 pm 2 Comments

Basically we are using conditional formatting to bring coloured cells to other sheets. What we are trying to do is create an "If" statement that will keep a cell free of color until a number is entered into that specific cell.

So you’re trying to accomplish this without using conditional formatting? I didn’t think there was a way to enter equations in a cell to affect a cell’s format, only its value. Conditional formatting is the only way to accomplish that in excel as far as I knew.

What is the best way to generate sql insert statement from directory with files?

July 29, 2009 - 1:27 pm 1 Comment

I’m trying to make something like this:
(NULL, ‘SeaBattle’, ‘gameboy’, ‘Gameboy’, ‘22′, ‘TheSmartass’, ‘37′, ‘Unsorted’, ‘13′, ‘1′, ‘0′, ‘480′, ‘432′, ”, ‘2009-03-29 19:30:38′, ‘English’, ”, ”, ‘Sea Battle’), all the file names are like SeaBattle in the directory. Can something generate this statement for me inserting all the file names?
Somebody made me a pretty slick perl script, but I like your on the fly way to do it too..

This is how I would do it (just tested that manner; works well):
(on WinXP)

Run cmd to get in console
Get in your directory using cd
Use the following command to get the content of the current directory listed in a file (list.txt):
ls –width=1 > ../list.txt
Now you have a file with the list of files in your directory. Open that file, copy the whole content.
Open a spreadsheet (I use OpenOffice Calc) and paste on the 15th column or so.
Then I fill the table with all needed information (all the other fields in your database).
Then you only have to add SQL syntax elements between the columns, like "INSERT INTO table VALUES(" in the first column (insert a column there if it’s already used), then you add columns between other values "," "’,'" etc depending on if there’s a text field at the left or right. I hope you get the idea; you just have to set the cells as holding text values and you put for example "’," in the first row, then you drag the row till the end of the table, for the total number of entries.
Then you save the file in CSV, specifying to do not separate values with any character. And there you go. That’s how I usually do when I have some hundreds or thousands of tuples to insert at the same time.

Hope this helps!
Good luck! :)

Select the correct statement about inflammation?

July 29, 2009 - 1:27 pm 1 Comment

A.Only the lymphocyte functions in the transport and release of the mediators of inflammation at the site of injury.
B.Exudate is the cause of localized edema.
C.Leukopenia-inducing factors are released by damaged tissues.
D. Aspirin and other anti-inflammatory substances act by promoting histamine release.

B.Exudate is the cause of localized edema.

Why do people delete others Questions about Cena?

July 29, 2009 - 1:27 pm 14 Comments

I noticed something. If you make a Question or Statement about John Cena thats good, some cena hater will find away to have it removed.

If you say something bad about cena then its okay. Like some people wish hard on John Cena and its fine
People really need to get a life.
Bassically if you say antyhign about cena theyll try to have it removed.

Agreed!!!
Not only does that show stupidity, but it also shows disrespect!!!
Now I am not a Cena fan, but I do not go around deleting questions about Cena or wishing harm on him (which there have been recent questions like them)!!!
I may not agree with some peoples opinions, though I respect them 110%!!!
People who go around deleting questions/answers/accounts are just complete @sses!!!

LK 3:16 says: "*STARRED*"

How do I make a SQL statement that will update an Oracle varchar2 field with a 2-digit date, to a 4-digit date

July 29, 2009 - 1:27 pm 3 Comments

I have a varchar2(20) field that has date in it. When I TO_DATE them, I get 2098 instead of 1998. They are stored as character strings like ‘24-JAN-98′ and ‘13-MAR-03′. I need to change all these records so they have a 4-digit date, by entering a ‘19′ in front of anything before 2000 and a ‘20′ for everything after. So I’m thinking there should be some sort of SQL (or PL/SQL) where I could use instr, replace, or some other function that a beginning Oracle developer - like me - hasn’t mastered yet. I have about 250,000 records that I need to do this to.

how about using this.

alter session set nls_date_format = ‘DD-MON-RRRR’;
update ur_table_name a
set the_varchar2_col = ( select to_char( to_date( the_varchar2_col ) )
from ur_table_name b
where a.primarykey = b.primarykey);
–confirm you have the right data and then
commit;
alter session set nls_date_format = ‘your_previous_nls_date_format_here’;

Be sure to read the RR Date format for long term use of this code, way after we have retired :) ;)

Does it take a smart person to join the military?

July 29, 2009 - 1:27 pm 8 Comments

Does it take a brave soul to join in a time of war?
Does it take guts to fight for everything you believe in?
Does it takes ignorance to believe a word of Kerry’s statements or excuses?

My answer to all of the above is YES!
May God Bless America and May God Bless our TROOPS.
May John Kerry drown in a vat of ketchup.

As a paralyzed Vietnam Vet I will never forget John Kerry’s traitorous remarks made years ago calling myself and my Brothers-in Arms all manner of names from "Baby-Killers" to "cowards" upon our return and now, our brave brothers and sisters are "stupid"?

I want to state that, ‘Mr. John Kerry is not only a man of questionable honor but he should apologize for making statements that not only insult every brave young man and woman Serving but give yet again, "Aid and Comfort to the enemy.

We will now do everything humanly possible to mobilize the Conservative Base not necessarily to Vote to support current policy and Incumbents but to vote "against the Democrats" and the Nancy Pelosi San Francisco Values that party holds to!

This was the best thing he could have done to energize our base!

Now, how will the Far Left Wong ACLU Adoring Liberal Dems explain away this one…watch for the standard "disclaimers" mostly used for Dr Howard Dean and Nancy Pelosi "Foot-In-Mouth attacks…i.e.:

"He was mis-quoted" or maybe, "His statement was taken out of context" or maybe he meant it?

What is the difference between current balance and statement balance on my credit card?

July 29, 2009 - 1:27 pm 3 Comments

I’m going to make a payment but if I don’t have to pay interest, I’d rather just pay the statement balance than pay the current balance. So, that’s my question, do I pay interest on my current balance or just what I don’t pay on my statement balance?

Statement balance would be the amount of your last bill which, if you haven’t paid it in full, is what you are paying interest on.

Current Balance is the amount of your last bill (if unpaid) PLUS anything else you have put on your card. It’s the total amount of unpaid charges on your card. You don’t pay interest on current balance items that aren’t on a statement until they are put on a monthly statement.

P.S. You won’t pay ANY interest if you pay your card off!!

What is a good thesis statement for a democrat vs a republican?

July 29, 2009 - 1:27 pm 2 Comments

What is the best way to start a thesis statement if I am writing about a democrat vs a republican and it have to include the economy, taxes, and health care.

The Civil War has had a few brief pauses but has never really ended.
It has just been in a political ‘cold war’ phase for the last 143 years

We should really call our nation "The Uncivilized States of America"
because from the moment the American Civil War began
there has really never been much unitedness about the states.

9/11/01 to 9/18/01 (a week) was the last pause.

How do I wirte a mission statement?

July 29, 2009 - 1:27 pm 1 Comment

I am supposed to write a mission statement for a job portfolio, and I was wondering, how do you write one? Anyone got any examples?

It’s a brief statement that describes what qualities you bring to the company. You can also briefly describe your most recent employment position. Also, briefly state what you intend to get out of the position you’re applying to.

For example:

Energetic, driven and team-oriented professional who commands almost five years of increasing responsibility and diverse experience, including most current tenure as a "your own personal job" with "ditto". Excelled in an array of client relations roles by relying on marketing strategies and persuasive techniques to guide …blah…blah…blah. Prepared to benefit from corporate and individual training to exceed expectations in areas including account retention, relationship building and team development.

Something like that will work.

Where can I find pop warner financial statements?

July 29, 2009 - 1:27 pm 2 Comments

I want to see the annual reports and financial statements for an organization that is non-profit.

Guidestar.org has a very large database of not-for-profit organizations, and much of the data is free. (link below)

However, if the info is not on Guidestar.org, a not-for-profit is required under state law to register with the state and to provide to anyone who requests it, annual financial statement reports. There should be in your state a "charities division" (or similiar) with the financial info on file.