Monthly Archives: آبان 1392

Destructive young man shoots a cow in head and the old farmer says it’s OK

I remember a scene from a movie where a destructive young man who is in the middle of some sort of journey, reaches a farm with many cows and shoots one of them in the head, just because it calms him down.

Then the old farmer comes close to young man and says: "It's OK son. Come and try another one."

By the next morning, almost all the cows are dead, and the young man who is almost crying gives his gun to the farmer as a thank you.

I really loved this film, and this scene is all I remember from it. Anyone know which film this is?

installing nodejs on ubuntu 12.10

Salam (means hello) :)

I'm trying to install node.js on my ubuntu 12.04 desktop. I've downloaded node package and followed readme file, ./configure and make commands worked fine, but make install command results in this:

nasser@nasser-pc:~/Downloads/node-v0.10.21$ sudo make install
[sudo] password for nasser: 
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/home/nasser/Downloads/node-v0.10.21/out'
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_IA32' -I../deps/v8/src  -Wall -Wextra -Wno-unused-parameter -pthread -m32 -fno-strict-aliasing -O2 -fno-strict-aliasing -fno-tree-vrp -fno-rtti -fno-exceptions -MMD -MF /home/nasser/Downloads/node-v0.10.21/out/Release/.deps//home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw  -c -o /home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o ../deps/v8/src/accessors.cc
make[1]: g++: Command not found
make[1]: *** [/home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error 127
make[1]: Leaving directory `/home/nasser/Downloads/node-v0.10.21/out'
make: *** [node] Error 2

installing nodejs on ubuntu 12.10

Salam (means hello) :)

I'm trying to install node.js on my ubuntu 12.04 desktop. I've downloaded node package and followed readme file, ./configure and make commands worked fine, but make install command results in this:

nasser@nasser-pc:~/Downloads/node-v0.10.21$ sudo make install
[sudo] password for nasser: 
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/home/nasser/Downloads/node-v0.10.21/out'
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_IA32' -I../deps/v8/src  -Wall -Wextra -Wno-unused-parameter -pthread -m32 -fno-strict-aliasing -O2 -fno-strict-aliasing -fno-tree-vrp -fno-rtti -fno-exceptions -MMD -MF /home/nasser/Downloads/node-v0.10.21/out/Release/.deps//home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw  -c -o /home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o ../deps/v8/src/accessors.cc
make[1]: g++: Command not found
make[1]: *** [/home/nasser/Downloads/node-v0.10.21/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error 127
make[1]: Leaving directory `/home/nasser/Downloads/node-v0.10.21/out'
make: *** [node] Error 2

[NasserTorabzade] نه نویسنده هستی که کتاباتو بسوزونی، نه نوازنده که سازتو بشکنی… آدم معمولی‌ای هستی که مجبوره دوباره شروع کنه.

ناصر تراب زاده @NasserTorabzade
نه نویسنده هستی که کتاباتو بسوزونی، نه نوازنده که سازتو بشکنی... آدم معمولی‌ای هستی که مجبوره دوباره شروع کنه.

[NasserTorabzade] نه نویسنده هستی که کتاباتو بسوزونی، نه نوازنده که سازتو بشکنی… آدم معمولی‌ای هستی که مجبوره دوباره شروع کنه.

ناصر تراب زاده @NasserTorabzade
نه نویسنده هستی که کتاباتو بسوزونی، نه نوازنده که سازتو بشکنی... آدم معمولی‌ای هستی که مجبوره دوباره شروع کنه.

Answer by Nasser Torabzade for How to get my div boxes to go together

you just need to:

  1. use float:left for your sidebar and content. this makes them go to the left side of the line. you should use this when you need two (or more) elements side by side. read this for a description on how float works.

  2. move sidebar element to before content.

  3. also use display:inline-block for your sidebar and content. so they can have width and height.

  4. add an element with clear:both after them. this clears float on both sides, and allows next elements not to have float.

  5. please note that border-width is not counted as element width, and your content no longer needs a margin-right value.

=================================

<html>
<head>
<style>
    @charset "utf-8";
   /* CSS Document */

    #header {
        height: 250px;
        width: 728px;
        border: dashed #000;
        text-align:center;
        font-family:Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
        font-size:12px;
    }

    #footer {
        height: 28px;
        width: 728px;
        border: dashed #000;
        text-align:center;
        font-family:Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
        font-size:12px;
    }

    #left-nav {
        float:left;
        display:inline-block;
        height: 500px;
        width: 150px;
        border: dashed #000;
        text-align: center;
        font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
        font-size: 14px;
        position: relative;
    }

    #content-box {
        float:left;
        display:inline-block;
        height: 500px;
        width: 572px;
        border: dashed #000;
        margin-right: 0px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    #clear{
        clear:both;
    }

    #container{
        display:inline-block;
    }
    body{
            text-align:center;
    }
</style>
</head>

<body>
<div id="container">
    <div id="header">
        this is the header
    </div>


    <div id="left-nav">
        <ul id="left-nav-links">
            <li> <a href="#"> Link Item #1 </a></li>
            <li> <a href="#"> Link Item #2 </a></li>
            <li> <a href="#"> Link Item #3 </a></li>
            <li> <a href="#"> Link Item #4 </a></li>
            <li> <a href="#"> Link Item #5 </a></li>
        </ul>
    </div>

    <div id="content-box">
    </div>

    <div id=clear></div>

    <div id="footer">
        this is the footer
    </div>
</div>
</body>
</html>