Sponsored Content
Operating Systems Solaris Newbie to Solaris needs HELP!!! Post 302754973 by runell on Friday 11th of January 2013 02:32:15 PM
Old 01-11-2013
Thanks DustinT for your info, i do have VM Workstation and am kinda playing along with it though sometimes the examples from the books do not work which can be quite frustrating but yes will play along with it.

Are the books am using really a good reference for learning Solaris?

Thank in advance?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Newbie on Solaris 8

Hello everyone, I just installed Solaris 8 on an intel machine. I am having problems with the network adapter which is not being recognized by the device configuration asistant despite it being listed in the Solaris 8 Hardware Compatibility list. This card is a Linksys LNE100TX and it is the only... (1 Reply)
Discussion started by: jdevarie
1 Replies

2. Solaris

Solaris - Newbie need help

Hi everybody. Sorry my English, first. Im a Solaris newbie. I want to learn Solaris. I've a Solaris 9 CD. I try to setup into my PC (Dell, PIV 2.8GHz, RAM 256Mb, HDD 40Gb), but it can't boot from the CD? What will I do to make it bootable and start the installation. Please tell me the format of... (4 Replies)
Discussion started by: imyourfriend
4 Replies

3. UNIX for Dummies Questions & Answers

Solaris netstat. Newbie.

Hi, I currently have two processes running on my Solaris server that are hogging the cpu. I am confident that these two processes are caused by remote users logged into the oracle database on the server. What I need to know is how to get the corresponding ip address associated with the... (2 Replies)
Discussion started by: gwhelan
2 Replies

4. Solaris

Installing en_US.UTF-8 on Solaris 10. Newbie.

Hi, I am looking to install en_US.UTF-8 on to a solaris 10 Sparc server. Is it possible to install this character set from the iso image? I have an iso image only (sol_10_u.iso) on CD. I have used the command below but with no success. Any pointers to get this installed would be greatly... (5 Replies)
Discussion started by: gwhelan
5 Replies

5. Solaris

Solaris newbie, need help

Hello, I am a newbie to both solaris and unix (thought i would jump right into the deep end) anyway... I am having something of a hardware issue. My sun blade 2500 has two graphics cards, a sound card (pci) and an internal speaker. After installation, it has used the worse of both. I have a... (6 Replies)
Discussion started by: GeekMasterFlash
6 Replies

6. Solaris

Solaris Newbie questions...

Hello everyone, I am brand spanking new to both Solaris and Unix. I thought I would give it a go after buying a SB2500 off ebay for a few hundred dollars. I am having some issues that I am not sure how to correct, and I am wondering if I can get a few pointers? The first one is that my system... (2 Replies)
Discussion started by: GeekMasterFlash
2 Replies

7. Solaris

Solaris Newbie - I just want a minimal install

I'm coming from BSD/Linux where I went from having to install gnome to now running *nix boxes with just the CLI. I love it but now I want to try my hand at solaris. I'm installing solaris 10 in a VM but I am kinda shocked at the install size. I would do the "core" option but I dont know if I'll... (2 Replies)
Discussion started by: sdotsen
2 Replies

8. Solaris

Newbie for solaris 10 and zfs

I have a Sun T2000 machines and require to reinstall the OS (Solaris 10 05/09). During installation, it prompts me about using UFS/ZFS and I'd chosen ZFS and choose to separate /root and /var. After installation, it displays the following: Filesystem kbytes used avail... (1 Reply)
Discussion started by: donaldfung
1 Replies

9. UNIX for Dummies Questions & Answers

Mail Server on solaris (newbie)

Hello to all, My company has installed CW LMS 3 on a Solaris 10 server. I want to configure the system as a mail server, so that it sends an e-mail when a network incident occurs. I have created a user account and I have configured Thunderbird Mozilla to retrieve the e-mails. I have configured... (0 Replies)
Discussion started by: kadar
0 Replies

10. Solaris

newbie - learn Solaris 10 or 11?

Hello, I looking for becoming a Solaris system administrator. Background: I consider myself an entry-level Linux system administrator. I don't know if I start my studies with Solaris 10 or 11. Maybe Solaris 11 because it's the new thing and the future, and Solaris 10 because since Solaris is... (2 Replies)
Discussion started by: albertoridolfi
2 Replies
DBIx::Class::Helper::ResultSet::CorrelateRelationship(3pUser Contributed Perl DocumentatDBIx::Class::Helper::ResultSet::CorrelateRelationship(3pm)

NAME
DBIx::Class::Helper::ResultSet::CorrelateRelationship - Easily correlate your ResultSets VERSION
version 2.013002 SYNOPSIS
package MyApp::Schema::ResultSet::Author; use base 'DBIx::Class::ResultSet'; __PACKAGE__->load_components(qw(Helper::ResultSet::CorrelateRelationship)); sub with_book_count { my $self = shift; $self->search(undef, { '+columns' => { book_count => $self->correlate('book')->count_rs->as_query } }); } 1; And then elsewhere, like in a controller: my $rows = $schema->resultset('Author')->with_book_count->all; DESCRIPTION
Correlated queries are one of the coolest things I've learned about for SQL since my initial learning of SQL. Unfortunately they are somewhat confusing. DBIx::Class has supported doing them for a long time, but generally people don't think of them because they are so rare. I won't go through all the details of how they work and cool things you can do with them, but here are a couple high level things you can use them for to save you time or effort. If you want to select a list of authors and counts of books for each author, you could use "group_by" and something like "COUNT(book.id)", but then you'd need to make your select list match your "group_by" and it would just be a hassle forever after that. The "SYNOPSIS" is a perfect example of how to implement this. If you want to select a list of authors and two separate kinds of counts of books for each author, as far as I know, you must use a correlated subquery in DBIx::Class. Here is an example of how you might do that: package MyApp::Schema::ResultSet::Author; use base 'DBIx::Class::ResultSet'; __PACKAGE__->load_components(qw(Helper::ResultSet::CorrelateRelationship)); sub with_good_book_count { my $self = shift; $self->search(undef, { '+columns' => { good_book_count => $self->correlate('books')->good->count_rs->as_query } }); } sub with_bad_book_count { my $self = shift; $self->search(undef, { '+columns' => { bad_book_count => $self->correlate('books')->bad->count_rs->as_query } }); } 1; And then elsewhere, like in a controller: my $rows = $schema->resultset('Author') ->with_bad_book_count ->with_good_book_count ->all; This assumes that the Book resultset has "good" and "bad" methods. See "NOTE" in DBIx::Class::Helper::ResultSet for a nice way to apply it to your entire schema. METHODS
correlate $rs->correlate($relationship_name) Correlate takes a single argument, a relationship for the invocant, and returns a resultset that can be used in the selector list. AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Arthur Axel "fREW" Schmidt. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-18 DBIx::Class::Helper::ResultSet::CorrelateRelationship(3pm)
All times are GMT -4. The time now is 06:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy