Re: [Elementary-dev-community] Built noise from source, can't find libgranite.so

2013-06-23 Thread Sergey Shnatsel Davidoff
Sounds like you have an outdated development package; run apt-cache policy
libgranite-dev to list all available versions. The easiest way to install
an alternative version is via Synaptic.


2013/6/23 Craig webe...@gmail.com

 I built and installed noise from source, but it can't find libgranite.so
 (I get the following error when I run 'noise'):

 noise: error while loading shared libraries: libgranite.so.0: cannot open
 shared object file: No such file or directory

 I do have libgranite1 installed--can someone tell me what could be going
 wrong here?

 Please and thank you,
 Craig

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp




-- 
Sergey Shnatsel Davidoff
OS architect @ elementary
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


[Elementary-dev-community] Running Elementary in a VirtualBox VM [tutorial]

2013-06-23 Thread Craig Weber
I made a brief write up on using VirtualBox to virtualize Luna. My 
primary purpose is to increase exposure to Luna, particularly to those 
less-technical users; however, it could also be useful for those 
looking to create a clean development environment without fear of 
breaking their production environment.


I wrote this up because I experienced a lot of issues with 
installing/configuring a Luna VM, and I want others to benefit from my 
experiences. Please feel free to read this/share it with anyone who may 
find it useful:


http://craigmatthewweber.com/2013/06/23/running-elementaryos-in-virtualbox-under-ubuntu-13-04/
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] Running Elementary in a VirtualBox VM [tutorial]

2013-06-23 Thread Sergey Shnatsel Davidoff
Unfortunately VirtualBox is not a great choice because of its really,
really poor GPU passthrough drivers that can cause all sorts of random
issues, including crashes:
http://www.phoronix.com/scan.php?page=news_itempx=OTk5Mw

Running Luna in virtual machines is not a great idea in general because
it's just not designed for such use. For example, using the dock in a VM is
a PITA because you have to hover a 1px stripe, which is tricky. Also
VirtualBox has very slow 2D acceleration, so the dock is slow to show up
too even if you manage to reveal it.
And any VM drivers are really slow at OpenGL, so Gala animations are laggy,
window management in general is laggy even if you disable animations, and
VirtualBox drivers show all kinds of nasty artifacts too.

So, if you don't mind unusable window management (e.g. you always use one
window), you can try running Luna in a VM, but please use something other
than VirtualBox. In fact, Parallels GPU drivers are crap as well
(proprietary and even worse than VirtualBox) and QEMU/KVM doesn't have
guest GPU drivers, so the only VM in which Luna is usable (in single-window
mode, because window management is b0rked either way) is VMware.

If you want usable window management, you can try running Luna in
fullscreen mode in QEMU/KVM or Xen with GPU passthrough to guest, but
that's tricky to set up and I can't see any advantages of this setup over
an actual installation.

Oh, and there's also the option to hack out Gala and replace it with
something that does compositing in software. But in that case you're not
really running Luna.


2013/6/23 Craig Weber webe...@gmail.com

 I made a brief write up on using VirtualBox to virtualize Luna. My primary
 purpose is to increase exposure to Luna, particularly to those
 less-technical users; however, it could also be useful for those looking to
 create a clean development environment without fear of breaking their
 production environment.

 I wrote this up because I experienced a lot of issues with
 installing/configuring a Luna VM, and I want others to benefit from my
 experiences. Please feel free to read this/share it with anyone who may
 find it useful:


 http://craigmatthewweber.com/2013/06/23/running-elementaryos-in-virtualbox-under-ubuntu-13-04/

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp




-- 
Sergey Shnatsel Davidoff
OS architect @ elementary
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] Built noise from source, can't find libgranite.so

2013-06-23 Thread Craig
So how do I know which version is needed? Shouldn't this be caught
somewhere in the installation process? Here is the result of the apt-cache
policy command you sent:

libgranite-dev:
  Installed: 0.2.0~r590-0+pkg51~raring1
  Candidate: 0.2.0~r590-0+pkg51~raring1
  Version table:
 *** 0.2.0~r590-0+pkg51~raring1 0
500 http://ppa.launchpad.net/elementary-os/daily/ubuntu/raring/main
amd64 Packages
100 /var/lib/dpkg/status
 0.1.0-0ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ raring/universe amd64
Packages


On Sun, Jun 23, 2013 at 9:58 AM, Sergey Shnatsel Davidoff 
ser...@elementaryos.org wrote:

 Sounds like you have an outdated development package; run apt-cache
 policy libgranite-dev to list all available versions. The easiest way to
 install an alternative version is via Synaptic.


 2013/6/23 Craig webe...@gmail.com

 I built and installed noise from source, but it can't find libgranite.so
 (I get the following error when I run 'noise'):

 noise: error while loading shared libraries: libgranite.so.0: cannot
 open shared object file: No such file or directory

 I do have libgranite1 installed--can someone tell me what could be going
 wrong here?

 Please and thank you,
 Craig

 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp




 --
 Sergey Shnatsel Davidoff
 OS architect @ elementary

-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] Running Elementary in a VirtualBox VM [tutorial]

2013-06-23 Thread Craig Weber
I'm not claiming running it in a VM is ideal; however, it's often 
necessary (a lot of people want to try an OS before installing it on 
hardware; others don't want to commit to beta software). In short, 
hardware installation is simply out of the question for a lot of people.


If you'd like to write up an alternative virtualization solution, I'd 
be happy to link to it on my blog.


As a side note, running the VM in fullscreen mode means you don't have 
to hover over said 1px stripe to show the dock. And I don't believe 
I've had such graphics problems with other OSes in VirtualBox--while I 
don't doubt VirtualBox's drivers are crappy, it looks like some of the 
problem is on Luna's implementation (of course, this is perfectly 
acceptable as Virtualbox isn't a supported target).


On Sun, Jun 23, 2013 at 12:09 PM, Sergey Shnatsel Davidoff 
ser...@elementaryos.org wrote:
Unfortunately VirtualBox is not a great choice because of its really, 
really poor GPU passthrough drivers that can cause all sorts of 
random issues, including crashes: 
http://www.phoronix.com/scan.php?page=news_itempx=OTk5Mw


Running Luna in virtual machines is not a great idea in general 
because it's just not designed for such use. For example, using the 
dock in a VM is a PITA because you have to hover a 1px stripe, which 
is tricky. Also VirtualBox has very slow 2D acceleration, so the dock 
is slow to show up too even if you manage to reveal it.
And any VM drivers are really slow at OpenGL, so Gala animations are 
laggy, window management in general is laggy even if you disable 
animations, and VirtualBox drivers show all kinds of nasty artifacts 
too.


So, if you don't mind unusable window management (e.g. you always use 
one window), you can try running Luna in a VM, but please use 
something other than VirtualBox. In fact, Parallels GPU drivers are 
crap as well (proprietary and even worse than VirtualBox) and 
QEMU/KVM doesn't have guest GPU drivers, so the only VM in which Luna 
is usable (in single-window mode, because window management is b0rked 
either way) is VMware.


If you want usable window management, you can try running Luna in 
fullscreen mode in QEMU/KVM or Xen with GPU passthrough to guest, but 
that's tricky to set up and I can't see any advantages of this setup 
over an actual installation.


Oh, and there's also the option to hack out Gala and replace it with 
something that does compositing in software. But in that case you're 
not really running Luna.



2013/6/23 Craig Weber webe...@gmail.com
I made a brief write up on using VirtualBox to virtualize Luna. My 
primary purpose is to increase exposure to Luna, particularly to 
those less-technical users; however, it could also be useful for 
those looking to create a clean development environment without fear 
of breaking their production environment.


I wrote this up because I experienced a lot of issues with 
installing/configuring a Luna VM, and I want others to benefit from 
my experiences. Please feel free to read this/share it with anyone 
who may find it useful:


http://craigmatthewweber.com/2013/06/23/running-elementaryos-in-virtualbox-under-ubuntu-13-04/

--
Mailing list: https://launchpad.net/~elementary-dev-community
Post to     : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp






--
Sergey Shnatsel Davidoff
OS architect @ elementary
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


[Elementary-dev-community] Building Gala, missing glib.h file

2013-06-23 Thread Craig Weber
I'm trying to build Gala, and during the 'make' phase, I encounter this 
error:


DBus.c:21:18: fatal error: glib.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/gala.dir/src/DBus.c.o] Error 1
make[1]: *** [CMakeFiles/gala.dir/all] Error 2
make: *** [all] Error 2

Effectively, I am experiencing this bug: 
https://bugs.launchpad.net/gala/+bug/1072514


.. which I reopened because the solution the OP found hasn't helped me.

Can someone please help with this?

Thank you,
Craig
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


[Elementary-dev-community] The book How Google Tests Software

2013-06-23 Thread Craig Weber
Has anyone read this book? If so, how applicable is this for elementary 
development? Would you recommend it for Elementary developers, and what 
about it could benefit Elementary developers?


If few respond, I'll read through it anyway and provide a 
recommendation of some sort to share with the community, as I believe a 
formal testing process is important to developing quality software (and 
apparently le Goog does as well).


Thanks,
Craig
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


[Elementary-dev-community] elementary hide mode implementation for wingpanel

2013-06-23 Thread Sajith Edirisinghe
I was thinking about implementing elementary hide mode for wingpanel
(just like in plank) and I was hoping I could reuse code in
HideManager.vala used by plank. But what I don't get is that how the hide()
and show() functions work in that. Can anyone explain it to me please.

regards,
Sajith Dilshan
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] The book How Google Tests Software

2013-06-23 Thread Craig Weber
Also, on this note, I think it would be a very productive thing for 
some of us to collectively read software development books and discuss 
ideas that could help improve the way we do development so we can be 
better developers and more effectively help our users.


Thoughts?

On Sun, Jun 23, 2013 at 1:59 PM, Craig Weber webe...@gmail.com wrote:
Has anyone read this book? If so, how applicable is this for 
elementary development? Would you recommend it for Elementary 
developers, and what about it could benefit Elementary developers?


If few respond, I'll read through it anyway and provide a 
recommendation of some sort to share with the community, as I believe 
a formal testing process is important to developing quality software 
(and apparently le Goog does as well).


Thanks,
Craig
-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp


Re: [Elementary-dev-community] The book How Google Tests Software

2013-06-23 Thread Sajith Edirisinghe
In java there are tools like maven, ant for automated unit testing. But I'm
not sure if there are any tools for vala or C. On the other hand test
driven development would certainly increase stability of the system, though
it adds an overhead of writing tests.


On Mon, Jun 24, 2013 at 12:46 AM, Craig Weber webe...@gmail.com wrote:

 Also, on this note, I think it would be a very productive thing for some
 of us to collectively read software development books and discuss ideas
 that could help improve the way we do development so we can be better
 developers and more effectively help our users.

 Thoughts?

 On Sun, Jun 23, 2013 at 1:59 PM, Craig Weber webe...@gmail.com wrote:

 Has anyone read this book? If so, how applicable is this for elementary
 development? Would you recommend it for Elementary developers, and what
 about it could benefit Elementary developers?

 If few respond, I'll read through it anyway and provide a recommendation
 of some sort to share with the community, as I believe a formal testing
 process is important to developing quality software (and apparently le Goog
 does as well).

 Thanks,
 Craig


 --
 Mailing list: https://launchpad.net/~elementary-dev-community
 Post to : elementary-dev-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~elementary-dev-community
 More help   : https://help.launchpad.net/ListHelp


-- 
Mailing list: https://launchpad.net/~elementary-dev-community
Post to : elementary-dev-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~elementary-dev-community
More help   : https://help.launchpad.net/ListHelp