When is it acceptable to call GC.Collect?

The general advice is that you should not call GC.Collect from your code, but what are the exceptions to this rule? I can only think of a few very specific cases where it may make sense to force a...

Deciphering MMORPG Protocol Encoding

I plan on writing an automated bot for a game. The tricky part is figuring out how they encoded their protocol... To make the bot run around is easy, simply make the character run and record what...

Easy way to prevent Heroku idling?

In the Heroku free apps the dynos seem to keep idling - my app has very low traffic but it's also not really acceptable in my case that my users have to wait 20+ seconds to spin up a new...

How can I make setInterval also work when a tab is inactive in Chrome?

I have a setInterval running a piece of code 30 times a second. This works great, however when I select another tab (so that the tab with my code becomes inactive), the setInterval is set to an...

What is the difference between maxActive vs. maxIdle for Tomcat connection pools?

The tomcat connection pool has a setting called maxActive and a setting called maxIdle my questions are. What is the difference between these two settings? What is a real world example scenario...

python imagegrab module not found

I'm using Python 2.7, and I am looking through one of the tuts+ tutorials I am unable to import one of the modules in their first code segment, the ImageGrab module. I reinstalled Python Imaging...

Using full-text search with PDF files in SQL Server 2008

I have SQL Server 2008 R2 and am trying to implement full-text search on a PDF BLOB. I have installed the iFilter from Adobe and confirmed it is installed Using EXEC...

Google Espresso java.lang.RuntimeException: Could not launch intent Intent { act=android.intent.action.MAIN

I am new to Espresso UI testing. I am getting this error while running tests (ADT Eclipse IDE ). The app is already developed and there are lots of request going on while launching the app. it is...

HikariCP - connection is not available

We have Spring-boot/Hibernate/PostgreSQL application in our project and use Hikari as the connection pool. We keep running into the following problem: after few hours active connections number...

Server Architecture for hosting Java PLAY application in the cloud

This is rather a set of questions than one very specific question. In the last couple weeks/days I puzzled together information regarding how to properly host a JAVA PLAY application "in the...

Azure app service websites has slow response times after being idle for some time

In the last couple of weeks we've been investigating some performance issues where our MVC application was responding very slow for the first request. We are talking like 30-45 seconds for the...

boxfuse dev db not provisioned correctly

I'm just starting with boxfuse and can't seem to find a way to get my dev database to be provisioned. In my boxfuse.yml I have (for the database section): database: # the name of your JDBC...

spring boot application: jpa query returning old data

We have created a spring boot project using 1.3.5 version. Our application interacts with Mysql database. We have created a set of jpa-repositories in which we are using findAll, findOne and other...

Kivy Python "Invalid Indentation (too many levels)?

When i take the label "id:meaning" out of the code it runs fine. I cant see where the indentation is incorrect. Can anyone help, please? solved Click the Format tab in IDLE then click toggle...

.NET WebSockets forcibly closed despite keep-alive and activity on the connection

We have written a simple WebSocket client using System.Net.WebSockets. The KeepAliveInterval on the ClientWebSocket is set to 30 seconds. The connection is opened successfully and traffic flows as...

Error during SonarQube Scanner execution with SCM provider autodetection failed

I am using sonar swift plugin and setup sonar in osx.I am using sonar 6.1 , sonar-runner 2.8 and backelite-sonar-swift-plugin-0.2.4.jar file. After run ./run-sonar-swift.sh it gives following...

VHDL process get activated when the sensitivity list isn't changing

Process 2 keeps getting activated when there isn't a change. I have a board to test my code, and the state will change when I flip the clock(I set the clock as a button). In my code, the state...

Check to see if CMD is idle when used as a process

Problem: Issue with the number of files passed to CMD utility. Desired Solution: Way to be able to check that CMD has finished converting file before incrementing loop. I'm running a utility in...

Invalid Syntax with name input

I'm new to programming and Python. I am attempting to write my first program, however I keep getting an "Invalid Syntax" error for these few lines of code. This is all I am trying to get down pat....

AttributeError: module 'datetime' has no attribute 'now'

I am learning Python on my own. Now I have encountered some problems. Below is my code which copy from the video who running well. import datetime print(type(datetime)) d1 =...

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work prior to php files making there way main...

Why redirections on my site take me to azure.websites.net instead my domain?

I have configured my web app to time out on idle by setting the following in the Startup.auth.cs file: app.UseCookieAuthentication(new CookieAuthenticationOptions { ExpireTimeSpan =...

How many Kafka consumers does a streaming query use for execution?

I was surprised to see that Spark consumes the data from Kafka with only one Kafka consumer, and this consumer runs within the driver container. I rather expected to see, that Spark creates as...

How to detect and rollback a forgotten programatic transaction

I'm working on an web application based on spring (spring-boot 1.5.13.RELEASE) connect to a MySQL 8 database. We choose to work with tomcat jdbc pool (the default pool for spring-boot). Production...

Ansible: Run command as different user but not with sudo

My overall aim is to restart pulseaudio for a specific user via ansible (so if you have a better idea how to do this, I am open to hear it :) ) I want to run the following command as the user...

What is the lifetime for a variable stored in service worker?

For example i declare a global variable in service worker like var cacheVersion = "v1"; // line no 1 in sw.js what is the lifetime for this variable?. will this variable be there until service...

Unity: Animation won't play on trigger

Im having trouble to let Unity play my animations. I gave my character an Animator. In this Animator I have this Animations: The trigger between these Animations are working fine and are running...

Why/How too much logs impacts my application's performance?

I just recently read that too much logging impacts the performance of our application. But according to me as we know logging is an IO-bound job (like sending a stream of bytes to console or...

Compile Asset Catalog Error in Xcode 13 with SwiftUI 2.0

, I have a really big error , my project don't find my assets, all time I delete the assets for the project in the copy Bundle Resources and my project works, but if I added it throws me this...

connect to unix:/run/php/php8.0-fpm.sock failed (13: Permission denied) while connecting to upstream

I was trying to install Firefly III on Ubuntu 20.04 and ran into a PHP error. Seems pretty generic, but I cannot find anything specific online on how to fix this. Hopefully some of the info below...