Categories
CMS Development Wordpress

Plugin – Combine Meta Box Input Fields into single saveble record

Im a complete novice when it comes to coding. I have managed to build a theme with some custom post types. Within the custom post type i have used a generator tool to create a custom meta box. It almost does everything i need except… …………………………… In the code below you will see a field […]

Categories
Development

MS SQL version of TO_DATE query

I have a query to see a table details select APPLICATION_NAME, SOURCE, IDENTITY_NAME, IDENTITY_DISPLAY_NAME, NATIVE_IDENTITY, ACCOUNT_DISPLAY_NAME, OPERATION, STATUS, CREATED, (TO_DATE(‘1970-01-01′,’YYYY-MM-DD’) + created / 86400000) AS CREATED_DATE It looks like this query is for MySQL. However, our database is hosted in Microsoft SQL. Hence I am getting below error when running the query ‘TO_DATE’ is not […]

Categories
Development

How do I properly parse substrings so that they can be effective for my newbie calculator?

Please ELI5 if possible, since i’ve only been coding for a few days and this is my first program! Below is a portion of my script that is supposed to interpret a single line of input that somebody enters (like “5+5” or something). I have other operations that I want to add later that are […]

Categories
CMS Development Drupal

Sharing permission in controller and block

I have a custom block on and entity page that displays buttons that when clicked send an AJAX request to a custom controller. A button in the custom block is displayed if a certain condition is met (user cannot perform an action on own content) If by mistake the button appears (when it should not), […]

Categories
Development iOS

On iOS, CoreAudio’s AudioQueue callback is never called (not a duplicate)

My setup Xcode 11.2 iOS 13 I’m trying to play a sine tone on my iPhone with AudioQueue API using a background thread, but found that my AudioQueue callback never called. I’ve taken advice from these questions to no avail: Audioqueue callback not being called CoreAudio AudioQueue callback function never called, no errors reported Simple […]

Categories
Development

Program Doesn’t Finish Whole Script

I am starting a program in which you have to pick a mode, operation, and then it will calculate it for you. It is still a work in progress. However, I am running into a problem where it works if you input “A” or “B”, and it also works when you input the “sign” or […]

Categories
Development

how to write the value() method?

I’m writing an ArithmeticOperation class and the value() method needs to combine the left operand, operation, and right operand. Could anyone write it in commons? ArithmeticOperation: The ArithmeticOperation represents an arithmetic operation between two values. The ArithmeticOperation type should contain the following enum type to represent the possible operations for the language (you are free […]

Categories
Development

Linked tables with slicer

I have 1 table that has these data ID Code Value Group 1 KJ13 571 Finance,HR 2 KJ82 415 Operation,Finance 3 TF72 454 HR,Operation,Finance 4 KJ58 362 Operation 5 ND77 607 HR,Finance 6 KJ83 350 Operation,HR 7 TF96 531 Finance 8 YT39 840 HR,Finance 9 SS34 976 Finance,HR 10 ND26 155 Operation,Finance I am filtering […]

Categories
Development

PDO Invalid parameter num

I have created this function to insert data into database and it does it, but it throws a warning saying : Invalid parameter number: number of bound variables does not match number of tokens code: $first = (rand(1, 100)); $second = (rand(1, 100)); $last = $first + $second; $stmt = $connection->prepare(” INSERT INTO equations (first_number, […]

Categories
Database Development MySQL SQL

How can I insert a barcode into mysql database?

I’m trying to insert a barcode image into database using AxBarCodeWiz, it’s a tool that generates barcode and is displayed as a picturebox and I can edit the barcode using its built in property. My problem is when I try to insert the barcode into database I get this error saying “Column count doesn’t match […]