Flock 1.1 offers nectar for social butterflies


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements UNIX and Linux RSS News Flock 1.1 offers nectar for social butterflies
# 1  
Old 04-11-2008
Flock 1.1 offers nectar for social butterflies

Fri, 11 Apr 2008 08:00:00 GMT
When we looked at Flock 0.9 last year, the social Web browser showed a lot of potential. Now that it's over the 1.0 hump, the Flock team has made good on the application's promise. Maybe too good -- while Flock serves up a lot of content on a single page, you practically need super-powers to take it all in. Once you cut back on the sensory input a bit though, it's a pretty slick Firefox alternative for anyone with a ton of cyber friends.


Source...
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Flock preventing function to work

Hi i have a script that check pings and i use flock to so the script wont run multipul times : its not the whole script but this is the idea : ( flock -x -w 3 200 || exit 1 /usr/sbin/fping -c$count -i$interval -a $hosts > $FILE1 2>&1 ) 200>/var/lock/.myscript.exclusivelock now i... (4 Replies)
Discussion started by: batchenr
4 Replies

2. Shell Programming and Scripting

Use of flock command for whole script

I'm changing my mindset from a few big processes moving data from a few sources under an external, dependency-based scheduler to multiple processes moving data from many sources run by each client cron and possibly interfering with each other. It has the benefits of more granular code but I'm... (11 Replies)
Discussion started by: rbatte1
11 Replies

3. Shell Programming and Scripting

Help using Flock (file lock)

Hello, I have been working on using "flock"/file lock to prevent two instances of a bash script from being executed. Below is a simplified version of what I have to illustrate the flock part. It works as it is set up there below however the piece I am trying to figure out is how to get it to... (2 Replies)
Discussion started by: infrared013
2 Replies

4. UNIX for Advanced & Expert Users

Semaphore - lockfile/flock

Hi, I have a process which can run one instance at a time. Currently we have multiple scripts trying to kickoff this process. I wanted to implement the semaphore mechanism to achieve this. I was going through few examples. The below code seems to be reasonable solution. ... (5 Replies)
Discussion started by: tostay2003
5 Replies

5. Web Development

MySQL: Random offers for every airport

I need to write a MySQL query where it loops through every airport and generates 10 random offers (my offers table is 990,000+ rows) The code I have below works for 1 airport, but as soon as it gets bigger it slows RIGHT down. This is using PHP/MySQL At the moment it takes well over a... (2 Replies)
Discussion started by: worchyld
2 Replies
Login or Register to Ask a Question
Moose::Cookbook::Basics::Person_BUILDARGSAndBUILD(3pm)	User Contributed Perl Documentation Moose::Cookbook::Basics::Person_BUILDARGSAndBUILD(3pm)

NAME
Moose::Cookbook::Basics::Person_BUILDARGSAndBUILD - Using BUILDARGS and BUILD to hook into object construction VERSION
version 2.0603 SYNOPSIS
package Person; has 'ssn' => ( is => 'ro', isa => 'Str', predicate => 'has_ssn', ); has 'country_of_residence' => ( is => 'ro', isa => 'Str', default => 'usa' ); has 'first_name' => ( is => 'ro', isa => 'Str', ); has 'last_name' => ( is => 'ro', isa => 'Str', ); around BUILDARGS => sub { my $orig = shift; my $class = shift; if ( @_ == 1 && ! ref $_[0] ) { return $class->$orig(ssn => $_[0]); } else { return $class->$orig(@_); } }; sub BUILD { my $self = shift; if ( $self->country_of_residence eq 'usa' ) { die 'Cannot create a Person who lives in the USA without an ssn.' unless $self->has_ssn; } } DESCRIPTION
This recipe demonstrates the use of "BUILDARGS" and "BUILD". By defining these methods, we can hook into the object construction process without overriding "new". The "BUILDARGS" method is called before an object has been created. It is called as a class method, and receives all of the parameters passed to the "new" method. It is expected to do something with these arguments and return a hash reference. The keys of the hash must be attribute "init_arg"s. The primary purpose of "BUILDARGS" is to allow a class to accept something other than named arguments. In the case of our "Person" class, we are allowing it to be called with a single argument, a social security number: my $person = Person->new('123-45-6789'); The key part of our "BUILDARGS" is this conditional: if ( @_ == 1 && ! ref $_[0] ) { return $class->$orig(ssn => $_[0]); } By default, Moose constructors accept a list of key-value pairs, or a hash reference. We need to make sure that $_[0] is not a reference before assuming it is a social security number. We call the original "BUILDARGS" method to handle all the other cases. You should always do this in your own "BUILDARGS" methods, since Moose::Object provides its own "BUILDARGS" method that handles hash references and a list of key-value pairs. The "BUILD" method is called after the object is constructed, but before it is returned to the caller. The "BUILD" method provides an opportunity to check the object state as a whole. This is a good place to put logic that cannot be expressed as a type constraint on a single attribute. In the "Person" class, we need to check the relationship between two attributes, "ssn" and "country_of_residence". We throw an exception if the object is not logically consistent. MORE CONSIDERATIONS
This recipe is made significantly simpler because all of the attributes are read-only. If the "country_of_residence" attribute were settable, we would need to check that a Person had an "ssn" if the new country was "usa". This could be done with a "before" modifier. CONCLUSION
We have repeatedly discouraged overriding "new" in Moose classes. This recipe shows how you can use "BUILDARGS" and "BUILD" to hook into object construction without overriding "new". The "BUILDARGS" method lets us expand on Moose's built-in parameter handling for constructors. The "BUILD" method lets us implement logical constraints across the whole object after it is created. AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for details. COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc.. 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-28 Moose::Cookbook::Basics::Person_BUILDARGSAndBUILD(3pm)