Thursday, 20 November 2014

I want to go to bed but must wait for something to finish on my computer - ~/bin/sleepandsuspend.sh

If I'm doing a big upload or download or sending a big email or doing some other lengthy task but I wish to GO TO BED. Then can I allow it time to finish the task but make it suspend after say an hour?
Yes. This is working for me. (ubuntu linux)

Easiest method:
sudo bash -c "sleep 1h; pm-suspend"

OR a more protecting script to avoid basic mistakes like NOT RUNNING AS ROOT. or NOT HAVING pm-suspend. duh. Good for sleepy users who want to go to bed.
https://gist.github.com/Gaoithe/186ba4adaca66f2e020c


cat >> ~/bin/sleepandsuspend.sh << EOF
#!/bin/bash

# to run it optionally give it amount of seconds to wait
# e.g. two hours 7200, e.g. 10 mins 600
echo e.g. invoke: sudo ~/bin/sleepandsuspend.sh 7200

[[ "$USER" != "root" ]] && echo must run this as root. && exit 0;

#3600secs = 60min * 60sec = 1 hour
SLEEP=3600
[[ "$1" != "" ]] && SLEEP=$1

which pm-suspend
[[ "$?" != 0 ]] && echo "Oh dear, I cannot run pm-suspend. This script will not work :-7"

sleep $SLEEP && pm-suspend
# pmi action suspend
EOF

# make the script executable
chmod 755 ~/bin/sleepandsuspend.sh

# to run it optionally give it amount of seconds to wait, e.g. two hours 7200
sudo ~/bin/sleepandsuspend.sh 7200


Thanks to askubuntu.com users for the suspend commands

# If you knew a certain process will finish (e.g. a top-level make process) then you can use ps -elf // pstree -anp // whatever to get the pid of the process which is taking a long time. This is not possible though with some things like a google chrome window sending a big email. You can use wait to wait until the process exits. 
# PID is the  pid number OR %jobid of  process you think will exit
# Invoke like this:
sudo bash -c "wait && pm-suspend"


Wednesday, 19 November 2014

Fashion App Stylechat and Openmind Netowrks Golgi. And Polyvore User/CEO Jess Lee.

The Stylechat app is using Openmind Netowrks Golgi communications engine.http://blog.golgi.io/golgi-partners-with-fashion-app-stylechat
"StyleChat will use Golgi’s intelligent delivery engine to enable in-app messaging, actionable notifications and real-time updates."
Interesting :)
I work in Openmind.

And the following is interesting. Jess Lee while working at Google started using Polyvore - a fashion online picture+link clip set making tool and sharing network. She sent in detailed description of bugs and feature reports. Moved to work on Polyvore and has now become CEO.

How One Startup Found Success by Making an Obsessive User Its CEO
http://www.wired.com/2013/07/ap_polyvore/ 

Makes sense. Power users themselves are the best developers and designers for any app or product.

Some other Jess Lee and Polyvore links:

http://www.nytimes.com/2013/11/22/business/jess-lee-of-polyvore-on-the-value-of-simplicity.html?pagewanted=all

http://www.businessinsider.com/interview-with-polyvore-ceo-jess-lee-2014-9?IR=T

http://www.wired.com/tag/polyvore/

http://www.huffingtonpost.com/laura-dunn/women-in-business-qa-with_b_5301225.html


Polyvore started as a home improvements clip-set app/tool.

Tuesday, 18 November 2014

Two kids on time, existance, music, writing, other stuff and education. And PARKLIFE songs.

I've got to get my kids to read that interview see what they think. :-)
Maybe they won't want to goto school anymore!! ðŸ˜®

Will Smith's kids give an interview on time, existence, music, writing, fashion, values, breathing and education.
I think you could set their interview answers nicely to the parklife song. 
http://tmagazine.blogs.nytimes.com/2014/11/17/jaden-and-willow-smith-exclusive-joint-interview/?_r=1
http://mobile.nytimes.com/blogs/tmagazine/2014/11/17/jaden-and-willow-smith-exclusive-joint-interview/

WILLOW: "There’re no novels that I like to read so I write my own novels, and then I read them again, and it’s the best thing."
PARKLIFE.

JADEN: "The only way to change something is to shock it. If you want your muscles to grow, you have to shock them. If you want society to change, you have to shock them."
PARKLIFE.

WILLOW: "I went to school for one year. It was the best experience but the worst experience. The best experience because I was, like, “Oh, now I know why kids are so depressed.” But it was the worst experience because I was depressed."
PARKLIFE.
Two kids on time, existence, music, writing, fashion, values, breathing and education. PARKLIFE.
You can hear other voices coming through in some of their comments. PARKLIFE.
Brainwashed - as everyone is by their parentstheir teachers and everyone, . . . but in a good way. PARKLIFE.
Ugh-inducing or cute or refreshing or amusing or eyebrow raising or face palming depending on your . . . PARKLIFE.

[Chorus]
ALL THE PEOPLE
SO MANY PEOPLE
THEY ALL GO HAND IN HAND
HAND IN HAND THROUGH THEIR PARKLIFE

What is that are reading? 
Quantum Physics. Good.
http://en.wikipedia.org/wiki/Rajneesh = Osho, an Indian mystic and guru.
Whooo. Somewhat slightly la-la. But all good :-) Actually looks quite interesting.
Subject to having a pinch of scepticism and a medium dose of critical thinking.


What's that parklife thing?
I have come late to the Russel Brand being slagged on parklife meme but at the point where he has put out this:
http://www.telegraph.co.uk/culture/books/11221342/Parklife-Russell-Brand-makes-own-parody-video-after-Twitter-ridicule.html
With the rubber bandits no more no less.
http://www.theguardian.com/culture/2014/nov/10/parklife-russell-brand-releases-parody-after-being-mocked-on-the-internet
"Verbal dexterity plus estuary accent is what leads to parody of
PARKLIFE
But words used efficently can be a dangerous tool that slices through propaganda like a
SHARP KNIFE
We can’t get our heads around the fact that five families have as much dough as 12 million Brits, that can’t be right in any accent
CLASS STRIFE
You can’t be polysyllabic or talk about important things unless you went to school in a top hat and tails"
Lovely job.

The original . . . 

"Parklife"

Confidence is a preference for the habitual voyeur of what is known as (parklife)
And morning soup can be avoided if you take a route straight through what is known as
(parklife)
John's got brewers droop he gets intimidated by the dirty pigeons
They love a bit of it (parklife)
Who's that gut lord marching... you should cut down on your porklife mate... get some
Exercise

[Chorus]
ALL THE PEOPLE
SO MANY PEOPLE
THEY ALL GO HAND IN HAND
HAND IN HAND THROUGH THEIR PARKLIFE

Know what I mean
I get up when I want except on Wednesdays when I get rudely awakened by the dustmen
(Parklife)
I put my trousers on, have a cup of tea and I think about leaving the house (parklife)
I feed the pigeons I sometimes feed the sparrows too it gives me a sense of enormous well
Being (parklife)
And then I'm happy for the rest of the day safe in the knowledge there will always be a bit
Of my heart devoted to it (parklife)

[Chorus]

Parklife (parklife)
Parklife (parklife)

It's got nothing to do with vorsprung durch technic you know
And it's not about you joggers who go round and round and round
Parklife (parklife)

[Chorus x 2]