The Friends:Group_Add function is how your users will request to join groups or confirm group invitations. It also works for a Group owner to send out an invitation, or for confirming requests to join the group. It runs on similar principles as the Friends:Add function, but with a few more controls. You simply create links on other templates that link to a template with this code on it. Based on the group name or ID and the member ID in the URI, the Friends:Group_Add function will output a success/failure message, and it will take care of the rest. Additionally, notifications can be sent out to members for all actions.
To remove yourself from a Group, or to remove another user from your group, your link to this template would look exactly the same, except you would append a delete segment at the end of the URL.
{exp:friends:group_add} content {/exp:friends:group_add}
Parameters
The following parameters are available for use:
- delete
- dynamic
- friends_group_id
- group_name
- member_id
- notification_accept
- notification_approve
- notification_invite
- notification_leave
- notification_remove
- notification_request
- subject_accept
- subject_approve
- subject_invite
- subject_leave
- subject_remove
- subject_request
delete=
delete="yes"
By specifying the delete in the last segment of the URI, Friends:Group_Add will automatically know to delete the member from the group. However, the delete parameter is available to keep this function operating in delete mode in the event you have the dynamic parameter set to off. Default is no.
dynamic=
dynamic="off"
This parameter disables the Friends:Group_Form function from looking into the URI for member or group ID's.
friends_group_id=
friends_group_id="{segment_3}"
Friends:Group_Add will automatically know which group to account for based on the group segment in the URI. However, this parameter is available to pull the ID dynamically from the URI in the event you have the dynamic parameter set to off.
group_name=
group_name="{segment_3}"
Friends:Group_Add will automatically know which group to account for based on the group segment in the URI. However, this parameter is available to pull the group short_name dynamically from the URI in the event you have the dynamic parameter set to off.
member_id=
member_id="{segment_4}"
Friends:Group_Add will automatically know which member to account for based on the member segment in the URI. However, this parameter is available to pull the member ID dynamically from the URI in the event you have the dynamic parameter set to off.
notification_accept=
notification_accept="friends_notifications/group_accept"
This parameter controls which EE template to use to format a notification to the group owner when someone accepts his invitation to join a group.
notification_approve=
notification_approve="friends_notifications/group_approve"
This parameter controls which EE template to use to format a notification to the user who requested membership to a group when their request has been confirmed.
notification_invite=
notification_invite="friends_notifications/group_invite"
This parameter controls which EE template to use to format a notification to the user who is being invited to join a group.
notification_leave=
notification_leave="friends_notifications/group_leave"
This parameter controls which EE template to use to format a notification to the group owner when a user leaves their group.
notification_remove=
notification_remove="friends_notifications/group_remove"
This parameter controls which EE template to use to format a notification to the user when they are removed from a group by the group owner.
notification_request=
notification_request="friends_notifications/group_request"
This parameter controls which EE template to use to format a notification to the group owner when a user requests to join his group.
subject_accept=
subject_accept="{friends_user_screen_name} has accepted your invitation to join your group!"
This parameter outputs the subject line for the notification email to the group owner when someone accepts his invitation to join a group.
subject_approve=
subject_approve="You are now a member of the {friends_group_title} group!"
This parameter outputs the subject line for the notification email to the user who requested membership to a group when their request has been confirmed.
subject_invite=
subject_invite="{friends_owner_screen_name} would like you to join the {friends_group_title} group"
This parameter outputs the subject line for the notification email to the user who is being invited to join a group.
subject_leave=
subject_leave="{friends_user_screen_name} has left the {friends_group_title} group"
This parameter outputs the subject line for the notification email to the group owner when a user leaves their group.
subject_remove=
subject_remove="You have been removed from the {friends_group_title} group"
This parameter outputs the subject line for the notification email to the user when they are removed from a group by the group owner.
subject_request=
subject_request="{friends_user_screen_name} has requested to join the {friends_group_title} group"
This parameter outputs the subject line for the notification email to the group owner when a user requests to join his group.
Variables
The following variables are available for use:
friends_message
{friends_message}
This variable will output the success message or any errors upon loading the Friends:Group_Add template.
friends_owner_member_field
{friends_owner_member_field}
You can parse the screen_name, username, and member_id member fields for both the user and the group owner for use in the Notification Templates as well as the subject_ parameters. To parse these member fields for the group owner, prepend the variables with friends_owner_. To construct this variable, simply use friends_owner_ + member_field_name.
friends_owner_user_field
{friends_user_member_field}
You can parse the screen_name, username, and member_id member fields for both the user and the group owner for use in the Notification Templates as well as the subject_ parameters. To parse these member fields for the user, prepend the variables with friends_user_. To construct this variable, simply use friends_user_ + member_field_name.
Conditionals
The following conditionals are available for use:
failure
{if failure}Error!{/if}
This conditional shows its contents if the request action DOES NOT execute successfully.
success
{if success}Successful!{/if}
This conditional shows its contents if the request action executes successfully.
Examples
The following code should be a complete example for using this function, as well as using notifications:
{exp:friends:group_add notification_accept="friends_notifications/group_accept" notification_approve="friends_notifications/group_approve" notification_invite="friends_notifications/group_invite" notification_request="friends_notifications/group_request" subject_accept="{friends_user_screen_name} has accepted your invitation to join your group!" subject_approve="You are now a member of the {friends_group_title} group!" subject_invite="{friends_owner_screen_name} would like you to join the {friends_group_title} group" subject_request="{friends_user_screen_name} has requested to join the {friends_group_title} group" } {if success}
Successful!
 {/if} {if failure}
Error!
 {/if}
{friends_message}
 {/exp:friends:group_add}
Requesting to join a group
If this template was located at friends/group_add, you would link to this page from another template like this:
- http://www.yoursite.com/friends/group_add/group/GROUP_ID_OR_NAME/
For the group owner to approve the request, you would link to this page from another template or notificaton email like this:
- http://www.yoursite.com/friends/group_add/group/GROUP_ID_OR_NAME/member/MEMBER_ID_OR_USERNAME/
For a user to leave a group, you would link to this page like this:
- http://www.yoursite.com/friends/group_add/group/GROUP_ID_OR_NAME/delete/
Sending invitations as a Group Owner
If this template was located at friends/group_add, you would link to this page from another template like this:
- http://www.yoursite.com/friends/group_add/group/GROUP_ID_OR_NAME/member/MEMBER_ID_OR_USERNAME/
For the user who receives the invitation, to accept the request, you would link to this page from another template or notificaton email like this:
- http://www.yoursite.com/friends/group_add/group/GROUP_ID_OR_NAME/
For a group owner to remove a user from the group, you would link to this page like this:
- http://www.yoursite.com/friends/group_add/group/GROUP_ID_OR_NAME/member/MEMBER_ID_OR_USERNAME/delete/
Notification Templates
For your notification templates, you use regular EE templates, and just add code like this:
User requests to join a group ("friends_notifications/group_request")
Hello {friends_owner_screen_name}! {friends_user_screen_name} would like to join the {friends_group_title} group. Click the link below to accept this request to join your group: {path='friends/group_add'}/group/{friends_group_id}/member/{friends_user_member_id}/
User accepts invitation to join group ("friends_notifications/group_accept")
Hello {friends_owner_screen_name}! {friends_user_screen_name} has accepted your request and joined the {friends_group_title} group! Click the link below to view their profile: {path='friends/profile'}/{friends_user_member_id}/
User leaves group ("friends_notifications/group_leave")
Hello {friends_owner_screen_name}! {friends_user_screen_name} has just left the {friends_group_title} group. Click the link below to view their profile: {path='friends/profile'}/{friends_user_member_id}/
Group Owner invites user to join his group ("friends_notifications/group_invite")
Hello {friends_user_screen_name}! You have been invited to join the {friends_group_title} group. Click the link below to accept this request and join the group: {path='friends/group_add'}/group/{friends_group_id}/
Group Owner approves of user request to join group ("friends_notifications/group_approve")
Hello {friends_user_screen_name}! You request to join the {friends_group_title} group has been accepted! Click the link below to view the group: {path='friends/group_info'}/{friends_group_id}/
Group Owner removes user from group ("friends_notifications/group_remove")
Hello {friends_user_screen_name}! You have been removed from the {friends_group_title} group. Click the link below to view the group: {path='friends/group_info'}/{friends_group_id}/


{% extends "core.html" %} {% load i18n %} {% block title %}Ahmia - Create hs description{% endblock %} {% block body %}
JSON is genereted in your client side: no information is sent over network. Safe for you!
Copy paste the JSON text to your hidden service so it is available under http://3g2upl4pq6kufc4m.onion/description.json and our robot will find and use this as an official information about your site. Please make sure that your JSON description is valid JSON. Use exactly the file name description.json and be sure that it is accessible under your hidden service.


The Zend\Cloud\Infrastructure is a class to manage different cloud computing infrastructures using a common API.
In order to provide a common class API for different cloud vendors we implemented a small set of basic operations for the management of instances (servers) in a cloud infrastructure. These basic operations are:
Note
Deployment of an instance
For the deploy operations we used the SSH2 PHP extension (ext/ssh2) to connect on an instance and execute shell script. The SSH2 extensions can be used to connect only to Gnu/Linux instances (servers).
This class is managed by a factory to initialize specific cloud computing adapters.
To use this class you have to initialize the factory with a specific adapters. You can check the supported apadters in the specific Chapter Zend\Cloud\Infrastructure\Adapter. We are planning to support other cloud computing vendors very soon.
For instance, to work with the AMAZON EC2 adapter you have to initialize the class with following parameters:
1 2 3 4 5 6 7 8 9 10 11 12 13 | use Zend\Cloud\Infrastructure\Adapter\Ec2 as Ec2Adapter;
use Zend\Cloud\Infrastructure\Factory as FactoryInfrastructure;
$key = 'key';
$secret = 'secret';
$region = 'region';
$infrastructure = FactoryInfrastructure::getAdapter(array(
FactoryInfrastructure::INFRASTRUCTURE_ADAPTER_KEY => 'Zend\Cloud\Infrastructure\Adapter\Ec2',
Ec2Adapter::AWS_ACCESS_KEY => $key,
Ec2Adapter::AWS_SECRET_KEY => $secret,
Ec2Adapter::AWS_REGION => $region,
));
|
Zend\Cloud\Infrastructure has only a couple of methods that are vendor specific. These methods are the creation of a new instance and the monitoring of an instance. For instance, below is reported an example that shows how to create a new instance using the Amazon EC2 adapter:
1 2 3 4 5 6 7 8 9 | $param= array (
'imageId' => 'your-image-id',
'instanceType' => 'your-instance-type',
);
$instance= $infrastructure->createInstance('name of the instance', $param);
printf ("Name of the instance: %s\n", $instance->getName());
printf ("ID of the instance : %s\n", $instance->getId());
|
The interface of the createInstance is always the same, only the content of $param is specific to the adapter. for more information about the adapter supported by Zend\Cloud\Infrastructure go to the specific page of the manual.
The Zend\Cloud\Infrastructure uses the classes Zend\Cloud\Infrastructure\Instance and Zend\Cloud\Infrastructure\Image to manage the instances (servers) and the images of an instance.
createInstance(string $name, array $options)
Create an instance. The return value is an instance of Zend\Cloud\Infrastructure\Instance. In case of error the return is false.
$name is the name of the instance to create
$options is the array contains the specific parameter for the cloud adapter. For more info read the Chapter of Zend\Cloud\Infrastructure\Adapter.
deployInstance(string $id, array $param, string|array $cmd)
Run arbitrary shell scripts on an instance. Return a string or an array contains all the standard output (errors included) of the scripts executed in the instance.
Note
Requirement
In order to use the deployInstance method you have to install the SSH2 extension (ext/ssh2) of PHP. The SSH2 extensions can be used to connect only to Gnu/Linux instances (servers). For more info about the SSH2 extension, click here.
$id is the ID of the instance
$param is an array contains the username and the password to be used for the SSH connection. The username and the password must be specified using the following constants key of the Zend\Cloud\Infrastructure\Instance: SSH_USERNAME, SSH_PASSWORD.
$cmd is a string (or an array) contains the commands line to be executed in the instance.
destroyInstance(string $id)
Destroy an instance. Return true in case of success, false in case of error.
$id is the ID of the instance
getAdapter()
Return the adapter object.
getAdapterResult()
Return the original adapter result.
getLastHttpRequest()
Return the last HTTP Request of the adapter.
getLastHttpResponse()
Return the last HTTP Response of the adapter.
imagesInstance()
Return all the available images to use for an instance. The return value is an instance of Zend\Cloud\Infrastructure\ImageList
listInstances()
Return the list of of the available instances. The return is an instance of Zend\Cloud\Infrastructure\InstanceList.
monitorInstance(string $id,string $metric,array $options=null)
Monitor an instance. Return the system information about the metric of an instance. The return value is an array that contains samples of values, timestamp and the elaboration of the average value.
$id is the ID of the instance;
$metric is the metric to be monitored. The allowed metrics are reported as constants of the Zend\Cloud\Infrastructure\Instance class: MONITOR_CPU, MONITOR_RAM, MONITOR_NETWORK_IN, MONITOR_NETWORK_OUT, MONITOR_DISK, MONITOR_DISK_WRITE, MONITOR_DISK_READ.
$options is the optional array contains the adapter specific options.
publicDnsInstance(string $id)
Return the public DNS name or the IP address of the instance. The return value is a string. In case of error the return is false.
$id is the ID of the instance
rebootInstance(string $id)
Reboot an instance. Return true in case of success, false in case of error.
$id is the ID of the instance
startInstance(string $id)
Start an instance. Return true in case of success, false in case of error.
$id is the ID of the instance
statusInstance(string $id)
Get the status of an instance. The return value is a string. The available status are reported in the following constants of the class Zend\Cloud\Infrastructure\Instance: STATUS_STOPPED, STATUS_RUNNING, STATUS_SHUTTING_DOWN, STATUS_REBOOTING, STATUS_TERMINATED, STATUS_PENDING, STATUS_REBUILD. In case of error the return is false.
$id is the ID of the instance
stopInstance(string $id)
Stop an instance. Return true in case of success, false in case of error.
$id is the ID of the instance
waitStatusInstance(string $id, string $status,integer $timeout=30)
Wait the status change of an instance for a maximum time of n seconds. Return true if the status changes as expected, false if not.
$id is the ID of the instance;
$status is the status to wait for;
$timeout is the maximum time, in seconds, to wait for the status change. This parametr is optional and the default value is 30 seconds.
zonesInstance()
Return all the available zones for an instance. The return value is an array.
Get the datetime system information of an instance
Get the result of the date command line.
1 2 3 4 5 6 7 8 9 | $param = array (
Instance::SSH_USERNAME => 'username',
Instance::SSH_PASSWORD => 'password',
);
$cmd = 'date';
$output = $infrastructure->deployInstance('instance-id', $param, $cmd);
echo $output;
|
Get the datetime system information of an instance
Get the result of the date command line.
1 2 3 4 5 6 7 8 9 | $param = array (
Instance::SSH_USERNAME => 'username',
Instance::SSH_PASSWORD => 'password',
);
$cmd = 'date';
$output = $infrastructure->deployInstance('instance-id', $param, $cmd);
echo $output;
|
Reboot an instance and wait for the running status
Reboot an instance and wait 60 seconds for the running status.
1 2 3 4 5 6 7 8 9 10 11 12 | use Zend\Cloud\Infrastructure\Instance;
if (!$infrastructure->rebootInstance('instance-id')) {
die ('Error in the execution of the reboot command');
}
echo 'Reboot command executed successfully';
if ($rackspace->waitStatusInstance('instance-id', Instance::STATUS_RUNNING, 60)) {
echo 'The instance is ready';
} else {
echo 'The instance is not ready yet';
}
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.


A running route calculator for Germany. In order to calculate a route just click in the map for the starting point, enter the distance (< 40km) and press Calculate. http://sourceforge.net/projects/running-routes/


@{{User}}
Log out
Combine your taste with your friend!
@
Submit
{{Message}}
@{{friend_username}}
Yes, Make the Commonlist!


Add Event
Title:
Description:
Start:
End:
Venue:
Add Event
Edit Event
Title:
Description:
Start:
End:
Venue:
Save
Delete


IntegralUIFilter Service
- {{i}},
- {{i}},
- {{i}},
- {{i}},
- {{i}},
- {{i}},
This example presents how to use IntegralUIFilter service to filter custom arrays. It allows you to create different kind of conditions: single or multiple, with custom operation in each condition. Further more, there is an option to create custom formulas by which conditions will be applied to the filter.
Here is a list of available operations:
- '>' greater than specified value
- '>=' greater or equal to specified value
- '<' smaller than specified value
- '<=' smaller or equal to specified value
- '=' equal to specified value
- '!=' or '<>' not equal than specified value
- '->' begins with specified value
- '<-' ends with specified value
- '><' or '[]' contains the specified value
Formula can accept up to 26 different conditions, combined using &, |, !, ( and ) or any other bracket characters.
For more information check out the source code of this sample.


Hi, I'm Hameet
Aspiring Developer
Interested in art, design, traveling, film, music,
philosophy, coding and conversations
Have a look around


{% extends "global/Page.html" %} {% load otree static %} {% block title %} Round 1 {% endblock %} {% block content %}
In this round, each team decides how many tokens to contribute to the public POOL. Contribution could be any integer from 0 to {{ Constants.endowment }}. Please enter the number of tokens you would like your team to contribute to the public POOL. Before proposing the contribution, you can chat with your team members through the chatbox below.
At the beginning of this decision-making experiment you will be matched with two other players, randomly selected from the people in this room, to form a team of three. You will remain in this team of three players for the duration of the entire decision-making experiment. The identity of the other players of your team will not be revealed. Your team will play a game with three other teams in the experiment. Each team will receive {{ Constants.endowment }} tokens at the beginning of this experiment. The experiment has two independent rounds. In the first round, each team decides how much of the {{ Constants.endowment }} tokens to keep, and how much to contribute to a public POOL that is shared by all the four teams: Your team can contribute any number between 0 and {{ Constants.endowment }} and only whole numbers will be accepted. In the second round, your team will be asked to indicate conditional contribution levels for each of the 21 possible average contribution levels {0, 1, 2, …, 20} of the other three teams.
Payoffs:Your earning will equal your team’s earning; everyone in your team will have the same earning. Your team's earning from the game is the amount your team did not contribute to the POOL plus the return from the POOL. Each team’s return from the POOL is calculated as follows: The total contribution from all four teams to the POOL is multiplied by a factor of 2, which is the total earning for the four teams. The total earning is then split equally among all 4 teams, regardless of their contribution to the POOL.
In the end, the computer program will randomly select three teams. The total contribution to the POOL is the sum of these three teams' first round contribution plus the fourth team's second round contribution from the binding condition. The binding condition is determined by the other three teams’ actual average contribution in the first round.
For the selected three teams, the first round’s outcome determines their final payoffs. Each team’s final payoff is the return from the POOL plus the amount this team didn't contribute in the first round. For the selected fourth team, the second round’s outcome determines the final payoff. This team’s final payoff is the earnings from the POOL plus the amount it didn't contribute in the second round.
Decision rule within a team:Within a team, each team member will propose a contribution level each round. A random draw will then determine which team member's proposed contribution level to be the team's contribution level.
Example:
Assume in the first round your team decides to contribute 0 tokens and the other three teams contribute 8, 10, 12 respectively. And in the
second round, your team decide to contribute 20
tokens if the other teams contribute 10 on average. Imagine that the computer program randomly selects your team's second-round decision (i.e., your team is the
fourth team) and other three teams' first round decisions to constitute the total contribution to the POOL. In the first round, the other three
teams' average contribution is (8+10+12)/3=10, and in the second round your team decides to contribute 20 when the average is 10. The total contribution to
the POOL is thus 20+10*3 = 50. The total contribution is then multiplied by a factor of 2, and the resulting amount is the total earning from the POOL,
which is evenly split among all 4 teams. Thus your team gets 50*2/4=25 from the POOL. Your team's final payoff equals your team's earning from the POOL, 25, plus the amount
your team did not contribute in the second round, 0, resulting in 25. Since each team member's payoff is the same as the team's payoff, your final payoff is also 25.
The other three teams' final payoffs equal their earnings from the POOL, 25, plus what
they did not contribute in the first round. Therefore, for the team who contributes 8 to the POOL in the first round, the final payoff is the earning
from the POOL, 25, plus the amount it did not contribute, 12, which results in a final payoff of 37. For the team who contributes 10 to the POOL
in the first round, the final payoff is the earning from the POOL, 25, plus the amount it did not contribute, 10, which results in a final payoff
of 35. For the team who contributes 12 to the POOL
in the first round, the final payoff is the earning from the POOL, 25, plus the amount it did not contribute, 8, which results in a final payoff of 33.


CRUMB A film review by Christopher Null Copyright 1995 Christopher Null
When the HOOP DREAMS scandal was going on earlier this year, there was a second documentary commonly mentioned as having been likewise robbed alongside the basketball film. That movie was CRUMB, the equally ambitious and deserving portrait of the infamous artist/cartoonist Robert Crumb.
Crumb was the creator of such works as the drawing, "Keep on Truckin'," which became an icon adorning every truck mud flap in the 1960's, the cover art for Big Brother and the Holding Company's album "Cheap Thrills," and the character Fritz the Cat, which had the dubious distinction of starring in the first X-rated feature animated film.
One of the first things we find out about the artist: he basically hates all of these works, for one reason or another. In fact, there's not a lot that Crumb likes at all about his career to date. He basically shuns the underground comic movement that he started. He refuses almost all commercial propositions. He despises modern society and, seemingly, humanity as well.
This new film by Terry Zwigoff is an eye-popping shocker, delving unflinchingly into questions of Crumb's hatred of females, questions of racism, his traumatic childhood, and his extremely twisted family. Crumb makes no apologies. Like most documentaries, there's no cohesive plotline here, only slow and inexorable revelations about the artist's life, filmed over a six-year period. Despite the meandering story line, the film is quite engrossing, not so much due to the extensive parade of Crumb's work that is displayed, but more to the cast of characters inhabiting this strange, strange world.
Crumb's family are the most enthralling of these characters, especially his two brothers. Their stories of growing up as outcasts, their abusive father, their amphetamine-abusing mother, and the birth of their respective "careers" in art are nothing short of fantastic. The film starts to drag during some of the comic book readings and during interviews with other characters who aren't quite as enthralling, but overall the film is extremely worthwhile.
The ultimate impression that stays with me is not just that Robert Crumb is an extremely odd fellow, but more that he's a real person that I doubt anyone will ever truly understand.
RATING: ****
+-------------------------------+ |* Unquestionably awful | |** Sub-par on many levels | |*** Average, hits and misses | |**** Good, memorable film | |***** Perfection | +-------------------------------+
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


| Modifier and Type | Constant Field | Value |
|---|---|---|
protected static final int |
MODE_ANY |
2 |
protected static final int |
MODE_BEAN |
1 |
protected static final int |
MODE_TREE |
3 |
protected static final int |
STATE_CLOSED |
0 |
protected static final int |
STATE_HAS_VALUE |
3 |
protected static final int |
STATE_MAY_HAVE_VALUE |
2 |
protected static final int |
STATE_NEED_RESYNC |
1 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
protected static final int |
MAX_CACHED_READERS |
500 |
public static final int |
SER_BOOLEAN |
21 |
public static final int |
SER_BOOLEAN_ARRAY |
7 |
public static final int |
SER_BYTE_ARRAY |
12 |
public static final int |
SER_CALENDAR |
25 |
public static final int |
SER_CHAR |
22 |
public static final int |
SER_CHAR_ARRAY |
11 |
public static final int |
SER_CHARACTER_SEQUENCE |
10 |
public static final int |
SER_CLASS |
26 |
public static final int |
SER_COLLECTION |
3 |
public static final int |
SER_DATE |
24 |
public static final int |
SER_ENUM |
23 |
public static final int |
SER_FILE |
27 |
public static final int |
SER_INT_ARRAY |
5 |
public static final int |
SER_ITERABLE |
31 |
public static final int |
SER_LIST |
2 |
public static final int |
SER_LONG_ARRAY |
6 |
public static final int |
SER_MAP |
1 |
public static final int |
SER_NUMBER_BIG_DECIMAL |
20 |
public static final int |
SER_NUMBER_BIG_INTEGER |
19 |
public static final int |
SER_NUMBER_BYTE |
13 |
public static final int |
SER_NUMBER_DOUBLE |
18 |
public static final int |
SER_NUMBER_FLOAT |
17 |
public static final int |
SER_NUMBER_INTEGER |
15 |
public static final int |
SER_NUMBER_LONG |
16 |
public static final int |
SER_NUMBER_SHORT |
14 |
public static final int |
SER_OBJECT_ARRAY |
4 |
public static final int |
SER_STRING |
9 |
public static final int |
SER_TREE_NODE |
8 |
public static final int |
SER_UNKNOWN |
0 |
public static final int |
SER_URI |
30 |
public static final int |
SER_URL |
29 |
public static final int |
SER_UUID |
28 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
public static final int |
SER_BOOLEAN |
21 |
public static final int |
SER_BOOLEAN_ARRAY |
7 |
public static final int |
SER_BYTE_ARRAY |
12 |
public static final int |
SER_CALENDAR |
25 |
public static final int |
SER_CHAR |
22 |
public static final int |
SER_CHAR_ARRAY |
11 |
public static final int |
SER_CHARACTER_SEQUENCE |
10 |
public static final int |
SER_CLASS |
26 |
public static final int |
SER_COLLECTION |
3 |
public static final int |
SER_DATE |
24 |
public static final int |
SER_ENUM |
23 |
public static final int |
SER_FILE |
27 |
public static final int |
SER_INT_ARRAY |
5 |
public static final int |
SER_ITERABLE |
31 |
public static final int |
SER_LIST |
2 |
public static final int |
SER_LONG_ARRAY |
6 |
public static final int |
SER_MAP |
1 |
public static final int |
SER_NUMBER_BIG_DECIMAL |
20 |
public static final int |
SER_NUMBER_BIG_INTEGER |
19 |
public static final int |
SER_NUMBER_BYTE |
13 |
public static final int |
SER_NUMBER_DOUBLE |
18 |
public static final int |
SER_NUMBER_FLOAT |
17 |
public static final int |
SER_NUMBER_INTEGER |
15 |
public static final int |
SER_NUMBER_LONG |
16 |
public static final int |
SER_NUMBER_SHORT |
14 |
public static final int |
SER_OBJECT_ARRAY |
4 |
public static final int |
SER_STRING |
9 |
public static final int |
SER_TREE_NODE |
8 |
public static final int |
SER_UNKNOWN |
0 |
public static final int |
SER_URI |
30 |
public static final int |
SER_URL |
29 |
public static final int |
SER_UUID |
28 |
| Modifier and Type | Constant Field | Value |
|---|---|---|
protected static final int |
T_ARRAY |
1 |
protected static final int |
T_INTERFACE |
2 |
protected static final int |
T_PRIMITIVE |
3 |
protected static final int |
T_RECURSIVE |
4 |
protected static final int |
T_REGULAR |
5 |
Copyright © 2020 FasterXML. All rights reserved.


SCHED_SETAFFINITY
Section: Linux Programmer's Manual (2)
Updated: 2014-08-19
Index
Return to Main Contents
NAME
sched_setaffinity, sched_getaffinity - set and get a thread's CPU affinity mask
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <sched.h>
int sched_setaffinity(pid_t pid, size_t cpusetsize,
const cpu_set_t *mask);
int sched_getaffinity(pid_t pid, size_t cpusetsize,
cpu_set_t *mask);
DESCRIPTION
A thread's CPU affinity mask determines the set of CPUs on which
it is eligible to run.
On a multiprocessor system, setting the CPU affinity mask
can be used to obtain performance benefits.
For example,
by dedicating one CPU to a particular thread
(i.e., setting the affinity mask of that thread to specify a single CPU,
and setting the affinity mask of all other threads to exclude that CPU),
it is possible to ensure maximum execution speed for that thread.
Restricting a thread to run on a single CPU also avoids
the performance cost caused by the cache invalidation that occurs
when a thread ceases to execute on one CPU and then
recommences execution on a different CPU.
A CPU affinity mask is represented by the
cpu_set_t
structure, a "CPU set", pointed to by
mask.
A set of macros for manipulating CPU sets is described in
CPU_SET(3).
sched_setaffinity()
sets the CPU affinity mask of the thread whose ID is
pid
to the value specified by
mask.
If
pid
is zero, then the calling thread is used.
The argument
cpusetsize
is the length (in bytes) of the data pointed to by
mask.
Normally this argument would be specified as
sizeof(cpu_set_t).
If the thread specified by
pid
is not currently running on one of the CPUs specified in
mask,
then that thread is migrated to one of the CPUs specified in
mask.
sched_getaffinity()
writes the affinity mask of the thread whose ID is
pid
into the
cpu_set_t
structure pointed to by
mask.
The
cpusetsize
argument specifies the size (in bytes) of
mask.
If
pid
is zero, then the mask of the calling thread is returned.
RETURN VALUE
On success,
sched_setaffinity()
and
sched_getaffinity()
return 0.
On error, -1 is returned, and
errno
is set appropriately.
ERRORS
- EFAULT
-
A supplied memory address was invalid.
- EINVAL
-
The affinity bit mask
mask
contains no processors that are currently physically on the system
and permitted to the thread according to any restrictions that
may be imposed by the "cpuset" mechanism described in
cpuset(7).
- EINVAL
-
(sched_getaffinity()
and, in kernels before 2.6.9,
sched_setaffinity())
cpusetsize
is smaller than the size of the affinity mask used by the kernel.
- EPERM
-
(sched_setaffinity())
The calling thread does not have appropriate privileges.
The caller needs an effective user ID equal to the real user ID
or effective user ID of the thread identified by
pid,
or it must possess the
CAP_SYS_NICE
capability.
- ESRCH
-
The thread whose ID is pid could not be found.
VERSIONS
The CPU affinity system calls were introduced in Linux kernel 2.5.8.
The system call wrappers were introduced in glibc 2.3.
Initially, the glibc interfaces included a
cpusetsize
argument, typed as
unsigned int.
In glibc 2.3.3, the
cpusetsize
argument was removed, but was then restored in glibc 2.3.4, with type
size_t.
CONFORMING TO
These system calls are Linux-specific.
NOTES
After a call to
sched_setaffinity(),
the set of CPUs on which the thread will actually run is
the intersection of the set specified in the
mask
argument and the set of CPUs actually present on the system.
The system may further restrict the set of CPUs on which the thread
runs if the "cpuset" mechanism described in
cpuset(7)
is being used.
These restrictions on the actual set of CPUs on which the thread
will run are silently imposed by the kernel.
sched(7)
has a description of the Linux scheduling scheme.
The affinity mask is a per-thread attribute that can be
adjusted independently for each of the threads in a thread group.
The value returned from a call to
gettid(2)
can be passed in the argument
pid.
Specifying
pid
as 0 will set the attribute for the calling thread,
and passing the value returned from a call to
getpid(2)
will set the attribute for the main thread of the thread group.
(If you are using the POSIX threads API, then use
pthread_setaffinity_np(3)
instead of
sched_setaffinity().)
A child created via
fork(2)
inherits its parent's CPU affinity mask.
The affinity mask is preserved across an
execve(2).
C library/kernel ABI differences
This manual page describes the glibc interface for the CPU affinity calls.
The actual system call interface is slightly different, with the
mask
being typed as
unsigned long *,
reflecting the fact that the underlying implementation of CPU
sets is a simple bit mask.
On success, the raw
sched_getaffinity()
system call returns the size (in bytes) of the
cpumask_t
data type that is used internally by the kernel to
represent the CPU set bit mask.
SEE ALSO
taskset(1),
clone(2),
getcpu(2),
getpriority(2),
gettid(2),
nice(2),
sched_get_priority_max(2),
sched_get_priority_min(2),
sched_getscheduler(2),
sched_setscheduler(2),
setpriority(2),
CPU_SET(3),
pthread_setaffinity_np(3),
sched_getcpu(3),
capabilities(7),
cpuset(7),
sched(7)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- ERRORS
-
- VERSIONS
-
- CONFORMING TO
-
- NOTES
-
- C library/kernel ABI differences
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 02:54:47 GMT, September 18, 2014


Catch The Insect
Play Game
Which insect would you like to smush ?
Catrpillr
Roach
Spider
Scorpion
Wasp
Time : 00:00
Score: 0
Aren't you annoyed yet?

X


| Employee ID | Name | Job | Hire Date | Salary | Commission | Comments | Actions |
|---|---|---|---|---|---|---|---|
| 1 | Johnson | Admin | 1990-12-17 | 18000 | 0% | Hard working |
Edit
Save
Cancel
|
| 2 | Harding | Manager | 1998-02-02 | 52000 | 3% | Assertive |
Edit
Save
Cancel
|
| 3 | Taft | Sales | 1996-01-02 | 25000 | 5% | Some comments |
Edit
Save
Cancel
|
| 4 | Hoover | Sales | 1990-04-02 | 27000 | 0% | More comments |
Edit
Save
Cancel
|
| 5 | Lincoln | Tech | 1994-06-23 | 22500 | 14% | Some more comments |
Edit
Save
Cancel
|


GONE, GONE, FOREVER GONE A film review by Steve Rhodes Copyright 1997 Steve Rhodes
RATING (0 TO ****): * 1/2
GONE, GONE, FOREVER GONE (GATE, GATE, PARAGATE) is Vietnam's entry for consideration as the best foreign film at the 1996 Academy Awards. The film looks at the changes in Vietnam since 1945. It is a gentle film that uses the viewpoint of a Buddhist nun to tell the story.
The film opens in Hue in 1985, but it jumps back to 1945 and then works its way forward. The emperor is to be no more so his concubines are set free. One played by Phuong Dung becomes a Buddhist nun and eventually the head nun. Her two brothers, played by Le Tuan Anh and Hoang Phuc, will lead much less peaceful lives. One will go to fight for the North and the other for the South. The nun's goal in the story is to reunite her family.
Director Ho Quang Minh (WHITE PAGE and KARMA) sets a tone so subtle and lifeless that it borders on catatonia. A few times soldiers will come through and fire a few rounds, and sometimes there are gunshots in the background; but most scenes are dark and inanimate. Typical ones have two characters in shadows talking lowly. Rarely is the script by Nguy Ngu and Ho Quang Minh involving.
The film's pace is excruciatingly slow. That this is partially intentional is hinted at by the lead. "We nuns try to spend a whole life learning what meditation is," she tells soldiers who are not having much luck trying to question her. "We cannot answer your questions quickly."
There is one beautiful sequence in the picture of a Buddhist meal. It is choreographed so that every movement is synchronized and in perfect harmony. The flaw of the scene is that the editor lets it go on way too long so that charm eventually gives way to tedium.
Perhaps the single biggest problem with the film is the actors, who do little more than read their lines. None of them show any emotion, and their characters become stick figures. There is a tinge of emotion in the end, but little in the rest of the picture.
GONE, GONE, FOREVER GONE starts with a good premise, but the director is unable to craft a compelling motion picture from it.
GONE, GONE, FOREVER GONE runs 1:30. It is in Vietnamese with English subtitles. It is not rated, but would probably be PG for the little bit of shooting. Kids would probably have to be nine or ten to be interested, but the show is acceptable for kids of any age. I found the film too boring to be able to recommend it. I give it * 1/2. If you want to see a stronger entry for this year's best foreign film, check out my review of KOLYA which won the Golden Globe.
**** = A must see film. *** = Excellent show. Look for it. ** = Average movie. Kind of enjoyable. * = Poor show. Don't waste your money. 0 = Totally and painfully unbearable picture.
REVIEW WRITTEN ON: January 25, 1997
Opinions expressed are mine and not meant to reflect my employer's.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Soldier Tenis:
What brings you here?
"I need information on how to defeat Dius, the Messenger of Destruction."


Kevin Bacon is another one of our most unsung actors in the movies whose talent is often unspoken of. This man has appeared in "J.F.K," "Sleepers," "A Few Good Men," and "Apollo 13." He has also had his footing in the sci-fi/horror genre in films like the original "Friday the 13th," "Flatliners" and "Tremors." It is nice to see him back in this genre with the fitfully exciting and alternately disturbing "Stir of Echoes."
Bacon plays Tom Witzky, a telephone service repairman with a faithful, pregnant wife (Kathryn Erbe) and a cute son (Zachary David Cope) who talks to himself in his bedroom and in the bathtub. But who is he talking to? Some unseen force or spirit, or is it the kids' imagination? Of course, a creepiness sets in when we see that he is talking to us, and we are the spirits.
One night, Tom goes to a neighborhood keg party and is hypnotized by his sister-in-law (the quixotically alive Illeana Douglas). Afterwards, he begins to get headaches, drinks orange juice by the gallon, and feels the need to dig his backyard searching for something. Tom also sees visions of the ghost of a missing girl in the neighborhood, and every time he gets close to her, he feels cold and sees frost in the air (shades of "The Sixth Sense"). Everyone thinks he is going crazy except for his son who tells him not to be afraid.
"Stir of Echoes" is great, intriguing entertainment for the first hour. Tom's visions begin to get more bizarre and violent, and he also foresees the future.  Unfortunately, as written by Richard Matheson (based on his 1958 novel) and David Koepp, the movie gradually stirs itself into a narrow corner. Too many plot threads are left hanging and we are left with a movie about the spectre of a dead girl who affects an entire neighborhood.
Once the film examines the mystery of this girl, "Stir of Echoes" never truly builds on the psychological layers of Tom's character to see how this might affect him. There is nothing here to suggest the implicit ironies of "The Sixth Sense" or Roman Polanski's masterpiece, "The Tenant." And the anticlimactic, mediocre ending lends little in the film's favor.
There is still a lot to savor in "Stir of Echoes." Kevin Bacon projects anxiety and fear in a nicely balanced performance - his cocky, tense behavior is well-modulated but he could have done so much more with an in-depth script. Illeana Douglas is a sprightly wonder and brings the film alive with her charisma. A real shame that she is so underused considering she unleashes the can of visions to Tom in the first place. I also enjoyed Kevin Dunn's brief role as Tom's sexually lustful friend.
There are some surprises but not enough to overcome the fact that "Stir of Echoes" is nothing more than an extended "Twilight Zone" episode. It had more potential than that, if only writers Matheson and director David Koepp stirred all the elements to come up with a fruitier mix.
For more reviews, check out JERRY AT THE MOVIES at http://buffs.moviething.com/buffs/faust/
E-mail me with any questions, concerns or complaints at<EMAIL_ADDRESS>or at<EMAIL_ADDRESS>The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


C1 Course Code: 675 C1 Course Name: Software Engineering Equals c1 == test1: true Equals c1 == test2: false Comparing c1 to test1 courseCode: 0 Comparing c1 to test4 courseCode: -1 Comparing c1 to test2 courseCode: 1 Comparing c1 to test1 courseName: 0 Comparing c1 to test5 courseName: -1 Comparing c1 to test6 courseName: 1 Comparing c1 to c2 prefix: 0 Comparing c1 to test prefix: -1 Comparing c1 to test2 prefix: 1 C1 Hash Code:<PHONE_NUMBER> C2 Hash Code: -1846213237 ------ Course Information: CISC 675 Software Engineering Skills Required - Java, Javascript, Python ------ Course Information: CISC 642 Intro to Computer Vision Skills Required - CSS, Perl, HTML C1 Prefix: CISC C1 Skills: Java, Javascript, Python C2 Skills: CSS, Perl, HTML


This is the central point for managing all your favorite FTP sites. To open the favorite manager -
Tools -> Manage
Favorites...
from the menu bar
Doing any of the above actions will open a new dialog titled
Manage Favorites
.
This dialog lists all your favorite FTP sites in alphabetical order. From this dialog, you can add, edit and/or delete FTP sites.
Add
Clicking this button opens the
Add Favorite FTP Site
dialog. Follow the instructions given in the section named Adding a Favorite to add an FTP site to your
favorites list.
Edit
Clicking this button opens the
Update Favorite FTP Site
dialog. Follow the instructions given in the section named Editing a Favorite to update the connection
information of an FTP site to your favorites list.
This button will only be available if you have selected (or highlighted) one and only one FTP site in your favorites list.
Delete
Click on this button to delete one or more FTP sites from
your favorites list. To learn more, follow the instructions given in
the section titled Deleting Favorites.
Please note that this button will only be available if you have selected (or highlighted) at least one FTP site in your favorites list.
Connect
Click on this button to connect to the selected (or
highlighted) FTP site in the favorites list. To learn more, follow the
instructions given in the section titled Connecting
to a Favorite FTP Site.
Please note that this button will only be available if you have selected (or highlighted) one and only one FTP site in your favorites list.
Close
Click on this button to close the
Manage Favorites
dialog.
Help
Clicking this button displays this help topic.


The first part of this week is Molding and Casting, I had learned this last year from Learn to Make. It is always nice to make my own chocolate again.
So I decided I would like a cool dragon head chocolate this time. I searched up online, the one I found is too detailed, so I modified it and made it simpler using Fusion360.
Then I send it to Mr. Gerber to make the mold (negative).
Finally, I poured in both white and black chacolate to finish it, it's delicious :)
Then, here comes the hard part. We have to make a skateboard of our own.
I chose to make a normal curved skateboard. The gluing part was so hard, we glue seven pieces of wood together (horizontal x 5, vertical x 2), by using Titebond III glue where it got all over the place xD.
Then, we put it in the bag and vacuum it. I sealed the opening neatly and carefully, so it stayed vacuum pretty nicely. I got a nice curve on my board.
After taking out the curved board, I had to reglue some part of the edge again because it still wasn't nicely pressed together.
Finally, after all the wood works, I get to design it. I chose to spray paint the whole back of the board into a galaxy style (black background with different colors randomly assigned)
I left the front empty, sicne I want to keep the wood texture and I don't wanna step on the design all the time when I'm using the skateboard.
Back to index