Thursday, 20 November 2014

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

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.

cat >> ~/bin/ << EOF

# 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/ 7200

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

#3600secs = 60min * 60sec = 1 hour
[[ "$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

# make the script executable
chmod 755 ~/bin/

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

Thanks to 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.
"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 

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

Some other Jess Lee and Polyvore links:

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.

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."

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."

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."
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.


What is that are reading? 
Quantum Physics. Good. = 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:
With the rubber bandits no more no less.
"Verbal dexterity plus estuary accent is what leads to parody of
But words used efficently can be a dangerous tool that slices through propaganda like a
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
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 . . . 


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
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


Know what I mean
I get up when I want except on Wednesdays when I get rudely awakened by the dustmen
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)


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]