trying to create trigger, create never executes

I am trying to define a trigger in MySQL and the language to create it never executes. I have already defined and inserted data into the database with no problem.

This is the start of my trigger. As you can see I put some giberish in there to illustrate that this never executes because it produces no errors at all.

delimiter //  snthd\- \qeiksdhsnthd-/rcg dsth o;eui;r/cf/r \qk-xnthr/cf   CREATE TRIGGER deleted_insert ON item AFTER UPDATE,INSERT AS  BEGIN         ...etc body of trigger  END;  delimiter ; 

Executing this does absolutely nothing and does not return any output from the sql server. If I do not change the delimiter, then it does execute but produces a syntax error on the ‘ON’ keyword.

How can simply declare this trigger?

Error occurs when trying to override AndroidManifest file in unity?

So I Created A manifest file in Assets/Plugin/Android/. The File contains:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="">  <activity android:name="com.unity3d.player.UnityPlayerActivity" android:windowSoftInputMode="stateHidden"></activity> </manifest>  

Error Occurs when building:

NullReferenceException: Object reference not set to an instance of an object

UnityEditor.AndroidManifest.SetApplicationFlag (System.String name, Boolean value)

UnityEditor.AndroidManifest.SetDebuggable (Boolean debuggable)

I followed the docs from here, about Overriding the Android Manifest.

The apk builds fine when the manifest is removed.

Complete Error: NullReferenceException: Object reference not set to an instance of an object UnityEditor.AndroidManifest.SetApplicationFlag (System.String name, Boolean value) UnityEditor.AndroidManifest.SetDebuggable (Boolean debuggable) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.PatchManifest (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String manifest) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

UNITY 2018.3.4f1

Error “Notice: Trying to get property ‘fetch_row’ of non-object in C:\xampp\htdocs\conexion\conexion3.php on line 28”

buenas noches. Estudio diseño y me dejaron de tarea programar en php una base de datos, el problema es que me sale “Notice: Trying to get property ‘fetch_row’ of non-object in C:\xampp\htdocs\conexion\conexion3.php on line 28” cuando lo abro en el navegador. Se refiere a la línea que tiene “$ filas=$ resultado->fetch_row;” No sé cómo solucionarlo pues según el formato así tiene que ser, yo sólo cambié la información de la base de datos. El código completo es éste:

connect_error) { die(“Error en la conexión”. $ myconexion->connect_error); } else{ echo ” Se ha establecido la conexión con éxito…”. $ myconexion->host_info .”

” ; } ?>

Ejemplo 2 de conexión

NombreNúmero de empleado

query(“select nombre,nempleado from auto_veloz”); $ filas=$ resultado->fetch_row; if ($ filas >=1){ while ($ fila = $ resultado->fetch_assoc()) { ?>

<tr bgcolor="#FFFFFF" onmouseover="'#FFFFFF';" onmouseout="'#FFFFFF';">    <td> <?php echo $  fila['nombre']; ?> </td>    <td> <?php echo $  fila['nempleado']; ?></td>     </tr> 

close(); ?>

No “Use system certificates” when trying to connect to WiFi

I am having a problem connecting to my university Eduroam WiFi.

If I understand correctly, in CA certificate I am supposed to select CA certificate if it is there or Use system certificate and input my university domain.

But, I only have: Select certificate or Don't validate. And if I click Select certificate, nothing is changing, there is not a Domain field appearing like I think it should (and where I could the domain name) (see screenshot).

enter image description here

Can you help?

Trying to implement a singleton class to contain a DocumentClient instance, that can be overridden for testing

The DocumentClient is an object that accesses CosmosDb, but Microsoft recommends its kept as a Singleton class. I’m relying on System.Lazy to ensure thread safety.

In addition, I want to be able to overwrite my DocumentClient when I need to test. Is this correct?

public sealed class DocumentClientSingleton {     public static IDocumentClient GetInstance()     {         return _lazy.Value;     }      /// <summary>     /// Only use this for testing!     /// </summary>     /// <returns></returns>     public static IDocumentClient SetInstanceForTesting(IDocumentClient client)     {         _lazy = new Lazy<IDocumentClient>(() => client );         return _lazy.Value;     }      private static  Lazy<IDocumentClient> _lazy =          new Lazy<IDocumentClient>(InstantiateDocument);      private static IDocumentClient InstantiateDocument()     {         return new DocumentClient(             new Uri(ConfigurationManager.AppSettings["endpoint"]),             ConfigurationManager.AppSettings["authKey"],             new ConnectionPolicy             {                 ConnectionMode = ConnectionMode.Direct,                 ConnectionProtocol = Protocol.Tcp             }         );     } } 

I am trying to move a file from sdcard to another device folder and it fails with error that file is not there, but it is!

I am trying to move a file from /sdcard to another device file and I am getting the following:

mv: bad 'xxxxxxxx.0': No such file or directory

while ls -l shows the file in directory.

The device is physical one, not an emulator and it is rooted. Why is this happening? file confirms this is an ASCII file. I know cases that this was happening when someone was trying to move 32bit binary to 64bit device, but this is just an ASCII text file.

Trying to display or render values from links field within paragraph field base on its current language

I’m currently using Drupal 8 Paragraph and I’m trying to figure out how I can display or output the url and title of a link field from within a Paragraph base on the current language via preprocess. Here is a snippet of the code I’m working on.

function iom_preprocess_paragraph(&$  variables) {      $  language = \Drupal::languageManager()->getCurrentLanguage();     $  variables['lang_code'] = $  language->getId(); } 

function _preprocess_primary_links_paragraph($  paragraph, &$  variables) {     // Current page node     $  currentNode = \Drupal::request()->attributes->get('node');     $  activeLanguage = \Drupal::languageManager()->getCurrentLanguage()->getId();     $  links = [];      foreach ($  paragraph->field_link as $  link) {         $  entity = _loadEntityByUri($  link->uri);          $  title = $  link->title;          // If there is an entity and the title is not set of the link         // use the entity title instead         if ($  entity && !$  title) {             $  title = $  entity->title->value;         }          $  links[] = _generatePrimaryLinkElement($  currentNode, $  entity, $  title, $  link->getUrl()->toString());     }      $  variables['label'] = $  paragraph->field_label->value;     $  variables['links'] = $  links; } 

<div class="sidebar-menu-group primary-link">     <span class="label">{{ label }}</span>     <ul class="menu -sidebar">           {% for link in links %}              <li {{link.attributes}}>                 <a {{}}>{{link.title}}</a>             </li>         {% endfor %}     </ul> </div> 

How to correctly use VirtualFreeEx when trying to inject a dll

I’m trying to make a DLL injector but there are parameter errors in the functions.

I’ve tried changing the variable to char*, I’ve confirmed that the process ID is correct, I can’t compile it in x64 or x86 because I’m using code blocks but the program I’m trying it on was created with code blocks, the DLL works with other injectors, I’ve confirmed that the dll path is correct.

void EchoLastError() {     std::string ToExecute;     std::stringstream Command;     Command << "echo " << GetLastError();     ToExecute = Command.str();     system(ToExecute.c_str());     Command.str(std::string()); } BOOL CreateRemoteThreadInject(DWORD IDofproc, const char * dll) {     HANDLE Process;     LPVOID Memory, LoadLibrary;     if (!IDofproc)     {         return false;     }     Process = OpenProcess(PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION, FALSE, IDofproc);      EchoLastError();      system("pause");     LoadLibrary = (LPVOID)GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA");      Memory = (LPVOID)VirtualAllocEx(Process, NULL, strlen(dll) + 1, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);      WriteProcessMemory(Process, (LPVOID)Memory, dll, strlen(dll) + 1, NULL);      CreateRemoteThread(Process, NULL, NULL, (LPTHREAD_START_ROUTINE)LoadLibrary, (LPVOID)Memory, NULL, NULL);     EchoLastError();     CloseHandle(Process);      VirtualFreeEx(Process, (LPVOID)Memory, 0, MEM_RELEASE);     EchoLastError();     MessageBox(NULL, "Injected", "", MB_OK);      return true; }    //other bool Injectstuff(DWORD processId, char* dllpath) {     std::stringstream kds;     kds << "echo Process ID: " << processId;     std::string dl = kds.str();     system(dl.c_str());     EchoLastError();     HANDLE hTargetProcess = OpenProcess(PROCESS_ALL_ACCESS, false, processId);     EchoLastError();     system("pause");     if (hTargetProcess)     {         LPVOID LoadLibAddress = (LPVOID)GetProcAddress(GetModuleHandleA("kernel32.dll"), "LoadLibraryA");         EchoLastError();     system("pause");         LPVOID LoadPath = VirtualAllocEx(hTargetProcess, 0, strlen(dllpath), MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);         EchoLastError();     system("pause");         HANDLE RemoteThread = CreateRemoteThread(hTargetProcess, 0, 0, (LPTHREAD_START_ROUTINE)LoadLibAddress, LoadPath, 0, 0);         EchoLastError();     system("pause");         WaitForSingleObject(RemoteThread, INFINITE);         EchoLastError();     system("pause");         VirtualFreeEx(hTargetProcess, LoadPath, strlen(dllpath), MEM_RELEASE);         EchoLastError();     system("pause");         CloseHandle(RemoteThread);         CloseHandle(hTargetProcess);         return true;     }     return false; } 

The first function prints 87 on VirtualFreeEx, the second prints 6 on VirtualFreeEx. How do I fix these? I’m using GNU GCC compiler.