title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
yii2 gridview filter on related column | <p>I have joined 2 tables on my model search with </p>
<pre><code>$query = Surveys::find()->select('surveys.*,regions.name AS region_name, published.description as published_name');
$query->joinWith(['region']);
$query->joinWith(['published0']);
</code></pre>
<p>I have now added sorting for t... | 2 | 1,414 |
Ember-cli build error-- The Broccoli Plugin: [broccoli-persistent-filter:TemplateCompiler] failed with: | <h2>Build error</h2>
<pre><code>corporate-dashboard-app/templates/geospatialview.hbs (in
H:\learning\Udacity\Udacity Senior Web Developer Nanodegree\project
4\Corporate
Dashboard Application\p1\corporate_dashboard-
app\tmp\broccoli_persistent_filtertemplate_compiler-input_base_path-
K5dlxt4H.tmp)
</code></pre>
<h2... | 2 | 1,664 |
(Edit) How to dll export a template specialization in Windows, with the source declared in a cpp file | <p><strong>Edit</strong> This question has been heavily modified</p>
<p>I am trying to export a template specialization from a dll that is defined in a cpp file (purely for the purpose of exporting the template).</p>
<p>The first attempt ("First Attempt") at this based on using dllimport/export in the header turned o... | 2 | 1,119 |
Multi-Table Invoice SUM Comparison | <p>Say I have 3 tables in a rails app:</p>
<p><strong>invoices</strong></p>
<pre><code>id | customer_id | employee_id | notes
---------------------------------------------------------------
1 | 1 | 5 | An order with 2 items.
2 | 12 | 5 | An order with 1 item.
3 | 17... | 2 | 1,658 |
Operator Overloading - no match for ‘operator!=’ (operand types are | <p>I'm fairly new/in the process of learning C++ on a university level and in one of my assignments i keep getting an error that I have no idea how to solve, I'd appreciate it if you veterans and/or geniuses could help me/nudge me in the right direction.</p>
<p>I seem to be having a problem in the implimentation of my... | 2 | 1,458 |
java.lang.RuntimeException: Error receiving broadcast Intent | <p>I am using <strong>"Broadcast Receiver</strong>" very first time.
My main theme is read notifications from status bar and display it in a listview.</p>
<p>But when i am calling <em>Broadcast Receiver</em> i am getting bellow exception and app is closing with crash as a result.</p>
<pre><code>07-13 14:19:49.081: E/... | 2 | 1,533 |
linq query Map repeating EDI data to XML structure | <p>Long story (see below for details) short, does anyone know I can frame a query to return repeating data into a known xml format, so each node and child elements are returned separately for a given criteria?
<br />
<strong>EDIT:</strong> I guess my question boils down to: How can I query repeating data, and get a gr... | 2 | 1,830 |
Grails 2.1 disables log4j config on JBoss | <p>We recently upgraded our app from Grails 1.3.7 to 2.1, which builds under maven, and made a bunch of changes to the pom file and other config- and build-related files of grails to get things working.</p>
<p><strong>Here's the issue:</strong> when our JBoss server deploys our grails war file, something appears to ca... | 2 | 3,255 |
WKWebView crashes if user answers an incoming iMessage | <p>My apps have a significant crash -</p>
<pre><code>CALayer position contains NaN: [377.833 nan]
</code></pre>
<p>with the following stack -</p>
<pre><code>Fatal Exception: CALayerInvalidGeometry
0 CoreFoundation 0x18283afe0 __exceptionPreprocess
1 libobjc.A.dylib 0x18129c538 objc_... | 2 | 1,578 |
radsplitter on master page - adjust content height on page load | <p>I'm using the Telerik RadSplitter on my site as a collapsible nav container. But I want the Nav in the SiteMaster (aspx with C# behind). When the page loads, the RadPane is not growing to fit the loaded page content. Seems like the Splitter is not recognizing the content size.</p>
<p>SITE.MASTER CODE:</p>
<pre><co... | 2 | 1,568 |
mysql 5.7. GET_LOCK not working any more | <p>After upgrading to mysql 5.7 <code>GET_LOCK</code> stopped working as it used on mysql 5.5 and as I expected to work. I am aware of the changes regarding the <code>GET_LOCK</code> in 5.7. as described <a href="https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_get-lock" rel="noreferrer">he... | 2 | 1,407 |
Insert into a symfony 3 table | <p>I need to make a simple insertion in the database,</p>
<p>Here is the code in the controller:</p>
<pre><code> public function verifCreateOrder(Request $req){
$store = 1;
$provider =2;
$creation = $creation_start = $req->get('creation_start');
$delivery = $creation_start = $re... | 2 | 1,273 |
JavaFX border correct width in Scene Builder but not on running program | <p><strong>The Problem:</strong>
I have a HBox called MenuContainer within which I have a MenuBar, I have used FXML to lay things out and CSS to style. I want a 1px border beneath my MenuContainer so I gave it the style: "-fx-border-width: 0px 0px 1px 0px; -fx-border-color: black;" I know that the style sheet is proper... | 2 | 3,369 |
RestFB: Exception: Unable to convert Facebook response JSON to a list of java.lang.String instances | <p>I have desktop application which reads Facebook Messages (unified_message in FQL terms), which left on my Facebook Page by other Users.
The problem is: when User writes message, which include link, Facebook automatically attaches some object to the message. And this attachment causes exception in RestFb Lib. Unfortu... | 2 | 4,180 |
How do i add a new resource identifier for a drawable in an app decompiled by apktool? | <p>I'm trying to inject a imageview in to a decompiled apk's smali code. But the drawable used by the imageview needs it's own unique resource identifier. So far i have been unsuccessful in adding a new resource identifier without getting building errors from apktool. Any help would be greatly appreciated. Here are th... | 2 | 2,151 |
No logging and repository root has appender but Logger has no appender | <p>I'm sure I'm missing something basic. I'm trying to enable log4net logging as part of an XUnit integration test, but no log file is getting written to disk. </p>
<p>I've tried specifying the log configuration using both using a config file and programmatically:</p>
<p><strong>Config file:</strong></p>
<pre><cod... | 2 | 1,232 |
Control Template Binding Error | <p>Below is part of a style for a TabItem, for which I am getting binding errors similar to the one shown below.</p>
<p>How can I clean the code up?</p>
<h1>Error</h1>
<pre><code>System.Windows.Data Error: 40 : BindingExpression path error: 'HoverForeground' property not found on 'object' ''TabItem' (Name='')'. Bind... | 2 | 4,109 |
How to make cv::setMouseCallback function work | <p>I've seen a few questions that are probably the same. I am still unable to make my code work after reading the answers. So I am sorry in advance if I am repeating the posts.</p>
<p>I managed to write this code :</p>
<pre><code> #include <opencv2/core/core.hpp>
#include <opencv2/highgui/high... | 2 | 6,901 |
react-select not resetting value on change of state | <p>i have 2 select country inputs that i want to reset to default placeholder when resetting all the state inside a form. I am using 2 state variables to store the countries, i got a function that reset my state but select inputs does not reset to default. It stays selected on last country selected. I reset the state t... | 2 | 1,344 |
Intermittent Error 500 (concurrent request?) | <p>I have a web server with classic apache-nginx for heavy and static traffic. In apache webserver, I use mod_rewrite for clean ugly urls and process php vía mod_fcgid. All works fine, but I have Intermittent Error 500 on <strong>only some</strong> requests, occasionally. </p>
<p><strong>NOTE:</strong> Error 500 not l... | 2 | 1,063 |
Form-encoded method must contain at least one @Field | <p><strong>I am unable to understand what is the issue here :
is it library issue?</strong></p>
<blockquote>
<p>java.lang.IllegalArgumentException: Form-encoded method must contain
at least one @Field.
for method ApiInterface.hitCheckVersionApi$79c79d47
at retrofit2.ServiceMethod$Builder.method... | 2 | 1,741 |
PyCharm can't open file from Docker container: No such file or directory | <p>I have a docker-compose.yml file that creates a Python image (named "flask") and a Postgres image (named "database"). When I attempt to run any of my Python scripts/files, I get the following message from my Python image:</p>
<p><code>flask | python: can't open file '/home/username/Projects/ProjectName/app/sr... | 2 | 1,493 |
activate virtual environment using mpirun in interactive qsub environment | <p>I am using the openmdao 0.13 python module in a project. This module is only available as a virtualenv. When I activate the virtual env, it appears to only activate on one node. What could account for this strange behavior? Why are processors on non-primary nodes unable to load the virtualenv?</p>
<pre><code>$ mpir... | 2 | 1,174 |
How can I make an HTML page (not JSP) communicate with a Servlet? | <p>With the below servlet code,</p>
<pre><code>package com.example.tutorial;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ServletExample extends Ht... | 2 | 1,532 |
FFMPEG Unable to Decode Quicktime QDMC Stream (No decoder for stream) | <p>We are using FFMPEG to convert iPhone video to MP4. This requires an AAC decoder which is not included in any binary distributions of FFMPEG (due to licensing issues). The solution is to download the FFMPEG source and compile it yourself. I've done this, apparently incorrectly, as I cannot decode the audio stream... | 2 | 13,243 |
How to pass variable from java to jsp? | <p><strong>EmployeeController.java</strong> </p>
<pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
Employee employee = new Employee();
employee.setFirstname(request.ge... | 2 | 3,270 |
Bash script for update multiple database with multiple file | <p>I need to create a script for the updating of multiple database with different files.
Follows the description of the current process:</p>
<pre><code>show database;
+--------------------+
| Database |
+--------------------+
| information_schema |
| Audi |
| Bmw |
| Ferrari ... | 2 | 1,167 |
rails delayed_paperclip process_in_background not working | <p>I have an attachment model having a picture(the rest of the definition exist but line below is enough)</p>
<pre><code>has_mongoid_attached_file :picture
</code></pre>
<p>I want to make the resizing process happen at background by using "delayed_paperclip" gem having a method named "process_in_background" :</p>
<p... | 2 | 2,310 |
Android, Trying to draw/record a bike ride on a map using polylines | <p>I'm still getting to grips with android and trying to make an app that will draw on a Google map the path of where I have cycled. I have successfully displayed the map and can draw a simple polyline between two co-ordinates using this code:</p>
<pre><code>//Draws a thin red line from London to New York.
Polyline li... | 2 | 12,074 |
How to detect when a pattern changes in a pyspark dataframe column | <p>I have a dataframe like below:</p>
<pre><code>+-------------------+--------+-----------+
|DateTime |UID. |result |
+-------------------+--------+-----------+
|2020-02-29 11:42:34|0000111D|30 |
|2020-02-30 11:47:34|0000111D|30 |
|2020-02-30 11:48:34|0000111D|30 |
|2020-02-30 ... | 2 | 2,700 |
Bad queries error handling in Spark Cassandra Connector | <p>I have a Spark Streaming application that has multiple data flows (DStreams) that write in the same Cassandra table. When testing my application on a large amount of random data, I'm receiving an error from Spark Cassandra Connector that has very little information helpful for debugging. The error looks like this:</... | 2 | 1,672 |
how to disable hyperlink and copy/paste menu on iOS and webviewdidfinishload not called | <p>I'm trying to disable hyperlink and copy/paste menu on iOS UIwebview
so I googled and there were a lot of answers.
then I encountered with another problem 'webviewdidfinishload not called'
so I add my code to ask your help. (Iam sure I properly connected IBOutlet)</p>
<p>In additional, I still not get the idea of p... | 2 | 1,541 |
How to store java objects in mysql using jpa? | <p>I have converted the JSON into POJO using GSON.
I am looking to store Employee entity object into mysql using JPA's save() method. But I am getting an error saying "cannot determine the type for Address". So how should I go with this?</p>
<p>Here is the error:
Could not determine type for : Address</p>
<p>Employee... | 2 | 1,318 |
jeasyui - how to replace text with image | <h1>Is there a way in jeasyui to replace text with image? I need to replace words "Yes" and "No" with images in all results under th Status. Here's what I have:</h1>
<pre><code><script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
<... | 2 | 1,616 |
Libvirt Ubuntu Installation HVM Issue | <p>So I've been trying to spin up an Ubuntu server install using virt-install, and I can't seem to get it to work. It fails out with the following message:</p>
<pre><code>ERROR Couldn't find hvm kernel for Ubuntu tree.
</code></pre>
<p>I've seen forum posts all over about this issue, but all of those seem to say t... | 2 | 2,402 |
How to traverse dynamic nested json in c# recursively | <p>If dataGeneratorType is range then the value can be anything between dataGeneratorStart and dataGeneratorEnd. If dataGeneratorType is array with no length property then the value will be one value randomly selected from the array, otherwise it be two randomly selected values that equals to the length. If it is the o... | 2 | 1,168 |
Android LinearLayout always full width | <p>I'm trying to design something like this for tablet devices</p>
<p>-640x480 area (left bound)-------flexible empty width--------control area(right bound)-</p>
<p>The flexible width is depending on the Tablet size bigger or smaller.
The Scrollpanes are for debugging on mobile devices only.</p>
<pre><code><?xml ... | 2 | 1,200 |
SwiftUI - How to handle camera permissions? | <p>My ImagePicker works as expected. However, I'm trying to implement camera permission handling and I seem to have gotten stuck. I am receiving the error: "Missing return in function expected return UIImagePickerController" and rightfully so. I am not sure where else I can put the switch statement to carry o... | 2 | 1,157 |
Single page app submit binding on form tag not working | <p>I've been working on a single page app based on Knockoutjs' excellent <a href="http://learn.knockoutjs.com/#/?tutorial=webmail" rel="nofollow">mail example</a> of creating a 'single page app'. Steve Sanderson's example uses jQuery templates that reside in the page for all the forms in the example.</p>
<p>I'm tryin... | 2 | 1,063 |
How to configure ProGuard for an Android release build with Kotlin | <p>I added Kotlin 1.2.71 to my Android (Java) application project.
The project is configured for Java 8:</p>
<pre><code>compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
</code></pre>
<p>Here are the Kotlin changes:</p>
<pre><code>classpath "org.jetbra... | 2 | 1,293 |
How to draw the `normalizedPoints` of `VNFaceLandmarkRegion2D` on my UIView? | <p>I am trying to draw a circle to represent the result of leftPupil detected by <code>VNDetectFaceLandmarksRequest</code>.</p>
<p>By the naming convention of <code>normalizedPoints</code>, I guess it is normalized by some rules. So, how can I scale and translate the point to my <code>AVCaptureVideoPreviewLayer</code>... | 2 | 1,521 |
How to get the ip address with an emulator android | <p>Hello
My aim is to get the local address using the emulator sdk 2.2.
I wrote this code but when I run it tell me to close the application.
this is the code</p>
<pre><code>package exercice1.identificateur.ex;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import jav... | 2 | 1,343 |
Observe Data from Room using View model in Kotlin | <p>I am creating a social media app and I am following <code>MVVM</code> Pattern
I am stuck at <code>observing</code> data from DB . As far I know is the <code>Dao</code> methods have to be executed on the background <code>thread</code>. But I am not able to implement <code>viewmodel</code> from <code>Repository</code>... | 2 | 1,766 |
CORS policy error with angular 11 and php api | <p>Here is my angular --version log</p>
<pre><code>Angular CLI: 11.1.2
Node: 10.19.0
OS: linux x64
Angular: 11.1.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
-----------------------------... | 2 | 1,431 |
why is text in Kivy spinner vague / blurry | <p>I have a spinner used to select items as dropdown. The text in the textfield itself is normal. But the text in the spinner items looks blurry/vague, see the attached image. How could I resolve this?</p>
<p><a href="https://i.stack.imgur.com/0cfZ1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0c... | 2 | 1,881 |
How to send spinner value to server using JSON in Android? | <p>I am new on Android. I am not able to send spinner value to jsonobject. I am getting an error: "selected cannot be resolved to a variable". Following is my code. Please tell me what I need to do. Thanks in advance. </p>
<pre><code>public class SignupActivity extends Activity implements OnItemSelectedListener {
pub... | 2 | 3,545 |
Last few lines of CSV file gets cut off | <p>I have the following program that runs on specified csv files: </p>
<pre><code>using System;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
string path = @"C:/Documents and Settings/expn261/Desktop/SAPHR_Joiners_20110812.csv";
string strCharater = File.R... | 2 | 1,148 |
Sveltekit: Cannot find module 'swiper' | <p>I tried the sveltekit-swiper example from
<a href="https://swiperjs.com/svelte" rel="nofollow noreferrer">https://swiperjs.com/svelte</a></p>
<pre><code>08:07:51 [vite] Error when evaluating SSR module /src/routes/s.svelte: Error: Cannot find module 'swiper' from 'C:/Svelte/tw09swipe/src/routes'
at Function.reso... | 2 | 2,634 |
How to render multiple videos on a sphere using three.js | <p>Three.js is new to me, so I am a bit stuck on this.</p>
<p>I read the answer to this question: <a href="https://stackoverflow.com/questions/20350251/using-multiuple-textures-on-a-sphere-three-js">Using multiuple textures on a sphere [Three.js]</a></p>
<p>The answer suggests the user to use a cube to load the textu... | 2 | 3,672 |
how to add bitcoin in Peatio? | <p><a href="https://i.stack.imgur.com/E3WDR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E3WDR.png" alt="enter image description here"></a>I have created test bitcoins but how to deposit it in Peatio.</p>
<p>currencies.yml</p>
<pre><code> - id: 2
key: satoshi
code: btc
symbo... | 2 | 1,024 |
Composite index not used in mysql | <p>According to MySQL docs a composite index will still be used if the leftmost fields are part of the criteria. However, this table will not join correctly with the primary key; I had to add another index of the left two fields which is then used.</p>
<p>One of the tables is memory, and I know that by default memory... | 2 | 2,199 |
dwrService.js NOT FOUND while running DWR with Spring MVC | <p>I have created a Spring DWR integration referring from <a href="http://krams915.blogspot.com/2011/01/spring-mvc-3-and-dwr-3-integration.html" rel="nofollow">here</a>.</p>
<p>When I run the project I get a pop up "NOT FOUND" in the browser the response for dwrService.js is not found. Engine.js and util.js are loaded... | 2 | 3,264 |
Xcode: push notifications to build on device work but not to TestFlight/App Store install on same device | <p>I've realized that I can test push notifications in development and prod builds on local devices- but they don't work with real installs from TestFlight/App Store.</p>
<p>I think this has to do with Xcode's signing of builds vs. archives, but I cannot figure out what to do to fix my current configuration. I use the... | 2 | 1,243 |
Disk Read Error while loading sectors into memory | <p>I tried to develop a bootloader using <a href="https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf">this</a>, but when it is run it shows:</p>
<pre><code>disk read error!
</code></pre>
<p>If I ignore it, in a later part, it shows me wrong memory mapping. I also followed some other sources too b... | 2 | 1,364 |
How do I check if login credentials is present in mongodb using nodejs? | <p>I am making a small login and registration using node.js and mongodb with dependencies such as express, mongoose and body-parser.
I am not able to make the login part work. In my case, even with the wrong credentials, the login takes place. Please look at my code and help me with it.</p>
<p>This is my index.js node... | 2 | 1,438 |
woocommerce custom shipping method not appearing in shipping zone | <p><strong>EDITED - Progress made on original post</strong></p>
<p>I have created a simple custom shipping method plugin stub (see code below). </p>
<p>The plugin is registered and <strong>now</strong> appears in the shipping method dropdown when I'm creating a shipping zone. However when selected the custom field do... | 2 | 2,566 |
How to use ChaCha cipher in SSL ciphersuite using java | <p>I was trying to find way to edit the supported cipher suite in a Java SSL client so I can offer a specific list of cipher suites. </p>
<p>One suggested solution was to use the <strong><em>SSLSocketFactoryEx</em></strong> class that was posted by @jww in this link: <a href="https://stackoverflow.com/questions/103759... | 2 | 1,268 |
can't load jdbc database driver for MS Microsoft SQL | <p>I tried to set a connection between a Servlet and MS SQL SERVER 2012 following the instructions reported on <a href="https://i.stack.imgur.com/rTfRr.png" rel="nofollow noreferrer">this page</a></p>
<p>This is my code:</p>
<pre><code>protected void doGet(HttpServletRequest request, HttpServletResponse response)
... | 2 | 1,193 |
jQuery condition for animation | <p>am brand new to javascript and jQuery so this question might seem dumb but i couldnt find any exemple or doc on it.</p>
<p>I got this function for a little color animation roll-over and roll-out which works fine:</p>
<pre><code>$(".box_nav").hover(function(){
jQuery(this).stop(true, false);
... | 2 | 1,106 |
How to modify yahoo weather appearance on my page? | <p>I've just got the basic yahoo weather feed on my page...</p>
<p>The following code renders the image below:</p>
<pre><code>$ipaddress = $_SERVER['REMOTE_ADDR'];
// API username and key masked as sensitive and irrelevant to this question
$locationstr = "http://api.locatorhq.com/?user=MYAPIUSER&key=MYAPIKEY&... | 2 | 1,456 |
Node request entity too large body-parser limit set | <p>I do have a Node backend which serves my react frontend by </p>
<pre><code>app.use('/', express.static(`${__dirname}/client`))
</code></pre>
<p>The body-parser limits are adjusted by </p>
<pre><code>app.use(bodyParser.json({limit: 10 * 1024 * 1024}));
app.use(bodyParser.raw({limit: 10 * 1024 * 1024}));
</code></... | 2 | 5,110 |
How get base address its shared library? | <p>i want to get address of testlib.so from libc.so.6 base address.(because of ASLR)</p>
<p><code>testlib.so</code> is shared library.</p>
<pre><code>gcc -o ./testlib.so ./testlib.c -fPIC -shared -ldl
</code></pre>
<p>i makied python code to find memory mapping status.</p>
<pre><code>from ctypes import *
#libc = C... | 2 | 1,327 |
Could not resolve dependencies for a Module Based Maven project | <p>I am facing a problem while building a Maven module. I am following module-based architecture, I have a parent project named Bikewale and it's child modules named Bike-repo, Bike-service, and Bike-web. When I am trying to add Bike-repo dependency in Bike-service's pom file I am facing Maven Build Failure error sayin... | 2 | 1,138 |
Moq, abstract class and virtual properties | <p>I am using <code>Moq</code> framework for Mocking.</p>
<p>I have a <code>SocialWorker</code> which derives from an <code>abstract DataWorker</code> class.</p>
<p>The <code>SocialWorker</code> has reference to couple of <code>Repositories</code> as a <code>virtual property</code></p>
<p>I am trying to run the foll... | 2 | 2,063 |
Python Program with sys.stdin gives error - Hadoop Streaming | <p>I am trying to learn hadoop streaming. I just wrote a three line python program to check whether everything is working fine but got stuck.</p>
<p>The code :</p>
<pre><code>#!/usr/bin/env python
import sys
for line in sys.stdin:
print "Inside Loop"
</code></pre>
<p>The command I used to execute :</p>
<pre><... | 2 | 1,184 |
StackOverflowError in recursive binary search in file in java | <p>The <code>filepointer</code> gets stuck at a point resulting in a <code>StackOverflowError</code>. Can you point me to what exactly is wrong here? The error exactly is: <code>java.lang.StackOverflowError</code></p>
<p>I am doing a seek to find the location as record width is not fixed.</p>
<p>Here is the piece of ... | 2 | 1,134 |
Position LinearLayout inside RelativeLayout dynamically | <p>I'm trying to position a <code>LinearLayout</code> below another element inside a <code>RelativeLayout</code>. </p>
<p>This is my xml:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:lay... | 2 | 2,220 |
I am trying to retrieve data from a database using ajax and populate in form that is in a bootstrap modal | <p>I need a help here when I click on the edit button on the image below i expect to see data populated on a form in a bootstrap modal window I am using jquery ajax method to populate the data in the form of
<a href="https://i.stack.imgur.com/jokam.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/joka... | 2 | 5,238 |
Choose image based on switch and case for notifcation | <p>At the moment when I press a button the image is always the phone but what I want is to be able to change this picture depending on what button is pressed.</p>
<p>eg. button imageButton1 is pressed set the notification image to the car</p>
<pre><code>NotificationManager nm;
static final int uniqueID = 101;
@Overr... | 2 | 1,070 |
Redux Persist state is empty after rehydration | <p>I'm facing a strange issue. The rehydration worked in my app until I switched to remote dev tools that are being ran on a local server. Now I can see that the REHYDRATE is indeed called but all of my states remain empty after! What could be the possible cause of this? If I don't use the devtools it doesn't work eith... | 2 | 1,944 |
Empty map showing in my application | <p><br/>
I'm doing an appplication that uses Google Maps, but the maps are not showing, and the only thing I see are blank squares.</p>
<p>Here is my Manifest:</p>
<pre><code><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fossa.damiano.mapsexample"
android:versionCode="1"
... | 2 | 8,755 |
Customizing Hybris accelerator storefront controllers in an addon | <p>I'm using <strong>Hybris 6.3</strong> and would like to follow the best practice of customizing the accelerator storefront controllers using an addon. This is done to make upgrading to a newer storefront much easier.</p>
<p>For example, the accelerator defines a Minicart controller similar to</p>
<pre class="lang... | 2 | 1,071 |
"Module "QtQuick" version 2.7 is not installed" Error on Raspberry Pi | <p>I am attempting to develop a GUI for some Python code that I have already written for an insulin pump. I've been using QT Quick as it seems the easiest for a beginner (it doesn't need to be super fancy, it just needs to work). Although the qml script runs fine when I try to run it on my computer, when I attempt to r... | 2 | 1,287 |
UI difference between XAML and C# code behind | <p>I have built a UI block in XAML that will represent a customizable web page test automation. No problem so far.
I'm now trying to translate these UI elements from XAML to the C# code behind, so I can generate the UI blocks dynamically, and there are differences I can't explain: several element are not displayed when... | 2 | 2,482 |
Periodic thread fails real-time in Xenomai | <p>I'm creating a periodic thread which outputs a square signal on an analogic output. I'm using Posix Skin and Analogy from the Xenomai API.</p>
<p>I tested the real-time performance of my code using an oscilloscope and looking at the latency on the square signal (whose frequency is 1kHz). I am supposed to achieve &l... | 2 | 1,420 |
Javasscript: load image with base64 not working | <p>I been trying to use <a href="https://stackoverflow.com/a/15717721/1129332">this</a> solution to load Image. But I am getting an error that my url is not correct.</p>
<p>This is what I am trying to load:</p>
<pre><code>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsAAAAJACAYAAACDn9A3AAAABHNCSVQICAgIfAhkiAAAIABJRE... | 2 | 2,747 |
handle collapsing html table by click on button and not by click to row | <p>I am new to Javascript and already set up the collapsing table below with jquery. This already works. I can expand or collapse the complete table or expand and collapse columns by clicking on the row.</p>
<p>But this also changes the view by setting options like BRS or set (see HTML).</p>
<p>What I want is so cont... | 2 | 2,203 |
Error while running standalone App example in Scala using the Spark API | <p>Iam unable to run the spark example
(<a href="https://spark.incubator.apache.org/docs/latest/quick-start.html#a-standalone-app-in-scala" rel="nofollow">https://spark.incubator.apache.org/docs/latest/quick-start.html#a-standalone-app-in-scala</a>).</p>
<p>sbt package command ran successfully. But sbt run command giv... | 2 | 1,397 |
Spring MVC Jsonp filter incorrect response. (Content length cuts of response output) | <p>I'm trying to implement this <a href="http://jpgmr.wordpress.com/2010/07/28/tutorial-implementing-a-servlet-filter-for-jsonp-callback-with-springs-delegatingfilterproxy/" rel="nofollow" title="Jsonp Filter">Jsonp Filter</a>.<br />
However, whenever I call my url <code>/server/api.jsonp?callback=something</code> it c... | 2 | 2,450 |
Copying books using dynamic programming | <p>I am implementing the dynamic programming solution for copying books problem. The idea for the solution is taken from <a href="http://www.csie.ntu.edu.tw/~hsinmu/courses/_media/ada_13fall/midterm2013_sol.pdf" rel="nofollow noreferrer">here</a> and <a href="https://stackoverflow.com/questions/23680188/copying-books-u... | 2 | 2,047 |
How to zip a file using symfony | <p>I uploaded a file and I want to zip it and then encode it in base64. The upload is going well. But when it comes to zipping, I encounter errors.
Here is my controller</p>
<p>FileController.php</p>
<pre><code><?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Sy... | 2 | 1,393 |
Testing sqlite database application on device | <p>I am working on a database application that works fine in the simulator (inserts, updates, deletes all function correctly). My problem starts when attempting to install/run the application on an iPhone.</p>
<p>On the initial run, the program creates an editable version of the database in the documents directory of... | 2 | 1,104 |
MappingException trying to use POJO for domain object in Grails | <p>I have couple of POJOs:</p>
<pre><code>public class FlightBase {
public AirportBase getDeparture() {
return departure;
}
public void setDeparture(AirportBase departure) {
this.departure = departure;
}
public AirportBase getDestination() {
return destination;
}
... | 2 | 1,885 |
VirtualizingStackPanel and TextWrapping bug? Windows Phone | <p>I have a strange behaviour with <code>VirtualizingStackPanel</code>. I have a list with items that contains <code>TextBlock</code> with <code>TextWrap="Wrap"</code>. Here is the code:</p>
<pre><code><ListBox x:Name="messagesList" ItemsSource="{Binding Messages}" >
<ListBox.ItemContainerStyle>
... | 2 | 1,205 |
Is it possible to tell cassandra to run a query only on the local node | <p>I've got two nodes that are <em>fully</em> replicated. When I run a query on a table that contains 30 rows, cqlsh trace seems to indicate it is fetching some rows from one server and some rows from the other server.</p>
<p>So even though all the rows are available on both nodes, the query takes 250ms+ rather than 1... | 2 | 1,293 |
LIKE in where clause using filter in Slick 3.2.1 (Scala) | <p>I am still fairly new to slick and very much learning.</p>
<p>I an trying to create a search functionality that would be quite simple with plain SQL. However, I am hitting some obstacles when I am trying to do the same with Slick.</p>
<p>Trying to go by example from here: <a href="http://slick.lightbend.com/doc/3.... | 2 | 2,421 |
How to change colormap in joypy plot? | <p>I have a dataframe which looks like this:</p>
<pre><code> Team Minute Type
148 12 1
148 22 1
143 27 1
148 29 1
143 32 1
143 32 1
</code></pre>
<p>I created a joyplot using the Python library <a href="https://github.com/sbebo/joypy" rel="nofol... | 2 | 1,357 |
Why can't I install a NuGet package which has target framework profile of 136? | <p>I am trying to install <a href="http://humanizr.net/" rel="nofollow noreferrer">Humanizer</a> (see also <a href="https://github.com/MehdiK/Humanizer" rel="nofollow noreferrer">GitHub</a> and <a href="https://www.nuget.org/packages/Humanizer" rel="nofollow noreferrer">NuGet Gallery</a> pages) using the NuGet package ... | 2 | 1,095 |
Get mysqli query as a string | <p>I am working on a project that requires a user to log in using an email address and a password. Doing that, I must test if the password the person has entered to see if it matches the one located in the database. I'm trying to get the MySQLi query (<code>SELECT password FROM users WHERE email='$email_login'</code>) ... | 2 | 1,155 |
Output with Thread Class and Runnable interface | <p>The two programs say both are implemented with the same logic namely, in one program, creating thread by extending Thread class and the other by implementing Runnable interface.</p>
<p>Here the output will be like "Print some values till i press ENTER or RETURN key", My problem is, when i run these two programs "... | 2 | 1,952 |
Mock injection in Spring using Spock not working | <p>So I am using the <code>Spring=Retry</code> library in my project and trying to run a test case for that.
I am loading the service DCS as a bean that returns a new object.
Its two dependencies SSService and AttributeService are loaded as beans as well. But these two are mocks.
When my test spec runs i can see insid... | 2 | 2,088 |
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.spring.webapp.lojavirtual.acesso.persistence.model.Usuario | <p>In my spring project, I have implemented a generic class to serve as base for all my Dao class. By example, my class UsuarioHome have this code:</p>
<pre><code>@Repository
public class UsuarioHome extends Dao<Usuario> {
public UsuarioHome() {
super(Usuario.class);
}
}
</code></pre>
<p>and m... | 2 | 9,241 |
Change Content of Target Div on Slide Change | <p>JQuery ubernoob here. I'm trying to get the text of an active slide into a target div to achieve something similar to this.</p>
<p><a href="http://www.davidchipperfield.co.uk/project/valentino_new_york" rel="nofollow">http://www.davidchipperfield.co.uk/project/valentino_new_york</a></p>
<p>I'm using Alvaro Trigo's... | 2 | 1,467 |
How to upload an image to SQLite Database? | <p>I am trying to create an application where the user uploads a picture and it gets saved in SQLite Database. So far i have successfully managed to upload the image to the application while following a tutorial , however i am not sure what to do to save it in SQLite so that when the activity closes and opens again the... | 2 | 1,418 |
How to print the request logs (like request url,request body, request queryParam) on supertest failure? | <p>I want to print or console log below details on failure for Supertest expect failure
for the below request on success no need to print any thing on success</p>
<pre><code>const result = await request(dummy_url).get("repos/Microsoft/TypeScript/pulls")
.set("user-agent", "Mozilla/5.0 (Ma... | 2 | 1,302 |
STM32 call to memcpy causes hardfault (the call to memcpy itself, not the execution of memcpy) | <p><strong>Situation:</strong> I am working with a crypto library called embedded disco, I have a demo working on my PC but when porting it over to the MCU I get a hard fault when executing a library procedure. In the faulting code, the library is trying to simply copy the content of one <code>strobe_s</code> struct in... | 2 | 1,422 |
Mongodb too many open files in system | <p>our software containing: </p>
<p>centos, nginx, kestrel http server, dotnet core (v2.0.8) application work with mongodb (v3.6.7)</p>
<p>kestrel http server sometimes stop responding, it seems that an error from mongodb driver connection like below logs on 3th line </p>
<p>what is causing this problem ? </p>
<p>i... | 2 | 3,474 |
Keycloak(Wildfly/Infinispan) in HA mode - issue in detecting other machines in the cluster | <p>As a result, when I put the machines under an ELB, the login doesn't work.
I have tried TCP and UDP for IP casting. Tried using TCPPING instead of MPING (although not sure whether I used them correctly).
Infinispan is being used for distributed caching.
Here is the default configuration, followed by the changes I ha... | 2 | 1,549 |
Issue while Fetching recurring items from Sharepoint Calendar | <p>I want to fetch all the items on a particular day. Programmatically the entry is added as recurring event, Now i need to fetch all the instances of recurring event, on each day as per the date selected by the user.</p>
<p>E.g: I have made 3 recurring entries on 12thSept and which ends on 21stSept with all three ha... | 2 | 1,572 |
Create ssh tunnel to remote docker container running Jupyter Notebook | <p>I'd like to create a ssh tunnel from my computer to a remote server to a docker container running Jupyter Notebook (computer>server>Docker container) that allows me to run a Jupyter Notebook in my browser on my computer.</p>
<p>The Docker container is hosted on a machine running OS X (El Capitan). Docker is using t... | 2 | 1,051 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.