Categories
Database Development

auto populate common columns of all tables using triggers

I have 4 tables course, section, student, and enrollment. All of them have 4 common columns that I want to auto-populate before insert and update. Before insert trigger gives infinite recursion error, after looking up for a while I found out that using views and instead of trigger can be good solution. Now when I […]

Categories
Ask Engineering Software Engineering

Refactoring and moving monolithic ASP.NET Core app to Kubernetes

(This is my very first post here, so I’m sure I violate a few rules of this community, mainly by asking too much questions in a simple post. Sorry for that.) I have a monolithic ASP.NET Core MVC application which I develop as a hobby project for private use. It can download videos and music […]

Categories
Mastering Development

Laravel 7.x – how to compare two fields in rule validation?

I’m trying to create a custom validation for invite field in my register form. I have a table named invites, like below: invites -id, -description, -qty -used Supose that I have a invite (ID) IVRZ5L with qty = 10 and used = 10. Note that in this case I can’t use this invite (IVRZ5L) because […]

Categories
CMS Mastering Development Wordpress

Add a term to list in block editor taxonomy sidebar

I’m the author of a plugin called Radio Buttons for taxonomies which converts certain taxonomy metaboxes (in classic) and sidebars (block editor) to use Radio buttons instead of checkboxes for selecting a term. Unlike with checkboxes, which you can simply uncheck, with radio buttons if you want to offer someone the chance to "undo" a […]

Categories
CMS Mastering Development Wordpress

Add a term to list in block editor taxonomy sidebar

I’m the author of a plugin called Radio Buttons for taxonomies which converts certain taxonomy metaboxes (in classic) and sidebars (block editor) to use Radio buttons instead of checkboxes for selecting a term. Unlike with checkboxes, which you can simply uncheck, with radio buttons if you want to offer someone the chance to "undo" a […]

Categories
CMS Mastering Development Wordpress

Add a term to list in block editor taxonomy sidebar

I’m the author of a plugin called Radio Buttons for taxonomies which converts certain taxonomy metaboxes (in classic) and sidebars (block editor) to use Radio buttons instead of checkboxes for selecting a term. Unlike with checkboxes, which you can simply uncheck, with radio buttons if you want to offer someone the chance to "undo" a […]

Categories
Mastering Development

Exception: Service involved too many times for one day: urlfetch in Google Sheets

trying my luck again. I don’t understand why my script is hitting the error: Exception: service involved too many times for one day: urlfetch even when I just try one line now, I don’t think I’m reaching the daily limit of urlfetch This is the script: /** * Scrape URL, return whatever you choose with […]

Categories
Mastering Development

Parse node in google feed file with php?

I have a google feed file like below. <item> <g:id><![CDATA[147]]></g:id> <g:title><![CDATA[ Kemerli Pantolon Dar Kesim 300-07 Pembe]]></g:title> <g:description><![CDATA[ Kemerli Pantolon Dar Kesim 300-07 Pembe Özellikleri: RENK : Pembe KUMAŞ : g Cotton, 0 Viscose , %3 Lycra PANTOLON BOY : 92 cm MANKENİN ÜSTÜNDEKİ ÜRÜNÜN BEDENİ : 38 MEVSİM : Dört Mevsim AKSESUAR : Aksesuarlar […]

Categories
Mastering Development

Why does changing my state cause the error ‘Maximum update depth exceeded’?

When I try to change state via the login form on my application, it gives me an error saying: ‘Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.’ I don’t see where I caused an […]