Tuesday 28 May 2013

Thursday 23 May 2013

Timeboxing

In time management, a time box allots a fixed period of time for an activity. Timeboxing plans activity by allocating time boxes; and is a distinctive feature of several project management approaches.
In time management, a time box allots a fixed period of time for an activity. Timeboxing plans activity by allocating time boxes; and is a distinctive feature of several project management approaches.

http://en.wikipedia.org/wiki/Timeboxing

https://news.ycombinator.com/item?id=5757047

Thursday 16 May 2013

textmate 2 file browser on left


defaults write com.macromates.TextMate.preview fileBrowserPlacement left
Also nice tips http://tm2tips.tumblr.com/

Sunday 12 May 2013

Way of the Peaceful Warrior: A Book That Changes Lives by Dan Millman

Way of the Peaceful Warrior: A Book That Changes Lives by Dan Millman
15,246 ratings, 4.08 average rating, 962 reviews 
buy a copy
Way of the Peaceful Warrior Quotes (showing 1-18 of 18)
“The journey is what brings us happiness not the destination.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“There is no need to search; achievement leads to nowhere. It makes no difference at all, so just be happy now! Love is the only reality of the world, because it is all One, you see. And the only laws are paradox, humor and change. There is no problem, never was, and never will be. Release your struggle, let go of your mind, throw away your concerns, and relax into the world. No need to resist life, just do your best. Open your eyes and see that you are far more than you imagine. You are the world, you are the universe; you are yourself and everyone else, too! It's all the marvelous Play of God. Wake up, regain your humor. Don't worry, just be happy. You are already free!”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“A warrior does not give up what he loves, he finds the love in what he does”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“Life has three rules: Paradox, Humor, and Change.

- Paradox: Life is a mystery; don't waste your time trying to figure it out.

- Humor: Keep a sense of humor, especially about yourself. It is a strength beyond all measure

- Change: Know that nothing ever stays the same.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“If you don't get what you want, you suffer; if you get what you don't want, you suffer; even when you get exactly what you want, you still suffer because you can't hold on to it forever.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“Everything you'll ever need to know is within you; the secrets of the universe are imprinted on the cells of your body.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“everyone tells you what's good for you. they don't want you to find your own answers. they want you to believe theirs.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“Moderation? It's mediocrity, fear, and confusion in disguise. It's the devil's dilemma. It's neither doing nor not doing. It's the wobbling compromise that makes no one happy. Moderation is for the bland, the apologetic, for the fence-sitters of the world afraid to take a stand. It's for those afraid to laugh or cry, for those afraid to live or die. Moderation...is lukewarm tea, the devil's own brew.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“you can live a whole life time never being awake.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“. . . Action always happens in the present, because it is an expression of the body, which can only exist in the here and now. But the mind is like a phantom that lives only in the past or future. It's only power over you is to draw your attention our of the present.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“...he asked, "Where are you today, right now?"
Eagerly, I started talking about myself. However, I noticed that I was still being sidetracked from getting answers to my questions. Still, I told him about my distant and recent past and about my inexplicable depressions. He listened patiently and intently, as if he had all the time in the world, until I finished several hours later.
"Very well," he said. "But you still have not answered my question about where you are."
"Yes I did, remember? I told you how I got to where I am today: by hard work."
"Where are you?"
"What do you mean, where am I?"
"Where Are you?" he repeated softly.
"I'm here."
"Where is here?"
"In this office, in this gas station!" I was getting impatient with this game.
"Where is this gas station?"
"In Berkeley?"
"Where is Berkeley?"
"In California?"
"Where is California?"
"In the United States?"
"On a landmass, one of the continents in the Western Hemisphere. Socrates, I..."
"Where are the continents?
I sighed. "On the earth. Are we done yet?"
"Where is the earth?"
"In the solar system, third planet from the sun. The sun is a small star in the Milky Way galaxy, all right?"
"Where is the Milky Way?"
"Oh, brother, " I sighed impatiently, rolling my eyes. "In the universe." I sat back and crossed my arms with finality.
"And where," Socrates smiled, "is the universe?"
"The universe is well, there are theories about how it's shaped..."
"That's not what I asked. Where is it?"
"I don't know - how can I answer that?"
"That is the point. You cannot answer it, and you never will. There is no knowing about it. You are ignorant of where the universe is, and thus, where you are. In fact, you have no knowledge of where anything is or of What anything is or how is came to be. Life is a mystery.
"My ignorance is based on this understanding. Your understanding is based on ignorance. This is why I am a humorous fool, and you are a serious jackass.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“The world's a puzzle; no need to make sense out of it." - Socrates”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“It's a thought," I said with a grin.
"That's exactly what it is, Dan - a thought - no more real than the shadow of a shadow. Consciousness is not In the body; the body is In Consciousness. And you Are that Consciousness - no the phantom mind that troubles you so. You are the body, but you are everything else, too. That is what your visions revealed to you. Only the mind resists change. When you relax mindless into the body, you are happy and content and free, sensing no separation. Immortality is Already yours, but not in the same way you imagined or hope for. You have been immortal since before you were born and will be long after the body dissolves. The body is in Consciousness; never born; never dies; only changes. The mind - your ego, personal beliefs, history, and identity - is all that ends at death. And who needs it?" Socrates leaned back into his chair.
"I'm not sure all of that sank in."
"Of course not." He laughed. "Words mean little unless you realize the truth of it yourself. And when you do, you'll be free at last.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“I had lost my mind and fallen into my heart.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives
“And where," Socrates smiled, "is the universe?"
"The universe is well, there are theories about how it's shaped..."
"That's not what I asked. Where is it?"
"I don't know - how can I answer that?"
"That is the point. You cannot answer it, and you never will. There is no knowing about it. You are ignorant of where the universe is, and thus, where you are. In fact, you have no knowledge of where anything is or of What anything is or how is came to be. Life is a mystery.
"My ignorance is based on this understanding. Your understanding is based on ignorance. This is why I am a humorous fool, and you are a serious jackass.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives

“Azt szokták mondani, hogy Utayás csak egy van, de ösvény több. Azt kívánom, haladj jól a saját ösvényeden, a távolság nélküli utazáson, melyen együtt utazunk.”
― Dan MillmanWay of the Peaceful Warrior: A Book That Changes Lives

http://www.goodreads.com/work/quotes/856599

Αυτός που επιθυμεί την πνευματική ομορφιά

Αυτός που επιθυμεί την πνευματική ομορφιά την αποκτά μετουσιώνοντας όλες τις δυσαναλογίες του εσωτερικού του κόσμου. Αυτός που αγαπά την δύναμη, αλλά μία δύναμη που παντού διορθώνει, θεραπεύει, γαληνεύει και βελτιώνει τον εαυτό του και τους ανθρώπους, μία δύναμη που φέρνει παντού την αρμονία, θα την αποχτήσει. Αυτός που αγαπά το ωραίο ξέρει να βλέπει ότι είναι όμορφο , και αυτό γίνεται επειδή έχει την ομορφιά μέσα του και επειδή ο κόσμος είναι ένας καθρέφτης που ξαναστέλνει σε κάθε άνθρωπο την αντανάκλαση του.Η μόνη διαφορά είναι ότι άλλοι το κατορθώνουν νωρίτερα, άλλοι αργότερα και αυτό εξαρτάται από την βούληση του ατόμου.



Όμως υπάρχουν και άλλοι που για κάποιο λόγο δεν αγωνίζονται για τίποτα, για κανένα σκοπό και που ίσως στο βάθος θα το ήθελαν, όμως η αδύναμη βούληση δεν τους το επιτρέπει. Αλλά και για αυτούς υπάρχει λύση, διότι : «Αν δεν μπορείς να αγαπήσεις μην σπέρνεις μίσος, γιατί οι άνθρωποι έχουν καρδιά και ίσως κάπου είναι δοσμένη. Αν δεν μπορείς να γελάσεις προσπάθησε να μείνεις στην άκρη, γιατί οι άλλοι γελούν και είναι κρίμα να σταματήσουν. Αν δεν μπορείς να τραγουδήσεις μην κλαις κοντά στο πεζοδρόμιο, γιατί η κιθάρα παίζει και όλοι ακολουθούν τη μουσική της.


Αν δεν μπορείς να κοιτάξεις τον Ήλιο, μην βάζεις τα χέρια σου στα μάτια των άλλων, γιατί αυτοί ψάχνουν το Φως και θα ήταν κρίμα να τους το στερήσεις. Αν δεν μπορείς να ζήσεις μη βάζεις πέτρα στο λαιμό, γιατί οι άλλοι ίσως κλάψουν και το μαύρο δεν ταιριάζει στην μάνα. Αν δεν μπορείς να κάνεις τίποτα από όλα αυτά προσπάθησε να χαθείς μέσα στο πλήθος, να σε σκεπάσουν τα άλλα κορμιά, να ξεχαστείς όπως και οι άλλοι. Ίσως έτσι σε βοηθήσουν να προχωρήσεις, εκτός και αν δεν το θέλεις» .


 

https://www.facebook.com/notes/adri-gkika/%CE%AC%CF%8A%CE%BB%CE%B1-%CE%B9%CE%B1%CE%BD%CE%BF%CF%85%CE%AC%CF%81%CE%B9%CE%BF%CF%82-1998/10200520645477900

charlie chaplin..


Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, μπόρεσα να καταλάβω ότι ο συναισθηματικός πόνος και η θλίψη, απλώς με προειδοποιούσαν να μη ζω κόντρα στην αλήθεια μου.Σήμερα ξέρω ότι αυτό το λέμε αυθεντικότητα.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, κατάλαβα σε πόσο δύσκολη θέση ερχόταν κάποιος με το να του επιβάλλω τις επιθυμίες μου, παρότι ήξερα ότιούτε ήταν κατάλληλη η στιγμή ούτε ο άνθρωπος ήταν έτοιμος, ακόμα κι αν αυτός ο άνθρωπος ήμουν εγώ.Σήμερα ξέρω ότι αυτό το λέμε αυτοεκτίμηση.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, έπαψα να λαχταρώ μια άλλη ζωή και μπόρεσα να δω ότι τα πάντα γύρω μου με προκαλούσαν να μεγαλώσω.Σήμερα ξέρω ότι αυτό το λέμε ωριμότητα.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, κατάλαβα ότι βρίσκομαι πάντα και σε όλες τις περιστάσεις, την κατάλληλη στιγμή και στο σωστό μέρος και ότι όλα όσα γίνονται είναι σωστά. Από τότε κατάφερα να γαληνέψω.Σήμερα ξέρω ότι αυτό το λέμε αποδοχή.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, έπαψα να στερούμαι τον ελεύθερο χρόνο μου και σταμάτησα να κάνω μεγαλόπνοα σχέδια για το μέλλον.Σήμερα κάνω μόνο ό,τι με ευχαριστεί και με γεμίζει χαρά, ό,τι αγαπώ και κάνει την καρδιά μου να γελά, με τον δικό μου τρόπο και στους δικούς μου ρυθμούς.Σήμερα ξέρω ότι αυτό το λέμε ειλικρίνεια.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, απελευθερώθηκα από ό,τι δεν ήταν υγιές για μένα. Από φαγητά, άτομα, πράγματα, καταστάσεις και από ό,τι με τραβούσε συνεχώς μακριά από τον ίδιο μου τον εαυτό. Στην αρχή το ονόμαζα “υγιή εγωισμό”.Αλλά σήμερα ξέρω ότι είναι αυταγάπη.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, έπαψα να θέλω να έχω πάντα δίκιο. Έτσι έσφαλλα πολύ λιγότερο.Σήμερα κατάλαβα ότι αυτό το λέμε απλότητα.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, αρνήθηκα να συνεχίσω να ζω στο παρελθόν και να ανησυχώ για το μέλλον μου. Τώρα ζω περισσότερο τη στιγμή όπου όλα συμβαίνουν.Έτσι σήμερα, ζω την κάθε μέρα και αυτό το λέω πληρότητα.

Όταν άρχισα να αγαπώ τον εαυτό μου πραγματικά, συνειδητοποίησα ότι η σκέψη μου μπορεί να με κάνει μίζερο και άρρωστο. Όταν όμως επικαλέστηκα τις δυνάμεις της καρδιάς μου, η λογική απέκτησε έναν πολύτιμο σύντροφο.Αυτή τη σχέση την ονομάζω σήμερα σοφία της καρδιάς.

Δεν υπάρχει λόγος να φοβόμαστε τις αντιπαραθέσεις, τις συγκρούσεις και τα προβλήματα με τον εαυτό μας και τους άλλους γιατί καμιά φορά, ακόμα και τα άστρα εκρήγνυνται και δημιουργούνται νέοι Γαλαξίες.

Η ΣΧΟΛΗ ΤΩΝ ΘΕΩΝ #remember

Ο κόσμος είναι όπως τον ονειρεύεσαι... είναι ένας καθρέφτης. Εκεί έξω βρίσκεις τον δικό σου κόσμο, τον κόσμο που έχτισες, που ονειρεύτηκες.Έξω βρίσκεις εσένα! Πήγαινε να δεις ποιος είσαι.Θ΄ανακαλύψεις ότι οι άλλοι είναι η αντανάκλαση της εικόνας του ψέματος που έχεις μέσα σου, του συμβιβασμού, της άγνοιάς σου... Άλλαξε!... και ο κόσμος θ' αλλάξει.Δημιουργείς έαν άρρωστο κόσμο και έπειτα φοβάσαι το δημιούργημά σου, τη βία που εσύ ο ίδιος προκάλεσες. Πιστεύεις ότι ο κόσμος είναι αντικειμενικός... αλλά ο κόσμος είναι όπως εσύ τον ονειρεύεσαι. Πήγαινε στον κόσμο και αποδέξου τον... Συνάντησε τους φτωχούς, τους βίαιους, τους λεπρούς που έχεις μέσα σου. Αποδέξου τους... Μην τους αποφεύγεις, μην τους κατηγορείς... Παραδώσου στον κόσμο σου. Πήγαινε και συνειδητά αποδέξου αυτό που έχεις δημιουργήσει: έναν κόσμο σε άγνοια, σκληρό, αμαθή... έναν κόσμο χωρίς ζωή. Η δύναμη ενός ανθρώπου είναι να εξουσιάζει τον εαυτό του και την ίδια στιγμή να παραδίδεται στον εαυτό του.Η ζωή σου, ο κόσμος όπου πιστεύεις ότι μπορείς να επιλέγεις και να αποφασίζεις, είναι πλασματικά... είναι ένας φρικτός εφιάλτης. Μόνο το "όνειρο" είναι πραγματικό. Το "όνειρο" είναι το πιο αληθινό πράγμα που υπάρχει. Αυτό που εσύ αποκαλείς πραγματικότητα είναι μόνο φαινόμενα, πρέπει να την αναποδογυρίσεις τελείως και δεν μπορείς να κρατήσεις μέσα σου τίποτα από τα παλιά... Θα πρέπει να μάθεις έναν νέο τρόπο να σκέφτεσαι, ν' αναπνέεις, να δρας και ν' αγαπάς...Έζησες μια ύπαρξη χωρίς σκοπό... οδυνηρή. Κρυμμένος πίσω από μια απασχόληση, πίσω από την απατηλή προστασία ενός μισθού, διαιωνίζεις τη φτώχεια, τη δυστυχία του κόσμου. Η ζωή είναι πάρα πολύ πολύτιμη για να εξαρτάσαι, και πάρα πολύ πλούσια για να χάνει! Ήρθε η ώρα ν' αλλάξεις!Έφτασε ο καιρός να εγκαταλείψεις τον όλο συγκρούσεις τρόπο με τον οποίο βλέπεις τον κόσμο. Έφτασε ο καιρός να πεθάνει μέσα σου ό,τι δεν έχει ζωή. Είναι καιρός για μια αναγέννηση. Είναι καιρός για μια νέα έξοδο, μια νέα ελευθερία. Είναι η μεγαλύτερη περιπέτεια που μπορεί να φανταστεί ένας άνθρωπος: η κατάκτηση της προσωπικής του ακεραιότητας.

Wednesday 8 May 2013

Socket.io example


down vote
accepted
index.html
<!doctype html>
<html>
    <head>
        <script src='//code.jquery.com/jquery-1.7.2.min.js'></script>
        <script src='//localhost:3000/socket.io/socket.io.js'></script>
        <script>
            var socket = io.connect('//localhost:3000');

            socket.on('welcome', function(data) {
                $('#messages').append('<li>' + data.message + '</li>');

                socket.emit('i am client', {data: 'foo!'});
            });
            socket.on('time', function(data) {
                console.log(data);
                $('#messages').append('<li>' + data.time + '</li>');
            });
            socket.on('error', function() { console.error(arguments) });
            socket.on('message', function() { console.log(arguments) });
        </script>
    </head>
    <body>
        <ul id='messages'></ul>
    </body>
</html>

app.js

var http = require('http'),
    fs = require('fs'),
    // NEVER use a Sync function except at start-up!
    index = fs.readFileSync(__dirname + '/index.html');

// Send index.html to all requests
var app = http.createServer(function(req, res) {
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.end(index);
});

// Socket.io server listens to our app
var io = require('socket.io').listen(app);

// Send current time to all connected clients
function sendTime() {
    io.sockets.emit('time', { time: new Date().toJSON() });
}

// Send current time every 10 secs
setInterval(sendTime, 10000);

// Emit welcome message on connection
io.sockets.on('connection', function(socket) {
    socket.emit('welcome', { message: 'Welcome!' });

    socket.on('i am client', console.log);
});

app.listen(3000);



http://stackoverflow.com/questions/9914816/what-is-an-example-of-the-simplest-possible-socket-io-example