Windows version of macOS Sierra's Console app

I've been playing around with the unified logging system using os_log_debug and os_log_info and I really like how clean the logs look like on the console app. The only gripe I had with this is that these kind of inputs are not available on device l...
more »

2017-08-28 17:08 (0) Answers

Character encoding Mac vs. Windows

A friend has a text file on his Mac that contains the following line Akamai's profits When I open the same file on Windows, it reads AkamaiÕs profits Does anyone have a guess which encoding is being used here or where else this difference may ...
more »

2017-08-26 09:08 (1) Answers

Change file names with powershell DMY -> YMD

I have to change alot of files on a Windows computer and I will be using Powershell to do it. The file names are like name_name_DDMMYYYY_XXXXXX.bmp John_Doe_03062009_123456.bmp John_Doe_27122016_567890.bmp I would like to have it sort it like ...
more »

2017-08-25 00:08 (1) Answers

URISyntaxException on Mac but not Windows

I've been having this issue when I use URL.toString() on Windows I get an exception saying: Illegal char <:> at index 4: file:\C:_workspace... And whenever I use URL.toUri() I'm getting: URISyntaxException: Illegal character in path at...
more »

2017-08-18 10:08 (0) Answers

Facebook sdk key hash too short

I recently tried to integrate the facebook-sdk into one of my Unity projects, the implementation process went fine however in order to make use of the facebook-sdk api's I need to generate a key-hash (debug and release). I tried it with cmd since th...
more »

2017-08-17 03:08 (1) Answers

Access to a X509 certificate with private key

I was just wondering about the following scenario: I have a certificate containing a private key in my Windows certificate store and would like to use it for signing stuff. Is it possible to let Windows do this, so that I do not need to make the priv...
more »

2017-08-16 07:08 (0) Answers

Workaround for 'Access is denied' for LocalService

I have a Windows service that performs some network-related actions on behalf of the logged-in user who configures the service using a separate front-end UI. The UI and the Windows service communicate using a socket interface, i.e., the UI sends com...
more »

2017-08-11 20:08 (1) Answers

Python script dont work on windows xp

In linux this script work without errors. But on windows scritp write json file without ] (close bracket) How to fix next error? P.S: in windows, python version 3.4.3 json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, ...
more »

2017-08-11 14:08 (0) Answers

URI url with "&" not coping complete

Based on this post, I've managed to get this to work but whenever I pass an URL with an "&" on it, the link doesn't came all the way complete to IE. For example:
more »

2017-08-10 23:08 (0) Answers

Roles, Groups and Users

I have created a Group and added a user to that Group. The User shows as being a member of the group. (This is a Win 10 machine) When I Iterate thru the groups that the user is a member of, the iteration fails on the last entry (I suspect this is...
more »

2017-08-10 20:08 (0) Answers

Integer addition with overflow on a struct

There is the ULARGE_INTEGER union for compilers that don't support 64 bit arithmetic. What would happen in the following code if the addition on the last line overflows? ULARGE_INTEGER u; u.LowPart = ft->dwLowDateTime; u.HighPart = ft->dwHigh...
more »

2017-08-07 07:08 (1) Answers

How to simulate a keypress

I know about AutoHotKey but I want to make my own program for e.g. make it press F5 every 10 seconds. I searched the internet and Stack Overflow but did not find a solution Is there a way to do it in C or not? I am using and targeting Windows 8.1 ...
more »

2017-08-06 12:08 (1) Answers

Twitter/twemproxy on Windows

Is any chance to run twemproxy on windows server? Is there a Windows port of twemproxy? Or similar program for Windows? Why twemproxy on Windows? Because we have web applications that running under IIS. I want to reduce network communication betw...
more »

2017-08-04 15:08 (0) Answers

Windows 10 lock screen image web API

There is a known way how to find already downloaded lock screen images on the disk. There is also an app called SpotBright which can download multiple Lock Screen images. However, where are the images downloaded from? What is the URL / API the Windo...
more »

2017-08-04 11:08 (0) Answers

Instruct stack to use the already installed MinGW

I have msys2 installed separately from GHC. MinGW toolchain is installed inside of the msys environment. Now I'm running into issues with some native libraries that work when I use them outside of Haskell, but don't work when ran from Haskell code. ...
more »

2017-08-02 14:08 (0) Answers

Gradle not found java class path

I set JAVA_HOME path - C:\Program Files\Java\jdk1.8.0_112 and add to the path next links - %JAVA_HOME%\bin and %JAVA_HOME%\lib but when I try to build Gradle project I get the error: Caused by: java.lang.IllegalStateException: Could not find to...
more »

2017-08-02 11:08 (0) Answers

Check if GUID is empty (in C)

I want to check if a GUID structure is empty/all fields are 0. This is the code I wrote: #include <windows.h> static BOOL IsEmptyGuid(const GUID * const pGuid) { return \ (pGuid->Data1 == 0) && (pGuid->Data2 == 0) &a...
more »

2017-07-31 10:07 (2) Answers

Stack and git are incompatible in Windows 7?

I have been using Stack for dependencies management and building system for Haskell programs in Windows 7 Pro without problems. stack --version Version 1.3.2, Git revision 3f675146590da4f3edf768b89355f798229da2a5 x86_64 hpack-0.15.0 I have...
more »

2017-07-28 00:07 (0) Answers

Does Python have a 8KiB bytes long file I/O cache?

I'm investigating file I/O performance in Python 3.6.0. Given this script which consists of 3 tests: #!python3 import random, string, time strs = ''.join(random.choice(string.ascii_lowercase) for i in range(1000000)) strb = bytes(strs, 'latin-1') ...
more »

2017-07-27 16:07 (1) Answers