Windows

Kernel objects Linux vs Windows?

Couple days ago, I had a technical interview in one big company for junior or trainee position. Questions was about Linux OS. One of them was about kernel objects. I failed. I read Advanced Linux Programming about processes and threads, and there wasn’t anything about kernel objects. Interviewer told me, read Jeffry Richter’s book. “Windows via C/C++”, and that Windows…
Read more

Setting the wallpaper in Windows using Java

I’m trying to set the wallpaper in Windows 7 using Java. I’ve tried using the code from the answers here and here. It works perfectly in Windows 8 and 10, but not in 7. There are no errors, it just doesn’t do anything. I’ve tried setting different 1920×1080 wallpapers (that’s the resolution set in the Control panel) and different file…
Read more

Batch loop not working as expected

I am trying to create a batch file which scans a folder for files for /R D:pathimport_ordersxml_files %%f in (*.xml) do( copy %%f “destination” if errorlevel 0 move %%f “D:pathimport_ordersxml_filesarchive” ) But it won’t work. If I execute it, it only prints the first line of code. Also: is my second command ok? I want to move the copied file…
Read more

How to fix "This app has been blocked for your protection" error message in Windows 10?

Windows 10 UAC has been blocked my application and every time showing “This app has been blocked for your protection” error message. I have searched online for help but none of theme helped me to fix this issue. I have applied properly even I have restarted my PC couple of times after each individual actions. I have removed cache, refreshed…
Read more

JavaFX: Editable ComboBox value- and selectedItemProperty in Windows 8 vs in Windows 7

It seems like ComboBox behaves a lot different in Windows 7 compared to Windows 8. Consider the following example: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.ComboBox; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class TestCombo extends Application { @Override public void start(Stage stage) { VBox root = new VBox(); ComboBox<String> comboBox = new ComboBox<String>(); comboBox.setEditable(true); comboBox.getItems().addAll(“One”, “Two”, “Three”); ComboBox<String> dummyBox = new ComboBox<String>();…
Read more

How to correctly create a nim/nimrod windows dll

I want to create a dll from nim code. But i failed to register some other exports than “NimMainInner”. Even if i try this simple example its not working: proc Hellow(): cint {.exportc.} = echo(“hello”) return 1 i’ve compiled it with nim c –app:lib libh4x.nim and nim c -d:release –app:lib –no_main libh4x.nim i use Nim Compiler Version 0.11.2 (2015-05-04) [Windows:…
Read more

Monitoring Trusts windows server 2012

Hi I am new in vbscript an want to develop a script which lists trusts of a domain like netdom query trust But while running the script I am getting error. strDomain = “mydomain.com” set objWMI = GetObject(“winmgmts:” & strDomain & _ “rootMicrosoftActiveDirectory”) set objTrusts = objWMI.ExecQuery(“Select * from Microsoft_DomainTrustStatus”) for each objTrust in objTrusts objFile.WriteLine objTrust.TrustedDomain objFile.WriteLine ” TrustedAttributes:…
Read more

Windows 10 UWP – stop background task if foreground app is running

How I can prevent background task from running if there are foreground app being executed? Using Universal Windows Platform for my app. My background task is checking for new items on some site and sends a toast when there are new things available, but I wan’t to prevent toast sending if user is running application right now. I have tried…
Read more

How to docker any android application

I have heard about this docker recently.I want to dockerize my android application.I have installed DockerToolbox 1.8.2a. It has created icon for Docker quickstart terminal, virtual box and Kitematic. But now i dont know how to proceed.What is dockerfile,docker image. I just have a vague idea that there is some docker hub and docker container.But seriously cant understand what isthis…
Read more