Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Search
I've finally managed to get it working without using a wrapper for java. It has to do with filesystem capabilities in Linux. To let java list and select network interfaces, as well as analyse and ...
(Brought over from SE.) The problem I have followed this procedure in order to run Java applications as root when needed from Eclipse (as I use Xubuntu, for instance, when using jnetpcap to cap...
(Brought over from SE) The problem I'm coding a Java Swing application dealing with XML files, so I'm using JAXB in order to marshal classes into documents and unmarshal the other way around. ...
I have a QR code which needs to read through Google's ML kit for Android since Zxing.MAUI doesnt read it. I followed the code in ml-kit/vision/barcode-scanning/android and VinayByte/mlkit-qr-code-s...
With help from hkotsubo in the comments, it seems you can follow the behavior described by Git's documentation. This will work until they change it, at least for your *Nixes and *BSDs: path="${XDG...
I'm working on a proof of concept for a Spring Cloud Stream application. I want to define my processing logic using classes that implement Function, Consumer, or Supplier. I understand that Spring...
This depends largely on what "do something" you want to do, in response to a state change. If you just need to re-compute some other state: Write that as additional code in the component funct...
OK, I found the issue. It was to do with the tags. It seems that you can't have a Condition based on ResourceTags for the ReceiveMessage and SendMessage operations - the ResourceTag selector may on...
Used to work with PhantomJS. Want to upgrade to Puppeteer. Started with some code: "use strict"; const puppeteer = require("puppeteer"); const capture = async () => { let browser; try {...
I couldn't access the history due to having $wgActions['history'] = false; # Complete history lockup; In the web application root's LocalSettings.php file. After I have commented this command,...
In MediaWiki 1.36.1 with Skin:Timeless, the following JavaScript code doesn't work. I get in browser console: Your skin is incompatible with VisualEditor. See https://www.mediawiki.org/wiki/Exte...
According to the documentation, the hasAttribute method expects only one argument (the attribute's name), and it tells only if that attribute is present, regardless of its value. Hence, the return ...
You need the "Edit Tag" ability. It's requirements may vary from site to site and are detailed at https://software.codidact.com/abilities/edit_tags
See the first example in this section: const form = new FormData(document.getElementById('login-form')); fetch('/login', { method: 'POST', body: form }); To adapt this example to your c...
Since this is pretty clearly a homework exercise, and the point of those is for you to learn, I'm going to be evil and not spoon-feed the answer to you. However, I will give you some pointers. Fi...
One way to do this is to launch a Task at application startup as soon as possible (the DI is configured). The only hard part is to make DI available in the prewarm functionality. The following imp...
This question most often comes up in relation to C++. That language has something that is called reference in the standard. They work like pointers, with a few differences. They have to be initi...
I am caching some very static information (changes once per day) in my ASP.NET Core application. This is normally done when needed ("lazy"). One such cache item is a 50K list of items that are tak...
The formulas for encryption and decryption require a positive value of the modulo operation. However, this is not guaranteed for all implementations of the modulo operator. For instance, in Python ...
Here's what I'd do, hope it still helps someone: import pandas as pd t1 = [123,456,789,101,133] t1_descr = ['Description' + str(i) for i in t1] table1 = pd.DataFrame({'name': t1, 'descripti...
Solved this æons ago actually... [Assumes Bash shell]. If the DST difference is for instance an hour (or 60 minutes, or 3600 seconds), change: --modify-window=3 To: --modify-window=$((3 + 60...
I’m struggling to get timeit working correctly but this is faster in my limited tests: l = [123456789, 23456789012, 34567890123] result = [0, 0, 0] for idx, row in enumerate(l): i = f"{r...
Besides the aforementioned solutions, Web components might be useful (can be reused in multiple contexts). Examples: in Drupal in ButterCMS in Backdrop CMS in WordPress However, if your fo...
I have a list of 11-digit numbers stored in one single column in Excel, and I need to separate the digits according to this pattern: 2-2-1-3-3. Example: 00002451018 becomes 00 00 2 451 018. How c...
XSL and XSLT is a good way to provide a theme or stylesheet to XML files including RSS and Atom feeds. By the way Atom is so much better than RSS and RSS as a feed standard sucks. I think there wa...