Tuesday, May 31, 2011

Psychology tricks

So in lieu of a post regarding classes or anything relevant I've saved up some of these nifty psychology tricks that anyone reading might be interested in using. Most of these were posted on Reddit, so the veracity of these may be indeterminate. Anyway here we go. (For some reason my blockquote tags don't work. So pretend everything is indented)

My boss has used this trick for years and until recently it got me every single time without me really paying attention. I'll come in to his office to talk about something and if it's too busy, he'll get up and walk out as he's talking with you. You feel compelled to follow him, of course. He walks to your desk and you feel compelled to sit back down. Then he walks away. You suddenly realize how you've been manipulated and feel stupid.

Placing an item in someones hand. If a customer isn't able to make up their minds, place an item in there hands, say one, maybe two good things about it, and they'll buy it. It is exceedingly rare for them to put it back down in this instance.

If you want to get information out of strangers:

  • get them off guard, and try to put them in a position of assumed superiority. Dressing a little shabbily, or just wearing one really stupid/ugly article of clothing helps.

  • appearing confused helps. Appearing tired helps. Think Colombo.

  • if you're trying to get information about a person, imply familiarity. Don't ask a stranger what they know about Robert, ask if they've heard from Bobby.

  • don't offer any explanation about why you want this information, unless they ask you. More often than not, they will offer their own explanation that you can just agree with.

  • don't be afraid to cold-call. Surprisingly, people will talk to you more often than not. Want to know something about someone? Knock on his neighbour's door. You will be surprised how much neighbors know about each other, and how willing they are to share that information.

To defuse situations of potential conflict:

  • increasing usual personal space by 50% not only keeps you out of punching range, it reduces perceived threat to the other party.

  • assume a non threatening stance. Lean against a wall, slouch a little, fold your arms, etc. (make sure you're at a safe distance, though). The idea is to appear calm and relaxed, not timid.

  • if you're dealing with someone who is a bully or rager, they are used to getting their way by implying threat- by being physically imposing, by yelling, etc. Those behaviors are designed to make you either be afraid or fight back. By doing neither you confuse the bully and short-circuit the behavior.

  • lower your voice to quieter than normal levels.

  • if an angry and agitated person suddenly becomes calm, they are probably about to take a swing.

always give someone a way out of a disagreement, letting them save face.

Co-worker obviously screwed up somehow and you want to bring it up to him:

"Hey Jim. These numbers don't really seem correct. Could you go over them really quick or maybe check to see that you sent me the right version of the excel file? The latest copy might've gotten lost in my inbox during the after-Christmas rush."

I learned to use that long ago when I was the designated trainer in a four-star kitchen. I'd see the trainee doing something retarded, and instead of shouting out, "What the hell are you doing?" like most chefs would I would say something like, "I've never seen someone do it like that before. It's kind of interesting, but have you ever tried it like this? I find that it's faster and simpler." Worked every time. Instead of resenting me they were thankful for the lesson.

You can get a lot of information out of someone by just being silent.
Creating an 'awkward' silence will make people want to say something to fill it up, even if it is something they'd rather not talk about. I believe Doctors sometimes use this to make people get into detail about their problems.

If you're having a conversation with someone and you're unsure whether they're into it, you can make a change in the way you're communicating (either with body language or a slight change in accent, etc.). If they start mirroring your change (cross their arms shortly after you do), you can assume that they're enjoying the conversation and listening to you. It's crazy how often it happens and you just don't notice it.
You can feign interest as well by intentionally mirroring their behavior to build rapport and encourage their interest in the conversation itself.

Any time you encounter a dinner moment that feels awkward, just ask a ton of questions about their life. They will think you're extremely charismatic when all you've done is make them talk about themselves. Never ask a yes/no question, because that just adds to the awkward.

"so, how did you get into this profession? "tell me about your family." "What's your favorite part living here? What's the hardest part of traveling?" or, the best "I'm sure you've got a lot of great stories because of that!"

I will ask the person I am talking to about themselves. That is the one topic everyone is each their own expert on. It is an instant conversation booster and the act of listening will make you more friends than talking in my experience

Even better trick, ask about their kids. The coldest people will turn to mush and open up about their kids like a fire hydrant. Works every time.

Saying someones name will 1) help you remember it and 2) make that person like you just a little bit more. People love hearing their own names.

People love hearing their own names. Pronounced correctly

I'm awful with names. "Sorry, how do you spell your name again?" works wonders.
When I can't remember someone's name at all:

Me: "I'm sorry what was your name again?"

Him: (looking a little hurt) "It's John."

Me: "No, sorry, I meant your last name."

Him: (friendly smile) "Oh! It's Smith."

People never seem upset if you can't remember their last name, so long as you know the first.

People also hear there names better than any other word in their native/non native language. The reason for this is because it is so high up in their lexicon, it take very little priming for them to experience the stimulus. This is also why People will sometimes think you said their name, when in reality you didn't. For more information on this, look up Top Down Processing, and Cognitive Psych as a whole.

  1. I try to smile whenever I make eye contact with someone, and especially if it's someone that I don't particularly like/doesn't particularly like me. 99% of the time they will smile back at me. If you do this enough, your smile will actually be genuine, but this might not work if you have a really creepy smile.

  2. If someone is attracted to you, their eyes naturally open up more when they first see you. I either look for this in someone I am interested in or use it myself to (again) make someone who doesn't like me subconsciously feel less hostile towards me.
    When you're in a group and everyone is laughing, take note of who is looking at you, that person is attracted to you. This works as long as you had nothing to do with what is making everyone laugh. If you're just a bystander to the joke and the girl/guy/whoever looks at you while you're all laughing, then you know that you have an admirer. Try it out next time you're in a group of people.

If you're unsure if someone is staring at you, look away from them and feign a big yawn. If they're paying attention to you they'll likely do the same.

If someone tells you something, but can't tell you details (in other words, it's a secret), wait a while and then bring it up again, but act like you can't remember what they told you before. They'll gladly help you fill in the gaps in your memory, which will include stuff they didn't tell you before.

While in the Air Force, a detective told me if I ever had to interview a witness, to wear a light blue or pastel colored shirt since the light colors are calming to the eye and you do not appear as though you are a threat or an authority figure. To this day, I always wear a light blue shirt to job interviews and performance reviews and have not had a bad review yet.

If you want someone to do some moderately big favor for you, ask them to do something even bigger that they'll almost always say no to. Then ask them to do the smaller favor, and since they feel guilty for saying no to the big one, they're more likely to say yes.

One of the tricks we learned is that, during an interview, if you want someone to keep talking, just smile and nod. Silence makes an interviewee feel awkward and so they'll just keep saying stuff, way longer than they normally would. It's great for when you want to get a lot of quotes for an article.

Another trick is, if you're doing a story involving numbers (like budgetary stuff), highballing a figure so that the other person will give you the maximum as a correction to your more dramatic guess, rather than giving you a range that affords them more wiggle room. You can also do the same thing in reverse if you want a minimum figure.

if you're at a table or something and you say "hey we should go do random thing etc" you need to be the first one to stand up otherwise nobody will get up.

There are certain kinds of people (e.g. police, "authority figures") who are really really inflexible and try to stop you bending stupid rules even slightly.

They don't really care about the rules, they just want you to be right and for you to obey them. So if you want to get your way, instead of arguing about how stupid the rule is, say something like "Of course you are right, I did not know that -- thanks for telling me, next time I will obey the rule."

When confronted by unknown persons on the street, initiating a screaming argument with a streetlight will usually difuse the situation.

However, I learned by working in retail that if I mimic the local accent when talking to a customer, they are generally kinder and more receptive to whatever I'm saying.

Here's a great one for cops that's worked surprisingly well for me in the past. If you are pulled over, when the cop walks up to you, initiate the conversation by asking "How are you today?" They have to answer something like "doing well" or "I'm ok, how are you?". Immediately you have broken their defensive wall. I've gotten out of many tickets by getting on the cop's good side before he has even engaged me!

That or if you're pulled over for something minor but you've done something incredibly exciting that day get enthusiastic about it. I had just left a Hurricanes game and had an out headlight and was speeding a bit and the cop asked where I was headed. "I'm headed home after the canes game" oh how was it... Door opened to me being super excited.

In my social psychology class, I learned that if someone doesn't like you, ask to borrow their pencil. Barely anyone will refuse a simple gesture like this, and from now on they'll like you more.

Whenever you're trying to round up co-workers to join you for lunch, you'll invariably be asked "So, who's going?" Whatever you say, the typical reply will be something along the lines of "if so-and-so is going, then I'll go".

Try this instead: to each co-worker you come across for lunch invitation, say "we're all leaving for lunch at ; wanna join us?".

If you need to get hold of somebody via telephone, but you get their voice mail instead, there's a trick you can use that will always get them to call you back. It's sleazy, but it works 100% of the time.

Call them, leave the voice mail. In the message tell them you've discovered something important, start describing the important thing, then hang up mid-sentence.

Touching someone lightly (don't get all touchy-feely on them) will make them like you more.

If you give someone an initially negative impression of yourself and you do something nice, they will like you more than they would have if their initial impression of you had been positive. It's very possible to change someone's opinion of you if you fucked up at the beginning.

It also works in reverse though: If you give someone an initially positive impression of yourself and you do something to piss them off, they will dislike you more than they would have if their initial impression of you had been negative.

I do a lot of presenting, and one of my favorite tricks deals with the awkward question-and-answer period after the talk, when people will periodically toss you a hand grenade of a question and expect a good answer. Sometimes I'll know the answer right off, but when I don't, I like to take a second to frame my answer. Thing is, if you do that while staring at the audience or saying, "Uhmmm..." then people tend to discount whatever answer comes next, regardless of how good it might be. So my secret is to time it so that as the person wraps up the question, I'm taking a big drink of water, or popping a breath mint, or taking a bite of food (lunch-and-learn talks). It's socially acceptable not to talk with your mouth full, so everyone gives you those seconds to think without noticing that's what you've done. As a bonus, people often find the timing funny and will chuckle, improving the mood in the room.

to get an answer closer to what you want ask a question with 2 options (e.g. shall we order Chinese or Italian? instead of what do you want to eat?).

If you are trying to hook up with someone compliment their body, face, etc but tell their wardrobe doesn't go with that outfit...

I hope everyone who finds themselves upon this information can find it useful.


Tuesday, May 17, 2011


Today we're learning about using forms. Too bad I don't know any server side scripting, but it is good to actually understand this stuff


What is the purpose?

In this lab, you will practice building forms.

What are the steps?

• Task 1:


1. Write the XHTML to create a text box named username that will be used to accept the user name of Web page visitors. The text box should allow a maximum of 30 characters to be entered.

2. Demonstrate your code in a Web page.

• Task 2:


1. Write the XHTML to create a group of radio buttons that Web site visitors can check to vote for their favorite day of the week.

2. Demonstrate your code in a Web page.

• Task 3:


1. Write the XHTML to create a select list that asks Web site visitors to select their favorite social networking Web site.

2. Demonstrate your code in a Web page.

• Task 4:


1. Write the XHTML to create a fieldset and legend with the text “Shipping Address” around the following form controls: AddressLine1, AddressLine2, City, State, ZIP

2. Demonstrate your code in a Web page.

• Task 5:


1. Write the XHTML to configure an image called signup.gif as an image button on a form.

2. Demonstrate your code in a Web page.

• Task 6:


1. Write the XHTML to configure a hidden form control with the name of userid.

2. Demonstrate your code in a Web page.


  1. Use type="___________" to configure a button to automatically replace the default values in the fields on a form. Answer: reset

  2. What form element is appropriate for an area that your visitors can use to type in comments about your Web site?

  3. To treat radio buttons as a group, use the same value for the ________ attribute.

  4. What XHTML attribute specifies the name and location of the script invoked to process the form values?

  5. What is the default value for the XHTML method attribute?

  6. Use type="_________" to cause a form element to pass its value to the server without displaying in the browser.

  7. What form element is appropriate to use when conducting a survey such as asking visitors to vote for their favorite search engine?

  8. What XHTML attribute limits the number of characters a text box will accept?

  9. What XHTML element associates a text description with a form element

  10. What is the term for a protocol for a Web server to pass a Web page’s request to an application program or script?

  11. Use type="__________" to automatically send the form data to the location on the action attribute when a button is pressed.

  12. What XHTML attribute assigns a "hot" key to a form element?

  13. What form element is appropriate to use when conducting a survey and asking visitors to indicate their favorite browsers?

  14. What form element do you use when you want to conserve screen space but have a list of options to display to your visitors?

  15. What XHTML element describes the choices available in a select list?

Posting the lab and homework here so I can look over them later. Plan on enjoying my birthday tonight


Monday, May 16, 2011



More on functions this week

def myfunction(var1, var2):
     total = var1 + var2
     print total

This is a bad way to quote because it's not as usable

def myfunction(var1, var2):
     total = var1 + var2
     return total
print "Your total is", myfunction(10,10)

The function call now holds the value here and can be reused for different values (potentially). Whatever is returned is the value of the function. You can also do math on the function call. print "Your total is", myfunction(10,10) + 50. You can also use a function as an argument for another function.

def myfunction(var1, var2):
     total = var1 + var2
     return total
def mul2(num)
     total = num * 2
     return total
print "Your total is", mul2(myfunction(10,10))

This can be quite powerful.

Lab Assignments

Purpose: Create a program that finds the distance an object will have fallen based on time

def fallingDistance(time):
     distance = 4.8 * time ** 2
     return distance
seconds = 1
while (seconds <= 10):
     if (seconds == 1):
          print "In",seconds,"second the distance fallen will be",fallingDistance(seconds),"meters"
     if (seconds != 1):
          print "In",seconds,"seconds the distance fallen will be",fallingDistance(seconds),"meters"
     seconds = seconds + 1

This program was a straight printing program. No inputs. No fun.

Purpose: Create a program to determine an objects kinetic energy based on user inputs for mass and velocity

def kineticEnergy (mass,velocity):
     kinE = .5 * mass * velocity ** 2
     return kinE
objMass = 0
objVel = 0
print "What is the mass of this object?"
objMass = input()
print "What is the velocity of this object?"
objVel = input()
print "Your object has",kineticEnergy(objMass,objVel),"kinetic energy"

I'm not sure what units kinetic energy is measured in. but kilogram meters squared per seconds to the fourth is a pretty nasty measurement. (I could be mistaken on this)


Purpose: Create a program that accepts scores for grades and displays their letter grade.

def calcAverage (grade,grades):
     avg = grade / grades
     return avg

def determineGrade(grade):
     if (grade < 60):
          return "F"
     elif (grade < 70):
          return "D"
     elif (grade < 80):
          return "C"
     elif (grade < 90):
          return "B"
          return "A"

numGrades = 0
cuGrade = 0
graded = 1
newGrade = 0
print "How many grades are there?"
numGrades = input()
while (graded <= numGrades):
     print "Enter grade for test",graded
     newGrade = input()
     cuGrade = cuGrade + newGrade
     print "Test",graded,"earned an",determineGrade(newGrade)
     graded = graded + 1
print "Average grade is",determineGrade(calcAverage(cuGrade,numGrades))

At first I was sticking to 5 inputs for grades. But Mr. Walker wanted me to do a cumulative total for the grade, so I thought about it for a bit and this came up with this.

Extra Credit

I shall post this on May 23

That's all for now


Monday, May 9, 2011

IT 104

Today there was a test for us. The purpose of the program we wrote was to keep track of 2 players playing golf and compare their scores after 9 holes. 20 minutes later here is the code I cranked out.

p1score = 0 #Tyler Cooper
p2score = 0 #5-09-11
hole = 1 #Holes start at hole 1, there is no hole 0
print "Enter Player 1 Name"
p1n = raw_input() #player 1 name
print "Enter Player 2 Name"
p2n = raw_input() #player 2 name
while (hole < 10):
     print "Enter number of strokes for", p1n, "on hole", hole
     p1score = p1score + input()
     print "Enter number of strokes for", p2n, "on hole", hole
     p2score = p2score + input() #Calculates new totals for scores
     hole = hole + 1 #Moves game to next hole
print p1n, "has", p1score, "strokes"
print p2n, "has", p2score, "strokes"
if (p1score < p2score):
     print p1n, "wins!"
if (p1score > p2score):
     print p2n, "wins!"
if (p1score == p2score):
     print "Draw game!"


Functions: Also called modules. Breaks programs into smaller peices
2 reasons to use:
  • manageability: its more efficient to manage a large program with functions

  • reusable: you can call it several times in the program

Use functions to do your math!

num1 = 0
num2 = 0
total = 0
print "Please enter the 1st number"
num1 = input()
print "Please enter the 2nd number"
num2 = input()
total = num1 + num2
print "Your total is", total

This is the main function. It's the one that runs first.

def addnum():
     num1 = 0
     num2 = 0
     total = 0
     print "Please enter the 1st number"
     num1 = input()
     print "Please enter the 2nd number"
     num2 = input()
     total = num1 + num2
     print "Your total is", total

codes for functions are also indented
addnum() is called a function call
anything outside of function is in the main! Main should always be below functions

def addnum(n1,n2):
     total = n1 + n2
     print "Your total is", total
num1 = 0
num2 = 0
total = 0
print "Please enter the 1st number"
;num1 = input()
print "Please enter the 2nd number"
num2 = input()

num1 and num2 are passed to n1 and n2 in the function
variables inside a function are considered localized. You can use the same variables in multiple functions. This will help keep code clean.


This is the code I wrote for the lab assignment
Purpose: create a program that will translate feet to inches

def feetToInch(feet):
     inches = feet * 12
     print "There are",inches,"inches in",feet,"feet"
foot = 0
print "How many feet are there?"

This was a terribly terribly easy code for me to write, but it is nice exercise to introduce me to functions.


Here's the code I wrote for the homework
Purpose: A program that takes 2 numbers and outputs the greater of the two

def greaterValue(num1,num2):
     if(num1 > num2):
          print num1, "is greater!"
     elif(num2 > num1):
          print num2, "is greater!"
          print "Both are great!"
first = 0
second = 0
print "Give me a number!"
first = input()
print "Give me another number!"
second = input()

Also terribly simple, and lots of fun with all the loops.

That's the end of my programming adventures for this week. Next week we will learn how to get values out of these functions and life will be great.


Sunday, May 8, 2011

Got the Job!

Woooh! Great news all of you 1 readers. While I didn't get the job of print tech with Rooftop Digital Imaging, I did get a job as a Graphic Designer with Rooftop Digital Imaging! I'm going to eventually be doing 3d work with them. I'm quitting Home Depot and I'm going to drop out of ITT. I want to be there for these guys whenever they need me.

You might expect less frequent posts from me once the quarter at ITT ends. But I will continue posting as I learn new things or as I need to remember things.


Monday, May 2, 2011


So last week all there was in class was a test. Closed book closed notes.

The instructor put the test on a sliding scale. He was going to take the highest grade, and raise it up to 90, and add however many points that was added to that score to all of the score.

After about an hour I finished my test. It was all on the computer. The instructor showed me my grade and it was a 90. I broke the scale. Yeah. I'm that guy.


While Loop:

while (count < 10):

Indeterminate loop. Will loop and not increment its count.

count = 5
while (count < 10):

This code will loop infinitely.
while (statement is true):
     do this code

count = 5
while (count < 10):
     print count

This code will loop infintely.

count = 5
while (count < 10):
     print count
     count = count + 1

This will print 5, 6, 7, 8 and 9
If you make an endless loop, press ctrl-c and that will stop the code

I updated a code from yesterday. Cut out some fat from it:

bugTotal = 0
counter = 0
for counter in range (1, 8):
     print "How many bugs did you collect on day", counter
     bugTotal = bugTotal + input()
print "over", counter, "days you collected", bugTotal, "bugs"

Lab 1 Code
Purpose: a program that takes user finance input and determinese whether or not a budget is met

count = 1
budget = 0
expenses = 0
deficite = 0
overUnder = 0
print "How many expenses did you have this month?"
expenses = input()
print "What is your budget?"
budget = input()
while (count <= expenses):
     print "input expense number", count
     count = count + 1
     deficite = deficite + input()
overUnder = budget - deficite
print "Your budget is $", budget
print "Your expenses totaled $", deficite
if (deficite <= budget):
     print "Your budget has been met"
     print "Your budget has been exceeded"
print "Your over/under is $", overUnder

Lab 2 Code
Purpose: print how far a train will have traveled every hour based on user input for time in hours and speed

distance = 0
time = 0
count = 1
print "How fast is this train going?"
speed = input()
print "For how many hours has the train been traveling?"
time = input()
while (count <= time):
     distance = count * speed
     print "in", count, "hours it travelled", distance, "miles"
     count = count + 1

Homework 1 Code
Purpose: A program that displays a table of C*0-C*20 and displays equivalent F temperatures

count = 0
fTemp = 0
while (count <= 20):
     fTemp = 9 * count / 5 + 32
     print count, "C =", fTemp,"F"
     count = count + 1

Homework 2 Code
Purpose: Create a program that doubles a pay every day and displays a table of how much was earned over a number of days determined by input

pay = .01
total = 0
days = 0
count = 1
print "For how many days does this travesty go on?"
days = input()
print "Day|Total|Rate"
while (count <= days):
     total = total + pay
     print count,"|$",total,"|$",pay
     pay = pay * 2
     count = count + 1

I dont know if I like while loops more or for loops better. Perhaps for loops because there is less code involved.

That's all for now.