Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

December 28 2012

Merry Christmas & Happy New Year 2013 (by Hengki Koentjoro)


Merry Christmas & Happy New Year 2013 (by Hengki Koentjoro)

always be the / d (by straup)


always be the / d (by straup)

Reposted byylem235 ylem235

December 20 2012

(via Best nature pictures of 2012 - The Big Picture -...


(via Best nature pictures of 2012 - The Big Picture - Boston.com)

December 16 2012

(via rands on Instagram)


(via rands on Instagram)

(via Stellar / Stellar Interesting’s faves)


(via Stellar / Stellar Interesting’s faves)

December 15 2012

Illumination (by Noel Clegg)


Illumination (by Noel Clegg)

December 12 2012

(via FFFFOUND!)


(via FFFFOUND!)

August 20 2012

Mercurial fails with import error on Mac OS X

If you installed Mercurial, but it fails with the following error message when you try to use it:

Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 41, in dispatch
    req.ui = uimod.ui()
  File "/Library/Python/2.7/site-packages/mercurial/ui.py", line 45, in __init__
    for f in scmutil.rcpath():
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 464, in rcpath
    _rcpath = osrcpath()
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 436, in osrcpath
    path = systemrcpath()
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 489, in systemrcpath
    path.extend(rcfiles(os.path.join(p, root)))
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 474, in rcfiles
    for f, kind in osutil.listdir(rcdir)
  File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
    self._load()
  File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
ImportError: dlopen(/Library/Python/2.7/site-packages/mercurial/osutil.so, 2): no suitable image found.  Did find:
    /Library/Python/2.7/site-packages/mercurial/osutil.so: mach-o, but wrong architecture

Then your Python most likely runs in 32-bit mode. To force Python to run in 64-bit mode, run this command:

defaults write com.apple.versioner.python Prefer-32-Bit -bool no

Mercurial fails with import error on Mac OS X

If you installed Mercurial, but it fails with the following error message when you try to use it:

Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 41, in dispatch
    req.ui = uimod.ui()
  File "/Library/Python/2.7/site-packages/mercurial/ui.py", line 45, in __init__
    for f in scmutil.rcpath():
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 464, in rcpath
    _rcpath = osrcpath()
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 436, in osrcpath
    path = systemrcpath()
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 489, in systemrcpath
    path.extend(rcfiles(os.path.join(p, root)))
  File "/Library/Python/2.7/site-packages/mercurial/scmutil.py", line 474, in rcfiles
    for f, kind in osutil.listdir(rcdir)
  File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
    self._load()
  File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
ImportError: dlopen(/Library/Python/2.7/site-packages/mercurial/osutil.so, 2): no suitable image found.  Did find:
    /Library/Python/2.7/site-packages/mercurial/osutil.so: mach-o, but wrong architecture

Then your Python most likely runs in 32-bit mode. To force Python to run in 64-bit mode, run this command:

defaults write com.apple.versioner.python Prefer-32-Bit -bool no

August 14 2012

9536 b375 500

jenny-sdcc:

imjustonekid:

-dead-

omg. the last one. holy crap i’m crying

June 10 2012

cypher
z dedykacją dla Madzi :)
Reposted fromolgazet olgazet viafoxyline foxyline

May 08 2012

(via FFFFOUND!)


(via FFFFOUND!)

May 01 2012

(via FFFFOUND!)


(via FFFFOUND!)

Reposted byniefajnie niefajnie

April 27 2012

Sharing history in zsh

One feature of any shell that is immensly useful is the history. Any command you made gets recorded, and you can then retrieve it later on with various commands (my favorite: Ctrl-R, which allows you to search through your history).

At any given time, I usually have anywhere between 10 and 20 terminals open somewhere (not counting remote sessions). Thanks to zsh I can share every command I enter between all those terminal after I enter it and make it accessible via the history.

This means I no longer have to remember which terminal I entered my command in, all I have to do is search the history.

How to enable this

In your .zshrc:

# Appends every command to the history file once it is executed
setopt inc_append_history
# Reloads the history whenever you use it
setopt share_history

Sharing history in zsh

One feature of any shell that is immensly useful is the history. Any command you made gets recorded, and you can then retrieve it later on with various commands (my favorite: Ctrl-R, which allows you to search through your history).

At any given time, I usually have anywhere between 10 and 20 terminals open somewhere (not counting remote sessions). Thanks to zsh I can share every command I enter between all those terminal after I enter it and make it accessible via the history.

This means I no longer have to remember which terminal I entered my command in, all I have to do is search the history.

How to enable this

In your .zshrc:

# Appends every command to the history file once it is executed
setopt inc_append_history
# Reloads the history whenever you use it
setopt share_history

April 26 2012

REPORTTIME in zsh

REPORTTIME is a nifty feature of zsh. If you set it to a non-negative value, then every time, any command you run that takes longer than the value you set it to in seconds, zsh will print usage statistics afterwards as if you had run the command prefixed with time.

So, for example, if we run rake to rebuild any out of date files in Rubinius, we get this:

~/Development/Rubinius ☺ » rake 
[ … Lots of output …]

Finished in 136.926808 seconds

3866 files, 21497 examples, 59187 expectations, 0 failures, 0 errors
rake  160.78s user 26.49s system 81% cpu 3:50.20 total

(Yes, my prompt has a smiley in it. It turns sad and red when the exit status is non-zero)

How to enable this

Since this only makes sense in interative shells, I set this value in my .zshrc:

# Report CPU usage for commands running longer than 10 seconds
REPORTTIME=10

(See this on GitHub)

REPORTTIME in zsh

REPORTTIME is a nifty feature of zsh. If you set it to a non-negative value, then every time, any command you run that takes longer than the value you set it to in seconds, zsh will print usage statistics afterwards as if you had run the command prefixed with time.

So, for example, if we run rake to rebuild any out of date files in Rubinius, we get this:

~/Development/Rubinius ☺ » rake 
[ … Lots of output …]

Finished in 136.926808 seconds

3866 files, 21497 examples, 59187 expectations, 0 failures, 0 errors
rake  160.78s user 26.49s system 81% cpu 3:50.20 total

(Yes, my prompt has a smiley in it. It turns sad and red when the exit status is non-zero)

How to enable this

Since this only makes sense in interative shells, I set this value in my .zshrc:

# Report CPU usage for commands running longer than 10 seconds
REPORTTIME=10

(See this on GitHub)

April 22 2012

cypher
Reposted fromdocanonymous docanonymous viacarfreitag carfreitag

April 20 2012

(via FFFFOUND!)


(via FFFFOUND!)

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!

Schweinderl