[ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread Ubuntu Forum
Hi

I've been using Ubuntu for around 1 year now

I'm 21 years old

Currently I'm jobless and want to help the Linux community with what I can,
but I don't think I will be 100% of use, due to the fact that if I get a job
I'll find it hard to be available at all times online or for meeting
face-to-face. The other, being that I might get accepted into University but
most likely not because I've failed to get accepted for the third time

I'm trying to learn any Programming language. I heard Python is good for
beginners and that's where I want to start

Will be getting this book from Waterstones soon - I've ordered it:* *Dive
Into Python (Mark Pilgrim)

I'm having difficulties and need just a little bit of assistance in how to
start with the basics then I think I will become a lot better since I have
great appreciation and curiosity for technical things

So I'll be very grateful if that support is provided

Abdulrahman
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread bodsda
Hi,

Python is an excellent choice of language
Sent from my BlackBerry® wireless device

-Original Message-
From: Ubuntu Forum forum.ubunt...@gmail.com
Sender: ubuntu-uk-boun...@lists.ubuntu.com
Date: Fri, 25 Mar 2011 07:03:00 
To: ubuntu-uk@lists.ubuntu.com
Reply-To: UK Ubuntu Talk ubuntu-uk@lists.ubuntu.com
Subject: [ubuntu-uk] Programming in Python User Interface

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread Simon Greenwood
On 25 March 2011 07:03, Ubuntu Forum forum.ubunt...@gmail.com wrote:

 Hi

 I've been using Ubuntu for around 1 year now

 I'm 21 years old

 Currently I'm jobless and want to help the Linux community with what I can,
 but I don't think I will be 100% of use, due to the fact that if I get a job
 I'll find it hard to be available at all times online or for meeting
 face-to-face. The other, being that I might get accepted into University but
 most likely not because I've failed to get accepted for the third time

 I'm trying to learn any Programming language. I heard Python is good for
 beginners and that's where I want to start

 Will be getting this book from Waterstones soon - I've ordered it:* *Dive
 Into Python (Mark Pilgrim)

 I'm having difficulties and need just a little bit of assistance in how to
 start with the basics then I think I will become a lot better since I have
 great appreciation and curiosity for technical things



DIve is a very good place to start. You might be interested to know that
it's also available online for free so you don't have to wait for it to turn
up ;).

With Ubuntu you have pretty much all you need to start programming in Python
so open up a Text Editor and get started.

s/


-- 
Twitter: @sfgreenwood
My CV: http://bit.ly/sfg http://bit.ly/sfgreenwood_cv_new_cv
Is this your sanderling?
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread Alan Lord (News)

On 25/03/11 07:03, Ubuntu Forum wrote:


So I'll be very grateful if that support is provided

Abdulrahman



If you are new to the whole idea of programming, I'd also go and 
download a free ebook called Snake Wrangling for Kids.


http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/

As you can probably guess it is aimed at young coders and so starts with 
the real basics, but it is easy to read and, IMHO, a great resource. It 
is for Python.


There are also some cool tools available in Ubuntu that are very helpful 
too:


https://wiki.ubuntu.com/Quickly
http://www.ubuntugeek.com/acire-browse-python-code-snippets-quickly-and-easily.html

HTH

And have fun.

Al



--
The Open Learning Centre
http://www.theopenlearningcentre.com


--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread Byte Soup
Thanks, couple of questions:

On 24 March 2011 17:00, Alan Pope a...@popey.com wrote:

 On 24 March 2011 07:42, Byte Soup bytes...@gmail.com wrote:
  Do any of you have friends and family not living nearby, who use Ubuntu
 and
  you provide remote support to them. What do you use? Teamviewer, VNC,
 webex?
  What would you recommend and whats your experiences?
 

 At mums house when I installed the Ubuntu PC:-

 1) Install ssh-server, create my user account, add my ssh key so I can
 logon remotely


Ive not done much in the way of ssh keys, I looked at the guide on the
Ubuntu wiki here https://help.ubuntu.com/community/SSH/OpenSSH/Keys and it
seems the you always generate a id_rsa.pub file, this is the one you put
onto your mums machine and copied it into the ~/.ssh/authorized_keys file?
It seems if you add a new ssh key into seahorse it always generates a file
called id_rsa.pub and id_rsa, renaming old ones to .1 etc, is that
correct?

When you generate your keys is it always done as the user you are logged in
as? For example my user name on my machine might be curtis but I may want
to create a username login on my friends machine as support is that
possible and still able to generate a key?

2) Enable remote desktop sharing in Ubuntu via the usual GUI options
3) Register a dynamic hostname with dyndns.org
4) Install and configure ddclient to connect and register with
dyndns.org for the chosen hostname

Total time spent: 5 minutes, plus 1 hour mostly drinking tea, chatting
to my mum.

At my house

1) Phone rings!
Hello Alan, it's Mum, can you help me?
Sure, one moment

2) Open a terminal and type:-

vncviewer -via mums.dynamicdyns.org localhost

*bam* I see her desktop over an encrypted ssh tunnel. No ports exposed
her end other than ssh, and only key-based logon allowed.

Win!

Al.

--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread bodsda
I believe ssh keys are generated from hardware I'd's, things like mac address 
etc. 

So I would expect if you created a new users, the old key would still work.

Bodsda 
Sent from my BlackBerry® wireless device

-Original Message-
From: Byte Soup bytes...@gmail.com
Sender: ubuntu-uk-boun...@lists.ubuntu.com
Date: Fri, 25 Mar 2011 08:47:38 
To: UK Ubuntu Talkubuntu-uk@lists.ubuntu.com
Reply-To: UK Ubuntu Talk ubuntu-uk@lists.ubuntu.com
Subject: Re: [ubuntu-uk] Remote support for family  friends

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread Scrase, Eddie
Dive Into Python is available on-line (at diveintopython.org) either to
read or download in PDF format.

Python is indeed a good language to start with, although C++, C#, or
Java are far more widely used in the commercial world.  If you are
serious about using Python, when you feel you have got the hang of the
language you should download the source code for an open source project
that is written in Python to look at real code, modify it, and perhaps
summit changes or bug fixes.

Good luck!


 Currently I'm jobless and want to help the Linux community with what I
can,
 but I don't think I will be 100% of use, due to the fact that if I get
a job
 I'll find it hard to be available at all times online or for meeting
 face-to-face. The other, being that I might get accepted into
University but
 most likely not because I've failed to get accepted for the third time

 I'm trying to learn any Programming language. I heard Python is good
for
 beginners and that's where I want to start

 Will be getting this book from Waterstones soon - I've ordered it:*
*Dive
 Into Python (Mark Pilgrim)

 I'm having difficulties and need just a little bit of assistance in
how to
 start with the basics then I think I will become a lot better since I
have
 great appreciation and curiosity for technical things

 So I'll be very grateful if that support is provided


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] Google account cracked

2011-03-25 Thread Paul Mellors
Hi All

It appears that last night my google account got cracked and some
pillock from Mexico has sent an email from it.  If you've received an
email from me within the last 12 hours, please delete it..

Sorry
Paul

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread Jon Spriggs
SSH keys are created by producing a pair of cryptographically equivelent
numbers with a size of (usually) 1024 or 2048 bits (I think!) long. When
performing a complex equation, the result of encrypting one with the other
returns the same value. It is not linked to a hardware value.

You can share the same private key around all the machines you own and
trust, and put the public key into ~/.ssh/authorized_keys of the accounts
you are trusted to access. Typically, I create a new account with my
username the same everywhere, but you may want to set it up differently.

Remember, network access (such as port forwarding the VNC port) does not
require you to be in the same account as the user. If you need to act as the
user, you can login with your account and type

sudo su - USERNAME

where username is the person you are supporting. The hyphen in the su
command means pretend I just logged in as them.

If you are supporting a lot of machines, I'd start looking at creating a
~/.ssh/config file, but from the sounds of things, that's a while off yet!

All the best,
-- 
Jon The Nice Guy Spriggs
On 25 Mar 2011 08:51, bod...@googlemail.com wrote:
 I believe ssh keys are generated from hardware I'd's, things like mac
address etc.

 So I would expect if you created a new users, the old key would still
work.

 Bodsda
 Sent from my BlackBerry® wireless device

 -Original Message-
 From: Byte Soup bytes...@gmail.com
 Sender: ubuntu-uk-boun...@lists.ubuntu.com
 Date: Fri, 25 Mar 2011 08:47:38
 To: UK Ubuntu Talkubuntu-uk@lists.ubuntu.com
 Reply-To: UK Ubuntu Talk ubuntu-uk@lists.ubuntu.com
 Subject: Re: [ubuntu-uk] Remote support for family  friends

 --
 ubuntu-uk@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
 https://wiki.ubuntu.com/UKTeam/

 --
 ubuntu-uk@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
 https://wiki.ubuntu.com/UKTeam/
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Android Slates/Tablets......

2011-03-25 Thread John MM

Hi everybody,

sorry its taken so long to answer, didnt get much computer time yesterday.

I really appreciate the messages. I am going to go in and have a look at 
the ones you mentioned, see how I get on with them.


I did a search for Michael Garrets list, and didnt realise there were so 
many.


Than k you again, that has been really helpful.

John

--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread Byte Soup
Thanks Jon

On 25 March 2011 09:41, Jon Spriggs j...@sprig.gs wrote:

 SSH keys are created by producing a pair of cryptographically equivelent
 numbers with a size of (usually) 1024 or 2048 bits (I think!) long. When
 performing a complex equation, the result of encrypting one with the other
 returns the same value. It is not linked to a hardware value.

 You can share the same private key around all the machines you own and
 trust, and put the public key into ~/.ssh/authorized_keys of the accounts
 you are trusted to access. Typically, I create a new account with my
 username the same everywhere, but you may want to set it up differently.

So Id need the private key on each machine in doing the accessing *from?*

 Remember, network access (such as port forwarding the VNC port) does not
 require you to be in the same account as the user. If you need to act as the
 user, you can login with your account and type

 sudo su - USERNAME

Id need to create a user called support on one of my machines, to generate
a private / public key pair for the support user?

 where username is the person you are supporting. The hyphen in the su
 command means pretend I just logged in as them.

 If you are supporting a lot of machines, I'd start looking at creating a
 ~/.ssh/config file, but from the sounds of things, that's a while off yet!

 All the best,
 --
 Jon The Nice Guy Spriggs
 On 25 Mar 2011 08:51, bod...@googlemail.com wrote:
  I believe ssh keys are generated from hardware I'd's, things like mac
 address etc.
 
  So I would expect if you created a new users, the old key would still
 work.
 
  Bodsda
  Sent from my BlackBerry® wireless device
 
  -Original Message-
  From: Byte Soup bytes...@gmail.com
  Sender: ubuntu-uk-boun...@lists.ubuntu.com
  Date: Fri, 25 Mar 2011 08:47:38
  To: UK Ubuntu Talkubuntu-uk@lists.ubuntu.com
  Reply-To: UK Ubuntu Talk ubuntu-uk@lists.ubuntu.com
  Subject: Re: [ubuntu-uk] Remote support for family  friends
 
  --
  ubuntu-uk@lists.ubuntu.com
  https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
  https://wiki.ubuntu.com/UKTeam/
 
  --
  ubuntu-uk@lists.ubuntu.com
  https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
  https://wiki.ubuntu.com/UKTeam/

 --
 ubuntu-uk@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
 https://wiki.ubuntu.com/UKTeam/


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread Alan Pope
On 25 March 2011 09:41, Jon Spriggs j...@sprig.gs wrote:
 You can share the same private key around all the machines you own and
 trust,

That's not wise. If you put your private key on all your machines you
trust then I only need to break into one of them to gain access to
every machine your public key is on, and you will have to revoke that
one key, meaning you can't ssh to anywhere until you generate new
keys.

More sensible is to generate a separate keypair on each client
machine, and put the public keys on all the necessary targets
machines. That way if I get hold of one of your computers, you only
need to revoke that keypair from all the targets you ssh to, and can
carry on using your other machines' keypairs with no worries.

Al.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread Tyler J. Wagner
On Fri, 2011-03-25 at 10:22 +, Alan Pope wrote:
 On 25 March 2011 09:41, Jon Spriggs j...@sprig.gs wrote:
  You can share the same private key around all the machines you own and
  trust,
 
 That's not wise. If you put your private key on all your machines you
 trust then I only need to break into one of them to gain access to
 every machine your public key is on, and you will have to revoke that
 one key, meaning you can't ssh to anywhere until you generate new
 keys.

Indeed. Seconded. Concur, wholeheartedly.

Just put all the keys in one authorized_keys file and copy that around.

Regards,
Tyler

-- 
Privacy has to be viewed in the context of relative power. For example,
the government has a lot more power than the people. So privacy for
the government increases their power and increases the power imbalance
between government and the people; it decreases liberty. Forced openness
in government – open government laws, Freedom of Information Act
filings, the recording of police officers and other government officials,
WikiLeaks – reduces the power imbalance between government and the
people, and increases liberty.
   -- Bruce Schneier


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread Byte Soup
Sorry just repeating my question as it might have got lost in the thread:

It seems if you add a new ssh key into seahorse it always generates a file
called id_rsa.pub and id_rsa, renaming old ones to .1 etc, is that
correct?

When you generate your keys is it always done as the user you are logged in
as? For example my user name on my machine might be curtis but I may want
to create a username login on my friends machine as support is that
possible and still able to generate a key?

Thanks


On 25 March 2011 11:04, Tyler J. Wagner ty...@tolaris.com wrote:

 On Fri, 2011-03-25 at 10:22 +, Alan Pope wrote:
  On 25 March 2011 09:41, Jon Spriggs j...@sprig.gs wrote:
   You can share the same private key around all the machines you own and
   trust,
 
  That's not wise. If you put your private key on all your machines you
  trust then I only need to break into one of them to gain access to
  every machine your public key is on, and you will have to revoke that
  one key, meaning you can't ssh to anywhere until you generate new
  keys.

 Indeed. Seconded. Concur, wholeheartedly.

 Just put all the keys in one authorized_keys file and copy that around.

 Regards,
 Tyler

 --
 Privacy has to be viewed in the context of relative power. For example,
 the government has a lot more power than the people. So privacy for
 the government increases their power and increases the power imbalance
 between government and the people; it decreases liberty. Forced openness
 in government – open government laws, Freedom of Information Act
 filings, the recording of police officers and other government officials,
 WikiLeaks – reduces the power imbalance between government and the
 people, and increases liberty.
   -- Bruce Schneier


 --
 ubuntu-uk@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
 https://wiki.ubuntu.com/UKTeam/

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Remote support for family friends

2011-03-25 Thread Alan Pope
On 25 March 2011 12:47, Byte Soup bytes...@gmail.com wrote:
 It seems if you add a new ssh key into seahorse it always generates a file
 called id_rsa.pub and id_rsa, renaming old ones to .1 etc, is that
 correct?

No idea. I don't use Seahorse.

 When you generate your keys is it always done as the user you are logged in
 as? For example my user name on my machine might be curtis but I may want
 to create a username login on my friends machine as support is that
 possible and still able to generate a key?


I generate my key as me, my user ID, they are stored in .ssh in my
home directory.

If I want to logon to a remote machine which has a different user ID
then I put my public key in that users folder on the remote machine.
E.g. in /home/support/.ssh/authorized_keys - on the _remote_ machine.

I can then do:-

ssh supp...@remotehost.example.com

or

vncviewer -via supp...@remotehost.example.com localhost

Cheers,
Al.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread bodsda
Pythonchallange is probably not the best place for a beginner to start, unless 
they enjoy headaches, mysteries and extremely fast paced learning

Bodsda 
Sent from my BlackBerry® wireless device

-Original Message-
From: Tyler J. Wagner ty...@tolaris.com
Sender: ubuntu-uk-boun...@lists.ubuntu.com
Date: Fri, 25 Mar 2011 11:05:42 
To: UK Ubuntu Talkubuntu-uk@lists.ubuntu.com
Reply-To: UK Ubuntu Talk ubuntu-uk@lists.ubuntu.com
Subject: Re: [ubuntu-uk] Programming in Python User Interface

The O'Reilly Learning Python book is excellent. I also recommend the
Python Challenge, if you're hard enough.

http://www.pythonchallenge.com/

Tyler

On Fri, 2011-03-25 at 07:03 +, Ubuntu Forum wrote:
 Hi
 
 
 I've been using Ubuntu for around 1 year now
 
 
 I'm 21 years old
 
 
 Currently I'm jobless and want to help the Linux community with what I
 can, but I don't think I will be 100% of use, due to the fact that if
 I get a job I'll find it hard to be available at all times online or
 for meeting face-to-face. The other, being that I might get accepted
 into University but most likely not because I've failed to get
 accepted for the third time
 
 
 I'm trying to learn any Programming language. I heard Python is good
 for beginners and that's where I want to start
 
 
 Will be getting this book from Waterstones soon - I've ordered
 it: Dive Into Python (Mark Pilgrim)
 
 
 I'm having difficulties and need just a little bit of assistance in
 how to start with the basics then I think I will become a lot better
 since I have great appreciation and curiosity for technical things
 
 
 So I'll be very grateful if that support is provided
 
 
 Abdulrahman

-- 
Freedom of thought is best promoted by the gradual illumination of
men's minds, which follows from the advance of science.
   -- Charles Darwin


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread Matt Sturdy
On 25 March 2011 10:02, bod...@googlemail.com wrote:

 Pythonchallange is probably not the best place for a beginner to start,
 unless they enjoy headaches, mysteries and extremely fast paced learning


That totally depends on the person and how they learn... for me,
pythonchallenge with hints and a little help from a more experienced
programmer friend really helped me to get familiar with the language.

the Euler Project[0] is also good fun if you have more of a maths
background... and the learning curve is not so steep!

After that, learning to google effectively was very important.


[0] http://projecteuler.net
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] Natty bug ....

2011-03-25 Thread Barry Drake
Hi there   I don't know how to report the following: yesterday's
Natty daily build worked fine, but after installing to a hard drive, the
wired internet connection was not picked up and it seems impossible to
get it connected.  On re-booting into 10.10, the wired connection is no
longer working until I have powered off the computer completely for over
20 seconds.

Plugging a wi-fi dongle in does allow connection, so I guess the
connection manager is not the right place for a bug report.  An thoughts
on how I report this one?

Regards,Barry.
-- 
Barry Drake is a member of the the Ubuntu Advertising team.
http://ubuntuadverts.org/


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] bulk graphics processing problem

2011-03-25 Thread John Levin

On 19/03/2011 23:10, Avi wrote:

On Sat, 19 Mar 2011 15:01:05 +
John Levintechnola...@gmail.com  wrote:


hi all,

I need several series of numbered icons, from about 1 to 111 in
different colours. There must be a way of automating this through the
command line using imagemagick, but I haven't found a way of doing
so, and my google - fu is giving very poor returns today. Any one got
any ideas?


With no testing whatsoever, and only a passing (but google-enhanced)
familiarity with imagemagick, this is how I'd do it in Perl.

Basically, define an array of acceptable colours, then iterate through
the numbers 1 through 111. For each, pick two different colours at
random to use as foreground and background colours and create an icon.

I don't even know if the imagemagick command really does what I want it
to - I got it from [0] - and this could be done in any language, I just
can't remember how to do arrays in bash.


#! /usr/bin/perl

my @colours=(red,green,blue,orange);

for (my $i = 1; $i= 111; $i++) {

# Pick a random colour for fg and bg out of the array:
my $fgcolour = $colours(int rand($#colours +1));
my $bgcolour = $colours(int rand($#colours +1));

# Check they're not equal
while ($bgcolour == $fgoclour){
$bgcolour = $colours(int rand($#colours +1));
}

# Concoct a command
my $cmd=convert -size 16x16 xc:$colour ;
$cmd .= -pointsize 8 -fill green ;
$cmd .= -stroke black ;
$cmd .=  -draw 'text 10,55 \$i\' ;
$cmd .= icon_$i.jpg ;

# Run it
`$cmd`;
}


[0] http://www.imagemagick.org/Usage/draw/#specifics



Avi, many many thanks!

The code above doesn't work straight off, but I've managed to get it 
running (I don't know perl) and now have a working script. Am doing some 
tweaking and will post my version up when that's done.


John

--
John Levin
http://www.anterotesis.com
johnle...@joindiaspora.com
http://twitter.com/anterotesis


--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] RSI

2011-03-25 Thread Jon Reynolds

Hello folks,

Am sure as all of you are computer users, some probably quite prolific 
(as coders etc), that some of you have had experience with RSI.


I have had a bad wrist for a few years now on and off. It always seemed 
to go away but recently (last 4-6months) it seems to be here and not 
going away.


Basically I get a pain in the inside corner of my wrist when it is bent 
back, i.e. in a position to do push ups. I cannot push things (e.g. 
doing push ups) without it hurting and shaking it (shaking inside-out 
socks) hurts too.


I have tried wearing a wrist strap (like a sports one) for the last few 
weeks but it doesn't seem to be making much difference.


I am a CAD user by day, which is very mouse-dependant, but also do an 
amount of typing, but I think the mouse usage is the main culprit as its 
always semi-hovering as I manoeuvre the mouse.


I am wondering if anyone else has had experiences like this and how 
they got rid of it? Maybe those little cushioned mouse mats, where you 
rest your wrist on a small cushion would help.


Thanks,

Jon Reynolds (j0nr)
www.jcrdevelopments.com


--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Android Slates/Tablets......

2011-03-25 Thread John Levin

On 24/03/2011 13:50, John MM wrote:

I have been given some money and I have been thinking about getting an
Android Tablet, but just have no idea what would be worth getting.
Anybody any idea. I have about £300 to spend. I dont like Apple at all.

Thanks



I've got an archaos 10, running Android, 10 inch screen. Cost £300. I'm 
quite happy with it, though I do prefer proper keyboards to those screen 
things. When I was looking at tablets around Xmas, I tried the Samsung 
Galaxy in a couple of shops, and really didn't like it. Expensive, 
misconfigured (that could have been the shops, but I did try it in two 
different places), and the screen (7) was on the small side.


Cons of archaos: it's own limited app market, tho' you can install 
google's version (slightly tricky). The pdf viewers aren't brilliant.


But it very much depends on what you want to use it for.

HTH

John

--
John Levin
http://www.anterotesis.com
johnle...@joindiaspora.com
http://twitter.com/anterotesis


--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] RSI

2011-03-25 Thread Andy Braben
A relative of mine gets RSI pains when using a mouse for just a few minutes.
She just can not use one.

However she gets on very well with a pen and tablet no problem at all, and
using it on Ubuntu right back to 5.10 and onwards and upwards has never been
a problem at all with it.

Regards,
Andy.

On 25 March 2011 16:22, Simon Greenwood sfgreenw...@gmail.com wrote:



 On 25 March 2011 16:14, Jon Reynolds maill...@jcrdevelopments.com wrote:

 Hello folks,

 Am sure as all of you are computer users, some probably quite prolific (as
 coders etc), that some of you have had experience with RSI.

 I have had a bad wrist for a few years now on and off. It always seemed to
 go away but recently (last 4-6months) it seems to be here and not going
 away.

 Basically I get a pain in the inside corner of my wrist when it is bent
 back, i.e. in a position to do push ups. I cannot push things (e.g. doing
 push ups) without it hurting and shaking it (shaking inside-out socks) hurts
 too.

 I have tried wearing a wrist strap (like a sports one) for the last few
 weeks but it doesn't seem to be making much difference.

 I am a CAD user by day, which is very mouse-dependant, but also do an
 amount of typing, but I think the mouse usage is the main culprit as its
 always semi-hovering as I manoeuvre the mouse.

 I am wondering if anyone else has had experiences like this and how they
 got rid of it? Maybe those little cushioned mouse mats, where you rest your
 wrist on a small cushion would help.


 There are lots of things you can try: make sure that you're sitting at a
 comfortable angle (I had this a while ago because my seat was too low); try
 a wrist rest, either as part of a mouse mat or separately; if all else
 fails, consider an alternative pointing device like a trackball or even a
 graphics pad.

 s/


 --
 Twitter: @sfgreenwood
 My CV: http://bit.ly/sfg http://bit.ly/sfgreenwood_cv_new_cv
 Is this your sanderling?


 --
 ubuntu-uk@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
 https://wiki.ubuntu.com/UKTeam/


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] RSI

2011-03-25 Thread Colin Law
On 25 March 2011 16:14, Jon Reynolds maill...@jcrdevelopments.com wrote:
 Hello folks,

 Am sure as all of you are computer users, some probably quite prolific (as
 coders etc), that some of you have had experience with RSI.

 I have had a bad wrist for a few years now on and off. It always seemed to
 go away but recently (last 4-6months) it seems to be here and not going
 away.

 Basically I get a pain in the inside corner of my wrist when it is bent
 back, i.e. in a position to do push ups. I cannot push things (e.g. doing
 push ups) without it hurting and shaking it (shaking inside-out socks) hurts
 too.

 I have tried wearing a wrist strap (like a sports one) for the last few
 weeks but it doesn't seem to be making much difference.

 I am a CAD user by day, which is very mouse-dependant, but also do an amount
 of typing, but I think the mouse usage is the main culprit as its always
 semi-hovering as I manoeuvre the mouse.

 I am wondering if anyone else has had experiences like this and how they got
 rid of it? Maybe those little cushioned mouse mats, where you rest your
 wrist on a small cushion would help.

Definitely everyone should use a wrist support so your wrist is not
bent backwards when using the mouse.  If you are employed tell your
employer about the problem (if you have not already) and he should
fall over himself to get you all possible aids in order that you will
not sue him.

Colin


 Thanks,

 Jon Reynolds (j0nr)
 www.jcrdevelopments.com


 --
 ubuntu-uk@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
 https://wiki.ubuntu.com/UKTeam/


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] RSI

2011-03-25 Thread Roger Lancefield
On 25 March 2011 16:14, Jon Reynolds maill...@jcrdevelopments.com wrote:
 Hello folks,

 Am sure as all of you are computer users, some probably quite prolific (as
 coders etc), that some of you have had experience with RSI.

 I have had a bad wrist for a few years now on and off. It always seemed to
 go away but recently (last 4-6months) it seems to be here and not going
 away.

 Basically I get a pain in the inside corner of my wrist when it is bent
 back, i.e. in a position to do push ups. I cannot push things (e.g. doing
 push ups) without it hurting and shaking it (shaking inside-out socks) hurts
 too.

 I have tried wearing a wrist strap (like a sports one) for the last few
 weeks but it doesn't seem to be making much difference.

 I am a CAD user by day, which is very mouse-dependant, but also do an amount
 of typing, but I think the mouse usage is the main culprit as its always
 semi-hovering as I manoeuvre the mouse.

 I am wondering if anyone else has had experiences like this and how they got
 rid of it? Maybe those little cushioned mouse mats, where you rest your
 wrist on a small cushion would help.

 Thanks,

 Jon Reynolds (j0nr)
 www.jcrdevelopments.com


I've suffered from RSI on and off over the years. My self-prescribed
treatments have included using differently shaped peripherals in order
to give the affected joint different angles of use, e.g. alternating
between a Microsoft ergonomic keyboard and a standard keyboard,
different-shaped mice, and a few years back, when my lower back was
giving me problems I alternated every 30 mins or so between an office
chair and a space-hopper-style exercise ball.

One other tip, it's well worth considering professional (or good
amateur) massage on the affected limbm and even beyond it. While it
may feel like the pain is very local, in say the wrist, having a
thorough massage right up to the shoulder and beyond can work wonders,
at least in my experience.

Oh and if you go for shiatsu, try to find the real Japanese
thumb-pressure kind, not the trendy holistic derivatives commonly
found on Clapham High Street ;)

Of course, any treatment should really be combined with rest, but
that's not an option for many of us, I know.

Best of luck with the treatment.

Roger

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Programming in Python User Interface

2011-03-25 Thread Chris Rowson

 I'm trying to learn any Programming language. I heard Python is good for
 beginners and that's where I want to start


The Python tutor mailing list is helpful if you get stuck on something:

http://mail.python.org/mailman/listinfo/tutor

Chris
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] RSI

2011-03-25 Thread Jon Reynolds
Well thanks for the replies. I think my first action will be a lad under the 
wrist as this seems to make most sense to me. It just feels like I've been 
holding my hand slightly upward over a mouse (sometimes jiggling furiously all 
day) for too long. 

Of course there's always the possibility that it's an unrelated injury but 
that's hard to diagnose. 

Thanks again. 

Jon Reynolds (j0nr) 
www.jcrdevelopments.com 
Jon Reynolds 
www.jcrdevelopments.com 

Roger Lancefield rlancefi...@gmail.com wrote:

On 25 March 2011 16:14, Jon Reynolds maill...@jcrdevelopments.com wrote:  
Hello folks,   Am sure as all of you are computer users, some probably quite 
prolific (as  coders etc), that some of you have had experience with RSI.   
I have had a bad wrist for a few years now on and off. It always seemed to  go 
away but recently (last 4-6months) it seems to be here and not going  away.  
 Basically I get a pain in the inside corner of my wrist when it is bent  
back, i.e. in a position to do push ups. I cannot push things (e.g. doing  
push ups) without it hurting and shaking it (shaking inside-out socks) hurts  
too.   I have tried wearing a wrist strap (like a sports one) for the last 
few  weeks but it doesn't seem to be making much difference.   I am a CAD 
user by day, which is very mouse-dependant, but also do an amount  of typing, 
but I think the mouse usage is the main culprit as its always  semi-hovering 
as I manoeuvre the mouse.   I am wondering if anyone else
has had experiences like this and how they got  rid of it? Maybe those little 
cushioned mouse mats, where you rest your  wrist on a small cushion would 
help.   Thanks,   Jon Reynolds (j0nr)  www.jcrdevelopments.com I've 
suffered from RSI on and off over the years. My self-prescribed treatments have 
included using differently shaped peripherals in order to give the affected 
joint different angles of use, e.g. alternating between a Microsoft ergonomic 
keyboard and a standard keyboard, different-shaped mice, and a few years back, 
when my lower back was giving me problems I alternated every 30 mins or so 
between an office chair and a space-hopper-style exercise ball. One other tip, 
it's well worth considering professional (or good amateur) massage on the 
affected limbm and even beyond it. While it may feel like the pain is very 
local, in say the wrist, having a thorough massage right up to the shoulder and 
beyond can work wonders, at least in my experience. Oh and if you go for
shiatsu, try to find the real Japanese thumb-pressure kind, not the trendy 
holistic derivatives commonly found on Clapham High Street ;) Of course, any 
treatment should really be combined with rest, but that's not an option for 
many of us, I know. Best of luck with the treatment. Roger 

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/