Categories
Mastering Development

Android app not receiving serial data properly

I’m trying to write an android app in android studio to show in a textbox the serial data received from an arduino (with the help of an arduino library). Problem is that it does not output in the textView the whole String provided through the serial). package com.example.radioreceivingv20; import androidx.appcompat.app.AppCompatActivity; import android.hardware.usb.UsbDevice; import android.os.Bundle; import […]

Categories
User Help

On an VDI that allows multiple users to connect at a time, how can I configure SQL to run with a different port for each user?

I am trying to launch an application named Aura, which uses SQL as its database engine, in a VDI that allows multiple users to connect at the same time. When the program is first launch, it works fine, but when it is launched by a second user, I receive the following error: From researching I […]

Categories
Mastering Development System & Network

Centos 7: Cannot curl localhost nor internal IP : no route to host

Centos 7, lamp stack. ​ firewall is turned off, sealinux is disabled, Iptables looks fine ​ if you to localhost/api.php or internal-ip/api.php from a browser, it works fine, if you ping it’s fine, if you open vnc on the server and open the browser it’s fine. if you ssh to the server then curl any […]

Categories
User Help

Using Capslock in Hotkey combon without capslock effect in Ubuntu

Goal I want to use Shift+Capslock as a hotkey for switching keyboards without the capslock effect, but I want capslock to work normally if used alone. I am using Ubuntu Background I switch a lot between US and German keyboard because I can only type code or English text with a US keyboard, but I […]

Categories
Database Development

MySQL : Stored Procedure from Trigger giving duplicate results

I have created a stored procedure to insert data into an audit table. The procedure accepts an argument that takes table name and same value is inserted into the audit table along with PK. When i’m calling this stored procedure from AFTER DELETE trigger, from multiple tables it is inserting duplicate values. Basically, same PK […]

Categories
Mastering Development

is there a way of returning a bool value from db.Execute(sql) in C# mysql?

I am fiddling around with some mysql commands and would like to know how I can return a bool if my command was successful, here is some example code… public static bool RunSQL(string SQL) { try { // Info: db is defined in my dependency service! bool execute = false; Console.WriteLine(SQL); execute = Convert.ToBoolean(db.Execute(SQL)); db.Close(); […]

Categories
User Help

GLX failed request with Nvidia/Optimus on Fedora 32+Gnome+Wayland

I’ve been trying for at least a year to get optimus working on my Fedora laptop with optimus and a Geforce MX150 GPU using gnome shell and wayland. In earlier versions I have tried bumblebee, but have had trouble (although there was a point in time I had it working I think a long while […]

Categories
CMS Mastering Development Wordpress

Woocmmrce access country on woocommerce_cart_shipping_method_full_label filter

I’m tiring to add some labels to woocommerce shipping methods on checkout cart, it works fine, but i need to access customer selected county inside custom_shipping_labels function, is that possoble to get customer selected country add_filter( ‘woocommerce_cart_shipping_method_full_label’, ‘custom_shipping_labels’, 10000, 2 ); function custom_shipping_labels($label, $method){ $shpmethod = $label; if(strpos($shpmethod, ‘Express Shipping’) !== false){ $shpmethod = str_replace(‘Express […]

Categories
Linux Mastering Development Ubuntu

Can a windows file or virus in any way affect bios or Ubuntu?

first of all, this is my first question on this site or anywhere for that mater, so excuse any mistakes or the lack of info I might provide, I’ll try my best:). I have recently installed a program on my windows 10 from some torrent, I was stupid enough not to have checked if the […]

Categories
Linux Mastering Development Ubuntu

Can a windows file or virus in any way affect bios or Ubuntu?

first of all, this is my first question on this site or anywhere for that mater, so excuse any mistakes or the lack of info I might provide, I’ll try my best:). I have recently installed a program on my windows 10 from some torrent, I was stupid enough not to have checked if the […]