Effective methods of identifying and blacklisting a user

I'm currently looking at different ways to use various web/internet technologies in order to be able to identify and blacklist a user of website rather than the host. If that didn't make much...

How can I create a mysql_query that pulls items ranked using a Bayesian average?

Given a database table with the following fields: total_votes: The total number of votes cast on this item/row average_value: The average voting value (i.e. 3.6 with 5 being the...

How do units flow through matrix operations?

It seems that there are many useful applications for matrix math where not all entries in a given matrix share the same units. I want to look into type systems that could track these units and...

Extracting an information from web page by machine learning

I would like to extract a specific type of information from web pages in Python. Let's say postal address. It has thousands of forms, but still, it is somehow recognizable. As there is a large...

joliver / EventStore eventual consistency

I'm trying to figure out how my event storage and my read model are related in terms of actual nuts and bolts implementations. My limited understanding of the event store leads me to...

JPA - Batch/Bulk Update - What is the better approach?

I found that JPA does not support the following Update: Update Person p set p.name = :name_1 where p.id = :id_1, p.name = :name_2 where p.id = :id_2, p.name...

How to calculate area of intersection of an arbitrary triangle with a square?

So, I've been struggling with a frankly now infuriating problem all day today. Given a set of verticies of a triangle on a plane (just 3 points, 6 free parameters), I need to calculate the area of...

How to use relative names in Excel VBA

Many "advanced" (aka: VBA) excel tutorials on the web or even excel's vba help encurage us to use the Range("B2:B10") method (to be precise: object) for selecting cells or getting values. In the...

step back to previous line in script with devtools debugger

I am working with devtools debugger provided by google chrome. In terms of execution control, it allows you to add breakpoints anywhere in script and even allows you to attach breakpoints to...

Improve reporting stored procedure execution time - tuning temporary tables?

I've been tasked with improving the performance (and this is my first real-world performance tuning taks) of a reporting stored procedure which is called by an SSRS front-end and the stored...

What is bus-locking in the context of atomic variables?

I use C++ since a long time, and now I'm starting to learn assembly and learn how processors work (not just for fun, but I have to as a part of a test program). While learning assembly, I started...

Copying SCNParticleSystem doesn't seem to work well

I'm trying to use an SCNParticleSystem as a "template" for others. I basically want the exact same properties except for the color animation for the particles. Here's what I've got so far: if let...

Max Pool Size ignored working with Azure SQL and Azure AppServices

I'm working in a ASP.NET Web API project (Full .NET Framework 4.6.1) and using Azure SQL Database, the API is deployed on an Azure AppService. Regarding the service tiers, we are using S2 in the...

Is it guaranteed that the padding bits of "zeroed" structure will be zeroed in C?

This statement in the article made me embarrassed: C permits an implementation to insert padding into structures (but not into arrays) to ensure that all fields have a useful alignment for the...

Reading Windows Logs efficiently and fast

What I'm trying to accomplish is a C# application that will read logs from the Windows Event Logs and store them somewhere else. This has to be fast, since some of the devices where it will be...

Parsing and expanding algebraic equations that have variables using VBA

I am working on a VBA script that is parsing down a user input string for later evaluation. I have managed to get it down to the following, where the letters are variables that contain strings,...

Job queue with job affinity

I am currently facing a problem for which I am pretty sure there is an official name, but I don't know what to search the web for. I hope that if I describe the problem and the solution I have in...

Make an Item in a QTableView draggable but not selectable

A bit of background (not fully necessary to understand the problem): In a PySide2 application I developed earlier this year, I have a QTableView that I'm using with a custom model. Some items in...

"__CFRunLoopModeFindSourceForMachPort returned NULL" messages when using AVAudioPlayer

We're working on a SpriteKit game. In order to have more control over sound effects, we switched from using SKAudioNodes to having some AVAudioPlayers. While everything seems to be working well in...

Have jOOQ not generate numbered fields and components

Is there a way to force jOOQ to only reference columns by name and never by index, and not generate any functions or properties that would rely on index instead of name? I took a lap through the...

Are browsers supposed to consider windows updated with javascript pseudo-protocol URL output as new locations?

I was wondering about browser differences in handling "javascript:" URLs. (Note: I'm aware that the "javascript:" scheme rarely makes much sense to use outside of bookmarklets or odd situations...

Cognos : create custom groups in report studio

I am new to Cognos and I know SQL but it seems I can’t figure out cognos logic for some basic stuff. It's been two days I am trying and I have been looking all over the internet without finding...

AWS - 401 Access Denied - Details correct, permissions set

The problem About a year ago I setup calls to different AWS, I am now trying to get it working again by simply setting up a new key. The issue is that I keep getting 'Access to X denied.' and I'm...

How to use a ViewModel to save a bitmap correctly?

In the official android documentation, on how to implement a ViewModel, *there is this method:* private void loadUsers() { // Do an asynchronous operation to fetch users. } In my...

SICP Ex. 1.17 - "fast-multiply" slower than "multiply"?

The following function as introduction to this exercise illustrates multiplication defined in terms of addition. This is the simplest "easy to write down", recursive definition. (define (star a...

What should I do if the built-in file, sprite.py, gets an error?

I'm new to python coding (I am 11 years old) and am practicing on a website that helps new coders make their first games, but I stumbled upon an error in sprite.py. The reason that I'm not sure...

Oracle Parallel Query behaviour with IDE tools as SQL Developer or Toad

For a while I've trying to get the time to write this question and explain the issue as best as I can, so forgive me in advance for the long text. My environment: Oracle Database 12.2 running on...

Xlib and XCB. Multiple windows in one process. Xlib fails whereas XCB do not

Not so long ago, I was faced with a fact that programming with Xlib in the presence of multiple threads and multiple windows is a thorny path. The problem I was faced with is that, that Xlib(or...

ASP.NET core 3.1: does ConfigureAppConfiguration interacts with launchSettings.json?

I'm experiencing a strange behavior when launching an ASP.NET core 3.1 web application from Visual Studio 2019 using kestrel (I mean the launching profile which does not use IIS express). I have...

What does seq actually do in Haskell?

From Real World Haskell I read It operates as follows: when a seq expression is evaluated, it forces its first argument to be evaluated, then returns its second argument. It doesn't actually do...

Relevant tags