Protobuf 3.0.0 instead of 2.6.1?

2016-07-26 Thread JIA Pei
Hi, Canonical developers?

Recently, I started to play with tensorflow. I prefer run code from my
native computer instead of building an virtual environment. Therefore, I
installed tensorflow from source, and happened to notice it requires
protobuf 3.0.0+ .

However, Ubuntu comes with protobuf 2.6.1 from the repository by default,
And to thoroughly remove protobuf is headache.

Actually, I put two questions from Ubuntuforum, please refer to:
https://ubuntuforums.org/showthread.php?t=2331702
https://ubuntuforums.org/showthread.php?t=2331071


Although now I can build my code based on tensorflow within a virtual
environment. I still prefer building everything WITHOUT a virtualenv
anyway. Can anybody give me a hand please??


Thank you very much...


Cheers

-- 

Pei JIA, Ph.D.

Email: jp4w...@gmail.com
cell in Canada:+1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Outdated arduino package?

2016-07-26 Thread Michael Hall
If you are on 16.04 I have a Snap package of the Arduino IDE 1.6.9 I can
share with you. I'm working on getting it into the snap store.

--
Michael Hall
mhall...@ubuntu.com

On 07/23/2016 11:02 AM, Starbeamrainbowlabs wrote:
> Hello,
> 
> I'm emailing to ask about the official arduino package in the Ubuntu
> repositories. It's currently at version 1.0.5, yet the latest version on
> the arduino website is version 1.6.9. It looks like this package hasn't
> been updated since ~May 2013.
> 
> I looked at setting up my own ppa on launchpad and repackaging the
> arduino IDE myself, but instructions I found were so horrendously
> complicated and mentioned so many things that I hadn't heard of (and I'm
> fairly confident in a terminal) I've given up :(
> 
> Is it possible to have the arduino package in the official Ubuntu ppa
> for xenial updated please? If not, I'm open to having another go at
> packaging it myself, but I currently can't find any tutorials out there
> that explain the process adequately.
> 
> Many thanks,
> Starbeamrainbowlabs (keybase.io/sbrl )
> 
> 

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Outdated arduino package?

2016-07-26 Thread Simon Quigley
Greetings,

On 07/23/2016 10:02 AM, Starbeamrainbowlabs wrote:

> I'm emailing to ask about the official arduino package in the Ubuntu
> repositories. It's currently at version 1.0.5, yet the latest version on
> the arduino website is version 1.6.9. It looks like this package hasn't
> been updated since ~May 2013.

I've carbon-copied the Debian maintainers, as this isn't a problem with
Ubuntu, but there isn't an up-to-date Debian package.

> I looked at setting up my own ppa on launchpad and repackaging the
> arduino IDE myself, but instructions I found were so horrendously
> complicated and mentioned so many things that I hadn't heard of (and I'm
> fairly confident in a terminal) I've given up :(
> 
> Is it possible to have the arduino package in the official Ubuntu ppa
> for xenial updated please? If not, I'm open to having another go at
> packaging it myself, but I currently can't find any tutorials out there
> that explain the process adequately.

The Debian maintainers should be able to help you if you wish, either
way, it's brought to their attention and they should be able to explain
why it isn't up-to-date.

It needs to be updated in Debian because packages in Debian flow down to
the Ubuntu development release, and we can do something about getting in
in 16.04 then.

The latest version in Debian[1] is 1.0.5 as well, but in experimental,
they have 1.5.6.2, so it looks like they have been working on it a bit.

Thanks for pointing this out!

[1]
https://packages.debian.org/search?keywords=arduino&searchon=names&suite=all§ion=all

-- 
Simon Quigley
tsimo...@ubuntu.com
tsimonq2 on Freenode

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Outdated arduino package?

2016-07-26 Thread Starbeamrainbowlabs
Hello,

I'm emailing to ask about the official arduino package in the Ubuntu
repositories. It's currently at version 1.0.5, yet the latest version on the
arduino website is version 1.6.9. It looks like this package hasn't been updated
since ~May 2013.

I looked at setting up my own ppa on launchpad and repackaging the arduino IDE
myself, but instructions I found were so horrendously complicated and mentioned
so many things that I hadn't heard of (and I'm fairly confident in a terminal)
I've given up :(

Is it possible to have the arduino package in the official Ubuntu ppa for xenial
updated please? If not, I'm open to having another go at packaging it myself,
but I currently can't find any tutorials out there that explain the process
adequately.

Many thanks,
Starbeamrainbowlabs (keybase.io/sbrl)##SELECTION_END##

signature.asc
Description: This is a digitally signed message part
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Repeated Crash GnuCash

2016-07-26 Thread Kobus[GMail]

Hi,

Need to report this VERY FRUSTRATING bug !!!
Not going to register on Bugzilla just for a single bug report.

While capturing detail in a vendor bill and accidentally press 
left-Shift & left-CapsLock at the same time, GnuCash crashes immediately.

GnuCash 1:2.6.6-2ubuntu2
Ubuntu Trusty 14.04 x64 (kernel 4.2.0.42.45)

Thnx

--
The information transmitted is without prejudice and intended solely for the 
person or entity to whom it is addressed and may contain confidential and/or 
privileged material. Any review, transmission, dissemination or other use of, 
or taking action in reliance upon this information by persons or entities other 
than the intended primary addressee, is prohibited. All of our rights, be it 
singularly or collectively, remain strictly and unconditionally reserved. If 
you receive this in error, please advise the sender and immediately delete the 
material from any computer/device.


--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


xfce4-power-manager BUG + possible FIX

2016-07-26 Thread Bernd
Dear maintainer(s),

first time I try to give some feedback, so please don't feel offended, or even 
beat me, if this is not the right place to report.


PACKAGE
===
Package: xfce4-power-manager
Version: 1.4.4-4ubuntu2


PROBLEM DESCRIPTION
===
Running xfce4-power-manager on a lubuntu 16.04 system using a laptop running on 
battery I kept receiving the following notification 
'GDBus.Error:org.freedesktop.DBus.Error.AccessDenied:Permission denied'

Investigating further it turned out, there was a discrepancy between 
'xfce4-power-manger-settings' GUI reporting the sleep mode on battery to be 
"Suspend" and 'dbus-monitor --system' reporting the real action taking place to 
be an attempt to go into "Hibernate" mode (relevant part cited below), which in 
turn is disabled via polkit-1 on my system.

---
method call time=1469228622.268937 sender=:1.62 -> 
destination=org.freedesktop.login1 serial=25 path=/org/freedesktop/login1; 
interface=org.freedesktop.login1.Manager; member=Hibernate
   boolean true
---


STEPS TO REPRODUCE
==
1. reset/remove xfce-power-manager.xml configuration
2. disable action "org.freedesktop.login1.hibernate" via polkit-1
3. unplug laptop from power source
4. keep doing nothing for 15 minutes


INVESTIGATION
=
Digging the sources I found the problem to be split between 
src/xfpm-xfconf.c:489 setting the default value of the property 
"inactivity-sleep-mode-on-battery" to XFP_DO_HIBERNATE and 
'xfpm_settings_on_battery()' in settings/xfpm-settings.c:863 narrowing down 
possible ComboBox options down to those actually supported by system policy.

Given an empty/default xfce4-power-manager.xml configuration and via system 
policy disabled hibernate this leads to the funny fact that 
'xfce4-power-manager-settings' GUI will not only wrongly "report" the selected 
sleep mode to be "Suspend".
But even worse never never never ever allow the user to really switch sleep 
mode on battery to "Suspend", as to fire the necessary callback it would be 
necessary to actually change the ComboBox selection, which given a single 
choice is impossible.

I managed to circumvent the problem manually adding:  to the 
configuration file, but probably this might not be the most obvious i.e. user 
friendly way to handle such situations.


SUGGESTED FIX
=
To handle scenarios like the one described with either "Suspend", "Hibernate", 
or even both unavailable imho it wouldn't be too painful to allow 
XFPM_DO_NOTHING as another option for both properties 
"inactivity-sleep-mode-on-battery" and "inactivity-sleep-mode-on-ac". 

This would not only allow to select either "Suspend" or "Hibernate" even if the 
other one isn't available still firing the necessary callback in 
'xfce4-power-manager-settings', but also allow to still show a meaningful value 
in the GUI in case both of them are unavailable.

I put a patch just doing this in the attachment. 


BTW
===
imho lowering the "magic" never timeout value from 14 to 0 and allowing a range 
starting from 0 wouldn't be to painful, especially for testing purposes. :) I 
know it is already possible to use lower values manually hacking the config 
file, but again probably this is not the most obvious and user-friendly way.


Best regards
  Bernd.


-- 
Bernd 
Index: xfce4-power-manager-1.4.4/settings/xfpm-settings.c
===
--- xfce4-power-manager-1.4.4.orig/settings/xfpm-settings.c
+++ xfce4-power-manager-1.4.4/settings/xfpm-settings.c
@@ -885,6 +885,9 @@ xfpm_settings_on_battery (XfconfChannel
 inact_action = GTK_WIDGET (gtk_builder_get_object (xml, "system-sleep-mode-on-battery"));
 gtk_combo_box_set_model (GTK_COMBO_BOX(inact_action), GTK_TREE_MODEL(list_store));
 
+gtk_list_store_append (list_store, &iter);
+gtk_list_store_set (list_store, &iter, 0, _("Do nothing"), 1, XFPM_DO_NOTHING, -1);
+
 if ( can_suspend )
 {
 gtk_list_store_append (list_store, &iter);
@@ -,6 +1114,9 @@ xfpm_settings_on_ac (XfconfChannel *chan
 inact_action = GTK_WIDGET (gtk_builder_get_object (xml, "system-sleep-mode-on-ac"));
 gtk_combo_box_set_model (GTK_COMBO_BOX(inact_action), GTK_TREE_MODEL(list_store));
 
+gtk_list_store_append (list_store, &iter);
+gtk_list_store_set (list_store, &iter, 0, _("Do nothing"), 1, XFPM_DO_NOTHING, -1);
+
 if ( can_suspend )
 {
 gtk_list_store_append (list_store, &iter);
Index: xfce4-power-manager-1.4.4/src/xfpm-xfconf.c
===
--- xfce4-power-manager-1.4.4.orig/src/xfpm-xfconf.c
+++ xfce4-power-manager-1.4.4/src/xfpm-xfconf.c
@@ -490,9 +490,9 @@ xfpm_xfconf_class_init (XfpmXfconfClass
  PROP_IDLE_SLEEP_MODE_ON_BATTERY,
  g_param_spec_uint (INACTIVITY_SLEEP_MODE_ON_BATTERY,
 NULL, NULL,
-