Re: [ubuntu-uk] Building Ubuntu for the Raspberry Pi, on the Raspberry Pi

2013-11-07 Thread Alan Bell

odd, do you get something different to this?

pi@raspberrypi ~ $ cat hello.py
print "Hello, World!"
pi@raspberrypi ~ $ time python hello.py
Hello, World!

real0m0.248s
user0m0.180s
sys0m0.050s



On 07/11/13 20:06, Tyler J. Wagner wrote:

Alan,

I notice that python startup is unacceptably slow. Perhaps once the program
is running, it's better. For instance, using python to gather data for
snmpd is even an option, as it takes 2-3 seconds to run a simple subprocess
call. Bash does the same almost instantly.

Regards,
Tyler



--
Libertus Solutions
http://libertus.co.uk


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


Re: [ubuntu-uk] Building Ubuntu for the Raspberry Pi, on the Raspberry Pi

2013-11-07 Thread Tyler J. Wagner
Alan,

I notice that python startup is unacceptably slow. Perhaps once the program
is running, it's better. For instance, using python to gather data for
snmpd is even an option, as it takes 2-3 seconds to run a simple subprocess
call. Bash does the same almost instantly.

Regards,
Tyler

On 2013-11-07 20:51, Alan Bell wrote:
> I use python on the pi all the time, it works just fine for me, but I don't
> do much time critical stuff. Printing to the console is a bit slowish, but
> I do plenty of stuff responding to USB events and flashing LEDs attached to
> the GPIO and stuff like that.
> Mostly not desktop applications, just scripts that control things, log data
> to databases, that kind of stuff.
> I have also installed OpenERP on the Pi, that is a biggish python based
> server application. It wasn't quick, but neither was it slow enough that I
> didn't manage to install it, (including postGRES) and set up a company in
> it over the course of an evening.
> 
> Alan.
>   
> On 07/11/13 16:19, Tyler J. Wagner wrote:
>> Hi Alan,
>>
>> Please add "make Python not suck on Raspberry Pi" to your list of requests.
>> Execution time for python is so bad I had to rewrite a number of my tools
>> as shell scripts. Since many tools in Ubuntu are based on Python, I expect
>> that'll be on your list anyway.
>>
>> Hopefully that's just an issue with the Raspbian builds and not an inherent
>> issue with the processor. :)
>>
>> Regards,
>> Tyler
>>
>>
> 
> 

-- 
"[...] freedom is kind of a hobby with me, and I have disposable income
that I'll spend to find out how to get people more of it."
   -- Penn Jillette

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


Re: [ubuntu-uk] Printing a photo album without SAAS

2013-11-07 Thread Andres


Bruno Girin  escribió:
>On 7 November 2013 10:22, Simon Greenwood 
>wrote:
>
>>
>>
>>
>> On 7 November 2013 07:39, Andres  wrote:
>>
>>> Hello,
>>> I was thinking of doing a photo album and then having it printed at
>my
>>> local reprographics shop. All of it avoiding SAAS and using free
>libre open
>>> source software (floss).
>>>
>>> How would you go about it?
>>> Use something like digikam in combination with scribus?
>>>
>>>
>> Scribus on its own will produce print ready output. I've made photo
>> calendars and labels with it, and most small print shops will accept
>PDFs.
>> I use Shotwell for photo management and GIMP for editing but might
>have a
>> look at Digikam in future.
>>
>
>I've done it the python way for our business cards: I have a python
>script
>that picks up employee details from a JSON file, uses those details to
>populate an SVG template using jinja2 and then calls rsvg-convert to
>transform them into PDF. The script is 40 lines of code and produces
>print
>ready output.
>
>The benefit of the script route is that you can customise the source
>and
>content so for example, you can make the script pick up all the photos
>that
>are within a date range and automatically generate your photo album
>based
>on that which means you could do a "my year in pictures" album every
>Christmas. Or you can generate album and labels using the same source
>of
>data by just using a different template.
>
>Of course, if it's for a one-off, Scribus is the right tool for this.
>On
>the other had, why spend 5 minutes doing something when you can spend 5
>hours automating it? ;-)
>

Thanks for the input guys!

Bruno,
Would the python script be available under a free software licence? Could you 
send me a copy?
I might use it to generate a LaTeX document.

-- 
Enviado desde mi teléfono con K-9 Mail.

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


Re: [ubuntu-uk] Presence on Google Plus

2013-11-07 Thread Stuart Ward
On 7 November 2013 10:30, Alan Pope  wrote:

>
> So I created https://plus.google.com/communities/108756253446581210513
>

Joined

-- Stuart Ward M +44 7782325143
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Building Ubuntu for the Raspberry Pi, on the Raspberry Pi

2013-11-07 Thread Alan Bell
I use python on the pi all the time, it works just fine for me, but I 
don't do much time critical stuff. Printing to the console is a bit 
slowish, but I do plenty of stuff responding to USB events and flashing 
LEDs attached to the GPIO and stuff like that.
Mostly not desktop applications, just scripts that control things, log 
data to databases, that kind of stuff.
I have also installed OpenERP on the Pi, that is a biggish python based 
server application. It wasn't quick, but neither was it slow enough that 
I didn't manage to install it, (including postGRES) and set up a company 
in it over the course of an evening.


Alan.

On 07/11/13 16:19, Tyler J. Wagner wrote:

Hi Alan,

Please add "make Python not suck on Raspberry Pi" to your list of requests.
Execution time for python is so bad I had to rewrite a number of my tools
as shell scripts. Since many tools in Ubuntu are based on Python, I expect
that'll be on your list anyway.

Hopefully that's just an issue with the Raspbian builds and not an inherent
issue with the processor. :)

Regards,
Tyler





--
Libertus Solutions
http://libertus.co.uk


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


Re: [ubuntu-uk] 1000 commands

2013-11-07 Thread Bruno Girin
On 7 November 2013 16:50, Stuart Ward  wrote:

>
> On 7 November 2013 10:40, Alan Pope  wrote:
>
>> awk '{print $1}' ~/.bash_history | sort | uniq -c
>> | sort -rn | head
>>
>
> ~$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -rn | head
>  75 git
>  74 cd
>  57 sudo
>  39 tail
>  37 ls
>  33 dig
>  20 man
>  13 python
>  13 curl
>  12 cat
>
> Looks like I have been using git a bit recently...?
>

Same here with ls and cd in front:

$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -rn | head
407 ls
283 cd
217 git
171 vi
114 make
 53 dot
 52 sudo
 47 rm
 44 erl
 41 grep

The only reason why python is not up there is because I tend to do chmod +x
on my python scripts. I also had a dot and Erlang frenzy recently (not
together though).

What is also interesting is how it changes when you include the first
parameter. The positions of "git status" and simple "ls" showing that I
regularly need reminding what the hell I've just modified and what was in
there in the first place:

$ awk '{print $1 " " $2}' ~/.bash_history | sort | uniq -c | sort -rn | head
242 ls
 72 git status
 53 make
 53 dot -Tsvg
 50 vi Makefile
 43 git add
 41 vi test.sh
 41 bash test.sh
 39 git commit
 33 cd ..

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


Re: [ubuntu-uk] 1000 commands

2013-11-07 Thread Stuart Ward
On 7 November 2013 10:40, Alan Pope  wrote:

> awk '{print $1}' ~/.bash_history | sort | uniq -c
> | sort -rn | head
>

~$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -rn | head
 75 git
 74 cd
 57 sudo
 39 tail
 37 ls
 33 dig
 20 man
 13 python
 13 curl
 12 cat

Looks like I have been using git a bit recently...?

-- Stuart Ward M +44 7782325143
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Building Ubuntu for the Raspberry Pi, on the Raspberry Pi

2013-11-07 Thread Tyler J. Wagner
Hi Alan,

Please add "make Python not suck on Raspberry Pi" to your list of requests.
Execution time for python is so bad I had to rewrite a number of my tools
as shell scripts. Since many tools in Ubuntu are based on Python, I expect
that'll be on your list anyway.

Hopefully that's just an issue with the Raspbian builds and not an inherent
issue with the processor. :)

Regards,
Tyler

On 2013-11-07 00:52, Alan Bell wrote:
> from the pitch . . .
> 
> "Rasbian is a great operating platform for it, the LXDE desktop is fine,
> the Wayland demo was brilliant and loads of cool projects are happening
> based on the Pi. We still want Ubuntu on it though. We are using it in
> embedded projects, it is also turning up in things like the OpenERP Point
> of Sale kit, situations where it doesn't need a responsive user interface
> (or a user interface at all). It would be great to know that all the
> libraries we are using on it are the same versions we are using on other
> computers that are running Ubuntu. "
> 
> Basically when writing code on my laptop to deploy on the pi I want it to
> be the same environment. Now I could run Debian Wheezy on my laptop of
> course, but I am not going to do that. I am running Ubuntu on my laptop and
> I want to run Ubuntu on the Pi. Seeing Ubuntu Desktop with Mir and Unity 8
> would be kind of sweet, but the project isn't a failure if that doesn't
> work out - and the Unity desktop might well not run well on the Pi, we are
> well below the minimum recommended specification. It will be fun to try,
> but I don't want to set expectations too high. Having Ubuntu server as an
> expectation is probably deliverable, going above and beyond that would be a
> bonus.
> 
> Alan.
> 
> On 06/11/13 21:14, Nigel Verity wrote:
>> Alan
>>
>> I'm all for maximising the choice of OS that can be run on a Pi, but your
>> Indigogo pitch doesn't make clear what advantages Ubuntu server with no
>> desktop will bring, compared to the existing Debian derivative which
>> already provides LXDE. The pitch also gives the impression that if it
>> does eventually prove possible to get Unity running on top of "Pibuntu"
>> then the performance is not going to be up to much.
>>
>> Please don't take this as pouring cold water on your plans, more a
>> pointer for enhancing the FAQs.
>>
>> Regards
>>
>> Nige
>>
>>
> 
> 
> -- 
> Libertus Solutions
> http://libertus.co.uk
> 
> 
> 

-- 
"Copyright is a bargain, not property. We agreed not to copy because
they agreed it would only be for a short period of time. They have broken
their end of the bargain; we are now breaking ours."
   -- Russell Nelson

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


Re: [ubuntu-uk] 1000 commands

2013-11-07 Thread Alan Jenkins
The ranger CLI file manager is awesome too if your familiar with
vi/vim.  I use it a lot for getting to where I need to be. S is your
friend (puts you in a shell in the directory you have selected in
ranger).

On 7 Nov 2013, at 15:09, Liam Proven  wrote:

> On 7 November 2013 10:40, Alan Pope  wrote:
>> Indeed, I type "ls" and "cd" way more than I should :)
>
>
> Way back in the mists of ancient time, when I used to maintain just
> half a dozen Unix boxes ever, I aliased just the bare command "l" -
> lower-case L - to "ls -lah".
>
> That saved me a /lot/ of keystrokes.
>
> --
> Liam Proven • Profile: http://lproven.livejournal.com/profile
> Email: lpro...@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
> MSN: lpro...@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
> Tel: +44 20-8685-0498 • Cell: +44 7939-087884
>
> --
> 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] 1000 commands

2013-11-07 Thread Liam Proven
On 7 November 2013 10:40, Alan Pope  wrote:
> Indeed, I type "ls" and "cd" way more than I should :)


Way back in the mists of ancient time, when I used to maintain just
half a dozen Unix boxes ever, I aliased just the bare command "l" -
lower-case L - to "ls -lah".

That saved me a /lot/ of keystrokes.

-- 
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: lpro...@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lpro...@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

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


[ubuntu-uk] Python / django dev for REST API prototype

2013-11-07 Thread Bruno Girin
Hi all,

This is slightly off-topic but I thought people on this list would be the
right audience. My company, EnergyDeck [1], just got granted an "innovation
voucher" from the TSB [2] which means I have a small budget to do something
"innovative" under the following conditions:
- I need to do this through a UK based SME with whom we've never worked
before,
- Said SME needs to produce a short (1 page) report at the end of it.

What I need doing is a prototype for a REST API that would sit on top of
our platform, written using python + django + a REST API django plugin. The
scope of the prototype is flexible but needs at the very least to do this:
- Include basic support for developer API keys that we would issue,
- Authentication via OAuth,
- Performance testing for some of the queries that may return a large
amount of data.

The deadline is flexible but I would like to at least start this side of
Christmas.

If you are interested in doing this for us, please contact me off list and
we can discuss the details.

Cheers,

Bruno

[1] http://www.energydeck.com/
[2] https://www.innovateuk.org/
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Printing a photo album without SAAS

2013-11-07 Thread Bruno Girin
On 7 November 2013 10:22, Simon Greenwood  wrote:

>
>
>
> On 7 November 2013 07:39, Andres  wrote:
>
>> Hello,
>> I was thinking of doing a photo album and then having it printed at my
>> local reprographics shop. All of it avoiding SAAS and using free libre open
>> source software (floss).
>>
>> How would you go about it?
>> Use something like digikam in combination with scribus?
>>
>>
> Scribus on its own will produce print ready output. I've made photo
> calendars and labels with it, and most small print shops will accept PDFs.
> I use Shotwell for photo management and GIMP for editing but might have a
> look at Digikam in future.
>

I've done it the python way for our business cards: I have a python script
that picks up employee details from a JSON file, uses those details to
populate an SVG template using jinja2 and then calls rsvg-convert to
transform them into PDF. The script is 40 lines of code and produces print
ready output.

The benefit of the script route is that you can customise the source and
content so for example, you can make the script pick up all the photos that
are within a date range and automatically generate your photo album based
on that which means you could do a "my year in pictures" album every
Christmas. Or you can generate album and labels using the same source of
data by just using a different template.

Of course, if it's for a one-off, Scribus is the right tool for this. On
the other had, why spend 5 minutes doing something when you can spend 5
hours automating it? ;-)

Cheers,

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


Re: [ubuntu-uk] Presence on Google Plus

2013-11-07 Thread Paul Sutton
On 07/11/13 10:30, Alan Pope wrote:
> Hello all,
>
> It was suggested on IRC that we (the loco) might want to have a
> presence on G+. This seemed like a good idea given we have quite a
> good presence of Ubuntu in general on G+ (120K people in the Ubuntu
> community).
>
> So I created https://plus.google.com/communities/108756253446581210513
> which is a Google+ "Community" for the Ubuntu UK loco team. It could
> grow, or it could whither and die, that's up to us really :)
>
> No obligation to join of course, just another place where people can
> discuss / promote Ubuntu UK :)
>
> Happy happy,
>
> Cheers,
> Al.
>
Joined


Paul

-- 




--
http://www.zleap.net

http://www.linkedin.com/pub/paul-sutton/36/595/911

Exeter Raspberry PI Jam 23rd November - http://dcglug.drogon.net/meetings/
Torbay Raspberry Pi Jam 14th December - http://dcglug.drogon.net/torbay-pi-jam/

I am committed to safeguarding children, young people and vulnerable groups and 
expect any school or establishment I am involved with to share this commitment. 



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


Re: [ubuntu-uk] 1000 commands

2013-11-07 Thread Alan Pope
On 6 November 2013 20:23, Alan Jenkins  wrote:
> There is no problem with keeping a lengthy history per se, just
> sometimes those commands are often variations on the same thing
>

Indeed, I type "ls" and "cd" way more than I should :)

alan@deep-thought:~$ awk '{print $1}' ~/.bash_history | sort | uniq -c
| sort -rn | head
474 cd
359 ls
173 adb
109 ./click_n_run.sh
100 sudo
 46 nano
 38 cat
 32 mv
 31 grep
 27 ssh

Cheers,
Al.

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


[ubuntu-uk] Presence on Google Plus

2013-11-07 Thread Alan Pope
Hello all,

It was suggested on IRC that we (the loco) might want to have a
presence on G+. This seemed like a good idea given we have quite a
good presence of Ubuntu in general on G+ (120K people in the Ubuntu
community).

So I created https://plus.google.com/communities/108756253446581210513
which is a Google+ "Community" for the Ubuntu UK loco team. It could
grow, or it could whither and die, that's up to us really :)

No obligation to join of course, just another place where people can
discuss / promote Ubuntu UK :)

Happy happy,

Cheers,
Al.

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


Re: [ubuntu-uk] Printing a photo album without SAAS

2013-11-07 Thread Simon Greenwood
On 7 November 2013 07:39, Andres  wrote:

> Hello,
> I was thinking of doing a photo album and then having it printed at my
> local reprographics shop. All of it avoiding SAAS and using free libre open
> source software (floss).
>
> How would you go about it?
> Use something like digikam in combination with scribus?
>
>
Scribus on its own will produce print ready output. I've made photo
calendars and labels with it, and most small print shops will accept PDFs.
I use Shotwell for photo management and GIMP for editing but might have a
look at Digikam in future.

S/
-- 
Twitter: @sfgreenwood
"TBA are particularly glib"
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/