Categories
CMS Development Wordpress

Creating a simple onclick button inside a custom plugin

I’m trying to create a simple custom plugin that has a button inside of it, that when clicked it will display any sort of text. Ive created the admin menu side of the plugin: `<?php /* Plugin Name: Test plugin Description: A test plugin to demonstrate wordpress functionality Author: Test Version: 0.1 Author URI: */ […]

Categories
Development

Azure ARM Template Skip Nested Condition

So I’m really new to ARM templates and for my first template I’m trying to create one that asks some questions and ultimately creates a new subnet and an NSG if required and then a VM and all it’s components. The template I’ve pasted below works perfectly if I select ‘Yes’ for both the ‘Create […]

Categories
Development Linux

how to figure out the lag between logging into a mate-session and guake coming on?

There is considerable time delay between when I enter into a mate-session and guake starts. I am not sure whom to blame, lightdm (desktop-manager), mate-desktop or something else ? While there is something like – $ systemd-analyze plot > boot.svg && xdg-open boot.svg there doesn’t seem to be any tool to do the same when […]

Categories
Development Linux Ubuntu

Latest MicroK8s version on Ubuntu PowerPC 64-bit Little-endian (ppc64el)?

When installing MicroK8s on an Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-64-generic ppc64le) machine, with sudo snap install microk8s –classic –channel=1.16/stable version 1.11 is installed instead of the latest stable 1.16 which I get on an Intel platform, and other channels don’t seem to be available: $ snap info microk8s name: microk8s summary: Kubernetes for workstations and […]

Categories
Development

Implications of updating Amazon RDS SSL/TLS certificates by March 5, 2020 in Codeignier application & AWS Lambda functions

Recently I got a message/notification from Amazon Update your Amazon RDS SSL/TLS certificates before March 5, 2020 To avoid interruption of your applications using RDS and Aurora databases, update the Certificate Authority (CA) certificates for these databases before March 5, 2020. We strongly recommend making your updates before February 5, 2020, to leave time for […]

Categories
Development

How to use: Insert Into (Select(foreign Key from another Table)) in PDO

enter code hereMY Source CodeI have tried to put data in to a table with a foreign key. And it worked in mysql: INSERT INTO comment (name,email,content, postcomment) VALUES ( ‘Hans’,’test@live.de’, ‘testing’,(SELECT post_id from post2 WHERE post_id=27) ); but how do I get it working in a PHP-PDO Statement with variables? $sql = “INSERT INTO […]

Categories
Development

I am trying to hide data on the basis of certain condition

I am trying to hide the data for a single column if the column contain value that is in exceptionList then it should escape and move to next but somehow i am not able to hide that and throws error if(x in exceptionList): ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), […]

Categories
API Development

Create a Dynamic Checkbox Validation in Angular With Data from API

So I have a function that displays a list from an API: displayEventTicketDetails() { this.Service .getEventTicketDetails().subscribe((data: any) => { this.eventTicketDetails = data.map(ticket => ticket.ticket_name); console.log(this.eventTicketDetails); }); } This is the result from the function above: [“Regular”, “VIP”, “Table”, “Testing”, “Cabana”] Here is how the form array is declared: ngOnInit() { this.composeMessage = this.fb.group({ ticket: new […]

Categories
Development Linux

Linux Debian: What are the safest repositories to have in source.list?

I came from CentOS to linux Debian. I am running Debian 10. I am not sure but to my knowledge I have downloaded and installed the Stable version. I downloaded from here: https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/ I was reading this link https://wiki.debian.org/SourcesList#sources.list_format and there is a paragraph that says: Distribution The ‘distribution’ can be either the release code […]

Categories
Development

Specify a `DataSource` factory instead of Tomcat’s default

tl;dr How do I tell Tomcat 9 to use a Postgres-specific object factory for producing DataSource object in response to JNDI query? Details I can easily get a DataSource object from Apache Tomcat 9 by defining an XML file named the same as my context. For example, for a web-app named clepsydra, I create this […]