I have a question regarding the newest Android Wear release (5.0.2): Debugging apps with that version really is a pain because very often the apps crash directly on startup (or soon after that). It doesn't matter how complex / simple the launched activity is. Launching an activity via voice command [...] read more
I want to get into PAPI. I have Version 5.3.2.0 on Debian GNU/Linux. papi_avail just tells me that no hardware events are available: $ papi_avail Available events and hardware information. -------------------------------------------------------------------------------- PAPI Version : 5.3.2.0 Vendor string and code : GenuineIntel (1) Model string and code : Intel(R) Core(TM) i3-5010U [...] read more
I'm looking for a way to read the edx registry at a certain address like asked in this question: Read eax register Although my solution needs to be in C# and I tried to make it, what I got at this moment is: public static IntPtr GetEdx(IntPtr address, Process process) [...] read more
Is this expected? I expected my Sandy Bridge CPU to report that it can handle MMX, SSE, and SSE2 instructions. Are these bits not set because these "old" instruction sets have been "superceded" by some of the newer ones? I used this code here to put CPU detection into my [...] read more
I've taken over from an IT outsourcer and have found a struggle now that we're starting a migration to windows 7. Someone decided that they would setup Folder redirection in the Default Domain Policy. I've since configured redirection in another policy at an OU level. No matter what I do, [...] read more
I have a Kannel gateway with multiple SMPP binds ( one operator requires separate transmitter and receiver binds while another permits transceiver binds ). The transceiver binds do not display this problem, so I will not delve into more detail on those. In the separate receiver / transmitter bind scenario, [...] read more
That might be a little bit an exotic problem, but I hope somebody can still help me out a bit ;). I would like to execute a standard C program, however, at some point during program execution I would like that a certain number of instructions, which are stored in [...] read more
I am trying to split my audio recording with android mediarecorder into multiple files, but whenever I set the next output file, I got an illegalstate exception. Here's the code: private void getMediaRecorderReady(String filePath, FileDescriptor nextFile) { bufferSize = 88200; recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); recorder.setAudioEncodingBitRate(64000); recorder.setAudioSamplingRate(44100); recorder.setAudioChannels(1); [...] read more
I am trying to build an Android application that records X number of seconds and saves the file in .wav format The problem is that if I input more than 47 seconds ( 48 and above) I get the following errors: 11-29 10:58:39.315 399-1548/? V/audio_hw_primary: disable_audio_route: exit 11-29 10:58:39.315 399-1548/? [...] read more
In Windows X86, the CPU brand can be queried with cpuid intrinsic function. Here is a sample of the code: #include <stdio.h> #include <intrin.h> int main(void) { int cpubrand[4 * 3]; __cpuid(&cpubrand[0], 0x80000002); __cpuid(&cpubrand[4], 0x80000003); __cpuid(&cpubrand[8], 0x80000004); char str[48]; memset(str, 0, sizeof str); memcpy(str, cpubrand, sizeof cpubrand); printf("%s\n", str); } [...] read more
I am printing some information about CPU in my OS using CPUID instruction. Reading and printing vendor string(GenuineIntel) works well, but reading brand string gives me little strange string. ok cpu-info <= Run command CPU Vendor name: GenuineIntel <= Vendor string is good CPU Brand: D: l(R) Core(TMD: CPU MD: [...] read more
Basically I've followed the instructions here http://sig9.com/bochs-grub to create a bare image file which does nothing but lets the BIOS start GRUB. The problems are: * The kernel I am writing will be 32-bit, using http://www.jamesmolloy.co.uk/tutorial_html/index.html for a start, but my host (physical) machine is x86_64 with bochs configured like [...] read more
I am following brokenthorn OS development series, until now I am able sucessfully run bootloader stage1 but there is some issue with loading second stage bootloader from FAT12 floppy in bochs emulator on linux machine(ubuntu 16.04) (It works fine in virtual box though). Here is my stage1 boot loader: bits [...] read more
This question is related to a previous one on OSPF routing. Based on the advice give to the previous question, I have now made myself a network diagram, identified the backbone area and all other areas and started configuring OSPF on the various routers. All the HP ProCurve 7102dl routers [...] read more
Yesterday while hibernating my Windows 7 computer, I got BSOD which complained about Creative sound card driver (ctoss2k.sys). I have been using this system for two years already and I haven't had any issues before. After a full hard drive scan with Windows built-in utility. I saw many corrupted files. [...] read more
I have a simple memory mapped interface, and I would like to write through this values to two registers and then read them back. The following code example works fine: volatile int *reg1 = (int *) 0x80000000; volatile int *reg2 = (int *) 0x80000004; *reg1 = 12; *reg2 = 23; [...] read more
For my application (SpMV) I have more data cache misses (PAPI_L1_DCM) than total cache misses (PAPI_L1_TCM) in level 1 cache. How can that be? For Level 2 the values are ok. That is, what the PAPI counters offer: [PAPI_L1_ICM ][PAPI_L1_DCM ][PAPI_L1_TCM ][PAPI_L2_ICM ][PAPI_L2_DCM ][PAPI_L2_TCM ] 1256 3388225 1442386 1007 2389903 [...] read more
I've recently converted to using ARC. However, i'm having a weird crash now, and the crashlogs are really unhelpful. During one of my application initialization processes (getting data from server, parsing it, setting up views), i get a bad_access. This is the error log from the device: Incident Identifier: 7CE05452-7C5D-424A-8529-AE7B17C9FEBC [...] read more
I'm currently developing my bootloader, but I have problem. I use Bochs to test bootloader, I compile bootloader and make disk image with: rm disk.bin rm boot.bin rm post.bin nasm bootloader.asm -o boot.bin nasm postmbr.asm -o post.bin cat boot.bin post.bin > disk.bin This is bootloader.asm: [BITS 16] ;Tells the assembler [...] read more
I have bought a used Quantum Ultrium LTO-4 tape drive and attached it to an HP Smart Array P400 SAS controller in my HP ProLiant N54l. I use FreeBSD 11 as my operating system. Now I have inserted a tape and ran the benchmark of Bacula's btape command: $ btape [...] read more
I formatted my computer using a Windows XP cd, then I decided to install Windows 7 Pro. After some downtime, the blue screen appeared. This time just restarted the computer. Thinking it would be a mistake on the version of Windows installed, I installed Windows 7 Ultimate. After a few [...] read more
I am writing a code using inline asm with VC++ 2019 32bit. I have written a function to switch coroutine.This is the source code : I tested it and it works well. The argument is a uintptr_t array that contains the register value. This function will exchagne register value except [...] read more
I'm getting physical and virtual address bits size with C by using CPUID command in windows. I can get the processor information this way, but I'm confused by getting the address bits. Looks like I should you the 80000008 instruction but I do this way, only 7-8 digits change continuously [...] 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
I have a problem with flatten / json_normalize functions. There's a nested json with 6 "receipts" in it, but flattening this json gives me only 1 row with 1 receipt, which is also last, I need all 6 in my pandas dataframe. [ { "_index": "packets-2020-02-03", "_type": "receipts_file", "_score": null, [...] read more
I'm learning The Arm System Developers Guide and I am wondering about one of the examples in the book: cpsr = nzcvqiFt_USER // capital indicates flag is set r0 = 0x00000000 r1 = 0x80000004 MOVS r0, r1, LSL #1 cpsr = nzCvqiFt_USER // capital indicates flag is set r0 = [...] read more
I'm a newbie iOS developer, recently there is a strange issue happened in iOS 12.0.1, our app is a video streaming app and codec protocol using h.264. We using VideoToolBox to decode the streaming, and get the decode buffer to display on screen, but sometimes the console log will show [...] read more
I'm using pocketsphynx library on Android for keyword spotting, and it serves its purpose great. However, when I am trying to release microphone to make use of it in another component of the app, I am unable to do so. I get the following error in logcat: 12-11 10:19:55.827 255-30344/? [...] read more
I have a BSOD 0x8E every day on five devices in same times on Windows 7. Allways exception code - 04 - STATUS_SINGLE_STEP as example: 1: kd> !analyze -v ******************************************************************************* * * * Bugcheck Analysis * * * ******************************************************************************* KERNEL_MODE_EXCEPTION_NOT_HANDLED_M (1000008e) This is a very common bugcheck. Usually the exception [...] read more
A string is represented as an array of char. For example, if I have a string "abcdef" at address 0x80000000, is the following correct? 0x80000008 0x80000004: 00 00 46 45 0x80000000: 44 43 42 41 (In stack, it grows down so I have address decreasing) read more
I'm trying to detect in-door location in Android Wear. First, I am using iBeacon to detecting where I am. And I succeed to get location in interactive mode. Next, I would like to continue searching iBeacons in ambient mode. But I can't search because Application ends. Please help me ;( [...] read more
I'm trying to use RAPI to monitor the performance of my Xeon Phi code. I just compiled and installed a native version of RAPI follwoing the documentation. And the following list is what I get when I execute "rapi_avail" on my Xeon Phi which shall display all available events. Surprisingly, [...] read more
I've always used smslib to connect to my SMS provider. My SMS provider has a SMSC, and I connect in transmitter mode (not transceiver). I'm trying to connect via Kannel, with this configuration: group = core admin-port = 13000 smsbox-port = 13001 wapbox-port = 13002 admin-password = dad admin-deny-ip = [...] read more
I have a weird problem, in Debug Mode this code works fine: char* PCInformation::GetCPUName() { if (CPUName[0] == '\0') { _memset(CPUName, 0, 0x3F); // Get extended ids. int CPUInfo[4] = {-1}; __cpuid(CPUInfo, 0x80000000); unsigned int nExIds = CPUInfo[0]; printf(3, "%d\n%d\n", nExIds, 0x80000000); // Get the information associated with each extended [...] read more
<?php /* File : smppclass.php Implements : SMPPClass() Description : This class can send messages via the SMPP protocol. Also supports unicode and multi-part messages. License : GNU Lesser Genercal Public License: http://www.gnu.org/licenses/lgpl.html Commercial advertisement: Contact info@chimit.nl for SMS connectivity and more elaborate SMPP libraries in PHP and other languages. [...] read more
basic network [https://i.stack.imgur.com/ibFOc.gif] I receive a default route via iBGP from R1. On both R2 and R3 I have default-information originate configured. On R4 I only see one default route in the OSPF database; either to R2 or R3. When I shutdown one of the links from R2 / R3 [...] read more
I am currently learning how debuggers function and I am trying to program one myself following the book 'Gray Hat Python' by Justin Seitz. I am quite new to python and using the Windows API so any help is appreciated. I am using python 2.7 and Windows 10 64bit (in [...] read more
I am getting "Unfortunately, GluonMobile stopped working" every time I try to run my application on android. First of all, I am using gluon-mobile to make android apps that is writted in javafx (java) for GUI app development. I am also using the latest version of Intellij Idea while I [...] read more
I've got a program which is reading processes virtual memory and some registers for some data, then making amendments to it. Here I pass the contents of eax register to my function (this seems to work fine, but I thought it might demonstrate what types of data are being involved) [...] read more
I am trying to use DES encryption/decryption on Google chrome. In my folder I have three files. 1. tripledes.js 2. mode-ecb.js 3. CryptoJS-DES.html The scripts in my html file is defined as follows :- <script type="text/javascript" src="tripledes.js"></script> <script type="text/javascript" src="mode-ecb.js"></script> and another script file which is :- function encryptByDES(message, key) [...] read more
For the most part, the function below works but in rare cases returns a null value: DWORD WinVerMinor() { OSVERSIONINFO osvi; ZeroMemory(&osvi, sizeof(OSVERSIONINFO)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&osvi); return osvi.dwMinorVersion; } Also cpustr below sometimes ends up being null. For example, from an executable app cpustr stores the correct string while [...] read more
Here's the code segment. It's performing x/2^n, rounding towards 0. The first print statement calculates the correct value (-7 in this case), but the second statement, which is just the first statement with bias replaced with ((x>>31) & ((1<<n)+0xffffffff)) (what bias is calculating anyways) and produces 9. What's going on [...] read more
I have a function GrantGenericRead that works when I create an object $ouUnixGroups in the same run. I'm trying to figure out how to get an object out of AD that I can run GrantGenericRead on, but it seems when I try this every way I know how (adsi, lookup [...] read more
I'm testing out my JNI dll and I'm getting system crashes when executing certain calls to my C based functions. Some calls work (see below getSession 1-5) and some cause crashes (see below getSession 6-8). Below is a list of my testing findings. I've removed all logic from the C [...] read more