libcudart on system without a GPU
I have code which, based on the availability of GPUs, either runs a GPU ke el or the same code on the CPU. It does this at runtime and the program is always linked to CUDA. However, I may want to run on computers that don't have any GPUs. We tried installing the CUDA Toolkit on the computer, but lib...
Web Query with login details
I want to create a web query with that will add info like (Account used, use ame (emails), password) I created a web query already. Please find below the code. My problem is the fact that I have 5 accounts and I want to be able to logout and to login and I don't know how can I do this. The code is r...
UnityScript -- Point Gathering Script Malfunction
I have been working on this RPG for some time now and I have decided to add points and coins to the game that are dropped by an enemy. I have written the script and since it need to collide I have attached the rigidbody and the collider. Coins, points and health points all have the same script attac...
Linux USB Mass Storage Emulation
My purpose is to emulate an USB device locally in a Linux environment. I mean that I want to “mount” a local backing storage file (made with dd) as an USB device inside the root user workspace. After a Google search, I found the Linux USB Gadget API and the Mass Storage Function : http://www.linux-u...
OSX - Nginx on docker to forward docker app
Im new to docker and I was able to work with it on a Ubuntu machine and get access to a service hosted on this machine from an other (thank to nginx on the system). Since I need to do some dev from OSX I install Docker Toolbox witch include a light VM to run docker. I install one app I would like to...
Block Windows 10 P2P updates with a corporate firewall
I work for a small IT company that fix mostly Windows computers, and lately we have an huge issue with Windows 10 updates. When a new computer enters our network and starts downloading updates, it block inte et for every other PC. I've read that this is because of the new P2P mode, and if I manually...
freeing mlocked memory in linux
I'm ru ing caffe deep lea ing library on a graphics card and the library does some fancy stuff like mmap'ing some huge files into memory and passing buffers from ram to graphics card back and forth. After some time I noticed quite significant memory usage when nothing heavy is ru ing on the system (...
How do I change a single letter in a large text file
I have a large file file.dat, a database dump in a CSV format that looks like this: file_id,line_id,st_x,st_y,value1,value2,...value100 111111,1,22.22222,33.33333,0.1234567,0.246890,0.369258,... ..... It has several million lines. Suddenly I realized that I want to change the names of the columns: c...
Scp command is not working
I have first use ssh root@ip-address .And created a dump file over here with the name 'filess'mysqldump -uuse ame -ppassword db_name table_name > dump_name.Then when I am trying to download the file it is sayingscp root@ipaddress:~/ filess~/and when i type password scp: /root: not a regular file Let...
User accounts under WSL (Windows Subsystem for Linux)
I have noticed while browsing the Windows blog for information about the latest Insider Preview release (Build No. 14316), that the bash when installed gives you a root prompt by default. Notwithstanding security issues like rm -rf C:/ (WSL supports Windows filesystem access), can the sudo behavior ...
How to select only one drive when creating system image
I am trying to create a system image following this tutorial: http://www.tenforums.com/tutorials/5495-system-image-create-windows-10-a.html but because I have 3 inte al drives, C, D, H when I try to create a system image , I get not enough space error. My drives show up similar to this screenshot bu...
Why does Google's app-passwords ALWAYS wrong?
After I have enabled the two-step-authorization, I ca ot login my Gmail via Thunderbird anymore! And then, I have noticed that there is a way called app-passwords. So, I try it, but it not work. Thunderbird told me that "The Use ame or Password is invalid." Screenshoot And in the app-password contro...