Windows error 0x000000FF, 255

Detailed Error Information

EA_LIST_INCONSISTENT[1]

MessageThe extended attributes are inconsistent.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x800700FF.

RESERVE_QUEUE_OVERFLOW[2]

This is a Blue Screen of Death stop code. More information is available in the Knowledge Base article Bug Check 0xFF: RESERVE_QUEUE_OVERFLOW.

HRESULT analysis[3]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[3][1]
DescriptionThe default facility code.[3][1]
Error Code255 (0x00ff)

Questions

20votes
3answers

How do you set the glass blend colour on Windows 10?

Using the undocumented SetWindowCompositionAttribute API on Windows 10, it's possible to enable glass for a window. The glass is white or clear, as seen in this screenshot: enter image description here [https://i.stack.imgur.com/OPeCz.png] However, the Windows 10 Start menu and the notification center, which both also uses glass, both blend with [...] read more
winapi
windows-10
aero
dwm
aero-glass
13votes
1answer

Print bitmap full page width in thermal dot printer using ESC/POS in java

I'm trying to print an image of 576 pixels width in a thermal printer that supports ESC commands, the problem is that the command "ESC *" for printing image bits only let me print images of 255 pixels width (if i use a 576 pixels image some parts are printed [...] read more
java
image
printing
thermal-printer
11votes
3answers

Saving the openGL context as a video output

I am currently trying to save the animation made in openGL to a video file. I have tried using openCV's videowriter but to no advantage. I have successfully been able to generate a snapshot and save it as bmp using the SDL library. If I save all snapshots and then [...] read more
c++
opengl
opencv
ffmpeg
sdl
8votes
1answer

Creating OpenGL texture from SDL2 surface - strange pixel values

I'm trying use SDL2 to load a texture for OpenGL rendering of Wavefront Objects (currently I'm testing with the fixed pipeline, but I eventually plan to move to shaders). The problem is that the loaded texture applied to a quad (and a model that uses a small part in the [...] read more
c++
opengl
textures
loading
sdl-2
7votes
2answers

Network performance deteriorates when uninvolved device on switch is shut down

I am witnessing very counter-intuitive effect in my network setup. I have a network setup with three devices (let's call them server, laptop and nettop, all running Linux, details below) connected to a gigabit ethernet switch. I measure network throughput (a) by transferring a file from the server to the [...] read more
networking
performance
6votes
3answers

Error 0x800f0922 installing .NET 3.5 on Windows 8

I'm trying to install .NET 3.5 on my Windows 8 box and it keeps throwing Error 0x800f0922 at me. From what I've read on answers.microsoft.com and StackOverflow I gather the easiest way to fix this is to perform a system refresh, however this will remove all software I've installed from [...] read more
windows-8
.net-framework
.net-3.5
5votes
1answer

NFS client has unbalanced read and write speeds

I've got a NetApp as my nfs server, and two Linux servers as the nfs clients. The problem is that the newer of the two servers has extremely differing read and write speeds whenever it is doing read and writes simultaneously to the nfs server. Separately, reads and writes look [...] read more
linux
networking
nfs
netapp
5votes
1answer

Determine correct pixel format for SDL_CreateTexture()?

I am struggling to convert a simple pong game from SDL to SDL2 because I could not find a valid value for the pixel format argument (second parameter 'Uint32 format') when calling SDL_CreateTexture(). Finally I found success by using SDL_PIXELFORMAT_ARGB8888, and I also found that SDL_PIXELFORMAT_UNKNOWN works too. However, after [...] read more
c
sdl
sdl-2
5votes
1answer

Algorithm for printing decimal value of a huge(over 128bits) binary number?

TLDR, at the bottom :) Brief: I am in a process of creating an basic arithmetic library(addition, subtraction, ...) for handling huge numbers. One of the problem i am facing is printing these huge binary numbers into decimal. I have huge binary number stored in an array of uint64_t. e.g. [...] read more
c
algorithm
data-conversion
5votes
2answers

SDL_TTF draws garbage

I asked a question the other day, about rendering TTF fonts using SDL, and was pointed towards SDL_TTFL I've tried using the SDL_TTF library, but All I'm getting is garbage on screen [https://i.stack.imgur.com/FqyCT.png] I have included my shaders, which are very simple for this program, and also the snipped I'm [...] read more
c++
opengl
sdl
sdl-ttf
4votes
0answers

php-cgi.exe and/or php5.dll crashing - PHP 5.2.17, Win2k8 & IIS7

A specific part of my PHP script crashes randomly and I'm not sure why. The only difference on this page and the rest of the pages, is that I'm doing a PDO SQLSRV call. But 80% of the time there are no issues, and then suddenly IIS7 will just start [...] read more
windows-server-2008
php
iis-7
fastcgi
4votes
3answers

.NET Equivalent of _byteswap_ulong / OSSwapInt32 / or bswap32

Does anybody know if there is a .NET Framework equivalent for swapping the order of bytes in an uint? I am trying to port some custom c hashing code that is using MSFTs _byteswap_ulong (the equivalent of Apples OSSwapInt32 or Bswap32 in *Nix world) to c#. I can write this [...] read more
c#
4votes
1answer

SDL2 Texture sometimes empty after loading multiple 8 bit surfaces

I'll try to make that question as concise as possible, but don't hesitate to ask for clarification. I'm dealing with legacy code, and I'm trying to load thousands of 8 bit images from the disk to create a texture for each. I've tried multiple things, and I'm at the point [...] read more
c
sdl-2
4votes
2answers

converting image to binary in swift

I want to convert an image to binary black and white, at the moment I am looping through pixels (stored in UnsafeMutableBufferPointer) using normal nested loops, comparing each RGB to average and setting it to black or white, however. This seems really slow and I am sure there is a [...] read more
ios
swift
cocoa-touch
uiimage
core-graphics
3votes
1answer

Netmask ordering prioritization not working?

I've a server with 2 IP's. * 10.10.1.50 (255.255.255.0) * 10.10.2.50 (255.255.255.0) I've also a DC which has it's IP on 10.10.1.30 and has no way to reach 10.10.2.50. When I ping the server from DC it responds with 10.10.2.50. So I went with the obvious way to deal with [...] read more
domain-name-system
windows-server-2008-r2
3votes
2answers

How to change 'Advertised pause frame use' and autonegotiation setting on gigabit NIC

I'm investigating some poor nfs performance on a new server, as compared to an old server. Both the old and the new server are nfs clients, and they connect to the same exact NetApp nfs server. My specific question: How to I change the "Advertised pause frame use" setting? I [...] read more
linux
networking
nfs
ethernet
3votes
1answer

Why is mii-tool saying duplex is half while ethtool is saying duplex is full?

CentOS 5.x I configured my CenTOS server to use full duplex. I did this by editing the network script: more /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.200 NETMASK=255.255.255.0 HWADDR=00:14:5E:0C:8B:E3 ETHTOOL_OPTS="speed 100 duplex full autoneg off" (IPs and MAC has been renamed to protect the innocent =) ) After making this change, I [...] read more
centos
ethtool
3votes
1answer

STM32F103C8T6 can not communicate with HD44780

I'm trying to control a HD44780 16X2 LCD(4 bit communication) using a STM32F103C8T6. I connected the LCD this way: > RS => PA0 EN => PA2 RW Ground D7 => PB7 D6 => PB6 D5 => PB5 D4 => PB4 The LCD doesn't display anything. Where might the problem be? [...] read more
stm32
keil
lcd
communicate
hd44780
3votes
2answers

could not be resolved ANDROID_LOG_DEBUG in android

I want to take screenshot programmatically. I have taken the below class fro thishttp://www.pocketmagic.net/?p=1473, but its not take take screenshot. to debug the code when I try to debug code using __android_log_print(ANDROID_LOG_DEBUG,DEBUG_TAG,"messsage"); it does not recognize ANDROID_LOG_DEBUG give me error on this Symbol 'ANDROID_LOG_DEBUG' could not be resolved rather i [...] read more
android
linux
android-ndk
java-native-interface
3votes
1answer

Why do the upper 32 bits of a uint64_t become one whilst performing a specific bitwise operation?

Can someone please explain to me why the upper 32 bits of a uint64_t are set to one in case number #2: uint64_t ret = 0; ret = (((uint64_t)0x00000000000000FF) << 24); printf("#1 [%016llX]\n", ret); ret = (0x00000000000000FF << 24); printf("#2 [%016llX]\n", ret); uint32_t ret2 = 0; ret2 = (((uint32_t)0x000000FF) << [...] read more
c
literals
signed
integer-promotion
uint64
3votes
1answer

Using ccache with clang 5 causes different results from just clang5

So with this contrived bit of code - compiling with clang works just fine, but when ccache is used extra warnings/errors appear - I thought ccache is supposed to transparently pass these through. This is ccache 3.1.6 on CentOS 6 from epel repo - upgrading is not an option as [...] read more
clang++
ccache
2votes
2answers

Ethernet / DHCP-trouble on Linux

Have a strange problem with my wired network interface. Here goes: 1. I plug in the cable. 2. Both diodes light up (one green / one orange) and dmesg gives [ 66.847512] tg3: eth0: Link is up at 1000 Mbps, full duplex. [ 66.847516] tg3: eth0: Flow control is off [...] read more
linux
dhcp
2votes
3answers

Method that processes pixels in a certain way

in a code snippet, I have found the following method that I could not understand: static void processPixels(int width, int height, int *pixels, int *rgb) { int R[256]; int G[256]; int B[256]; for (int i = 0; i < 256; i++) { R[i] = (rgb[i] << 16) & 0x00FF0000; G[i] [...] read more
c
image-processing
pixel
2votes
1answer

SDL_CreateRGBSurfaceFrom / SDL_BlitSurface - I see old frames on my emulator

I'm working on a Space Invaders emulator and for display output I'm using SDL2. The problem is that on the output window I see all the frames since emulation starts! Basically the important piece of code is this: Intel8080 mainObject; // My Intel 8080 CPU emulator mainObject.loadROM(); //Main loop flag [...] read more
c++
emulation
sdl-2
framebuffer
2votes
2answers

This CRC6 snippet gives wrong results

A code snippet to generate CRC6 is not giving the right value. What could be the problem in the code snippet? SPI_CRC6 = X6 + X4 + X3 + X + 1 The initial seed value is 0x3F Input data: 24 bit. A few tested sample values:(not from code snippet) [...] read more
c
crc
2votes
0answers

Can't write data to external bluetooth device using External Accessory Framework

I have followed the sample code EADemo provided by Apple. I have successfully connected to IAP2 Bluetooth MFI device below BLE i.e. version (2.x) with my application and read data from external device. But when I tried to write some commands to external Bluetooth device, not getting any response from [...] read more
ios
objective-c
bluetooth
external-accessory
mfi
2votes
1answer

Binary subtraction, carry bit not set?

I've encountered a situation that seems a bit unintuitive when dealing with binary subtraction and the NZCV flag bits. Consider the following values 0xF7 0b 1111 0111 0xFF 0b 1111 1111 If these are both considered to be 8B values where 0x000000F7 0b 0000 .... 0000 1111 0111 0x000000FF 0b [...] read more
assembly
binary
flags
2votes
1answer

Clang-cl.exe and constexpr depth

I'm using Clang 3.6 with Visual Studio 2015 and I'm using this CRC32 implementation to generate hashes at compile time: #define CRC32(message) (crc32_<sizeof(message) - 2>(message) ^ 0xFFFFFFFF) static constexpr uint32_t crc_table[256] = { 0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L, 0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L, ... }; template<size_t idx> constexpr uint32_t crc32_(const [...] read more
c++
clang
llvm
constexpr
2votes
1answer

How to append multicolor text in JavaFx textArea

This is actually my first JavaFx desktop application. Within my application I want to display every event as a log in textarea. I have different log types , error,warning etc. I want to append all these logs inside a textarea with different colors. I tried like this(this is just a [...] read more
javafx
textarea
2votes
1answer

CreateDIBSection ERROR_TAG_NOT_FOUND when transforming a PNG type resource into a cv::Mat

I'm currently using a modified version of the following code I found here to try and convert a .png resource in my project to a HBITMAP and then into a cv::Map. cv::Mat Resource2mat(const HMODULE hModule, const LPCSTR lpPNGName) { cv::Mat src; HRSRC found = FindResource(hModule, lpPNGName, "PNG"); unsigned int size [...] read more
c++
opencv
bitmap
png
1vote
2answers

Changing network interface speed with ethtool is not working

Im using lenevo M5 server which have Gbps ethernet cards, but strangely when i read cat /sys/class/net/eth3/speed it show 100 similarly when using ethtool it show 100Mbps only.The output of dmesg and ethtool are below. Any idea why is that root@server1:~# dmesg |grep eth1 [ 3.027487] tg3 0000:16:00.1 eth1: Tigon3 [...] read more
ubuntu
linux-networking
ethernet
ethtool
1vote
0answers

IP hashing filter in traffic shaping

I am using a traffic shaping by IP hashing filter. I have Five networks /24 : 192.168.1.0/24, 192.168.2.0/24 .. 192.168.5.0/24 so i create a table with 5 cells and each cells has 256 cells. this is a part of my configuration : $tc qdisc add dev $DEV root handle 1: [...] read more
linux
networking
linux-networking
traffic-shaping
1vote
1answer

Unable to set eth0 autoneg off speed 1000 duplex full : invalid argument

I use Ubuntu server for my things,but when i config speed 1000 and duplex full the error occur. I've tried the answers from here,does not work, the command i used is ethtool -s eth0 speed 100 duplex full Before this happened I changed my network settings, but unfortunately forgot what [...] read more
ubuntu
linux-networking
ethtool
1vote
1answer

Server unreachable, best way to find out the cause?

I'm running debian squeeze on a rented dedicated server and in the recent time the server gets more often unreachable from one moment to the other with any external service. During this downtime, the crontabs etc. are running normally and I couldn't find any clou of a crash or related [...] read more
networking
ip
1vote
1answer

How to set up dual quadro cards on RHEL 5.5?

I have a RHEL 5 workstation with 2 nvidia Quadro FX4500 cards, with one display attached to each card. After doing a clean install of RHEL 5.5, the second display doesnt work (it worked ok in RHEL 5.2). Neither separate X screens nor Xinerama are working. The kernel version is [...] read more
multiple-monitors
redhat-enterprise-linux
nvidia-quadro
1vote
1answer

Surface poorly filled with sdl_ttf

I'm trying to make an openGL game in c++ and I'm trying to implement a text system, to do this I'm trying to use SDL_ttf. I already used SDL_ttf in an other project but with another api, so I made the same code but it happened to not fill the [...] read more
c++
opengl
textures
sdl-ttf
1vote
3answers

how to ping multiple ip adresses at the same time

I currently have code that gets a range of ip addresses (ex. 192.168.1.101 to 192.168.1.110) and pings them individually by using a for loop. the problem is that this takes too long, especially if the ping is unsuccessful. Is it a good idea to ping 10 ip addresses at the [...] read more
c#
1vote
1answer

How would you install openconnect via nix on macOS latest?

I’m new to nix and would like to be able to install openconnect with it. Darwin seems to be unsupported at this time via nix, though it can be installed with either brew or macports. I’ve tried both a basic install and allowing unsupported. I didn’t see anything on google [...] read more
macos
macos-mojave
nix
openconnect
1vote
1answer

Why are instruction in my HLSL Compute Shader being skipped

Here is a short Compute Shader I wrote : struct CSEdgeVertexDetection_Part_02_Type { float3 position; bool isEdgeVertex; }; ByteAddressBuffer byteBuffer : register(t0); Texture2D<float4> prevBackBuffer : register(t1); RWStructuredBuffer<CSEdgeVertexDetection_Part_02_Type> vertexData : register(u1); [numthreads(64, 1, 1)] void main(uint3 groupId : SV_GroupID, uint groupIndex : SV_GroupIndex) { uint index; float4 position; float4 inputPosition; index = [...] read more
debugging
graphics
directx
hlsl
compute-shader
1vote
0answers

How can i identify/count how many objects are there in a image that has overlaps

The problem is I am trying to identify plants from a drone image. The plants from the image contain overlaps and are of different shapes/sizes. I am unsure of where to look or what types of methods to use for this and am looking for suggestions. I have taken snippets [...] read more
java
eclipse
image-processing
computer-vision
detection
1vote
1answer

Byte Array to UIImage returns Null

Hello I'm trying to get the pixel value from an image, convert the image to grayscale and finaly to return a UIImage from byte array with NSData. But it returns null partial void Analyze_button_TouchUpInside(UIButton sender) { int Rows = 324; //Width int Cols = 182; //Height var ImageSize = Rows [...] read more
c#
xamarin.ios
1vote
0answers

Change gradient image color from one color to another programatically in java

Currently in below code i am checking for each pixel if its white then if its not white then changing it to new color its not working for gradient image.specially shade on right and left corners.i have attached images blue one is input need to convert to another red image [...] read more
java
image-processing
colors
gradient
1vote
4answers

How to extract bytes from an int variable(hexadecimal value stored in int variable)?

Im trying to extract 4 bytes from hexadecimal value stored in int variable. My idea is to "push" wanted byte to the end by using right shift operator( >> ) and then use AND operator with 0xFF value to get only last 8 bits of value. Its working fine with [...] read more
c
hex
bitwise-operators
1vote
1answer

C# (Unity) Create Synced Network Time

I have been going round in circles of how to ultimately synchronize the movement of 20 objects through 60 chosen points each. I had several options the main were * Using sync vars to synchronize their progress between points (1 to 0), but that is open to lag and fairly [...] read more
c#
networking
unity3d
time
synchronization
1vote
1answer

Use Skia in Clion on OSX

I want to use Skia and SDL2 in Clion on OSX. I installed SDL2 successfully and test it in a single project in Clion, it worked well. And then I followed the tutorial on Skia's official site. I compiled it and put it in my Clion project, it didn't work! [...] read more
macos
cmake
clion
skia
1vote
0answers

arm aarch64 assembly: how to compile by gcc

For example, the assembly code from : https://blog.csdn.net/novawl/article/details/5606777 but cannot compile it on OrangePI(allwinner H5 core, aarch64), my usage: as convert.s -o convert.o or gcc -o convert.o convert.s the output is: convert.s: Assembler messages: convert.s:28: Error: junk at end of line, first unrecognized character is `@' convert.s:28: Error: junk at [...] read more
assembly
arm
arm64
1vote
1answer

How to threshold any image (for black and white color seperation) in java?

SOLVED : Issue was "jpeg compression". Saving as ".png" worked. I had detected edges of an image using a canny filter program in java. After applying filter ... This is my imageIf zoomed in ...Zoomed All have different shades of black and white. I want all my edge pixels as [...] read more
java
image
png
jpeg
1vote
1answer

Check if an IP address is in a IPNetwork with Pyspark

With Pyspark, I would like to join/merge if an IP address in the dataframe A is in a IP network range or hits the same IP address in the dataframe B. The dataframe A contains IP addresses only and the other one has IP addresses or IP addresses with a [...] read more
python
pyspark
apache-spark-sql
1vote
1answer

stm32f4 DMA does not always start after suspending

So this question is kind of a "sequel" of this one: Stm32f4: DMA + ADC Transfer pausing. Again, I am trying to implement such an algorithm: 1. Initialize DMA with ADC in tripple interleaved mode on one channel 2. Wait for an external interrupt 3. Suspend DMA transfer and the [...] read more
stm32
dma
stm32f4discovery
stm32f4
1vote
2answers

How to update Geometry properly

I am trying to display a point cloud, consisting of vertices and color with OSG. A static point cloud to display is rather easy with this guide. But I am not capable of updating such a point cloud. My intention is to create a geometry and attach it to my [...] read more
c++
opengl
openscenegraph
1vote
2answers

Replace 3D object in google arcore

I am new to OpenGL and ARCore and I am using GoogleArCore Sample as a base to create my application. I am able to scale and zoom the 3D object but I am not able to replace the current 3D object with another 3D object. I am already detecting the [...] read more
android
opengl-es-2.0
arcore
1vote
0answers

changing bitmap to transparent by jni but get black

I want to change a bitmap loaded with format Bitmap.Config.ARGB_8888 to transparent by jni. #define MAKE_RGBA(r,g,b,a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) ... AndroidBitmapInfo info; memset(&info, 0, sizeof(info)); AndroidBitmap_getInfo(env, bitmap, &info) int res = AndroidBitmap_lockPixels(env, bitmap, &pixels); int tr = 0, tg = [...] read more
android
bitmap
android-ndk
1vote
1answer

iOS Metal API draw 3d texture inside the volume

So, I'm trying to render a cube with 3d texture. Texture contains 3 slices of 3 diferent colors, red green and blue. Each slice consists of 4 pixels with the same color. Works fine. https://imgur.com/a/a5oXi private func makeTexture() { let width = 2 let height = 2 let depth = [...] read more
ios
swift
textures
metal
3d-texture
1vote
1answer

What control lines are asserted/set to 1 when a load double word instruction is called?

enter image description here [https://i.stack.imgur.com/nRzkG.png]] [https://i.stack.imgur.com/Lo6zT.png]Using this diagram, I am looking at this instruction to determine what control lines are necessary. ld x5, 40(x9) x5 = 0x000000ff x9 = 0x00000fff I am curious what control lines (RegWrite, MemRead, MemWrite, MemtoReg, Branch, Zero, ALUSrc) are asserted or set to 1 in [...] read more
cpu-architecture
instructions
instruction-set
riscv
machine-instruction
0votes
1answer

tc filter ... ht HANDLE ... does not allow buckets of 8 bits

TC-u32 man page states that HANDLE is: HANDLE := { u12_hex_htid:[**u8_hex_hash:[u12_hex_nodeid]** | 0xu32_hex_value } so the size of the bucket should range from 0x00 to 0xff as it is a u8 value. The problem is I can't create a bucket greater than 0x1f (five bits). I got: RTNETLINK answers: Invalid [...] read more
iproute2
filter
0votes
2answers

Point to Point Connection Between Two Hosts

I am trying to set up a point to point connection between two Linux host machines. I've connected both of them with crossover cable, but they can't ping each other. Here are the configurations for each laptop: Laptop 1 (eth0 configuration) IP Address - 128.110.1.6 Subnet Mask - 255.255.255.240 Gateway [...] read more
linux-networking
ethernet
host
networking
p2p
0votes
0answers

Can't install audio drivers, could it mean dead card?

I assembled a new pc earlier today and have been trying for hours to install the realtek HD audio drivers with no luck. It goes all the way untill the very end of the installation and then says "audio driver failure 0x000000ff". I've tried the drivers that came on the [...] read more
windows-7
audio
drivers
motherboard
0votes
1answer

Large number of "MAC CTRL" packets - network port defective?

I've got a server that's displaying odd behaviour on one of it's network ports. It seems unable to process/respond to any traffic (ping etc.). Below is what is listed using 'ifconfig' (assigned static address 10.100.0.80) eth0 Link encap:Ethernet HWaddr 00:18:7D:0E:53:8B inet addr:10.100.0.80 Bcast:10.255.255.255 Mask:255.0.0.0 inet6 addr: fe80::218:7dff:fe0e:538b/64 Scope:Link UP BROADCAST [...] read more
networking
centos
ethernet
wireshark
0votes
1answer

Do I have an issue with my traceroute?

I am trying to set up a network as following : ============================= DHCP fix addresses : PC1 => 192.168.0.38 PC2 => 192.168.0.39 ============================= PC1: eth0 inet addr:10.10.0.2 Bcast:10.255.255.255 Mask:255.0.0.0 wlan0 inet addr:192.168.0.38 Bcast:192.168.0.255 Mask:255.255.255.0 Destination Gateway Genmask Flags Iface 0.0.0.0 192.168.0.254 0.0.0.0 UG wlan0 10.0.0.0 0.0.0.0 255.0.0.0 U eth0 172.17.0.0 [...] read more
networking
wireless-networking
routing
ping
0votes
0answers

Simple Expect program to send a key when the program yields some text

I need to run this program: Luis@Windu /cygdrive/c/Temporal/Expect$ oclhashcat64 ../Test.hccap -m 2500 -a 3 ?d?d?d?d?d?d?d?d oclHashcat v1.31 starting... Device #1: Bonaire, 1024MB, 1050Mhz, 12MCU Device #2: Tahiti, 3072MB, 900Mhz, 28MCU Hashes: 1 hashes; 1 unique digests, 1 unique salts Bitmaps: 8 bits, 256 entries, 0x000000ff mask, 1024 bytes Applicable Optimizers: [...] read more
expect
0votes
1answer

Interactive program ignores keystrokes on a CygWin OpenSSH Server

I am running Windows 7 SP1. I have installed CygWin with OpenSSH, so now I have a running SSH Daemon that seems to be working OK, except for a problem with an interactive command-line program that requires keystrokes to be managed. This is the program (OCLHashCat, a GPU number cruncher): [...] read more
ssh
keyboard-shortcuts
cygwin
openssh
0votes
1answer

Windows 7 failed on installation at 98%

I hope you can help me after umpteen failed attempts to load Windows 7 on an ASUS P5WD2 premium board and dual core intel 3.4Ghz 2Gig Ram processor ran the beta versions beautifully, the mini dump info is as folllows, fails at approx 98 % load on install same every [...] read more
windows-7
installation
crash
0votes
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
0votes
0answers

Chrome transition type qualifiers "0xa0000000" and "0x32000000"

I am extracting Chrome history from the sqlite database. From the visits table, I am extracting transition types. However, when I try to extract the transition qualifiers from it, I get some values like "0xa0000000" or "0x32000000" which are not present in the documentation. So I am unable to interpret [...] read more
google-chrome
browser-history
0votes
0answers

Not able to find gradient colour different in Floodfill

I have used this "https://github.com/Chintan-Dave/UIImageScanlineFloodfill" Github for replace the colour of wall in UIImage. The problem is ,while using above Floodfill method, can't find the difference between wall and the objects.Not able find the gradient colour difference between wall and the objects. - (UIImage *) floodFillFromPoint:(CGPoint)startPoint withColor:(UIColor *)newColor andTolerance:(NSInteger)tolerance { [...] read more
ios
objective-c
0votes
0answers

How do you set the accent color of blur effect in user32.dll?

I am using the undocumented SetWindowCompositionAtribute API in user32.dll to make my windows form have a blur effect. This is the code I am using: public Form1() { InitializeComponent(); this.EnableBlur(); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); BackColor = Color.LimeGreen; TransparencyKey = Color.LimeGreen; } //import dlls [DllImport("uxtheme.dll", EntryPoint = "#95")] public [...] read more
c#
.net
winforms
0votes
1answer

Black texture if picture size > 1 * 1 in a second OpenGL thread

I am obliged to use multithreading in my project and my problem is that in a second thread I register a texture and if this one is larger than 1 px for width and height, the texture is rendered in black otherwise it works well... I am using two OpenGL [...] read more
c++
multithreading
opengl
sdl-2
0votes
0answers

How to properly do color conversion in DirectX?

I'm trying to understand if I'm doing it right, because sometimes it gets a little bit fuzzy when I convert the colors back and forward. The way I convert D3DCOLORVALUE to D3DCOLOR: D3DCOLORVALUE D3DCOLOR_ConvertTo_D3DCOLORVALUE(D3DCOLOR color) { D3DCOLORVALUE color2; color2.a = ((color & 0xff000000) >> 24) / 255.0f; color2.r = ((color [...] read more
c++
colors
directx
0votes
0answers

What format does Zbar need?

short explanation: I'm grabbing a bitmap from a TextureViwe. The format of the image is ARGB_8888. I convert this image and put it in the MainLooper. The picture there then in the Zbar scanner. The scanner supports to my knowledge, Gray and Y800. My problem is that all conversion attempts [...] read more
java
android
format
zbar
0votes
5answers

How to force C to interpet variables as signed or unsigned values?

I am working on a project where I often need to interpret certain variables as signed or unsigned values and do signed operations on them; however, in multiple cases subtle, seemingly insignificant changes swapped an unsigned interpretation to a signed one, while in other cases I couldn't force C to [...] read more
c
signed
0votes
1answer

Parse Integer from Buffer

I created this function to parse a Integer from a Buffer: var makeInt = function(b1, b2, b3, b4) { return ((b1 << 0) & 0x000000FF) + ((b2 << 8) & 0x0000FF00) + ((b3 << 16) & 0x00FF0000) + ((b4 << 24) & 0xFF000000); } From a buffer I read the [...] read more
node.js
integer
buffer
0votes
1answer

Search for color in BufferedImage Java

I currently have a script that can create a bufferedimage of the screen, and then list the value for a specific pixel. However, I'm trying to search the entire bufferedimage for a specific color. Is there a way to do this? import java.awt.*; import java.awt.image.BufferedImage; import java.io.IOException; public class Main [...] read more
java
bufferedimage
0votes
0answers

2 stm32 adress does not match in proteus

I am trying to communicate 2 STM32 with I2C.My configuration is as followed: 7-bit addressing mode (no dual address, only OAR1) 100khz speed ACK enabled (on slave) ACK disabled (on master, since only 1 byte is transferred between master/slave at any time) on both master/slave, datasheet says GPIOB (PB6) as [...] read more
stm32
i2c
slave
0votes
2answers

Dart: split an arbitrarily precised number onto a sequence of bytes

Assuming I have a declaration like this: final int input = 0xA55AA9D2;, I'd like to get a list of [0xA5, 0x5A, 0xA9, 0xD2]. It is easily achievable in Java by just right shifting the input by 24, 16, 8 and 0 respectively with subsequent cast to byte in order to [...] read more
dart
0votes
3answers

PNG outputs alpha channel but no RGB and JPG outputs RGB but no alpha

I want to split a PNG file into 4 more PNGs, 3 for RGB and one alpha. When I input a PNG, the alpha channel is output correctly, but the RGB channels output nothing. If I input a JPG the RGB channels output correctly, but alpha fails because there is [...] read more
image-processing
kotlin
png
jpeg
rgba
0votes
0answers

Converted .wav file to C code not outputting sound in ARM processor

I'm currently coding a project using the ARM processor. The code is written in C, and I want to play a sound. I have this bit of code here: #include <stdbool.h> void sound(int buffer[], int BUF_SIZE){ volatile int * audio_ptr = (int *) 0xFF203040; // audio port address int fifospace; [...] read more
c
assembly
audio
arm
0votes
0answers

How to find address of a pointer to string during function call in c

I'm trying to learn buffer overflows from the book "The art of Exploitation - Jon Erickson". I have attached the code that was given. The next step after compiling the code was to debug it using gdb. A breakpoint was set up just before the line if(check_authentication(argv[1])) and I ran [...] read more
c
assembly
x86-64
att
0votes
2answers

LibGDX Gifdecoder

I want to use gifs in libGDX and found a gif decoder to do so. But the loading time when displaying gifs is way too long. Is there a possibility to preload gifs with some kind of loading screen? I am using the following gif decoder: public class GifDecoder { [...] read more
java
libgdx
gif
0votes
1answer

Libgdx loader for Animation.class

I need to set loader in assetmanager for Animation.class, i used Gifloader,that loads completly animation from GifDecoder(that creates animation from gif) but get error:https://i.stack.imgur.com/HkrWe.png, error on build: https://i.stack.imgur.com/2Mpaz.pngsetloader line: manager.setLoader(Animation.class, new Gifloader(new InternalFileHandleResolver())) Gifloader class: package com.mygdx.testgame; import com.badlogic.gdx.assets.AssetDescriptor; import com.badlogic.gdx.assets.AssetLoaderParameters; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader; import com.badlogic.gdx.assets.loaders.FileHandleResolver; import com.badlogic.gdx.files.FileHandle; import [...] read more
animation
libgdx
2d
assets
loader
0votes
2answers

JavaFX StackPane showing incorrect (X,Y) Coordination

I am trying to print all the nodes in the StackPane. I am required to get X,Y coordinates and height and width of the nodes (all Rectangls). However, it shows (0,0) for the X,Y coordinates even though I have specifically chosen other than it. Code: @Override public void start(Stage primaryStage) [...] read more
java
javafx
javafx-8
coordinates
0votes
1answer

Concatinating Long SMS using kannel

Kannel 1.4.4 I need to receive "long" sms (length > 160 ) by Kannel. If sms length less than 160 - all is ok. But if it is long sms kannel splits sms to 2 or more sms and not send sms. I get this error from smsc log > [...] read more
kannel
0votes
0answers

OpenGL GLSL : Intel vs NVIDIA

My laptop has an integrated graphics card (Intel HD Graphics 620) and a dedicated one (NVIDIA GeForce 940MX). I have a program object consisting of three shaders (i.e., vertex, geometry and fragment shaders), which works correctly on the Intel chip, but when I try to run the program on the [...] read more
opengl
graphics
glsl
shader
nvidia
0votes
0answers

FFT or IFFT lose data

I am doing FFT and IFFT with audio signal. The following is the code that i am using. But my question is before FFT, it extracts 1 byte from short array. As you know short is 2 bytes. why it is doing it? Because of the extraction, After IFFT(FFT(original_audio_buffer)) is [...] read more
java
audio
signal-processing
fft
ifft
0votes
0answers

Google play services 16.0.0 realtime Multiplayer problem. One single broadcast of a message causes hundreds of onRealTimeMessageReceived

We have published an app on September 2017 with realtime multiplayer play-services-games:9.8.0 and it is functioning properly. Now that we have to update to play-services-games:16.0.0 we encounter serious problems. During gameplay player sends till 70 UnreliableMessage and gets till 210 onRealTimeMessageReceived per second to update positions, velocities, and ranking. I [...] read more
google-play-services
real-time-multiplayer
0votes
0answers

initializing std vector at compile time

I have the following code running but how do I now initialize a vector or variable with it. constexpr uint32_t _RtlComputeCrc32( _In_ DWORD dwInitial, _In_reads_bytes_(stLength) const BYTE *pbyData, _In_ INT stLength ) { ULONG crc = 0xFFFFFFFF; while (stLength-- != 0) { pbyData++; // crc = ((crc >> 8) & [...] read more
c++
templates
c++17
stdvector
0votes
1answer

Compute Shader not compiling for specific (valid) code

I'm experiencing weird behavior with conditional loops, branches and updating the UAV with my compute shader (DX11), CS 5.0. I'm t esting a naive raymarching through Sparse Voxel Octtree bricks. The data is linearised by BFS. The structure (LWSVO = Light Weight SVO) looks like: struct LWSVO { int firstChild; [...] read more
directx
shader
hlsl
0votes
2answers

Reason for & and | in endianess conversion

/ Swap endian (big to little) or (little to big) uint32_t num = 9; uint32_t b0,b1,b2,b3; uint32_t res; b0 = (num & 0x000000ff) << 24u; b1 = (num & 0x0000ff00) << 8u; b2 = (num & 0x00ff0000) >> 8u; b3 = (num & 0xff000000) >> 24u; res = b0 | [...] read more
c
0votes
1answer

Negative values while converting hex color in rgba (JavaScript)

My problem is to convert a hexadecimal color string, with alpha value, and obtain the four channels R G B A. The lenght of the string is 8 (for example: 4faabbaa) I've tried the following code, with bitwise operators, to convert the string and obtain the rgba. var hex = [...] read more
javascript
hex
data-conversion
rgba
0votes
0answers

Parse (Path).toString to rebuild an javafx.scene.shape.Path object

I have to save an javafx.scene.shape.Path object to xml using JAXB. In my adapter class I'm using (Path).toString to marshal it. The string I get looks like :"Path[elements=[MoveTo[x=25.0, y=25.0], LineTo[x=125.0, y=25.0]], fill=null, fillRule=NON_ZERO, stroke=0x000000ff, strokeWidth=1.0]" I need then to find a way to reverse it from String to Path and [...] read more
java
parsing
0votes
0answers

AndroidWifiModule.java uses o r overrides a deprecated API

I downloaded react-native-android-wifi modules but when I run the code it says AndroidWifiModule.java uses o r overrides a deprecated API. Also its cannot connect to a network in android 8, so I added this line //conf.SSID = String.format("\"%s\"", ssid); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { conf.SSID = ssid; } else { [...] read more
java
android
android-studio
react-native
react-native-android
0votes
0answers

STM32 + W5500 SPI DMA: Software CS un-aligned with CLK

I'm using STM32F030 with W5500, and having problems with HAL SPI library. First I was using SPI (1 Mbit/s) without DMA, but Cortex M0 doesn't support data un-alignement and that produces hard_Fault. For avoiding this, they recomend us to use SPI with DMA or IT. Well, W5500 requires Write+Read during [...] read more
stm32
spi
dma
stm32f0
0votes
0answers

malloc a struct in kernel header file error :invalid application of 'sizeof' to incomplete type

I'm new to linux. I'm practice syscall and I want to copy struct to user. So I write a syscall which is using copy_to_user(). But When I write and compile test.c to test my syscall appear some error. in linux/sched.h has defined: struct pacct_struct { int ac_flag; long ac_exitcode; unsigned [...] read more
c
linux
linux-kernel
system-calls
0votes
1answer

Assimp wrong texture array

I am actually programming a tool for baking normal maps. So I have a feature that must take a 3D object , and project the normal vector of each vertex on a texture. I am currently using the Assimp library to import .obj models, and I never had this problem [...] read more
c++
opengl
texture-mapping
assimp
0votes
0answers

Floodfill not working also Mat.get(col,row) is returning wrong color

the floodfill is not effecting the bitmap also the Mat.get(col,row) is returning wrong color. Things I have done: a) checked that bitmap and matrix are of same size. 2) checked the color both ways RGB and BGR. 3) checked the initial bmp and final bmp (after applying flood fill). 4) [...] read more
java
android
opencv
bmp
flood-fill
0votes
0answers

Java getRGB doesnt read correct pixels

I just want to read the RGB values of a basic 2x2 pixels png file, but it returns the wrong RGB values. For example, the pixel at x = 2 and y = 2 was black, so it should return 0,0,0, but it returns white as RGB values and i [...] read more
java
0votes
1answer

Sending messages through LoRaWAN using STM32

How do I send the messages through LoRaWAN? static void PrepareTxFrame( uint8_t port ) { switch( port ) { case 10: { int pos = 0; pc.printf("Prepare message\n"); #if 0 uint32_t tempValue = ( uint32_t )( LightValue * 1000000.0 ); AppData[0] = LightMode; AppData[1] = ( ( tempValue & 0xFF000000 [...] read more
stm32
lora
lorawan
stm32ldiscovery
0votes
1answer

Identically configured urxvt has different width/font rendering on different X servers

I have two different desktop hosts connected via their DisplayPort outputs to two DisplayPort inputs on the same 4K monitor: * idyllic, a small-form-factor PC using the onboard Intel HD Graphics 500 of its Celeron N3350 processor. (I've also a similar system at another location with a Pentium N4200 processor [...] read more
fonts
x11
xorg
urxvt
0votes
1answer

Transparent SDL_Surface without background

I'm working with SDL and OpenGL. I'm using SDL ttf for create a surface with the text, then create a texture with that surface. I'm trying to apply an alpha channel (opacity) to the text, I'm using this way: SDL_Surface * fontsurf = TTF_RenderUTF8_Blended(font,buff_split.at(i).c_str(),color); SDL_PixelFormat *format = fontsurf->format; SDL_Surface* newSurface [...] read more
c++
opengl
sdl
alpha
sdl-ttf
0votes
1answer

Comparing results after integer promotion

Following situation: I have macros for storing the complement of a variable together with its original value within a structure. With another macro I want to check if the original value is equal to the complement of the stored complement value. But strangely I do not get the results I [...] read more
c++
c
integer
bit-manipulation
integer-promotion
0votes
1answer

How to extract the standard registry value type from a legitimate unknown value type?

BACKGROUND I notice there are many legitimate unknown value types in the HKEY_LOCAL_MACHINE of Windows 10. These are just a few of them: * 0x100000 [HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverPackages\hidbthle.inf_amd64_55f7f576bf549669\Configurations\HidBthLE.NT\Device] "WUDF" * 0x200000 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class{4d36e96c-e325-11ce-bfc1-08002be10318}\Configuration\Reset\Driver] "DevLoader" * 0x40007 [HKEY_LOCAL_MACHINE\SYSTEM\DriverDatabase\DriverPackages\cdrom.inf_amd64_21e18060f597c313\Configurations\cdrom_install\Services\cdrom] "AutoRunAlwaysDisable" * 0xffff0009 [HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade\NetworkDriverBackup\Control\NetworkSetup2\Interfaces{0176DBBA-3617-44FF-BA79-90375AAC4B6A}\Properties{a111f1f4-5923-47c0-9a68-d0bafb577901}\0004] "(Default)" * 0xffff000d [HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade\NetworkDriverBackup\Control\NetworkSetup2\Filters{171C5016-3D19-4CB2-9556-63E586EE5010}\Properties{a111f1f7-5923-47c0-9a68-d0bafb577901}\0002] "(Default)" * 0xffff100d [HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade\NetworkDriverBackup\Control\NetworkSetup2\Filters{E475CF9A-60CD-4439-A75F-0079CE0E18A1}\Properties{a111f1f0-5923-47c0-9a68-d0bafb577901}\0052] "(Default)" * 0xffff2012 [HKEY_LOCAL_MACHINE\SYSTEM\Setup\Upgrade\NetworkDriverBackup\Control\NetworkSetup2\Clients{54494F4E-5441-4B53-CCB9-061A6EC4BF6E}\Properties{a111f1f1-5923-47c0-9a68-d0bafb577901}\0002] [...] read more
c
windows
winapi
0votes
0answers

Image Stegnography showing different outputs

I was making a web application using image stenography in java. But I got stuck in between as when I use a encoding and decoding same algorithm in my desktop application. I got different results(CORRECT). But when I use same algorithm in case of web application, results are wrong Encoding [...] read more
java
java-ee
servlets
steganography
0votes
1answer

AWS S3 with Presigned URL

I am using aws for my project. I have a presigned image url.I need to get the presigned image into my s3 bucket. How can I do this in aws using JAVA. I have a url = https://maps.googleapis.com/maps/api/staticmap?center=40.7916869275725,-73.9480028393158&size=300x250&zoom=18&maptype=roadmap&key=AIzaSyCJ5YSmLdEUwclkPi2t29IaY0OrDEnjXsw&style=element:geometry|color:0xf5f5f5&style=element:labels.icon|visibility:off&style=element:labels.text.fill|color:0x616161&style=element:labels.text.stroke|color:0xf5f5f5&style=feature:administrative|visibility:off&style=feature:administrative.land_parcel|visibility:off&style=feature:administrative.land_parcel|color:0xbdbdbd&style=feature:poi|visibility:off&style=feature:poi|color:0xeeeeee&style=feature:poi|color:0x757575&style=feature:poi.park|color:0xe5e5e5&style=feature:poi.park|color:0x9e9e9e&style=feature:road|color:0xffffff&style=feature:road|visibility:off&style=feature:road.arterial|color:0x757575&style=feature:road.highway|color:0xdadada&style=feature:road.highway|color:0x616161&style=feature:road.local|visibility:off&style=feature:road.local|color:0x9e9e9e&style=feature:transit|visibility:off&style=feature:transit.line|color:0xe5e5e5&style=feature:transit.station|color:0xeeeeee&style=feature:water|color:0xc9c9c9&style=feature:water|color:0x9e9e9e&path=color:0x000000FF|fillcolor:0x7f97b2|weight:1|40.7917628547078,-73.9474291163126|40.7912643063267,-73.9477918269511|40.7915942270527,-73.9485737283519|40.7920931444449,-73.9482107549615|40.7917628547078,-73.9474291163126 I need to show this image using java in aws lambdahandler. It [...] read more
java
image
amazon-s3
download
pre-signed-url
0votes
0answers

Rendering and capturing screenshot on a PC with no monitor

According to my previous question, I use the following code to take screenshot of my screen. However, I use a PC which connects to no monitor. Then this method captures a black screen. Is there any method to force rendering and capturing image on a computer with no monitor? I [...] read more
c++
opengl
rendering
screenshot
sdl-2
0votes
0answers

extract a byte out of an integer in C

int data = 0x69bd2ab7; char byte1 = (data >> 16) & 0x000000FF; printf("Extracted: 0x%x\n", byte1); The above prints: Extracted: 0xffffffbd How do I get rid of the prepended ff's and print 0xbd? read more
c
bit-manipulation
0votes
2answers

RGB888 to RGB565 and vice versa causing loss of info?

I have the following code to convert RGB565 to RGB888 and vice versa: public static void main(String[] args) { // TODO code application logic here System.out.println(Integer.toHexString(RGB888ToRGB565(0x11ffffff))); System.out.println(Integer.toHexString(RGB565ToRGB888(RGB888ToRGB565(0x7FC9FF)))); } static int RGB888ToRGB565(int red, int green, int blue) { final int B = (blue >>> 3) & 0x001F; final int G = [...] read more
java
colors
rgb
0votes
1answer

Misterious JavaScript Code

I am currently trying to figure out what does this code do. As far as I know, it converts one Word in the URL into some unknown hash. Here is an example: -Original Word: Hola -Transformed Word: KYtLWBc I managed to get the JavaScript code capable of making this transformation, [...] read more
javascript
hash
reverse-engineering
cracking
0votes
0answers

SDL_SetPaletteColors crashes program

The program is supposed take pixel data from a uni dimensional array and display it. The pixel data is supposed to be 1 byte per pixel, which is supposed to result in a gray scale image. The result is supposed to look like this: GRADIENT PATTERN [https://i.stack.imgur.com/vDYr2.jpg] Th problem i [...] read more
c++
sdl-2
0votes
0answers

add password step in image steganogrpahy

i can hide image inside another and reveal the original, but now in need to add password to the process public BufferedImage encodeImage(String key, BufferedImage cover, BufferedImage secret) { int height = secret.getHeight(); int width = secret.getWidth(); byte[] bytes = getImageBytes(secret); bytes = encrypt(bytes, key.getBytes()); // get byte array for [...] read more
java
image-processing
steganography
0votes
1answer

OpenGL Blending with textures converted from SDL_Surface

I wanted to try making a game with OpenGL and GLUT, but as it turns out, GLUT is not well adapted to making games. So I switched to using SDL 1.2 (this is for a sort of competition, so I can't use SDL 2). When I saw I could use [...] read more
c++
opengl
sdl
0votes
0answers

Total pages printed on python and winspool.drv

Recently i had copied this code (Thanks CristiFati): Python- How to communicate with printer While its working on its own, i can't figure out how can i get total page counting to work, i added it to DEFAULT_FIELDS var and to NotifyData method, without luck as follow: def NotifyData(self): if [...] read more
python
ctypes
pywin32
0votes
0answers

JavaScript - why is more frequent reading from array faster than bitwise operations

I have created simple benchmark to test, if it is faster to read more elements from uint8 array, of read less elements from uin32 array and use bitwise operations: var rawData1 = new Uint8Array(800*600); var rawData2 = new Uint8Array(800*600); var rawData = new Uint8Array(800*600*2); var j = 0; for (var [...] read more
javascript
arrays
performance
0votes
2answers

How to convert image byte array into a bitmap after altering with the byte array

I am trying to implement Steganography in Android and I have implemented the code to encode the image bit by bit. private Bitmap add_text(Bitmap image, String text) { //convert all items to byte arrays: image, message, message length byte img[] = get_byte_data(image); byte msg[] = text.getBytes(); byte len[] = bit_conversion(msg.length); [...] read more
java
android
arrays
bitmap
steganography
0votes
1answer

Use a templated constexpr at runtime

There is this crc32 implementation that I like: CygnusX1 CRC32 It works well at compile time: ctcrc32("StackOverflow"); But is it possible to use it at runtime: void myfunction(const std::string& str) { uint32_t hash = ctcrc32(str); // ... } So far I had to rewrite another (runtime) function but would prefer [...] read more
c++
constexpr
0votes
1answer

Accessing Webcam when implementing webcam security

I have implementing a program using java-Swing. That is a webcam based security tool. On active mode when image/position is changed, it gives a beep alarm. But problem in that is,- its unable to access my web cam. I have already checked my webcam driver and its runs perfectly. But [...] read more
java
swing
opencv
github
0votes
1answer

Code to detect laser dot in android camera using realtime image processing

I have written a code to find brightest pixe(laser dot)l in camera viewfinder and draw a circle at that coordinate. Ideally the circle should be on dot. but due to some prob(maybe screen resolution/coding error) the circle is a little displaced. I am attaching the screenshots and code. I will [...] read more
java
android
image-processing
-1votes
0answers

Scanline flood fill replace with another image

I have this example https://github.com/Chintan-Dave/UIImageScanlineFloodfill and read this post. But not getting result!! I have one image. In this image when we touch any portion of that image fill that portion with another image instead of colour. so if anybody have any idea or example than please help me. I [...] read more
ios
objective-c
swift
-1votes
1answer

C++ Freeglut Run-Time Check Failure #2 - S, Visual Studio C++

C++ I developing game engine but my code not working. I tried: Change position of code... Changing type Here my code: ... #include "pch.h" #include <iostream> #include "glut.h" #include "conio.h" using namespace std; #include<stdio.h> #include "map_loader.h" #include "models.h" #include "IEDX_POLYTEX.h" #include "FONTGER/include/fontmann.h" #define KEY_ESC 27 /* GLUT doesn't supply this [...] read more
c++
freeglut
-1votes
1answer

Generate a custom object and apply custom fxml file in JavaFX

I want to program a "Simple UML Editor" > USE CASE Click UML canvas, and generate a UML shape. Cursor is at the UML shape's top left after generated. As this image. -------------------------------------------------------------------------------- Here is sample code. MAIN.JAVA package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; [...] read more
javafx
javafx-8
fxml
-1votes
1answer

Understanding Hex logic

Finding very hard to understand below hex code logic. Could anyone please explain ampersand in switch condition and how is that previousTagSize calculated. - (void)parse:(NSInputStream*)inputStream { NSInteger MASK = 0x1f; NSInteger Type1 = 8; NSInteger Type2 = 9; NSInteger Type3 = 18; uint8_t header[11]; long len = [inputStream read:header maxLength:11]; [...] read more
objective-c
hex
-2votes
2answers

how can i extract the colors in the image using java?

I am trying with the following code to extract the colors in an image. I am using the following code but it is unable fetch the colors. Can anyone have better solution or please tell what is wrong in my code. public static void main(String args[]) throws IOException { File [...] read more
java
ocr
rgb
bufferedimage
-3votes
1answer

Whats the use of "&" , 0x000000FF , >> 8?

Whats the use of &, 0x000000FF and >> 8 in the following method. Can any one explain? Thanks in advance (UIColor *)UIColorFromIntegerCode:(int)integerCode { CGFloat r = (integerCode & 0x000000FF) / 255.0f; CGFloat g = ((integerCode & 0x0000FF00) >> 8) / 255.0f; CGFloat b = ((integerCode & 0x00FF0000) >> 16) / [...] read more
ios
objective-c
hex
uicolor
-5votes
2answers

Is there a way computer can have same representation for two different numbers?

I have this number -16777216 in Int32 and its hex representation is FF000000. On right shifting this number right by 24 I get 0xFFFFFFFF and on masking by 0xFF000000 and then shifting right by 24 I get 0x000000FF. Int32 a = -16777216;//FF000000 in hex Int32 b = a >> 24; [...] read more
c#
bit
negative-number

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
  3. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0