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

28votes
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
8votes
2answers

Opengl es 2.0 draw bitmap overlay on video

I am trying to draw a bitmap as an overlay on every frame of the video. I found an example on how to decode and encode a video and it is working. This example has a TextureRenderer class with a drawFrame function that I need to modify in order to [...] read more
java
android
bitmap
opengl-es-2.0
video-processing
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
3answers

Convert SwiftUI Color to UIColor

I want to convert SwiftUI view Color to UIKit UIcolor component. I have tried several ways and also refer the StackOverflow already given answers, But they did not work. It was also mentioned by some users in those posts. I have gone through the below code which is proposed by [...] read more
swift
swiftui
swift5
5votes
1answer

C# get pixel color from another window

I want to get a pixel color from another window. The code I have is: using System; using System.Drawing; using System.Runtime.InteropServices; sealed class Win32 { [DllImport("user32.dll")] static extern IntPtr GetDC(IntPtr hwnd); [DllImport("user32.dll")] static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc); [DllImport("gdi32.dll")] static extern uint GetPixel(IntPtr hdc, int nXPos, int nYPos); static [...] read more
c#
getpixel
5votes
3answers

DEADLINE scheduling policy not found

I want to implement the DEADLINE scheduling policy in C. I know the feature is implemented since Linux 3.14.10 and I'm using Ubuntu 14.04 Linux #### 3.17.0-031700-lowlatency #201410060605 SMP PREEMPT which should be recent enough. I develop the program with Eclipse (launched as sudo). I've defined _GNU_SOURCE and included sched.h [...] read more
c
linux
linux-kernel
sched-deadline
4votes
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
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
4answers

.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

24 Bit Unsigned Integer

I start working with HART (Highway Addressable Remote Transducer) Protocol and I found something, let's say different and I try to understand it, more precisely the uint24. I understand that this structure uses an UInt32 internally for storage and most other common expected integer functionality, so using a 24-bit integer [...] read more
javascript
c++
c
byte
bit-shift
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
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

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
3answers

Converting float numbers to binary

I need to convert a float value to binary. This value can be from 0 to 99.99. I saw that if the value is an int and between 0 to 255 I just have to do n = [255] num = byte(n) How is not possible directly convert a float [...] read more
python
python-3.x
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
2answers

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
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
2answers

How to implement 1-Bit Dithering using Java?

Recently, our teacher gave us the task to convert a colorful image to a 1-bit image using Java. After a little experimentation I had the following result: BufferedImage image = ... for (int y = 0; y < image.getHeight(); y++) { for (int x = 0; x < image.getWidth(); x++) [...] read more
java
image
dithering
2votes
2answers

stackoverflow in recursion

i'm making kinda ms paint application, that draws conture and fill inside.I wrote recursive function that fills conture. It works fine ,but if conture is too big program throws stackoverflow exception. How can i solve this problem?? i even can't catch this exception(( using System; using System.Collections.Generic; using System.ComponentModel; using [...] read more
c#
stack-overflow
2votes
1answer

SDL_CreateRGBSurfaceFrom() doesn't compile?

I'm trying to create a RGB Surface from another surface with SDL_CreateRGBSurfaceFrom because it's a TTF surface and I want to change the depth to access the surface pixels, this function is supposed to return a SDL_Surface* pointer but the compilers says it returns an int and I cant assign [...] read more
c
sdl-2
2votes
1answer

Converting I420 to BGRA

I wang to converting I420 to BGRA ,but i only search the method converting I420 to ARGB: public static int[] I420toARGB(byte[] yuv, int width, int height) { boolean invertHeight=false; if (height<0) { height=-height; invertHeight=true; } boolean invertWidth=false; if (width<0) { width=-width; invertWidth=true; } int iterations=width*height; int[] rgb = new int[iterations]; [...] read more
android
2votes
2answers

set system time c# not working

I'm trying to set Windows SystemTime in a c# Application on Windows. I've implemented the example that is in every forum (including here) but it's not responding. I have a private class with two methods: GetSystemTime() and SetSystemTime(). GetSystemTime is working fine, but SetSystemTime is not setting the time I'm [...] read more
c#
datetime
time
set
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

xorg.conf: Why does this have no effect?

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

Is there a command to run any ARM assembly file (.s) after having installed qemu

I have recently run the following commands to install qemu. sudo apt-get install qemu-user sudo mkdir -p /opt/arm/10 wget 'https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz?revision=d0b90559-3960-4e4b-9297-7ddbc3e52783&la=en&hash=985078B758BC782BC338DB947347107FBCF8EF6B' -O gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz sudo tar Jxf gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz -C /opt/arm/10 Now there are a no. of ARM files i would like to compile and execute on my linux subsystem. It would be [...] read more
assembly
gcc
arm
cross-compiling
qemu
1vote
1answer

What are "C++ Variables" in Visual Studio's "Display Items"?

In Visual Studio, you can customize the font and color of any display items such as C++ keywords, C++ parameters, C++ local variables, function names, macros, etc. You can do so through selecting the menu "Tools -> Options -> Fonts and Colors". In the setting dialog, I am confused by [...] read more
c++
visual-studio
visual-c++
ide
1vote
3answers

How to provide the correct key for Camellia cipher and encrypt in Java

I want build program with plain text ="hello i'm jhon" then encrypt to cipher text and then decrypt to plain text again. So first I search and get code from internet with format data integer. I found camellia-java-BSD-1.0.1.tar.gz from here. So write this code but I get error run: Exception [...] read more
java
encryption
cryptography
camellia
1vote
1answer

Java ImageIO is reading RGB instead of ARGB data

I'm working on a GUI for a photo editor and currently I'm stuck on loading a 32bit BMP image from a file. It was all going smoothly until I've started experimenting with multiple layers and molding them into a single one. (Layer molding and image saving is beeing done by [...] read more
java
image
pixel
bmp
1vote
0answers

How I can fix this memory leak I have with SDL and SDL_RenderCopy?

Basically I'm drawing a grid with 250k tiles. If I draw in a loop this grid the memory stays at 120mb but if I translate the coordinates of each tile with an offset, as soon as the grid starts to get drawn outside of the window viewport, then the memory [...] read more
c++
macos
memory-leaks
grid
sdl
1vote
2answers

Is there any optimization possible for function to reverse the order of bytes in an int32?

Someone I know was recently asked this question in a coding interview. They were asked to write a function reverseBytes below such that if you pass it 0xabcdef12 it'd output 0x12efcdab. They gave the following solution. unsigned int reverseBytes (unsigned int x) { unsigned int ans = 0; ans = [...] read more
c++
optimization
bit-manipulation
bitwise-operators
bit-shift
1vote
1answer

UISegmentedControl not intractable when there is nothing above it

My issue is so specific that I have to give the code for this, sorry if the code is too convoluted or complicated, I am a bit new to UIKit since I have been learning SwiftUI more instead of UIKit. I have a really complicated UITableView header with some nice [...] read more
swift
uitableview
uiscrollview
uikit
uisegmentedcontrol
1vote
1answer

Shift Operator only working when shifting until 16 digits

I have been trying to find the answer all morning, so happy to close this question if it is a duplicate. I am tying to get the first 2 digits of a hex number that has 8 digits. I understand that >> moves x bits to the right. So doing [...] read more
javascript
binary
hex
shift
1vote
1answer

Encoding numerical values into alphanumeric code (reversing decoding function)

I have a function decoding CS:GO crosshair codes into key value object. (Previously I asked question about how to decode share codes from CS:GO Here) How can it be reversed from decoding these values, to encoding them into "share code" which consist of alphanumeric characters? Function decoding share codes: const [...] read more
javascript
node.js
encoding
byte
decoding
1vote
0answers

Zynq7000 I2C don't work, but register are set properly

I'm trying to write piece of code, to send data via I2C on my Zynq7020 device. There are 11 register asociated with I2C and I'm prety sure, that I have set this properly. I also double check registers asociated with CPU_1X clock enable a and I2C reset, but they are [...] read more
c
i2c
zynq
1vote
0answers

is getting msb and lsb using the same mask portable with respect to endianess?

Assuming the following C code runs on a 32 bit platform (so sizeof(int) = 4), is the following code portable between big endian and little endian? When I ask "is it portable" I mean is the app going to print: a) on a little endian platform Address is 0xAABBCCDD MSB [...] read more
c
endianness
byte-shifting
1vote
1answer

How to display raw array of pixels to the screen?

I am new to windows programming. I want to display the raw pixel array to the screen without using SetPixel function because it's too slow in my standards. I am using this question as my reference. I made a small program below to fill the pixel array with random RGB [...] read more
c
winapi
1vote
1answer

Creating a Bitmap ByteBuffer for quantized Tensorflow Lite Model

I would like to use a quantized tensorflow lite model but the current ByteBuffer I have is using floating point. I would like this to be integer representation. Right now the model wants 270000 bytes and I am trying to pass it 1080000 bytes. Is it as simple as casting [...] read more
java
floating-point
pixel
tensorflow-lite
bytebuffer
1vote
1answer

Conversion from ARGB to RGBA

I'm trying to write my own Color struct for a task I have. My goal is that my buffer will always contain a RGBA value, even if it is initialized with ARGB values. I have 2 constructors: 1. Takes R,G,B,A values of type uint8_t separately - Works like a charm. [...] read more
c++
colors
bit-shift
rgba
argb
1vote
0answers

Parsing a 64bit number into 16bit parts, doesn't work intuitively [solved]

I have a string, consisting of 8 chars. std::string input = { 'A', 'B', 'C', 'D', 'E', 'F', 'A', 'F' }; I have a 64 bit integer which will hold the hexadecimal correspondence of this string. And four 16 bit integers, which the number will be parsed into. uint64_t number [...] read more
c++
bit-manipulation
1vote
1answer

Converting java.awt.* code to Android.graphics.* code

I am trying to port some graphics code that is written using java.awt.* library to instead use the android.graphics.* library. However, I don't have much experience with graphics. Here is the java.awt.* code (which works): /** * Converts the given <code>MyImageBitmap</code> to the specified image format and returns it as [...] read more
java
android
bitmap
awt
android-bitmap
1vote
0answers

Trouble assigning ports for tivia TM4C launchpad that ill be connected to components on a breadboard

I am working with a TM4C lunchpad and need to assign Ports E and B as inputs and outputs to be able to control a simple traffic light built on a breadboard. There are three LEDs on the board as well as two buttons: when btn1 is pressed, the LEDs [...] read more
c
keil
fsm
texas-instruments
launchpad
1vote
0answers

How to calculate brightness from list of unsigned 8 bytes integer which represents an image in dart?

I wanted to calculate the brightness of an UintList image. The image I used are picked from my phone (Using image_picker plugin in flutter). I tried a for loop on every value of this list and did this: int r = 0, b = 0, g = 0, count = [...] read more
flutter
dart
rasterizing
1vote
0answers

PySDL2 LockTexture and modify pixels

I can't find any valuable example of locking a texture and modifying pixels in PySDL2 Here's my code : def run(): sdl2.ext.init() window = SDL_CreateWindow(b"test" sdl2.SDL_WINDOWPOS_CENTERED, sdl2.SDL_WINDOWPOS_CENTERED, 1024, 768, sdl2.SDL_WINDOW_SHOWN) renderer = SDL_CreateRenderer(window, -1, sdl2.SDL_RENDERER_ACCELERATED) texture = SDL_CreateTexture(renderer, sdl2.SDL_PIXELFORMAT_RGB888, sdl2.SDL_TEXTUREACCESS_STREAMING, 1024, 768) surface = SDL_CreateRGBSurface(0, 128, 128, 32, 0x00FF0000, 0x0000FF00, [...] read more
pysdl2
1vote
1answer

How can i convert color picker value to a web or rgb or any Color class compatible type?

My color picker in javaFX returns something like 0x000000ff. How to convert this to web colors, either rgb or hex? read more
javafx
colors
rgb
graphicscontext
1vote
0answers

Overwriting icon in linux desktop entry through SDL

I have a executable written in c. Therein I directly set the applications icon in SDL. (Call to SDL_SetWindowIcon()). The pixel data is hardcoded in an array. Is there any way to overwrite the icon specified in the .desktop file in linux? Or am I obliged to specify the icon [...] read more
c
icons
desktop-application
1vote
1answer

Issues implementing EPT

I'm having an issue implementing EPT in a hypervisor I'm developing. I'm receiving error no. 48 (EPT violation. An attempt to access memory with a guest-physical address was disallowed by the configuration of the EPT paging structures) with an EXIT_QUALIFICATION of 0x81 upon doing a VMLAUNCH. I've checked the page [...] read more
c
linux
linux-kernel
virtualization
hypervisor
1vote
2answers

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
2answers

memset char * with Integer

I have to memset 4 bytes in a char * with an integer. For exemple I have an integer int i = 3276854 (0x00320036) and a char header[54] = {0}. I have to write i at header + 2, as if I print memory from header[2] to header[6], I get [...] read more
c
memory
endianness
memset
1vote
2answers

convert byte to int using bit wise opertators

I'm documenting some code in Java. Before I ask my quetion I'll give you guys some background info. The goal is to read and process an orsm file which is a file containing hex codes. The flow is as follows: Read in some byte to a ByteBuffer using a FileChannel. [...] read more
java
int
bit-manipulation
byte
bytebuffer
1vote
1answer

Which is the Go way, PutUint32 or use >> operator directly?

This is two ways to get the same 4 bytes: package main import ( "encoding/binary" "fmt" ) func main() { i := binary.LittleEndian.Uint32([]byte{1, 2, 3, 0}) bs := make([]byte, 4) binary.LittleEndian.PutUint32(bs, uint32(i)) fmt.Println(bs[0] == 1 && bs[1] == 2 && bs[2] == 3 && bs[3] == 0) bs = []byte{byte(i [...] read more
go
binary
1vote
2answers

How to properly use buffer while exchanging data via recv/send in UNIX?

I am making a simple chat that has to send text message made by one member to all other members. The format of the message that everybody has to receive is "[IP]: hello!". Also the server has to notify everybody when somebody connects or disconnects: "[IP] has connected" and "[IP] [...] read more
c++
sockets
unix
networking
0votes
0answers

Unable to get link lights on Chelsio T520-SO using SFP+

I'm new to working with fiber so please bear with me. I've got a Dell R520 that I've just installed a Chelsio T520-SO fiber adapter into. The server is running Ubuntu 18. I've got a compatible Chelsio SM10G-SR:10G transceiver on the adapter side and the switch (HP5406) which is using [...] read more
linux
ubuntu
linux-networking
switch
fiber
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

DL185 G5 poor Ethernet lan speed

I picked up this server for like $20 and just using it for my homelab setup. The problem is that the ethernet speeds are peaking at 8MB/s on the LAN and even worse to the internet down to like 5MB/s. This would normally point to being connected at 100Mbps but [...] read more
linux
networking
ethernet
gigabit-ethernet
wired-networking
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
0answers

SQLite, C++ reading and writing blobs for graphic data

I am working on a game engine and have run into an issue that has been stumping me for the last day and a half. I use stb to load graphics data into an unsigned char *. I can see the data being written to the SQLite database, with binary [...] read more
c++
sqlite
binary
blob
sdl-2
0votes
0answers

Addition of pointer of array in C

I not understand how why the EK is having an array size 44, but each round the function is only modify the data of rkexp[0], rkexp[1], rkexp[2], and rkexp[3]. There are total 10 round and i am showing two of the round. I also not understand that how the rkexp [...] read more
arrays
c
pointers
byte
aes
0votes
0answers

Fastest way to draw or blit rgb pixel array to window in SDL2 & OpenGL2 in C++

QUESTION: How do I draw an rgb pixel image (array of rgb structs) to the display using SDL2 and OpenGL2 as fast & as efficiently as possible? I tried mapping to a 2d texture and blitting an SDL_Surface... I think the 2d texture is slightly faster but it uses more [...] read more
c++
opengl
windows-subsystem-for-linux
sdl-2
imgui
0votes
0answers

Using FFmpeg with URL input causes SIGSEGV in AWS Lambda (Python runtime)

I'm trying to implement a video converting solution on AWS Lambda following their article named Processing user-generated content using AWS Lambda and FFmpeg. However when I run my command with subprocess.Popen() it returns -11 which translates to SIGSEGV (segmentation fault). I've tried to process the video with the newest (4.3.1) [...] read more
python-3.x
ffmpeg
aws-lambda
segmentation-fault
0votes
0answers

How can I render two adjacent triangles with XRenderCompositeTriangles?

I'm trying to use the triangle primitive in XRender to draw stroked lines. According to the (quite limited) documentation (see section 10): > Abutting edges must match precisely. When specifying two polygons abutting along a common edge, if that edge is specified with the same coordinates in each polygon then [...] read more
x11
xlib
0votes
1answer

Serialize in Java and read in C++

I am trying to serialize a Java object in such a way that its content can be read by an existing reader.cc module, which currently reads binaries generated in C++. The following is a snippet from reader.cc, where it reads 3 variables (name_len, fname, and feature_names_count): uint32_t name_len; in.read((char *)&name_len, [...] read more
java
c++
serialization
binary
0votes
0answers

Firefox web extension native messageing to Scala application exceeding limits of bytes for messages

On starting the java application from the firefox browser plugin, I get an error before even sending a message (so I am assuming this is some 'handshake'). I am on Ubuntu I am using JDK: java-11-openjdk-amd64 I start the native application through a sh script: #!/bin/sh set echo off cd [...] read more
java
scala
ubuntu
firefox-addon
firefox-webextensions
0votes
1answer

TrackMouseEvent Problems

I have a subclassed button that I am trying to highlight when the mouse cursor is over it. However, I cannot seem to get the TrackMouseEvent() function to work properly. Here is the code that creates the subclass: hBtn = CreateWindow(L"button", L"", WS_CHILD | WS_VISIBLE | BS_OWNERDRAW, 0, 0, 0, [...] read more
c++
windows
subclassing
0votes
2answers

How to turn on LED on stm32 board using assembly language that generated by llvm?

My English skill is poor because I'm not a native English speaker. Please understand. I compiled some test code that operating alright in IAR with LLVM infra but the generated code was not operated on my test board. Detail are as follows. TEST GOAL I want to see operating the [...] read more
makefile
llvm
cortex-m3
segger-jlink
stm32l152
0votes
0answers

Self-written bitmap ignores alpha value if it is 0

I am writing a program that outputs a list of RGBA values to a bitmap image. It seems to work fine, except when alpha is 0. When alpha is 0, alpha seems to be ignored instead of transparent. When alpha is 0x01 though, everything seems to be fine. Currently the [...] read more
bmp
0votes
0answers

pic18f47q43 Reading from program flash memory problem

I am using MPLAB X IDE and MPLAB Code Configurator (MCC). i generated the library of the flash read/write and erase with MCC. then when i used "FLASH_ReadPage" built in function created from the MCC its not working, and after debugging i found it stucked in a while loop that [...] read more
microcontroller
flash-memory
pic18
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

Issue with null key/value's when accessing a map/vector from a callback generated from ESP32 bluetooth library

I am trying to fire a function every time an ESP32 node receives a certain char. I can receive the data and parse the char out of a packet structure I have made. I register all my actions in a map of type <char,callback_function>, where typedef void (*callback_function)(void); The idea [...] read more
c++
arduino
bluetooth
microcontroller
esp32
0votes
1answer

Is it posible to know the brightness of a picture in Flutter?

I am building an application which has a Camera inside. After I take a photo, I want to analyze it to know the brightness of this picture, if it is bad I have to take again the photo. This is my code right now, it's a javascript function that I [...] read more
image
flutter
dart
camera
brightness
0votes
1answer

How to encrypt String using Camellia 128-bit Encryption Algorithm in Java?

Im currently trying to develop a chat application that implement Camellia 128-bit as its encryption algorithm. I succesfully build and run the code from it official page [here][1]. The problem is the algorithm encrypt for Integer datatype. When im trying to encrypt String message, i converted it into ASCII form, [...] read more
java
encryption
block-cipher
128-bit
camellia
0votes
0answers

MIPS- "Dropped off Bottom"?

I am a beginner in MIPS and I need to write a code that will draw a box on the bitmap display using 4 loops for each side of the box, the box should have the marquee effect and have a 5 ms delay. And it should have keyboard funtionality [...] read more
mips
0votes
0answers

Unable to Draw With WM_NCPAINT

I am trying to paint in the non-client area, to produce a custom "skin". Though I can trap the WM_NCPAINT message, I cannot get any of the drawing functions to work. Here is a test code, to draw a small, red rectangle in the NC area. The coordinates in this [...] read more
c++
windows
0votes
0answers

CR on game result screen failing to get text information - how can I pre process the images to be successful?

When I first ran into problems I read this article: Tesseract Doc on Improving Quality. I tried various transformations on my image and did manage to get some significant improvement. However it is still a long way from reasonable. Here is what a game result screen looks like straight out [...] read more
java
ocr
tesseract
tess4j
0votes
0answers

Some questions about the Cortex-M3 bit-banding feature

(I am new to ARM microcontrollers. Pardon me if this is a naïve question. ) ARM-M3 processor provides a unique bit-banding feature which maps a bit in the first 1M address range of SRAM and peripheral regions to a 32-bit word in another alias address ranges, respectively. My questions are: [...] read more
cortex-m
cortex-m3
bit-banding
0votes
0answers

32 bits data transfer from Pi to FPGA using spidev

I'm trying to 32 bits data send and receive between Pi and FPGA using spi. So, I set the Pi as master and FPGA as slave. And use xfer2 function from spidev. But, I couldn't read data. How can I fix it?. First 4 bytes for deciding read or write [...] read more
raspberry-pi
fpga
spi
0votes
0answers

How to display a texture in SDL2?

I have a problem with SDL2, I'm trying to render a fully red surface with SDL2 but it doesn't work, the window closes immediately, it seems like the program exits in SDL_RenderPresent() function, I think the wrong part is my fillSurface function but I don't see what I did wrong [...] read more
c
sdl
0votes
1answer

Trying to read from switches and output in a LED switch board

I am wrtiing a program in PLP assembly that repeatedly reads the value of the switches (address: 0xf0100000) and displays a pattern on the LED array (address: 0xf0200000) based on what switches are clicked. Each time the switch value is read, the pattern should be displayed (regardless of whether the [...] read more
assembly
mips
0votes
0answers

Native Messaging stops working after receiving chunked response

I made two extensions, one for firefox and one for chrome(will post only firefox code here, if it is necessary to post Chrome code, let me know, but it is extremely similar) that has some actions, calls to native host app. One of this calls returns a message with > [...] read more
google-chrome-extension
firefox-addon
chrome-native-messaging
0votes
0answers

Error when communicating with the native messaging host- Java

So I am learning about Native messaging with chrome extension using Java. I got the following error while testing the app: Error when communicating with the native messaging host. I wasn't sure what was the problem or how can I track the error.Here's my checker.bat file: @echo off javac Test.java [...] read more
javascript
java
google-chrome-extension
0votes
1answer

Shader error in '...': Unknown parameter type (39) for '...' at kernel '...'

I know I'm just dumping a lot of code here, but this error message that I am getting does not give a real line number nor does it show up on Google for me. I don't even know what it is supposed to mean, since F3 and G3 are both [...] read more
unity3d
hlsl
compute-shader
0votes
0answers

C# / .NET socket connection for multiple parts with same IP / socket binding to network card/ip

We have 2 PCB's we want to send data to individually, both PCB share the same IP and same Port (192.168.249.2:4000). Now the only difference its that PCB1 its connected to "Ethernet1" card on my PC and PCB2 its connected to "Etherne2t". PC---------Ethernet 1 (ip 192.168.249.11) ---------- PCB 1 ( [...] read more
c#
.net
tcpclient
0votes
0answers

Applying a Color Transformation to very Pixel of a texture (Libgdx)

A game I am currently developing uses a 5x5 matrix to change the colors of the image on a per pixel basis. I was wondering if anyone has developed an extremely fast algorithm for something like this. For every Pixel(setPixel(sourcePixel * Matrix)) I have built my own algorithm for this [...] read more
libgdx
colormatrix
0votes
0answers

testFX in javaFX unable to test fxid tag

I am trying to write junit for JavaFX. I am using testFx. in my fxml file: <Text fx:id="actiontarget" GridPane.columnIndex="1" GridPane.rowIndex="6"/> I have a functionality in my controller class: @FXML protected void handleSubmitButtonAction(ActionEvent event) { actiontarget.setText("Sign in button pressed"); Now I when I am writing test class : @Test public void [...] read more
java
javafx
junit
testfx
0votes
2answers

How to calculate the number of bytes a 32-bit number will take when chunked into bytes

So we have this to break a 32 bit integer into 8-bit chunks: var chunks = [ (num & 0xff000000) >> 24, (num & 0x00ff0000) >> 16, (num & 0x0000ff00) >> 8, (num & 0x000000ff) ] How can you tell how many chunks it will be before computing the chunks? [...] read more
javascript
bit-manipulation
0votes
1answer

What is the netCore SSE2 counterpart of _mm_set1_epi32

I'm porting some c++ SIMD instruction code to netCore Intrinsics and went over following line: __m128i ssd = _mm_set1_epi32((unsigned __int32)(alpha_value & 0x000000FF) << 24); //ALPHA CHANNEL MASK In the docs of netCore SSE2 Intrinsics I could not find any corresponding method for the _mm_set1_epi32 intrinsic. What this instruction does is [...] read more
c#
.net-core
sse
simd
intrinsics
0votes
0answers

Shadow map - some shadows get cut off

I'm working on a voxel engine and my shadow map has some strange behavior. When I turn my directional light to a certain angle, some shadows are cut off. here apic how it looks like and my shadow map. this is how I render my shadows: glDisable(GL_CULL_FACE); glEnable(GL_DEPTH_TEST); glViewport(0, 0, [...] read more
opengl
rendering
shadow
voxel
0votes
0answers

GLSL - imageAtomicRGBA8Avg and alpha channel

I am trying to get atomic averaging working on a voxelization shader based on https://www.seas.upenn.edu/~pcozzi/OpenGLInsights/OpenGLInsights-SparseVoxelization.pdf Shader code: #version 440 core #extension GL_ARB_shader_image_load_store : require layout(binding = 0) uniform sampler2D albedo; layout(r32ui, binding = 1) uniform volatile uimage3D voxels; layout(binding = 2) uniform sampler2DShadow shadowMap; in vec2 uv; in flat int [...] read more
c++
opengl
glsl
voxel
0votes
2answers

Why is my Char* empty after filling with integers?

I would like to save several integers in a char pointer and then send this pointer with sendto (winsock2). Unfortunately my char pointer always only contains "\n". Right at the creation and also after filling. What have I done wrong? uint32_t id = getID(); uint8_t inputType = getInputType(), inputValue = [...] read more
c++
networking
char
0votes
3answers

Error when compiling - unknown field specified in initializer

I have found an old script written in C and when I try to compile it I get the following message # gcc libipt_rope.c -o libipt_rope.so libipt_rope.c:349: error: variable ‘rope’ has initializer but incomplete type libipt_rope.c:350: error: unknown field ‘next’ specified in initializer libipt_rope.c:350: warning: excess elements in struct initializer [...] read more
c
gcc
compilation
0votes
0answers

How to use onTap and Draggable together in flutter?

I need a widget to receive the onTap event and is draggable. child: GestureDetector( onTap: _setVisibleSelect(), child: Draggable<Color>( data: Color(0x000000ff), child: Image.asset('assets/photo.png', color: Colors.yellow, width: 60, height: 60,), feedback: Image.asset('assets/photo.png', color: Colors.yellow, width: 60, height: 60,), childWhenDragging: Container(), ), I can see _setVisibleSelect() doesn't work when onTap but Dragging. How [...] read more
android
ios
flutter
dart
0votes
1answer

Not able to set color to segment control

I'm having color like this "CC0000" Now to assign this color to my selected segment, I tried using this extension first. extension UIColor { // MARK: - Initialization convenience init?(hex: String) { var hexSanitized = hex.trimmingCharacters(in: .whitespacesAndNewlines) hexSanitized = hexSanitized.replacingOccurrences(of: "#", with: "") var rgb: UInt32 = 0 var r: [...] read more
ios
swift
hex
uicolor
0votes
0answers

Why I get (sligtly) different outputs reading the same char* buffer using two different methods?

I'm writing a program in C++ to read and decode data received over TCP which I store in a char* buffer. Method 1 Since I found useful to be able to read the buffer for debugging purposes, I firstly used this function to extract a given number of bytes from [...] read more
c++
pointers
memory
bitset
0votes
0answers

Android - Convert a Java-Native-Interface (JNI) method into Renderscript

I have the following JNI method which I want to convert to Android's RenderScript because that would make my project a little bit simpler to manage. Here is the JNI method: static void applyRGBCurve(int width, int height, int *pixels, int *rgb) { int R[256]; int G[256]; int B[256]; // It [...] read more
android
java-native-interface
rgb
android-renderscript
0votes
0answers

Why are the colors I assign to UIControls not the colors that show up?

Since iOS 13, the colors getting assigned to UIControls don't seem to be the same colors that ultimately end up getting displayed. Here is an example that can be copy & pasted into an xcode playground: import UIKit import PlaygroundSupport // https://www.hackingwithswift.com/example-code/uicolor/how-to-convert-a-hex-color-to-a-uicolor extension UIColor { public convenience init?(hex hexUser: String) [...] read more
ios
uikit
ios13
uicolor
uicontrol
0votes
0answers

Image to binary value - Pixel Value

I need to convert image to a hexadecimal value. When I try to get a color code of specific pixel on uiimage I got the wrong value. In Java I'm using bitmap.getpixel() method to reach pixel color and I'm getting correct value which is 255 but on swift same image [...] read more
android
swift
binary
zpl
0votes
0answers

Xcode Build Configuration is really slow for a simple code, only with Swift (with Objective-C the code runs fine)

The following code is just an example to verify the problem. With the Build Configuration Debug, the Swift code takes 7.2 seconds to conclude. The same code with the Build Configuration Debug, but in Objective-C, takes 0.05 seconds. Objective-C and Swift run fast in the Build Configuration Release, taking 0.001 [...] read more
objective-c
swift
xcode
build
configuration
0votes
0answers

netfilter to drop icmp message from firewall - Ubuntu 16.4

Hello when I tried to compiled the code in below by typing commmand make , I got the error message in below , can you assist me to figure out the issue and run the code , because I modified the code to drop icmp message from firewall home/seed/Desktop/filter/task2.c: In [...] read more
c
cryptography
0votes
1answer

converting bytes to integers in a bytebuffer

I have found this piece of code that I have posted below that should convert bytes to integers, however I do not fully understand how this piece of code works in java. I believe bytebuffer is used in this case in a full piece of code as it is just [...] read more
java
bytebuffer
0votes
3answers

Naoqi eventhandling 10 Secounds delay

I am working with a NAO-robot on a Windows-XP machine and Python 2.7. I want to detect markers in speech. The whole thing worked, but unfortunately I have to face now a 10 Secounds delay and my events aren't detected (the callback function isnt invoked). First, my main-function: from naoqi [...] read more
python
event-handling
delay
led
nao-robot
0votes
1answer

How does parent process convert child process exit code to status code?

When I run the following code (headers and main entry ommitted) void fork11() { pid_t pid[N]; int i; int child_status; for (i = 0; i < N; i++) if ((pid[i] = fork()) == 0) exit(100+i); /* Child */ for (i = N-1; i >= 0; i--) { pid_t wpid = [...] read more
c
process
waitpid
0votes
1answer

SDL2 access render framebuffer

I am trying to access the framebuffer of an SDL_Renderer as an array of Uint32* pixel to pass to Libretro's display function. I created this minimal example to show two methods of accessing SDL's framebuffer that I have seen online, neither of which work. #include <iostream> #include "SDL.h" const int [...] read more
sdl
sdl-2
framebuffer
libretro
0votes
0answers

Extracting data from big vs little endian

Suppose I have a function that should be able to extract any integer type (char, int, long, etc) from any other integer type because some data outputting device likes to pack small data into bigger data types (ie 4 chars in a uint32_t). I write a function that 1. Takes [...] read more
c++
endianness
0votes
1answer

How to send byte numbers as is, instead of sending them as individual digits in Android Bluetooth outputStream?

I want to send, for ex: 239 as 239 over my Bluetooth outputStream but currently, my Bluetooth code sends this as "2", then "3" and then "9"; 3 bytes in total instead of 1 byte and receiving is also happening in 3 bytes. Code on the Tx side (Java): Sending [...] read more
java
android
kotlin
bluetooth
0votes
1answer

Enabling EPT in VMX causes failed entry due to guest state

I'm building a hypervisor at home and I'm having an issue with entering VMX when enabling EPT. The following code is used to set the guest mode, and it successfully enters VMX. However, when I enable EPT I'm getting a VMX entry failure with exception no. 33 (vm entry failure [...] read more
c
linux-kernel
virtualization
hypervisor
0votes
0answers

How to get address from string format exploit that only accepts decimals?

I'm trying to get the address of a function by exploiting string format vulnerability. I have a function pointer named 'exit' that points to a function A. I need to make 'exit' point to another function B that is at some address offset from A (in this case, it's 32 [...] read more
string
format
buffer
overflow
memory-address
-1votes
1answer

Change rows color

I have an excel file and i need to check the column B for a certain range (for example range: 1:3000) and if is present a value different from "new" and empty cell so i need to change the row color in grey from column B to O. Like this: [...] read more
c#
excel-interop
xlsm
-1votes
1answer

Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed) error shows when i use ESP now protocol

This error shows in my serial monitor see the code below for ESP32 and please help me to solve > Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed) Core 1 register dump: PC : 0x400d1580 PS : 0x00060034 A0 : 0x400847fc A1 : 0x3ffbe7b0 A2 [...] read more
arduino
esp8266
arduino-ide
esp32
esp-idf
-1votes
1answer

Passing Bitmap variable to method in extended class

My code implements TFlite and I have two classes: 1) Deals with camera activity and processing of image 2) Deals with specifics of the model and detector. I have a method in the extended class which runs the model. I am trying to call that method from within the main [...] read more
java
android
oop
methods
bitmap
-1votes
1answer

BMP File to PNG File Converter

I'm making a BMP to PNG Converter. The BMP Images are uncompressed. So my question is when the BMP File is converted to a PNG File, then is the PNG File compressed i.e is the image data compressed. If so how is the image data aligned in the PNG File [...] read more
png
bmp
-1votes
2answers

bitwise operator on half a byte C#

I am working on a project which outputs to an odd circuit and need to invert half the byte I am sending. So for example, if I am sending the number 100 as a byte, it comes out in the chip as 01100100, nice and easy. The problem is that [...] read more
c#

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