All Questions
7,197,121
questions with no upvoted or accepted answers
69
votes
0
answers
9k
views
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY) android os 7.1 nougat
I am getting the following error while running my app on Android OS 7.1 Nougat.
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)[ 04-21
10:19:18.788 4410: 4622 D/ ]
...
63
votes
4
answers
3k
views
How to generate video file from QImage sequence using QMediaRecorder in Qt5 C++
Basically what I want is to encode a video using QMediaRecorder by supplying as a source a sequence of QImages that I generate in custom code at run-time.
So far I have found no easy way to do this, ...
61
votes
0
answers
1k
views
android ndk gdb loaded sharedlibraries missing *.oat
Both gdb 7.7 and gbd 7.11 missed some shared libraries when debugging my device (oppo r7s). I've pulled all libraries to local.
Here is a complete list of libraries shown by info shared
(gdb) info ...
60
votes
0
answers
3k
views
Play Store updates/installs app using a different account than the one the user made IAP through
On this bug report on Github https://github.com/googlesamples/android-play-billing/issues/2#issuecomment-305380836 we were asked to raise the issue here.
The issue is simple. The user has 2 or more ...
60
votes
0
answers
973
views
How can I dispatch on traits relating two types, where the second type that co-satisfies the trait is uniquely determined by the first?
Say I have a Julia trait that relates to two types: one type is a sort of "base" type that may satisfy a sort of partial trait, the other is an associated type that is uniquely determined by the base ...
58
votes
0
answers
3k
views
Why does tmap render 80 times faster than ggplot2? [Plotting shapefiles in R with ggplot2::geom_sf(), using XQuartz/X11 graphics device on macOS]
Update/Edit/Reprex: Rendering the same spatial data with the same graphics device takes 1 second with tmap versus 80 seconds with ggplot2, even though the tmap plot's R object is 80x larger in size. ...
55
votes
1
answer
2k
views
Highlighting the SEND button in MFMessageComposeViewController
I have generated an MFMessageComposeViewController to send a preconfigured SMS message, and I now want to draw the user's attention to the send button. The user has already initiated the "send ...
53
votes
3
answers
2k
views
How to include zone.js, reflect-metadata etc. in Systemjs builder task?
I'm using system.js and systemjs builder to create a dist folder with all the packed javascript files of my angular2 application.
It works pretty nicely, except that it does not include the following ...
52
votes
1
answer
2k
views
Zend Framework 2 Doctrine 2 one-to-many checkbox hydration
I have a ManyToMany that I broke into OneToMany and ManyToOne relationship. I want to build a form that has checkboxes instead of collection, and I am using the 'DoctrineObject' hydrator, but it does ...
51
votes
0
answers
5k
views
Nightwatch.js - Use the same browser session
We would love to adopt Nightwatch.js for testing on browsers, but we're stuck on one major caveat: at the time of this writing, Nightwatchjs does not support running different tests using the same ...
50
votes
0
answers
771
views
Was the origin positioning 'box' removed from Xcode 6?
I don't see this tool in Xcode 6. Did they take it out? Can I re-enable it? I use it all the time.
49
votes
1
answer
1k
views
registerIdlingResources deprecation replacement doesn't work
I'm trying to replace my Espresso registerIdlingResources and unregisterIdlingResources deprecated method by using IdlingRegistry method according to Android documentation.
Some of my tests worked ...
48
votes
0
answers
587
views
Future of roles for GADT-like type variables?
A question from yesterday had a definition of HList (from the HList package) that uses data families. Basically:
data family HList (l :: [*])
data instance HList '[] = HNil
newtype instance HList (x '...
47
votes
0
answers
2k
views
ReferenceError getValuesOfAutofillInputs, Can't find variable: PaymentAutofillConfig
We are facing the Reference error in our code since 2nd of June 2022 on our sentry logs.
Moreover its only happening on iOS (iphone) devices only..
Please find the link below to see the error:
https://...
47
votes
2
answers
2k
views
Crash in Activity Transitions with SharedElement
I'm using Activity transitions from a ViewPager (in the calling activity) with a shared element and content transitions as well. I'm getting this crash when re-entering to the calling activity:
java....
47
votes
3
answers
2k
views
Joblib UserWarning while trying to cache results
I get the following UserWarning when trying to cache results using joblib:
import numpy
from tempfile import mkdtemp
cachedir = mkdtemp()
from joblib import Memory
memory = Memory(cachedir=cachedir, ...
47
votes
2
answers
808
views
iCloud and Core Data Error (Ubiquity: Didn't get baseline metadata back from metadata url)
I'm having a bit of trouble trying to get iCloud working with my app. I tried following Tim Roadley's example here, but still get the log below appearing whenever the app is launched via Xcode (...
46
votes
1
answer
3k
views
How do I make make/ninja limit parallelism based on memory pressure?
If I use make -j2, it builds fine, but under-utilizes CPU:
If I use make -j4, it builds fast, but for some particular template-heavy files it consumes a lot of memory, slowing down entire system and ...
45
votes
2
answers
701
views
Translate ninject ISecureDataFormat binding to Autofac
I am migrating a large codebase from Ninject to Autofac and am struggling on one of the bindings (that i believe is causing an activation error based on some of my debugging).
Ninject:
Bind<...
45
votes
2
answers
2k
views
Cargo plugin throws CargoException when deploying on Glassfish - Deployment has failed: null
I'm trying to deploy web application using Cargo Maven plugin on remote Glassfish server (Edition 3.1.1 (build 12)). Glassfish server as well as Java code located on different Linux servers (Ubuntu). ...
44
votes
1
answer
5k
views
code signature in (/xxxxx) not valid for use in process using Library Validation
I'm trying to build proxychains with xcode 8. When I run a program I got:
/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/homebrew/...
44
votes
1
answer
1k
views
Bind Poses, Joint Transforms in Collada
I'm trying to export a custom 3D model format to Collada. I've built the Collada data classes through XSD and now problems come when I try to fill them with data, especially for what concerns matrices....
44
votes
3
answers
1k
views
Showing status for the last list item in a ListView using ViewHolder
int globalPosition ;
..............
buttonAllData.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
...
44
votes
1
answer
920
views
Small file upload to s3 hangs with 100% CPU usage using Paperclip
I have a directory of <20MB pdf files (each pdf represents an ad) on an AWS EC2 large instance. I'm trying to upload each pdf file to S3 using ruby and DM-Paperclip.
Most files upload ...
44
votes
2
answers
718
views
Is there a polyfill for getIntersectionList, getEnclosureList, checkIntersection, checkEnclosure for Firefox SVG?
SVG 1.1 Support in Firefox:
SVGSVGElement:
Unimplemented bindings: getIntersectionList, getEnclosureList, checkIntersection, checkEnclosure, deselectAll
SVG 1.1 spec: 5.11.2 Interface SVGSVGElement
...
43
votes
3
answers
2k
views
create variable in Kepserver with node-opcua
I have a Siemens 1200 PLC. Using node-opcua client and Kepserver I am able to read the variables and to change the values.
Now I would like to create a new variable in the PLC from node-opcua in ...
41
votes
2
answers
2k
views
InterruptedException when debugging Android app
When debugging in Android Studio, in certain scenarios the app crashes with following exception:
08-27 18:01:25.144 19241-24656/? E/AndroidRuntime﹕ FATAL EXCEPTION: pool-7-thread-1
Process: com....
41
votes
1
answer
3k
views
JobScheduler: controlling delay from constraints being met to job being run
I'm using JobScheduler to schedule jobs. Mainly I'm using it for the .setRequiredNetworkType() method, which allows you to specify that you only want the job to be scheduled when a network connection ...
41
votes
7
answers
7k
views
Horizontal RecyclerView with items that have dynamic height
So I need a horizontal RecyclerView. However, the items in them have dynamic heights based on what's returned from the backend.
The RecyclerView and its items have the height of "wrap_content&...
40
votes
1
answer
2k
views
How to modify the first pageNumber or execute JS in header or footer template with Chrome DevTools Protocol's printToPDF
I'm using Headless Chrome to print out PDF files by using the printToPDF CDP method. If we set displayHeaderFooter parameter to true, then we can set specific page header and footer by using the ...
40
votes
1
answer
1k
views
Using torch.nn.DataParallel with a custom CUDA extension
To my understanding, the built-in PyTorch operations all automatically handle batches through implicit vectorization, allowing parallelism across multiple GPUs.
However, when writing a custom ...
40
votes
1
answer
2k
views
DefaultRenderer error in xamarin.forms (Android)
I am using xamarin forms... And sometimes when I try to go back to my previous page I see this (Android device):
System.NotSupportedException: Unable to activate instance of type Xamarin.Forms....
39
votes
3
answers
3k
views
Oracle SYS_CONNECT_BY_PATH equivalent query into SQL Server
I'm trying to convert a complex query involving the Oracle SYS_CONNECT_BY_PATH syntax into SQL Server:
SELECT
DISTINCT TO_CHAR(CONCAT(@ROOT, SYS_CONNECT_BY_PATH(CONCAT('C_',X), '.'))) ...
39
votes
0
answers
738
views
Qt5 VideoOverview example won't work
I am stucked for a month with video example given in Qt Video Overview.
I tried that code, but only I get is blank square (QWidget). I am using GStreamer0.10 for media playback over Qt5. I also ...
39
votes
0
answers
2k
views
Galera 10 cluster node dropping queries
We are encountering an error on Node 1 of a 5-node cluster. Queries to Node 1 seem to succeed from a client perspective but are failing to insert. We are seeing a lot of autoinc errors even though ...
39
votes
0
answers
999
views
How to find and fix a Rails and Couchbase memory leak
I have the following test code:
def loop_bucket_gets
bucket = Couchbase::Bucket.new({:node_list => ['xxx.xxx.xxx.xxx:8091', 'yyy.yyy.yyy.yyy:8091'],
:bucket ...
38
votes
0
answers
2k
views
Android emulator authorization dialog appear "always allow from this computer" everytime
When I want to use the android emulator for the first time it needs authorization for USB debugging. But when I turn on the emulator the authorization dialog last for about 300ms and then disappears, ...
38
votes
1
answer
2k
views
Intermittent 401 Unauthorized from Google GCM
We are getting intermittent 401 Unauthorized errors from Google's GCM service. In the past it worked 100% of the time. The problem might coincide with our routers accepting IPv6 traffic, but the ...
38
votes
2
answers
1k
views
How to callback NSStreamDelegate with NSStreamEventOpenCompleted?
I have been working on a NSStreamDelegate, I have implemented call back, I have initialized the input and output stream ilke this...
CFReadStreamRef readStream;
CFWriteStreamRef writeStream;
...
38
votes
2
answers
5k
views
Why has `android:screenOrientation="behind"` no effect in android 4.1.2?
As a test sample, there is an application with 2 activities: MainActivity that launches SecondActivity on button click.
It works fine on Android 4.0.4, but on Android 4.1.2 I encountered unexpected ...
37
votes
0
answers
2k
views
SwiftUI warning: `Attempting -[UIContextMenuInteraction dismissMenu], when not in an active state`
Using Xcode 12 beta (12A6159) on macOS Catalina 10.15.5 (19F101) when I press "Back" button in NavigationView, navigating back from a pushed View, I see this warning in the console.
[...
37
votes
0
answers
736
views
Game Command format between bluetooth controller and console
I am creating an Android project, in which I have to make android wearable smart watch as game controller which can send commands to games running on handheld device connected to that smartwatch over ...
37
votes
1
answer
452
views
Xcode 6 how to disable "Lost connection to iPhone" message when unplugging a device?
Upon upgrading to Xcode 6 every time I unplug a device that is running an app deployed and started from Xcode, I get the application-wide popup box saying "Lost connection to [device name]".
...
37
votes
1
answer
803
views
How do closures infer their type based on the trait they're required to implement?
I'm writing a function that accepts different trait implementors. One of them is a closure. Some closures need an argument type annotation and some don't, depending on their bodies.
Example (...
37
votes
3
answers
7k
views
How to debug Angular universal?
I am using Angular Universal Starter repo. In angular 4 universal for ssr we could debug browser and node part of application in dev mode(see console), but now I do not see way to debug node part. I ...
36
votes
0
answers
3k
views
Marching Cubes generating holes in mesh
I'm working on a Marching Cubes implementation in Unity. My code is based on Paul Bourke's code actually with a lot of modifications, but anyway i'm checking if a block at a position is null if it is ...
36
votes
1
answer
3k
views
AndroidKeyStore KeyPairGenerator Crashes On Small Number of Devices
My application only targets Android 6.0+. In my application I generate a RSA key in the AndroidKeyStore with the following:
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", "AndroidKeyStore"...
36
votes
0
answers
2k
views
Graphviz, dot, ortho plots do not respect ports
I am using graphviz and would like to render my graphs with splines = ortho.
The problem is that the edges don't respect ports, so it is not possible to analyse the graph.
digraph G{
splines= ortho;
...
36
votes
0
answers
871
views
Materialize the Value for a Type that has One Inhabitant
Thanks to @MilesSabin's answer I can write a type level Fibonacci sequence:
sealed trait Digit
case object Zero extends Digit
case object One extends Digit
sealed trait Dense { type N <: Dense }
...
36
votes
0
answers
2k
views
Using PacketFilter to transparently proxy packets in OS X
There is a cool utility out there called sshuttle. It has depended on ipfw to forward packets in the past. It appears that ipfw is mostly broken in Mavericks and the advice is to use PacketFilter for ...