[#385051] How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...>

Hi, I've a struct like this:

20 messages 2011/07/01
[#385052] Re: How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...> 2011/07/01

2011/7/1 I=C3=B1aki Baz Castillo <ibc@aliax.net>:

[#385057] Re: How to order Structs based on two fields — Robert Klemme <shortcutter@...> 2011/07/01

On Fri, Jul 1, 2011 at 12:55 PM, I=F1aki Baz Castillo <ibc@aliax.net> wrote=

[#385069] Offering Help — Joe Peric <peric.joe@...>

I'm new to Ruby and I am willing to learn. Anyone need help on a

18 messages 2011/07/01
[#385072] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/01

On Fri, Jul 1, 2011 at 11:43 AM, Joe Peric <peric.joe@gmail.com> wrote:

[#385073] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/01

Never heard of it, but I'll get right on it. Thanks.

[#385082] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/02

Just finished this. I had to find some more info on exceptions to get

[#385083] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/02

On Sat, Jul 2, 2011 at 1:39 PM, Joe Peric <peric.joe@gmail.com> wrote:

[#385102] symbol vs string for hash keys — Intransition <transfire@...>

What are the important factors to consider when deciding whether to

12 messages 2011/07/03

[#385160] Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard — Timothy Barnes <barnes7td@...>

I posted the below question to the Shoes mailing list and got back the

10 messages 2011/07/09

[#385194] RubyInstaller Extras — Jon <jon.forums@...>

Since 2009, we've been pleased to include Huw Collingbourne's The Book of Ruby with RubyInstaller. Well now, Huw has a newly updated version, and he's published it with No Starch Press.

11 messages 2011/07/12

[#385207] Creating a range of directories — Simon Harrison <simon@...>

I'm wanting to create a range of directories with a prefix, like the

13 messages 2011/07/13

[#385276] Is there a more efficient way to remove data from a string? — Eddie Catflap <catflaporama@...>

Hi

9 messages 2011/07/15

[#385297] Help needed for a new release of text-hyphen — Austin Ziegler <halostatue@...>

I've had folks asking me for a release of text-hyphen that works with

12 messages 2011/07/15

[#385326] Comparing hashes based on their keys — Stefano Mioli <stefano.mioli@...>

Hi list,

13 messages 2011/07/15

[#385342] moving a 1.8.6 install? — Roggie Boone <rogboone@...>

Is it possible to move the gems from a Ruby 1.8.6 install on an (old)

10 messages 2011/07/15

[#385410] Better name for #zip_with — Intransition <transfire@...>

Any ideas for a better name for:

13 messages 2011/07/18

[#385452] Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...>

I want to write a Ruby driver that handles the feed from A CCTV camera.

23 messages 2011/07/18
[#385459] Re: Ruby + USB + CCTV Camera Driver? — William Rutiser <wruyahoo05@...> 2011/07/18

On 2011-07-18 1:00 PM, Bob Carpenter. wrote:

[#385461] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

William Rutiser wrote in post #1011466:

[#385462] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 11:51 AM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385464] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

Hassan Schroeder wrote in post #1011472:

[#385471] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 12:58 PM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385474] Re: Ruby + USB + CCTV Camera Driver? — Phillip Gawlowski <cmdjackryan@...> 2011/07/18

On Tue, Jul 19, 2011 at 12:18 AM, Hassan Schroeder

[#385477] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/19

Phillip Gawlowski wrote in post #1011503:

[#385509] A beginner question. — "Cajus A." <cajus_@...>

Hi i'm trying to write and example program where you speak to a

12 messages 2011/07/19

[#385542] Splitting strings — Ryan Mckenzie <ryan@...>

Hi all,

18 messages 2011/07/19

[#385565] error building ruby p290 — Dev Guy <devguy.ca@...>

I get the following build error on my Linux box while trying to build

12 messages 2011/07/20

[#385629] Are Job Ads OK? — Lee Hughes <lee@...>

Is it OK to post Ruby job ads on this forum?

12 messages 2011/07/21

[#385847] String manuplation example — kotin 76 <kotin76@...>

Hi,

15 messages 2011/07/27

[#385860] Counting lines of code in a ruby code file ignoring method code lines in the process — Harry Truax <htruax@...>

Hello,

8 messages 2011/07/27

[#385936] Help in Pointer — Tridib Bandopadhyay <tridib04@...>

Hello

18 messages 2011/07/29

[#386012] Ruby a "4th generation language"? Credible sources? — Albert Schlef <albertschlef@...>

I've noticed that Wikipedia says that "C#, Java" are 3'rd generation

13 messages 2011/07/31

[#386050] system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...>

Hey guys, I'm just starting to mess around with metaprogramming in Ruby,

14 messages 2011/07/31
[#386052] Re: system stack error in ObjectSpace.each_object — Josh Cheek <josh.cheek@...> 2011/07/31

On Sun, Jul 31, 2011 at 4:29 PM, luke gruber <luke.gru@gmail.com> wrote:

[#386055] Re: system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...> 2011/08/01

> Typically, SystemStackError is due to recursing for too long, perhaps I

[#386058] Re: system stack error in ObjectSpace.each_object — Robert Klemme <shortcutter@...> 2011/08/01

On Mon, Aug 1, 2011 at 3:56 AM, luke gruber <luke.gru@gmail.com> wrote:

Re: Anyone interested in a Package Manager in Ruby?

From: Marc Heiler <shevegen@...>
Date: 2011-07-16 18:24:10 UTC
List: ruby-talk #385384
Hi Marc Weber,


> It depends on what you want. nixpkgs was designed to generate
> results you can regenerate on a different machine (if possible).

> That's a unique feature.

I agree with you. :)

> It was also designed to offer atomic upgrades.
> From this point it follows that it should support
> multiple versions.

Ok, I see. NixOS comes from a slightly different angle here.

Versioned directories are very simple and primitive compared to
what NixOS is doing. But both are much better than the FHS
solution to spread everything out directly without any structure
at all.

> Don't use a computer but a pencile.

But I like the computer because I make less errors.

When I write with a pencil, I sometimes can't even read my own
writing. :)

But I can always read computer-text.

> You can't be more simple :)

Well. I guess the FHS is simpler than Gobolinux (and much simpler
than NixOS) because you do not have ANY real structure with the
FHS other than an arbitrary convention of where things *should*
go - but this convention was derived 99% because it already was
there. Reasons why /usr or /etc exist, because the old C hackers
were lazy to type longer words. You will never see /system or
/System, you will only see /sys because they HATE to type long
names. Or uppercased words as well. This also means they will
NEVER change to ANYTHING that makes them type more ... even if
the resulting structure is more logical.

I think /Users is a lot more logical than /usr. Yet, /usr is
short for "users", and not for the backronym "unix system resource"
which would not make a lot of sense on linux either. We could
use a /lsr if usr really meant "unix system resource".

> I mean if you want the features described above you can't
> make it simpler.

I am not disputing this, I can see that. However I am so far
using versioned directories and it is working beautifully and
is very simple. This is the only thing I disliked about NixPS
so far, which is that directories like:

  /nix/store/5rnfzla9kcx4mj5zdc7nlnv8na1najvg-firefox-3.5.4/

Aren't friendly to my eyes. And if things are needlessly
complex to my eyes, then my eyes complain to my brain and
my brain starts to enter the "not want to" mood. I'd even
suggest for NixOS to overlay these directories into a
/Programs structure (or anywhere else the user wants to)
with a clear versioned structure. Well, actually ... Gobolinux
could be a subpart of NixOS where NixOS would manage
everything Gobolinux does - but also gives the user the
ability to entirely stay within the simplicity and beauty of
/Programs/ProgramName/VersionNumber ;)

This is probably not completely possible as NixOS seems to do
more than that under the hood, but still, I myself am too
much in love with the abovementioned scheme to abandon it.

But as said before, the NixOS model rocks.

> Well - its not quite true. Application state (eg gimp's
> configuration) is stored in ~/.gimp. Unfortunately it also
> has some pointers to /nix/store/xxxxx-this-gimp-build.
> Thus if the hash xxx changes your ~/.gimp is broken.
> This results in gimp no longer being able to open jpeg
> files. However this kind of problem is rare and it can
> easily be fixed.

Interesting.

> nix: the package manager
> nixos: the linux distribution based on nix (and the nixpkgs
> build descriptions).

> The nice thing: because everything is in /nix/store it does not
> interfere with your existing system much.

> Do whatever you want :) I wanted to make sure you don't miss
> nixpkgs cause I think it the best system available. There are
> some drawbacks though. Eg if you rebuild bash everything has
> to be rebuild because youwant deterministic results :/

Well, it sounds very interesting. So I could skip NixOS as a
distribution and solely use Nix. This is making it a lot more
interesting. :)

Because if I can use nix without necessarily having to use NixOS
at the same time, then I can try it out, try things with it, and
so on and so forth.

I've become too much of a tinkerer.

Thanks for your writing by the way, appreciated!

-- 
Posted via http://www.ruby-forum.com/.

In This Thread

Prev Next