Sponsored Content
Top Forums Programming Open Source What is your favorite Linux distro? Post 302087510 by stansaraczewski on Friday 1st of September 2006 07:11:18 PM
Old 09-01-2006
Ubuntu for ease of installation and friendliness of people on the forums.

It is true what they say: It is the lazy person's Linux... but I sure do love working with it.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linux distro

Hi I'm have old toshiba laptop(t1900) 486, 4mbRAM and ~120MB of hdd I'm looking for distro to suite my comp, no need for X windows but not enything that runs on FAT, just normal small Linux. Actually, *BSDs will do as well. If u know any distro that would do this I will be thankful for hint ... (4 Replies)
Discussion started by: wolk
4 Replies

2. What is on Your Mind?

Post Your Favorite UNIX/Linux Related RSS Feed Links

Hello, I am planning to revise the RSS News subforum areas, here: News, Links, Events and Announcements - The UNIX Forums ... maybe with a subforum for each OS specific news, like HP-UX, Solaris, RedHat, OSX, etc. RSS subforums.... Please post your favorite OS specific RSS (RSS2) link... (0 Replies)
Discussion started by: Neo
0 Replies

3. UNIX for Dummies Questions & Answers

New to linux. Which distro should i use?

want to know which Linux distro is 4 me. want 2 teach my self programing and problem solving. i want to learn code and write code. i have an acer aspire one 2GB memory 160 GB HDD intel Atom. look im as noobie as it gets im a MS xp, vista boy want to go beyond graphical click and do... any help... (1 Reply)
Discussion started by: BizilStank
1 Replies

4. What is on Your Mind?

What's your favorite SSH client to connect to UNIX/Linux machines?

I am curious about the most popular ssh client on Windows environment. Talking about me, I use PuTTY most of the time coupled with WinSCP to transfer files. But, I like Tera Term too. It has great drag-drop feature where you can drag a file/folder and drop on the window and it will transfer the... (14 Replies)
Discussion started by: admin_xor
14 Replies

5. What is on Your Mind?

What's your all time favorite UNIX/Linux book?

I can bet everyone has their one favorite book even though we have had read many books on UNIX or Linux. My all time favorite is "Unix Power Tools". This book always made me geeky and I loved the little tricks/tips in the book. I still do! The next favorite would be "Prentice Hall Unix and Linux... (0 Replies)
Discussion started by: admin_xor
0 Replies

6. Linux

Best Linux Distro

Hello, I have a Compaq Presario v3000 5 year old laptop, with 1 GB RAM and currently running the (slow and stupid) Windows 7 32 bit, thus I would like to dual boot it with an appropriate distro of Linux that 1) Doesnt consume too much resources (1 GB RAM is not a lot of space) and it ll be... (4 Replies)
Discussion started by: ajayram
4 Replies

7. Linux

Favorite Synchronizers for Win & Linux

I'm looking for a new file/directory synchronizer. I've been using unison because it works on both windows and linux. However, it often chokes on the very long directory paths and file names I encounter when backing up eclipse and eclipse workspace directories. I suppose one could argue that I... (2 Replies)
Discussion started by: siegfried
2 Replies

8. What is on Your Mind?

Video: What is Your Favorite Linux Distro? UNIX.com and Primis

Video: What is Your Favorite Linux Distro? UNIX.com and Primis https://youtu.be/doa9sA6q9Uw With so many great flavors of Linux to choose from, we asked our UNIX.com members what is their favorite Linux distro and why. Here are the results: What is your favorite Linux distro? ... (0 Replies)
Discussion started by: Neo
0 Replies

9. What is on Your Mind?

What is Your Favorite Editor for Linux and UNIX? | A Video in 1080 HD

We have asked UNIX.com users over the years what is their favorite editor and why. Here is the top three answers. Here is a new YT video on this question: What Editor Does Everyone Use? https://youtu.be/gqE8RTZZt9g Of course, vi was the overwhelming favorite. Credits: 1080 HD... (3 Replies)
Discussion started by: Neo
3 Replies
MONGOCOLLECTION.AGGREGATECURSOR(3)					 1					MONGOCOLLECTION.AGGREGATECURSOR(3)

MongoCollection::aggregateCursor - Execute an aggregation pipeline command and retrieve results through a cursor

SYNOPSIS
public MongoCommandCursor MongoCollection::aggregateCursor (array $command, [array $options]) DESCRIPTION
With this method you can execute Aggregation Framework pipelines and retrieve the results through a cursor, instead of getting just one document back as you would with MongoCollection::aggregate. This method returns a MongoCommandCursor object. This cursor object implements the Iterator interface just like the MongoCursor objects that are returned by the MongoCollection::find method. Note The resulting MongoCommandCursor will inherit this collection's read preference. MongoCommandCursor::setReadPreference may be used to change the read preference before iterating on the cursor. PARAMETERS
o $pipeline - The Aggregation Framework pipeline to execute. o $options -Options for the aggregation command. Valid options include: o "allowDiskUse"Allow aggregation stages to write to temporary files o "cursor" It is possible to configure how many initial documents the server should return with the first result set. The default initial batch size is 101. You can change it by adding the batchSize option: <?php $collection->aggregateCursor( $pipeline, [ "cursor" => [ "batchSize" => 4 ] ] ); MongoCommandCursor::batchSize method on the returned MongoCommandCursor object. o "explain" Return information on the processing of the pipeline. This option may cause the command to return a result docu- ment that is unsuitable for constructing a MongoCommandCursor. If you need to use this option, you should consider using MongoCollection::aggregate. o "maxTimeMS"Specifies a cumulative time limit in milliseconds for processing the operation (does not include idle time). If the operation is not completed within the timeout period, a MongoExecutionTimeoutException will be thrown. RETURN VALUES
Returns a MongoCommandCursor object. Because this implements the Iterator interface you can iterate over each of the results as returned by the command query. The MongoCommandCursor also implements the MongoCursorInterface interface which adds the MongoCommandCursor::batch- Size, MongoCommandCursor::dead, MongoCommandCursor::info methods. EXAMPLES
Example #1 MongoCollection.aggregateCursor(3) example Finding all of the distinct values for a key. <?php $m = new MongoClient; $db = $m->test; $people = $db->people; $people->drop(); $people->insert(array("name" => "Joe", "points" => 4)); $people->insert(array("name" => "Molly", "points" => 43)); $people->insert(array("name" => "Sally", "points" => 22)); $people->insert(array("name" => "Joe", "points" => 22)); $people->insert(array("name" => "Molly", "points" => 87)); $ages = $people->aggregateCursor( [ [ '$group' => [ '_id' => '$name', 'points' => [ '$sum' => '$points' ] ] ], [ '$sort' => [ 'points' => -1 ] ], ] ); foreach ($ages as $person) { echo "{$person['_id']}: {$person['points']} "; } ?> The above example will output something similar to: Joe: 26 Sally: 22 Example #2 MongoCollection.aggregateCursor(3) example with different initial batch size Finding all of the distinct values for a key. <?php $m = new MongoClient; $db = $m->test; $people = $db->people; $people->drop(); /* Insert some sample data */ $people->insert(array("name" => "Joe", "points" => 4)); $people->insert(array("name" => "Molly", "points" => 43)); $people->insert(array("name" => "Sally", "points" => 22)); $people->insert(array("name" => "Joe", "points" => 22)); $people->insert(array("name" => "Molly", "points" => 87)); /* Run the command cursor */ $ages = $people->aggregateCursor( [ [ '$group' => [ '_id' => '$name', 'points' => [ '$sum' => '$points' ] ] ], [ '$sort' => [ 'points' => -1 ] ], ], [ "cursor" => [ "batchSize" => 4 ] ] ); foreach ($ages as $person) { echo "{$person['_id']}: {$person['points']} "; } ?> The above example will output something similar to: Joe: 26 Sally: 22 SEE ALSO
MongoDB::command, MongoCommandCursor, MongoCommandCursor::batchSize, MongoCollection::aggregate, The MongoDB aggregation framework. PHP Documentation Group MONGOCOLLECTION.AGGREGATECURSOR(3)
All times are GMT -4. The time now is 07:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy