You are currently browsing the archives for the Monologues category.

Find Out The Top 10 Memory Consuming Process

Posted 3 weeks, 2 days ago at 5:13 pm. 0 comments

ps -auxf | sort -nr -k 4 | head -10

For top 10 CPU consuming process just replace 4 with 3 in -k switch:

ps -auxf | sort -nr -k 3 | head -10

Find out who’s hammering your web server

Posted 1 month ago at 4:45 pm. 2 comments

cat /path/to/access-log | awk {'print $1'} | sort | uniq -c | sort -n | tail -100

awk {’print $1′} : print the IP column
sort : sort by ip
uniq - c : count uniques
sort -n : numeric sort
tail -100 : show last 100 hits

in B flat

Posted 6 months, 1 week ago at 1:01 am. 0 comments

http://inbflat.net/ (watch it, i’ve heard people crashed their browsers)

Text By Daniel Donahoo (2009)

she closes the lid
and unplugs the device
no bigger than her thumb
from the computer.

My lifes work, she says. But, it isn’t her lifes work.

You see, we store information like an Escher painting.
It shouldn’t all fit in there. But, it does.
And every day we manage to fit more and more into smaller and smaller spaces until one day
she says,
we will be able to fit all the information the world has
everything that everyone knows and believes and dreams
into nothing.

It will all be there. Stored and filed.
Tagged with any keywords you might imagine.

Our hard drives will be thin air.

They will make nanobots look like elephants.
And elephants will be in there too. Tagged. Accessible with search terms
like gray, ivory,
and the largest land dwelling mammal

We will process away at nothing and understand everything.
We will think of a word and the information will slip in, not through our ears or eyes
but straight thorough our skin. Information will breathe in and out of us,
permeate our skin.

Our knowing will be as deep as it is wide.
You see our work here is to learn so much,

to be so full of knowing,
that all there is left to do is unlearn.

Humanity must get to a point where we let go.
We leave the useless ideas and the spent ideologies in the recycle bin.
like an adolescent brain shedding neurons.
like a snake slithering from its old skin.
like an old man who has come to understand so well the point where reality meets the intangible that he is able to decide which breath will be his last. And, he will enjoy that breath more than any that he has taken in his entire life.

And, her lifes work is more than a four meg flash drive.

My lifes work, she says, is the impact that this has.

This is not about what I produce. It is all about what others receive.

Tabbing in OSX

Posted 7 months, 3 weeks ago at 10:27 pm. 0 comments

I really didn’t like to use mouse for every second action i did on my mac. Today i found a solution for tabbing in forms, moving between values in dialog boxes,…

Just open up System Preferences -> Keyboard & Mouse and click “All controls” instead of “Text boxes and lists only”

Keyboard-and-mouse

I did :-)

Posted 8 months, 1 week ago at 10:37 am. 1 comment

[root@bentley ~]# curl -s -D - http://si2.php.net | head
HTTP/1.1 200 OK
Date: Wed, 01 Jul 2009 08:26:06 GMT
Server: Apache
Last-Modified: Wed, 01 Jul 2009 08:39:37 GMT
Content-language: en
Set-Cookie: COUNTRY=SVN%2C231.127.244.131; expires=Wed, 08-Jul-2009 08:26:06 GMT; path=/; domain=.php.net
X-PHP-QUESTION: I wonder if anyone will ever notice this
Transfer-Encoding: chunked
Content-Type: text/html;charset=utf-8

Create dummy file on freebsd

Posted 9 months, 1 week ago at 3:26 pm. 1 comment

dd if=/dev/random of=test bs=1m count=2

dd if=/dev/urandom of=test bs=1m count=2

(thanks simon!)

This will create 2.0M file called “test”.

[root@bentley ~]# ls -alh test
-rw-r--r--  1 root  wheel   2.0M Jun  4 15:20 test
[root@bentley ~]#

This also works on linux, but he doesn’t understand “m” as unit.

Very big bug! :-)

Posted 10 months, 4 weeks ago at 9:34 am. 6 comments

[root@box /var/tmp]# ls -alh | grep magi
-rw------- 1 www wheel 566G Sep 15 2008 magick-6kCJDiQf
-rw------- 1 www wheel 4.9T Sep 15 2008 magick-HBj7nGN4
-rw------- 1 www wheel 3.0T Sep 15 2008 magick-IXNRvqtK
-rw------- 1 www wheel 2.7T Sep 15 2008 magick-irgHIYUQ
-rw------- 1 www wheel 566G Sep 15 2008 magick-qDaohFgm
[root@box /var/tmp]#

IE8 madness

Posted 11 months, 2 weeks ago at 8:54 pm. 3 comments

I cannot believe IT! A year ago i was thinking, gr8 Microsoft is getting closer to other browsers and i don’t need to think about IE, like all the time. “Will this work on IE? Is there some kind of a hack to get this work on IE”… IE7 was cool! The frikkin’ madness about IE8 … It comes with a little button called “Compatibility view”. Few weeks ago i started some cool project, which i’ll reveal in the future, without any concerns about IE (I considered IE6 as obsolete and i HANDLE it with “you’re here with IE6 buddy, i’m sorry for you, you cannot see this page”).

I finished with design and checked the site on firefox, chrome, opera, safari - it worked flawlessly. And then i tried it on IE (I accidentally thrown windows 7 beta on my PC and it came with IE8 beta). I could cry when i saw the page… NOT AGAIN! Microsoft took things in his hands… Could not believe my eyes. I clicked “Compatibility view” button when this message popped out: “Websites designed for older browsers will often look better, and problems such as out-of-place menus, images, or text will be corrected with compatibility view”. ?!!?!? It’s like, you’re about to tell me that i don’t know how to make sites for todays standards. (Page is valid - XHTML 1.0 Strict, CSS too, it works in every browser… except your browser!! stupid fucks…).

Nah, when i clicked that button, it all worked OK as it should (i think they’re using IE7 way to display it right). I went to their blog and few other sites to read a thing or two about it. They told me that IE8 is more strict towards web Microsoft standards , and you know what else? There are high-volume sites like facebook.com, myspace.com, bbc.co.uk, and cnn.com which DON’T work properly on IE8. Oh i forgot, msn.com and microsoft.com neither!

Microsoft’s blog: http://blogs.msdn.com/ie/archive/2008/08/27/introducing-compatibility-view.aspx

Here’s one to you Microsoft _.|..! Go fuck yourselves, your stupid browser and releases. I rather break my leg than support your stupid standards.

Hello world! ;-)

Posted 1 year ago at 2:20 am. 0 comments

Hi there! ;-)

Firing up a brand new blog, powered by wordpress <3.

It’s beta and i hope it will be an stable release soon. I have a lots of geek candies for you! ;-)