Categories
Mastering Development

How to remove duplicate named entities from Azure Cognitive Search EntityRecognition skill output?

I am using an Azure Cognitive Search skillset that includes the EntityRecognition skill to find all people, locations, and organizations from within blobs in Azure Storage. When I run the skill, with varying minimumPrecision values, it always returns a list with duplicate values. Is there a way to tell the skill to remove duplicates? or […]

Categories
Mastering Development

Outlook REST API returns events without start and end dates

When requesting GET https://outlook.office.com/api/v2.0/me/calendars/{calendar_id}/events the response (for some events) does not have a Start and End date. The full structure for such events is as follows: { ‘OriginalStartTimeZone’: None, ‘End’: { ‘TimeZone’: ‘tzone://Microsoft/Utc’, ‘DateTime’: ‘0001-01-01T00:00:00.0000000Z’ }, ‘HasAttachments’: False, ‘ResponseRequested’: True, ‘ShowAs’: ‘Free’, ‘Recurrence’: None, ‘Start’: { ‘TimeZone’: ‘tzone://Microsoft/Utc’, ‘DateTime’: u’0001-01-01T00:00:00.0000000Z’ }, ‘BodyPreview’: ”, ‘AllowNewTimeProposals’: True, […]

Categories
CMS Mastering Development Wordpress

Issue with WordPress AJAX Filtering breaking links on frontend

I’ve been using AJAX taxonomy/post filtering for the past week and just noticed something really strange upon further testing. When you select the filter criteria and click FILTER, it populates the proper posts; however, a random mix of the content that is populated has broken links in there custom metadata. Example: When you visit the […]

Categories
Mastering Development System & Network

NGINX/Gunicorn/Django not serving custom error pages

I am attempting to serve custom error pages in my Django application running under NGINX. I have URLs defined for four pages, and navigating to them is successful; it shows the appropriate page with the appropriate status code. The trouble arises, however, when I try to produce an error via normal means. When I try […]

Categories
Mastering Development

Some data are not appearing while scrapping using for loop in Selenium, Python?

I am scrapping booking.com for multiple pages using for loop and selenium web driver. However, some of the items are not appearing. Items are available when I checked the pages. Can you please advise what would be the problem and solution for this? I checked other posts here and they all advised to use a […]

Categories
CMS Mastering Development Wordpress

Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?

I’m currently working on a website that has a custom post type (“schedules”) that requires custom hierarchal taxonomies (named “location” and “servicetype” in this case) to be displayed as radio buttons instead of checklists, as demonstrated in this tutorial. Here, I had to modify the code to prevent certains terms of the taxonomy that are […]

Categories
Mastering Development

What are the different types of 1:M work order objects?

In Maximo 7.6.1.1, there appear to be several different kinds of 1:M work order objects. These objects can be used to manage WOs that pertain to multiple assets, work-to-be-performed, etc. What would be an exhaustive list of all the different 1:M object types that are related to WOs? Here’s what I’ve come up with so […]

Categories
Development

Eclipse issue: unit tests triggered when I debug but not when I run

Goal: I want to “unit” test kafka producer sending messages to a kafka hosted in a docker container. In other words, it must connect to external kafka other than the common used for unit test named Emedded Kafka. I can successfully reach my kafka docker container from comman line: C:\tools\kafka\bin\windows>kafka-console-producer.bat –broker-list 192.168.99.100:9092 –topic test >123 […]

Categories
Development

MYSQL index optimization for table that stores relationship between 2 other tables

My question is regarding database structuring for a table that links 2 other tables for storing the relationship. for example, I have 3 tables, users, locations, and users_locations. users and locations table both have an id column. users_locations table has the user_id and location_id from the other 2 tables. how do you define your indexes/constraints […]

Categories
Development

Navigate to the Map from the Start Center or List View?

Maximo 7.6.1.1/Spatial 7.6.1: Scenario: A user wants to go directly to the map to explore multiple assets, locations, WOs, or SRs. The user does not have a specific asset/location/WO/SR that they want to explore. They only know what the general area is that assets/locations/WOs/SRs are located in. In the Assets example, the only OOB way […]