• How To Tell When Someone Is Lying

    To know how to tell when someone is lying, it helps to first look at the three basic types of lies. These are lies of omission, commission, and embellishment. What follows is a short description/definition of each, and some ways to detect each kind of lying.

    Lying By Omission
    A lie of omission is when a person fails to include the relevant facts that the listener reasonably expects to be included in an answer. For example, a woman says to her boyfriend, “I thought you went to a show, not to the bar.” He answers, “I did go to the show. Here are the ticket stubs,” but he leaves out the fact that he went to the bar after the show.

    The simplest way to catch this kind of lying is to ask the most relevant questions directly. In the above example, the woman could ask, “Did you go to the bar at all tonight?” Many people are willing to avoid the truth, but not willing to lie outright, at least not in every case. Force them to make a choice and they may just tell the truth.

    Lying By Embellishment
    Lying by embellishment means exaggerating or changing the details. For example, a woman says, “I spent eight hours working on that project,” when she wasn’t actually working for most of that time. It includes exaggerating one’s role in something, as when a man says, “Andy and I have this great little business,” when in fact he is just an employee.

    If you suspect this type of lying, the first thing to do is to get specific. Using the examples above, you might ask, “What exactly did you do for those eight hours?” or in the second case, “Do you actually own the business?” Of course, you can also go to other people or get other information to verify or contradict what was said.

    Lying By Commission
    A lie by commission is an entirely false statement. For example, a child says, “I didn’t break the car window,” even though he did. It can also involve transferring blame to others; “Andy must have broken it.” It may also include improperly taking credit, as when a man says, “Do you like my idea?” about an idea that wasn’t his.

    By its nature, lying of this kind is harder to detect, because the speaker is obviously willing to lie outright. He may even be good at telling lies, depending on how much practice he has had. There are many “indicators” to watch for, though, and other ways to tell when someone is lying, including dozens of traps that can catch lying of this sort.

    Some of the classic indicators of lying have to do with the eyes. “Shifty eyes, or the speaker looking away from you are thought to mean he is lying. Some will tell you these are myths that have been debunked by science. Neither moving the eyes nor avoiding eye contact indicates that what the person is saying is more likely to be a lie, the research shows. But the research is flawed. It relies on laboratory settings in which people are instructed to lie, and looks for universal indicators, rather than those specific to the individual.

    Aldert Vrij of the University of Portsmouth in England, sought to correct this deficiency in the research by looking at real-life police interrogation videos. His idea on how to tell when someone is lying was to concentrate on cases where the true facts were later determined. He found that there were fairly reliable clues to whether a person is lying, but that these are individual, not universal.

    For example, one woman might consistently avert her gaze when lying, while another might have greater eye-contact when lying. Most research wasn’t testing for these individual factors, so the results seem to indicate that lie-detecting wasn’t viable. But we CAN take into account individual habits and patterns of behavior.

    Use what you know or can determine about the individual. Does he normally avoid eye contact? Have you seen him do this before when he was lying? Of course, avoiding eye contact or moving one’s eyes could be a general sign of guilt, so be careful before assuming that it means a dishonest response to a particular question. The person may just feel guilty about something related. In other words, to tell if someone is lying, start by learning a little about the person.

    I hope these tips will help make the truth a little more transparent.

    (original article: link)


  • Doctrine ORM 1.2.4 in Fuel PHP 1.1

    Doctrine ORM 1.2.4 in Fuel PHP 1.1

    Today, I decided to make an attempt to dive into a new framework and implement my favorite ORM framework, Doctrine. As you can see, I’ve been spoiled really hard by Doctrine and I’ve perhaps reached a point in my career where it could be best to use it to hasten the development process and of course, one of its key points of being a powerful ORM framework.

    The first thing you need to do is make fuelPHP work on your box. Once ready, download Doctrine 1.2.4 here: http://www.doctrine-project.org/downloads/Doctrine-1.2.4.tgz

    On a default fuelPHP installation, extract the doctrine source files into [www]/fuel/packages. You should see something similar:

    Create the bootstrap file “bootstrap.php” and it should be placed in the [www]/fuel/packages/doctrine/ folder:

    file: [www]/fuel/packages/doctrine/bootstrap.php
    [cc lang=”php” tab_size=”2″ lines=”-1″]
    setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_CONSERVATIVE);
    Doctrine_Core::loadModels(APPPATH.’classes/model’);

    Config::load(“db”,true);
    $config = Config::get(“db”);

    $dsn = $config[“default”][“connection”][“dsn”];
    $user = $config[“default”][“connection”][“username”];
    $password = $config[“default”][“connection”][“password”];

    $dbh = new PDO($dsn, $user, $password);

    $conn = Doctrine_Manager::connection($dbh);
    [/cc]

    By looking at the bootstrap file, Doctrine uses the database configuration of fuelPHP so that you don’t have to specify the connection details again when loading Doctrine leaving the configuration in one place.

    Modify your fuelPHP config file by adding the doctrine package.
    file: [www]/fuel/app/config/config.php
    [cc lang=”php” tab_size=”2″ lines=”-1″ first_line=”187″]
    ‘packages’ => array(
    ‘doctrine’
    //’orm’,
    ),
    [/cc]

    And finally, test!
    This is just a sample code that will let you know if Doctrine is connecting to your database properly. If configured correctly, you should be able to see the tables in your database.
    [cc lang=”php” tab_size=”2″ lines=”-1″]
    function action_doctrine()
    {
    $path = Doctrine::getPath();

    $conn = Doctrine_Manager::connection();
    $result = $conn->execute(‘SHOW TABLES;’)->fetchAll();
    $tables_found = null;

    foreach ($result as $table)
    {
    $tables_found .= $table[0].”
    “;
    }

    $disp = “doctrine loaded from: {$path}”;
    $disp .= “


    parsing tables… tables found: “;
    $disp .= “

    {$tables_found}

    “;

    return $disp;
    }
    [/cc]

    This should get you started with your Indoctrinated FuelPHP project!

    Notes:
    It still does not work on my box! What do I do???
    – check your configurations. verify the username, password and dsn connection
    – check the extract paths
    – post a comment and I’ll try to check

    Packages used:
    – Doctrine ORM v1.2.4
    – FuelPHP v1.1

    Platform (tested):
    – xampp v1.7.7 on windows 7 – 64-bit
    – php v5.3.8
    – mysql v5.5.16

    Questions / Suggestions? Ask!


  • Surreal Friday Noon

    While I was busily seated by my workstation, I noticed that, through the window, the sun was shining accompanied by a dristle.
    20120203-172734.jpg

    20120203-172747.jpg

    20120203-172754.jpg

    (photos taken using iPoo.4)