Like many of us, I spent yesterday updating a whole lot of systems to mitigate the Meltdown and Spectre attacks. As I understand it, it is necessary to install two packages and reboot: kernel-3.10.0-693.11.6.el7.x86_64 microcode_ctl-2.1-22.2.el7.x86_64 I have two CentOS 7 systems on which I've installed these packages and rebooted. According [...] read more
First time poster! I am new to Android development and have been following Google's HelloView tutorials without problems... until the HelloGridView tutorial. For some reason I cannot get any images to display, only a black background. I originally followed this tutorial: http://developer.android.com/resources/tutorials/views/hello-gridview.html but moved on to this nearly identical one: [...] 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
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
I am developing a simple and small 64bit OS. Until now I've used a single file and compile it with NASM: nasm -f bin os.asm -o os.bin Then tested the .bin file with qemu. Now I need to use multiple files so in my os.bin file. I've inserted this line: [...] read more
I am trying to run a simple instance after a fresh installation of OpenStack. The instance cannot start and in the log I found "libvirtError: internal error Cannot find suitable CPU model for given data". Please help. Some info: libvirt.x86_64 0.10.2.6-5.el6.centos.alt qemu-kvm.x86_64 2:0.12.1.2-2.355.0.1.el6.centos.6 CentOS release 6.4 (Final). (Linux 3.4.54-8.el6.centos.alt.x86_64 #1 [...] read more
Windows With Raku/Perl6, how do I use NativeCall to read the value of [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ "EnableLUA"] with RegQueryValueExW? https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regqueryvalueexw Many thanks, -T edit 12-27-2019 #1: removing bad code and inserting new code This is how far I have gotten. Test run string: K:\Windows\NtUtil>perl6 -I. -e "use WinMount :GetLUA; say GetLUA();" RegOpenKeyExW [...] read more
I'm currently writing a lecture on ARM optimization, specifically on vector machines such as NEON as the final target. And since vector machines don't fare well with if-else slaloms, I'm trying to demonstrate how to get rid of them by bit-hacking. I picked the "saturating absolute" function as an example [...] read more
I'm writing an initialization method for CloudKit. The problem I'm having occurs while fetching the user id/account status. I'm calling [[CKContainer defaultContainer] fetchUserRecordIDWithCompletionHandler:]. It crashes a little while later and the debugger points me to the "Queue: com.apple.cloudkit.operation.callback (serial) queue" thread. This method is the only CloudKit related method with [...] 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
Currently I am analyzing a dump with WinDbg. I ran following commands (following Tess' incredible walkthrough): ~* e !clrstack Which listed me all stacks of all threads. There are 300 running threads with more or less the same stack, so I am just printing the stack of one here ... [...] read more
I am seeing the following lines in kmsg when my Galaxy S2 device wakes up from suspend. I understand that this is supposed to tell me which interrupts are pending but I can't find a way to figure out which: <1>[40470.716887] PM: SLEEP <6>[40681.900179] WAKEUP_STAT: 0x80000001 <6>[40681.900179] WAKEUP_INTx_PEND: 0x0, 0x0, [...] 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 need to find the architecture type of a CPU. I do not have access to /proc/cpuinfo, as the machine is running syslinux. I know there is a way to do it with inline ASM, however I believe my syntax is incorrect as my variable iedx is not being set [...] 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 supposedly for language-lawyers. Suppose that signed and unsigned int are both 32 bits wide. As stated in the n3337.pdf draft, 5.3.1.8, (-(0x80000000u)) = 0x100000000u-0x80000000u = 0x80000000u But I can not find the answer to the question: what will be unary minus for signed 0x80000000? Is it UB, [...] 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
Here is the WinRegistry class I am using to readStringValues for a Key and am getting NullPointerException: public class WinRegistry { public static final int HKEY_CURRENT_USER = 0x80000001; public static final int HKEY_LOCAL_MACHINE = 0x80000002; public static final int REG_SUCCESS = 0; public static final int REG_NOTFOUND = 2; public [...] read more
I was using the following pattern to record an enhanced meta-file for a later playback: POINT pts[] = { //..... }; ::SelectObject(hEnhDC, ::GetStockObject(LTGRAY_BRUSH)); ::Polygon(hEnhDC, pts, _countof(pts)); Now I'm forced to use GDI+ to provide anti-aliasing, so I'm trying to convert that code sample: Gdiplus::Point pts[] = { //... }; Gdiplus::Graphics [...] read more
Consider the following code: #include <iostream> #include <fstream> #include <string> #include <sstream> #include <tuple> auto read_data(std::ifstream& training_file) { if (!training_file) { throw std::runtime_error{"Error: could not open one or more files"}; } std::stringstream training{}; training << training_file.rdbuf(); std::cout << training.str() << '\n'; return std::tie(training); } int main() { std::ifstream input{"input.txt"}; auto [...] read more
I am new to Java so I have a problem with hex numbers usage in conditionals and its sizes. There is some issue about Scanner class too. I have searched java documents for primitive data types. The program is about; take a number and look in which data type it [...] read more
I am looking into the the hello world of bare metal on RPi3, which is turning on the ACT LED. There many good resources: 1. Some in assembly for Pi 1 2. David Welch's excellent baremetal tutorial for Pi 1 and 2 3. and his blinker01 example for Pi 1 [...] read more
I'm trying to debug a child process while it's in a suspended state. The problem is that when I attempt to do that, the application doesn't start (it starts but exits instantly). That helps against reverse engineering, but however I can't manage doing it. static void DebuggingTest(PROCESS_INFORMATION pi, int imageBase, [...] 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 wish to use a string (BIRCH) as a field delimiter in awk to print second field. I am trying the following command: cat tmp.log|awk -FBirch '{ print $2}' Below output is getting printed: > irch2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success Desired output: > 2014/06/23,04:36:45,3,1401503,xml-harlan,P12345-1,temp,0a653356353635635,temp,L,Success Contents of tmp.log file. -bash-3.2# cat tmp.log Dec 05 13:49:23 [...] read more
I am working on a homework assignment, where we are supposed to convert an int to float via bitwise operations. The following code works, except it encounters rounding. My function seems to always round down, but in some cases it should round up. For example 0x80000001 should be represented as [...] read more
Running a c# windows app, forced platform target of x86, on a 64 bit host. When the app is compiled using "Optimize code" option get this error during execution. First-chance exception at 0x74F7C41F (KernelBase.dll) in sldotnetsso.exe: 0x02345678 (parameters: 0x80000001). First-chance exception at 0x74F7C41F in sldotnetsso.exe: Microsoft C++ exception: EEException at [...] 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 am a beginner with Android, and I have a strange bug with the NotePad Tutorial (Exercice 1). http://developer.android.com/resources/tutorials/notepad/index.html I imported the sources and completed the code, but when I run the app, and click on the "Menu" button, it crashes (The application .... has stopped unexpectedly. Please try again.) [...] read more
I am writing a boot loader for a hobby OS, which targets UEFI. In order to pass some information from the boot loader to the kernel, I make a few memory allocations using BootServices->AllocatePages(). I wanted to create a distinction within the memory map between the traditional EfiLoaderCode, the EfiLoaderData, [...] read more
I have to work on an app. This app uses regedit to save preferences. This application must read a file and if it does not exist must write it to the Regedit. Everything has already worked, it is an already existing project. I'm just getting back to work to do [...] 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 am reverse engineering an old game format. For their textures, they store display type information in a single integer. I initially though the different bits were boolean flags. For example, if bit 1 was set, the texture is transparent. The more I have worked through the different display types, [...] read more
I am working a Linux kernel module (VMM) to test Intel VMX, to run a self-made VM (The VM starts in real-mode, then switches to 32bit protected mode with Paging enabled). The VMM is configured to NOT use rdtsc exit, and use rdtsc offsetting. Then, the VM runs rdtsc to [...] read more
In Visual Studio I want to export function from dll by ordinal only. In source I define function to be: int my_function() { return 101; } // without declspec(dllexport) In the .def file: LIBRARY MyDll EXPORTS my_function @ 1 NONAME // NONAME, export directory will not contain function name In [...] read more
How do I create BYTEA from JavaScript array ? According to PL/V8 doc JS arrays should be converted to BYTEA but it's not happening for me. For example consider following function CREATE OR REPLACE FUNCTION test2(input bytea) RETURNS bytea AS $$ var arr = [255, 254]; return arr; $$ LANGUAGE [...] read more
This morning I've noted that a few git alias stopped working. I've used these extensivly every day since ~2 years back, most notably (from ~/.gitconfig): [alias] start = checkout -b m = checkout origin/master s = status st = diff --staged co = checkout cm = commit cp = cherry-pick [...] read more
A customer that uses our API gets a guard page exception. He uses VirtualAlloc and VirtualProtect. When I run his example everything works fine. I tried this example from Microsoft but VisualStudio does not throw an 0x80000001 exception even if I already turned it on in the exception menu under [...] read more
I wanted to test USB Audio on my Samsung S4 Mini GT-I9195 running Android 5.1 (Bliss Pop, which is partly based on Cyanogenmod). I´ve found another thread here and I too can successfully aplay a wav to hw:1,0, but I´m not able play sounds from any app. For me it [...] read more
here is my code it shares the folder but that does not work correctly when i want to access it , it shows access denied help required, private static void ShareFolder(string FolderPath, string ShareName, string Description) { try { // Create a ManagementClass object ManagementClass managementClass = new ManagementClass("Win32_Share"); // [...] read more
I am trying to using raspberry pi usb to communicate with other devices, however I encountered a problem when trying to open the port. The trace log from console is as follows: 11/24/14 13:56:48.641 + DLSUSBScale: Scale claim 11/24/14 13:56:48.641 + DLSUSBScale: Device claim 11/24/14 13:56:48.641 + DLSObjectFactory: createPort() 11/24/14 [...] 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'm trying to understand how memory works, and how every instruction allocates memory. I'm also trying to understand the concept of offset, and base pointers. I am doing this for intel processors and MIPS. I am able to access memory windows in Visual Studio, however when i use gcc and [...] read more
This is a university question. Just to make sure :-) We need to implement (float)x I have the following code which must convert integer x to its floating point binary representation stored in an unsigned integer. unsigned float_i2f(int x) { if (!x) return x; /* get sign of x */ [...] read more
There is a following function that is supposed to make a comparison between 2 floating point values, but faster than regular comparison in some specific cases (e.g. on Cortex-A8) int isGreater(float* f1, float* f2) { int i1, i2, t1, t2; i1 = *(int*)f1; // reading float as integer i2 = [...] read more
my app crashed every now and then and I get hs_err_pid file in the folder with no other lines in my apache logs. here is the begining of the file An unexpected error has been detected by Java Runtime Environment: java.lang.OutOfMemoryError: requested 512000 bytes for GrET in C:\BUILD_AREA\jdk6_13\hotspot\src\share\vm\utilities\growableArray.cpp. Out of [...] read more
I am creating an OOB Silverlight application where I need to read the sub keys from the registry. Although I have tried writing the code, it is not working. How can I read the subkeys from registry in SL4. Below is the screenshot of the code. if (AutomationFactory.IsAvailable) { using [...] read more
At the time me and a friend are programming the classic game Tetris, for a school project. I have been programming for an while now and had implemented both a rotate and a moveBlock, and newBlock, draw, etc., methods, so I thought now maybe would be the perfect time to [...] 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
PC Specs: * Ryzen 5 5600x * 16gb Trident Z Neo @ 3600mhz * B550 Aorus Pro AC Wireless (Bios Version 13h) * EVGA - SUPER XC ULTRA GAMING NVIDIA GeForce RTX 2070 Super 8GB GDDR6 * 700w EVGA PSU I've been trying to get DX12 games to run for [...] 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 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
I am trying to use KVM with QEMU. I am missing a lot of features in the QEMU (those features present in the HOST). I checked the code in the QEMU and it check the features exposed by the KVM. I wrote simple .c code that checks if KVM expose [...] read more
In case this helps somebody in the future: * check if the global descriptor table is working * check if the elements of page table entry struct are ordered correctly This code worked for me: gdt.s section .data gdt: .null: dq 0 .code: dw 0xFFFF dw 0x0000 db 0x00 db [...] read more
While I was trying to setup tensorflow (both, using venv and without it) on import I got the following error: > ImportError: DLL load failed: A dynamic link library (DLL) initialization > routine failed. I went to the official site's error page and found that possibly AVX and AVX2 instructions [...] 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'm just trying to customize the kernel configuration for Raspberry Pi 4B, to achieve a compact system image and quick startup, but as we can see in the logs there's approximate ~4.0s to start executing my 4.2MB kernel. * Logs: 23:20:06.198 -> 23:20:06.198 -> PM_RSTS: 0x00001000 23:20:06.198 -> RPi: BOOTLOADER [...] read more
I'm trying to run PAPI on an Odroid-XU4, I've installed PAPI and when I run papi_avail -a I can see 16 events available. I've set perf_event_paranoidto -1. When I try to call PAPI using C, it always says: > Event doesn't exist even though I know the hardware has 16 [...] read more
I'm trying to follow the OSDev "Higher Half x86 Bare Bones" tutorial (after having done it multiple times) and modify it to send the kernel to the higher half of the PML4 as opposed to the higher half of a 32-bit page table. The reason being because of mixed syntaxes [...] read more
I am having trouble debugging programs with threads on Cygwin. When the following program gets to the pthread_create() call, the debug session gets an unknown target exception, apparently in a call to ntdll!RtlAllocateHeap(). I know in the past I have been able to debug threads in Eclipse -- are there [...] read more
I have a hypothesis that speculative execution on Intel Nehalem (1 gen) causing a crash. Is it possible or I completely wrong? If this is possible what can I do to prevent this? Maybe disable speculative execution for just one function or whole translation unit? For the compilation of the [...] read more
I have a question regarding PAPI (Performance Application Programming Interface). I downloaded and installed PAPI library. Still not sure how to use it correctly and what additional things I need, to make it work. I am trying to use it in C. I have this simple program: int retval; retval [...] read more
I'm trying to match each section of any Link State type from OSPF Database as shown in CLI_Output below using following regex in python: regex = r'\n\n(\s+\S+( \S+)?(.+?)\n\n)(\s+\S+( \S+)?)?' section = re.findall(regex,_original_result, re.M) But I get only (the 1st) one line after the heading line i.e. Router Link States (Area [...] read more
I followed this C# example and am able to query some registry values, but not all of them: How to obtain a registry value from a remote machine if I don't know its type? (C#) I can reliably get registry keys such as the CurrentVersion, the ProductName, etc. But when [...] read more
I need to delete a registry key value under HKLM\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist, "3". I need to delete key value. I found a code on http://www.rgagnon.com/javadetails/java-0630.html but when i'm trying to run it it's showing me Exception: Exception in thread "main" java.lang.IllegalArgumentException: rc=5 key=SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist value=3 at Forcast_DataFetch.WinRegistry.deleteValue(WinRegistry.java:253) at Forcast_DataFetch.WinRegistryTest.main(WinRegistryTest.java:12) Code for reference: import [...] read more
Are there comprehensive and accurate sources where I can get x86 CPUID feature flags (leafs 1, 7, and 0x80000001) for Intel and AMD processors sorted in chronological order of their introduction? read more
Clean Genymotion 2.12.1 installation in LMDE 2 (64b, Cinnamon 3.4.6, GeForce 210, 16GB RAM), VirtualBox 5.1.32. When I launch a virtual device it shows the window for a few seconds and then disappear. In VirtualBox it shows as Running. I am suspecting video driver problem but IIRC it used to [...] read more
I have an application that is communicating to a device through the accessory port. When the device is spitting data (at a rate of one 13-byte packet every 20 ms, so not very quickly) to the iPhone, if I press the home button to send the app to the background, [...] 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
We are attempting to capture logs to syslog-ng over tcp connection. The logs looks something like this: 1810717353--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00--<11>Oct 23 16:03:23 HOSTNAME [443-Multiplexer][0x80000001][xsltmsg][error] xmlfirewall(443-Multiplexer): trans(2607607975)[error][ip] gtid(value): 1810717354--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- Default rule caught error code ' 1810717355--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- 0x00230001 1810717356--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- ' 1810717357--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00-- 1810717358--user--notice--IPV4----2017-10-23T16:03:23.015170-04:00--<14>Oct 23 16:03:23 HOSTNAME [443-Multiplexer][value][multistep][info] xmlfirewall(443-Multiplexer): trans(2607607975)[error][ip] gtid(2607607975): Is there any way to [...] read more
Hello fellow engineers. I am writing an anti-debugger that attempts to protect a process that was created through process hollowing. My process is created with CreateProcess and the process creation flag I pass is 0x00000004 (CREATE_SUSPENDED). I manually map the PE's sections and headers in memory and allocate the necessary [...] read more
I just upgraded to Ubuntu 16.04 LTS. In my C++ applications I use the PAPI library, so I installed it from http://icl.utk.edu/papi/. However for some reason I can not run my applications anymore without having to type sudo in the beginning. Even just typing papi_avail on the terminal to see [...] read more
I'm trying to make automation scripts with memory breakpoint function by using a pykd on windbg and this is my script in short class MemBpHandler(pykd.eventHandler): def setPageGuard(self, addr, size, guard=0x140): # Set PAGE_GUARD cmdVprotect = "!sdbgext.vprotect %x %x %x" cmdr = pykd.dbgCommand(cmdVprotect % (addr, size, guard)) dbiprintf(cmdr) def onException(self, exceptInfo): [...] read more
My Laptop configuration is 64-bit window 8. When user select pdf file and do right click at that time i need to add context menu. I googling too much and i found some solution. But no one can solve my problem. I found below link for my problem read/write to [...] read more
So today I was creating another bootloader, and thought that it would be nice if I would be able to use power of 64 bit processors. Everything seems to be running fine until my bochs start to restart due to Page Fault. NOTE: parts of code is copied from osdev [...] read more
I need to create a C++ program that will send data to printer Zebra QLn320 from Motorola PDA (via RS232). Motorola provides some interface (Mobility Development Kit) but something is wrong. When I create standard CPCL command and send it to the printer from VB.NET (via RS232) it works well. [...] read more
recently I came across a term "identification register" related to Intel Processors. It was like key-value pair "IdentificationRegisters": "0x34AC34DC8901274A". Now since I don't know much about these terminologies related to processors(may be to identify them !), can I get some input from this community regarding what this could mean ? [...] read more
I have the following callstak in a crash dump. It is the first time I see something like this and I don't get what it means: ntdll.dll!_RtlCallVectoredExceptionHandlers@8() + 0xa bytes ntdll.dll!_RtlDispatchException@8() + 0x19 bytes ntdll.dll!_KiUserExceptionDispatcher@8() + 0xf bytes ntdll.dll!_RtlUnwind@16() + 0x352e8 bytes MSVCR110_CLR0400.dll!_UnwindNestedFrames() + 0x2a bytes MSVCR110_CLR0400.dll!___DestructExceptionObject() - 0x534 bytes [...] read more
I installed genymotion on Ubuntu 14.04 and when I start it I see in console: eizotov@dev-inviuweb-03:~/genymotion$ ./genymotion Logging activities to file: /home/eizotov/.Genymobile/genymotion.log eizotov@dev-inviuweb-03:~/genymotion$ In the log file I see: Feb 16 15:32:55 [Genymotion] [Warning] **** STARTING GENYMOTION **** Feb 16 15:32:55 [Genymotion] [Warning] Genymotion Version: Genymotion 2.3.1 Feb 16 15:32:55 [...] read more
I have to use bitwise manipulations to accomplish something. This is what the question asks of me: /* * allEvenBits - return 1 if all even-numbered bits in word set to 1 * Examples allEvenBits(0xFFFFFFFE) = 0, allEvenBits(0x55555555) = 1 * Legal ops: ! ~ & ^ | + << [...] read more
I have written a script, which polls a log file entries last half an hour only and send an email, if error is found.I have scheduled this script to run in crontab for every half an hr. Below is the script. But this script is not working as I wanted [...] read more
I have to write a shell/perl script to scan a log file for last 30 mins worth Data. The requirement is to schedule this script in Cron to run every 30 minutes and look for a error string. OS: Solaris Shell:Bash I have tried below script, but it has become [...] read more
I'm developing with RAD-Studio XE7 an app for Android. Everything is going fine up to the point where the app crashes with seg-fault(11). I retraced this to the "end;" of a procedure, where the system-memory-releases are executed. In System._InstClear the program stops at "ldr.w r1 [r1,#-60]" where the register R1 [...] read more
I have to following bitwise code which casts a floating point value (packaged in an int) to an int value. Question: There are rounding issues so it fails in cases where input is 0x80000001 for example. How do I handle this? Here is the code: if(x == 0) return x; [...] read more
> Possible Duplicate: > C++: Iterate through an enum I have following enum in c++; typedef enum { APP_NONE = 0, APP_SESSION = 0x80000001, APP_TITLE = 2, } APP_TYPE; I am writing a test function, which accept a string, get related integer, such as: getEnumByString("APP_NONE") = 0; or vice verse [...] read more
This script is getting Microsoft JScript runtime error: Object expected on If (out_params.bGranted) line. It seems like this is related to a syntax error, but I can't find it. This code, in its current form, was basically copied from Invoking functions with `out` arguments, passing arguments by reference in JScript. [...] read more
I'm stuck between some unusual problem.My app was running properly but I did some changes and switch the workspace. Now if I run my project the application closes with "Force to close" dialog. I couldn't understand my log cat error detail. Edit: R File: public static final int main=0x7f030004; Java [...] read more
C 11 6.3.1.3, for cast: > Otherwise, if the new type is unsigned, the value is converted by repeatedly > adding or subtracting one more than the maximum value that can be represented > in the new type until the value is in the range of the new type. When [...] 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