App permissions say Voice Recorder can modify contents of SD card but VR won’t let me record to it

enter image description here

Therefore, when I try to set the recording location to somewhere on the SD card, I’d expect to be allowed. And yet:

enter image description here

I tried the bare 9016-4EF8 folder, the Android folder in it, the data folder in there, and the com.peace.SilentCamera folder, same result. Moreover, if I try to create a new folder on the card with VR, it seems to do it fine, yet the folder isn’t created. What do I do about this?

How to modify term reference in drupal 7

I have added term reference field on one content type i want to alter that term reference list. I have search in drupal.org site but not information is find. Can any one help me how to alter the termreference list.

Present terms display like this : term1,term2

but i want to add another field data also like ex: term1(count-2), term2(count-3)

Term reference:

enter image description here

How do I modify the breadcrumb?

I want to modify my bread crumb ( remove one link from bread crumb and add one link to bread drumb).

I tried,

/**  * Implements hook_system_breadcrumb_alter().  */ function modulename_system_breadcrumb_alter(\Drupal\Core\Breadcrumb\Breadcrumb &$  breadcrumb, \Drupal\Core\Routing\RouteMatchInterface $  route_match, array $  context) { // to get current path and alias    $  current_path = \Drupal::service('path.current')->getPath();   $  result = \Drupal::service('path.alias_manager')->getAliasByPath($  current_path);  // get current route name    $  route_name = \Drupal::service('current_route_match')->getRouteName(); // check route is an quickinfo content create in group    if ($  breadcrumb && $  route_name == 'entity.group_content.group_node__quickinfo.create_form') { // get bread crumb links     $  breadcrumb_links = $  breadcrumb->getLinks(); // fetch titile of the current path         $  title = \Drupal::service('title_resolver')->getTitle(\Drupal::request(), $  route_match->getRouteObject());     if (!empty($  title)) { // change third link of a breadcrumb       $  breadcrumb_links['2'] = Link::createFromRoute(t('RZ-schnellinfo'), '<none>');     } //    set links again    $  breadcrumb->setLinks($  breadcrumb_links);   } } 

SetLinks() ==> work when only bread crumb links doesn’t exist, i.e.. we can create new links by using addLinks(). Since we need to remove a link we can use this function .

Then I followed https://www.drupal.org/node/2026025 but I am getting below error.

exception ‘Symfony\Component\DependencyInjection\Exception\LogicException’ with message ‘Service [error] ‘xxxxx.breadcrumb_xxxx_create’ for consumer ‘breadcrumb’ does not implement Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface.’ in

Best practice to run VS code with permissions to read, delete, create and modify files in /var/www/html?

So I’ve been told not to run VS code as sudo, or any application for that matter because the way Ubuntu’s model system works is you should have to elevate permissions.

The best piece of advice I’ve been given is

sudo chmod -R 777 /var/www/html/ 

But apparently, even this isn’t a good way, so how exactly are we supposed to do it? I haven’t met a question yet that actually explains. I don’t want to go and learn the whole permission system as I am using Ubuntu for one day and don’t see a need to spend over an hour learning it.

AWS RDS Cannot modify database instance due to IAM DB Authentication

I have a MySQL 8.0.13 instance running on AWS RDS. AWS documentation says that MySQL 8.0.* does not support IAM DB Authentication. This seems to be true, however my DB somehow has IAM DB authentication enabled.

Image showing IAM db authentication setting

From the web console, there is no option to enable/disable IAM authentication (I assume because AWS recognized this instance is MySQL 8.0.13 thus it does not provide me with that option).

When I try to modify the DB instance from the web console I get this error:

IAM Database Authentication is enabled in the DB Instance but it is not supported for the new configuration from the request. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: b6c909f7-b8db-4a5d-987f-9d715c2e5a6e)

So, IAM DB Authentication is enabled (though it shouldn’t be possible on MySQL 8.0.13) and I am trying to turn off Delete Protection, but because IAM DB Authentication is enabled it won’t let me change anything in this configuration.

So then I tried from AWS CLI running in an EC2 instance…

aws rds modify-db-instance --db-instance-identifier mydbinstancename --apply-immediately --no-enable-iam-database-authentication 

And get the following error:

An error occurred (InvalidParameterCombination) when calling the ModifyDBInstance operation: IAM Database Authentication is enabled in the DB Instance but it is not supported for the new configuration from the request.

I am trying to delete this DB instance so what I thought I would need to do is:

  1. Disable delete protection
  2. Delete DB instance

However, what it seems I need to to is:

  1. Disable IAM DB Authentication (Somehow… This is preventing me from disabling delete protection)
  2. Disable delete protection

  3. Delete DB instance

*Keep in mind I have tried all of this from both the root AWS account and an IAM user account.

como solucionar Cannot modify header information – headers already sent

tengo este código y me muestra dos errores al tratar de subir un archivos .csv en un formulario. me sale el error Undefined offset y Cannot modify header information – headers already sent.

introducir la descripción de la imagen aquí

<?php include ("conexion.php");  ?>  <div align="center">   <p>&nbsp;</p>   <p>&nbsp;</p>   <p>&nbsp;</p>   <p>&nbsp;</p>   <p><img src="images/loading.gif" width="109" height="114" ></p> </div> <?php $  mes=$  _POST['mes']; $  year=$  _POST['year']; $  fecha=$  mes." ".$  year; if (is_uploaded_file($  _FILES['archivo']['tmp_name']))     {       copy($  _FILES['archivo']['tmp_name'],$  _FILES['archivo']['name']);  $  row = 0; $  fp =fopen ($  _FILES['archivo']['name'],"r"); set_time_limit(0);  while ($  data =fgetcsv ($  fp, 1000, ",")) { $  num = count ($  data); print "<br>"; $  row++; $  insertar="INSERT INTO cxc (cliente, nombre, moneda, saldoinicial, cargos, creditos, saldofinal, fecha) VALUES ('$  data[0]','$  data[1]','$  data[2]','$  data[3]','$  data[4]','$  data[5]','$  data[6]','$  fecha')";   mysql_query($  insertar) or die (mysql_error());  }  fclose ($  fp);  unlink($  _FILES['archivo']['name']); header("refresh:3; url=inicio.php");     }     else     {          header("refresh:3; url=inicio.php");     }  ?> 

Modify casing of marked letters

Trying to learn coding in my 30s.

Could anybody review my code and give me some feedback if possible? It works, but I am sure there are better ways to solve this problem.

The problem:

A text is given. Write a program that modifies the casing of letters to uppercase at all places in the text surrounded by and tags. Tags cannot be nested.

Here is what I’ve come up with:

namespace Task6Casing {     class Program     {         static void Main(string[] args)         {             Console.Write("Text: ");             string text = Console.ReadLine();              char[] textNew = new char[text.Length];              int i = 0, j = 0, k = 0;              while (i < text.Length)             {                 if (text.IndexOf("<upcase>", k) < 0)            // check if there is any <upcase> tag                 {                                               // if no, copy everyting                     while (i < text.Length)                     {                         textNew[j++] = text[i++];                     }                 }                 else                                                   {                     while (i < text.IndexOf("<upcase>", k))     // if there is an <upcase> tag, copy letters until the tag                     {                         textNew[j++] = text[i++];                     }                      i += 8;                                     // move index i to the position right next to the <upcase> tag                     k = i;                 }                  if (text.IndexOf("</upcase>", k) < 0)           // check if there is any </upcase> tag                 {                                               // if no, copy everyting in CAPITAL letters                     while (i < text.Length)                     {                         textNew[j++] = Char.ToUpper(text[i++]);                     }                 }                 else                 {                     while (i < text.IndexOf("</upcase>", k))    // if there is an </upcase> tag, copy letters in CAP letters until the tag                     {                         textNew[j++] = Char.ToUpper(text[i++]);                     }                      i += 9;                                     // move index i to the position right next to the </upcase> tag                 }             }              foreach(char c in textNew)             {                 Console.Write(c);             }             Console.WriteLine();          }     } } 

Unable to modify file permissions.xml, get error Read-only file system

I have a rooted Galaxy S5 SM-G900V, lineage_klte, ARMv7 Processor rev 1 (v71), Kernel: 3.4.113-lineageos #1 SMP, Oreo 8.1 that a friend asked me to modify.

I need to modify the platform.xml file to allow the system to write data to the external sd card. I need the ability to modify this file. The current permissions are: rw-r–r– 1 root root, however I am unable to save any modifications.

I am unable to modify the file permissions and would like to know how to do so. Note, I am looking how to change the file permissions and not how to or what syntax to use in the xml file, or if it will allow me to have the system recognize the external sd card for saving data. I am perplexed on why I am unable to modify this file.

> adb devices  <-- verify I have the device > adb shell    <-- enter shell > su           <-- super user # ls -l drwxr-xr-x  17 root   root      4096 2019-03-20 10:26     system # cd system #ls -l drwxr-xr-x 20 root root     4096 2019-03-20 10:25 etc # cd etc  # ls -l  > drwxr-xr-x  2 root root     560 2013-12-31 21:23 permissions  # cd permissions  # ls -l  -rw-r--r-- 1 root root  9116 2008-12-31 18:00 platform.xml  # chmod 755 platform.xml  >> chmod: chmod 'platform.xml' to 100755: Read-only file system 

So, how do I change the file attributes for platform.xml allowing it to be modified? I thought that there was a hidden immutable attribute on the file but there is not(at least that I can determine).

Related question, is there any other website to post this question? Any help is most appreciated.