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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
#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
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
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
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
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
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
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
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
#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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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