Can I add extra property to a MultiUserChat RoomInfo? - xmpp

In Smack, we can get the information of a room by RoomInfo. And now I have an extra info(like the location where a room belongs) for a room, how can I do this by smack?
for example, in current smack:
a admin can set room info(like description of a room) via
MultiUserChat.sendConfigurationForm(...);
and a member can get info(like description of a room) via
MultiUserChat.getRoomInfo(...);

Related

What type of Schema.org I have to use for bid annoucements

I want to implement Schema.org for bid announcements and I'm a bit confused since there is no available type for it.
I have the following fields associated with it:
title
date of announced
closing date and time
body (announcement content)
organization name
organization address
categories in which the announcement belongs
For call for bids, you can use Schema.org’s Demand type.
There is no property for the full text (if it’s not too complex/long, you could use the description property) or for the categories.
You can use the seeks property (with the Organization as domain) and/or the seller property (with the Demand as domain) to point to the Organization that has the demand.

Silex : Dynamic forms

Dear helpers and saviors !
I'm trying to create some dynamic forms with Silex.
My objective is to have the user create a state in a existing country. I would like him/her to select a region (like Asia, Europe, America...), then select a country to which link the newly created state.
I have some "classic" and simple forms extending AbstractType, in which the user can select the country directly. I created a choice list based on a call to a DAO (database) to find all available countries. I would like to add a region choice_list field to reduce the number of available country (and reduce the database charge as well even if it isn't my main goal).
I've seen http://symfony.com/doc/current/cookbook/form/dynamic_form_modification.html#cookbook-form-events-submitted-data, but it seem that we can't create subform for elements that are "parents" of the main class (or that i did not understood how), saying that the link is not stored in my object i would like to create. What i would like to do here is to add a field for the 2-level above (state->country->region), not direcly linked (a state have a country, and a country have a region) region.
I do not manage to imagine or code it properly, or even simply displaying.
Please note that i'll have to do it on several levels (state, city, and some other classes), and i would like to find a quite generic way to do it (understand not a ready solution for this particular example).
Any ideas ?
Please excuse my english, and thank you very much for your help !
For reference, here are my DB links between objects :
Region : ID and Name
Country : Codes, ID, Name and link to Region's ID
State : Codes, ID, Name and link to Country's ID
City : Name, ID and link to State's ID
I managed to do what i wanted.
I created supplementary forms, asking for filling each of the "parent" objects.
So in addition to my Types forms, i now have a selection a Select forms, allowing me to select Region, then Country, then State.

Trying to control course content visibility to a moodle group

I am using moodle 2.2.4.
I have students in a course from district 1 and district 2. I have a request that the student in district 2 be assigned an advisor in the course. The advisor must only see the data of the student in district 2.
This is how I am trying to accommodate the request.
I created a new role called advisor based on the student role.
I created a new group in the course called group1.
I created a new account called group2_advisor
I enrolled group2_advisor in the role of advisor into group1 in the course.
I moved the student into group1.
When I log in group2_advisor, I can see just the district 1 student (which is great), BUT, I still see district 1 data when I click on the forum or quiz activities.
I initially based the advisor role on the non-editing teacher role, but that still showed both districts even after I had completed steps 1-4. When I based the advisor role on the student role I was only able to see the district 2 data (which is what i am after).
Any insights are very much appreciated.
Look at Moodle group default feature group content visibility.

Type of Person Entries and Group Entries

In iphone, what are the type of Person entries and Group Entries?
1) ABPersonRef and ABGroupRef
2) ABPerson and ABGroup
3) ABRecordRef and ABRecordRef
4) ABRecord and ABRecord
5) None of Above
please anybody tell me which option is write one?
In the Address Book database, information is stored in records, represented by ABRecordRef objects. Each record represents a person or group.
Person records are made up of both single-value and multivalue properties. Properties that a person can have only one of, such as first name and last name, are stored as single-value properties. Other properties that a person can have more that one of, such as street address and phone number, are multivalue properties.
Users may organize their contacts into groups for a variety of reasons. For example, a user may create a group containing coworkers involved in a project, or members of a sports team they play on. Your application can use groups to allow the user to perform an action for several contacts in their address book at the same time.
Group records have only one property, kABGroupNameProperty, which is the name of the group. To get all the people in a group, use the function ABGroupCopyArrayOfAllMembers
For More Information, visit Address Book Programming Guide for iPhone

Add an ABPerson to an ABGroup

I need to create an address book group, then add 10 ABPerson records as group members.
This is what I'm doing:
Create the group with ABGroupCreate()
Use ABGroupAddMember() to add a person to the group
The person record is not getting added. I am saving the address book.
Why doesn't the person get added to the group?
Before a person record can be added to a group, it must already be in the Address Book database. If you need to add a new person record to a group and to the database at the same time, you must first add it to the address book database, save the database, and then add the person record to the group.
You need to do save of group record and save address book before the addmember call