I have added options in form handler and return it. But the required field does not get replace

function rolealter_form_ajax_submit($ form, &$ form_state) { if(!empty($ form_state[‘input’][‘field_skills’][‘und’])){ $ query = db_select(‘field_revision_field_skillss’, ‘n’);

        $  query->join('users', 'u', 'n.entity_id = u.uid'); //JOIN node with users          $  query->groupBy('u.uid');//GROUP BY user ID          $  query->fields('u',array('uid','name'))//SELECT the fields from node             ->condition('n.field_skillss_tid', $  form_state['input']['field_skills']['und'],'IN');         $  result = $  query->execute();         $  form['field_user_lists']['#access'] = TRUE;         $  return_html = '';             // while ($  record = $  result->fetchAssoc()) {           // $  return_html.='<option value="'.$  record['uid'].'" >' . $  record['name'] . '</option>';         // }         $  options = [];         while ($  record = $  result->fetchAssoc()) {           $  options[$  record['uid']] = $  record['name'];         }         $  form['field_employees']['und']['#options'] = $  options;         return $  form['field_employees'];   }else{      $  output = 'Enter a value';  } 

}

This is a ajax call

function rolealter_form_alter(&$ form, $ form_state, $ form_id){ if($ form_id == ‘project_node_form’) { $ form[‘submit’] = array( ‘#type’ => ‘submit’, ‘#value’ => ‘Get Employee’, ‘#weight’ => ‘4’, ‘#ajax’ => array( ‘callback’ => ‘rolealter_form_ajax_submit’, ‘wrapper’ => ‘project_node_form’, ‘method’ => ‘get’, ‘effect’ => ‘fade’, ), ); } }

Manage.py permission error

Here is my static and media files configuration:

STATIC_URL = '/static/' MEDIA_URL = '/media/' STATICFILES_DIRS = [     '/var/www/static/', ] STATIC_ROOT = "/var/www/pia.com/static/" MEDIA_ROOT = os.path.join(BASE_DIR, 'media') 

when I try to run the command python manage.py runserver I get Permission Denied: PermissionError: [Errno 13] Permission denied: '/var/www/pia.com/static/admin' Could you help me to figure out why this occurs. Thank tou for helping!

Alternate method of ajax_command_replace to replace options of drop down

I want to add something else instead of ajax_cammand_replace.So that i can change the options of existing select field. ajax_cammand_replace replaces the whole field.

function rolealter_form_ajax_submit($  form, &$  form_state) {   if (!empty($  form_state['input']['field_skills']['und'])){     $  query = db_select('field_revision_field_skillss', 'n');      $  query->join('users', 'u', 'n.entity_id = u.uid'); //JOIN node with users      $  query->groupBy('u.uid');//GROUP BY user ID     $  query->fields('u',array('uid','name'))//SELECT the fields from node             ->condition('n.field_skillss_tid', $  form_state['input']['field_skills']['und'],'IN');     $  result = $  query->execute();     $  form['field_user_lists']['#access'] = TRUE;     $  return_html = '';         while ($  record = $  result->fetchAssoc()) {       $  return_html.='<option value="'.$  record['uid'].'" >' . $  record['name'] . '</option>';     }     $  commands[] = ajax_command_replace('#edit-field-employees-und', $  return_html);     return array(       '#type' => 'ajax',       '#commands' => $  commands,     );   }   else {     $  output = 'Enter a value';   }  } 

Blast your ad to 65,000+ hungry yahoo group members for only $7!

Blast your ad to 65,000+ hungry yahoo group members for only $ 7!
Increase your traffic tomorrow!

I have manually joined several yahoo groups and will advertise your message with your website link to 65,000 + yahoo group members ,in the catagory of "marketing and advertising and home business". These are mulitiple groups to guarantee responses; not just one group!

My criteria is tough.
If there is no recent…

Blast your ad to 65,000+ hungry yahoo group members for only $ 7!

Cannot read directory on aws sftp server

I can log into my server with cyberduck and filezilla but cannot read my homedirectory. The s3bucket “mybucket” exists. In cyber duck I see “Cannot readdir on root. Please contact your web hosting service provider for assistance.” and in Filezilla “Error: Reading directory .: permission denied” even though I can connect to server.

Am I missing some permission in the policies below ?

These are my trust relationships :

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "s3.amazonaws.com" }, "Action": "sts:AssumeRole" }, { "Effect": "Allow", "Principal": { "Service": "transfer.amazonaws.com" }, "Action": "sts:AssumeRole" } ] } 

These are my permissions

{ "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetBucketLocation" ], "Resource": "arn:aws:s3:::MYBUCKET" }, { "Sid": "VisualEditor1", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:DeleteObject" ], "Resource": "arn:aws:s3:::MYBUCKET/*" }, { "Sid": "VisualEditor2", "Effect": "Allow", "Action": "transfer:*", "Resource": "*" } ] } 

Insurance Writers Needed

I am looking for writers who can write website pages and blog posts about health insurance.

You should have a good understanding of health insurance terminology and geography as the articles would be focusing on international health insurance.

Let's start with some sample articles and then we can do some bulk orders.

Please send me some examples of your work, pricing and turn around time.

Ionic 3 on Windows 10 project setup

I am learning Ionic Framework as part of the coursework of my classes on mobile development, but having several problems with it.

Currently, I am trying to use Ionic 3 on my Windows 10 computer. It installs just fine with npm. However, after telling the name I want for my project (i.e. after I run ionic start) it never finishes executing.

I waited 4 hours and the command was still running. I also don’t see any new folder inside the folder I am creating the new project. I have tried both using the Command Prompt with and without administrative privileges to no avail.

I have also setup a virtual machine with Ubuntu inside my computer, and everything works just fine there, but I don’t want to program while inside the VM.

Screenshot of the problem in imgur.com