title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Mysql Fulltext search with different number of columns | <p>I've been taking my first stab at Fulltext searching and am having trouble getting the query to work. Here's the new code I've been trying (from a PHP file):</p>
<pre><code>$browse_all_query = "(SELECT master_id, title, series_id, series_number, year, date, day, month, speaker_id, speaker2_id, speaker3_id " .
... | 3 | 1,074 |
grabToImage save the delagate pathview qml | <p>Hello my question is the following I am trying to iterate over the pathview delegate but I am getting an error that it does not find the image I want to save after saving the path.
I have already worked with grabToImage to save canvas, graphics and a couple of other things but nothing with pathview delegates.</p>
<p... | 3 | 2,048 |
Why is typed JSON parsing in C# SO MUCH slower than node.js JSON.parse? | <p>I have one simple JSON object in a string and I'm comparing the ellapsed time of parsing (deserializing) the object between C# (.NET core) and Node.js</p>
<p>Node.js test:</p>
<pre><code>const { performance } = require('perf_hooks');
const data = '{"_id":"5ff0fa604a1956d24e936b15","index&qu... | 3 | 1,795 |
How to convert XML via XSLT and ignore 2 XMLNS | <pre><code><Products xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<Product>
<status>1</status>
<ProductName>******************</ProductName>
<model>******************</model>
<ProductQTY&... | 3 | 2,095 |
Bash scripting, two files with the same name in another directories | <p>So, I have two files with the same name in two different directories, one is in /usr/local/nagios/etc/hosts/ and the other one in /usr/local/nagios/etc/services/.</p>
<p>I was trying to copy lines in the first file that contains contact* to the other file with the same name in another directory. </p>
<p>First file... | 3 | 2,499 |
I will read an arraylist created from sqlite to show content in listview but I get an error message | <p>The objective is a ListView with all Games from a specific team. How you see, I created a function (<em>getAllGamesByTeam()</em>) in <em>GamesFragment.java</em> to fill a arraylist with all games. Always, when I start this Fragment, I get the <a href="https://i.stack.imgur.com/M30p3.png" rel="nofollow noreferrer">er... | 3 | 3,630 |
MailChimp group options select in php | <p>I tried to find the answer for the last 5 hours but I finally caved in and am reaching out for help.</p>
<p>Basically, this code worked great until I needed to select a group option. I'm not sure if I'm creating my interests array properly, I may have to use 'merge_vars' but really would like some guidance before I... | 3 | 1,662 |
Logic Error in Chessboard Virus Simulation | <p>The Chessboard virus problem is similar to Conway's "Game of Life". The rule is that any two squares with infected neighbours will become infected.</p>
<p>I have tried to implement the simulation in Python, but there is a logic error. I think what is happening is that the board is being updated within a si... | 3 | 1,486 |
Service Trace Viewer not displaying everything | <p>I have an IIS hosted WCF service that I want to trace using the Service Trace Viewer.
Here is the configuration in the web.config:</p>
<pre><code><configuration>
<!-- ... -->
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="All,Information,Activi... | 3 | 1,251 |
Hidding tab bar bottom navigation from certain route screens | <p>I'm attempting to remove the tab bar bottom navigator from certain pages from my application. I have performed several searches with indication to use <code>display:none</code> or other methods, but they are not seeming to work. I have several nested routes inside of the Main route.<br>
This is the tab route:</p>
<p... | 3 | 2,454 |
Split output result by n and loop | <p>I'm solving an issue where I need to create one PDF form.</p>
<p>That PDF form has 8 sections where I need to put info about and looks like shown on picture (only 4 shown).</p>
<p>The point is that my query will return 0 - n different results. So I need to split by 8 and post on different pages. </p>
<p>I tried l... | 3 | 1,071 |
How to get SQLite db values in Arraylist to Listview | <p>I need to set adapter values in a listview. In it, I created an ArrayList to get data from SQLite DB and I need to pass it to a listView with 3 columns. Here I mentioned my codes.</p>
<p>Where do I need to call my data Stored in local Db?</p>
<p>DBHelper.java</p>
<pre><code> public ArrayList<SQLPojo.UserDetail... | 3 | 1,277 |
Creating a second addtocart button/form Shopify | <p>I am using Shopify and have managed to add a second 'addtocart' button on the page so that people can order a sample. Each product has 2 variants - 1st = Meterage, which they can then choose a quantity for, and 2nd = sample, which doesn't have a quantity box, it is linked to the button to automatically add 1.</p>
... | 3 | 9,543 |
stripes while calculating image gradient with CUDA | <p>I'm writing a code for the image denoising and came across a strange problem with stripes in the processed images. Basically when I'm calculating X-gradient of image the horizontal stripes appear (or vertical for Y direction) <a href="https://dl.dropbox.com/u/8910265/Lena_Grad.png" rel="nofollow">Lena X gradient</a>... | 3 | 1,205 |
chart.js 3 and time axis displays wrong date data | <p>I have a very hard time to get chart.js running with time axis.</p>
<p>I have following simplified code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><html>
<... | 3 | 1,443 |
Iterate and get unique values from JSON for some indexes | <p>I'm getting data back from my PHP using a query like this:</p>
<p><code>SELECT objective,signal_type,signal_name FROM signals WHERE channel="Email"</code></p>
<p>The data comes back like this:</p>
<pre><code>[
{
"objective": "Awareness",
"signal_type": "Efficiency",
"signal_name": "CPM... | 3 | 2,788 |
How can I force IE to keep some margin at left in it's browser window? | <p>My website is properly centered and fitted in all browser windows except the Internet Explorer.
What happens in IE is that it removes the margin from left and forces to align the body left, what I don't want. How can I solve this issue so that the IE can display my site exactly as other browsers do?</p>
<p>If you p... | 3 | 3,117 |
Calabash tests are often stuck on starting server if being executed over Wi-fi | <h2>General description of a problem:</h2>
<p>Because of project specific (<em>iDevice has to be connected to the external hardware via Lightning port</em>) we have to execute our pack of tests over Wi-fi. </p>
<p>There is dedicated Macbook Pro(early 2011) with Yosemite 10.10.2 working as a client for tests execution... | 3 | 2,280 |
How can i add labels in terms of range to my Leaflet map | <p>I have been following the leaflets <a href="https://leafletjs.com/examples/choropleth/" rel="nofollow noreferrer">tutorial</a> where it is guiding on how to build an Interactive Choropleth map. Not all things are entirely included and once in a while I have to go online in an attempt to tweak things to get the to wo... | 3 | 1,097 |
C++ XLST transform not working using MSXML 3.0 | <p>I'm new to C++ and inherited the following code that is supposed to transform the given XML using the XSLT file to just spit out the text values.</p>
<p>It loads both the XML and XSLT fine and the transformnode() call returns success but no transformation has been applied. The original output at the bottom contains... | 3 | 1,145 |
IsOwnerOrReadOnly permission | <p>I'm trying to do crud API with IsOwnerOrReadOnly permission but other users can still delete posts from the others. Could you please have a look? I have no clue what goes wrong. My guess is that it has something to do with this line</p>
<pre><code>return obj.author == request.user.userprofile
</code></pre>
<p>// per... | 3 | 1,075 |
I am having trouble with dispatching redux action from react Login component . I have tried to figure it out in vain | <p>I am trying to dispatch a loginAction to a redux store to update the store with the user details once a user logs in, but I am getting an error ... <strong>TypeError: Cannot read property 'props' of undefined</strong></p>
<pre><code>import React, { Component } from 'react'
import Navigation from '../components/Navig... | 3 | 2,344 |
NetBeans on Ubuntu: Project's pom.xml file contains invalid xml content. Please fix the file before proceeding | <p>My name is Angela and I'm developing a Cytoscape app.</p>
<p>I'm trying to access my maven project properties, but it returns me this error: "Project's pom.xml file contains invalid xml content. Please fix the file before proceeding."
When I build the jar file and execute it on Cytoscape I do not have any problem. ... | 3 | 8,561 |
Camel Spring test with "@SpringBootApplication" and "@MockEndpoints" breaking all unit tests | <p>I have camel+springboot application. And some unit tests: one test for one processor. They extends CamelTestSupport. They are working.
for example:</p>
<pre><code>public class FaultProcessorTest extends CamelTestSupport {
private static final Logger LOGGER = LoggerFactory.getLogger(FaultProcessorTest.class);
... | 3 | 1,646 |
AngularDart App Layout issue with material-navigation | <p>I've been trying to implement a material design site using AngularDart, and I've hit a wall using the angular_components App Layout setup. For the life of me I can't figure out how to change the look of the nav class="material-navigation" content to match the examples (things like background, text color, and text h... | 3 | 1,703 |
Firebase Response for offline devices | <p>If I try to send a message to a device by using it's Firebase token and the device has no internet connection what response will be generated? Particularly I want to know if any "error" message will be generated or not? </p>
<p>Take a look at the code below</p>
<pre><code> while(rs.next())
{
URL ur... | 3 | 1,229 |
WPF Tab Control override template for individual tab content | <p>I have a tab control with some static tabs. However I would also like to add some additional tabs dynamically. Therefore, I defined a header template (using TabControl.ItemTemplate) and a content template (using TabControl.ContentTemplate). However, the static tabs will be showing different content, and therefore I ... | 3 | 3,379 |
Parse.User.Login is not a function? | <p>I'm teaching myself a bit of Javascript & Parse.com. I'm following this video: <a href="https://www.youtube.com/watch?v=vB5lo9bx57s&list=PLoN_ejT35AEhbFswEKW36LxzyXJs7xCWS&index=6" rel="nofollow">https://www.youtube.com/watch?v=vB5lo9bx57s&list=PLoN_ejT35AEhbFswEKW36LxzyXJs7xCWS&index=6</a></p>
... | 3 | 2,122 |
Rsa decrypt and using nec | <pre><code>n = 50142032499469550407421604706771611415193641755639270667473328045908799316205905505167271138079522738272643811917325451177986948493659090203974349370248583120022500722759239305447823602875823849366662503027591858371125301505134216095903796534740686834236150999
e = 65537
c = 450053995049925875100066083005... | 3 | 1,298 |
When building my flutter app, it fails with GradleExeption | <p>When I try to build my app for public release I get this error from the app level <code>build.gradle</code>. I'm getting the error below:</p>
<pre><code>Launching lib\main.dart on SM G973F in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
ProcessException: Process "C:\Users\t... | 3 | 1,395 |
Split large CSV file into multiple files based on the size with the parent file header | <p>I have a scenario where i have to split a large csv file in multiple csv files and each file should be 100 MB or less in size with the headers. </p>
<p>i have tried below VB.net code in my ssis package, but i am not getting the header row for child files.</p>
<p>please help..</p>
<pre class="lang-vb prettyprin... | 3 | 1,465 |
App with Google Map crashes when I extend FragmentActivity | <p>I know this question has been asked many times here, but none of the solutions provided stopped my app from crashing. </p>
<p>Here is my code from the MainActivity:</p>
<pre><code>package com.example.gpstracking2;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.app.... | 3 | 3,056 |
How to make a transition effect for 3d rotation on canvas | <p>I have sequence of images and want to create a transition effect as part of LiveWallpaper animation - something like to 3d rotation on Canvas (without OpenGL ES).</p>
<p>The code snippet is:</p>
<pre><code>case 15: {/* Vertical rotation left*/
canvas.drawBitmap(mPreviousBitmap, 0, 0, myPaint);
hold... | 3 | 1,178 |
Android app dynamically added button is different colour to layout buttons | <p>I'm trying to add a new button to a DialogFragment, and the button is appearing, but the font and colour are completely different to the other buttons.</p>
<p>The other buttons are generated by a LayoutInflater on a layout in an XML file. The buttons in the XML file look like:</p>
<pre><code><RelativeLayout
... | 3 | 1,047 |
Error in converting keras model to core ml model | <p>I have been trying to convert the Keras model to the core mlmodel. However, while doing so, I get multiple inputs and outputs. I just want the following as input and output.</p>
<pre><code>name: "input"
type {
imageType {
width: 256
height: 64
colorSpace: GRAYSCALE... | 3 | 2,135 |
Keccak SHA-3-512: Missed a detail | <p>I just want to use SHA-3-512. So I used the <a href="https://github.com/gvanas/KeccakCodePackage" rel="nofollow noreferrer">KeccakCodePackage</a>.</p>
<p>I read the <a href="https://keccak.team/keccak_specs_summary.html" rel="nofollow noreferrer">specification</a> and used them.To check my result I use the followin... | 3 | 1,162 |
Can't figure out how to link multiple nesting many to many relationships | <p>I'm setting up a user authentication modules to specify three roles: 'r', 'w', 'x', however I can't figure out how to link all the subcomponents of the website. The website has five levels: 1- Multiple organization 2-Each organization has a number of projects 3-Each project has a number of modules. The user permissi... | 3 | 1,284 |
Uploading ID to same Azure Blob Index that a file is being uploaded to using .Net SDK | <p>I am uploading documents to my an Azure Blob Storage, which works perfect, but I want to be able to link and ID to this specifically uploaded document.</p>
<p>Below is my code for uploading the file:</p>
<pre><code>[HttpPost]
public ActionResult Upload(HttpPostedFileBase file)
{
try
... | 3 | 1,040 |
JSP property file read | <p>I am making one web application. In this application i am using <code>maven</code>, <code>Spring framework</code>, <code>Hibernate framework</code>, <code>JSP</code>, <code>Apache tiles</code>.</p>
<p>Still this application is in English language. So now my requirement is convert application is in Portuguese langua... | 3 | 1,668 |
I want to solve the "system:time_start" error when trying to output GLDAS monthly precipitation to CSV using Google Earth Engine | <p>I am using GoogleEarthEngine to look at precipitation data for the Mekong River basin. The GLDAS data are set every three hours per day. My goal is to extract the GLDAS data from 2000 to 2020 by adding up the data by month.</p>
<p>I want to extract the total monthly precipitation in GLDAS using the Google Earth Engi... | 3 | 1,212 |
Kotlin how to set tablayout inside fragment (viewpager is not working) | <p>i am trying to create <code>tablayout</code> inside fragment. for some reason my <code>viewpager</code> is not working properly. it keep showing same error as below</p>
<p><a href="https://i.stack.imgur.com/IPl1F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IPl1F.png" alt="enter image descript... | 3 | 1,048 |
Debug update moderl phase, setter not being called | <p>This is a problem of build vs render time I guess.
I've a comment section which is a tree of comments. Everything works fine... except for <strong>some</strong> comments the bean setters is not called. </p>
<p>So my understanding is that :</p>
<ul>
<li><p>when using ui:repeat the composite component is included o... | 3 | 4,515 |
Wordpress loop in table won't add more than three rows | <p>I'm developing an agenda page on <a href="http://www.fabriciorosa.com.br/agenda/" rel="nofollow">my website</a> where it should be listed in rows future events. Problem is, the loop only shows three rows, even though in the 'showposts' loop parameter it's set on 10.</p>
<p>I've noticed when inspecting the page code... | 3 | 1,383 |
updating relative path of jar while working on different OS | <p>I would like to replace path of an existing jar based on OS .
Right now i am maintaning a text file called "build.start.properties" with all libraries some ting like this<br>
/gwt/X/2.1.0/gwt-servlet.jar<br>
/gwt/X/2.1.0/gwt-user.jar
/gwt/X/2.1.0/gwt-dev.jar<br>
/gwt/X/2.1.0/gwt-soyc-vis.jar
/log4j/X/1.2.15/log4j-1... | 3 | 1,578 |
Extract specified text from Column in Python (Google Colabs) | <p>I'm looking to extract specified data from the below table in Python (Google Colabs).</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><style type="text/css">
t... | 3 | 1,055 |
getServerSideProps causes 500 error when deployed on vercel | <p>When I'm running my code in localhost everything works how I want it, but when I run it on vercel it sends a 500: internal server error.</p>
<p>I've checked my env variables a million times and tried a lot of things but I'm still rather new with this so I feel like I've been running around like a headless chicken.</... | 3 | 1,373 |
Index-only scan very slow on small table | <p>I am trying to optimize the following PostgreSQL query:</p>
<pre><code>SELECT DISTINCT route.id,
route.ref_origine,
route.platform
FROM route
INNER JOIN level ON (route.id IN (
SELECT level_route.route_id
FROM level_route
WHERE level.id = level_route.level_id))
... | 3 | 2,521 |
R - Create cut-like intervals with non-empty intersection | <p>I have a dataframe <code>df</code> with a column named <code>x1</code> with values between -5 and +5. I am trying to assign for each row of <code>df</code> an interval regarding the values of <code>x1</code>. The function <code>cut</code>allow me do to so :</p>
<pre><code>cut(df$x1,c(-5,-4,-3,-2,-1,0,1,2,3,4,5))
</... | 3 | 1,131 |
Service worker update not working? | <p>I have a nginx hosted Jekyll site.</p>
<p>I have made several changes to my site, update package version and changed my javascript to update the service worker. However my changes are still not reflecting in chrome;</p>
<p><strong>main.js</strong></p>
<pre><code>if ('serviceWorker' in navigator) {
navigator.servi... | 3 | 1,028 |
Playing only audio from an HLS video stream when not connected to WiFi using Daily Motion's hls.js | <p>This question is in regards to DailyMotion's hls.js API</p>
<p>My goal is to save on data usage when not connected to WiFi by playing only the audio portion of a HLS video stream.</p>
<p>I have looked at similar questions for other APIs but have not found anything relevant to the hls.js API.</p>
<p><strong>Detail... | 3 | 1,304 |
Class disappear from a tr line - Symfony | <p>I'm a little bit confused with this and I was hoping you could help me.</p>
<p>Here is what I print:</p>
<p><a href="https://i.stack.imgur.com/NCLli.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NCLli.png" alt="print"></a></p>
<p>As you can see there is 3 level: The first one is contrat (firs... | 3 | 1,473 |
Why would javascript work on my Sony Ericsson C510 browser, but not javascript + jquery? | <p>I'm able to copy the following .htm file to my sony ericsson C510 and the mouseover works:</p>
<pre><code><script type="text/javascript">
<!--
if (document.images) {
front = new Image
back = new Image
front.src = "front.png"
back.src = "back.png"
}
function ... | 3 | 1,861 |
Slideshow code reusability | <p>I've created a Jquery slideshow and it is working without problem, but this thing is bugging me... As you can see I've created two <b>BIG</b> and <b>FAT</b> functions and they are <b>IDENTICAL</b> except second function is stored inside variable called <b>animirajLogo</b> and that variable is called inside <b>setInt... | 3 | 1,268 |
Wrap python callable in keras layer | <p>In keras / tensorflow it is often quite simple to describe layers directly as functions that map their input to an output, like so:</p>
<pre class="lang-py prettyprint-override"><code>def resnet_block(x, kernel_size):
ch = x.shape[-1]
out = Conv2D(ch, kernel_size, strides = (1,1), padding='same', activation='r... | 3 | 1,343 |
Post json to struts 2 action | <p>I need to post a simple json object to a Struts 2 action, could you tell me what I miss with this:</p>
<p>the Java object to save:</p>
<pre><code>@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "id", unique = true, nullable = false)
private Integer id;
@Column(name = "code")
private Strin... | 3 | 1,287 |
How can i loop over an array to get jquery properties? | <p>I have some fields that I want to hide if they are null. I am able to do this with:</p>
<pre><code>if (json[0].incendio_edificio == null) {
$("#dIncendio_edificio").parent().parent().hide();
}
if (json[0].hvct_edificio == null) {
$("#dHvct_edificio").parent().parent().hide();
}
if (json[0].... | 3 | 1,050 |
Conflict library when deploy custom mediator in WSO2 ESB | <p>I used WSO2 EI 6.4.0.
I need to write a custom mediator used an external jar, called JAVA_SDK_VXP-2.0.3.jar (com.vpcp.services package).</p>
<pre><code>package com.quangnam.example;
import org.apache.synapse.MessageContext;
import org.apache.synapse.mediators.AbstractMediator;
import com.vpcp.services.AgencySer... | 3 | 2,750 |
Preserving order with geom_text_repel | <p>I'm trying to plot a number-line for floating point numbers (slightly simplified, with a sign bit, one bit for the coefficient (when not zero), and two bits for the exponent). I have this:</p>
<pre><code>library(ggplot2)
library(tibble)
library(ggrepel)
d <- tribble(
~repr, ~number,
"1.1[2] %*% 2... | 3 | 1,319 |
How to set Index Path to a Button? | <p>With the following code, I am trying to get the video likes count, I am getting the count in array and I want to set that to a button title all is working good. </p>
<p>I have a button action and with that, I am able to show the likes count on that button. But my problem is that, with this code, I am getting the sa... | 3 | 2,335 |
Windows Phone 8 image flick event not working | <p>I have the following code in my xaml in a Windows phone 8 page..</p>
<pre><code> <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<StackPanel>
<Image Name="img" Width="350" Height="480" Margin="0,40,0,0">
<toolkit:GestureS... | 3 | 1,129 |
InsufficientAuthenticationException when using OAuth2RestTemplate from RestController | <p>I am building a Spring Boot application which calls a 3rd party REST API (Infor ION API) secured by OAuth2.</p>
<p>I have built my OAuth2RestTemplate like this:</p>
<pre><code>@Service
public class GenericIONAPIServiceImpl implements GenericIONAPIService {
@Override
public IONHubspotAPIResponse getFromHubspot... | 3 | 8,193 |
asp.net web api c# interface dataprovider | <p>Please look into code, just i found following error when i call interface into dataprovider</p>
<p>error line::: public class UserDataProvider : IUserDataProvider</p>
<p>error text::: 'UserDataProvider' does not implement interface member 'IUserDataProvider.gettabs()'</p>
<p>I will be thankfull of you</p>
<p>Web... | 3 | 2,044 |
Failure delivering result ResultInfo{} to activity for some pictures | <p>I have created application which allow user to add photo from gallery or directly from camera. For some pictures it's working correctly but for some app is stoped. Why it's working only for some pictures?</p>
<pre><code> @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
... | 3 | 1,752 |
Error when saving image | <p>I have problem when saving image.</p>
<p>The major problem is when I am saving the image on Android 4.1.2 (Samsung phone).</p>
<p>I got no problem when running on internet explorer or chrome.</p>
<p>(Also look at google for solutions, but found nothing that may help, i.e. <a href="http://comments.gmane.org/gmane.... | 3 | 2,289 |
How can i outsource the code of 2 classes into a new one, so that both classes can call the method | <p>I have 2 classes which are doing basically the same. They both generate a list with Person opjects that are filled with data. DKKRPerson inherits from GKVPerson and contains even more data than a GKVPerson. My goal is to outsource the code of the classes to a new one, so that both classes can call the method without... | 3 | 3,345 |
Transpose SSE2 Vectors | <p>I try to convolve an image for wavelet decomposition using SSE2 and C. This image has 4 channels (Lab + alpha) stored contiguously in memory : [LabA][LabA][LabA]… The alpha channel is irrelevant for what I do here.</p>
<p>Accessing a pixel is then straightforward by loading the content of a pointer incremented by 4... | 3 | 2,837 |
Appium Launcher in AppiumGUI | <p>Can somebody tell me does Appium GUI must have a safari launcher? If not, how i can add this launcher to appium?
I tried to add it. I have tried to compile project from github (<a href="https://github.com/budhash/SafariLauncher" rel="nofollow">https://github.com/budhash/SafariLauncher</a>) and put compiled archive t... | 3 | 1,050 |
ListGetAt function returns type conversion error | <p>I have the following code:</p>
<pre><code><cfif SideSell neq "">
<cftry>
<cfif listlen(SideSell, ",") gt 0>
<cfset sidesellvalid = true>
<cfelse>
<cfset sidesellvalid = false>
</cfif>
<cfcatch type="any">... | 3 | 1,068 |
Creating a search function for appointments with JavaScript | <p>I'm in a group assignment where the current task is making a search function where the user can search the records with keywords. The keywords are case insensitive. Examples are: If a user searches a, anything that has a in subject for the venue will be displayed, it could be class or Toowoomba, everything that cont... | 3 | 7,690 |
How can i add multi lines together into different different div / span tag through this text box? | <p>How can i add multi lines together into different different span tag through this text box ?</p>
<p>There is an text box, by using this box i can insert a new div / span class content Right ?
But every time when i need to add new class i need to write a new line in this text box and need to press send button, Now i ... | 3 | 1,224 |
Firebase Locally use config variable doesn't work - Error: Missing Plaid "Secret" | <p>I am having trouble testing firebase functions locally.
I have ofc some critical api keys I want to protect. So for that I use <code>functions.config()</code>.</p>
<p>When launching locally your functions server with <code>firebase emulators:start</code> or <code>firebase emulators:start --only functions</code>, it ... | 3 | 1,390 |
Power BI: CALCULATE SUM but with several filters and joins? | <p>I'm stuck now at some point.
Here's the situation:</p>
<p>The data:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: center;">Offset Account Name</th>
<th style="text-align: center;">AccountNo</th>
<th style="text-align: center;">Amount</th>
<th style="text-align: cente... | 3 | 1,369 |
Connecting to vimeo video through firebase database issue | <p>I am building an app with several video files. I originally stored them in firebase storage and accessed them through putting their links in firebase data base.
On further inspection i think that storing them in fire base my be a bit expensive. so i looked around for alternative options and figured vimeo might be c... | 3 | 1,028 |
unable to navigate from fragment which has a list view to another fragment | <p>I have a fragment which contains a list view. Within that fragment I am attempting to navigate to another fragment as soon as one of the items in the list is clicked but I get an error stating that </p>
<blockquote>
<p>java.lang.UnsupportedOperationException: addView(View) is not supported in AdapterView</p>... | 3 | 1,042 |
I am unable to send a message using .php | <p>I am unable to send a message using .php.</p>
<p>Strangely, I have tested and been able to send messages in the past, but for some reason I now get the message '* The Message field must contain only letters, digits, spaces and basic punctuation ( ' - , . ), has a limit of 1000 characters & should not be left em... | 3 | 1,459 |
Java multiple input, and display in order | <p>I need a Java program that asks for the names of three runners and the time, in minutes, it took each of them to finish a race. Display the names of the runners in the order they finished. </p>
<pre><code> String name1=" ", name2= " ", name3=" ";
String fast= " ", mid= " ", slow= " ";
double faster=0... | 3 | 1,463 |
Creating attribute nodes from HTML style attribute value by XSL | <p>I'm trying to change a XML document into xsl:fo by using xslt. In some element nodes of the XML there is HTML style attribute like attribute node, and I want to change its value into separated attribute nodes</p>
<p>sample of XML is...</p>
<pre><code><books>
<book>
<price style="mycolor:... | 3 | 1,593 |
Incorrect Private IP EC2 Instance, Terraform | <p>Deploying an number of instances in AWS using terraform. The code is written to make use of specific private ip ranges. The code iterates through a range to provide the last two digits on an ip.</p>
<pre><code>IP_AA_MGMT_Windows = [for i in range(1, var.Number_of_AA_Candidates +1 ) : format("%s%02d", "... | 3 | 1,167 |
two date fields - one loses its value, the other works | <p>I have a form with two date input fields. The first field named <em>dateFrom</em> always loses its value at page reload while the second one named <em>dateTo</em> works perfectly. When I fill both fields, both values are passed to the UI Bean, and both are successfully used to filter the view (a list of items). The ... | 3 | 1,856 |
JSON unmarshal does not output in my code, works in goplayground | <p>After reviewing several questions, I have decided to ask my question. A few things I can say...</p>
<ul>
<li>The struct I am inserting json data into is exported, and so are its fields.</li>
<li>The struct I am inserting json data into was auto-generated by protoc.</li>
<li>The struct and code I am using works in ... | 3 | 1,178 |
AES-RIJNDAEL-256 in PHP slight difference | <p>I was to able to have a function in php which encrypts via CBC method in AES-RIJNDAEL-256 encryption , but when I tested the code I got a slight difference only in one letter which I can not understand where exactly came from , here is the php code and the image shows what is the different character</p>
<pre><code>... | 3 | 1,431 |
Multi thread to show java console log in GUI JFrame | <p>I got a little problem with Multi-thread </p>
<p>I created a java class <code>InformationConsole</code> to get my java console log, everytime when I use <code>System.out.print("...");</code> The message will send to a JTextArea, it works like a "connection" with java console and my JTextArea</p>
<pre><code>public ... | 3 | 1,251 |
How to get the values of each option HTML tag? | <p>I have a form with dropdown, the dropdown values have a correspoding values too. E.g. If the user choose the option 1 in the dropdown, the values under dropdown will be displayed. Now, I want to get the values of div.position for each option and displayed it in a dropdown too.</p>
<p>I tried to get the values, but ... | 3 | 1,775 |
Why is a multi dimensional array with one array different than more than one array? | <p>I'm not sure if I phrased this correctly, but basically, I have two arrays (see below). The first array only has one "segment" array, but when doing a var_dump, it shows an array of it's children (or not at all).</p>
<p>The bigger array has multiple "segment" arrays, and in the var_dump, you can see the array(5). <... | 3 | 3,788 |
Creating a small database using variables for constructor names | <p>I am trying to create an application that will let you </p>
<p>1 - add people to a small database</p>
<p>2 - append their name onto an array</p>
<p>3 - when retrieving information previously entered, the array will be used to select the person</p>
<p>4 - retrieve unique information of the person selected</p>
<... | 3 | 1,284 |
How can I get this vaue from XML? | <p>I have this XML :</p>
<pre><code><meteo_italia>
<localita>
<id>2861</id>
<nome>Foppolo</nome>
<prov>BG</prov>
<capoluogo>0</capoluogo>
<regione>LOMBARDIA</regione>
<previsione time="2011-10... | 3 | 1,205 |
Why "xargs -I {}" gets errors "wc or ls: {}: open: No such file or directory" but "xargs without -I {}" works? | <h4>What works: <code>xargs</code> without <code>-I {}</code></h4>
<p>I find all ".txt" files in my documents folder (about 5000 found) and use <code>wc -l</code> on them.</p>
<pre><code>find . -type f -name "*.txt" -print0 | xargs -0 wc -l >| ~/Downloads/xargs_wc.txt
</code></pre>
<h4>Problem: <... | 3 | 1,913 |
Handling Multiple Inputs with a Single onChange Handler in React | <p>I have a Controlled Component which manages multiple inputs (range and checkbox) with a single handleChange method. </p>
<p>My range and checkbox are not responding to events. I have been using this <a href="https://www.pluralsight.com/guides/handling-multiple-inputs-with-single-onchange-handler-react" rel="nofollo... | 3 | 1,274 |
Is it possible to sink kafka message generated by debezium to snowflake | <p>I use <a href="https://github.com/debezium/debezium-ui.git" rel="nofollow noreferrer">debezium-ui repo</a> to testing debezium mysql cdc feature, the message can normally stream<br />
into kafka, the request body of to create mysql connect are as follows:</p>
<pre class="lang-json prettyprint-override"><code> {
... | 3 | 1,435 |
Storing classes in boost::variant | <p>Someone recommended me to use boost::variant as shape variable to store different types of shapes in it. But, when implemented boost::variant to my code, I got an error while compiling. Error says: 'Shape': base class undefined and more errors.</p>
<p>Here is my code (Object.h):</p>
<pre><code>using Shape = boost:... | 3 | 1,045 |
WPF MultiDataTrigger not working | <p>So i have polygon:</p>
<pre><code><Polygon Points="1.875,0.875 2.75,13.875 18.875,11 16.625,-3.375 1.875,0.875 "
Style="{ StaticResource BlockView}"
Name="KEY_1"
Canvas.Left="35"
Canvas.Top="211"
attachedproperty:UtilityFunctions.IsDualModeActive="... | 3 | 1,744 |
Office Excel VSTO Workbook Project Application.ThisWorkbook COMException | <p>I created a new VSTO Excel Workbook Project and only attempt to get the workbook in which the macro is running using "ThisWorkbook"</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml.Linq;
using Microso... | 3 | 1,044 |
Why does a MongoDB document hide most of its properties when doing console log? | <p>I have a MongoDB document, and I can access a document by doing this:</p>
<pre class="lang-js prettyprint-override"><code>let profileData;
try {
profileData = await profileModel.findOne({ userID: message.author.id });
if (!profileData) {
let profile = await profileModel.create(aBlueprintObject);
... | 3 | 10,588 |
Mysql make nodejs server crash | <p>So when I'm trying to connect to my database my nodescript crash...</p>
<p>This is my code :</p>
<pre><code> app.get('/login', (req, res) => {
res.setHeader('Content-Type', 'application/json');
const queryObject = JSON.stringify(url.parse(req.url,true).query);
var queryParsed = JSON.parse(queryObje... | 3 | 1,167 |
Different results obtained when using MSVC compiler and GCC compiler.How can I achive the same ouput as gcc in msvc(visual studio)? | <p>Trying to run the following shortest path algorithm code. When I tried running the code on visual studio 2019, there was an unexpected output for the same code which I ran on a GCC compiler. </p>
<p>Is there any way I can get the same output in the MSVC compiler(Visual Studio 2019)?</p>
<p>The code:</p>
<pre><co... | 3 | 2,667 |
JPA - Retrieving records from various entities that share the same ForeignKey after an ID is passed in at the API | <p>Consider the following dummy data entities and its defined relationships:</p>
<p><strong>Entity Business</strong></p>
<pre><code>@Entity
@Table(name = "business")
public class Business {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
public Long id;
@OneToMany(mappedBy = "Business")
pub... | 3 | 1,141 |
gradle issue "main" groovy.lang.MissingPropertyException: No such property: baseDir for class: org.apache.catalina.core.StandardEngine | <p>It is likely a simple issue but I am not seeing it right now.</p>
<p>The command that I run is gradlew.bat appRun --stacktrace
My Expectation: That I will have a running web application. (Or at minimum not get any error message)</p>
<p>My Actual: I get an stacktrace error message that stated</p>
<p><strong>"main"... | 3 | 1,321 |
Why is my python discord bot not working? | <p>I have a problem with my discord ticket bot i made with python. A half year ago the bot worked really well and did what he had to do, but now the bot isnt reacting to any commands he should react to. Maybe you can help me finding the wrong code or know if there were any python updates, that can be relevant for this.... | 3 | 1,517 |
Disabling submit button onSubmit in Angular 9 web app so multiple form submissions do not occur | <p>I have an issue with my Angular 9 application sending multiple form submissions when a user clicks the submit button multiple times, I would like to disable the submit button once it has validated and submission is triggered up until the form has submitted and reset, I have designed the form to use modals for when a... | 3 | 3,949 |
can't do video chat with peer.js | <p>I'm following <a href="https://dev.to/arjhun777/video-chatting-and-screen-sharing-with-react-node-webrtc-peerjs-18fg" rel="nofollow noreferrer">this website</a> to make a video call in react.
I slightly changed the code in connection.js for my pure javascript project, but other files are same as the tutorial.
Here i... | 3 | 3,271 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.