Automatically retrieve EXE file version to embed in NSIS installer metadata

I am attempting to remove one more step in my application's release process by automatically retrieving versioning info from my executable (in this case, a .NET application). Up to this point, I...

Best practice for an AJAX call to running C code?

I have an underlying C application driving some pretty intensive hardware. I'm currently designing a web interface for the device, the majority of it's function is to present status information to...

Writing recursion in swi-prolog

I have successfully connected PHP with Prolog and managed to query the desired knowledge base that resides in knowledge_base.pl file and managed to echo the results via php exec function. I...

get file content from url, then extract keywords

I have this json page: https://www.googleapis.com/books/v1/volumes?q=9789264187061 which looks like this: { "kind": "books#volumes", "totalItems": 1, "items": [ { "kind": "books#volume", ...

Is there a way to listen for the tempo/bpm of audio playing in Android?

The Android app I'm building has to listen to music (either playing on the phone or picked up by the device's mic) and then do something based on the music. So what I was thinking of doing is to...

preg_replace in simple html dom

I'm trying to grab the latest news from a website and include it on my own. This site uses Joomla (ugh) and the resulting content hrefs are missing the base href. so links will hold...

PHP Sessions don't carry over to the next page (Rackspace Cloud)

I have a server on rackspace and it's needed for sessions. I've tested these exact files on another server from mediatemple and they work perfectly, but I just can't seem to get it to work on...

PHP Session won't keep array variables

I have an Index page with login form, a verification page called Login and content. Index is fairly simple: if logged in, redirect to Content, otherwise display login form and POST to Login...

C++ Boost Asio - UDP - How to send a file in 512 bytes blocks?

I'm implementing a TFTP server. I have to send a file to the client, and as 512 bytes blocks. My knowledge from UDP networking and Boost::Asio are very low... I'm based on the UDP async echo...

How to cope with negative prediction value in a linear regression implementation in PHP

I implemented code in PHP for linear regression, the idea was to take delivery date for each customer (however many delivery dates per customer there were in the DB) and then to use these delivery...

PHP countdown is not returning expired message but instead counting forward past set time

I'm having some problem with php not counting down till an expire message. I'm trying to create a promotional script which will run based on data set, it may be one day promotion like say Saturday...

PHP process http request from one page and display it on another

I come here with very little knowledge on web development trying to learn, so I ask for some patience in regards to my ignorance on the subject. It would be great if you could show me logical...

Endless 500 error, php sendgrid api

I'm running in to an issue getting PHP to connect to SendGrid (using their library) and send a message. Whenever I click the submit button on the form to send me a message, it runs through jQuery...

Adding plotstick-like arrows to a scatterplot

This is my first post here, thought i have read a lot of your Q&A these last 6 months. I'm currently working on ADCP (Aquatic Doppler Current Profiler) data, handled by the "oce" package from Dan...

One Page Contact Form PHP & Script

I am making a one page website, and I would like to add a contact form in one section. So I am working with PHP, thing is, I cant seem to find any base pre-made forms that do not open a new...

How to send data to specific sockets created using net.createServer() connection event?

I am used to perl and POE programming when it comes to sockets, and I am looking at using node.js for an application server that is not web based. I have JavaScript knowledge from writing webpage...

Programmatically Introduce Pauses or Long Delays into Alexa Skill Capturing Input

I work at a NLI company and I have just created a skill where I have pretty much an open mic session with our Alexa Skill through the Amazon Echo. Everything works fine and I can have an open...

invoking a console app from php

I am trying to achieve similar to what is being asked here https://stackoverflow.com/questions/3128809/running-console-app-from-php-script. But as i see no concrete answer here so reposting my...

AWS/PHP Mysql Api - too many connections

We are hosting an admin system on our AWS EC2 T2.micro instance. The admin is written in Angular and calls a PHP file to retrieve information. We are currently running into a "Too Many...

Kinesis agent install in docker fails on missing mirrors

I am trying to run a dockerfile that has worked for the past few months and since yesterday it started giving errors when using it on a new version of the same product. This is my dockerfile: FROM...

Bootstrap treeview how auto expand parent nodes?

I am using bootstrap treeview which is mostly working well, however when I load a new page from the menu link I want all the parent nodes of the selected child node to expand, does anyone know how...

Run Wscript.Shell Object to call Administrative Command Prompt for PsExec

I'm trying to call PsExec from a WScript.Shell Object in the form posted below (but am definitely open to alternatives). Set oShell = CreateObject("WScript.Shell") oShell.Run "cmd.exe /C...

Uncompressed, unencrypted, unaltered, raw transfer of real-time PCM audio data through WebRTC stream

I'm transferring a live audio stream between 2 Electron window processes using WebRTC. There are no ICE or STUN servers, or anything like that, the connection is established manually through...

Printing up a line in java console (reverse of '\n')

#Foreword I've seen some questions related to this in other languages and done quite some research on this. First, before we begin going down the rabbit hole, I must describe why I'm doing this....

Split an array of objects into new arrays in PHP based on object property

How is it possible to generate an array of array of objects where they are grouped based on the object property 'name'? I can do this in Javascript but not sure how to accomplish this in PHP. Here...

Problem With Echo Knowledge Base Wordpress Plugin

I use echo KB WordPress plugin to show my website Faqs. but the problem is I have 7 different categories and plugin supports only 6 categories for displaying items in tabs layout and when you add...

How to set alias for a non web-acessible folder in Yii2

Hi I made a module in my Yii2 basic application. I need a path to display an image in my view, but I can't get the path right. My web-accessible directory is located in C:/xampp/htdocs/basic and...

Keycloak 8 for Angular 8 / Java app: get error "An error occurred, please login again.." when login. All Dockerized on vps with Nginx, ssl, https, dns

Firstly, I inform you that i'm a junior developer. So I beg for your tolerance regarding to my question :) What I'm trying to do is a simple prod POC with Keycloak for an Angular 8 frontend with a...

Gatling exec block and session variables

I have multiple Gatling simulations that I am trying to structure in a way to reuse low-level calls (i.e. HTTP calls) while building different scenarios. For that reason I have the following...

Python and WebSockets - how to send from server to client without blocking?

Can anybody explain, or better yet provide a working example, of how to write a Python client and server where the server can initiate a send via WebSocket at any arbitrary time based on...