Is it possible for a native OS X app to read and copy the Spotlight search index?

I don't want to alter the index in any way, simply read it, monitor it for changes, and replicate it. It would be with a native app/service, that would run in the background. I"m assuming I'd be...

Trouble passing XML text to RIA Services from my client

I am trying to pass the following XML text to RIA services in a query operation that returns a queryable sequence of entities in response: <?xml version="1.0" encoding="utf-8"?> <project> <item...

How can I verify the authenticity of requests from a php app to my web service?

I'd like to accept requests from a php app to my web service. How can I verify that requests made to the web service come from the php app (or indeed any authorised source) and are not forged? My...

Overloading class for both volatile and non-volatile instances

I am writing a class that needs to support both volatile and non-volatile instances (volatile instances use atomic operations, non-volatile instances use regular operations), and am wondering if I...

Delphi: Try to find open TCP ports but doesn't detect any open port

I have two processes that must run on two free TCP ports on the PC. This must be a painless out-of-the-box process for it's user, I want to auto detect free ports to avoid conflicts and apply...

Node.js http-proxy drops websocket requests

Okay, I've spent over a week trying to figure this out to no avail, so if anyone has a clue, you are a hero. This isn't going to be an easy question to answer, unless I am being a dunce. I am...

Pool to Celery group

I'm using Celery to launch a task, this task includes a port scanner which is built using multiprocessing and ThreadPool. When I launch it I get the following error, looking for an alternative or...

C printf() formatting: Float doesn't seem to right justify.

Something weird is happening when I try to format this output, it seems like the floats aren't right justified? I want the decimal points to line up... Am I doing something wrong? if (flushParams...

Set up port forwarding on Windows 10 NAT Virtual Switch

I found this excellent blog post which shows the steps to set up a NAT Virtual Switch, which I...

Running an external executable in Python interactively

A simple C program is compiled using gcc test.c -o test.exe: /* TEST.C */ #include <stdio.h> #include <string.h> #define TRUE 1 int main (void) { char p[256]; strcpy(p, "start\0"); ...

Scanning Internal IP range for something running on port 9922 VBNet

I work for a clocking systems company, and sometimes don't have access to router and other tools to find something on network. So I've made this but get errors. I need to be able to scan internal...

port scanning an IP range in python

So I'm working on a simple port scanner in python for a class (not allowed to use the python-nmap library), and while I can get it to work when passing a single IP address, I can't get it to work...

Creating a string from a map

I'm currently working on a project where by using context free grammar rules, I will generate random sentences. Right now, I'm working on creating a function that will take in a hash, and traverse...

Create IP and Port Scanner Python

I am having trouble creating an port scanner that scans IP addresses and ports at the same time. The port scanning part of the code works fine but I cannot add the IP addresses in correctly and...

Why is my Port Scanner not scanning ports in Python?

My Port Scanner is scanning (I assume) ports. However even with active ports (such as port 80) it still shows that the port is closed. What am I doing wrong? Code: #!usr/bin/env python import...

There is something wrong with my building app with py2app

It works well with $ python setup.py py2app -A, but not with $ python setup.py py2app. What should I do to solve the problem? Could you help me? The following is what's in my...

Random Sentence Generator in Ruby : How to randomly select values on specific key in hash?

I'm working on a Ruby verison of RSG and somehow stuck on the sentence generating process (...) so I managed to implement all functions like read, convert to hash...,etc. But problem is how to...

External Dependency Using cloud foundry CLI not working

I am trying to write a script to create external dependency service on cloud foundry, the script executes successfully but it not displaying IPs on web panel. Even when i bind the service with app...

android.media.AudioRecord: Error code -20?

I am trying to write a networked audio application for Android. Code that I previously thought worked is suddenly crashing and burning, with the following output given at the LogCat at error...

Go channels, tcp/ip portmap not returning all open ports

I have been learning Golang to move all my penetration testing tools to it. Since I like to write my own tools this is a perfect way to learn a new language. In this particular case I think...

CherryPy in Python2.7 OS Centos7 64 bits

I am trying to do some utilities using CherryPy in Centos7 64bits. I get the following error while trying to run the most basic CherryPy example: $ cat /etc/os-release NAME="CentOS...

KeyError: 'collectstatic' When deploying the Django application to pythonanywhere

During the implementation of my Django application on pythonanywhere for the first time I encountered such an error. Previous applications with a very similar structure were able to be implemented...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

Gradle build doing nothing on WSL

I'm writing a Kotlin program, and using Gradle as the build system, as is customary in that language. I usually work on Windows, but it's time to start testing on Linux, so using WSL for that....

how to offload precise ADC oversampling with RISC-V GD32VF103CBT6 Development Board

I'm hoping to work up a very basic audio effects device using a RISC-V GD32VF103CBT6 Development Board. I have managed to do some hardware-interrupt-based sampling with another MCU, but I'm a bit...

How to fix ModuleNotFoundError: No module named '_mysql'?

Environment: Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-45-generic x86_64) Server version: Apache/2.4.29 (Ubuntu) Python 3.7.5 Flask 1.1.2 Werkzeug 1.0.1 We deployed a flask application on our VPS...