Random snippets of all sorts of code, mixed with a selection of help and advice.
When using ShapeFix_Shape,given no face merging,how to find out corresponds new face's index in fixed shape?
5 January 2026 @ 7:23 am
my question like this:
//I have an old top level shape
TopoDS_Shape oldTopShape=.....;//top level shape
//create a face index map
TopTools_IndexedMapOfShape shapeIndexMap;
TopExp::MapShapes(oldTopShape, TopAbs_FACE, shapeIndexMap);//used the oldTopShape here
TopoDS_Face oldFace=.....;//belongs to top level shape(oldTopShape)
//by this, we can find the index of oldFace in not fixed old shape
auto indexInOldTopShape = shapeIndexMap.FindIndex(oldFace);
//then we push faces of oldTopShape into a map
TopTools_DataMapOfIntegerShape topoFacesBeforeFixIntToShape_;
for (TopExp_Explorer explorer(oldTopShape, TopAbs_FACE);explorer.More(); explorer.Next())
{
const TopoDS_Face &topoFace = TopoDS::Face(explorer.Current());
const int oneFaceID = topoFacesBeforeFixIntToShape_.Size();
topoFacesBeforeFixIntToShape_.Bind(oneFaceID, topoFace);
}
Valid values for mandatory loan/credit account fields in Jack Henry SilverLake APIs? [closed]
5 January 2026 @ 7:21 am
While creating loan or credit accounts for test customers using SilverLake APIs, we are encountering canonical field-mapping errors.
Could someone provide the valid and supported values for the following mandatory fields required to create a loan or credit account?
CollatCode
PurpCode
CallRptCode
PmtCode
TermUnits
ProdCode
Additionally, are these values institution-specific, or is there any standard reference or catalog available for integrators?
why I am getting the error pack already exists while I am trying to create the dataset out of the LLama-cpp intsall
5 January 2026 @ 7:11 am
Ohk I was on kaggle and I wanted to create the dataset of LLama_cpp file like I downloaded inorder to use it for internet off submissions but it keeps giving me the error of pack already exists , I tried changing name , tried creating it with different account , can somebody explain me whats the issue and why its happening
Error connecting to Redis on redis:6379 (SocketError) at aws, ecs
5 January 2026 @ 7:03 am
I am using Rails 6 with sidekiq and redis:
The Redis container starts, but the Sidekiq container does not start:
My Docker configuration is as:
version: '3'
services:
redis:
image: redis:alpine
container_name: redis
command: redis-server --bind 0.0.0.0
ports:
- "6379:6379"
networks:
appnet:
aliases:
- redis
healthcheck: # Crucial for AWS/Sidekiq stability
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
opal_web:
build: .
container_name: opal_web
command: >
bash -c "
until nc -z redis 6379; do
echo 'Waiting for redis...'
sleep 1
done;
rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'
"
volumes:
- .:/app
ports:
- "3000:3000"
depend
How to convert EPUB to PDF in GitHub Actions CI?
5 January 2026 @ 7:02 am
In CI environments, you need to install Calibre explicitly.
GitHub Actions example
- name: Install Calibre
run: sudo apt-get update && sudo apt-get install -y calibre
- name: Install epub-to-pdf-cli
run: npm install -g epub-to-pdf-cli
- name: Convert EPUB to PDF
run: epub2pdf input.epub output.pdf
This setup:
Works on Ubuntu runners
Produces deterministic output
Is suitable for automated pipelines
Flutter + GetX + Firestore: .collection('attendance_report').get() returns empty snapshot even though data exists
5 January 2026 @ 5:13 am
I’m building an admin attendance viewer in Flutter using GetX and Cloud Firestore.
The UI uses cascading dropdowns (Department → Semester → Section → Subject → Class Date → Attendance list).
Problem:
Nothing is fetched from Firestore. The very first dropdown (Department) stays empty, and the log shows:
attendance_report collection snapshot: []
Departments: []
Firestore Structure :
attendance_report (collection)
└── CST (document)
└── semesters (collection)
└── 2nd (document)
└── sections (collection)
└── A (document)
└── subjects (collection)
└── English-II (document)
└── classes (collection)
└── 2025-12-15 (document)
Make Pdf LTV without CRLs using DSS 6.0
5 January 2026 @ 4:56 am
I am using DSS 6.0:
<dependency>
<groupId>eu.europa.ec.joinup.sd-dss</groupId>
<artifactId>dss-pades</artifactId>
<version>6.0</version>
</dependency>
My Pdf successfully signed and LTV. But I see 1 kb Pdf become 7mb, then we diagnose that it's due to CRL stored into pdf. But now we have decide no to store CRLs but OCSP.
For this I made two changes:
Set
certificateVerifier.setCrlSource(null);
and this to avoid exception:
certificateVerifier.setAlertOnMissingRevocationData(new LogOnStatusAlert(Level.WARN));
But I see document signed and valid but it's not LTV.
Then I change code to see, either ocsp urls are calling by DSS or not, I made a change to see the result as follows:
//OnlineOCSPSource
OnlineOCSPSource ocspSource = new OnlineOCSPSource() {
@Override
public OCSPToken getRevocatio
Gap between ELF sections of different permissions
4 January 2026 @ 9:30 pm
When looking at an simple elf binary on my system (wc), I noticed the gap between the sections .eh_frame and .init_array.
Ther permissions change between these two sections from RX to RW which is also reflected by the Program headers.
In my understanding there is not good reason for this gap as permissions only apply when being loaded into memory and permissions can only be applied on the granualarity of pages. However, inside the file there seems to be no good reasons for a gap.
It might be related to the Program headers. But it's not obvious for me either why the RW header starts at 0x00abb0 instead of 0xa000 (page aligned) or 0x10000 (header alignment).
I like to understand the reason for this gap and why the next section is not simply adjacent.
> readelf -eW wc
Section Headers:
[Nr] Name
gRPC client in PHP
4 January 2026 @ 8:31 pm
I created a gRPC server using RoadRunner and tested it by sending requests via Postman and everything works fine.
The server is already running, but how can I make a request to it from a Symfony application?
I’ve found a few old examples online, but when I generate files using protoc, I only get interface, and there is no *Client.php file generated.
How do I create and use a gRPC client in Symfony to communicate with this server? Or should I do something else?
Sample simple GTK 3.0 GUI code that compiled fine last week now has numerous header compile errors even on re-installation of the GTX 3.0 libraries
4 January 2026 @ 12:15 pm
Following the instructions below, last week I was able to compile and run a basic Hello, but this morning I cannot even get the simplest application below to compile:
g++ reallysimple.cpp -o gtk_app 'pkg-config --cflags --libs gtk-3.0'
reallysimple.cpp:1:10: fatal error: gtkmm/main.h: No such file or directory
1 | #include <gtkmm/main.h>
| ^~~~~~~~~~~~~~
compilation terminated.
The isolated code being compiled is reallysimple.cpp:
#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include <gtkmm/button.h>
#include <iostream>
#include <cstdlib>
#include <string>
int main(int argc, char* argv[]) {
Gtk::Main app(argc, argv);
Gtk::Window window;
window.set_default_size(200, 200);
window.set_title("Hello Ubuntu GUI");
Gtk::Main::run(window); // Start the main event loop
return 0;
}
I had started with the instruc