Just as we can weatherproof a home by looking for cracks, leaks, and imperfections, we can also weatherproof our relationships, even our lives, by doing the very same thing. Essentially, weatherproofing means that you are on the careful lookout for what needs to be fixed or repaired. It’s finding the cracks and flaws, and either trying to fix them, or at least point them out to others. This tendency encourages you to think about what’s wrong with everything and everyone --- what you don’t like.
You begin to notice little faults about your colleague (or friend, whoever), that you feel could be improved upon. You bring it to their attention. You might say, “You know, you sure have a tendency to be late.” Or, “I’ve noticed you don’t read very much.” The point is, you’ve begun what inevitably turns into a way of life --- looking for and thinking about what you don’t like about someone, or something that isn’t quite right.
Obviously, an occasional comment, constructive criticism, or helpful guidance isn’t cause for alarm. Occasional harmless comments have a tendency to become a way of looking at life.
When you are weatherproofing another human being, it says nothing about them --- but it does define you as someone who needs to be critical.
Whether you have a tendency to weatherproof your relationships, certain aspects of your life, or both, what you need to do is write off weatherproofing as a bad idea. As the habit creeps into your thinking, catch yourself and seal your lips. You will be happier person and feel much better.
You may do weatherproofing, fault finding and corrections, if it is your assigned duty. Otherwise, avoid it.
Thursday, July 1, 2010
Avoid Waterproofing
Monday, June 21, 2010
Be Willing to learn
Many of us are reluctant to learn from the people closest to us—our authorities, colleagues, staff and friends. Rather than being open to learning, we close ourselves off out of embarrassment, fear, stubbornness, or pride. It's almost as if we say to ourselves, "I have already learned all that I can [or want to learn] from this person; there is nothing else I can [or need to] learn."
It's sad, because often the people closest to us know us the best. They are sometimes able to see ways in which we are acting in a self-defeating manner and can offer very simple solutions. If we are too proud or stubborn to learn, we lose out on some wonderful, simple ways to improve our lives.
Remain open to the suggestions of your authorities and other people. Ask seniors and authorities, "What are some of my blind spots?" By this simple process you end up getting some good advice. It's such a simple shortcut for growth, yet almost no one uses it. All it takes is a little courage and humility, and the ability to let go of your ego. This is especially true if you are in the habit of ignoring suggestions, taking them as criticism.
Pick something that you feel the person whom you are asking is qualified to answer. Sometimes the advice we get usually prevents us from having to learn something the hard way.
Monday, May 31, 2010
Don’t take life too seriously
Chetan Bhagat at SYMBI :
“Don’t just have career or academic goals. Set goals to give you a balanced successful life. I used the word balanced before successful. Balanced means ensuring your health, relationships, mental peace are in good order. There is no point of getting a promotion on the day of your break up. There in no fun in driving the car if your back hearts. Shopping is not enjoyable if your mind is full of tension. Life is one of those races in nursery school where you have to run with a marble in a spoon kept in your mouth. If the marble falls their is no point coming first. same is with life. Where health and relationships are the marble. Your striving is only worth it if there is harmony in your life else you may achieve the success but this spark, this feeling of being excited and alive will start to die. One thing about nurturing the spark… don’t take life seriously. Life is not meant to be taken seriously as we are really temporary here. we are like a prepaid card with limited validity. If we are lucky we may last another 50 yrs; and 50 years is just 2500 weekends. Do we really need to get so worked of? Its ok bunk a few classes, scoring low in couple of papers. goof up a few interviews, take leave from work, fall in love, little fights with your spouse. We are people not programmed devices.”
Tuesday, May 25, 2010
Let others have the glory
There is something magical that happens to the human spirit, a sense of calm that comes over you, when you cease needing all the attention directed toward yourself and instead allow others to have the glory.
Our need for excessive attention is that ego-centered part of us that says, “Look at me. I’m special. My story is more interesting than yours.” It’s that voice inside of us that may not come right out and say it, but that wants to believe that “my accomplishments are slightly more important than yours.”
The ego is that part of us that wants to be seen, heard, respected and considered special, often at the expense of someone else. It’s the part of us that interrupts someone else’s story, or impatiently waits his turn to speak so that he can bring the conversation and attention back to himself. To varying degrees, most of us engage in this habit, much to our own detriment.
When you surrender your need to hog the glory, the attention you used to need from other people is replaced by a quiet inner confidence that is derived from letting other have it.
Friday, April 30, 2010
Little things
It is rightly said that we do not grow up when we speak big things instead we are known to be grownups when we understand little things in life. I always noticed people generally ignoring very basic things in life which later makes their problems more worse than easy. Relations in life are maintained well when people do not underestimate the little things in life. The issues like depression, anger, fear, feeling of loneliness, etc. arise when people cease to look into minor things like inspiration, appreciation, love, care, humbleness, etc.
The problem that dwells in the metros is that people complain of their partner spending less time with them. Well, as we see, the person keeps himself busy with the office schedule and finds little time for himself. Most people complain about their busy schedule. This complain generally arises due to a subconscious feeling to prove themselves important and more busier than others, a feeling that they work more. Slowly we get into habit complaining about things. The people forget about how to respect the feelings of their mates. This is the main problem that the people in Indian subcontinent are facing these days.
Respect about other human beings is very necessary when it comes to live in a society. We should take a note that everybody is important and loves to be treated as that. These little things matter a lot in life. Take care of your behavior and keep your brain cool.
Thursday, April 29, 2010
To all my fellow readers
Hello people,,
Thanks for supporting my thoughts by reading my blog here. My friends keep pressing on me to write something about computers and internet, the subject I am good at. But guys, you know as my exams are going on I am continuously immersed into by syllabus books. I keep writing for a change. I feel better when I share my thoughts with you people. This gives a feeling that I am not left alone here, away from home, just studying in my lonely room. My best friend thinks that I have gone crazy these days, started to think weird things about the stuff called life.
I love experimenting with things. It gives a feeling of life. Innovative ideas creep in. Life is full of possibilities. I even keep playing with my vocabulary words and try framing new sentences. Many may find the things I talk about here crazy, but this is the way that you feel alive.
I feel good to free my mind here. At least we have right to create our own virtual world where no one interrupts your thoughts. Sometimes, smoking up the things here helps me get empty and feel relieved. You know how it is.
Keep up me,, read my blog regularly so that you won’t miss anything special in your life. Live your life with me. Your comments would help me going.
Happy reading.
Don’t worry be happy
When it comes to stress, illness and wellness, it is important to remember that what goes on in your mind is reflected in your body.
People who continually worry and get stressed about their problems tend to develop tense muscles, become tired easily or get headaches. When their mind is stressed, their body becomes stressed too.
Dwelling on your mistakes and over-analyzing what could go wrong or what you could have done differently only drains your energy and distracts you from what you have to do.
Worrying only uses up energy and doesn’t really help your situation. Like acid, worry will just eat you away if you let it into your life each day.
There are endless things you can worry about…service, safety, health, future, etc.
But let’s face it:
- Worry doesn’t change the situation
- Worry won’t help time move any quicker
- Worry won’t help you with your service
- Worry just doesn’t help in any way…
Wednesday, April 28, 2010
Echo effect or Mirror effect
What kind of friends do you have? What kind of employees? What kind of colleagues? So many times in life we get from others EXACTLY WHAT WE EXPECT!
In short the way we see people affects the way we treat them and the way we treat them affects the way they perform. This is called Pygmalion Effect (sometimes called the “echo effect” or the “mirror effect”).
Expectations can influence behavior: therefore, a manager may get better staff performance if he expects better performance. What we see reflected in many objects, situations, or persons are what we put there with our own expectations. We create images of how things should be, and if these images are believed, they become self fulfilling prophecies.
The feelings and tones which surround us can be changed if we work to change them by sending out the kind of signal we want reflected or echoed. We all have an audience of individuals and colleagues whose day, including their moods, feelings, and dispositions, will be influenced by the way we start it.
The Pygmalion Effect has met the test of scientific analysis.
• A study showed that experiments could raise the IQ scores of children, especially on verbal and information sub-tests, merely by expecting them to do well.
• A study showed that worker performance increased markedly when the supervisor of these workers was told that his group showed a special potential for their particular job.
Tuesday, April 27, 2010
Annoyed with someone?
Many a times we find an excuse for our failure, we blame the society, unfair treatment, injustice etc. Resentment or bitterness is an attempt to make our own failure palatable. However, resentment is worst than a disease. It is a deadly poison which makes happiness impossible and drains tremendous amount of energy.
Resentment is also a “way” of making us feel important. Many people get a perverse satisfaction from the feeling “wronged.”
It is an illusion whereby a person thinks, if he can feel resentful / bitter enough, and thereby “prove” the injustice, some magical process will undo the event of circumstances which caused resentment. Resentment is a mental resistance to or non-acceptance of something which has already happened.
Resentment is an emotional re-fighting of some event in the past. You cannot win, because you are attempting to do the impossible – change the past.
Resentment, even when based upon real injustice and wrongs, is not the way to win. It soon becomes an emotional habit. Habitually feeling that you are a victim of injustice, you picture yourself as a victimized person.
Habitual resentment invariably leads to self-pity, which is worst possible emotional habit anyone can develop. A person begins to picture himself as a victim and results in inferior self-image.
As long as you harbor resentment / hatred, it is literally impossible for you to picture yourself as a self-reliant and determined person. Your resentment is not caused by other persons, events or circumstances. It is caused by your own emotional response – your own reaction. You can control it if you firmly convince yourself that resentment and self-pity are not ways of happiness and success, but ways to defeat and unhappiness.
Saturday, April 24, 2010
Missing presence of an elder sister.
Do you have an elder sister? I don’t. Its all like when you have something you don’t value it unless you loose it. I miss having an elder sister. Lots of things that I wanted to do. The reactions and expressions when I would tease her, freak her out, scare her,,,, wow,, I just feel good. At this moment I am just thinking of having my own elder sister and taking all the privileges that I could. Making her smile with my cutest expressions, wiping her tears off, listening to her long chats, going on a walk with her, all seems to be a dream without an elder sister.
Being eldest sibble in my family I always had a responsible role. No kidding!! My mom always prompted from her kitchen “Ashish, you should put forward a lesson for your siblings.” There is no one who would hide me behind her and protect me from my mamma’s cane. :) There are lots of things I miss to do. Receiving gifts, that playful scolding, eaves dropping on her fiance’s phone, hahaha… thats bad I know, but you can always have fun with your own sister, right? Moreover when she is incharge of my security and is specially assigned a task to look after me. I would feel like a king. No Tensions man.
Need money for a picnic? Ask her. This would bypass all the formal routines through mom and dad. No questions! And I could get a clean check. Great. Lots of advantages of having an elder sister.
My mamma did a big mistake. I would always miss a presence of an elder sister in my life.
Friday, March 26, 2010
Connecting to life’s portal
Sometimes I think of life to be a chance to unveil ourselves. Sometimes it is like a long endless river. Some people find it to be as a stagnant lake others feel it to be a vast blue. Life is so generous, so kind, so merciful. We got all the freedom we needed, all the love that we could ever have, the pleasures of music, the sweetness of honey, the contemplation from the never ending ether. I can feel it deep inside me. The nature responds to our requests. Ether can help you to connect with the infinite and generate new ideas that no one has before thought about. The sound of the see waves has a perfect frequency that helps us to reach a state of trance, to unwind ourselves to the vastness of this beautiful world. I feel a shudder run down my spine when I try to connect with the infinite silence. There is sound every where; as if the whole world is somehow connected and supported by the thread of sound. Close your ears and feel it, close your eyes and see it, feel the sensation within you. There is a lot more to discover, not on the rational grounds but by the divine capabilities of our blessed brain. It is designed to discover but I feel that our vision is fogged with the ego and that it obscures the subconscious call. Feel free like a bird, light as a quill, fast as light, powerful as a hurricane, and calm as the vast blue sky. Its all within us. We just need to rediscover ourselves.
Thursday, March 25, 2010
Getting married?
Have you ever thought that is marrying necessary for a human being? Why do people have to get married when one can even have babies without getting into the relation? Having regular sexual satisfaction also cannot be a reason for this type of relation. Then what thought makes a man to marry a women and have her for whole of his life? The answer lies in nature’s mystery.
Its all a sort of preprogrammed in human brain. Getting to raw thinking what all animals follow is also followed by humans. Being a social animal, human tries to keep along him the things that can help him, no matter what. This is a sort of a give and take relationship where expectations are born. Now one might argue the relation between the above said nature of man with the necessity of marriage. The things are much complicated than they seem to be. To understand the aspects of human nature we need to get elevated from the regular plain of vision and view the things as a whole balanced system. Failure to see any aspect can drag you to some very wrong conclusions.
Marrying to someone is a primary step to express the care for someone. Till we are a kid and in our 20’s we live for ourselves without thinking for the world. The feeling of being superior is one of the prime feelings what a human can feel. This comes when we either kill something to prove our might. But why would someone spend lots of energy on unnecessary things? Well, we have another way out. Try to shelter some weak species and feel great. The another thing that comes into light is the need of progeny to keep this human race alive. Parental care being one of the stimuli from the subconscious brain both the parents stay together. The female and the new born being vulnerable species are totally on the power of man for their protection. Man in return gets his feeling of being important and superior.
Well the idea for a family I explained above is the central dogma since stone age. Today we have grown far more socialized and civilized. Failure to understand the prime and important things in life can tremble all the other things that depend on the dogma. This is similar to thing that people forget about the central beam structure of the building while living inside it.
The interdependence is the property that keeps this world balanced and we are just an element that is needed to maintain that balance.
Tuesday, March 23, 2010
DO I KNOW YOU?
Imagine this question from one of your best friends.
Post your comments on what you would feel about it…
Free ebooks
List of free E-books
This is for all those who wander on net for some free reading stuff.
O'Reilly online http://www.oreilly.com/openbook/ | http://sysadmin.oreilly.com/
Computer books and manuals
http://www.hoganbooks.com/freebook/webbooks.html | http://www.informit.com/itlibrary/ | http://www.fore.com/support/manuals/home/home.htm | http://www.adobe.com/products/acrobat/webbuy/freebooks.html
The Network Book http://www.cs.columbia.edu/netbook/
Some #bookwarez.efnet.irc links
http://www.extrema.net/books/links.shtml
Some #bookwarez.efnet.irc fiction
http://194.58.154.90:4431/enscifi/
Pimpas online books (Indonesia)
http://202.159.16.55/~pimpa2000 | http://202.159.15.46/~om-pimpa/buku
Security, privacy and cryptography
http://theory.lcs.mit.edu/~rivest/crypto-security.html | http://www.oberlin.edu/~brchkind/cyphernomicon/
My own misc online reading material
http://www.eastcoastfx.com/docs/admin-guides/ | http://www.eastcoastfx.com/~jorn/reading/
Computer books http://solaris.inorg.chem.msu.ru/cs-books/
| http://sweetrude.net/~cab/books/ | http://alaska.mine.nu/books/ | http://poprocks.dyn.ns.ca/dave/books/ | http://58-160.skarland.uaf.edu/books/ | http://202.186.247.194/~ebook/
| http://hooligans.org/reference/
Linux documentation http://www.linuxdoc.org/docs.html
FreeBSD documentation http://www.freebsd.org/tutorials/
Sun documentation http://osiris.imw.tu-clausthal.de:8888/ | http://uran.vvsu.ru:8888/
SGI documentation
http://newton.unicc.chalmers.se/ebt-bin/nph-dweb/dynaweb;td=2 | http://techpubs.sgi.com/library/tpl/cgi-bin/init.cgi
IBM Online Redbooks http://www.redbooks.ibm.com/
Digital Unix documentation
http://www.unix.digital.com/faqs/publications/base_doc/DOCUMENTATION/V40D_HTML/V40D_HTML/LIBRARY.HTM
Filesystem Hierarchy Standard
http://www.pathname.com/fhs/2.0/fhs-toc.html | http://www.linuxbase.com/
UNIX stuff http://www.ucs.ed.ac.uk/~unixhelp/index.html | http://www.uwsg.indiana.edu/usail/ | http://www.isu.edu/departments/comcom/unix/workshop/unixindex.html | http://www.franken.de/users/lorien/unix.html | http://www.cs.buffalo.edu/~milun/unix.programming.html
Programmers reading http://www.programmersheaven.com/ | http://www.cs.monash.edu.au/~alanf/se_proj97/
Programming Pearls 2nd edition
http://www.cs.bell-labs.com/cm/cs/pearls/
C stuff
http://www.strath.ac.uk/CC/Courses/NewCcourse/ccourse.html | http://www.cm.cf.ac.uk/Dave/C/CE.html | http://www.cprogramming.com/tutorial.html | http://www.cs.virginia.edu/c++programdesign/slides/ | http://www.icce.rug.nl/docs/cplusplus/cplusplus.html
Perl stuff http://www.webdesigns1.com/perl/ir.html | http://www.ictp.trieste.it/texi/perl/perl_toc.html | http://www.itknowledge.com/tpj/ | http://www.plover.com/~mjd/perl/
Java stuff http://www.cs.brown.edu/courses/cs016/book/ | http://polaris.cis.ksu.edu/~schmidt/CIS200/ | http://www.daimi.au.dk/dProg1/java/langspec-1.0/index.html
Lisp stuff
http://www.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl/mirrors.html
| http://www.cs.tulane.edu/www/Villamil/lisp/
Ada stuff http://www.adahome.com/Tutorials/
Database reading
http://www.bus.orst.edu/faculty/brownc/lectures/db_tutor/index.htm
SQL stuff http://w3.one.net/~jhoffman/sqltut.htm | http://www.doc.mmu.ac.uk/STAFF/E.Ferneley/SQL/index.htm | http://www.daimi.au.dk/~oracle/sql/index.html
Visual Basic stuff http://www.vb-world.net/books/
Handbook of Applied Cryptography
http://www.cacr.math.uwaterloo.ca/hac/
X Window System http://tronche.com/gui/x/ | http://www.cen.com/mw3/refs.html | http://www.gaijin.com/X/
GTK and Gnome stuff
http://developer.gnome.org/doc/GGAD/ggad.html
QT and KDE stuff http://www.troll.no/qt/ | http://developer.kde.org/documentation/tutorials/index.html | http://www.arrakis.es/~rlarrosa/tutorial.html
Corba stuff http://www.iona.com/hyplan/vinoski/
TCP/IP info http://www.tunix.kun.nl/ptr/tcpip.html
Misc programmers reading
http://www.cs.wisc.edu/~chilimbi/Pubs.html | http://www.ic.arizona.edu/~nromano/spring99/readings.htm
Some useful tech articles http://www.sysadminmag.com/ | http://www.dotcomma.org/
Considering Hacking Constructive
http://www.firstmonday.dk/issues/issue4_2/gisle/index.html
Eric's Random Writings http://www.tuxedo.org/~esr/writings/
IBM's History
http://www.ibm.com/ibm/history/story/text.html
Electronic Publishing
http://www.civeng.carleton.ca/~nholtz/ElectronicPublishing.html
Digital processing http://www.dspguide.com/pdfbook.htm
The Hardware Book http://sunsite.auc.dk/hwb/
Network iQ Router Reference Manual
http://www.teltrend.co.nz/documentation/networkiq/rel74/html/rmtoc.htm
Cisco Product Documentation
http://www.cisco.com/univercd/cc/td/doc/product/
Novell developers appnotes
http://developer.novell.com/research/appnotes/
Icons for your desktop http://nether.tky.hut.fi/iconstore/
Hackers' Hall of Fame at Discovery Online
http://www.discovery.com/area/technology/hackers/hackers.html
Symbols and signs and ideograms and stuff http://www.symbols.com/
Dictionaries http://www.ohiolink.edu/db/oed.html | http://www.ohiolink.edu/db/ahd.html | http://www.ohiolink.edu/db/columbia.html | http://www.ohiolink.edu/db/thes.html | http://www.eb.com:180/
Misc reading material http://dali.orgland.ru/tcd/ | http://www.ud.se/english/press/pdf_publ.htm
Dantes Inferno
http://sophia.smith.edu/~lkleinbe/dante/home.html | http://www.divinecomedy.org/
Books and texts http://digital.library.upenn.edu/books/ | http://www.cs.cmu.edu/books.html | http://www.ipl.org/reading/books/ | http://www.nakedword.org/ | http://sunsite.berkeley.edu/alex/
Literature stuff http://lion.chadwyck.co.uk:8080/ | http://www.swan.ac.uk/uwp/lit.htm
Octavo books http://www.octavo.com/
Project Gutenberg - books and texts http://www.promo.net/pg/
Project Runeberg - Scandinavian in books and texts http://www.lysator.liu.se/runeberg/katalog.html
The Elements of Style http://www.bartleby.com/141/index.html
Bigtext - illustrated books and manuals for DOS http://www.ozemail.com.au/~kevsol/oldfav.html#bigtext
Breeze - a complete text system for Windows
http://www.ozemail.com.au/~kevsol/sware.html#brzwin
Language links http://www.june29.com/HLP/
Grimms' fairy tales
http://www.nationalgeographic.com/grimm/archive.html
Winnie the Pooh http://www.machaon.ru/pooh/
Seven Wonders of the World
http://ce.eng.usf.edu/pharos/wonders/
Medieval history http://www.fordham.edu/halsall/sbook2.html
Misc history http://www.usaor.net/users/ipm/contents.html
| http://www.homeusers.prestel.co.uk/littleton/re0_cath.htm
Stonehenges Legends
http://www.missgien.net/stonehenge/legends.html
In Parentheses historical papers http://www.inpar.dhs.org/
Bulfinchs Mythology http://www.bulfinch.org/
The Dead Sea Scrolls
http://lcweb.loc.gov/exhibits/scrolls/toc.html
Qumran historical site http://www.kalia.org.il/Qumran/
Index of cults http://www.totentanz.de/kmedeke/cults.htm
Heretical speculation
http://www.calweb.com/~queribus/gnosticgnus.html
The esoteric Ordo Supremus Militaris Templi Hierosolymitani http://www.osmth.org/index.html
Runes and Norse stuff http://www.multiart.nu/grimner/ | http://www.eastcoastfx.com/~jorn/runes/
Extinction level events
http://members.xoom.com/korwisi/ele/english/index.html | http://impact.arc.nasa.gov/ | http://www.boulder.swri.edu/clark/ncar.html
Stephen Hawkings Universe
http://www.pbs.org/wnet/hawking/html/home.html
The constellations http://www.dibonsmith.com/constel.htm
Falling into a black hole
http://casasrv.colorado.edu/~ajsh/schw.shtml
Gravity is a push http://www.epicom.com/gravitypush/
Online audiobooks http://www.broadcast.com/books/scifi/
ElecBooks http://www.elecbook.com/eblist.htm
NewMedia Classics http://www.newmediaclassics.com/
Online Books Archive http://docs.online.bg/
Internet Public Library http://www.ipl.org/
Rocket-Library.com
http://www.rocket-library.com/categories.asp
PalmPilot E-Text Ring
http://www.webring.org/cgi-bin/webring?ring=pilot_text&id=2&List
Virtual Free Books
http://www.virtualfreesites.com/free.books.am.html
All About Ebooks http://aalbc.com/ebooks/Allaboutebooks.htm
Thursday, March 18, 2010
What I think of life to be
What an extraordinary situation is that of us mortals! Each of us is here for a brief sojourn; for what purpose he knows not, though he sometimes thinks he feels it. But from the point of view of daily life, without going deeper, we exist for our fellow-men--in the first place for those on whose smiles and welfare all our happiness depends, and next for all those unknown to us personally with whose destinies we are bound up by the tie of sympathy. A hundred times every day I remind myself that my inner and outer life depend on the labours of other men, living and dead, and that I must exert myself in order to give in the same measure as I have received and am still receiving. I am strongly drawn to the simple life and am often oppressed by the feeling that I am engrossing an unnecessary amount of the labour of my fellow-men. I regard class differences as contrary to justice and, in the last resort, based on force. I also consider that plain living is good for everybody, physically and mentally.
In human freedom in the philosophical sense I am definitely a disbeliever. Everybody acts not only under external compulsion but also in accordance with inner necessity. Schopenhauer's saying, that "a man can do as he will, but not will as he will," has been an inspiration to me since my youth up, and a continual consolation and unfailing well-spring of patience in the face of the
hardships of life, my own and others'. This feeling mercifully mitigates the sense of responsibility which so easily becomes paralyzing, and it prevents us from taking ourselves and other people too seriously; it conduces to a view of life in which humour, above all, has its due place.
Monitor your processes
This class is used to get the % of cpu usage of a running thread by native thread id. It's a great way to be able to tell which thread is hammering your cpu. Usage:
To watch cpu usage from within the thread to be watched:
Dim CPUutil As New ThreadCPUusageWatcher
Dim PercentUsage as Short
CPUutil .Start()
' Use:
CPUutil..NativeThreadID ' to get the id if the current thread, or set the id of the thread to be watched.
PercentUsage = CPUutil .CPUusage ' to get the current percentage of cpu use of the watched thread
To watch the cpu usage of background threads from another (the main?) thread:
declare CPUutil public, and then set it new from with the thread to be watched. Ie:
Public CPUutil as ThreadCPUusageWatcher
' Then, from within the thread to be watched:
CPUutil = New ThreadCPUusageWatcher
CPUutil.Start()
' CPUutil.CPUusage can then be called from any thread.
' Call:
CPUutil.StopWatcher() ' to stop the watcher when your app closes.
Imports System.Diagnostics
Imports System.Threading
Public Class ThreadCPUusageWatcher
' This class is used to get the % of cpu usage of a running thread by native thread id.
' It's a great way to be able to tell which thread is hammering your cpu. Usage:
' To watch cpu usage from within the thread to be watched:
' Dim CPUutil As New ThreadCPUusageWatcher
' Dim PercentUsage As Short
' CPUutil .Start()
' Use:
' CPUutil..NativeThreadID ' to get the id if the current thread, or set the id of the thread to be watched.
' PercentUsage = CPUutil.CPUusage ' to get the current percentage of cpu use of the watched thread
' To watch the cpu usage of background threads from another (the main?) thread:
' declare CPUutil public, and then set it new from with the thread to be watched. Ie:
' Public CPUutil As ThreadCPUusageWatcher
' Then, from within the thread to be watched:
' CPUutil = New ThreadCPUusageWatcher
' CPUutil.Start()
' CPUutil.CPUusage can then be called from any thread.
' Call:
' CPUutil.StopWatcher() ' to stop the watcher when your app closes.
Private threadID As Int16
Private WatcherRunning As Boolean = False
Private th1 As Thread
Private Percentage As Long
Public Sub New()
threadID = AppDomain.GetCurrentThreadId
End Sub
Public Sub New(ByVal NativeThreadID As Int16)
threadID = NativeThreadID
End Sub
Private Function GetCurrentNativeThreadID() As Int16
GetCurrentNativeThreadID = AppDomain.GetCurrentThreadId
End Function
' Set the native ID of a process thread to be watched, or get your native thread id
Public Property NativeThreadID() As Int16
Get
Return GetCurrentNativeThreadID()
End Get
Set(ByVal value As Int16)
threadID = value
End Set
End Property
Public ReadOnly Property IsRunning() As Boolean
Get
Return WatcherRunning
End Get
End Property
Public ReadOnly Property CPUusage() As Long
Get
Return Percentage
End Get
End Property
Public Sub StopWatcher()
WatcherRunning = False
End Sub
Public Sub Start()
th1 = New System.Threading.Thread(AddressOf StartWatcher)
th1.Start()
End Sub
Private Sub StartWatcher()
Dim tx As System.Diagnostics.ProcessThreadCollection
Dim t, tId, a, a1, a2, a3, a4, a5, CPUs As Int16
Dim CPUtimeEnd, CPUtimeStart As Double
CPUs = Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS")
tx = System.Diagnostics.Process.GetCurrentProcess().Threads
tId = 0
For t = 0 To tx.Count - 1
If tx.Item(t).Id = threadID Then
tId = t
End If
Next
If tId = 0 Then
MsgBox("Thread could not be found.")
Exit Sub
End If
WatcherRunning = True
Try
Do While WatcherRunning = True
CPUtimeStart = tx.Item(tId).TotalProcessorTime.Milliseconds
Thread.Sleep(200)
CPUtimeEnd = tx.Item(tId).TotalProcessorTime.Milliseconds
If (CPUtimeEnd > CPUtimeStart) Or (CPUtimeEnd = CPUtimeStart) Then
a = a + 1
If a = 1 Then
a1 = CPUtimeEnd - CPUtimeStart
ElseIf a = 2 Then
a2 = CPUtimeEnd - CPUtimeStart
ElseIf a = 3 Then
a3 = CPUtimeEnd - CPUtimeStart
ElseIf a = 4 Then
a4 = CPUtimeEnd - CPUtimeStart
ElseIf a = 5 Then
a5 = CPUtimeEnd - CPUtimeStart
ElseIf a > 5 Then
a = 1
End If
Percentage = ((a1 + a2 + a3 + a4 + a5) / 5) / 2
Percentage = Percentage / CPUs
If Percentage > 100 Then Percentage = 100
End If
Loop
Catch ex As Exception
MsgBox(ex.Message)
End Try
WatcherRunning = False
End Sub
End Class
Tuesday, March 9, 2010
Being Responsible
This is for all those little kiddos who think that they are not being thought to be mature enough to handle responsibilities.
With power comes responsibilities. Most of us crave for power but just neglect the possible responsibilities that come bundled with them. Being a responsible person and being a leader are quite similar things. You must learn to say that its your fault even if it lies with your team. Its you who are responsible for your team. Taking family decisions is a great responsibility.
In greater aspect one may realize that responsibility means sacrifice and devotion. Sometimes you may need to have a cup of coffee that you hate to drink. You may have to sacrifice your education because your elder siblings need to have education. You need to starve to let your kids get their complete diet. You must learn to read mind and heart of the person in front of you. And the most important thing that knocks many people down it the feeling that the people for whom you did all those sacrifices turn against you.
Man himself creates the circumstances that he lives in. He chooses his own fate. You must be ready for all the things that may come in your way. Living for someone else and caring for others without being a nuisance and living as a social element is our primary responsibility.
The things mentioned overhead are just like a warm up when you get into the suit of a responsible person. There are lots of things that you need to be mentally prepared of. You may be responsible for an aircraft mission or for the financial condition of your country, you may be a legislator or a statesman, you would perform better only if you realize your responsibilities under that hat.
Some of our politicians can be adjudged to be irresponsible. Look at the way they throw away their own faults to their rivals. The way to be successful is to cut off all the possible ways of retreat and then heading for the battle. Looking for excuses is the prime factor that leads to failures. Responsible people should be humble enough to take responsibility of any good or bad results that come out of their experiments.
Being humble, respect towards others, sacrificing yourself and some self respect is the recipe that can buy you fame.
Remember that responsibility is the role that you need to play; forgetting all about yourself. The most important thing in life is to keep experimenting and trying new things. This is the only fool proof way to know your own capabilities.
Preliminary hacking stuff
I found these links while I was working on a project for my client.
Try changing the provided urls and discover the results.
Just be logical and innovative.
http://www.netexpress.co.in/yellowpages/display/Schools/Academic/Colleges+and+Universities/Rajasthan/Jaipur/1/display.aspx
http://www.indiastudycenter.com/Univ/States/Rajsthan/Jaipur/Schools/default.asp
http://www.indiastudycenter.com/Univ/States/Rajsthan/Jaipur/Engineering-Colleges/default.asp
http://www.indiastudycenter.com/univ/states/rajsthan/jaipur/default.asp
http://www.indiaedu.com/rajasthan/schools/
http://www.indicareer.com/schools-in-Jaipur.html
http://www.indicareer.com/6-colleges-in-Rajasthan.html
http://www.whereincity.com/yellow-pages/rajasthan/schools-colleges-institutes/383.htm
http://www.indicareer.com/
http://www.indicareer.com/6-colleges-in-Maharashtra.html
http://www.rajasthaneducation.net/computer/Jaipur/
http://www.findaschool.org/index.php?Country=India
http://www.mycollege.in/district.php?name=Rajasthan&char=all&type=Arts_Science
http://www.indiaedu.com/citywise-colleges/
http://search.123india.com/search.php
http://www.imahal.com/education/india/all/list.htm
http://www.mapsofindia.com/maps/rajasthan/education/schools.html
http://www.collegeeducation.rajasthan.gov.in/httpdocs/govtcolleges.htm
http://www.collegeeducation.rajasthan.gov.in/httpdocs/aided.htm
http://www.collegespeaks.com/CollegeList/Rajasthan
http://www.mbapursuit.com/colraj.htm
http://www.mycollege.in/college.php?id=6341
http://earxiv.uniraj.ernet.in/colldata/colldetail.php?collid=1005
Intelligent googling
Google Hacks - Search For Files, Keys, Emails, Network Reports, etc.
www.google.com/search?q=Search text
MP3:
intitle:index.of /AlbumArt_ (Windows Media Player Album pictures)
inurl:htm -inurl:html intitle:"index of" mp3
?intitle:index.of? mp3
intitle:index.of.mp3
-inurl:htm -inurl:html intitle:"index of" "Last modified" mp3
-inurl:htm -inurl:html intitle:"index of" mp3 "pearl jam"
{-inurl|htm|html|php) intitle:"index of" +"last modified" +"parent directory" +description +size +(wma|mp3) "**"}
intitle:"index of" +"index of" +size +name +description +modified +mp3
ISO Images:
inurl:htm -inurl:html intitle:"index of" iso
intext:"iso" intitle:"Index of /"
WS-FTP Passwords:
intitle:index.of ws_ftp.ini
VPN Profiles:
profiles!Host=*.*
intext:enc_UserPassword=* ext:pcf
Books:
inurl:htm -inurl:html intitle:"index of" books
inurl:htm -inurl:html intitle:"index of" bücher
inurl:htm -inurl:html intitle:"index of" buecher
inurl:htm -inurl:html intitle:"index of" ebook
inurl:htm -inurl:html intitle:"index of" ebooks
-inurl:htm -inurl:html intitle:"index of" +("/ebooks"|"/book") +(chm|pdf|zip)
-inurl:htm -inurl:html intitle:"index of" +("/ebooks"|"/book") +(chm|pdf|zip) +"o'reilly"
intitle:\"index of" + \"index of" +pdf +ebook
Eudora Mailclient Configuration Files:
ext:ini eudora.ini
ProFTPd. Password:
"parent directory" +proftpdpasswd
servU FTP Server Configuration File:
ext:ini Version=4.0.0.4 password
Trillian Messenger Password File:
intitle:index.of trillian.ini
MS Windows Configuration File, Administrator's passwords, IP addresses and product IDs:
filetype:inf sysprep
Files by size (example 14.3 Mbytes):
intext:"14.3M" intitle:"Index of /"
Frontpage:
“# -FrontPage-” inurl:service.pwd
ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage
phpMyAdmin:
"phpMyAdmin" "running on" inurl:"main.php"
Videos:
intext:"mpg" intitle:"Index of /"
intitle:index.of + flv -html -htm -cfm -php -asp -txt -pls
"index of" + "flv" -html -htm -php -asp -txt -pls -cfm
-inurl:htm -inurl:html -inurl:asp intitle:"index of" +(wmv|mpg|avi)
-inurl:htm -inurl:html -inurl:asp intitle:"index of" +(wmv|mpg|avi) +starwars
-inurl:htm -inurl:html -inurl:asp intitle:"index of" +(wmv|mpg|avi) +"parent directory"
-inurl:htm -inurl:html -inurl:asp intitle:"index of" 3gp
filetype:3gp inurl:3gp
Peep into other’s email Boxes ;)
filetype:eml eml intext:”Content-Type: image/jpeg”
Network Vulnerability Assessment Report:
filetype:pdf “Assessment Report” nessus
Sensitive Directories:
index.of.private
index.of.secret
index.of.protected
"Index of /backup"
index.of.winnt
"index of" / picasa.ini
intitle:index.of /maildir/new/
intitle:index.of.config
Simple encryption algorithm
Function RotateLeft(TheString As String, ByVal nbrPlaces As Byte) As String
' this is a simple encryption algorithm.
' knowing all 'printable' characters are 8 bytes long,
' you can shift the bits to the left and still have a printable character
' to decrypt, all you have to do is to shift them left
' until you have come full circle. ie.
' to Encrypt: RotateLeft(TheString, nbrPlaces)
' to Decrypt: RotateLeft(TheString, 8 - nbrPlaces)
Dim tmp As Integer, i As Integer
Dim mult As Integer, ln As Integer
Dim tmpSt As String
ln = Len(TheString)
tmpSt = ""
nbrPlaces = nbrPlaces Mod 8 ' no point doing more than 7, besides
mult = 2 ^ nbrPlaces ' mult (an Integer) would be too small
For i = 1 To ln
tmp = Asc(Mid$(TheString, i, 1)) ' get ASCII value of each character
tmp = tmp * mult ' apply the multiplier
tmp = tmp Mod 256 + tmp \ 256 ' rotate any "carry" bit
tmpSt = tmpSt & Chr$(tmp) ' add the character to the string
Next i
RotateLeft = tmpSt
End Function
Thursday, March 4, 2010
What does it take to keep going?
Last few days I have been thinking that why do wise men say that, “behind every successful man there is a woman”. Are women really that powerful? Well, I happened to read autobiographies of some great men of their time. Fortunately I also read a book related to the most common title among strugglers; very popularly known as steps to success, tips for success, 101 steps, what does it take to be successful, make more money, etc. etc. etc. What is all that is common here? Some virtues that these books reveal, fall in the category of the gentlemen people. Punctuality, truth, desire, courage, dreams,…. and long goes the list.
The question that arises is that, if these people were really so called gentlemen then why do they owe their success to their wives or friends or their daughters? Some might argue that they did this because they were gentlemen, but the point is they really carved for one thing called “ATTENTION”. This is a raw thing and every individual on this planet needs. The synonyms have a long list including words like appreciation, recognition, love, regard, consideration, etc. People live and die without being able to do something worthy of praise in their life only because they didn’t get proper nourishment in their own home. With nourishment I mean the proper recognition or attention they actually needed to carry on with their experiments.
Every mind is born with ability to think and innovate. And not all are Newton or Einstein, people are vulnerable and need caring. Think of someone scolding you in middle of some important job. Are you able to carry on with it any longer? Most of you would answer non affirmative. What made the great men great was the care and attention that fuelled them to carry on with what they were doing. God blessed women with an ability to care. I know some great men personally who admit that what they are today is because of their female friend or their girlfriend or their wife. Talking about women here doesn’t mean that I have ruled men out of this scenario. But to mention most of the people those who support the torch bearers are dumb enough not to be able to understand what their fellow was actually trying to do but they are genuinely happy for him.
About 90% of the people to whom I met and know admit that whatever jobs they are doing or kind of life they are living is just for a sake of someone they love to see smile. They think that the people they care for are happy with what they are doing. Let me put a note here that I am not talking about the psychos and mentally disturbed persons who are considered as antisocial elements. If we talk about all other normal human beings, you just take out their inspirational source out of their life and there they crumble down as a tower of cards. What does it take to live a life? Two times meal, a room with TV and freedom to roam anywhere. But as we see this is not all. People spend their lives collecting all the material things for their beloved ones thinking they would appreciate their efforts and return them smiles.
Men are happy, see someone smile. This only feeling makes them do the things in favor of that smile. The lookout only changes. Some people see this smile in their wife, some in their friend, some in their community, some feel good when they help some in trouble. Its all that makes them happy.
Remember friends, it takes only a smile. Learn to appreciate genuinely and it will definitely come back to you in good ways.
Sunday, February 28, 2010
My first blog post
I always wanted to chase my aims. But a few days back a strange feeling stuck me. What’s next when I die? I spent half of my life working for setting up some store for my rest of half life. That means a 30 year hard work for a remaining 30 year life. When I think about the ancient Egypt belief that there extends life after death,, I get goose flesh that I haven’t worked for the stuff after my death. Indian mythology and vedic evidence speaks of the fact the soul is immortal and has to pass through the stages of incarnation each time it is born on this planet. The believes cannot be totally neglected but you can just turn a deaf ear thinking that they are a part of some black art or non rational thinking without any scientific proof. When I got into the research of this matter, i found that the vedas from India hold the keys to all the scientific discoveries and inventions. The values and proofs they hold are more accurate than the actual manual experiments. maybe we only fail to recognize and understand their language. Its all about pure science. The research also brings me to the conclusion that the Indian saints and wise brains knew that the human brain of the future will degrade in performance and ability. They just left us with results that were meant to be followed without question for the betterment of human race. The ayurveda contains lots of herbal solutions to the world’s most deadly medical complexions ever occur. Everything degrades with time. We too are getting lazy and used to stress and panic that is slowly ruining our lives. When I look upon the human race of today from a high point of view I just see ants running between the buildings of sand and dust just living to die.