Rounded corners the javascript way
Nifty Corners Cube
Tag: WebDev
Web development news and tutorials
StackOverflow.com
Random snippets of all sorts of code, mixed with a selection of help and advice.
Unable to update to recaptcha_v3 2.0.4 for Drupal using composer
22 October 2025 @ 4:14 pm
Using composer on Drupal 10.5.4 and trying to update recaptcha_v3 module from 2.0.1 to 2.0.4 and nothing happens... no error or whatsoever. If targeting sole module with composer require 'drupal/recaptcha_v3:^2.0' instead composer update I get following
Running composer update drupal/recaptcha_v3
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
As somone a clue on wath may happen ?
Thx
Safari Web Extension Testing
22 October 2025 @ 4:10 pm
I'm trying to find a test framework such as Playwright, Selenium, etc. that can:
Open a Safari browser
Install a Safari Web Extension
Run some UI tests in the browser that validate the extension functionality
I know this is possible for Chrome and Firefox extensions when using Playwright, but it doesn't seem like any widely used tools exist for Safari.
I see that Selenium 2.37.1 supported a legacy SafariDriver which could install Safari Web Extensions, but that was since removed in favour of Apple's own safaridriver in Safari 10. The Apple docs are pretty basic and don't give any indication as to whether or not this is supported.
I also note that TestingBot has a somewhat decent solution, though it's not as fast as the likes of Playwright (in terms of test runtime).
Any ideas on how this could be tested would be hugely appreciated!
ORA-00904 when querying a sys.anydata column
22 October 2025 @ 4:10 pm
Why am I getting a ORA-00904: invalid identifier error? How can I select the value of a sys.anydata column?
CREATE TABLE temp (
id NUMBER PRIMARY KEY,
val sys.anydata
);
INSERT INTO temp (ID, val) VALUES (1, sys.anydata.convertnumber(123));
SELECT ID, temp.val.accessnumber() AS val FROM temp
I tried with getnumber() instead of accessnumber() but I get the same error.
Why is a dropdownmenu bigger than its content?
22 October 2025 @ 4:08 pm

Setting a PHP session variable with a date value
22 October 2025 @ 4:05 pm
I'm trying to set a PHP session variable with a date value. Once a user selects 'AddOffering' button, the code below is supposed to set the $offdate variable with either the value posted in the form or the session variable 'session_offdate' depending on if the session variable is set. If the session variable is not set, then the posted date value is set to the session variable.
Here's the entire code for the AddOfferings section.
Thanks in advance!
Steve J.
<?php
$offdate = "";
$name=0;
$off_amt=0;
$post_category=0;
$_SESSION['session_offdate'] = "";?>
<?php
if(isset($_POST['AddOffering'])) {
if(isset($_SESSION['session_offdate'])){
$offdate=$_SESSION['session_offdate'];
}
else{
$offdate = $_POST['offdate'];
$_SESSION['session_offdate'] = $POST['offdate'];}
$name = $_POST['users'];
$off_amt = $_POST['off_amt'];
$post_category = $_POST['pos
.NET - How can I update downloading a .tiff file from .NET 4.5 to 8?
22 October 2025 @ 4:05 pm
I'm currently working on migrating a project from .NET 4.5 to 8. One of the key functionalities of the old project is the ability to download a barcode of a given string:
Old functionality
public FileResult DownloadBarcode(string BarCodeString, string CampaignName, string StartDate)
{
try
{
using (WebClient wc = new WebClient())
{
var byteArr = wc.DownloadData(string.Format(
https://foo.InternalStringToBitmapConverter,
BarCodeString));
string fileName = string.Format("{0}-{1}.tiff",
CampaignName.Replace("#", "").Replace(" ", ""),
StartDate.Replace("/", "-").Substring(0, StartDate.IndexOf(" ")));
return File(byteArr, System.Net.Mime
Keycloak Pod crashes when theme/resources/img contains unused files
22 October 2025 @ 4:03 pm
I have an Issue with a keycloak kubernetes pod that kept crashing after I added an unused favicon.css to the themes/test/login/resources/img folder.
MRE
The following files and commands should reproduce the issue. I did this with the kubernetes cluster provided by docker desktop, if that should make a difference.
Dockerfile
FROM quay.io/keycloak/keycloak:21.0 AS builder
ENV KC_HEALTH_ENABLED=true
COPY ./themes/test opt/keycloak/themes/test
RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:21.0
COPY --from=builder /opt/keycloak/ /opt/keycloak/
WORKDIR /opt/keycloak
ENTRYPOINT [ "/opt/keycloak/bin/kc.sh", "start" ]
theme.properties
parent=keycloak
import=common/keycloak
styles=css/login.css css/styles.css
styles.css
:root {
/* Primary Colors */
--pf-global--primary-color--100: gray;
--pf-global--primary-color--20
using xargs with git push --delete
22 October 2025 @ 4:01 pm
I'm trying to manage a huge number of remote repos and I want to clean up the merged branches.
I do that with
git branch -r --merged HEAD | grep -Ev "(^\*|^+|master|develop)"
example output:
testremote/feature-123
testremote/feature-456
I pipe that into git push -d <remote> but my issue is the list of branch names already has the remote identifier, so I don't want to use git push -d origin because I'm trying to delete the remote branches; they are not on origin.
I'm receiving an error --delete doesn't make sense without any refs
How can I use xargs to pass the branch that already includes the remote name?
I want to be able to use the command
git branch -r --merged HEAD | grep -Ev "(^\*|^+|master|develop)" | xargs -n 1 git push -d without listing the remote argument beca
Facebook Graph API: “This message is sent outside of allowed window” error when sending initial DM to Instagram commenters
22 October 2025 @ 4:00 pm
I’m using the Instagram Graph API with these approved permissions:
(instagram_manage_messages, instagram_manage_comments, pages_manage_metadata, pages_read_engagement, instagram_basic)
I can send and receive DMs after a user messages my account, but when I try to send a message to a user who only commented on a post, I get this error:
(#10) This message is sent outside of allowed window
Other platforms like ManyChat and Twilio can send DMs or initial messages after a comment.
Is there any endpoint or approved method to send the first DM to a commenter without having any prior conversation with user, or is this only allowed for Meta Business Partners with special access?
How to bind Avalonia ComboBox to API data?
22 October 2025 @ 3:58 pm
I'm trying to populate an Avalonia ComboBox with data fetched from an API. The API returns a list of 87 items, and I can confirm the data is received correctly in debug. However, the ComboBox appears empty at runtime.
Here’s my XAML:
<Grid ColumnDefinitions="*,100" Margin="0,0,0,5">
<TextBlock Grid.Column="1"
FlowDirection="RightToLeft"
VerticalAlignment="Center"
FontFamily="{StaticResource Vazir}"
Text="مرکز هزینه:" />
<ComboBox Grid.Column="0"
Width="280"
ItemsSource="{Binding CostCentersList}"
VerticalAlignment="Center">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Title}" />
</DataTemplate>
</ComboBox.
960.gs
CSS Grid System layout guide
960.gs
IconPot .com
Totally free icons
Interface.eyecon.ro
Interface elements for jQuery
Interface.eyecon.ro
ThemeForest.net
WordPress Themes, HTML Templates.
kuler.adobe.com
color / colour themes by design
webanalyticssolutionprofiler.com
Web Analytics::Free Resources from Immeria
webanalyticssolutionprofiler.com
CatsWhoCode.com
Titbits for web designers and alike