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

How to resolve insecure HTTP usage?

My server is Tomcat, and I have configured the certificate and HSTS. My HTTPS port is 8443. I want to access the browser via http://domain:8443 and eventually redirect to https://domain:8443. However, when I actually try to access it, the browser returns a ‘Bad Request: This combination of host and port requires TLS.’ error. How can

Read More
SQL

Use init SQL script in C# WPF apps

I’ve got a WPF application and i want to apply some init sql script in order to full some table. In my all project solution i’ve got one project for the application and one SQLProject to make compare when i modify the tables. i’ve put my sql script in the SQLProject folder, but how can

Read More
HTML

React Grid2 not respecting row/column definitions and missing responsiveness

Im making a website using react, and have come to the place now where i need to display some products. So im using React’s Grid2 for this, which seems like a good approach given its customization possibilities and responsiveness to window sizes. I have used React’s Card to model a product. However, i have run

Read More
Android

Alert dialog before in-app review launch in Android? Is that accepted?

I am implementing an in-app review flow in Android using Google’s API. I want to know if it is acceptable if I want to have an AlertDialog that is displayed that asks user if they like the app or not and if they say YES, then only I launch the review flow. You need to

Read More
PHP

How can configure and connect with Azure Communication Services and Laravel?

I am working on the integration of Azure Communication Services Email for Laravel, I have of course the account created, the domain added, the SPF and DKIM validated, after this add in my config/services.php 'azure' => [ 'endpoint' => env('AZURE_ENDPOINT'), 'accessKey' => env('AZURE_ACCESS_KEY'), ] to be able to use the credentials that I add to

Read More
C#

C compiler for windows that compiles raw binaries?

I need a C compiler that can compile raw binaries (No structure or headers). I tried using GCC and I could not do it. Anyone have any suggestions? You need to sign in to view this answers

Read More
java

Why does the conditional (ternary) operator (? :) in Java perform type casting?

I’ve been experimenting with the ternary operator (? :) in Java and noticed that it automatically performs type casting on its expressions. For example, this code returns 2.0 instead of 2: System.out.println(false ? 1.0 : 2); In a regular if-else conditional, Java obviously doesn’t perform type casting in the same way, but with the ternary

Read More
python

Scanned document forgery detection

I am supposed to start working on a project involving detecting forgeries on pdfs representing document scans (payslips, receipts,…), these documents were forged before being scanned. To be honest, I am a bit lost regarding the approach I should use as I am a beginner on computer vision. I suppose I can’t really use methods

Read More
GPL

Free GPL YellowPencil – Visual CSS Style Editor

YellowPencil – Visual CSS Editor Version 7.6.5 is out! – The last update was released on 27 September 2024 YellowPencil is a WordPress CSS style editor plugin that allows you to customize your website design in real-time. The plugin allows you to customize any page and theme without coding. Click on an element and start

Read More
javascript

How to create ES Module context with eval?

I have a Scheme interpreter written in JavaScript called LIPS. It’s all ES Module. But as part of the standard library I’ve created require function that use code like this: import { createRequire } from 'module'; const require = createRequire(import.meta.url); But you can’t import esm package with require. So I need to implement import. The

Read More