Windows error 0x80000000, -2147483648

Detailed Error Information

HRESULT analysis[1]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[1][2]
DescriptionThe default facility code.[1][2]
Error Code0 (0x0000)

Questions

57votes
2answers

What are the 'shadow$_klass_' and 'shadow$_monitor_' variables for in java.lang.Object?

In the latest Android update (SDK 21), it appears that two new variables have been added to java.lang.Object: private transient Class<?> shadow$_klass_; private transient int shadow$_monitor_; I notice that shadow$_monitor_ is briefly used in hashCode(): public int hashCode() { int lockWord = shadow$_monitor_; final int lockWordMask = 0xC0000000; // Top [...] read more
java
android
android-5.0-lollipop
art-runtime
13votes
0answers

Why does this function run so much faster when it makes an extra read of memory?

I'm currently trying to understand the performance properties of certain loops on x86_64 (specifically, my Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz processor). Specifically, adding an extra instruction to read memory inside the body of the loop almost doubles the performance, with the details not being particularly important. I've been using [...] read more
performance
assembly
clang
x86-64
cpu-architecture
10votes
1answer

How to get the processes that have systray icon

I am trying to create application that get the list of processes that have systray icon. I searched alot and found number of references: 1. http://www.raymond.cc/blog/find-out-what-program-are-running-at-windows-system-tray/ 2. https://superuser.com/questions/708674/how-to-find-out-what-process-a-system-tray-icon-corresponds-to 3. Which Windows process is displaying a given taskbar system tray icon? 4. https://social.msdn.microsoft.com/Forums/vstudio/en-US/53e27f60-37af-406f-bbdc-45db2bd3dee6/how-to-find-a-system-tray-process 5. https://social.msdn.microsoft.com/Forums/vstudio/en-US/4c4f60ce-3573-433d-994e-9c17f95187f0/finding-which-applications-and-services-are-listed-in-the-system-tray?forum=csharpgeneral 6. http://www.codeproject.com/Articles/10497/A-tool-to-order-the-window-buttons-in-your-taskbar 7. Get ToolTip Text [...] read more
c#
c++
winapi
taskbar
9votes
1answer

Should using MOV instruction to set SS to 0x0000 cause fault #GP(0) in 64-bit mode?

This question is inspired by a Reddit question in r/osdev except that this question focuses on the SS register. One may say RTFM (ISA entry for MOV), but when this question comes up it can get varying answers even among OS developers. -------------------------------------------------------------------------------- Question: Should using the MOV instruction to [...] read more
assembly
64-bit
x86-64
nasm
osdev
8votes
2answers

Sum of Two Integers without using "+" operator in python

Need some help understanding python solutions of leetcode 371. "Sum of Two Integers". I found https://discuss.leetcode.com/topic/49900/python-solution/2 is the most voted python solution, but I am having problem understand it. * How to understand the usage of "% MASK" and why "MASK = 0x100000000"? * How to understand "~((a % MIN_INT) [...] read more
python
6votes
1answer

Replacing __aeabi_dsub to save space (-flto issues)

I'm trying to cram a lot of code into a reasonably small ARM microcontroller. I've done a massive amount of work on size optimisation already, and I'm down to the point where I need double arithmetic, but __aeabi_ddiv, __aeabi_dadd and __aeabi_dsub are some of the biggest functions on the whole [...] read more
c
gcc
arm
embedded
lto
6votes
2answers

How to check if a float is infinity/zero/denormal?

int is_infinity/is_zero/is_denormal(float f){ //do something, return 0 or 1 } This is what I did for checking if a float is negative. I want to do something similar for the other functions, but I'm not sure how. int is_negative(float val){ union sp_object copy; copy.frep = val; if((copy.irep & 0x80000000) != [...] read more
c
floating-point
5votes
2answers

Get CPU and GPU Temp Using Python WITHOUT ADMIN ACCESS - Windows

I posted this question, asking how to get the CPU and GPU temp on Windows 10: Get CPU and GPU Temp using Python Windows. For that question, I didn't include the restriction (at least when I first posted the answer, and for quite a bit after that) for no admin [...] read more
python
python-3.x
windows
windows-10
temperature
5votes
1answer

Different performance of "if" and "if else" in Java

I noticed that if else / ternary (condition ? a : b) assigment is faster than conditional assigment in if only statement. I performed JMH benchmarks on different JDKs but i will focus on JDK 12. (ops / sec, higher is better) JMH benchmark [https://i.stack.imgur.com/nxuCG.png] Source code: @State(Scope.Benchmark) public class [...] read more
java
performance
jvm
jmh
4votes
1answer

Why does wine need a kernel 3G/1G memory split to function?

When trying to run wine on stock Raspbian, you get a message like this: Warning: Memory above 0x80000000 doesn't seem to be accessible. Wine requires a 3G/1G user/kernel memory split to work properly. This is supposedly a kernel setting, which can be configured during compile time. But why does wine [...] read more
linux
wine
raspbian
4votes
3answers

What hardware is at physical address 0x80000000 on powerpc New World Macintosh?

Open Firmware device tree gives no clue what device might decode at physical address 0x80000000 to 0x8008200 on a G4 New World Macintosh. The mmu has three adjacent Virtual=Real translations for that block. They are the only address translations reported between the top or physical dram at 20000000 and the [...] read more
mac
motherboard
firmware
computer-architecture
powerpc
4votes
2answers

Custom linear congruential generator in JavaScript

I am trying to create a custom linear congruential generator (LCQ) in JavaScript (the one used in glibc). Its properties as it's stated on Wikipedia are: m=2^31 , a=1103515245 , c=12345. Now I am getting next seed value with x = (1103515245 * x + 12345) % 0x80000000 ; // [...] read more
javascript
canvas
random
functional-testing
lcg
4votes
0answers

Reverse engineering Hikvision camera firmware and LiteOS bootloader

I have a Hikvision IP camera that I'm doing security research on. (Model DFI6257E, looks like a Taiwan exclusive model. ) After dumping firmware from its flash and analyze it with binwalk, I found it intriguingly difficult to understand how its working. Almost like they are trying to hide things. [...] read more
embedded-linux
reverse-engineering
ip-camera
hikvision
3votes
0answers

rcu_sched detected stalls on CPUs/tasks

I'm running many VMs using Virtualbox. These VMs use Debian 10.3 (the latest version). And I'm experiencing bugs / freezes as you can see below. It looks like this is happening on the VMs where I connected USB devices (Wifi USB dongles) in Virtualbox : i'm disconnected from the SSH [...] read more
linux
virtualbox
debian
cpu
kernel
3votes
1answer

Debian Server Keeps Restarting Unexpectedly

My laboratory' server with Debian-Wheezy-7.8-Stable keeps restarting few times after some hours of uptime without any notification. This server is set up for considerably high load numerical computation as well as parallel computation. I have printed log from var/log/messages and last reboot but I found it hard to understand this [...] read more
linux
debian
hardware
uptime
3votes
1answer

Why does 'aptitude safe-upgrade' cause Ubuntu's boot to hang on "Waiting for root file system"?

I launched an Ubuntu EBS instance on Amazon EC2 using the Ubuntu's very own latest AMI for 10.04 Lucid, ami-ad36fbc4` After getting the instance up, I ran the command sudo aptitude safe-upgrade which seems to have upgraded the kernel from vmlinuz-2.6.32-318-ec2 to vmlinuz-2.6.32-340-ec2 Now the instance won't boot, it gives [...] read more
ubuntu
amazon-ec2
apt
grub
amazon-ami
3votes
6answers

Intel VT-x not working on Dell Precision M4400 (P8600 processor)

I have a Dell Precision Laptop model M4400 with an Intel Core 2 Duo P8600 processor. In the BIOS, there are several options for enabling virtualization technology (VT-x). I've toggled all of these options ON. My problem is that neither Virtual PC 2007 nor Sun's VirtualBox will allow me to [...] read more
windows
virtualization
windows-vista
dell
64-bit
3votes
1answer

Unity3D Firebase Access Violation

I use FirebaseAuth.unitypackage and FirebaseDatabase.unitypackage packages in my project. When I want to test SignInWithCredentialAsync and SetRawJsonValueAsync operations in the editor, the editor crashes. When I checked the error.log, it says: FirebaseCppApp-5.0.0.dll caused an Access Violation (0xc0000005) in module FirebaseCppApp-5.0.0.dll at 0033:b7cf5c00. Full error.log: Unity Editor [version: Unity 5.6.3f1_d3101c3b8468] FirebaseCppApp-5.0.0.dll [...] read more
firebase
unity3d
firebase-realtime-database
firebase-authentication
2votes
2answers

Windows installer fails to update itself with error 0x80073701 ERROR_SXS_ASSEMBLY_MISSING and will not load any other updates

Another symptom is that it claims that there has been no last update installation ever. It quotes a null in a non-existing source code file on somebody's d: drive: 2014-12-27 00:12:17, Error CSI 00000351@2014/12/26:23:12:17.141 (F) d:\win7sp1_gdr\base\wcp \componentstore\csd_locking.cpp(324): Error STATUS_SXS_ASSEMBLY_MISSING originated in function CCSDirectTransaction::LockComponent expression: (null) And it appears from the [...] read more
windows-7
64-bit
windows-update
updates
2votes
0answers

Date Accessed Field Not Updating WIndows 10

I've added the "Date Accessed" field to windows file explorer, however, it is not updating when opening media files (pictures, videos, etc.) I've edited the "ntfsDisableLastAccess" registry key to "0x80000000" and have tried running the command "fsutil behavior set disablelastaccess 0" and rebooting but nothing seems to work. It's worth [...] read more
windows-explorer
windows-registry
metadata
2votes
1answer

keyboard input not working in linux login?

i recently upgraded my parrot security OS from 3.7 to 3.11. The problem is when i boot into it, the os is not detecting keyboard inputs. Hence i cannot enter my password at login and access the system. However i can access the root terminal from recovery mode. The contents [...] read more
linux
debian
xorg
linux-kernel
parrot-os
2votes
0answers

system monitor showing 25 ghz cpu speed, could that have any bad effect?

enter image description here [https://i.stack.imgur.com/ZKl0f.jpg] I have a water cooled system, but.... I don't have that kind of wallet to be able to pull that out. Is anyone of you that had this problem? what I want to know is if there could be any issue relate to this bug. [...] read more
cpu
2votes
4answers

Alsa USB-Audio hotplug

My new USB audio speaker appeared as the second device in Alsa. I managed to make it the primary one: $ cat /proc/asound/modules 0 snd_usb_audio 1 snd_hda_intel $ cat /proc/asound/cards 0 [Speaker ]: USB-Audio - uBoom Q Speaker uBoom Q Speaker at usb-0000:00:1d.1-1, full speed 1 [Intel ]: HDA-Intel - [...] read more
linux
alsa
hotplug
usb-audio
2votes
1answer

Add Windows Vista to the grub menu

I had Windows Vista installed on my computer and created a partition to install Fedora 15. I chose the option to install fedora on any free space, so it should have installed on the empty partition. When I boot up, there are two boot options. Fedora and Other. When I [...] read more
linux
windows-vista
fedora
grub
bootloader
2votes
1answer

Python and mod_wsgi path issue

I have an AIX 6.1 system that I've compiled and installed: * Apache 2.2.21 (into /usr/local/mercurial) * Python 2.7.2 (into /usr/local/bin and /usr/local/lib) * mod_wsgi 3.3 (with the AIX fix #1 described here) * Mercurial 2.0 (system-wide) However, when Apache starts, I get the following message in error_log: IOError: invalid [...] read more
apache-2.2
python
mod-wsgi
aix
mercurial
2votes
2answers

C bitwise AND gives different result with -O0 and -O2

I'm working on a PC emulator using both Bochs and DOSBox as references. When emulating the "NEG Ed" instruction (two's complement negation of a doubleword) I'm getting different results if I compile with -O0 rather than -O2. This is a test program with just the relevant bits: #include <stdio.h> #include [...] read more
c
gcc
2votes
2answers

can PyAudio handle non-interleaved buffers?

I'm having trouble passing non-interleaved stereo data to PyAudio. UPDATE (REWORDING QUESTION SUBSTANTIALLY) The examples given in the PyAudio docs show how to pass interleaved data with a callback. A buffer of interleaved stereo data has a shape of (nframes, 2), and looks like this: array([[f0l, f0r], [f1l, f1r], [f2l, [...] read more
python
numpy
pyaudio
2votes
1answer

Why this little program output True? Is GCC's overflow protection?

#include<stdio.h> void main(){ int x = 0x80000000; if((x-1)<1) printf("True"); else printf("False"); } this is from csapp practice 2.44, if this is compiler's operation, how to close it? read more
c
gcc
overflow
2votes
3answers

Glide fails to load resources when trying to load an image from a URL

i use glide to load image into Drawable object. When i try to load local image, it works fine. But, i switch to image from url, it won't work and i get this error message : W/Glide: Load failed for https://www.dropbox.com/s/nx8ufy3jxc9urgv/ic_reward_3rb.png with size [-2147483648x-2147483648] class com.bumptech.glide.load.engine.GlideException: Failed to load resource [...] read more
android
kotlin
android-glide
2votes
1answer

How to make Typescript enum with implements interfaces

How to make Typescript enum with implements interfaces i current has this 2 enum all enum ENNAME keys should only include of enum POSTAG keys export enum POSTAG { BAD = 0x80000000, D_A = 0x40000000, D_B = 0x20000000, D_C = 0x10000000, } export enum ENNAME { D_A = 'a', D_B [...] read more
javascript
node.js
typescript
types
enums
2votes
1answer

Does Chromecast support RTP?

AFAIK chromecast doesnt support RTP but when I connect my one plus one to chromecast I got following log, so how is it casting? 09-15 16:07:37.648 815-815/? I/MediaRouterService: Selected global route:Route cast409 (com.google.android.gms/.cast.media.CastRemoteDisplayProviderService:c5d0e5d940851c488853a91b1635cfde) 09-15 16:07:37.659 255-2209/? W/APM::AudioPolicyManager: releaseOutput() releasing unknown output 320 09-15 16:07:37.661 815-837/? D/WifiService: acquireWifiLockLocked: WifiLock{CastMediaRouteProvider type=1 binder=android.os.BinderProxy@5381e83} [...] read more
android
chromecast
mediamuxer
2votes
0answers

How to correctly set up a task switch via x86 TSS

I'm trying to develop a basic kernel and I'd like to to have it perform a task switch to some code that I load into memory from an attached disk. I've tried following chapter 7 in intel's manual but my attempts all seem to result in triple faulting. In particular, [...] read more
assembly
gcc
x86
osdev
task-switching
2votes
2answers

Why I get different result with same code?

I wrote some dart code follow js code and there is a problem , hope someone can help me/ js code: var max = 0x80000000; var data = -2000; var mod = data % max; the mod value is -2000 Dart code : var max = 0x80000000; var data = [...] read more
javascript
dart
2votes
1answer

Why is MIPS stack base 0x7ffffffc rather than 0x80000000

Why is MIPS stack base 0x7ffffffc rather than 0x80000000? If I understand correctly, the stack pointer refers to the last item placed on the stack. So, if that's the case, doesn't that mean that address 0x7ffffffc never gets used because the conventional way to push an integer on the stack [...] read more
assembly
stack
mips
callstack
stack-pointer
2votes
5answers

If this is undefined behavior then why is it given as a seemingly legitimate example?

In a Wikipedia article on type punning it gives an example of pointing an int type pointer at a float to extract the signed bit: > However, supposing that floating-point comparisons are expensive, and also > supposing that float is represented according to the IEEE floating-point > standard, and integers [...] read more
c++
c
type-punning
2votes
1answer

Why do both of these C statements produce same outputs

#include<stdio.h> int main() { int x = 0x80000000; printf("%i\n",(((x - 1) >> 31) & 1)); //shows 0 as output printf("%i\n",!(((x - 1) >> 31) & 1)); //shows 0 as output(expected 1) } Why is this happening? As both the statements perform the same operation except the ! operator. Why do [...] read more
c
xcode
syntax
binary
equation
2votes
2answers

Why MIN_VALUE and MAX_VALUE in Integer class is defined @native?

I was going through Integer class code and noticed MIN_VALUE and MAX_VALUE are annotated with @native. My question is 1. What is the purpose of using @native annotation? 2. Where can we find native code which is used by @native? 3. Is there any use case where we should use [...] read more
java
2votes
1answer

Why is paging not working and getting physical address not available error on Bochs

I have the following assembly code to set up paging for long mode. org 0x7e00 bits 32 mov eax, 0x08000008 mov cr3, eax pml4t: mov dword [0x8000], 0x0900000f mov dword [0x8004], 0x0 pdpt: mov dword [0x9000], 0x0a00000f mov dword [0x9004], 0x0 pdt: mov dword [0xa000], 0x0b00000f mov dword [0xa004], 0x0 [...] read more
assembly
x86
paging
bootloader
2votes
2answers

How to Print 64-bit Value in GDB

If I start a gdb session and type: (gdb) p/x 1024*1024*1024*2 $2 = 0x80000000 But if I cross the 32 bit threshold I get: (gdb) p/x 1024*1024*1024*4 $3 = 0x0 How does one display the entire 64 bit value in gdb? read more
gcc
gdb
2votes
2answers

x86 cr3 and linux swqpper_pg_dir

In linux source code(2.6.18): movl $swapper_pg_dir-__PAGE_OFFSET,%eax movl %eax,%cr3 movl %cr0,%eax orl $0x80000000,%eax movl %eax,%cr0 /* ..and set paging (PG) bit */ ljmp $__BOOT_CS,$1f /* Clear prefetch and normalize %eip */ And also the load_cr3(pgdir) and write_cr3(x) macro: #define load_cr3(pgdir) write_cr3(__pa(pgdir)) #define write_cr3(x) \ __asm__ __volatile__("movl %0,%%cr3": :"r" (x)) It seems [...] read more
linux
assembly
2votes
1answer

Azure cloud service app (web role) goes down for ~10 mins occasionally due to Windows Updates? How can I schedule them?

It seems to happen every couple months or so and while it auto-recovers on its own usually within ~10 minutes I'd still like to find out how to change the Windows Update schedule since it frequently occurs during business hours. We have several web apps in various Azure subscriptions, and [...] read more
windows
azure
schedule
azure-web-roles
automatic-updates
2votes
2answers

WinUSB_Initialize function occurs INVALID_FUNCTION (0x1) Error

Why does the WinUSB_Initialize function occur INVALID_FUNCTION (0x1) Error? This is a function from the winusb.dll which returns an interface handle. I would like to get an Interface handle. I already have a Device handle. internal struct devInfo { internal SafeFileHandle deviceHandle; internal IntPtr winUsbHandle; internal Byte bulkInPipe; internal Byte [...] read more
c#
usb
1vote
0answers

USB stick not in /dev

I'm new on this community, newcomer to the Arch distribution, and I hope to post in the good section :) I think it's a Hardware problem rather than a distribution problem. I am currently trying several Arch distributions before permanently installing a basic Archlinux. To do this, I create a [...] read more
linux
usb
partitioning
iso-image
1vote
2answers

iptables not logging WAN traffic?

Let me start by stating my final goal: When traffic comes in on a specific IP address, if the server isn't on, turn it on with Wake On Lan. I am using a TP-Link Archer C7 v2 router with DD-WRT installed with build r30709. * WOL works * Logging LAN [...] read more
iptables
router
nat
vlan
1vote
0answers

What is the minimum amount of RAM required to run Linux Kernel in ARM cortex-a5?

I want to know what is the minimum amount of RAM required to run Linux Kernel (4.6) in ARM cortex-a5. Now I am using 32MB PSRAM but whenever I am loading vmlinux (elf format) through debugger to PSRAM there memcpy() is not working which is located internally in printk. My [...] read more
linux
memory
linux-kernel
arm
1vote
0answers

Modifying IP camera firmware

I have a D-Link DCS-931L IP camera and it started to lose wifi connection regularly. To debug the problem I tried to log into it, but any remote access is prohibited (except web interface which is useless in my case). So I decided to play with the camera firmware. It [...] read more
boot
webcam
firmware
embedded-linux
1vote
1answer

Linux root filesystem on custom hardware

I have a custom-designed SoC implemented on FPGA, based on an ARM-processor clone, on which I am trying to boot Linux (kernel 3.10). I have successfully added support to my custom peripherals (an USART, Interrupt Controller and Timer), allowing me to see the printk messages displayed by the kernel up [...] read more
boot
memory
filesystems
linux-kernel
1vote
1answer

xorg.conf: Why does this have no effect?

Here is my xorg.conf file. The problem is that my resolution setting 1600x900 is getting ignored. The resolution keeps popping to 1280x1024 Edit The resolution comes up as 640x480 after unplugging the physical monitor. When my file gets ignored, the system seems to read my monitor to find it's capabilities [...] read more
resolution
xorg.conf
solaris-10
1vote
1answer

Random HDD hangs on Debian Stretch

I have server with two HDD in RAID1, two SSD in RAID0 and one NVME. But sometimes HDD randomly hangs for couple minutes. Last time HDD not responded for 20 minutes. I have no clue what can be a cause of this problem. I checked data from node exporter and [...] read more
linux
hard-drive
hangs
1vote
2answers

Virtual Server Unexpected Shutdown with Code 1074

Over the weekend, I had one server (out of 11 in the office) shut itself off sometime early Saturday morning. This is a virtual server (running SQL, our production database, naturally), running on a physical host that itself did not shut down, alongside three other virtual servers that did not [...] read more
windows-server-2012
virtual-machines
hyper-v
unexpected-shutdown
1vote
0answers

Anyway to check what scheduled server reboots are?

The server reboots almost around the same time every day and system event log 1074 says: The process C:\Windows\System32\svchost.exe (SERVERNAME) has initiated the shutdown of computer SERVERNAME on behalf of user NT AUTHORITY\SYSTEM for the following reason: Other (Planned) Reason Code: 0x80000000 Shutdown Type: shutdown Comment: Anyone know where this [...] read more
windows-server-2016
1vote
0answers

wired dmesg output and high cpu load

I have like 50 Linux servers with the same hardware and kernel, but recently found that some of them suffers from high CPU load, runs very slowly, top and ps show TIME column with impossible large numbers; ps aux output with many 99% CPU. the kernel is Linux 3.0.13, it's [...] read more
high-load
dmesg
1vote
1answer

Can't connect to AWS instance after import with stock Centos7

I am trying to import a Centos7 based VM into Amazon AWS. The VM was created with the Centos7 minimal ISO installed into VirtualBox. Networking in the VM works fine locally before trying to do the import. I am using the EC2 command line tools to do the import: ec2-import-instance [...] read more
amazon-ec2
amazon-web-services
centos7
import
1vote
1answer

New-mailboxrestorerequest fails with MapiExceptionInvalidParameter: Unable to modify table. Howzat?

I have been having quite a bit of trouble copying a mailbox from a recovery database to a user. Things I tried: - restoring to a different mailbox (this got me further than 10% for some reason) - clearing the mailbox restore queue - resuming the mailbox restore request - [...] read more
windows
exchange-2010
1vote
1answer

Reconstruct an IEEE754 floating point binary from a fixed point integer without FPO

I have a program which uses fixed point numbers, because the CPU I'm using doesn't support IEEE754 floats. I've been doing fine with first converting standard IEEE754s into fixed points by finding the exponent, then shifting the number and so on by manually accessing the bits of the said IEE754 [...] read more
c
floating-point
ieee-754
fixed-point
1vote
0answers

Barometer (BMP180) pressure measurement problem

I have a barometer (BMP180) and am interfacing it with aSTM32. I have to read the altitude which should have a precision of a foot. While interfacing the barometer, I get a consistent real value of temperature but the pressure comes in the range of 59400 Pa (Pa - as [...] read more
arduino
stm32
sensors
altitude
1vote
1answer

Android: Download drawable via glide

I am trying to change my radiobutton.buttonDrawable inside my adapter. Selecting static drawables from my drawable folder works. What I now want is to download the drawables (.svg files) from my cloud-firestore-storage, convert them to a drawable and set them to the radiobutton. My current implementation doesn't work as it [...] read more
android
kotlin
android-recyclerview
android-drawable
android-glide
1vote
0answers

Difficulty using struct.pack format that works for both x86 and armv7

I'm not sure if this is a library bug or if I'm missing something but the following code doesn't work: import struct import socket struct.pack("<I", socket.CAN_EFF_FLAG) struct.pack("<i", socket.CAN_EFF_FLAG) on x86, the former works, the latter gives: struct.error: 'i' format requires -2147483648 <= number <= 2147483647 On armv7l, the latter works, [...] read more
python
struct
x86
abi
armv7
1vote
2answers

Huge performance gain in Java data processing by not using branches/conditions

Ran the following Java snippet which showed a big performance difference. Java 11.0.9.1 on Ubuntu 18.04. With condition, like c = (res[i][j] >= 64)? 1 : 0;, I got time in ms: 1216 With no condition, like c = ((((res[i][j] - 64) & 0x80000000)>>31)+1); I got time in ms: 438 [...] read more
java
performance
optimization
1vote
0answers

_dispatch_assert_queue_fail crash on iOS 14

I am getting a crash on our iOS app since iOS 14 hit the market. The same app build on previous versions of iOS have NOT had the crash. The repro steps are great: 1. Open a parent view 2. Open a child view, close the child view 3. Repeat [...] read more
ios
swift
crash
crash-reports
1vote
0answers

android 11 open source project for emulator problem before custom rom

I try to build android open source project, I am at the beginning of it. Initially, I have successfully built android-11.0.0_r17 source code. I have obtained the out files (system.img, ramdisk.img and userdata.img). When I tried to execute following emulator command, it has been failed. I mean, the system has [...] read more
android
android-emulator
android-source
1vote
3answers

How can I make the program automatically exit after audio played over

I'm writing a small tool, it can play audio file in the command/terminal like sox. I'm using bass.dll and Golang syscall for Windows. Here is my code, files can downloaded from comments, only run on Windows X64. bass.go on github gist package main import ( "fmt" "syscall" "time" "unsafe" ) [...] read more
go
dll
system-calls
bass
1vote
1answer

NULLs in q and in k.h

I've found different values for h NULLs between k.h and q: q)0x00 vs 0W 0x7fffffffffffffff q)0x00 vs 0N 0x8000000000000000 q)0x00 vs 0Ni 0x80000000 q)0x00 vs 0Wi 0x7fffffff q)0x00 vs 0Wh 0x7fff q)0x00 vs 0Nh 0x8000 In q it all looks familiar, but in k.h nh seems quite strange: // nulls(n?) [...] read more
kdb
k
1vote
5answers

How to store and use two 32-bit signed int in one 64-bit int?

First of all, I want to clarify that this question is different from the questions: * How to store a 64 bit integer in two 32 bit integers and convert back again * Is it possible to store 2 32-bit values in one long int variable? * How to combine [...] read more
c++
data-structures
int
bit-manipulation
1vote
0answers

Getting “Code: Bad RIP Value” kernel panic when trying to boot up after reboot

Description of problem: > I have installed Debian 10 Buster. EA01A NEC M2M LTE Dongle is attached to > Device and configured for internet access. I have scheduled a reboot everyday > at 1 AM. and I have noticed some times after reboot the system does not boot > up [...] read more
networking
kernel
panic
1vote
2answers

pinch zoom the layout in android

This is the zoom the layout. public class Zoom extends FrameLayout { /** * Zooming view listener interface. * * @author karooolek * */ public interface ZoomViewListener { void onZoomStarted(float zoom, float zoomx, float zoomy); void onZooming(float zoom, float zoomx, float zoomy); void onZoomEnded(float zoom, float zoomx, float zoomy); } [...] read more
android
pinchzoom
1vote
0answers

How to load Vector Drawable resources from the web using libs like Glide/Picasso?

WHAT I'M TRYING TO DO Suppose that I have a Vector Drawable XML file hosted somewhere on the web. I want to display that image resource in my app using either Glide or Picasso, would that be possible? WHAT HAVE I TRIED SO FAR I've seen this question and it [...] read more
android
picasso
android-glide
android-vectordrawable
aapt
1vote
1answer

Accessing memory loaded via tftp

I am trying to access data from a file that I load in via tftp. I'm using an AM3358 processor tftp 81000000 mydata and I can see the data being correctly loaded => md 81000000 81000000: 00004000 00000000 00002000 00000400 .@....... ...... In the u-boot code, I create a pointer [...] read more
u-boot
1vote
0answers

Asimbench benchmark running in gem5 fails with "fatal: Unable to find destination for [0x40008000:0x40008040] on system.iobus"

I have downloaded asimbench files which provided in the gem5.org website and I have modified the config/common/FSConfig.py with following changes: def makeArmSystem(..) .................. self.cf0 = CowIdeDisk(driveID='master') self.cf2 = CowIdeDisk(driveID='master') self.cf0.childImage(mdesc.disk()) self.cf2.childImage(disk("sdcard-1g-mxplayer.img")) #Old platforms have a built-in IDE or CF controller. Default to #the IDE controller if both exist. New platforms [...] read more
benchmarking
gem5
moby
1vote
0answers

Why does Bochs crash on simple mov instruction

I'm building a small operating system and was using Qemu before which was working properly. Now I'm stuck on a Windows 10 machine and Qemu doesn't work well with GDB on this machine. I thought I'd try Bochs or Virtual box instead. The problem is that with both of these [...] read more
assembly
x86
qemu
bootloader
bochs
1vote
0answers

Sizing images in a vertical pageview without compromising the space between each element?

Hello all I am having an issue with resizing an animated container in a pageview. If i resize the image I lose the amount of space in between and if I right a conditional statement to check if the container is an activePage if not higher the other container but [...] read more
flutter
spacing
sizing
flutter-pageview
animatedcontainer
1vote
0answers

Output the result into OGV from Custom {0}`t{1}`t{2}`t{3}`t{4} format?

How can the code below modified to be properly formatted into the Out-GridView? The script below iterates through multiple OU in a list and then export the result of the ACL for Delegated ACL rights. Appendix: https://msdn.microsoft.com/en-us/library/windows/desktop/aa772285.aspx $ADS_RIGHTS_ENUM = @{ 'ADS_RIGHT_DELETE' = 0x10000 'ADS_RIGHT_READ_CONTROL' = 0x20000 'ADS_RIGHT_WRITE_DAC' = 0x40000 'ADS_RIGHT_WRITE_OWNER' [...] read more
powershell
active-directory
1vote
0answers

Possible values of VerifierFlags

I've enabled application verifier on my application, and it created a registry value VerifierFlags with value 0x80000000 Where do I find a list of possible VerifierFlags values? I tried to lookup online, the only thing I found is about drives. Does anyone know? read more
windows
application-verifier
1vote
0answers

Node.js/Electron - Can I reset the system idle time?

It's quite easy to get the system idle time in Electron with powerMonitor.getSystemIdleTime() However, I wonder if there is any easy way to reset this? I tried both the powerSaveBlocker.start('prevent-app-suspension') and the powerSaveBlocker.start('prevent-display-sleep') but they don't really reset the idle time. When I use the Caffeine on the Mac OSX [...] read more
node.js
electron
1vote
0answers

#address-cells and #size-cells field in device tree overlay range property

I am trying to load a file into a stratix10 FPGA and map the FPGA busses using the embedded Hard processor, ARM running linux (Linux 5.4.23-03466-gcc83036e6a78 #1 SMP PREEMPT Wed Aug 5 10:15:00 CEST 2020 aarch64 GNU/Linux). This is done with device tree overlays. The main device tree contains: (where [...] read more
linux
embedded-linux
fpga
intel-fpga
device-tree
0votes
0answers

Laptop fan control through Embedded Controller or ACPI

I've been trying to control the fan of my Lenovo Yoga 910-13IKB laptop(Windows 10) to avoid thermal throttling(I already undervolted the CPU and GPU). To achieve this I need to find a way of modifying the specific registers that control the fan on my laptop's embedded controller. Using RWEverything I [...] read more
windows
drivers
fan
acpi
0votes
1answer

Fixing MTRR error in Linux

I am getting this error is Backtrack 5 R3 using KDE, Error setting MTRR (base=0x80000000 size=0x10000000 type = 1 inappropriate ioctl for device (25) Here is the X server log and here is my MTRR Values read more
linux
xorg
kde
backtrack
0votes
0answers

USB devices and PCIe "freeze", lsusb -t hangs

I have a PC running RaspbianOS (I have to) that has a PCIe card connected to it, the PCIe card has 4 USB controllers for 4 ports(StarTech PEXUSB3S44V). I have a Sipolar industrial 10 port USB hub connected to 1 port and then I connect 10 Huawei 4G USB modems [...] read more
linux
usb
drivers
kernel
linux-kernel
0votes
0answers

Stuck at blinking cursor with Linux VMs

Host: Windows 10 VM: ubuntu-18.04.3-desktop-amd64 enter image description here [https://i.stack.imgur.com/wz4Mb.png] When I boot the VM it only shows the black screen with a blinking cursor. I checked the BIOS, VT-X is enabled. Windows Hyper-V is also disabled. VM Log didn't show VT-X error. What could be the problem? 00:00:06.225090 Features [...] read more
windows-10
virtualbox
ubuntu-18.04
0votes
2answers

Issue with startx saying that there are no monitors found on Arch Linux

I installed Arch on my laptop yesterday and since then I have been unable to open i3. I installed xorg, i3-gaps, and changed my ~/.xinitrc file to read: xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto exec i3 However, I am unable to open i3. Whenever I try to do startx, it [...] read more
linux
display
arch-linux
xorg
display-driver
0votes
1answer

Solved - MIPS mount file system

I have a bin file including linux file system (MIPS arch), I want to add/remove/modify some files in this bin file. So I need to mount it with qemu but mount it is a little complicate. This my file details file -k zCore.bin u-boot legacy uImage, MIPS OpenWrt Linux-4.14.105, Linux/MIPS, [...] read more
openwrt
firmware
qemu
mips
0votes
1answer

Why isn't my forced MAC address change working (Raspberry Pi)?

I'm working with Raspberry Pi Zeros on a subnet. I bought external Ethernet adapters for each one to connect them to one another. Unfortunately, these ethernet adapters all came with the exact same MAC addresses, making communication between the Pis near impossible. Because of that I've tried forcing a change [...] read more
linux
networking
raspberry-pi
subnet
0votes
2answers

Win7 SP1 install always fails to code 8000ffff catastrophic failure, target state 7 (full logs available)

Win7 32bit SP1 always fails to critical failure without a reasonable errorcode, any tips what to do? other updates are ok. I have tried standalone SP1, it fails after running a hour or so, here is LOG from todays try to run it. sfc/scannow gives errors that its unable to [...] read more
windows-7
service-pack
0votes
1answer

Booting linux kernel via bootftp

I have P2020RDB board with U-Boot 2013.01-00115 installed with custom embedded Linux distro and everything works fine for now. However, for some testing purposes, I need elegant way of switching different images at boot time. Since U-Boot does not support selecting image like LILO (at least I havent found a [...] read more
boot
embedded-linux
0votes
2answers

Kernel panic - not syncing: No init found

I am working on custom embedded Linux distribution on P2020RDB-PCA board and I've got stuck on following errors at boot time: EXT2-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem) on device 179:1. devtmpfs: error mounting -2 Freeing unused kernel memory: 272K (c07cc000 - [...] read more
linux
boot
embedded
embedded-linux
0votes
0answers

Ubuntu with XFS blocked for more than 120 seconds

Im running ubuntu 16.04 with an XFS file system volume. Its running on Google cloud. This Disk is a Local SSD. It is used for MongoDB. A few days back my Primary and Secondary both are frozen from IO. This is error message. nvme nvme0: I/O 593 QID 1 timeout, [...] read more
ubuntu
mongodb
xfs
0votes
0answers

IPTables & Fail2Ban giant log

Im using IPTables and Fail2Ban to stop some basic DDoS attacks. The tables are working ok, the fail2ban too. The problem its the log of iptables, its too big with a 10minutes attack (57mb log). Analyzing the log I see that the IPs are getting logged even after getting banned. [...] read more
iptables
logging
fail2ban
proxmox
0votes
3answers

ElasticSearch doesn't start after installing 5.6.4

I just installed ElasticSearch 5.6.4 from https://www.elastic.co/downloads/elasticsearch via DEB (I use Debian 9) package using these commands: wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.4.deb dpkg -i elasticsearch-5.6.4.deb apt-get install openjdk-8-jre-headless update-rc.d elasticsearch defaults 95 10 service elasticsearch start But ElasticSearch won't start, this is log: ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: [...] read more
elasticsearch
start
0votes
0answers

Watchguard VPN Connection Issue

I am having problems setting up a BOVPN between an XTM510 and an XTM21-w. I have checked over the settings 3 times for all of the phases, tunnels and gateways on both sides and everything is correct. I checked the log files and did a search VPN and saw the [...] read more
vpn
watchguard
0votes
2answers

ESXi :: vmxnet3 vNIC and Linux kernel errors

a long shot, but figured I'd give here a try (no solution on VMware community forum). In a Linux guest (CentOS 5.7 64-bit) with vmxnet3 vNIC we are getting a few hundred kernel errors per day on primary eth0, DMZ NIC, which handles majority of network traffic (eth1 & eth2 [...] read more
vmware-esxi
linux-kernel
0votes
1answer

Full implementation of exfat boot checksup

Trying to implement the exFAT boot checksum as described in section 3.4 of: https://docs.microsoft.com/en-us/windows/win32/fileio/exfat-specification My code does not produce the correct checksums. :( #include <stdio.h> #include <stdint.h> #include <stdlib.h> int main ( int argc, char *argv[] ) { /* test for filename in parameters */ if ( argc != 2 [...] read more
c
0votes
1answer

how to convert C++ while statmernt code with decrement into c# code

what I'm trying is to convert C++ piece of code while (n--) if (c & 0x80000000) c = (c << 1) ^ p2; else c <<= 1; into c# the whole code in c++ is: #include "stdafx.h" int main() { unsigned long c, c2, p2, pol = 0xEDB88320; long n, [...] read more
c#
c++
0votes
1answer

fake crc32 (add 4 bytes in the end of the file)

I'm trying to fake the needed CRC32, I have found the app called PEid, so it has a plugin called crc32 that can do this enter image description here [https://i.stack.imgur.com/gAMom.png] as you can see the CRC of the file is 0x97B9850E, I need 0x73CBFFB5 when I click to fix it, [...] read more
c++
binary
crc32
0votes
1answer

Why after enable paging specific address is not available?

I just want to fully understand how paging works on practice. part of my code for paging: .section .bss .align 4096 p4_table: .skip 4096 p3_table: .skip 4096 p2_table: .skip 4096 and more code: set_up_page_tables: movl $p3_table, %eax orl $0b11, %eax // present + writable mov %eax, (p4_table) movl $0b10000011, (p3_table) [...] read more
assembly
x86
paging
att
osdev
0votes
0answers

What is private key and signing key for cardano (ada)?

I'm trying to generate address and create transaction using nodejs and @emurgo/cardano-serialization-lib-nodejs lib (CardanoWasm). Following the docs I'm trying this: const rootkey = CardanoWasm.Bip32PrivateKey.from_bip39_entropy( Buffer.from(someEntropy, 'hex'), // entropy is generated from mnemonic Buffer.from('') ); const account = rootkey .derive(harden(1852)) // harden is a function returning 0x80000000+arg .derive(harden(1815)) .derive(harden(0)); const utxokey [...] read more
node.js
cryptography
cardano
0votes
0answers

Encoding bitmaps with MediaCodec using surface and OpenGL causing application crash unexpectedly

Am using MediaCodec and MediaExtractor to decode a video file. After decoding, each decoded frame is converting to bitmap to edit and feeding the edited bitmap to mediacodec encoder to create a video file using Surface and OpenGL. At the end of processing, the application is closing with the following [...] read more
android
opengl-es
android-mediacodec
0votes
1answer

STM32 Read event from remoteControlEvent_t and parse data. Values are wrong with passing

I have small problem with adding and reading values. Define variables #define ADC_BIT_MASK 0x0FFF static TaskHandle_t remoteControlTaskHandle = NULL; typedef enum { ... rcEvent_FreshADC = 0x80000000, ... } Code for notify task. adc12bitVal_pedal value is for example 100 and adc12bitVal_lr value for example 1000. I am shifting adc12bitVal_lr to the [...] read more
stm32
0votes
0answers

setDataSourceFD failed.: status=0x80000000

I'm developing a record voice and play it application and I'm getting stuck. I want my application to record audio and when I tap on it should stop. It can record voice but after tap on button it crash. I've already checked all links related to it. I've trying to [...] read more
android
mediarecorder
0votes
1answer

Enable wifi wlan adapter Ubuntu 20.04 LTS on Raspberry Pi 3 Model B

I have a Raspberry 3 Model B which has a BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board and recently installed Ubuntu 20.04 LTS. Thanks in advance for looking and let me know if Ubuntu 20.04 on RPI3 does not support wifi at this time. I've read a [...] read more
raspberry-pi3
ubuntu-20.04
0votes
2answers

Device Tree GPIO Reset

I'm working on a board based on the iMX6 and am trying to configure a number of GPIOs that are being used as chip enable and reset lines. Based on the research I've done, the way to handle this is via the gpio-reset driver in the device tree. Following the [...] read more
embedded-linux
device-tree
0votes
0answers

Unable to use Palette Generator library for images of different sizes in flutter

I am using the following code from the documentation to generate colours from an image. // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:math' as [...] read more
android
ios
flutter
flutter-dependencies
0votes
0answers

iOS app is crashing at the app launch in iPad pro

We have an application that is in the App store. when I download the app from the App Store on my iPad Pro(11-inch, 3rd Gen), the app is crashing at the app launch. Rebooting the iPad or re-installing does not seem to fix the issue. I never had issues in [...] read more
ios
swift
ipad
crash
0votes
0answers

Why am i getting error in make install in libsub?

Amirul Akmal@ASZK ~/libusb-master $ make install Making install in libusb make[1]: Entering directory `/home/Amirul Akmal/libusb-master/libusb' CC core.lo CC descriptor.lo CC hotplug.lo CC io.lo CC strerror.lo CC sync.lo CC os/events_windows.lo CC os/threads_windows.lo RC libusb-1.0.lo CC os/windows_common.lo os/windows_common.c: In function 'windows_error_str': os/windows_common.c:68:30: error: 'FACILITY_SETUPAPI' undeclared (first use in this function) error_code = [...] read more
makefile
mingw
libusb
0votes
0answers

Laptop fan control through Embedded Controller or ACPI

I've been trying to control the fan of my Lenovo Yoga 910-13IKB laptop (Windows 10) to avoid thermal throttling (I already undervolted the CPU and GPU). To achieve this I need to find a way of modifying the specific registers that control the fan on my laptop's embedded controller. Using [...] read more
windows
driver
acpi
dsdt
0votes
0answers

What causes segmentation fault in program to dump Mach-O symbols?

I wrote the below program to dump symbols of a Mach-O file. (I realise this is duplicating existing commands like nm, but I wanted to do it myself in order to learn. Note I could mmap it myself but for various reasons I wanted to let dyld load it into [...] read more
c
macos
dyld
mach-o
0votes
1answer

ESP32: Getting Guru Meditation Error because having an extremly long string (~15.000 characters long)

I've written a little program, which in a loop first sends a POST-request to a special machine, the machine returns an other API-path in its response header, afterwards I can execute a GET-request on that API path and get an extremly long string (~ about 15.000 characters). This works pretty [...] read more
c++
string
runtime-error
stack-overflow
esp32
0votes
3answers

Parsing text file containing unique pattern using Python

How to parse a text file containing this pattern "KEYWORD: Out:" and dump the result into output file using Python? input.txt DEBUG 2020-11:11:17.401 KEYWORD: Out:0xaaaf0000 In:0x80000000.1110ffff. DEBUG 2020-11:11:17.401 KEYWORD: Out:0xaaaf00cc In:0x80000000.1110ffaa. output.txt 0xaaaf0000:1110ffff 0x80000000:1110ffaa read more
python
python-3.x
python-2.7
0votes
0answers

Powershell - DACL, ACE

Is there any way to display the ACE mask of an AD object in decimal/hexadecimal, so that instead of "Generic Read" it reads 0x80000000 or 2147483648? DACL/ACE read more
powershell
active-directory
dacl
0votes
0answers

Unaligned address in inst/data fetch: 0x100100cb -> Exception 4 [Address error in inst/data fetch] occurred and ignored

I am working on a MIPS morse code to ascii and ascii to morse converter. I was given the ascii to morse and I am working on the other way now. I encountered this error after trying to come up with a loop to make it parse through the values. [...] read more
mips
spim
0votes
0answers

A strange issue with MediaPlayer on Android version 9 - null pointer exception

Recently I changed my smartphone to Xiaomi Redmi Note 7 (Android 9) and wanted to test one of my applications on it. The application does not start because there is some problem with MediaPlayer. Which does not appear on any smartphone or tablet on which I tested the application(even on [...] read more
android
android-studio
nullpointerexception
android-mediaplayer
android-9.0-pie
0votes
2answers

How can you get MediaStore metadata from a DocumentsContract.Document?

My goal is to be able to get a user picked directory using Intent.ACTION_OPEN_DOCUMENT_TREE and then to get all the audio files and their metadata from that directory. I can already get a user picked directory using Intent.ACTION_OPEN_DOCUMENT_TREE, but I am unable to extract the audio file metadata. I get [...] read more
android
uri
mediametadataretriever
0votes
0answers

Python SetThreadExecutionState: How do I prevent screen display from turning off?

I am on Windows. I want to run a Python Script that involves keyboard activity hence my PC mustn't lock screen or go to sleep. Instead of changing my PC Sleep Setting, I want to use Python code to keep my Screen Display On for the whole duration of my [...] read more
python
ctypes
0votes
1answer

Reading block from MTD flash with ioremap

I would like to know the expected result of reading block data from MTD flash, as per the code below: #define PHY_ADDR 0x80000000 // certain physical memory location void *dst; dst = ioremap(PHY_ADDR,len); // ioremapping mtd_image->_read(mtd, from, len, retlen, dst); // reading from MTD flash to dst buffer with len [...] read more
c
linux-kernel
ioremap
0votes
1answer

Retrieve MetaData from audio file in Android

I want to retrieve metadata(artist, album, path, name, length) for songs on my device. This is the code that I'm using. String selection = MediaStore.Audio.Media.InterfaceConsts.IsMusic + " != 0"; String[] projection = { MediaStore.Audio.Media.InterfaceConsts.Artist, //artist MediaStore.Audio.Media.InterfaceConsts.Album, //album MediaStore.Audio.Media.InterfaceConsts.Data, //path MediaStore.Audio.Media.InterfaceConsts.DisplayName, //title MediaStore.Audio.Media.InterfaceConsts.Duration }; var cursor = myContentResolver.Query( MediaStore.Audio.Media.ExternalContentUri, projection, selection, [...] read more
android
audio
xamarin.android
metadata
0votes
1answer

how to display DEC floating point format given 32 bits in IEEE standard

I'm currently given 32 bits of data that are in the Digital Equipment Corporation (DEC) floating point format or PDP-11 (or fp-11). The data is given in little endian. In C, how do I get a regular IEEE-754 single precision floating point from it? I've found some references, but they [...] read more
c
floating-point
ieee-754
pdp-11
0votes
0answers

print register value in assembly on bootloader

I'm trying to print vendorID and DeviceID of my hardware which stores in ebx using this code and I'll boot it: _start: xor eax,eax mov eax,0x80000000 xor ecx,ecx .main mov dx,0x0cf8 out dx,eax mov dx,0x0cfc mov ebp,eax in eax,dx cmp eax,0xFFFFFFFF ;eax will fill with 0xFFFFFFFF if no device founded [...] read more
assembly
boot
0votes
1answer

Problem about reading/writing memory in EL2

I am trying to read/write a memory in EL2, but it doesn't return what I want. I use kzalloc to get initialized space, then use str to write a number (0x12345678) in this space. Next, I use __pa() to get the physical address(PA) of this space. I found PA=VA-0x80000000. I [...] read more
memory-management
arm
virtualization
armv8
0votes
1answer

Please help to better understand the crashes. Crashes details: with Core Data on iOS 14, Xcode 12

I don't have a lot of experience in this. I did not change nothing in my code, but after iOS 14, I started to get the crashes and only for iOS 14 operating systems. Maybe something changed in Core Data? Here is crashlog details and Firebase. Thanks a lot! I [...] read more
ios
objective-c
core-data
ios14
xcode12
0votes
0answers

How to start a process from a Windows Forms (C#) without creating a taskbar icon

I have a Windows Forms application with a button that's supposed to open an exe file. The default Windows behavior is that the exe file, once opened, will have its own icon appear in the taskbar, however the requirement is for it not to have the icon, and for the [...] read more
c#
windows
winforms
hide
taskbar
0votes
1answer

videoview.setVideoUri shows null pointer exception

So I have a VideoView but when I try to play video (which is in my res/raw folder)it gives me null pointer exception. I tried using video.setVideoUri(uri) and also video.setVideoPath(path) but it still shows null pointer exception. Activity: public class Player extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { [...] read more
java
android
android-activity
android-videoview
0votes
1answer

How do I assign -0x80000000 to long long variable in VS2019?

I am using Visual Studio 2019 Community edition. I have the following C++ code snippet: long long l = 0x80000000; assert(l > 0); //true l = -0x7fffffff; assert(l < 0); // true l = -0x80000000; assert(l < 0); // FALSE I expect -0x80000000 to end up sign-extended to 64-bit value [...] read more
visual-studio
c++17
64-bit
signed
negative-integer
0votes
0answers

RISC-V Platform IO Debug not working (Mac OS)

I am using RISC-V Board Dev B and platform IO on Mac OS but debug is not working with some errors even though I successfully built and uploaded the project. Anyone can help this out? I will be appreciate if you can solve this problem. I tried to change the [...] read more
riscv
platformio
0votes
0answers

Porting ARM software interrupts to ESP32 / FreeRTOS software interrupt

I'm porting the PJRC Teensy Audio Library for ESP32, because I want to stay compatible with the API. I'm having trouble how to port the update() functions of AudioStream(). So far I've added the IRAM_ATTR to the interrupt funtion, but I'm not sure if that's correct. https://github.com/PaulStoffregen/cores/blob/master/teensy3/AudioStream.cpp#L302 So far my [...] read more
arm
embedded
interrupt
esp32
freertos
0votes
0answers

CRx registers and paging in linux - x86

I'm trying to learn a bit about the linux kernel and memory management. To do this I've written a small bit of kernel module code to dump CR0 register content. I understand that bit 31 in CR0, when set, indicates that paging has been turned on by the kernel however, [...] read more
linux
memory-management
assembly
linux-kernel
kernel
0votes
0answers

Cannot syscall hooking / write to protected memory page syscall_table in Linux kernel 4.19 on ARM

I am trying to develop a kernel module that hooks system call. I'm testing on Raspberry Pi 3B, running raspbian buster Linux 4.19.97-v7+ armv7l. So typically on x86 we can overwrite CR0 register but there is no similar register on ARM architecture. I tried to do it via set_memory_rw and [...] read more
linux-kernel
arm
hook
system-calls
rootkit
0votes
1answer

Error "Makefrag-verilator:20: recipe for target" while running "make" in VCS, Emulator Vsim directories

I am working on building the Rocket-Chip on my Ubuntu 18.04. I have already built the RISC-V toolchain, RISC-V Tools, Rocket-Tools, Vertilator, Sbt on my machine. I am following the guidelines demonstrated on https://github.com/chipsalliance/rocket-chip So, I followed the following steps: 1. Changed directory to rocket-chip/emulator 2. run make Then, every [...] read more
rocket-chip
0votes
1answer

BSONRmgExp is not defined

I am working through a Node.js tutorial and we just started working with Mongoose. Everything has been going great until today. I turned on my computer and opened WebStorm. I went to run what we had last worked on and I get the following stack trace: /usr/bin/node /home/doug/Documents/node-course/task-manager/src/db/mongoose.js /home/doug/Documents/node-course/task-manager/node_modules/bson/index.js:41 BSON.BSONRegExp [...] read more
javascript
node.js
mongodb
mongoose
0votes
4answers

Glide not able to load some of images failed with exception

I have issue with image loading. Only some of the images are not loading. I have tried using glide and image loader. Glide code : Glide.with(context) .load(model.getImage4x3().trim()+"?w=430&h=275") .into(holder.mBinding.ivPromotion); Glide dependency : implementation 'com.github.bumptech.glide:glide:4.9.0' I have also tried : 3.9.0 , 4.0.0 , 3.6.1 , 3.8.0 Error : load failed for [...] read more
android
android-glide
android-image
0votes
0answers

Prevent the linker from locating sections to a particular memory area, TASKING ARM tool chain

On an embedded target(ARM CORTEX M3), I would like to reserve a certain memory area to be loaded by another binary, and prevent the linker from allocating any symbol in the current binary to this particular area. I am successful in locating all default code/const sections to a desired memory [...] read more
linker
arm
embedded
memory-mapping
0votes
0answers

In GUID Partition Table how can I know how many partitions there are?

I have a image of a USB with 3 partitions: * Partition 1: FAT32 * Partition 2: exFAT * Partition 3: NTFS I am making a program that goes trough the partitions, but I am unsure of how I can know how many partitions my program should look for. By [...] read more
guid
disk-partitioning
guid-partition-table
0votes
0answers

How to call RSA decrypt function using knockout js?

I am able to encrypt the string in Knockoutjs using RSA encrypt algorithm I want to decrypt the same at client (in knockout js) side, Please give me an idea about how I can call the decryption functions. Calling this encrypt and decrypt from other file: define(['myDocs/rsa-encrypt'], function (RSA) { [...] read more
javascript
encryption
cryptography
rsa
public-key-encryption
0votes
2answers

Configure WinRM over HTTPS on Multiple Computers with Powershell

Configure WinRM over HTTPS on Multiple Computers with Powershell I have the following script that I put together to configure WinRM over HTTPS and it works great on per machine. I am having a tough time recoding it to run remotely on multiple machines located in a text file. Also [...] read more
powershell
for-loop
foreach
winrm
foreach-object
0votes
0answers

EditText underline not aligning properly after new lines

I am trying to create a textarea with dotted lines in all lines, but when new lines are added, it's not aligning properly: ScreenShot [https://i.stack.imgur.com/pzRaL.jpg] Code class LinedEditText extends androidx.appcompat.widget.AppCompatEditText { private Paint mPaint = new Paint(); public LinedEditText(Context context) { super(context); initPaint(); } public LinedEditText(Context context, AttributeSet attrs) { [...] read more
android-edittext
android-canvas
android-xml
androidx
0votes
0answers

file operations via winAPI kernel32

hello gurus i am i am trying to read an external file operation in mql4 firstly my EA involves reading and writing between two mt4 terminals but to do that i have to know how to operate files externally in mql4 i have tried this documentation but it didnt work. [...] read more
mql4
-1votes
0answers

Plugging USB into Android device causes CameraHAL to pause the current activity for 1-2 seconds

I'm working on a fitness application on a custom tablet running Android version 5.1.1. The tablets have a built in camera which works great, and there are accelerometers that also work great which are connected to the tablet via a USBA 2.0 cable. The application was built using Unity, but [...] read more
java
android
unity3d
android-activity
usb
-1votes
1answer

Bug in Hierarchical CLH Queue Lock from "The Art of Multiprocessor Programming" 1th version

What I am asking for help? Suggestion for debug or correct the lock algorithm. import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; public class TestHCLHLock { static final int MAX_CLUSTERS = 8; public static class ThreadID { private static volatile int nextID = 0; [...] read more
java
algorithm
concurrency
locking
lock-free
-1votes
2answers

How to shutdown computers (windows) into hibernate state?

I really enjoy one of the windows computer hibernate benefits: I can power up the computer by pressing any key or mouse button. I wish I can shutdown my computer into hibernate state. I mean, software OS is completely off, but hardware goes to hibernate level (I think it is [...] read more
windows
hibernate
sleep-mode
-3votes
1answer

Detect SMB1 version via powershell for all OSes

My workflow: * check if server is pingable * find if they are domain connected or not and perform a task accordingly. if Operating system 2012 and/or R2 ,2016 or 2019 newer OSes then I will run Get-SmbServerConfiguration cmdlet. if machine is not a part of default domain then else [...] read more
powershell
-3votes
1answer

I need to understand the logic behind this cpp code

int x = 25; unsigned int g = x & 0x80000000; how did this code read the most significant bit of in the address of x? does the reference to 0x80000000, or binary 1000 0000 0000 0000 accomplished that task, or was it something else? read more
c++

Comments

Leave a comment

(plain text only)

Sources

  1. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  2. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0