How to force a web browser NOT to cache images

Background I am writing and using a very simple CGI-based (Perl) content management tool for two pro-bono websites. It provides the website administrator with HTML forms for events where they fill...

How to expire session due to inactivity in Django?

Our Django application has the following session management requirements. Sessions expire when the user closes the browser. Sessions expire after a period of inactivity. Detect when a session...

Very simple authentication using one-time cookie on nginx

I have a site intended only for private consumption by 3 coders. It's simple HTML served by nginx directly but intended for consumption inside and outside the office. I want to have a simple...

Display timer while video recording android

I am making a video recorder and i want to have the time duration of how much time did the user have recorder the video. The time will counts upwards. in order to calculate the time, im using...

spring security - Using PreAuthenticatedAuthenticationToken

I've been trying Spring Security and after built a little prototype I have a funny scenario here that I can't figure out what I've done wrong. It's a simple scenario where: The user requests a...

How to tell what profile/signing certificate was used to sign .ipa?

I have a bunch of .ipa files and I've used a script to resign them. So how can check the provisioning profile/signing certificate to conform they are using the correct information? Ideally, I'd...

Assets won't precompile when deploying with capistrano to production on amazon EC2

I worked on being able to deploy to production using capistrano. I face several issues and while fixing most of them we still have a last one. Our precompile assets options are not properly...

Sharepoint 2010 Workflow Intermittently shows Error Occurred

Using and InfoPath form, a person will submit a request to a form library. Upon creation of new item in the library, the workflow (using SharePoint Designer out of the box functionality - no code)...

Get facebook access token with java code

I have 2 questions: I am trying to get access token through java code and not through Facebook developers site. Does anyone have idea how can I do it? is it possible to get longer access...

SPA re-login when session expires

I'm building a single-page application with AngularJS. I'm considering 2 approaches to handling a long idle period wherein the server-side session expires. Approach A: Detect during AJAX,...

Open a new tab in Safari programmatically using JS

I am developing on an Ember.js platform with an Microsoft Azure database for uploaded files. Since the content of these files are sensitive, we're relying on Azure's secure access api to allow our...

JXBrowser similar

I use JXBrowser in one of my projects in Java to do a simple display of the googlemaps webpage so that I can trace routes on there, but recently I want to improve that project, but my problem is...

LinkedIn API OAuth refresh token

I am using LinkedIn API to pull updates from there and display on the website. While using OAuth, I am storing the token in a file and then pull it from there again to prevent the login popup....

Keycloak - Grant validation failed. Reason: invalid token (wrong ISS)

So I'm having some issues with getting my Keycloak-Connect sample to work. Basically I have a simple check with Keycloak on an express route On my VM (10.10.10.54:8081) as...

AWS Cognito verification email not received by user account

While creating user in userpool, user invitation messages are sent with a temporary password but email verification messages is not being sent. I was creating a very simple setup to try out aws...

Location tracking in background with PhoneGap

I'm trying to create very simple application that will get the current location of the device and post it to server every 15 minutes or so. I'm using cordova-plugin-background-fetch (...

How to authenticate a request in Bitbucket REST API

I am trying to use the bitbucket API for getting details of my repositories, issue, etc., but I am not able to find a clear way of authenticating the API request. I would like to have a simple way...

Failed executing DbCommand because timeout expired .net core

My goal is to provide simple API to retrieve data from Payments (~400 rows) table which consists 5 columns. Payment: Id (int), PaymentsNumber (tinyint), Rate (decimal(18,2)), ProductType...

Server-side validation of iOS and Android auto-renewable subscriptions using server-to-server notifications and Firebase Cloud Functions

I have successfully implemented subscription validation for Google Play, but I am struggling to understand the validation flow for iOS auto-renewable subscriptions and would like to ask for your...

Cookies not setting on starlette TestClient, with requests sent via Python Requests

The login/logout feature on FastAPI works in the browser, but I am trying to write unit tests for it. When my app sets the cookie, I can see the response DOES have the cookie sent. When I receive...

Snapshot based S3 bucket backup solution

I am trying to build a backup system for some important data in my AWS S3 bucket. Among the options that I explored were versioning from which individual objects can be recovered to an earlier...

Understanding JWT and confirm simplejwt expire in testcase

I'm just trying to understand djangorestframework-simplejwt expiration and want to know what is returned when the token expires. To explore this a wrote a simple testcase in my django project, but...

How to add authorization to a Google apps script without it expiring?

I have a Google apps script project which I use as a web application to save some data gathered from a web page (JavaScript only) to My Google sheets (think of it as a simple database for just...

R quantstrat futures example - "Transactions must be added in order"

Edit: the fix was easier than thought, I just initialized the portfolio, account and orders too late, given my data starts earlier. The following makes to code run. I won't delete my question,...

How to prevent axios.interceptors.response.use to crash the error handling?

I have several forms "Login, Registration, Create a product..." For these forms, I was handling errors with useState for the front end and for the back end with express-validator. Everything...

Unable to use acme.sh with tls-alpn-01 to renew or issue a certificate

According to the official ACME.SH documentation link, issuing a certificate is as simple as running the following command: $ acme.sh --issue --alpn -d example.com However, I am getting the...

iOS TLS/SSL Pinning using NSRequiresCertificateTransparency key in Info.plist

I want to secure my app against man-in-the-middle (mitm) attacks using SSL Pinning. By default it is possible to use a proxy like Charles or mitmproxy to intercept traffic, and decrypt it using a...

Perl LWP::Simple get fails from Ubuntu server, but not local machine

I'm trying to get something from a webpage using something like this #!/usr/bin/perl use LWP::Simple; use LWP::Protocol::https; $url =...

Ignoring axios error for invalid certificates when creating a vscode extension

I am currently working on a Visual Studio Code extension that makes https requests and i'm trying to ignore invalid certificates e.g. expired certificates. Here is a very simple script in...