Object-oriented-like structures in relational databases

Folks, For the n-th time in a row, i'm hitting the same old problem again. It's about "how do I map OOP structures to database tables in a painless way." Here's a scenario: I have several types of...

VBScript, JScript, Wscript ... oh my

I need to write some scripts for WinXP to support some of the analysts here at Big Financial Corp. Please help me decide which type of windows scripting best fits my needs. My needs seem pretty...

Integrating the ZXing library directly into my Android application

I'm writing this in mere desperation :) I've been assigned to make a standalone barcode scanner (as a proof of concept) to an Android 1.6 phone. For this i've discovered the ZXing library. I've...

When are TSQL Cursors the best or only option?

I'm having this argument about using Cursors in TSQL recently... First of all, I'm not a cheerleader in the debate. But every time someone says *cursor*, there's always some knucklehead (or 50)...

Associative array versus object in JavaScript

In my script there is a need to create a hash table, and I searched in google for this. Most of the folks are recommending JavaScript object for this purpose. The The problem is some of the keys...

What percent of tablet users browse in portrait vs. landscape orientation?

iPad and various Android tablets have been out for awhile now, but I haven't been able to find the answer to this question: When using tablets, which orientation is used most often, especially...

Naming Convention for Class/Interface "Default" Implementation

I've seen the canonical class/interface naming questions on StackOverflow and read a lot of other opinions on the subject, but I have a related question that I'm not sure is answered in any of...

Do all interpreted/dynamically typed languages store everything on the heap?

I first wondered why a language would store everything on the heap, when it has serious performance cost. For example, Java folks avoid creating unnecessary objects because the performance...

What Azure .NET SDK EventHubClient instance methods are threadsafe?

I'm writing code that will be publishing messages from multiple threads to an Azure Event Hub in C# using the EventHubClient. The documentation for EventHubClient contains the fairly standard...

Best practices for turning jupyter notebooks into python scripts

Jupyter (iPython) notebook is deservedly known as a good tool for prototyping the code and doing all kinds of machine learning stuff interactively. But when I use it, I inevitably run into the...

Pojo to json schema v4 and vice versa via maven

I am trying to come up with a set of documents for one of our projects where there is a requirement to convert Java POJOs to JSON Schema 4 and sometimes JSON schema 4 back to POJOs. I couldn't...

How to: Select date, Press Button, Create File, Download File in Struts 2

What I want: If someone visits the page, could select two dates and click a (single) button for downloading the data between the two dates selected. What I already have working: JSP/web...

Block search engines from all sites on Apache development server httpd.conf Header add/set X-Robots-Tag or <directory /> Header add/set X-Robots-Tag

I'm looking for best practices or at least common practices. I need to tell search engines to not index any sites on my (RHL) Apache development server. I see multiple ways folks have done this,...

HikariCP multithreading separate connection for each thread

To the folks of the stackoverflow community. I was looking for some help with an issue i am facing with HikariCP connection pooling. High level: I am trying to create several threads using a...

MongoDB - Storing date without timezone

We have a simple application in which we have all user in same timezone & therefore we are not interested to store timezone information in mongo date object. Reason for such extreme step is we...

Aggregating Movie Rental information in a DynamoDB table using Flink

Happy Holidays everyone! tl;dr: I need to aggregate movie rental information that is being stored in one DynamoDB table and store running total of the aggregation in another table. How do I ensure...

Ci/CD using Google Cloud build with Django on App Engine failed

Background: Trying to automate my build process using the new Google Cloud Build with Django on standard app engine. I started with Django polls example provided by the good Google folks...

Best practice for shared K8s Secrets in Helm 3?

I have a couple Charts which all need access to the same Kubernetes Secret. My initial plan was to create a Chart just for those Secrets but it seems Helm doesn't like that. I am thinking this...

Azure Artifacts - Need to Create Organization-scoped Feeds

Devops folks, I am trying to migrate binaries/packages[full stack .net solution] from myget.org over to azure artefacts and cant find the option to have a common feed. The scope of this feed is...

API caching for next JS

I'm building an app with Next.js... we have 100k+ pages and content changes daily, so using SSR and getServerSideProps. Some of our data is coming from a headless CMS provider that charges by the...

Django - Replace None by an empty string on the CharField - best practices

I've decided to review my Django App and I found some issues in my models. My issue is related to the CharField blank and null options. I was reading about best practices in Django and I've just...

Bitbucket server API: Finding a branch's merge-base

Summary Does the Bitbucket server (not Cloud) API offer the equivalent of the git merge-base branch1 branch2 to find the common ancestor of two branches? Details We'd like to use the Bitbucket API...

Creating two-mode network from binary and character variables in data frame

SNA folks: I am trying to create a two-mode network from a data frame in R. I have a list of organizations which are connected via common membership in a parent organization. I have membership in...

DisplayAttribute: cannot retrieve property 'Name' because localization failed

InvalidOperationException: Cannot retrieve property 'Name' because localization failed. Type 'Common.SharedResources' is not public or does not contain a public static string property with the...

Blazor proj from scratch+nuget: "There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'"

[Final update 07.12.2020 23:50 --> for everyone seeking for the anwser] You are probably adding some nuget package which has in fields DEPENDENCIES .NET Core 3.1. For example Serilog.AspNetCore...

Why does Windows use UTF-16LE?

Whereas most of the Unix/POSIX/etc world uses UTF-8 for text representation, Windows uses UTF-16LE. Why is that? There are multiple folks who say the Windows APIs were written before UTF-8 (and...

Unable to forward API calls through Envoy (v1.17.0) to their respective routes inside docker-compose (v1.27.4)

tl;dnr I can not get my docker-compose Envoy API gateway to properly forward to referenced services. "Forwarded routes" always end up with the error: upstream connect error or disconnect/reset...

Nginx does not re-resolve DNS names in Docker

I am running nginx as part of the docker-compose template. In nginx config I am referring to other services by their docker hostnames (e.g. backend, ui). That works fine until I do that...

Javascript Regex: Second occurrence of block: ABC.js music notation

ABC is a music notation; I'm working on patterns to parse it as part of an app. Sometimes multiple renditions of a tune are in an ABC file, and I need to get just the first rendition -- or in an...

Using vanilla-extract as the styling engine for Material-UI

Some background Our team has been using Material-UI (MUI) for quite some time, and we love it. With the release of MUI v5, we took the time to check which styling solution we would use next, since...