All Questions

Filter by
Sorted by
Tagged with
9
votes
4answers
303 views
+150

Is it possible to force a website input to be in English?

I'm creating a website (Speedy Net) in 2 languages - English and Hebrew. I have an input field (the slug/username) which must be in English (alphanumeric Latin characters). When I enter the website ...
6
votes
1answer
95 views
+50

Laravel Autoprefixer not working within webpack

My style.css don't have css-prefix, when I run command npm run production. I'm using: Laravel: 5.6.39 & Laravel-mix: 4.1.2 File webpack.mix.js: mix.sass('resources/assets/sass/style.scss', '...
5
votes
0answers
72 views
+50

ApolloGraphQL: Non web socket subscriptions?

We have an app that implements essentially this guide exactly: https://www.apollographql.com/docs/apollo-server/features/subscriptions/ It's been great. We've had great success and the app has been ...
8
votes
0answers
62 views
+50

How to use the offline version of NU Validator to check HTML 4.0.1 Strict files

This online version of NU Validator allows users to specify different presets, e.g. HTML 4.0.1 Strict or XHTML. However, the offline version doesn't seem to allow users to specify presets. Where can ...
4
votes
0answers
155 views
+50

How to use ParameterExpressions for inner queries with criteria?

I was trying to help another user with a question related on how to transform SQL in criteria, when I stumbled across this problem: How to convert SQL Query using CriteriaQuery For some reason the ...
4
votes
3answers
152 views
+50

Build the widget off screen

I need to build a widget just to get its bitmap. I don't care about widget being on the screen. So my question is: can I somehow build the widget "on the side" without using the screen view hierarchy?...
5
votes
1answer
87 views
+500

Using OpenIdConnect with AzureFunctions

I'm using azure functions to host an API for a react app, however I'm also using the same azure function to host the html/js/css for the app (via proxy functions to static files on blob storage). I ...
2
votes
0answers
29 views
+50

Using a Pagerfanta/ non ArrayAccess list in a bulk form

I'm adding checkboxes for bulk actions to a CRUD list, using the solution provided here. However, my results are paged with Pagerfanta, so it seems I need to use a DataMapper in my form. I have ...
6
votes
1answer
110 views
+50

Why ContentProvider returns empty cursors after App update?

I have recently rolled out an update for my app and I am getting feedback from some users that their data is lost. After some analysis, I have determined that a single content provider which I use ...
2
votes
3answers
212 views
+200

PageSetup.PrintArea doesn't work as intended

I am trying to print out section, that is marked as Printarea. This code however sometimes runs good and sometimes it doesn't. There is really no rule with it. The question is, how can I make it 100% ...
1
vote
0answers
50 views
+100

monkeypatching proxies with an async request library

I've been using the trio/curio asynchronous libraries for a while now as a easier/more human replacement to the more complex asyncio python library. Trio is really a great library, but that misses one ...
4
votes
0answers
61 views
+250

Why is Heroku-accounts plug-in no longer working, and I'm no longer able switch between mulitple accounts in the CLI?

For years I've used the heroku-accounts plug-in to easily switch between different Heroku accounts when using the Heroku CLI toolbelt. As of about a month ago, however, it has stopped working. ...
9
votes
1answer
202 views
+200

React PWA Image Upload in Mobile Safari breaks application?

We were surprised we didn't find any mention of this anywhere online, so we're posting here in hopes we find a solution. Using an iPhone with mobile safari is when we hit this issue running the 2 ...
3
votes
4answers
186 views
+100

Real world example of Memory Consistency Errors in multi-threading?

In the tutorial of java multi-threading, it gives an exmaple of Memory Consistency Errors. But I can not reproduce it. Is there any other method to simulate Memory Consistency Errors? The example ...
2
votes
2answers
69 views
+50

Flutter Integrate Paypal Buttons with WebView

I am having a weird issue with my PayPal integration into webview_flutter. This seems to be something with WebView, as when I open this in iOS Safari or Chrome then it works fine. My issue is that at ...
7
votes
3answers
136 views
+50

Set opacity of grey values of overlapping areas relative to n

I struggle to understand (and control) the blending of alphas - unfortunately, alpha values don't simply "add up" (0.5 + 0.5 is not 1). But how could I achieve that? The aim is to define the (...
17
votes
1answer
16k views
+50

What is an off-by-one error and how do I fix it?

What is an off-by-one error? If I have one, how do I fix it?
0
votes
0answers
57 views
+50

Mongoose and array of ref UUID's does not convert

When using the library mongoose-uuid, I am able to setup UUID types for my schemas, so when I read the data it is in string (utf-8) format and when I save the data it is in UUID ObjectID BSON type 4 ...
3
votes
2answers
114 views
+100

Django - how do I override default date formats per locale?

We are using Django 1.11 for Speedy Net. I want to override the default values of DATE_FORMAT and MONTH_DAY_FORMAT in English, but keep the default values (or define them again) in Hebrew. So they ...
1
vote
2answers
102 views
+50

JQuery UI Tabs inside Dialog - Load Tab content based on Dialog title?

I am cloning a JQuery UI Dialog with nested tabs. <div class="dialog"> <div id='tabs'> <ul> <li><a href="#presentations">...
4
votes
2answers
122 views
+200

Why do I get java.net.SocketTimeoutException with OkHttp?

Here's my configuration: httpClient = new OkHttpClient.Builder() .callTimeout(Duration.ofSeconds(60)) .connectTimeout(Duration.ofSeconds(60)) .readTimeout(Duration.ofSeconds(...
0
votes
0answers
58 views
+50

Evernote Android SDK library throws java.lang.VerifyError under R8

Facing notorious java.lang.VerifyError. Initially problem showed up in Fabric. Was able to reproduce (with identical stacktrace) once set minifyEnabled true for debug build. Caused by java.lang....
0
votes
2answers
83 views
+100

HTML Canvas and animations

I know how to draw a line with lineTo(): var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); ctx.beginPath(); ctx.moveTo(0, 0); ctx.lineTo(300, 150); ctx.stroke(); Is there a ...
-1
votes
0answers
169 views
+50

Error using EntityFramework Core with SQLite in Xamarin.iOS

I've got a problem using EntityFrameworkCore with SQLite on a physical device. It works without any issue on the iPhone xR simulator, but not on the iPhone 6 simulator, or on a physical device. But it ...
7
votes
2answers
152 views
+50

Android: 2 aar libraries with the same package

I have two android aar library projects: LibA using ClassA, and LibB using ClassB. Both libs have the same base package. both libs use the same class named BaseClass, currently resides separately ...
1
vote
1answer
66 views
+50

Camera intent without external storage permission with photo publicly available

all I want is: intent for taking picture by camera app; taken photo will be available to user publicly - outside my app, even after app uninstall, ideally in the same dir & name as photos taken ...
0
votes
0answers
110 views
+50

Error while inflating button on a existing view NullPointerException in AnimatorSet.clone

I have an issue creating a Button . The button is supposed to be inserted in a pre-existing layout. i'm trying to show a button on a video screen. I'm running into following exception . This is only ...
0
votes
2answers
109 views
+50

ML.Net Data.SaveAsText CSV file cannot be loaded by Model Builder

I export my current ML.Net Data to a CSV with this function using (var stream = File.Create("c:\\temp\\aidata.csv")) mlContext.Data.SaveAsText(trainData, stream); The saved ...
0
votes
2answers
146 views
+50

java get output of batch file command by command

I need to execute .bat files in my java application. Suppose I have a text file with this sample content: { "id": 12, "name": "test" } And in my .bat file, I have a command for outputing ...
2
votes
1answer
47 views
+50

Update Spring Security oAuth2 jwt.key-value dynamically at runtime

I have zuul proxy which uses the property to validate tokens as a resource server security.oauth2.resource.jwt.key-value I have public key as part of the key value, however my application is ...
3
votes
2answers
139 views
+50

IntelliJ IDEA can't open projects or add SDK on macOS Catalina

If I open IntelliJ IDEA and try and import any project or open any folder containing a project, nothing happens, I'm just returned to this screen. Earlier on, before I moved my project files around, ...
0
votes
0answers
24 views
+50

ApiPlatform: grouping

I am looking for some way to properly group multiple entities in API Platform. For example. I've got 2 entities right now: use ApiPlatform\Core\Annotation\ApiResource; /** * @ApiResource( * ...
2
votes
3answers
124 views
+200

Hive: java.lang.OutOfMemoryError: Java heap space and Job running in-process (local Hadoop)

My setup: 4 node cluster in Google Cloud Platform (1 master, 3 workers) running NixOS Linux. I have been using the TPC-DS toolkit to generate both data and queries are standard. On smaller dataset / ...
-1
votes
1answer
45 views
+50

how to transliterate English to Gujarati like google keyboard android

Just want to transliterate English word to Gujarati word like a lot of keyboard apps already doing it. For example: When you type "Hello", it gets automatically transliterated to Gujarati word "હેલો" ...
1
vote
6answers
129 views
+50

Unable to fit an image inside div container

I am trying to showcase the image inside the div container, but unable to insert an image inside the div tag. * { margin:0; padding:0; background:#fff; box-sizing:border-box; } ...
3
votes
1answer
94 views
+50

Why is the error Type mismatch displayed after I update my Android Studio?

The Code A works well in my Old version, now I update my Android Studio to 3.4.2, and buildToolsVersion "29.0.1", and I use the latest androidx. But I get the error Type mismatch, you can see Image 1,...
3
votes
1answer
179 views
+50

Speeding up data insertion from pandas dataframe to mysql

I need to insert a 60000x24 dataframe into a mysql database (MariaDB) using sqlalchemy and python. The database runs locally and the data insertion runs locally as well. For now I have been using the ...
3
votes
2answers
148 views
+200

ASP.NET Core (HttpSys) Routing works locally but not when deployed

For some reason when I'm running my ASP.NET Core API using HttpSys on a windows server (through service fabric) the routing doesn't work whereas locally everything works. The thing is that the ...
1
vote
2answers
473 views
+50

Autocomplete command line arguments from a list in a file

Assume I have a program called script.py and it allows for the command line option -i which requires an additional keyword argument, such that I call python script.py -i foo Now assume in my working ...
2
votes
1answer
39 views
+50

jupyter kernelspec no such file or directory /lib/libstdc++.so.6.0.21

I'm trying to flesh out the workflow for a JupyterHub server in the case where a user creates an environment and wants to share it with another user. I want to test out one of the two methods. I am ...
1
vote
1answer
57 views
+50

TPOT [email protected] custom scorer

I'm using (and loving) TPOT, but am having trouble implementing a custom [email protected] scorer. Assuming I'd like to have as many true positives as possible out of 100 predictions (or any number K), how would ...
15
votes
0answers
412 views
+50

How to create a CocoaPod with nested git submodules?

I'm trying to create a CocoaPod with nested git submodules. I can create the pod, however, I can't fully install it. When I run pod install --verbose I can see that git submodule update --init is ...
0
votes
3answers
116 views
+50

Android Talkback incorrect announcement on TextInputLayout

I have the following piece of code in my layout <com.google.android.material.textfield.TextInputLayout android:id="@+id/tilPassword" style="@style/Widget.MaterialComponents....
1
vote
0answers
109 views
+50

SQS Message visibility timeout being set to 0 when exception is thrown and @JMSListener

I have a simple Spring Boot service that listens to an AWS SQS queue using JMSTemplate. Everything works as expected when the message is properly handled. I am using CLIENT_ACKNOWLEDGE so when an ...
1
vote
1answer
75 views
+50

dispatchKeyEvent does not trigger in Unity - Native Android plugin

I want to trigger onKeyUp or dispatchKeyEvent in Android, and send a message to Unity3D of the keyPress I made a Java native Plugin with: public class VolumeKeyClass extends Activity { @...
1
vote
0answers
16 views
+50

Geocoding API integration with containers and IP whitelisting

I am making requests to the Google Geocoding API within my node project. In production the project is running on Containers (AWS Elastic Container Service) which means the IP address for the service ...
0
votes
1answer
58 views
+50

How to mock events with sinon?

Here is my simple program where I'm trying to get user's data via ldapClient. I need to test it without internet connection so wondering how to mock that result.on events to return appropriate data. ...
1
vote
2answers
45 views
+50

Firebase A/B test regex for iOS app version not working

I am trying to limit my A/B test to the versions of my iOS app starting from 11.3.10. The reason is that older versions would behave identically for all variants as they contain no knowledge of ...
0
votes
0answers
134 views
+50

How to avoid Google OAuth consent screen on Android

I noticed that a lot of apps that I use (Pokemon GO, CityMapper, Booking.com and many others) Don't display consent screen when using google sign-in, however our app always displays it to all users. ...
13
votes
2answers
334 views
+200

Section breaks for very long CSS columns

Using CSS columns I can format contiguous data into columns without having to manually break it into sections. This is especially useful when displaying complex, dynamic content. However when the ...

15 30 50 per page