Windows error 0xFFFF0000, -65536

Detailed Error Information

HRESULT analysis[1]

FlagsSeverityFailure
Reserved (R)true
OriginCustomer

This code was defined by a third party software company, and may mean different things for different software. Contact the software author for more information about this error.

NTSTATUStrue
Reserved (X)true
FacilityCode4095 (0xfff)
Error Code0 (0x0000)

Questions

160votes
18answers

Change drawable color programmatically

I'm trying to change the color on a white marker image by code. I have read that the code below should change the color, but my marker remains white. Drawable.setColorFilter( 0xffff0000, Mode.MULTIPLY ) Did I miss something? Is there any other way to change colors on my drawables located in [...] read more
android
96votes
7answers

Android: Cloning a drawable in order to make a StateListDrawable with filters

I'm trying to make a general framework function that makes any Drawable become highlighted when pressed/focused/selected/etc. My function takes a Drawable and returns a StateListDrawable, where the default state is the Drawable itself, and the state for android.R.attr.state_pressed is the same drawable, just with a filter applied using setColorFilter. My [...] read more
android
android-widget
drawable
33votes
1answer

what is notification channel id?notifications not work in api 27

I updated my project api target to 27 and all notifications were disabled. What's the difference between notification in api 26 and 27? Notification notif = new NotificationCompat.Builder(this) .setContentTitle(getString(R.string.app_name)) .setContentText(message) .setSmallIcon(R.mipmap.ic_launcher) .setContentIntent(pIntent) .setSound(alarmSound) .setAutoCancel(true).build(); notif.ledARGB = 0xFFff0000; notif.flags = Notification.FLAG_SHOW_LIGHTS; notif.ledOnMS = 100; notif.ledOffMS = 100; NotificationManager notificationCompatManager = (NotificationManager) [...] read more
android
api
notifications
27votes
3answers

How to snap RecyclerView items so that every X items would be considered like a single unit to snap to?

BACKGROUND It's possible to snap a RecyclerView to its center using : LinearSnapHelper().attachToRecyclerView(recyclerView) Example: MainActivity.kt class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val inflater = LayoutInflater.from(this) recyclerView.adapter = object : RecyclerView.Adapter<RecyclerView.ViewHolder>() { override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) { val textView = holder.itemView as TextView [...] read more
android
android-recyclerview
android-viewpager
snapping
15votes
9answers

Google Maps is showing a blank map

I am currently stuck with this problem: Google Maps seems not to be loading at all. Please see the image below: enter image description here [https://i.stack.imgur.com/18YyC.png] This is really driving me crazy. I already have done the following: 1. Added my package name + SHA1 (debug keystore) + SHA1 (release [...] read more
android
google-maps
android-maps
15votes
3answers

What's the proper way to implement an Android widget with dynamically drawn content?

For my first and most awesomest Android project, I want to create a home screen widget which displays one of those Arc Clocks that all the kids are raving about these days. Based on the limitations of RemoteViews, it looks to me that the appropriate way to get it actually [...] read more
android
android-widget
7votes
3answers

Receive Android Push Notification even though App is Closed

I've tried using Google GCM but when the app is closed (Swipe or clear from the task manager), it wont receive any push notifications. And when i open the app again, the notification is already gone and lost. GCM is working for: - App is open - App is minimized [...] read more
android
notifications
google-cloud-messaging
push
6votes
1answer

Solution needed for building a static IDT and GDT at assemble/compile/link time

This question is inspired by a problem many have encountered over the years, especially in x86 operating system development. Recently a related NASM question was bumped up by an edit. In that case the person was using NASM and was getting the assemble time error: > shift operator may only [...] read more
assembly
x86
nasm
ld
osdev
5votes
1answer

VPN DNS configuration bug in OS X

I am using TunnelBlick to connect to an VPN (OpenVPN) with OS X 10.9.2. I can authenticate and pass traffic but the DNS entries injected from the VPN do not work. Here is the output of scutil --dns (resolver #1 is the correct DNS server injected by Tunnelblick) resolver #1 [...] read more
macos
networking
vpn
dns
openvpn
5votes
1answer

How to cancel dragging of items in RecyclerView when using ItemTouchHelper, as you drag?

BACKGROUND I'm trying to have a RecyclerView that has different view types, and yet has the ability for drag&drop, together with single click and long click operations. It's similar to what you have on Phone app, where you can change the order of your favorites items. On the Phone app, [...] read more
android
android-recyclerview
drag-and-drop
itemtouchhelper
5votes
1answer

Flutter Image Colouring

I am trying to color the image with different colors. I am taking two images one is in PNG format and another one is in SVG format. I am taking a list of color and when the user taps on the color from the color list, the color of an [...] read more
dart
flutter
4votes
2answers

yocto kernel ti network error

i'm getting a network interface error when building for the 4.4 ti staging kernel. All layers are in the morty branch. The image is a core-image-minimal. Configuring network interfaces... ifup: unknown address type "inet" With the following config: IMAGE_INSTALL_append = " automake " IMAGE_INSTALL_append = " binutils " IMAGE_INSTALL_append = [...] read more
linux-kernel
beagleboneblack
yocto
4votes
3answers

Android SpeechRecognizer Network Error

I'm trying to create a continous speech recognition in Android 4.4, simple displaying the spoken words in a TextView, like a dictate. I followed multiple tutorials, like https://github.com/fcrisciani/android-speech-recognition/blob/master/VoiceRecognition/src/com/speech/fcrisciani/voicerecognition/ContinuousDictationFragment.java, or Is there a way to use the SpeechRecognizer API directly for speech input? and implemented the following version: import java.util.ArrayList; import [...] read more
android
speech-to-text
4votes
1answer

Raku: How do I assign values to CArray[WCHAR]?

$ raku -v This is Rakudo version 2019.07.1 built on MoarVM version 2019.07.1 The following was done on Raku REPL. What am I doing wrong here? How do I assign values to CArray[WCHAR]? I want $lpData[0] to be 0xABCD and $lpData[1] to be 0xEF12. > use NativeCall; Nil > constant [...] read more
raku
nativecall
4votes
1answer

How to fix borderless form resize with controls on borders of the form?

I have a borderless winForm which I needed to resize, and I managed to do it this way: protected override void WndProc(ref Message m) { const int wmNcHitTest = 0x84; const int htLeft = 10; const int htRight = 11; const int htTop = 12; const int htTopLeft = 13; [...] read more
c#
window
window-resize
borderless
3votes
1answer

x86-64 Kernel crashing on setting up the IDT

I am currently trying to create an x86-64 Kernel from scratch (using GRUB Multiboot2 as a bootloader). I set up my GDT just fine, but when setting up my IDT, there seems to be a problem. I isolated the issue to be my call of lidt by hlting before and [...] read more
c
assembly
x86-64
nasm
osdev
3votes
1answer

Get the bit which is most at the left with dichotomy

I'm trying to understand how this following code works and I am not able to understand what happens here: uint32_t mask[5] = { 0xFFFF0000, 0xFF00, 0xF0, 0b1100, 0b10 }; uint32_t shift[5] = { 16, 8, 4, 2, 1 }; char first_bit_left_dichotomy(uint32_t M) { char pos = 0; char i; for [...] read more
c
bit-manipulation
bit
bit-shift
3votes
4answers

How to reverse bits in a bitset?

For example, I have the integer a = 10; and it's binary representation (for a 32 bit integer) is 00000000000000000000000000001010 and reversed, it becomes 01010000000000000000000000000000 Now I've seen this code, from this topcoder article that can accomplish this x = ((x & 0xaaaaaaaa) >> 1) | ((x & 0x55555555) << [...] read more
c++
c++11
bits
bitset
3votes
2answers

TCP Checksum calculation doesn't match with the wireshark calculation

I am experiencing a problem where the tcp checksum generated by the sample program (copied below) doesn't match with the checksum calculated by wireshark. Can some one please point me where I am going wrong. Here I tried two ways 1. tcp_checksum 2. get_ipv6_udptcp_checksum. with both these, getting two different [...] read more
c
unix
tcp
checksum
2votes
2answers

Active CARP network loop

I have to setup, no matter what, a cluster of 3 active OpenBSD 5.5 with CARP on 3 separate ESXi 5.5 hosts. I think I'm close to the end but I have this message in /var/log/messages : carp0: replay or network loop detected Here is my configuration : -------------------------------------------------------------------------------- ON [...] read more
networking
vmware-esxi
openbsd
carp
2votes
0answers

juniper vpn network connect osx 10.6.8

Juniper Network Connect.app stopped working for me out of the blue, i made no upgrades recently. i see the following log, what else can i investigate? Process: ncproxyd [5322] Path: /usr/local/juniper/nc/7.1.0/ncproxyd Identifier: ncproxyd Version: ??? (???) Code Type: X86 (Native) Parent Process: Network Connect [5319] Date/Time: 2012-11-20 10:00:28.254 +0100 OS [...] read more
macos
vpn
juniper
2votes
0answers

Structure bitfields compilation problem in C

Used architecture: Xtensa-LX6 I have a following definition: volatile typedef struct{ union{ struct{ uint32_t FIELD1:16; uint32_t FIELD2:12; uint32_t FIELD3:4; }; uint32_t _; }REGISTER_1; //0x00 offset, 4bytes width }registers_t; static registers_t* HARDWARE = (registers_t *)0x3FF43000; Then I have a line somewhere in the code: HARDWARE->REGISTER_1.FIELD1 = 0b10101u; This line gets compiled [...] read more
c
assembly
bit-fields
xtensa
2votes
1answer

How to detect tap on Flame components?

I am using Flutter and flame (0.29.3) to build a simple mobile game. I am trying to detect taps on PositionComponent/SpriteComponent. However, I fail to do so. References/tutorials are using addGestureRecognizer but it is deprecated. I define my PositionComponent is as follows; class Enemy extends PositionComponent with Tapable { Rect [...] read more
flutter
dart
flame
2votes
4answers

What is the purpose of "ts & 0xffff0000"?

I'm working on a real time protocol that adding the timestamp for each transmitted packet and I don't understand what the lines of code mean. Thanks for help. // ts for timestamp unsigned int ts; if(ts & 0xffff0000){ // do something } read more
c
network-programming
operators
2votes
1answer

How to set space on left&right of the logo in the actionBar?

BACKGROUND I want to show a bitmap on the left side of the title of the activity, in the actionbar (toolbar, to be exact), so I used this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setLogo(R.mipmap.ic_launcher); ... THE PROBLEM Thing is, the logo [...] read more
android
android-actionbar
android-toolbar
graphical-logo
2votes
3answers

What does it mean to "Long call" a function in MIPS

I am coding a program that uses interrupt handling to play an ascii-based game in MIPS. I am told to "Long call" my main function from my handler. My handler takes place under .ktext 0x80000180 and looks like this: .ktext 0x80000180 move $k1, $at beq $13, 0, keyboard li $v0, [...] read more
assembly
mips
2votes
3answers

Time calculation in the main game loop

There is the code in the Quake 2 main game loop implementation: if (!initialized) { // let base retain 16 bits of effectively random data base = timeGetTime() & 0xffff0000; initialized = true; } curtime = timeGetTime() - base; I'm wondering about the line base = timeGetTime() & 0xffff0000. Why [...] read more
c++
visual-studio
2votes
1answer

Multiboot keyboard driver triple faults with GRUB (works with QEMU) - why?

I've been reading a ton of tutorials about OS development on x86, and so far all has gone well - until now. I can't figure out what the solution is for the life of me. My goal is to write the simplest possible keyboard driver for x86. Things work well [...] read more
gcc
x86
kernel
interrupt
osdev
2votes
1answer

Unique Number generation based on latitude and longitude in Java and Python

I am trying to implement unique number generation based on latitude and longitude such that for same latitude and longitude pair the number generated should be same. Other than that generated number should not exceed the maximum value of Integer in Java, which is 2147483647 Following python function is working [...] read more
java
python
latitude-longitude
2votes
1answer

Handling SDL events inside Win32 window

I have difficulty handling SDL events inside a Win32 window. I made a small program to display magenta background. Basically when the user presses 'q' key, the background color should toggle from magenta to red and vice versa. sdlwin.c #include <windows.h> #include <SDL2/SDL.h> const int win_width = 500; const int [...] read more
c
winapi
event-handling
sdl
sdl-2
2votes
0answers

const uint32_t gives the error: hicpp bitwise operations on signed integers

The code below gives me a clang-tidy error: > [clang-tidy] hicpp bitwise operations on signed integers // File 1: Clang - Tidy not enabled typedef struct A { struct { uint32_t b; } c; } A; // File 2: Clang-Tidy enabled A *ptr; // Some code that assigns values at [...] read more
c++
bitwise-operators
clang-tidy
1vote
4answers

Varnish doesn't seems to be doing anything

I would highly appreciate an input on whats going wrong here: Running Magento on Ubuntu 14.04 x64 + Nginx + Mysql + Php5-FPM Please double check my steps so maybe you could help me point what's messy: * Installed Varnish * Installed Magento Tupertine (an extension that makes Varnish work [...] read more
varnish
cache
magento
1vote
0answers

Raid 5 XFS missing superblock

Yesterday I found (the hard way) that my APC battery had failed; After a power loss at home I had to power up my computer and NAS (raid 5 XFS on Debian). The computer was fine however the I was unable to mount my raid (md127) with the message "mount: [...] read more
linux
hard-drive
mount
raid
nas
1vote
0answers

How can I open a specific port on OS X El Capitan on a tun device?

I am trying to open port 3389 on OS X El Capitan. $ sw_vers ProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G31 $ ifconfig ..snip.. utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet 10.X.X.XX --> 10.X.X.XX netmask 0xffff0000 How can I achieve this with pfctl? I found the man page rather difficult to [...] read more
macos
vpn
firewall
1vote
2answers

Mac: Internet blocked over WiFi

I'm not sure how it's happened but for some reason when using a shared internet connection on my iMac (OS X Lion) all internet traffic is now blocked from being sent to my other devices. However things like streaming radio do work. How can I figure out what's blocking the [...] read more
macos
mac
wireless-networking
airport
1vote
3answers

C how to read middle bits?

Please note my comments, the question is still unanswered. I have the following which I can't change: unsigned long addr=142; u16 offset_low, offset_middle; u32 offset_high; I want to set offset_low for low 16 bits, offset_middle for mid 16 bits and offset_high for higher 32 bits of addr. So I wrote: [...] read more
c
bit
ram
endianness
1vote
1answer

How to properly close/terminate a simple Windows app

Having such a simple DirectX application: #include <d3dx9.h> #include <tchar.h> #include <chrono> #include "Utils.h" //#pragma comment (lib, "d3d9.lib") //#pragma comment (lib, "d3dx9.lib") using namespace std::chrono_literals; using namespace std::chrono; const wchar_t g_szClassName[] = _T("myWindowClass"); // we use a fixed timestep of 1 / (60 fps) = 16 milliseconds //constexpr std::chrono::nanoseconds timestep(16ms); [...] read more
c++
winapi
visual-c++
1vote
0answers

Need help understanding line of decompiled code from ghidra

I'm reversing a simple binary in Ghidra and have run across the following decompiled C-code: original_key._0_4_ = original_key._0_4_ & 0xffff0000 | (uint)CONCAT11(original_key[0],(char)(original_key._0_4_ >> 8)); and here is the associated disassembly: LAB_00101558 XREF[1]: 00101558 0f b6 45 f1 MOVZX __buf,byte ptr [RBP + original_key[0]] 0010155c 88 45 e4 MOV byte ptr [...] read more
c
reverse-engineering
ghidra
1vote
1answer

How are the Canbus filtering settings made?

I want to filter with canbus. I found certain things for the filter, but what I want is not working. I created a filter like the one below. Some messages cannot pass through this filter. What kind of change should I make in the filter to be included in the [...] read more
c
filter
stm32
can-bus
1vote
1answer

Jetpack Composable doesn't react to changes

I've been trying to follow the only good example with support that I could find, but in my case, it doesn't work. I have a ViewModel that talks to a @Model in Composable, and changes a loading: Bool according to a MutableLiveData<Boolean> but it doesn't recompose. class LoaderViewModel : ViewModel() [...] read more
android
android-fragments
android-livedata
android-viewmodel
android-jetpack-compose
1vote
1answer

Demystifying LOWORD macro pseudocode into valid C

From IDA decompilation of a subroutine into C pseudocode, I encountered this line of code: LOWORD(v9) = *(BYTE *)v6); Where v9, v6 are 32-bit integers. LOWORD is a macro defined in windef.h as follows: #define LOWORD(l) ((WORD)(((DWORD_PTR)(l)) & 0xffff)) Obviously it's a macro, so I can't assign things to it. [...] read more
c
windows
pseudocode
decompiling
ida
1vote
1answer

Error when linking .o files using ld on WIndows

Two C files are compiled as shown: gcc -g -c -Wall -I../include blink.c -o blink.o gcc -g -c -Wall -I../include led/led.c -o led/led.o These operations appear to be successful (the correct files are produced). When attempting to link the two .o files with the command: ld -Map blink.map -T make.ld [...] read more
c
windows
gcc
gnu
ld
1vote
0answers

Writing C functions for bare metal development on intel x86, linker reports overflow

I am trying to build an OS from scratch. Beginning from the first instruction in 0xFFFFFFF0 and so on. To do so, I am using assembly code (NASM) and C code (gcc). But I'm doing something wrong. I've writen a C function to copy the kernel code from the NVRAM [...] read more
c
assembly
gcc
osdev
1vote
5answers

Why no effect of calling functions with void keyword?

I need to write quite simple program which makes LED diode flashes using processor ARM AT91SAM9263. I need to run this code using QEMU emulator, which is installed on my Ubuntu machine. I am trying to write a program with 4 functions, which are initializing LED ports and Buttons ports, [...] read more
c
ubuntu
arm
qemu
atmel
1vote
3answers

Custom shape tappable area with CustomPaint widget on Flutter

I’ve seen some posts with things similar to this question, but they’re not what I’m looking for. I want to create a button with a custom shape in Flutter. For that I use a CustomPaint widget inside a GestureDetector widget. The problem is that I don’t want invisible areas to [...] read more
flutter
1vote
1answer

per-pixel transparent window using Windows Composition engine in C++

I want to display a raw BGRA data (so I have an unsigned int *, with width and height) on a window so that the alpha component is taken into account to have per-pixel transparency. The final purpose is to integrate this in a graphic toolkit. after reading Kenny Kerr's [...] read more
c++
winapi
direct2d
alpha-transparency
direct-composition
1vote
2answers

How can I correctly place a red oval in Flutter?

Where should the red oval be Hello, my question is how can I get the red oval in the picture above to the position marked below? Does anyone know? I thank you in advance. This is my code: > return Scaffold( > backgroundColor: const Color(0xffffffff), > body: Stack( > children: [...] read more
flutter
position
1vote
0answers

How to animate progressbar color with Flutter

I tried to create an animated progressbar where the progress is filling up animatedly and also it changes it's color depending on the final value of the progress. The first part is working properly, but I can't figure out what is wrong with the color animation. What am I missing? [...] read more
flutter
flutter-animation
1vote
1answer

flutter BottomAppBar selected color

So I currently have the following for my bottom navigation bottomNavigationBar: BottomAppBar( shape: CircularNotchedRectangle(), child: Container( decoration: new BoxDecoration(color: new Color(0xFFFF0000)), height: 75, child: Row( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ IconButton( iconSize: 30.0, padding: EdgeInsets.only(left: 28.0), icon: Icon(Icons.home), onPressed: () { setState(() { onTabTapped(0); }); }, ), IconButton( iconSize: [...] read more
flutter
android-bottomappbar
1vote
1answer

Why is the Jetpack Compose card radius corner not even

I'm having a lazyColumn that wrap items of @Composable fun MySimpleListItem( itemViewState: String, itemClickedCallback: (() -> Unit)? = null, ) { Card( shape = RoundedCornerShape(50.dp), backgroundColor = Color(0xFFFF0000), ) { Text( text = itemViewState, modifier = Modifier.fillMaxWidth().padding(16.dp), style = TextStyle(fontSize = 32.sp), textAlign = TextAlign.Center ) } } Looks like [...] read more
android-cardview
android-jetpack-compose
1vote
0answers

Hashing quality not constant over bits

I am attempting to derive a pseudo-random 32bit value from a 32bit input. For this, I am using this murmur hash: uint32_t murmur(uint32_t key, uint32_t seed) { uint32_t k = ( key ^ seed ) * 0x5bd1e995; k = k ^ (k>>24); return k; } To my surprise, there is [...] read more
random
murmurhash
1vote
1answer

Function decoder from javascript to C#

I have a LHT65 Sensor which sends an encoded payload and I found this code in javascript: https://gist.github.com/koenvervloesem/c9dca322bd25a98dd042324469d0081d // Source: http://www.dragino.com/downloads/downloads/LHT65/UserManual/LHT65_Temperature_Humidity_Sensor_UserManual_v1.3.pdf function Decoder(bytes, port) { // Decode an uplink message from a buffer // (array) of bytes to an object of fields. var value = (bytes[0] << 8 | bytes[1]) [...] read more
javascript
c#
json
byte
1vote
0answers

Fastest way to partially load an array of uint8_t or uint16_t into _m256i register and fill remaining bits with 1s without AVX512

Basically what I am trying do is load an array of either uint8_t or uint16_t that is smaller than an __m256i register into an __m256i register and fill all the bits in the destination __m256i that are not filled by the array with 1s. An example of what I want [...] read more
c
x86
avx
micro-optimization
avx2
1vote
0answers

allocPhysPages function in System

I am trying to implement a custom physical allocation for which I need to modify the allocPhysPages() function in the System class. There is this section of code in that function AddrRange m5opRange(0xffff0000, 0x100000000); if (m5opRange.contains(next_return_addr)) { warn("Reached m5ops MMIO region\n"); return_addr = 0xffffffff; pagePtr_arr[chiplet_id] = 0xffffffff >> PageShift; } [...] read more
gem5
1vote
1answer

Add svg in custom bottomnavigation menu flutter

Good day. I need paste svg image between custom icons. Custom BottomNavigationBarItem in flutter. I can't paste image between custom icons. How to do it, enter image description here My code class NavBarCustomer extends StatefulWidget { @override _NavBarCustomerState createState() => _NavBarCustomerState(); } class _NavBarCustomerState extends State<NavBarCustomer> { int _itemIndex = [...] read more
flutter
flutter-dependencies
1vote
0answers

How to create CVPixelBuffer from pixel data with YUVFormat

I'm focus to create CVPixelBuffer with bytes data (YUV422), this format is my goal but it doesn't work var yuv422Array = [UInt16](repeating: 0x0000, count: rows*cols) yuv422Array[0] = 0x0000 let bytesPerRow = cols * 2 CVPixelBufferCreateWithBytes(kCFAllocatorDefault, cols, rows, kCVPixelFormatType_422YpCbCr16, &baseAddr, bytesPerRow, nil, nil, nil, &pixelBuffer) //... print(pixelBuffer == nil) // false [...] read more
ios
swift
1vote
1answer

How to remove the RenderFlex error in flutter for column with listview.builder?

I am building the column in flutter as below code which has a nested ListView.Builder, but it is giving display error of RenderFlex, how should I resolve it? > A RenderFlex overflowed by 116 pixels on the bottom. Column( children: [ SizedBox(height: 25,), Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment:CrossAxisAlignment.center, children: <Widget>[ Row( [...] read more
flutter
dart
flutter-listview
1vote
0answers

Is there a way to calculate the progress of a sorting algorithm?

I'm trying to make a subjective sort based on shell sort. I'm referring to the original (Donald Shell's) algorithm. I already made all the logic, where it is exactly the same as the shell sort, but instead of the computer calculate what is greater, the user determines subjectively what is [...] read more
sorting
math
dart
shellsort
1vote
3answers

Bitmask depending on data type

I want to apply a bitmask to get only the upper half of bits. So for an uint32 it would be this: uint32_t version_part = oldID & 0xFFFF0000; This is all fine when the data type is hardcoded but if this was a templated function and I wanted to provide [...] read more
c++
bitmask
1vote
1answer

URLImage.createToStorage failing in codenameone

I'm trying to create a URL image from a imgur png with codenameone, using this code: Form hi = new Form(new BoxLayout(BoxLayout.Y_AXIS)); EncodedImage placeholder = EncodedImage.createFromImage(Image.createImage(hi.getWidth(), hi.getWidth() / 5, 0xffff0000), true); URLImage background = URLImage.createToStorage(placeholder, "test2.png","https://i.imgur.com/VMwUrqH.png", URLImage.RESIZE_SCALE_TO_FILL); background.fetch(); hi.add(background); hi.show(); But it just gives me this error: Exception: java.lang.IllegalArgumentException - [...] read more
java
image
codenameone
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
1answer

Can't read SDRAM of TI OMAP5912 ARM core using JTAG

I'm trying to connect to OMAP5912 device using XDS560v2 TRAVELER JTAG emulator using Code Composer Studio 7. When connecting to C55x device using Connect Target it successfully stops at an arbitrary RAM point. When using Connect Target on the ARM9 core, it always stops at 0xFFFF0000. Now, when I look [...] read more
jtag
omap
1vote
0answers

Gdb layout asm window showing raw instruction opcodes and operands

When I use layout asm command I see the following: │0x4000f2 <_start+18> mov $0xffff0000,%eax When I use disas /r command I see the following: 0x00000000004000f2 <+18>: b8 00 00 ff ff mov $0xffff0000,%eax That is, in the latter case, I can also see the opcode b8 and the operand. How [...] read more
linux
gdb
executable
elf
instructions
1vote
0answers

Reboot loop when enabling interrupts with sti

Whenever I try to enable interrupts using the sti command, the emulator instantly reboots. I am executing the following code in protected mode on bootup: void* idt = (void*) 0x00000; struct { uint16_t length; void* base; } __attribute__((packed)) IDTR = {128, idt}; asm ("lidt %0" : : "m"(IDTR)); asm ("sti"); [...] read more
gcc
x86
interrupt
osdev
protected-mode
0votes
0answers

Openstack instance lost internet access after ataching floating ip

Maybe someone has same problem I have installed Openstack Victoria on two virtualmachines (1 controller node, 1 compute node) running ubuntu 20.04. Each node has two network interfaces, mgmt network and provider network. I have created private network and I have attached it to router. With this configuration I am [...] read more
openstack
openstack-neutron
0votes
1answer

Pfsense OpenVPN : Why is a client IP used as a gateway?

I am wondering why a client IP (172.21.0.2) is used as a Gateway for the OpenVPN subnet (172.21.0.0/20) ? This IP is attributed to the first client connected. Note that I did not encounter any issue with the clients and their connections. Please find below some information to contextualize: * [...] read more
routing
openvpn
pfsense
0votes
0answers

IKE and IPSEC - which algorithms in use - MacOS

I am connecting a MacOS Mojave to two different VPNs. One is over IKEv2, and the other over L2TP/IPSEC. After connecting the VPN, a new interface is created named ppp0. I can see come basic information about this VPN connection with command ifconfig -v ppp0 The output is below: ifconfig [...] read more
vpn
bash
ipsec
ikev2
0votes
1answer

how to redirect a specific loopback port to another address

I would like to redirect the postgres' port to another address which is running postgres. The postgres' instance is hosted on a virtualbox machine with host-only networking configuration. Unfortunately the following rule does not seem to make the job echo "rdr pass inet proto tcp from any to 127.0.0.1 port [...] read more
networking
mac-osx
mac
0votes
1answer

Cannot connect to internet after a power cut yesterday

I work at a small company, we have set up our LAN using an ASUS RT-N18U. We are in a small office as part of a business park, our network comes in over wire, as part of a package supplied by the business park. We had a power cut yesterday, [...] read more
router
troubleshooting
wide-area-network
asus
0votes
1answer

UBI layout volume not found

I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the whole system on the NAND flash. They ask me to put the DTB, the kernel, the root [...] read more
linux
embedded-linux
0votes
1answer

SSHing into a RasPi while an openVPN connection is active for all IPs not within the local 10.0.0.* network

I would like to be able to SSH into my raspi; which I can do so over the wlan0 interface if it simplifies things. All other connections Id like to be routed through an openvpn connection at interface tun0. What Im hoping for is the openvpn configurations or the iptables [...] read more
networking
wireless-networking
ssh
vpn
openvpn
0votes
1answer

Why isn't my forced MAC address change working (Raspberry Pi)?

I'm working with Raspberry Pi Zeros on a subnet. I bought external Ethernet adapters for each one to connect them to one another. Unfortunately, these ethernet adapters all came with the exact same MAC addresses, making communication between the Pis near impossible. Because of that I've tried forcing a change [...] read more
linux
networking
raspberry-pi
subnet
0votes
1answer

I was getting strange IP Adress from my (2nd) router ad figure it out it was I change the ethernet port. Why I was getting strange IP?

I have two Routers, the 2nd a tp-link with dd-wrt. I configure it with the same SSID and other options to have one big wifi network. It worked well. But from one moment to another I was not getting internet. At first I though I was being hacked. Then I [...] read more
networking
router
ip
ethernet
dd-wrt
0votes
0answers

Computers can't access each other when both of them connect to Apple NAT64 hotspot

We have an iOS App on App Store. To submit a new version after Jun 1st, 2016, we have to support an “IPv6-only network” according to this link. We referred to Apple's documentation, upgraded a Mac Mini to El Capitan and set it to a NAT64 hotspot. This Mac Mini [...] read more
macos
ipv6
nat
ios
0votes
2answers

List only interface names for ifaces that have 'parent: eth0' field in ifconfig output with sed and/or grep

ifconfig output: lo: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 eth0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500 address: 01:02:03:04:05:06 media: Ethernet 1000baseT full-duplex status: active inet 192.168.0.10 netmask 0xffff0000 broadcast 192.254.255.255 inet alias 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 inet6 fe80::0:0:0:01%eth0 prefixlen 64 scopeid [...] read more
linux
networking
sed
0votes
1answer

Strange RFID behaviour and BSOD

I am experiencing a strange issue with an RFID Pad and a BSOD. Dell Optiplex 7010, Win7, 64bit, Intel Corie 7 The issue is that I receive a BSOD just before the login screen appears. However if I unplug the RFID pad from it's USB port at start up, the [...] read more
windows-7
hard-drive
drivers
bsod
0votes
1answer

How do I get USB devices working with BeagleBoard xM and Yocto project Linux?

I've built a minimal Linux for my BeagleBoard xM (Rev C) using the Yocto project build appliance, and installed it on a uSD card following their instructions. It works (Yay!), has a small footprint and boots really fast which is what I want. I used a pretty minimal build recipe [...] read more
linux
boot
beagleboard
0votes
0answers

Why would there be an ifconfig listing en2 with 169.254.x.x on OSX 10.6.8?

Web browsing was becoming very slow, after trying in two different places (home,starbucks). I was looking at ifconfig output and everything I found reasons for, lo0 gif0 stf0, except for one of the enX interfaces: en2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 0b:0b:0b:0b:0b:0b inet6 fe80::223:32ff:fec7:d2dc%en2 prefixlen 64 scopeid 0x5 inet 169.254.193.122 netmask [...] read more
networking
osx-snow-leopard
0votes
4answers

MacBook OS X applications crashing on startup

Closed my computer last night, went home. Opened it and it had restarted. Now when I open a couple programs such as Adobe Fireworks or Appcelerator Titanium they throw up a nasty error like below. Other programs (Chrome, Firefox, Textmate, Versions) work fine. Any thoughts on this? I haven't owned [...] read more
macos
crash
0votes
0answers

Firefox Plugin Process quit unexpectedly on MacBook

Some plugin on my Firefox 4.0.1 'quits unexpectedly' /almost/ everytime I close my Firefox on my Macbook. Any idea which plugin may be causing this? 'Process: plugin-container [666] Path: /Applications/Firefox.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container Identifier: org.mozilla.plugincontainer Version: ??? (1.0) Code Type: X86 (Native) Parent Process: firefox-bin [653] Date/Time: 2011-05-18 14:23:20.759 -0400 OS Version: Mac [...] read more
firefox
plugins
0votes
1answer

enable to program FPGA

I'm trying to program the FPGA and boot over an SD card in xc7z020-clg400-1 zynq chip inside parallella, I can't figure out where is the problem, I have did vivado design , generate bitstream, create the FSBL project, and for the u-boot, I just download this one https://github.com/parallella/parallella-flash/blob/master/u-boot.elf, (maybe I [...] read more
sd-card
fpga
parallella
0votes
2answers

Android conflict between Kotlin Int and Java int representation

I have colors stored as IntArrays this is a simple function to convert to the argb color value used by Android. fun IntArray.toColor(): UInt { var color: Long = 0xFF000000 val maxIndex = size - 1 this.withIndex().forEach { (index, value) -> color = color or (value.toLong() shl (8 * (maxIndex [...] read more
android
kotlin
canvas
0votes
0answers

Inflated view methods not working after inflating the view

I have a function which inflates a layout and is supposed to manipulate the views contained within the layout. The layout's base element is a ConstraintLayout. The fragment: public class HomeFragment extends Fragment { ... public void myFunction() { View v = getLayoutInflater().inflate(R.layout.fragment_home, null); TextView t = (TextView) v.findViewById(R.id.my_text_view); t.setText("Some [...] read more
android
layout-inflater
0votes
1answer

Flutter TextField error expands Container

I am trying to get an error border around an input which is wrapped with a Container. The Container is esentially only here to provide a place to put the shadows, for some reason I can't seem to replicate the given design. How it's supposed to look... [https://i.stack.imgur.com/YwvhV.png] return DecoratedBox( [...] read more
flutter
dart
flutter-layout
0votes
0answers

Cannot read/write interval timer register DE1-SoC HPS

I have a DE1-SoC (Cyclone V) board where I am trying to get timer interrupts to work on the HPS. I found an example in the Intel FPGA University Program called "interrupt_example", and when I run it on the Intel FPGA Universioty Program, it runs perfectly. Now I want to [...] read more
arm
intel
fpga
soc
0votes
2answers

How do I set the background to a solid color? When I use setContentView the screen is blank

I have looked and tried a lot of different things but no matter what I end up doing the screen is always blank and I'm sure it's something really dumb I'm doing and I'm hoping someone will catch it. I'm trying to alternate background colors but before I even get [...] read more
android
screen
0votes
1answer

How to change what block is at certain coordinates?

I am trying to recreate the mod in the YouTuber TommyInnit's video "Minecraft’s Laser Eye Mod Is Hilarious" as me and my friends wish to use it but we couldn't find it on the internet, and I have taken code from here for raycasting and also set up a keybind, [...] read more
minecraft
minecraft-fabric
0votes
1answer

AArch64 (Cortex-A53) - Understanding translation table

I'm trying to understand the translation table from a Cortex-A53. Currently without success. Cannot enable the MMU. I would like to know how to correctly setup the MMU. Have tried this tutorial from ARM. Relevant code (enabling): __el2_cache: mrs x0, SCTLR_EL2 bic x0, x0, #(1 << 0) /* Disable MMU [...] read more
assembly
arm64
mmu
0votes
1answer

Why does this send-IPv6-local-node-multicast program work under MacOS/X but not under Linux?

Below is a minimal example program that compiles under both MacOS/X and Linux. Its purpose is to send a single node-scoped UDP/IPv6 multicast packet over the machine's loopback-device. I believe it is correct, and it does work as expected under MacOS/X, but under Linux it fails with this output: Attempting [...] read more
c
linux
macos
ipv6
multicast
0votes
1answer

MIPS Coding Assembly Language - Interrupts

My code wouldn't work after attempting this. Can somebody show me how it's done? Instructions - Turn off branch and load delays for this program, if you wish. It will make it considerably simpler. Be sure to turn on memory-mapped I/O. Make sure you fully understand what the memory mapped [...] read more
arrays
string
mips
qtspim
0votes
0answers

Sent packages with pcap_inject not received on host

I am building a small network stack based on libpcap for receiving and sending. The goal is to respond to pings (ICMP packets). Thus the stack implements Ethernet, ARP, IP, and ICMP. The stack is running on my computer, from which I also invoke the ping command. When I ping [...] read more
network-programming
ip
ethernet
libpcap
arp
0votes
3answers

Toolbar title not showing in Android

I have this toolbar : <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> <android.support.design.widget.CollapsingToolbarLayout android:id="@+id/collapsingtoolbarly" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|snap"> <android.support.v7.widget.Toolbar android:id="@+id/my_toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" android:elevation="4dp" android:theme="@style/ThemeOverlay.AppCompat.ActionBar" app:layout_collapseMode="pin" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout> I have this in Java : Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar); myToolbar.setTitleTextColor(0xffffffff); myToolbar.setBackgroundColor(0xffff0000); setSupportActionBar(myToolbar); getSupportActionBar().setTitle("My app"); When I run the app, [...] read more
android
android-layout
android-toolbar
0votes
1answer

How to reestablish a Bluetooth connection after I leave an activity in Android Studio?

I am working on a project that can send and receive Strings to and from an Arduino to control and monitor various sensors and lights. I am running into an issue where once I leave the activity that connects to Bluetooth and then return to that same activity after visiting [...] read more
java
android
xml
bluetooth
0votes
1answer

Swift JSON to Flutter JSON

So In Swift I do this: struct Sdata: Codable { var data: [Station] } struct Station: Codable , Identifiable { var id,name,imageurl,listenlive:String private enum CodingKeys : String, CodingKey { case id = "_id", name , imageurl , listenlive } } But I am wondering in flutter how is this structured? [...] read more
json
swift
flutter
0votes
0answers

Mounting filesystem image from physical memory in C

I'm booting linux with my own init executable which is written in C. As a part of my init process, I want to mount a custom filesystem image which was preloaded to the physical memory (let's say at address 0xFFFF0000). The type of the filesystem image can be changed to [...] read more
linux
memory
embedded
filesystems
mount
0votes
1answer

0xFFFF0000 color to rgba(255,255,0,0) conversion

I use Android color picker by duanhong169. Color is given in this format: 0xFFFF0000 and i want to convert it to rgba format in decimal like 255, 255, 0, 0 I try to convert this to String then split it but the conversion output is decimal from all the hex [...] read more
java
android
android-studio
0votes
0answers

Packing and retrieving packed bitfields

I'm interested in what the suggested way is to pack a value and retrieve that packed value again. I think to do this from a memory address -- if I'm understanding correctly -- is trivial, as you can retrieve the value based on the memory offset. Is that correct, or [...] read more
assembly
x86
bit-manipulation
bit-fields
0votes
1answer

How to display icon in ItemTouchHelper?

I am using an ItemTouchHelper for my RecyclerView. I've assigned icons for swiping both left and right. The icon for swiping right is being displayed correctly, but the icon for swiping left is not being displayed. Here's some of my code from the top of the ItemTouchHelper.SimpleCallback class: private RecyclerView.Adapter [...] read more
android
android-recyclerview
0votes
1answer

I need to Implement shader mask in flutter to the image

I am trying to implement the ShaderMask to only the background image in the container below with color Color(0xFFFF0000) and transparency 29% but I am not able to do so, the below code I have implemented it is masking all the elements of the container, but I want only the [...] read more
flutter
dart
image-masking
flutter-image
0votes
0answers

Calculationg time in game msg loop

I'm playing with the original Quake2 game source code for Windows. There is the code which me some doubts an questions. Sys_Milliseconds function implementation (q_shwin.c): /* ================ Sys_Milliseconds ================ */ int curtime; int Sys_Milliseconds (void) { static int base; static qboolean initialized = false; if (!initialized) { // let base [...] read more
c++
visual-studio
visual-c++
0votes
2answers

Kernel panic on linux-omap 4.3.0-rc5 on IGEPv2 board

I'm trying to run the latest linux-omap kernel Linux-4.3.0-rc5-12674-g80923cf8e that I got from the official linux-omap GIT. I compiled it with the multi_v7_defconfig, disabling unneeded boards and adding some debug options like earlyprintk. I am now stuck with a kernel panic and I can't find what the problem is. The [...] read more
linux-kernel
arm
kernel
linux-device-driver
omap
0votes
0answers

android ForegroundColorSpan bug with arabic/persian hareka(اعراب)?

enter image description here [https://i.stack.imgur.com/4aT1f.jpg] Above picture is the way an arabic word with hareka should look but after applying ForegroundColorSpan on the second letter(zamma), like below: TextView textView = findViewById(R.id.simple_tv); String text = "گُرگ"; SpannableString spann = new SpannableString(text); spann.setSpan(new ForegroundColorSpan(0xFFFF0000), 1, 2, 0); textView.setText(spann, TextView.BufferType.SPANNABLE); the result I [...] read more
android
arabic
spannable
farsi
0votes
0answers

after add "drawPath myline" why my apk crashed when i run it

After adding mylines this code compiled with 0 errors. However, when I install then crashed shows it can't open. > If i remove mylines then it works well . What is the problem i can't figure > out? canvas.drawPath(myLines, greenPaint); package com.bennyplo.graphics2d; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; [...] read more
java
android
path
0votes
2answers

How to use my own view in an Android layout?

I have created one view, view code is, public class MyDraw extends View{ //List<Point> mArryLstpoints = new ArrayList<Point>(); Paint paint =new Paint(); Paint mPaintAlphabet = new Paint(); public MyDraw(Context context) { super(context); paint.setColor(Color.BLUE); paint.setAntiAlias(true); // TODO Auto-generated constructor stub } public MyDraw(Context context, AttributeSet attributeSet) { super(context, attributeSet); paint.setColor(Color.BLUE); paint.setAntiAlias(true); [...] read more
android
0votes
1answer

USB: why USB devices the modules automatically loaded

I have am335x related customized board and kernel(4.4.16) source code I configure the FTDI module driver. so after kernel start successfully I attach ftdi converter to usb port and then type lsmod command to check module list Module Size Used by Not tainted cp210x 15164 0 usbserial 34545 1 cp210x [...] read more
linux-kernel
linux-device-driver
beagleboneblack
usbserial
ftdi
0votes
0answers

Frame Lowering in LLVM

So I am trying to implement a Toy Backend using LLVM using the below codes as reference for the different steps I have a rough idea as to what frame lowering is (read emit prologue and emit epilogue) below are the codes for the same from the reference that I [...] read more
assembly
llvm
system
llvm-ir
0votes
1answer

Why when I execute changes in other fields the selected elements of the CheckBox are deleted - Flutter

I have a set of CheckBoxes that work perfectly, but when making changes in another section within the same view they are cleaned and unmarked by themselves, why is this happening ?, I have not found anything on the web about that ... This is how I generate the CheckBox: [...] read more
flutter
dart
0votes
0answers

The JOptionPane dialog window appears when pressing the wrong button on the GUI

I am working on a racing Simulater Software. I have already made the GUI for assigning custom buttons to the keystrokes of the hardware. I made a dialog window appear when one is pressing the button "red1". The first attempt at compiling after restart is normal. The second time and [...] read more
java
processing
joptionpane
control-p5
0votes
1answer

What is the formula to get the number of passes in a shell sort?

I'm referring to the original (Donald Shell's) algorithm. I'm trying to make a subjective sort based on shell sort. I already made all the logic, where it is exactly the same as the shell sort, but instead of the computer calculate what is greater, the user determines subjectively what is [...] read more
sorting
math
dart
shellsort
0votes
1answer

Rotating path outside onDraw Method

I'm trying to create a simple app that draws a simple figure and then after clicking the button does some affine transformation with the figure. Can you help me finishing onClick method rotate? Thank you a lot. The problem is that I don't know how to pass Canvas to that [...] read more
java
android
drawing
0votes
0answers

qemu-system-arm with sabrelite does not recognize mmc without initrd

I extracted zImage and initrd from the OpenSUSE image for sabrelite and use it to start qemu-system-arm generally successful. But i detect that the initrd execute 2 times, even with the parameter "noinitrd". But without the qemu-system-arm paramater "-initrd initrd" the mmc (sdcard) will not be recognized and it is [...] read more
arm
qemu
initrd
0votes
1answer

DE1-SoC displaying LEDs

I am trying to use the DE1-SoC board to run this program. It is supposed to allow the user to input a character, and return that letter in binary on red LEDs on the board. It uses two functions that take in user input and displays the execution to the [...] read more
c
pointers
embedded
intel
fpga
0votes
1answer

Why does the loop direction of my filter change my result?

I have designed a simple dual channel filter to remove some noise at a given frequency. #include "../include/Filter.h" void Filter(int DataIn, int* DataOut, bool Enable) { static coef_t Coefficients[] = { 0.0076925293, -0.039817952, 0.018740745, 0.013075141, -0.052312399, 0.052374545, 0.017044802, -0.14227364, 0.26541378, 0.68194015, 0.26541378, -0.14227364, 0.017044802, 0.052374545, -0.052312399, 0.013075141, 0.018740745, -0.039817952, 0.0076925293 [...] read more
c++
vivado
vivado-hls
0votes
1answer

Code hangs randomly after 1hr/1day/30 days

I am using Altera Cyclone V FPGA with ARM 7 core, I am running a application with 7 thread with mutexes. The application randomly hangs after 1hr or 1 Day or 1 Month, no defined time. I ran strace when the application is running smoothly and it gives: --------------------------------------------------------------------------------------------------------- -------------------- [...] read more
stack
mutex
deadlock
corrupt
futex
0votes
0answers

Alert Geofence once when map is opened

My geofence is trigering actions once when i open map. Basically i want it to show a toast and make a button visible once i enter a circle and show a toast and make a button invisible once i leave the circle. I can't find a solution so maybe you [...] read more
java
android
google-maps
geofencing
0votes
0answers

Boot of embedded Linux is stuck. How to debug?

In embedded platform built by petalinux, during boot(from u-boot), the last print I see is(sometimes) mmcblk0boot1 print. What are the good ways to debug/trace/fix the problem? As you can see at the end of the log is the start of another boot The attached log ======================================================================= > U-Boot 2015.07 (Jul [...] read more
embedded-linux
u-boot
petalinux
0votes
1answer

React Native bundle loading slowly or not at all

The problem seems to be network-specific, the console log points to two possible errors causing the slowdown: > nw_resolver_create_dns_service_locked [C150094] > DNSServiceCreateDelegateConnection failed: NoMemory(-65539) or > nw_socket_handle_socket_event Socket SO_ERROR [61: Connection refused] I tried two network configurations: 1. The development Mac and the iPhone on the same subnet (WiFi) of [...] read more
ios
react-native
sockets
dns
node-webkit
0votes
0answers

RX Fifo1 for CAN is not generating an interrupt callback (basically it is not receiving the data)

There are two types of messages on the CAN bus. Those are broadcast message and default message. Currently, I'm using fifo0 for both the message(which works perfectly fine). But I would like to use fifo1 specially for broadcast message. Below is my initializing code uint8 BspCan_RxFilterConfig(uint32 filterId, uint32 filterMask, uint8 [...] read more
embedded
stm32
fifo
can-bus
iar
0votes
0answers

Striped down kernel take long time to load on Raspberry Pi 4

I'm just trying to customize the kernel configuration for Raspberry Pi 4B, to achieve a compact system image and quick startup, but as we can see in the logs there's approximate ~4.0s to start executing my 4.2MB kernel. * Logs: 23:20:06.198 -> 23:20:06.198 -> PM_RSTS: 0x00001000 23:20:06.198 -> RPi: BOOTLOADER [...] read more
linux-kernel
buildroot
raspberry-pi4
0votes
0answers

Rust: Implemented Display on Formatter for BufferMemory but for some reason won't take

currently I'm trying to debug a problem but in order to do that I'm trying to print out some information so I figured I would go and implement Display for my BufferMemory. I keep getting std::option::Option<&memory::BufferMemory>` doesn't implement `std::fmt::Display std::option::Option<&memory::BufferMemory>` cannot be formatted with the default formatter even though I'm [...] read more
rust
0votes
1answer

How can I change color of specific layout component?

How can I change color of star components in this layout? Can it be done it below code or do I have to work in xml? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(R.style.Custom); ViewGroup layout = getLayout(getIntent().getStringExtra("key1")); if (layout == null) return; layout.addView(new ProgressBar(this)); layout.addView(new RadioButton(this)); layout.addView(new RatingBar(this)); layout.addView(new [...] read more
android
-1votes
1answer

How can I access my own IP under StrongSwan? [MacOS]

I've set up SoftEther VPN on a brand-new Ubuntu 16.04 server and connected macOS, Windows and iOS client to it. I've created Ruby on Rails webserver on my macbook and binded it to my VPN address. Other clients can access it but not my macbook - I can't even ping [...] read more
vpn
mac-osx
ip
l2tp
softether
-1votes
1answer

Flutter JSON sub array map

So I would like to map the following JSON. {"data":[{"track":{"artist":"Other Ego","title":"Titanium (2Complex Remix)","imageurl":"https://storage.googleapis.com/ad-system/AdStichr-Logo.png","url":"https://www.adstichr.com/","type":"S"}}]} However I only need to be able to read {"artist":"Other Ego","title":"Titanium (2Complex Remix)","imageurl":"https://storage.googleapis.com/ad-system/AdStichr-Logo.png","url":"https://www.adstichr.com/","type":"S"}} Normally I would do this. factory Photo.fromJson(Map<String, dynamic> json) => Photo( data: List<Datum>.from(json["data"].map((x) => Datum.fromJson(x))), ); However I need to do this instead include [...] read more
android
flutter
-6votes
2answers

How Fibonacci Series are generated using 1 Variable?

What I am not understanding: How the code is able to generate all the Fibonacci series using just one variable? #include <stdio.h> #include <stdlib.h> int main (void) { unsigned long i = 1; printf ("0\n"); while (((i & 0xffff0000) >> 16) + (i & 0xffff) <= 0xffff) { printf ("%d\n", [...] read more
c
algorithm
fibonacci

Comments

Leave a comment

(plain text only)

Sources

  1. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0