title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How can I fetch an SSL page using Diffie-Hellman with a 480-bit key length? | <p>I'm trying to fetch page that is using DH with a 480-bit key length but I cannot do so using the Apache HTTP Client. I can successfully fetch the page if I use Async HTTP Client with the JDK Provider. </p>
<p>I know that the JDK has limitations around the max size but this issue seems to be the other way around. Th... | 3 | 3,258 |
Passing variable value from inline php to jquery function | <p>I have html file that load <a href="http://www.jqueryscript.net/demo/Simple-Chart-Plugin-with-jQuery-Gantt-Chart/" rel="nofollow">jQuery.Gantt</a>. Inside html i put nested php that grabs necessary data from database to populate grid. The data are formate to json according to spec. </p>
<p>My question is how to pas... | 3 | 2,447 |
JasperReports Server Null pointer exception after CAS integration | <p>I have followed the guide on <a href="http://community.jaspersoft.com/wiki/integrating-cas-jasperreports-server#Modify_the_cas.properties_file" rel="nofollow">this wiki</a> to integrate <em>JasperReports Server 4.7.1 Pro</em> with <em>CAS</em> authentication.</p>
<p>The authentication is done successfully and I am ... | 3 | 3,787 |
Nullpointer exception when trying to add path to sdcard | <p>I published an app where I need to copy a few hunderd kb size ogg file onto the sdcard of the user. Soon I got an error report. As far as I am concerned the problem might be because the path is not suitable on that specific phone:</p>
<pre><code>String path = "/sdcard/file.ogg";
File file = new File(E... | 3 | 1,450 |
Cuda + OpenGL interoperability , glDrawArrays() Access violation | <p>first I'd like to apologize for the amount of code I'm providing below, I'm not sure but I could be infringing the posting rules with that.</p>
<p>I'm trying to modify nvidia's cuda sample fluidsGL (example can be seen here <a href="https://www.youtube.com/watch?v=jU9wgSu4_zw" rel="nofollow">https://www.youtube.com... | 3 | 5,119 |
Bundlejs error on release build in Xcode (react-native) | <p>For some reason I am getting the following error when building a release version of my application via react-native.</p>
<blockquote>
<p>*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: t.typeof is not a function. (In 't.typeof("function"==typeof Symbol?Symbol.itera... | 3 | 1,087 |
GeoServer 2.5 returns GetFeatureInfo featureMember geometry as lat long rather than projected | <p>We are using GeoServer 2.1 to display data that is stored in Oracle sdo_geometry. The data is stored in Irish Transverse Mercator (EPSG:2157) and we want display it on a map in that projection.<br>
With release 2.1.0 we are making the following GetFeatureInfo request when a user clicks on the map:</p>
<pre><code>h... | 3 | 4,095 |
Insert userform data into next column on respective rows | <p>I want to add the values from a form to an Excel sheet.</p>
<p>I have the "headers" in column A from A1 down to A20 with A21 a "score" field that runs from B21 to CZ21 that automatically calculates a score based on the values entered above in each respective column.</p>
<p>A1 through 20 has the h... | 3 | 1,340 |
Xamarin.Android Camera Permissions with ZXing.Net.Mobile only works after app restart | <p>I am using ZXing.Net.Mobile in a Xamarin.Forms project. It works fine on iOS, but on Android, the first time I use the scanner, I get the camera permissions popup, and grant them.</p>
<p>There is no image from the camera immediately after the permissions. If I quit the app and re-launch, the camera works fine from t... | 3 | 4,097 |
How to give rows and column header to a list output from loop in Python? | <p>I have a small loop which gives me list of data for n number of segments. Below is the code:</p>
<pre><code>for df_grp in df.groupby(['Segment']):
grp_ci = 1.96 * np.std(grp['Conversion_Percentage'])/math.sqrt(len(grp['Conversion_Percentage']))
grp_cvr = grp['Conversion_Percentage'].iloc[-1]
grp_ci95plus = grp... | 3 | 1,417 |
collapse into single row without concatenation | <p>I have DF as follows:</p>
<pre><code> df <- structure(list(RID = c(1L, 1L, 2L, 2L, 3L, 3L),
Sex = c("FEMALE", "FEMALE", "MALE", "MALE", "FEMALE", "FEMALE"),
Race = c("White","White", ... | 3 | 1,134 |
IdentityServer 4 : connect/authorize/callback address not found behind Nginx reverse proxy | <p>hi i am new in identityserver 4 and trying to deploy my test project on the server.
i have client ids and api project which are dockerized. after playing around with identity server 4 and nginx reverse proxy configuration finally every thing work properly except the redirect callback after login.</p>
<h4>STORY : </h... | 3 | 1,386 |
Updating lifecycle configuration with filters for S3 bucket fails | <p>I am using Java SDK to manage my S3 buckets. At this point in time, I want to introduce a new use case for this bucket i.e. I want to store similar objects but with a different retention period. I learnt that I can set lifecycle policies by prefix. I want to use this convenience provided by S3 to have a different li... | 3 | 2,236 |
odd results inside of a switch statement | <p>Thanks in advance to those who will have taken time to look at my issue. I fetch results from a table that describe activities of a contractor. There are a large number of True/False fields and I seek only to display those that are true. I create a field_name => field_type array and parse my display accordingly.... | 3 | 1,711 |
How to update the target cell of a CurrentRow in DataGridView in C#? | <p>In my Windows Form Application, the <code>DataGridView</code> is updated from the <code>TextChanged_Event</code> of a textbox (bar code reading functionality). Every new row has values like <strong>Product Name, Quantity, Unit Price</strong>, and <strong>Total Amount</strong>. The <strong>Product Name</strong> and <... | 3 | 1,652 |
SVG with RTL support for arabic language | <p>I have created a SVG inside a container. As I have tried for setting the position of the SVG itself and the container direction to RTL, there is no effect on the position on the nodes. I have the circle and text inside a <code>g</code> tag which itself is wrapped inside a SVG tag.</p>
<p><div class="snippet" data-l... | 3 | 1,930 |
CSS fixed layout causes horizontal scrollbar to show up on low resolution screens | <p>I have got my website under develp <a href="http://hrcprojectconsulting.com/" rel="nofollow">http://hrcprojectconsulting.com/</a> which looks fine when seen on screens with my resolution and size, otherwise, the horizontal scroller pops up and makes browsing annoying.</p>
<p>So I don't know exactly what I have to d... | 3 | 1,332 |
Simple page fade in | <p>I have used a small section of code I have found on here before to fade in an entire page. The code I used was,</p>
<p>SCRIPT</p>
<pre><code><!-- ꜜꜜ page load ꜜꜜ -->
<script>
$(document).ready(function() {
$('#p-load').fadeIn();
});
</script>
</code></pre>
<p>CSS</p>
<pre><co... | 3 | 1,175 |
is there a set of interfaces you can implement to avoid having a Converter in WPF binding | <p>I have 2 classes, DateTime (the framework class) and FriendlyDateTime (somethign that implements I notify property changed.</p>
<p>the class</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ToolSuite.Contract.BaseClasses;
namespace foo.WizardElements
{
... | 3 | 2,072 |
React Component not rendering to HTML | <p>The HTML doesn't seem to be loading the snippetInfo.js for a reason I can't figure out. I've surfed the web quite a bit but the solutions don't work. If I add <code>type='text/javascript'</code> to the script tag, I get the error <code>Uncaught SyntaxError: Unexpected token '<'</code> I believe it's got something... | 3 | 1,904 |
ggplot2 Facet wrapping a filtered variable while keeping background geoms | <p>I'm trying to create a set of small multiple line charts, where in each chart all lines are visible as light grey/background but in each individual chart one line is one highlighted.</p>
<p>As an example I want to go from this chart: <a href="https://i.stack.imgur.com/D9ESC.png" rel="nofollow noreferrer">facet_wrap ... | 3 | 1,052 |
Filebeat POD getting killed due to OOM issue | <p>We are running workloads in Kubernetes cluster, and to ship application logs out of the cluster we are using Filebeat as daemon set, which runs on dedicated namespace.</p>
<p>Filebeat sends the data to a Logstash cluster running behind a Load balancer.</p>
<p>We are seeing that some of the Filebeat pods are getting ... | 3 | 3,833 |
How to decode json string into half array/ half object? | <p>I have the following json string</p>
<pre><code>$str = '{"icwsCallQueue":{"1002598152":{"AccoRDI_account_id":"","AccoRDI_mid":"","Eic_CallDirection":"O","Eic_CallIdKey":"100259815260150624","Eic_CallState":"Disconnected","Eic_ConferenceId":"","Eic_ConferenceMembers":"","Eic_ImmediateAccess":"1","Eic_LocalName":"Ful... | 3 | 3,202 |
Error while passing data from a child to parent component in reactjs | <p>As soon as ObjectRow's onchange1 and onchange2 are triggered, it gives a runtime error of sendColor is not a function(same for sendName) . As my form submit button is present in the parent component of ObjectRow, I am trying to get the data of ObjectRow's input in my parent component so as to proceed further. Is it ... | 3 | 1,526 |
Why Spring Boot application does not work with relative quality factor of HTTP? | <p>Lets suppose I have a Spring Boot application:</p>
<pre><code>dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux:2.4.0")
}
</code></pre>
<p>with a simple RestController:</p>
<pre><code>@RestController
class TestController {
@PostMapping("/test")
suspend fun ... | 3 | 1,544 |
How to implement Multiple Notifiers with ASP.NET Boilerplate? | <p>I'm using ASP.NET Boilerplate (with .NET Core).
I'm trying to implement notification system as mentioned in <a href="https://aspnetboilerplate.com/Pages/Documents/Notification-System#real-time-notifications" rel="nofollow noreferrer">official doc</a> under <a href="https://aspnetboilerplate.com/Pages/Documents/Notif... | 3 | 4,562 |
scrollview not applying for the buttons in android | <p>Hi in the below xml layout I am designed a form with scollview .When I am scrolling buttons are not visibling .</p>
<p>I want to display buttons also when I am scrooling a form.Scrollview not applying for the complete form as well as buttons save and cancel.but save and cancel buttons are not displaying.</p>
<p>ca... | 3 | 8,194 |
Probleme on update, save and delete between Backbone and Rails | <p>I'm trying to create an application with backbone, on the client side, and Rails on the server side. It works but I have a problem on create, update and destroy.</p>
<p>I'm doing this :</p>
<pre><code>m = new MyFirstProjectServer.Models.Inquiry({id: 1})
m.fetch() #work fine
m.set({title: 'title', description: 'des... | 3 | 1,411 |
How can I add custom validation to a file upload with OpenAPI 3 in SpringBoot? | <p>I want to add custom validation to a file upload in Spring using OpenAPI3. The file will be an excel file that should be validated that it is of:</p>
<ul>
<li>type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</li>
<li>size: smaller than 20MB</li>
</ul>
<p>This is the endpoint in the api.yaml:</... | 3 | 1,219 |
Django search "DoesNotExist" | <p>I'm using Django to build a website for a football club, which contains many blog articles. I'm trying to include a search bar, but I can't make it work. When submitting the search term, the following error is shown:</p>
<blockquote>
<p>DoesNotExist at /web/search/<br>
Articulo matching query does not exist.</p... | 3 | 1,396 |
How to Release a change that renames an User Role name | <p>We're working on changes to an ASP.NET MVC app.
We're using Owin and OAuth2 to manage User permissions, but are managing the User DB object ourselves.</p>
<p>We have these on App Startup:</p>
<pre><code>app.UseKentorOwinCookieSaver();
app.UseCookieAuthentication(GetCookieAuthenticationOptions(AuthenticationType))
... | 3 | 2,081 |
Recreation of previously created elements on creation of new elements SWT Draw2d | <p>I've written code that allows drag and drop onto a canvas. On 'dropping', a RectangleFigure is drawn on the canvas at that point. The problem is that when I drop onto the canvas for the second time, another copy of the first dropped element is made on the screen. Similarly, the third time, the first two elements are... | 3 | 3,351 |
retrieve the wrong data in the condition | <p>I have a function for date, where the condition is if the user chooses today's date, RM 10.00 will be charged, if user chooses tomorrow's date, the charge is 5.00, else it will 0.00. for each condition, i have to create a session so that it can be passed to other module. However, when user chooses the date and click... | 3 | 1,400 |
Unresponsive Google Chrome while running HTML5 Web workers | <p>I am using the following code to run webworker to fune prime numbers in a web page in the latest Google Chrome</p>
<p><a href="https://dl.dropbox.com/u/655237/project/prime.html" rel="nofollow">https://dl.dropbox.com/u/655237/project/prime.html</a></p>
<p>However after clicking the start Worker button, the stop b... | 3 | 1,341 |
Main navigation list display underneath eachother, trying to accomplish a horizontal one | <p>I'm trying to make a full css/html navigation bar, i conquered my last problem but ran into a new one.</p>
<p>The main navigation li's now also display underneath eachother while im trying to make a horizontal navigation bar. </p>
<p><a href="https://i.stack.imgur.com/XCbzA.png" rel="nofollow noreferrer"><img src=... | 3 | 1,873 |
NextImage erroring in ie11 | <p>i use typescript, this is my package.json:</p>
<pre><code>"dependencies": {
"@tailwindcss/typography": "^0.4.1",
"@webcomponents/shadydom": "^1.7.4",
"cookie": "^0.4.1",
"js-cookie": "3.0.0-rc.4",
"next": "11.1.2... | 3 | 1,722 |
My Android app is unable to run in the background | <p>I was learning about alarms. I created an app where clicking on button would send you a notification after 5 seconds. The app works fine when it is on screen. But it does not work when my app goes to background after pressing the button. The notification which was supposed to come, comes only after I open my app</p>... | 3 | 2,002 |
Replace all td's in first tr PHP pregmatch (REGEX) | <p>I want to replace all td's with th's for only the first tr.
But I cannot really figure out how to do this using Regex in PHP.
(replace the td at all)</p>
<pre><code> <tr class="row0 row-hover">
<td class="column-0 "><?php _e('Data', 'domain'); ?> </td>
<td class="colum... | 3 | 1,135 |
Count pixels in an irregular shape | <p>I have an existing app, written in Obj C, that works and is on the iTunes App Store. I am updating it to Swift. I am having trouble with the pixel classification and counting portion of the app. The Objective C code is below: I would appreciate any suggestions as how to proceed with the Swift 3 version.</p>
<pre><c... | 3 | 1,757 |
PostgreSQL query never resolves but shows no errors | <p>I am trying to make a simple GET route with express to retrieve all posts from my posts table. All queries work with my seed file <code>init_db.js</code>, but when I try Thunderclient or the browser it just never resolves and no errors are shown. I have used console logs in my <code>db/models/posts.js</code> and it ... | 3 | 1,967 |
Close popup if existing on the web page | <p>I am trying to scrape the data from a website. The web page may pop up a security dialog box before the login page.</p>
<p>I tried to close the dialog box with</p>
<pre><code>Dr.FindElementByCss(".pa.pa-times").Click
</code></pre>
<p>In some cases it doesn't show the popup dialog box then my above code is ... | 3 | 1,025 |
Java ConcurrentHashMap initialization | <p>I am currently reading through the source code of ConcurrentHashMap in jdk1.8, and I find that <code>initalTable()</code> method a bit confusing.</p>
<pre class="lang-java prettyprint-override"><code>public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
implements ConcurrentMap<K,V>, Se... | 3 | 1,159 |
D3 auto updates when array length change | <p>I have simple code here from Interactive Data Visualization by Scott Murray with minor changes. What I changed is the initial data's length <code>5</code> is different from the <code>dataset1</code>'s length <code>25</code> in the <code>click</code> function.</p>
<p>However, every time I click and update, it does g... | 3 | 2,309 |
vuex getter triggers 'infinite update loop in a component render function' | <p>I get an “infinite update loop in a component render function” and it seems to be triggered by a vuex getter but I have seriously no idea why. Any hint would help me a lot</p>
<pre><code>getPlanningsForPlanner: (state, getters, rootState, rootGetters) => () => {
let people = getters['getPeopleOrde... | 3 | 1,203 |
Android custom listview layout | <p>im new to android and java programming. Im having trouble getting my custom layout (currently with only one textview in it to work with my code. I have followed many tutorials and look and many examples but still Im getting confused as to how I would integrate it with my existing code. </p>
<p>Any help would be app... | 3 | 1,129 |
Opening a dialog from QMainWindow | <p>I have a problem with opening a small dialog window when I press a button from my MainWindow. I know how to make a window that I need to open (let's call it EDIT WINDOW), but calling (opening) it from Main form, and another module is a different story.</p>
<p>Main window is showing, and working. All the imports are... | 3 | 1,254 |
Prepopulate Django ModelForm With all records | <p>I am trying to prepopulate my form with all records but i am receiving error
'QuerySet' object has no attribute '_meta' ,
I tried just passing my queryset through initial while i get no error the fields in my template aren't rendering <code>initial={runninghours}</code></p>
<p>my views.py:</p>
<pre><code>def running... | 3 | 1,053 |
Retrieving Values from ModelMultipleChoiceField Checkboxes | <p>Big Picture: <em>Ultimately I have no idea of if I approached this correctly but this is as far as I have got.</em> </p>
<p>I am building a platform for lawn care industry service providers. Each company is capable of offering different services so I setup a model that allows each service provider to create their o... | 3 | 1,443 |
When I upload image to Firebase Storage, an extra image appears. Swift 4, Xcode 9 | <p>I have not seen this problem or issue raised anywhere else online. </p>
<p>When I upload an image(s) to Firebase Storage, one extra duplicate image appears. i.e If I upload 1 image, 2 will appear in the Storage (if I upload 3, 4 will appear), it looks like this:
<a href="https://i.stack.imgur.com/SKeOU.png" rel="no... | 3 | 1,105 |
Send Range of Cells to Multiple Recipients | <p>I am new to this, so please bear with me. I am trying to send a specified range of cells to different contacts on a loop. So far, this is operational for 1 contact per email. Is there a way to modify this code to send the email to multiple individuals from a spreadsheet along with having multiple individuals from th... | 3 | 2,491 |
how to split a 2D array into array chunks on the basis of a index value in PHP | <p>I have a 2D-array which contains product id, product name and company id, now i want to make group of company having product information and can mail to company with product details, i have data in array like</p>
<pre><code>Array
(
[0] => Array
(
[id] => 5363
[proname] => pro1
[... | 3 | 2,333 |
Java newbie facing elementary problems | <p>I'm a total newbie when it comes to programming and I'm writing in Java for the first time. It's for an assignment in college. I'm using NetBeans.</p>
<p>You see I'm completely lost and have no idea what I could do to fix my problem. This is the problem I'm facing:</p>
<p>1:
<code>for (String edge : edges.ele... | 3 | 1,443 |
Is it possible to export and use a spaCy NER model without an vocab and inject tokens/vectors on the fly? | <p><strong>INTRO</strong></p>
<p>My question originates a bit far from the title but in essence sums up well what I'm stuck with at the moment.</p>
<p>I need to integrate a NER model of spacy as part of a complex and distributed NLP pipeline and what I'm doing to do so is:</p>
<ol>
<li><p>Train a new NER model based on... | 3 | 2,074 |
AngularJS $injector error on force refresh | <p>I'm using AngularJS 1.6 with webpack. </p>
<p>When I force a refresh in Chrome (Shift+F5) my app fails to bootstrap and I get the following error:</p>
<pre><code>app-a1677133c4.js:101030Uncaught TypeError: Cannot read property 'substr' of null
at app-a1677133c4.js:101030
at app-a1677133c4.js:101030
at ... | 3 | 2,175 |
how to access DataCollection | <p>I have a Pivot view in my WP8 app, and I'm trying to access the data collection from the view's class upon <code>Click</code> event "removePin".
The source of the data collection is another class called <code>Pins</code>.</p>
<p>how can I achieve that? </p>
<p>this is my snippet code for the XAML for that particul... | 3 | 1,124 |
Is it possible to access a shared TPH column in EF Core without using intermediate classes? | <p>When using <a href="https://docs.microsoft.com/en-us/ef/core/modeling/inheritance#shared-columns" rel="nofollow noreferrer">shared columns</a> in an EF Core TPH setup, is it possible to <strong>access the shared column during projection</strong>?</p>
<pre class="lang-cs prettyprint-override"><code> class Program
... | 3 | 2,213 |
Possible to split flex columns into exactly 2? | <p>I have a series of images that are written to the page with the following code.</p>
<pre><code><div class="gallery">
<div><img src="img1.jpg">stuff here</div>
<div><img src="img2.jpg">stuff here</div>
<div><img src="img3.jpg">stuff here</div>
... | 3 | 1,168 |
How to get the sum of salaries from a multidimentional array after condition | <p>In this project i have a multidimentional array that keeps some employees names, their position, their speciality and their salary. I need to find the average salary of all the managers and all the employees from the array.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta sharset="UTF-8"/>... | 3 | 1,509 |
How can I get the shared steps details for a test case using the .NET SDK client? | <p>I use the .NET SDK client (version 16.156.0-preview available on NuGet), but I search how I can get the test case steps that contain the shared steps.
The field <code>parameterizedString</code> seems to contain all the test steps, but when it contains the shared steps, the XML content is not clear.</p>
<p>Example o... | 3 | 7,566 |
Data on site not showing after clicking on sub menu on nested unordered list using ajax with jquery | <p>Here is the html unordered list implementation</p>
<pre><code><div id="dropdownmenu" style="position: fixed; margin: 0 auto; width: 100%; position: fixed; opacity: 1; text-align: center;">
<ul id='navbar' class="menu">
<li><a href="Home">Home</a></li>
... | 3 | 1,275 |
How to add multiple modules with support design support libraries | <p>I am working on one old project it uses two modules and adds them in root project, one of the module has this setting in build.gradle</p>
<pre><code>apply plugin: 'com.android.library'
android {
compileSdkVersion 21
buildToolsVersion '21.1.0'
defaultConfig {
minSdkVersion 7
targetSdkVe... | 3 | 1,638 |
Auto-Complete in AMP with POST method | <p>I have a problem in AMP page. I want to build a page with <strong>AutoComplete</strong> list selection like <strong>jquery AutoComplete</strong>.</p>
<p>Amp give Example for Autocomplete Selection. But there is a problem. I have <strong>API with POST Method</strong> in this example I don't know how to set Request m... | 3 | 1,610 |
can't access Textbox value which is in gridview control on button click | <p>I have taken 3 text-boxes in grid view. I want to access all the 3 text-boxes value in single label on button click event.
ASP code:</p>
<pre><code><asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
CssClass="style1" ForeColor="#333333" GridLines="None" Height="342px"... | 3 | 1,486 |
Send Multiple choice questionaire ( with possible answers) in Java/android | <p>Hi everyone I've searched a lot but couldn't find any answer that satisfies what I want to do for my project. Maybe I didn't know what to search for but he it is:
project: constant in-class feedback</p>
<p>I'm trying to write a program that enables a lecturer to send(from java app) a multiple choice questionnaire(a... | 3 | 9,651 |
new spreadsheet not visible in google drive using .NET API | <p>I created a google spreadsheet using Google API NET like below. I am receiving no exception and from code i was able to retrieve file id also. But when I look in google drive I am not seeing file. Is there some thing I should do to notify google drive. I did a refresh my drive too. But no use. Any idea?</p>
<p>I au... | 3 | 1,117 |
Refresh Web Page after Converting base64 to image | <p>I have a base64 data and I want to convert it to Image in Asp.net. I use this Code</p>
<pre><code>byte[] data = Convert.FromBase64String(imageData);
var path = Server.MapPath("~/ImageFolder/") + "AAA.jpeg";
System.IO.File.WriteAllBytes(path, data); //(*)
</code></pre>
<p>when the code reach at l... | 3 | 1,029 |
How to call a method while another method is still running- Python | <p>I'm working on a python program that extracts the sound from a given YouTube video url and plays it. I created a <code>play_vid</code> method to play the sound and a <code>pause_vid</code> method to pause the sound. The issue is that while the sound is still playing inside the <code>play_vid</code> method and I try ... | 3 | 2,276 |
move validation to the JPQL query level | <p>I am looking for a way to move the validation method from Service to Repository</p>
<p>One Picture has one PictureData.</p>
<p>This is the method:</p>
<p>// TODO move validation to the JPQL query level
.filter(pic -> pic.getPictureData().getFileName() != null)</p>
<p>This is my Service</p>
<pre><code>@Service
@Co... | 3 | 2,273 |
WebdriverIO not using config.path to access Appium Server | <p>I'm trying to get started with appium and successfully connected myself with my device using Appium Server and Appium Inspector (I had to change remote path to /wd/hub). Now, I'm trying to do the same using WebdriverIO using <a href="https://github.com/webdriverio/appium-boilerplate" rel="nofollow noreferrer">https:... | 3 | 2,734 |
Vulkan UBO passed incorrectly | <p>I want to pass a uniform buffer object containing two 4x4 matrices to the vertex shader. I have declared the struct in C++ as follows:</p>
<pre><code>struct PerRenderUBO
{
glm::mat4 viewProjection;
glm::mat4 projection; //unused
};
</code></pre>
<p>And in GLSL:</p>
<pre><code>layout(std140, set = 0, bindi... | 3 | 1,310 |
CSS Centered Image effecting screen width, mobile view | <p>I’m having some issues with styling my header image while using bootstrap and I’m not sure where else to take this. The image has always been centered however there is been a left-right scroll at the bottom of the page. It was annoying, but it was not an issue as it worked fine on mobile devices. Now, with some r... | 3 | 1,166 |
Android app from bootcamp book crashes when written with Android Studio | <p>the sample app in Android Bootcamp book was written for Eclipse, but when I wrote it in Android Studio, I can't see the Spinner options and the app keep crashing when I click the Find Ticket Cost,</p>
<p>here is how the app looks like in the AVD</p>
<p><a href="https://www.dropbox.com/s/k5pmw0a5gqrfbd2/Screen%20Sh... | 3 | 3,507 |
Karma w/RequireJS gets 404 loading file | <p>I'm working with a build that has a working karma setup.</p>
<p>I'm trying to integrate require.js usage into the tests. I mostly followed the instructions in the Karma RequireJS doc page to convert my "karma.conf.js" and build the "test-main.js".</p>
<p>When I run the tests, I see something like this:</p>
<pre>... | 3 | 1,729 |
How to post button value using ajax functione i already tried below code | <p>In Yes,No Dialogbox if click yes button or no button How to post button value using ajax functione i already tried below code please help me out from this problem.</p>
<pre><code> function yesnodialog(button1, button2, element) {
var btns = {};
btns[button1] = function () {
... | 3 | 1,091 |
ProgressBar Null Point Exception making the application crash | <p>I am new to Android Application Development and while working on a project. I receive the following error and I can't seem to figure out the solution and it makes my application crash.</p>
<p>I have a application which is conneting to firebase and registering user and saving its details to the database. But when I ... | 3 | 6,028 |
Combining DrawerNavigator and TabsNavigator without "nesting" in React Native | <p>I'm working on a react native project where I want to be able to use the <code>TabsNavigator</code> along with <code>DrawerNavigator</code> at the same time. I know that <strong>nesting</strong> navigators accomplishes this but not exactly in the way I want. Nesting navigators will for instance only contain the <cod... | 3 | 1,229 |
How to search on Cosmos DB in a complex JSON Object | <p>I have the following JSON Object, as you can see it references a TAG object, which is an array of tags.</p>
<pre><code>public class GlobalPageTemplate : ISharedCosmosEntity
{
[JsonProperty("Id")]
public string Id { get; set; }
[CosmosPartitionKey]
public string CosmosEntityName { get; set; }
p... | 3 | 1,614 |
Can SimpleXMLElement::children() have multiple prefixes? | <p>For SimpleXMLElement::children() method, can I include multiple prefixes as parameters.</p>
<p>Consider following xml. Here, the children('air',true) method can get child elements with "air" as prefix. Similarly, with children('universal',true), I can get child elements with "universal" prefix. </p>
<pre><code><... | 3 | 10,556 |
CloseHandle((Handle) port) is not returning | <p>I am having an issue with windows closeHandle((Handle)port) function in our .dll. it is not returning. The issue happens every few hours.</p>
<p>The java application using the .dll connects, reads and writes data. The last method call java application does is to write the data and release method is called IMMEDIAT... | 3 | 1,499 |
How to add title row to using writer and unicodecsv | <p>I have the following JSON file - test.json (names, keys and addresses changed for security reasons)</p>
<pre><code> [
{
"accountMode":"Live",
"acquirer":"TEST",
"acquirerConstraints":{
"cardTypes":[
"MASTERCARD",
"MAESTRO",
"VISA"
... | 3 | 3,994 |
React redux update state onClick function with multiple actions | <p>I am trying to update redux state, the problem i run into is the mapStateToProps is not being update when onclick function being executed with multiple actions. I know actions are running asynchronously and thats why state is not being update on time. is there away to overcome this issue </p>
<p>code Example </p>
... | 3 | 1,102 |
Database not adding while having a social login in MySQL in php | <p>I'm trying to build a <code>social media login</code> option in my login page with the help of <code>hybrid auth</code> plugin.</p>
<p>When the user clicks on login as facebook or any other social media plugin, I'm getting the logged in page or success page in which I'm trying to fetch data of the user and adding i... | 3 | 2,530 |
Change Detection not firing Angular 9 | <p>I have just updated my application to angular 9</p>
<pre><code>Angular CLI: 9.1.3
Node: 10.16.0
OS: win32 x64
Angular: 9.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, service-worker
Ivy Workspace: <error>
Pack... | 3 | 1,044 |
How can i save botframework data like questions and answers | <p>In <code>MessagesController.cs</code> in my code I added a part to save userlog data like userid,username, channel, date, messages...I want to save also the answer of the bot ? but I don't know how to do. The database is in azure.</p>
<p>This is the code : MessagesController.cs</p>
<pre><code> using System.Net.... | 3 | 3,314 |
mysql & codeigniter update multiple rows | <p>I have a table containing the availability of rooms<br>
the table looks something like this (sorry for the snippet) </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHT... | 3 | 5,032 |
Fix bug in PayPal PHP SDK Core | <p>I am having trouble find the problem in figuring out the problem using merchant-sdk-php I found on github. For some reason its throwing this error. I tried looking at the code but I dont under stand it or see the problem.</p>
<p>Fatal error: Call to undefined method stdClass::toXMLString() in /home/content/08/10639... | 3 | 2,724 |
Codeigniter Multiple file upload and thumbnail creation: only one thumbnail being uploaded | <p>I am able to upload my images ok, I am able to create thumbnails ok, but only the first thumbnail is being uploaded. I checked the error code for the resize function and they all say 'true' (Success). However, if I upload 4 files, only the first is being uploaded to the thumbnail folder. Here is my code:</p>
<pre><... | 3 | 1,277 |
Pandas Dataframe filter results with Merge. Encoding Decoding Issues | <p>I read tons of posts from our database for the last few days. with my limited skills in python and pandas and numpy, i am not sure if i found the answers that I desire. so would you please take a look at my situation, and see what i can do with it. and I am sorry about the chinese characters in the searching results... | 3 | 1,252 |
Extract customer data from email | <p>I am getting my emails through imap with php, and I get in return the message's body. I need to extract some customer info from this message, like Name, E-mail, Dates and related apartment.</p>
<pre><code>--_av-ml1j40HUdHU5gAwKk3Xhrg
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printabl... | 3 | 1,988 |
String Length Not Equal To String Data Unity C# | <p>I got a strange problem in here.
I have two string to compare. </p>
<p>Lets call it :</p>
<p><strong>String "A" and String "B".</strong></p>
<p>Both of string have a same data</p>
<p><strong>"A" : "1234" and "B" : "1234"</strong></p>
<p>But when compare they didn't <em>same or not equal</em>.</p>
<p>I have try... | 3 | 1,245 |
Babel transpiled ES6 code (node.js) successfully, but when do "npm start" it throws "SyntaxError: Unexpected token import " | <p>I have written a code in node.js(ES6) and below is my problem with steps i followed to run my code:</p>
<p>-Step1:
ES6 code==>(babel)==>successfully transpiled code when run (npm run build)</p>
<p>-Step2:
run command (npm start) throws error "SyntaxError: Unexpected token import"</p>
<p>But if i run "nodemon ./... | 3 | 2,561 |
a href... a:link, a:visited, interfered with <a href> image link | <p>I have the below style in my <code><head></head></code> to display my menu:</p>
<pre><code><style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li {
float: left;
}
a:link, a:visited {
display: block;
width: 120px;
font-weight: none;
col... | 3 | 1,687 |
PATH error in Bash | <p>I am using CentOS6 Bash and trying to use Python & cx_Freeze. I am a not familiar with PATH and Path modifications and this being the server, I am a little apprehensive to try it myself (but I have to). When I try $cx_f/Freeze, I get <code>-bash: cx_Freeze: command not found</code> -- same goes for any cx_Freeze... | 3 | 1,443 |
Exception while reading from SQLite DB in android | <p>I don't know the meaning of this error , anyone can help ?</p>
<pre><code>10-15 13:07:02.221: DEBUG/query(587): SELECT event_id as _id,start_date, end_date, event_body, event_title, student_id, event_status, service_number, password, lecturer_id, fec_no, dept_no,floor_no from timetable
10-15 13:07:02.231: ERROR/Cur... | 3 | 2,837 |
Laravel Validation Large JSON too slow | <p>I am working on a hotel application, in which I can receive large amounts of data in JSON format to update the database records.</p>
<p>The JSON structure is as follows ( reduced example ):</p>
<pre><code>[
{
"combination_plan_id": 1,
"details": [
{
"date": &... | 3 | 3,133 |
Is there a way to optimize/vectorize these loops over elements in a 3D array, without requiring significantly more memory? | <p>I am looking for some help to speed up some Matlab code.</p>
<p>A minimal example is shown below. The code is doing some calculations on a 3D matrix, defined on [x,y,z] coordinates. When using the profiler, the inner loop over <code>ind</code> is the time-consuming part, and so I am wondering if this loop can either... | 3 | 1,098 |
Updating data from json server in react | <p>I'm trying to update data from JSON server in react but it doesn't update it.</p>
<p>Here's the entire code:</p>
<pre><code>import { useState, useEffect } from "react";
const EditTask = ({ task, onEdit }) => {
const [tasks, setTasks] = useState([]);
useEffect(() => {
const getTasks = ... | 3 | 1,173 |
ServiceNotFoundException in CheckExceptionOnInvalidReferenceBehaviorPass.php line 58 The service "app.admin.page" has a dependency | <p>When I go to url: <a href="http://localhost/symfony2/p1/web/app_dev.php/sonata/dashboard" rel="nofollow">http://localhost/symfony2/p1/web/app_dev.php/sonata/dashboard</a> I get the error: </p>
<blockquote>
<p>ServiceNotFoundException in CheckExceptionOnInvalidReferenceBehaviorPass.php line 58: The service "app.ad... | 3 | 2,220 |
Updating multiple spinners | <p>I have a <code>listView</code> containing some <code>Spinner</code>s. I want to update the <code>Spinner</code>s when I select an item. For example:</p>
<ul>
<li>Spinner 1 : <code>{A, B, C}</code></li>
<li>Spinner 2 : <code>{1, 2, 3, 4, 5}</code></li>
<li>Spinner 3 : <code>{a, b, c, d, e, f, g, h}</code></li>
</ul>... | 3 | 4,011 |
Performance issue with simple select query (using indexes) in SQLite3 | <p>I have a table named 'waveforms' with 525k rows. Each row contain 7 columns. Only the fisrt 5 columns are indexed since I use them in the query.</p>
<p>I have a loop that calls a select query 152 905 times with different inputs. It's taking ~5min to finish, so ~2ms per call or ~500 queries per second (QPS).</p>
<p>I... | 3 | 2,236 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.