Rooting my Samsung Galaxy Core Prime with SupersU will trip my Knox?

I want to revive my old Samsung Galaxy Core Prime, but since it has only 8 Gb of Rom, I would like to get rid of all those Samsung unused apps that suck my internal memory. I am about to root it using SuperSU but I don’t know if it is going to trip my Knox counter. I don’t care about voiding warranty, what I am worried about is the fact that some apps that I plan to install won’t be able to work, eg. my home banking app (not sure about that) or Samsung Pay (for sure). My questions: will rooting with SuperSU trip my Knox counter? Is there another rooting app/method that won’t? I am not interested in flashing another ROM for now, only rooting to uninstall protected apps and possibly to move apps to SD card.

ASP .NET CORE 2.0 web application on IIS showing sqlite error 14 “unable to open database file”

So I had run into a problem when I attempted to host a web application. Everything works fine in visual studio and when I use IIS express for debugging, but when I publish it and upload it to my server to be hosted this error pops up (title). I am of course using sqlite3 as a database, the file is located outside the project itself and the data source path is correct, I’ve tried to publish it both when the file is inside the project (inside wwwroot, with data source being just /dbname.db) and outside but in both instances sqlite error 14 comes up.

Note that the solution to this problem might be as simple as adjusting some permissions if lets say that is the cause of the problem as I am not really that experienced in using IIS yet.

Erro ao modificar valor de uma Unique Key no ASP .NET Core

Quando eu tento fazer o Update dos dados do Aluno o seguinte erro acontece: “Duplicate entry ‘teste@gmail.com’ for key ‘AlternateKey_EmailConta'”

O campo EmailConta é uma Unique Key.

Isso acontece com todos os campos Unique Key do banco então obviamente é algo que eu não estou sabendo fazer direito.

Se alguém puder me ajudar fico muito agradecido 😀

inserir a descrição da imagem aqui inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

Segmentation fault (core dumped) when trying to call assembly functions from C

after running this program i got a bug ‘Segmentation fault (core dumped)’ im using Ubuntu 14.04 can someone tell me what kind of error this is and how to solve it? here is the code:

#include<stdlib.h> #include<stdio.h>  typedef struct {   char hex[17];   char dezimal[21]; }Stu;  extern Stu* _structfunc(int n); int main(int argc, char *argv[]) {         Stu* a = _structfunc(123456);         printf("%s,%s",a->hex,a->dezimal);         free (a);         return 0; }   
LEN_HEX equ 16 LEN_DEZ equ 10 LEN_STRUCT equ LEN_HEX + 1 + LEN_DEZ + 1 SECTION .data base10 dq 10 base16 dq 16 SECTION .text global _structfunc extern malloc extern free _structfunc:         push rbp         mov rbp,rsp         push rbx ;save the previous value in rdi          push rdi ;s.o.         mov rdi,LEN_STRUCT         call malloc ;adress in rax         mov rbx,rax         mov rax,[rsp]         mov rcx,LEN_HEX hex:         mov rdx,0         div qword [base16]         cmp rdx,10         jae hex_charactor         add rdx,0x30         jmp hex_end hex_charactor:         add rdx,0x37 hex_end:         mov [rbx+rcx-1],dl         loop hex         mov byte [rbx+LEN_HEX],0         mov rax,[rsp]         mov rcx, LEN_DEZ dez:         mov rdx,0         div qword [base10]         add rdx,0x30 dez_end:         mov [rbx+LEN_HEX+1+rcx-1],dl         loop dez         mov byte [rbx+LEN_STRUCT-1],0         add rsp,8         pop rbx         pop rbp         ret     

RNFirebase core module was not found natively on ios

estoy desarrollando una app para ios. Despues de hacer toda la instalacion de firebase, PushNotifications y todas las configuraciones en xcode, al darle Run desde Xcode la aplicacion funciona bien, me pide permiso para habilitar las notificaciones y no hay ningun problema, pero si le doy “react-native run-ios” desde el visual studio me tira el siguiente error “RNFirebase core module was not found natively on ios”, me esta volviendo loco, gracias =).

Paso de valores Aplicacion web Asp.net Core

Tengo una aplicación web con un pequeño formulario que debe completar el usuario. una de las partes es el nombre de la Empresa. tengo dos clases creadas, unas con los datos del formulario y otro con datos de las entidades. la idea es que seleccione de una pagina razor la Empresa y este dato vuelque en el formulario de solicitud. Una vez seleccionada la empresa tengo el siguiente botón que debe enviar ese dato al formulario.

   <a asp-route-id="@item.Id" asp-page="Create" class="btn btn-success btn-sm">Selecionar</a> 

el Id lo manda correctamente, pero a la hora de recibirlo no me fuciona. Este es el codigo de Create.cshtml.cs que es el que debe recibir ese dato.

private readonly ApplicationDbContext _db;   public CreateModel(ApplicationDbContext db) {     _db = db;  }   [BindProperty] public Peticion Peticion { get; set; }  [BindProperty] public Entidades Entidades { get; set; } [TempData] public String Mensaje { get; set; } public async Task OnGet(int Id) {      if (ModelState.IsValid) {          Entidades = await _db.Entidades.FindAsync(Id);      var PeticionDesdeDB = await _db.Entidades.FindAsync(Entidades.Id);  }  } 

el id viene correcto pero no lo incluye en mi Input. Creo que es por que el html no lo recibe bien. Mi html es

 <input type="hidden" asp-for="Entidades.Id" />     <form method="post">         <input type="hidden" asp-for="Entidades.Id" />         <div class="jumbotron text-center p-3 mb-2 shadow mb-5 text-success rounded rounded-pill border">Información del cliente</div>         <!--  <div asp-validation-summary="ModelOnly" class="text-danger"> </div>-->         <div class="container" style="padding:30px;">             <div class="form-group">                 <div class="row">                      <div class="col-sm-2">                         <label asp-for="Peticion.NombreEntidad"></label>                     </div>                      <div class="col-4">                          <input asp-for="Peticion.NombreEntidad" class="form-control" />                       </div> 

Entiendo que es por que el input es de la clase petición y el dato que viene es de la clase Entidades, pero no se como hacerlo o si hay alguna forma mejor de hacerlo. gracias

Ubuntu Core Proxy Settings

I am facing a similar situation as mentioned in this link Ubuntu Core Proxy Settings at Boot Time. So, i am using my office email ID and trying to run the Ubuntu Core inside a VM like virt-install. It reaches a point where I am asked to enter my email ID and after that I receive only time out. I am not using a SD card here but i mounted the .img file using guestfish command

guestfish --rw -a ubuntu-core-18-amd64.img  ><fs> list-filesystems /dev/sda1: unknown /dev/sda2: vfat /dev/sda3: ext4 ><fs> mount /dev/sda3 / ><fs> ls / lost+found system-data user-data 

Here, the /system-data/etc/environment did not exist. So, i created one. Is it right? And added my proxy settings in that file. but still I see this error message Client.Timeout and could not proceed further.

Any help on how to solve this issue? Thanks

Can’t run update.php after upgrade to Drupal Core 8.7.3

I updated Drupal Core to 8.7.3.

When I run update.php or drush up I get this error:

Error: Call to a member function getConfigDependencyName() on null in Drupal\Core\Entity\EntityDisplayBase->calculateDependencies() (line 314 of /var/www/jb-inflatables/public/core/lib/Drupal/Core/Entity/EntityDisplayBase.php).

The full log:

Error: Call to a member function getConfigDependencyName() on null in Drupal\Core\Entity\EntityDisplayBase->calculateDependencies() (regel 314 van /var/www/jb-inflatables/public/core/lib/Drupal/Core/Entity/EntityDisplayBase.php) #0 /var/www/jb-inflatables/public/core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php(103): Drupal\Core\Entity\EntityDisplayBase->calculateDependencies() #1 [internal function]: Drupal\Core\Config\Entity\ConfigEntityUpdater->Drupal\Core\Config\Entity{closure}(Object(Drupal\Core\Entity\Entity\EntityViewDisplay))

2 /var/www/jb-inflatables/public/core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php(110):

call_user_func(Object(Closure), Object(Drupal\Core\Entity\Entity\EntityViewDisplay)) #3 /var/www/jb-inflatables/public/core/modules/layout_discovery/layout_discovery.post_update.php(21): Drupal\Core\Config\Entity\ConfigEntityUpdater->update(Array, ‘entity_view_dis…’) #4 /var/www/jb-inflatables/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(298): layout_discovery_post_update_recalculate_entity_view_display_dependencies(Array)

5 /var/www/jb-inflatables/vendor/drush/drush/includes/batch.inc(251): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate(‘layout_discover…’,

Object(DrushBatchContext)) #6 /var/www/jb-inflatables/vendor/drush/drush/includes/batch.inc(196): _drush_batch_worker() #7 /var/www/jb-inflatables/vendor/drush/drush/includes/batch.inc(99): _drush_batch_command(‘219’) #8 /var/www/jb-inflatables/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(156): drush_batch_command(‘219’) #9 [internal function]: Drush\Commands\core\UpdateDBCommands->process(‘219’, Array) #10 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array) #11 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData)) #12 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/CommandProcessor.php(178): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData)) #13 /var/www/jb-inflatables/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(302): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData)) #14 /var/www/jb-inflatables/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/jb-inflatables/vendor/symfony/console/Application.php(987): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/jb-inflatables/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /var/www/jb-inflatables/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /var/www/jb-inflatables/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #19 /var/www/jb-inflatables/vendor/drush/drush/src/Runtime/Runtime.php(49): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput)) #20 /var/www/jb-inflatables/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array) #21 /var/www/jb-inflatables/vendor/drush/drush/includes/preflight.inc(18): require(‘/var/www/jb-inf…’) #22 phar:///usr/local/bin/drush/bin/drush.php(141): drush_main() #23 /usr/local/bin/drush(10): require(‘phar:///usr/loc…’) #24 {main}.

ASP.Net Core Web API Basic App

I searched online for how to make a web API in ASP.Net Core 3, but only found one small tutorial. Based off that I wrote the following code but I was wondering if I missed any best practices. Are there any hidden things I should do to improve performance/security/etc.

API Side:          public async Task<List<TCGListDTO>> GetTCGList()         {             return await _databaseContext.TCGs                                          .OrderBy(tcg => tcg.Name)                                          .Select(tcg => new TCGListDTO()                                          {                                              ID = tcg.ID,                                              Name = tcg.Name                                          })                                          .ToListAsync();         }  Client Side:                  public async Task<List<TCGListDTO>> GetTCGList()         {             var response = await httpClient.GetAsync("GetTCGList");              if (response.IsSuccessStatusCode)             {                 var listData = httpClient.GetAsync("GetTCGList").Result.Content.ReadAsStringAsync().Result;                 return JsonConvert.DeserializeObject<List<TCGListDTO>>(listData);             }              return new List<TCGListDTO>             {                 new TCGListDTO()                 {                     ID = 0,                     Name = "Error getting list, please try again."                 }             };         } 

Converter código Ruby em código .Net Core

poderiam me ajudar a converter o código Ruby abaixo, em código c# ?

class WrongNumberOfPlayersError < StandardError ; end  class NoSuchStrategyError < StandardError ; end   def compare_game?(game)     return (game[0][1] + game[1][1]) =~ /rs|sp|pr|rr|ss|pp/i end  def rps_game_winner(game)   strategy=["r","p","s"]   raise WrongNumberOfPlayersError unless game.length == 2   if strategy.include?(game[0][1].downcase) && strategy.include?(game[1][1].downcase) if compare_game?(game)   game[0] else   game[1] end else    raise NoSuchStrategyError end  end  def rps_tournament_winner(game)    if game[0][1].class==String       rps_game_winner(game)    else  # 迭代    a1=rps_tournament_winner(game[0])    a2=rps_tournament_winner(game[1])    rps_tournament_winner([a1,a2]) end end  p rps_tournament_winner([[[["Armando", "P"], ["Dave", "S"]], [["Richard", "R"], ["Michael", "S"]]], [[["Allen", "S"], ["Omer", "P"]], [["David E.", "R"], ["Richard X.", "P"]]]])  p rps_game_winner([ [ "Armando", "P" ], [ "Dave", "S" ] ]  )