Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a .Net Micro Framework app that is failing to write bytes to a microSD card. When I take the card out of the device and look at it on my PC using a microSD to SD adapter the PC cannot write to the device as it appears to be locked. I'm trying to work out if the lock is a faulty adapter (the switch on the side of the adapter is set to the unlocked position) or the sate of the microSD card itself.
MicroSD cards have no visible way of locking and unlocking them but is there any setting in the card itself that locks it?
I have tried searching but most threads I can find (e.g. this one and this one, to choose two SO ones) talk about the adapter. Is there locking in the microSD specification?
Duskwuff gave an answer on the SuperUser SE, pointing out that:
"most computer-based SD card adapters are unable to execute arbitrary commands on an SD card" but that there are commands "available to (and used by) embedded devices"
Commands such as CMD27 (PROGRAM_CSD) "can be used to set bits which control temporary or even permanent write protection" and CMD42 (LOCK_UNLOCK) "can even be used to turn on and off password-based read protection".
There are more details about these register commands in Appendix C.1 SD Mode Command List of Part E1 of the SDIO Simplified Specification
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Just a basic question. Does full disk encryption (such as bitlocker) encrypt the Bios or just the OS. I know a TPM is required, so that makes me think the Bios is encrypted but I just wanted to be sure.
Not exactly sure why you're asking... actually encrypting the BIOS doesn't really make sense, since you don't store any data there that would need to be protected from curious eyes.
And flashing a modified, unsigned firmware image is usually not easy on a modern system, at least not without having physical access.
To answer your question... bitlocker only encrypts the harddisk, respectively the OS.
If you want to prevent users from accessing the BIOS then you should check whether your BIOS allows you to set a password. Many modern systems allow locking the BIOS via password. Just make sure you don't forget it, else you're locked out of your system as there's no regular recovery method.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Update:
Based on down votes I got, I decided to explain why I am asking this question.
I am writing a C# application that use the default printer.
The problem is when printing in Windows 10 through my application, the default printer is not returned as expected.
After some research, I found that it is a new feature developed by Microsoft: the last printer used for print is being the default one. However, that it is possible to turn this feature off.
Now, back to the original post:
I have Windows 10 installed and I am trying to turn off the "Let Windows manage my default printer" but I cannot find this option.
According to this answer, I tried to turn it off through regedit but the instance of LegacyDefaultPrinterMode is also not there.
Any idea why I cannot find turn off option?
Is there any other alternative to turn this flag off?
How to disable automatic default printer manager
1- Use the Windows Key + I keyboard shortcut to open Settings.
2- Navigate to Devices, then go to Printers & scanners, and disable the Let Windows manage my default printer.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
When i compile a new project in Delphi 7 IDE , then i scan using http://www.virustotal.com my Delphi Project identifies it's ivected 8 Virus:
I reinstall my Windows OS and check my PC Hardisk using Dual Boot Linux Ubuntu but i can't find virus on my PC.
Please help me :'(
I checked on the name of one of the reported viruses in your screen shot and came up with this description from McAfee:
This software is not a virus or a Trojan. It is detected as a "potentially unwanted program"
(PUP). PUPs are any piece of software that a reasonably security- or privacy-minded computer
user may want to be informed of and, in some cases, remove. PUPs are often made by a
legitimate corporate entity for some beneficial purpose, but they alter the security state
of the computer on which they are installed, or the privacy posture of the user of the
system, such that most users will want to be aware of them.
It lists aliases for this from other virus detectors, and the list includes "PUA.Win32.Packer.BorlandDelphi" from clamav. I think that may be the answer. Are you compressing your exe? Regardless, this has to do with some characteristic of the Delphi-generated EXE file and not an actual virus or trojan.
Is your program using the Indy library? Some virus scanners had signatures including Indy code because there were Trojans that used it.
I see two possibilities:
This is a false positive. Your program is doing something that looks like virus behaviour. Only you can tell what your program does.
This is a re-infection of the executable you just compiled.
If you have anti-virus software on your computer and other executables are clean, it must be case 1.
What surprises me is why you would upload your program to Virustotal. What's the reason for that? Did something happen that you have not told us?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I installed XE4 in a Windows7 VM under VMWare.
My question is, what aspects of the VM does the Delphi protection system take into account in deciding whether I have consumed (another) one of my permitted installs? I imagine that it takes notice of the VM name and the user account name in the VM, but are those correct and are there any others?
I'm asking because inter alia I don't want to find that tinkering with the VM's set-up exhausts my permitted installs (and the fact that I may be able to get the count increased while Embarcadero is still in business is no guarantee that I will be able to at some arbitrary point in the future).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
In a SUSE machine with multiple GPUs, is it possible to quickly and programmatically tell which GPU (or GPUs) are rendering displays?
The goal is to automatically detect a card eligible/available for use in debugging.
(One cannot use cuda-gdb on a card that is rendering a display, and guessing is... inelegant.)
Non-programmatically, you can use the NVIDIA control panel (if you have a proper nvidia linux driver loaded for your GPUs, you should just be able to do nvidia-settings at a terminal to launch the control panel) to determine which GPU is connected and/or rendering to which display.
Programmatically, it's a bit more complicated because you have to define what you mean (programmatically) by "the display". But as an example, if you have only one display (thus there is no confusion about which one you have in mind), you can use the NVIDIA API that nvidia-settings is built on (NVCtrl), to get at the information programmatically.
And with CUDA 5.5, you can use cuda-gdb on a GPU that is rendering a display, but it requires a cc 3.5 or better GPU and some extra setup.
I suppose another approach (possibly simplest, programmatically) would be to use the NVML function nvmlDeviceGetDisplayMode
NVML is the api that the utility nvidia-smi is built on. So you can manually query the display mode of devices that way as well.
Since you've edited to indicate a programmatic approach, I think the first method I would recommend is the NVML one. If you have no other selection criteria, simply cycle through the GPUs until you find one for which display mode is disabled. If you want to be sure that a particular GPU has it's display mode disabled, be sure to exclude it from your X configuration for your specific distro (e.g. be sure it is not referenced in xorg.conf, on many linux distros)