October 22, 2024
Chicago 12, Melborne City, USA
javascript

Why is window not defined in NextJs 14 useEffect?

I’m having a hard time not seeing this simply as a NextJS bug and want to hear what others think. Let’s assume that

Read More
pdf

Extracting text from pdf with custom font

I have a voluminous PDF file containing text with specific scientific notation. I’m trying to extract the text using pdfplumber. At first, I

Read More
templates

Syntax restriction on constructors of template classes

When I define a templace class, I can write this (as less <T> as possible): template <typename T> class Foo { public: Foo(){}

Read More
security

Dropping root privileges in NodeJS doesn't seem to have an effect

I want to have root privileges on startup and drop them later. Background is a server written with NodeJS on Ubuntu 24.04 that

Read More
SQL

Remove the all comments from a sql view in azure DW

CREATE VIEW [dimension].[v_dim_customer] as SELECT — primary key KNA1.fk_MANDT_KUNNR AS sk_customer, KNA1.bk_MANDT_mandant, — attribut KNA1.[NAME1_nom], KNA1.[NAME2_nom_2], — KNA1.[DEAR1_concurrents], –KNA1.[DEAR2_responsable_adv], ----- /*flag client interne/externe*/-----

Read More
CSS

Why is CSS flex not working when deployed?

I want my page to be divided in two vertically. This works locally, but not on Chrome when deployed (see screenshots), although it

Read More
C++

How to insert data into Doubly Linked List using for loop in C

I made a Doubly Linked List, but instead of manually assigning the values (10, 20, 30) I want to make a for loop

Read More
jQuery

hide elements according to index position using jquery

I have a dynamic table with many columns and rows. In some cells there is specific value "N/A". I want to hide cells

Read More
HTML

How to make shadcn table scrollable?

I encountered a problem. On official shadcn site, table is a scrollable on a small screens: Shadcn site I added table in my

Read More
Android

Converting Kivy to apk

How can I troubleshoot my Kivy/KivyMD app crashing on Android after the loading screen? I’ve developed a simple app with the following code,

Read More