title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
In vhdl, how to create a to_line function that works for all strings? | <p>In vhdl, how to create a generic function that takes a string and returns a line containing that string? Everytime, I try to do this I get syntax errors...</p>
<p>Here's my problem:</p>
<pre class="lang-sh prettyprint-override"><code>
$ vcom -2002 test1.vhd
** Error: test1.vhd(44): (vcom-1047)
Actual (string lit... | 3 | 1,169 |
Embedded system: Where's my memory? | <p>I have an ARM based embedded system. I just bring up the kernel (2.6.34). Below are some command outputs. I am not able to account for whole of RAM (128 M).</p>
<p>Kernel seems to be using 128 MB - 124368 kB = 6704 kB.</p>
<pre><code>Cache = 1672 kB
Slab = 3000 kB
</code></pre>
<p>But MemFree is only 100812 kB. H... | 3 | 1,812 |
Parsing XML that was received as an response in javascript, | <pre><code>function parsingXML(APIResponse){
var txt = APIResponse.responseXML;
if (window.DOMParser)
{
parser=new DOMParser();
xmlDoc=parser.parseFromString(txt,"text/xml");
}
else // Internet Explorer
{
xmlDoc=new ActiveXObject("Micr... | 3 | 1,819 |
When using Bootstrap "row" and "col-lg-3" classes, all the columns get height of longest column. How to fix this? | <p>I'm developing a simple layout using Bootstrap. It loads some data to columns using "row" and "col-lg-3" class. There are 4 columns in the view under "row" class. In the "col-lg-3" class, i added another "row" class and divided it into 2 columns of "col-lg-6". Please check the code here. Then it is easy to understan... | 3 | 1,580 |
EF Core - create relationship without primary/foreign keys | <p>I'm trying to configure EF to include documents when retriving a user or product. The entity Document has a ReferenceId property which should store either UserId or ProductId. This way, when I save a document for a user or product, the UserId or ProductId is saved to <em>Document.ReferenceId</em>.</p>
<p>Entities:</... | 3 | 1,192 |
How to access elements(inputs, selects) of a dynamic form | <p>I am having a dynamic form which creates fields dynamically by pressing "+" button.</p>
<p>This form is not binded in the document but generated when we click the + button.
I need to access the form values, how do I achieve that.</p>
<p>what should I use form "get" or "post" . </p>
<p>I have tried by using formda... | 3 | 2,066 |
Handlebars: Access has been denied to resolve the property "_id" because it is not an "own property" of its parent | <p>I'm new to JS and Handlebars, and would really appreciate some help with a project I'm working on. I'm using AJAX to create a new category, and am trying to then fetch that category back from the server (currently, if I refresh, the new category disappears. I understand AJAX is asynchronous, and am trying to get a r... | 3 | 1,715 |
How to run xpath on specific xml using xslt | <p>The question is almost same as one of my question here <a href="https://stackoverflow.com/questions/49225689/how-to-edit-specific-xml-using-xpath">edit specific xml using xpath</a></p>
<p>But now the problem is different. The xml structure is little different now. The solution on earlier question will not work here... | 3 | 1,327 |
Catel setting DataContext for nested view | <p>Please help me with a problem. Why is the constructor with the signature does not work. And how to determine DataContext for ServerTabView? As I understand, now DataContext for ServerTabView inherited from a parent - MainWindowView, because ServerTabView is nested in it. Then how to get the right to receive ServerTa... | 3 | 2,744 |
How to maintain the state of button in cutom listview of android while scrolling | <p>I have custom <code>ListView</code> with three <code>TextView</code> three <code>Button</code> and three <code>Chronometer</code>. And the situation is I am loading the <code>ListView</code> properly.But while loading <code>ListView</code> I am disabling some button in the <code>ListView</code> by checking one param... | 3 | 9,297 |
pyrocms page throwing error 500 | <p>I installed pyrocms on a clients server with godaddy, its regular hosting and he has multiple domains linked to folders.
when i navigate to the site, the homepage opens up properly, the links to the other pages like the contact page the links are wrong, i have </p>
<blockquote>
<p><a href="http://thebellsschools.... | 3 | 1,057 |
multiple toggle for different elements add remove class | <p>Her is my function. there only think its not working is when i click .close-hideme i want to remove class noactive and add class active</p>
<pre><code>$(function () {
var text = $(this).text();
$(".hideme").hide();
var elements = $(".bold_blue, .bold_blue_img");
elements.click(functio... | 3 | 1,163 |
Use dataframe name in dataframe.query | <p>I have two dataframes</p>
<p>df1</p>
<pre><code>Company Region ID
Walmart North 1
Walmart North 2
OneStore North 3
OneStore North 4
OneStore South 4
Walmart South 4
OneStore West 4
Walmart East 5
</code></pre>
<p>df2</p>
<pre><code>Company Region ID Sales
Walm... | 3 | 1,809 |
MySQL Explain plan changing based on condition value | <p>Today we just noticed that two queries apparently identical were resulting in vastly different execution plans, in turn resulting in vastly different performance.
Another startling fact is that the query aggregating over 50k+ rows runs 30x faster than the query aggregating over 600 results.
The "fast" query runs in ... | 3 | 5,132 |
android searchview grey border around input field API >= 26 | <p>I am getting a weird grey border around the input text field of a search view with emulators which have API >= 26. Only SearchViews inside of a fragment encounter this issue.</p>
<p>Can you please advise on how this can be resolved?</p>
<p><a href="https://i.stack.imgur.com/HNaDW.png" rel="nofollow noreferrer">Sea... | 3 | 1,399 |
Octobercms problem with .csv import/export on repeater fields | <p>I have a <em>customer</em> table and model using some <a href="https://octobercms.com/docs/backend/forms#widget-repeater" rel="nofollow noreferrer">repeater fields</a> for <strong>phones</strong>, <strong>mails</strong> and <strong>addresses</strong>. </p>
<p>I use Import Export behavior. </p>
<p>I get "<em>Array ... | 3 | 1,077 |
Css transform not working with grid | <p>Why the second and third column is not working properly.</p>
<p>I will just apply effects to images , but zooming does not work.</p>
<p>As for the pictures on the column with chrome browser is going white.</p>
<p>Live Demo : <a href="https://jsfiddle.net/nnk2rxb0/" rel="nofollow">https://jsfiddle.net/nnk2rxb0/</a... | 3 | 1,101 |
PHP code causing results to duplicate | <p>I have created this PHP script, pulled together from other people's snippets and for the most part it works. However, the "live flights" table has something weird going on and I can't seem to fix it and wondered if anyone here might be able to help.</p>
<p>The issue is with the "Pilot" details. I have a piece of co... | 3 | 3,170 |
apple mach o linker error xcode 6.3 | <p>when I am adding Paytm Plugin in my existing project getting Apple mach o linker error. I am really confused.I am giving the log.It's taking too much time.
Please help me to get out from this situation.</p>
<blockquote>
<p>Ld /Users/tapashmollick/Library/Developer/Xcode/DerivedData/RedTaxi-egiibmwfjosmutglpukfjog... | 3 | 2,453 |
How to load an image dataset in python with a manually defined MasterImage class? | <p>I have a folder, Dataset, with the Train and Test subfolders containing images.
for example, in the Train folder, I have three subfolders, Cat, Car and Man each containing about 1700 images.</p>
<p>so I am using this class definition to load and render the images in the format suitable for a deep learning model.
It ... | 3 | 2,530 |
Migrate from ASP.NET Core 2.0 to 2.1 | <p>I'd like to migrate from <code>ASP.NET Core 2.0</code> to 2.1.
But I get this error, when I build the project.</p>
<blockquote>
<p>'Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0' has a package type
'DotnetCliTool' that is not supported by project 'Jahan.Beta.Web.App'.</p>
</blockquote>
<p>How can I solve it... | 3 | 1,564 |
Laravel Notification duplicate error with more than one notification via (database,email) | <p>I have more than 1500 users and sending them a notification via Mail and Database to remind them something every week using cron and supervisor.</p>
<p>My queue config:</p>
<pre><code>'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90... | 3 | 1,140 |
How to get Ajax returns an array with objects with multiple values and append to HTML | <p>I am trying to get a response with multiple arrays and pass to view so users can click on it and make request to another endpoint.</p>
<p>The response has value and text. </p>
<pre><code> <body>
<div class="container">
<div class="text-center">
<h3>Get P... | 3 | 1,321 |
Why data can't be retrieved from sqlite database in a listview? | <p>I want to display my all data in a listview from the data added by the sqlite database.When I click on the save button,it is shown a message "Added successfully".But each time it is showing error message "Data not found". Why listview is not displayed?</p>
<p>The error is showing as below :</p>
<blockquote>
<p>0... | 3 | 7,532 |
AngularJS - Using Nested JSON Objects in Sum of NG-Repeat totals | <p>I have adapted some code from an answer to a similar question I found searching here. Can someone please point me in the right direction on how to fix this code...</p>
<p>I am trying to to sum the values of a filtered column in ng-repeat. It works great for the first level of nested JSON but will not work on the se... | 3 | 2,418 |
PHP Multiple GET methods in one your | <p>I'm making a tool to pull eve API data and I use a GET form to take the data and get access to the <code>key ID</code> and <code>code</code> to access the data. This then pulls the first character ID on the key and grabs all that character data.</p>
<p>for example the url is:</p>
<pre><code>whatever.com/APIChecker... | 3 | 1,165 |
default form_with NOT remote nor expecting to respond via JS | <p>Class <code>shop</code></p>
<pre><code> accepts_nested_attributes_for :shopzones, allow_destroy: true
</code></pre>
<p>while the shops_controller defines the action and attempts to define the strong parameters</p>
<pre><code>def shopzone
@shopzone = Shopzone.new
@shopzone.save
end
def shopzone_params # in add... | 3 | 1,424 |
docker-compose container cannot access Internet | <p>I'm not using any proxy. But my hosting provider has it's own nameservers which configured fine and work. I have set them also in <code>/etc/docker/daemon.json</code>. Restarted docker & tested. Then checked journal and saw that those nameservers responded fine. I also know that docker-compose create custom user... | 3 | 2,123 |
Issue with UI side of Shiny app with data table | <p>I am in the process of creating a shiny app for a process at work and am struggling to figure something out on the UI side of the app. I would like to display a data table next to a sidebar menu containing options for the app. The issue is that when I do so, the data table is pushed down below the sidebar panel inst... | 3 | 1,678 |
How to build a reusable graph with input and output variables in Tensorflow? | <p>I'm trying to build a TF graph from Python code, save it, and import
the graph from another program, where it would be run with the actual
data. For the purpose of keeping the code simple, I'll show the
problem using a graph that computes the iterations of usual quadratic
function for the Mandelbrot set.</p>
<p>I ... | 3 | 1,982 |
Cant find my logical error in a function | <p>For some reason, my code is not iterating past checking for "and". Why would it not pick up the rest of my literals?</p>
<p>NOTE: I am calling this function for another function. This is working fine only posting this for reference:</p>
<pre><code>int readFile(FILE *file, struct assem *item)
{
size_t i =0;
//this... | 3 | 1,820 |
Warning: Did not expect server HTML to contain the text node " " in <div>. at div | <p>I have a next.js application that uses the context api. However i am having what appears to be a hydration issue? But im unsure how to fix it.</p>
<blockquote>
<p>next-dev.js?3515:32 Warning: Did not expect server HTML to contain the
text node " " in .
at div
at eval (webpack-internal:///./node_modules/@em... | 3 | 3,007 |
MySQL table value difference related to current date and previous date | <p>I have some tables that used to manage vehicle details. Related tables as follows:</p>
<h1>store_item</h1>
<pre><code>+---------+-----------+--------+
| item_id | item_name | status |
+---------+-----------+--------+
| 1 | Diesel | 1 |
| 2 | Petrol | 1 |
+---------+-----------+--------+... | 3 | 1,493 |
Converting a JSON file to a Javascript Object | <p>I'm trying to convert this json file to a javascript object, and then display it in a table format (don't worry about how the table looks at the moment, I'll fix that once this is worked out.) I can't see what I've done wrong to not be able to retrieve the json objects, as they are printed in the console when the pr... | 3 | 1,946 |
Jquery Featherlight js. Customized CSS radio button not working in modal window | <p>I am trying to use customized radio/option button. It is working fine with html page. When i try to use same thing in modal window (Feather light js modal window). Not able to click customized radio button.
Plain html radio button is working in modal window.</p>
<p>Any suggestion/idea will be great help<br>
please ... | 3 | 1,508 |
how to handle response get html format | <blockquote>
<p>Error Log cat:retrofit.RetrofitError:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $</p>
</blockquote>
<pre><code>respons server:<div class="loader">
<img class="loader" style="width: 32px; margin: 1... | 3 | 2,516 |
How to interpret a t-sql deadlock trace | <p>I'm trying to sort out a deadlock by looking at the t-sql trace but I'm struggling to understand the information. I have a summary of the info here and then the full deadlock trace at the end of the post:</p>
<p>The first lock is on a table called dbo.RetailVoucher<br>
The second lock is on a table called ooc.Plann... | 3 | 2,309 |
Contact form submission | <p>I am new to php - I am trying to make a simple contact form submission with a template code provided. I get this error reporting:</p>
<p>Fatal error: Uncaught Error: Function name must be a string in /home/u512372001/domains/thestripedphoenix.com/public_html/assets/php/mail.php:15 Stack trace: #0 {main} thrown in /... | 3 | 4,036 |
Webpack resolve compiles, but errors in the browser | <p>I am new to using webpack, I tried to use <code>resolve</code> so that I do not have to type <code>.js</code> or <code>.jsx</code> but I keep getting an error. Everything compiles fine, but I get an error on the browser.</p>
<p><strong>Webpack file after this paragraph</strong></p>
<p>I added resolve to my <code>w... | 3 | 1,102 |
Does anyone know why my this code is not running? When I click the submit button it does nothing?If anyone might have an idea? | <p>When I click the send button of my contact form nothing happens on blogger</p>
<p>Anyone can help? it would be a great help?</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"><c... | 3 | 1,483 |
Unable to get the Firebase to invoke the observe/observeSingleEvent callback | <p>I want to get a user corresponding to an event</p>
<p>I have a list of Events</p>
<pre><code>let eventsRef = FIRDatabase.database().reference.child("Events")
</code></pre>
<p>I have a list of Users</p>
<pre><code>let usersRef = FIRDatabase.database().reference.child("Users")
</code></pre>
<p>My Event and User m... | 3 | 1,190 |
How to supply parameters to autocomplete function? | <p>Below is my autocomplete function that's build on top of jQuery.ui. It works perfectly fine. All I want to do is with this line: <code>var targetItem = $("#subject");</code>. Currently as you can see, assign <code>$("#subject")</code> to the <code>'targetItem'</code> variable in the autocomplete function.</p>
<p>Bu... | 3 | 1,490 |
Using Nested Loops to Iterate over Dictinaries | <p>This is my given list with dictionaries:</p>
<pre><code>soccer_match = [
{ "home_team": True,
"away_team": False,
"country": "France",
"num_passes": 484,
"passes_completed": 423,
"fouls_committed": 16,
"colors":... | 3 | 3,498 |
Module installation Problem in Pypy Windows 10 | <p>I am trying to install packages to my pypy module however it keeps giving me this error. I am interested in installing the pandas module however giving me this error. I am on a windows 10 setup. This is the cmd output of the error. The pypy module is installed in the correct full path and all but its giving me error... | 3 | 4,558 |
UINavigationView pop to root view controller problem | <p>I have two view controllers in my app. In first view I display core data objects. I have custom UIView with UILabel to do that. In second view I have action to add new core data objects. Both are embedded in UINavigationController, where first view is root view controller. When I add object I want to bring user back... | 3 | 5,335 |
Django Viewflow using class based views but getting error : Reverse for 'index' not found. 'index' is not a valid view function or pattern name | <p>I am using class based views for my Django viewflow project. However I am getting the below error: </p>
<blockquote>
<p>Reverse for 'index' not found. 'index' is not a valid view function or pattern name</p>
</blockquote>
<p>Here are my classes:</p>
<hr>
<h2>rules/flows.py</h2>
<pre><code>class MyFlow(Flow):... | 3 | 1,838 |
How to take out Nothing out of inferred type | <p>The idea comes from this video: <a href="https://www.youtube.com/watch?v=BfaBeT0pRe0&t=526s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=BfaBeT0pRe0&t=526s</a>, where they talk about implementing type safety through implementation of custom types.</p>
<p>And a possible trivial implementation is... | 3 | 1,030 |
Double a decimal string | <p>I am writing my own big integer class in java without imports and need a method for doubling a number of any size that is represented by a string. The code I have for this now works, but begins to take a long time once the numbers get bigger and bigger. I essentially create two arrays: the main array and the countdo... | 3 | 2,322 |
Adding data row dynamically | <p>I'm using eclipse + android SDK.</p>
<p>I'm trying to create a table with data provided by sensors. I get the information correctly, by i'm having problems to make a table to show it in XML dinamically.</p>
<p>This is the sensorinfo.XML:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<TableLayout... | 3 | 1,272 |
SearchView Filter Mode mode in a Listview is not working | <p>My main activity have a Listview and a Search View. A Listview shows all entries from database. It works properly (load all words/strings from my database). But the problem is with the <code>SearchView</code>. It is not filtering in the Listview the strings/words when I'm typing a text. So, it happens nothing and I... | 3 | 4,662 |
i can't read my state once i load my component, state is properly changing | <p>i'm currently trying to understand how NGXS works, so i was able to setup the state and action but when i call my service and i try to put the state into a variable i get an observable.</p>
<p>attached is the code and what i get from the console, i'm trying to get a list of items when my application starts so basic... | 3 | 1,224 |
Null Pointer exception while using TimeoutBlockingWaitStrategy in disruptor | <p>I was working with the workerpool example and was trying different WaitStrategies. When i try the TimeoutBlockingWaitStrategy, i am getting error. Here's the program and the call stack.</p>
<pre><code>package org.lmax.experiment.test;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import j... | 3 | 4,253 |
Getting "Not Found" when trying to retrieve data for DataTable | <p>I´m working on asp.net WebApi with Angular doing <code>DataTable</code>.</p>
<p><strong>View:</strong></p>
<pre><code><table class="table table-striped table-hover table-bordered dt-bootstrap no-footer" id="tabla_catalogos" role="grid" aria-describedby="sample_editable_1_info">
<thead>
<tr>... | 3 | 1,280 |
Why i am getting null if response in not success in response android retrofit API? | <p>My problem is that when response is successful, i am getting response. But if response is not success, I am not getting any response in body, it's null. In case of any error like 404, 500 response is null. I am a beginner.</p>
<p><a href="https://i.stack.imgur.com/9AQp3.png" rel="nofollow noreferrer"><img src="https... | 3 | 1,731 |
ObjectDisposedException occuring when getting list from database | <p>Using ASP.NET MVC 5 with Entity Framework 6, I am trying to get a list of all the notifications values a user has from the database. This code did work at one point and now I get an <code>ObjectDisposedException</code> when trying to send the list back to the javascript.</p>
<p>Controller method:</p>
<pre><code>pu... | 3 | 1,050 |
Splitting a character column by pattern matching | <pre><code> Province ElecDistName Candidate Votes Majority Vper MajPer
<chr> <chr> <chr> <int> <int>... | 3 | 1,426 |
AngularJs: Can't set option as selected in select programatically | <p>I have a service that calls to pop up.
The pop up is contains two drop-down lists.
The user is asked to choose the two drop down lists and press ok to return to the service.</p>
<p>In the next call to the pop up i would like that the pop up will display the previous options that was selected by the user. </p>
<p>E... | 3 | 1,757 |
add tr by ajax if not exists | <p>So this is my setup. I have a blank table and a button. When i hit the button, i will query my database via ajax and get a JSON back. I itterate trough the JSON and add rows to my table. However, the user can delete a table row. When he hit the button again i want to make sure only the deleted table is appended to t... | 3 | 1,902 |
MATLAB: Peter Corke Robotic Code plot command failling | <p>I am trying to create a code for the purposes of plotting a robot. I am using the Peter Corke Robotic toolbox. So far it seems fairly simple until I came about with the struggle of simply plotting a robot. </p>
<p>My code at the moment is as followed:</p>
<pre><code>%Theta Inputs
T1= 45;
T2= 60;
T3= 40;
T4= 45;
T5... | 3 | 1,241 |
Aggregation Query Optimization Mongodb | <h2>User Schema</h2>
<p>I have been building a social media application and I have to write a query that returns the user of user. The schema of user is shown below.</p>
<pre><code>const userSchema = Schema(
{
email: {
type: String,
unique: true,
required: [true, "Email is required"],
... | 3 | 2,973 |
issue requesting db result set after sometimes, i do make a request to sql but i don,t receive any error in logs only loader is visible | <p>My DaoImpl works for some hours, then I don't know why when I make a request to it. It does not respond. Loading process in browser is waiting for response even it makes request to db procedure,
after every 2 minutes the same request is again raise in the logs without requesting by clicking button and it keeps happe... | 3 | 6,777 |
Flutter Call action function whitout click ussing Mobx | <p>I'm trying to call the <code>getdata</code> function from an <code>@action</code> using <code>Mobx</code>. The value is shown on the screen, but when the API is modified the <code>controller.temperature</code> variable is not modified (I called it with a button and it was modified, but I need it to modify without cl... | 3 | 1,723 |
Rails associations and passing another model :id as an argument | <p>I have two associated models: Job and Candidate. The Candidate model is updated when a user applies to a job listing through the candidates 'new' view. Since I've associated Candidate with the Job model, I can't save any new instances of Candidate. I know that I have to pass job_id as a parameter so that any new ins... | 3 | 1,694 |
get result in parent component after selectAll and unSelectAll event emitted from child (Angular) | <p>Hi I am now working on angular to build a multiselect dropdown using ng-multiselect-dropdown(<a href="https://www.npmjs.com/package/ng-multiselect-dropdown" rel="nofollow noreferrer">https://www.npmjs.com/package/ng-multiselect-dropdown</a>).</p>
<p>I used parent-child component communication through event emitter:
... | 3 | 1,978 |
session variable getting null or lost when I didn't update information | <p>In my page, I have:</p>
<pre><code>1. Registration Page
2. Login Page
3. Successful Registration Page
4. Referral Form
</code></pre>
<p>In my registration Page, User can register through this.</p>
<p>In my Log-in page, I have two types of user, <strong>Applicant</strong> and <strong>Employee</strong></p>
<p>In m... | 3 | 2,949 |
Unable to add Codeigniter where in clause and where clause in mysql query | <p>I am new to codeigniter and working on a project where I need to add search filters on a page. The way its been setup under applications/core there is a MY_Model.php file and here it the get_result function it.</p>
<pre><code>function get_result() {
$this->db->from($this->tableName . ' ' . $this->alia... | 3 | 1,556 |
unknown deletion of node before deletion doubly Linked linked list | <p>After my first iteration of addTrash and then to the first iteration of modifyMainList it segfaults because of a null value in the location of the index that i was just going to take out of the main list via modifyMainList. addTrash should not be deleting anything at all, so i think it must be a pointer issue, but i... | 3 | 4,145 |
CSS positioning driving me nuts | <p>I have multiple images that take up the entire screen and auto resize (positioned absolutely and some JavaScript) however for the life of me I can not get content to be placed UNDER that <code>div</code>. I put the images in a <code>div</code> container and that <code>div</code> is positioned relative to every other... | 3 | 2,415 |
getting different location than current location on google map.android | <p>I am trying to access my current location as soon as the map loads but I am getting different location than my current location. What can be the reason?? Please help..</p>
<p>ChooseFromMapActivity</p>
<p>public class ChooseFromMapActivity extends AppCompatActivity implements
LocationListener, GoogleApiClie... | 3 | 8,361 |
Event doesnt fire in chrome addon | <p>So, I've been back and forth with this problem. What I want is to execute som piece of code (in a injected.js file) when a button is pressed on the website. I want to run code that I've written myself.</p>
<p>This should be do-able? I've looked it up, and this is taken from the developer docs:</p>
<p><em>Content s... | 3 | 1,282 |
fading divs over images failing to stay displayed | <p>I have a bunch of images, when I mouse over one of them I want another div to show over each of the others to 'darken' them. It seems to work first image but after that has a mind of its own.</p>
<p>Here's what I've trying:</p>
<p>html:</p>
<pre><code><div id="hp_imgs">
<div class="imggHolder">
... | 3 | 1,065 |
how to remove specific key from multidimentional array | <p>I want to remove <code>[0]</code> key from below array.</p>
<pre><code>Array
(
[0] => Array
(
[0] => Array
(
[PMSE] => Array
(
[id] => 1
[employee_name] => John ... | 3 | 2,488 |
How can I add a Context Menu to a Table Layout? | <p>Hello fellow Programmers</p>
<p>I am trying myself on an app to log all expenses I make.
I am entering my info in a form, add it to a SQLite Database and show it in a new activity in a TableLayout. Everything works fine until there, more or less...</p>
<p>This is the Activity where I show the data of my SQLite Tab... | 3 | 3,342 |
error when building with cmake using C:\project\libresample_flutter\android\CMakeLists.txt: Build command failed | <p>I use package ffi in flutter but when building with cmake: error exception ,Whatever I searched for, I did not find how to fix this error</p>
<p>Execution failed for task ':libresample_flutter:configureCMakeDebug[arm64-v8a]'.</p>
<blockquote>
<p>[CXX1405] error when building with cmake using C:\project\libresample_f... | 3 | 4,529 |
Bigquery Query: Adding a specific value to previous rows in BigQuery | <p>I want to create a add a specific value to rows with null value in case they have something that isn't a null value. It's something difficult to understand, but it could be easier in watching the desired output:</p>
<p>This is my actual table:</p>
<pre><code>DATESTAMP______________pressure__________final_date
2021-... | 3 | 1,155 |
How do I write a custom Boost ASIO completion token, as_expected, that yields a std::expected (tl::expected)? | <p>I want to write a custom completion token for asio, like <a href="https://think-async.com/Asio/asio-1.22.2/doc/asio/overview/composition/token_adapters.html#asio.overview.composition.token_adapters.as_tuple" rel="nofollow noreferrer"><code>asio::experimental::use_tuple</code></a>, but which actually returns a <a hre... | 3 | 1,910 |
Array element retrieval from passed parameter in a PHP file | <p>I am calling a PHP file using http.post, passing a json object in the process.
I have managed to retrieve the object from within the PHP and have attached the dump below. All I now need is to retrieve 'name', 'email' and 'message' strings from the array but am finding this difficult as not used to PHP. </p>
<pre><c... | 3 | 6,417 |
Displaying data from one view in another view | <p>I have a view, that currently displays a list of Recipes. I have a button for each corresponding recipe in the list, my goal is when a user selects a recipe, they are directed to another view that displays the information from the selected item.</p>
<p><strong>RecipeList</strong></p>
<pre><code>struct RecipeListView... | 3 | 1,715 |
Kafka Streams API: Session Window exception | <p>I am trying to create a Kafka topology and break it down into more readable. I have a stream that I group by keys, and then I am trying to window it like so:</p>
<pre><code>SessionWindowedKStream<byte[], byte[]> windowedTable =
groupedStream.windowedBy(SessionWindows.with(Duration.ofSeconds(config.joi... | 3 | 3,192 |
Using full calendar in django admin; Saving the external dragged item to a model | <p>i have set up fullcalendar inside my admin, so i can drag timeslot on the calendar to select which date/timeslots are available for my clients to book, the calendar work perfectly, the drag items are fine, but when i put them in the calendar, it doesnt save to my model and to database.</p>
<p>here is the code.</p>
... | 3 | 4,042 |
volley timeout error...Data inserting two times | <p>I m getting <code>volley timeout error</code> every time i try to insert data..Despite of the error, the data is inserted correctly but its inserting two times every time i press the <code>button</code>.
I need to remove the <code>error</code> and insert data only once. Also it takes too much time after clicking <c... | 3 | 2,280 |
Java how to split text which is read from sdcard file into different arrays | <p>I'm doing a school assignment and need some help.</p>
<p>Android
I have these coordinates stored in txt file in my sdcard, They are stored in this way</p>
<pre><code>x.xxxxxxxx|x.xxxxxxxxxy
x.xxxxxxxx|x.xxxxxxxxxx
</code></pre>
<p>and so on.
What I'm doing is trying to use listview.onclicklistener(){, so once I t... | 3 | 1,025 |
Dynamically color svg elements on canvas | <p>I am trying to draw <a href="https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces#/media/File:Chess_kdt45.svg" rel="nofollow noreferrer">this chess piece</a> to a Canvas element, and I want to give it a custom fill color.</p>
<p>I tried the following to add the svg to DOM and it worked.</p>
<pre><code><!D... | 3 | 2,505 |
jQuery changing CSS inside of a nested function call | <p>I'm currently trying to create a drag and drop element which allows me to move an element which it is attached to. Everything is being created dynamically. I'm having a re-occurring problem where I can't change the css from inside a nested function call.</p>
<p><strong>jQuery (Not working)</strong></p>
<pre><code>... | 3 | 1,687 |
How to debug two RecyclerViews that suddenly stopped working? | <p>I was working on an Android project that features two fragments on the main activity with one RecyclerView in each of them. It was looking good and functioning as intended, then somewhere along the way something broke and now neither is populating with anything. I'm not sure how to even begin to debug this, as every... | 3 | 2,056 |
DRF ImageField Inconsistent behavior | <p>I'm creating a Django API with DRF. I have a custom User Model like this :</p>
<p><strong>models.py :</strong></p>
<pre class="lang-py prettyprint-override"><code>from typing import Type, List
from uuid import uuid4
from django.db import models
from django.contrib.auth.models import PermissionsMixin
from django.co... | 3 | 2,126 |
404 Not Found nginx/1.12.2 - in foreach with File_get_contents | <p>I've tried in several ways and still can not solve. I have an array with many urls, I use foreach to access the site and extract data with <code>file_get_contents()</code></p>
<p>But <code>404 Not Found nginx/1.12.2</code> is the error that appears after approximately 2 minutes and registering approximately 280 rec... | 3 | 1,270 |
binding cascading drop downs to viewmodel | <p>I'm still relatively new to MVC and need some assistance with cascading drop down lists.</p>
<p>I have got two drop lists to cascade using JSON but I cant work out how to bind the selcted item to the view model.</p>
<p>The controllers are :</p>
<pre><code>public ViewResult StartRA()
{
StartRiskAssessm... | 3 | 1,928 |
Unable to do the add, delete nodes in DOM XML document | <p>Actually i am working on the XML DOM parser for the bellow xml string</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<schema version="1.0">
<itemGroups>
<itemGroup id="itemGroup1">
<items>
<item id="One" />
<item id="Two" />
<it... | 3 | 1,368 |
Binding two viewmodel's with different hierarchy to one model | <p>I have viewport3d with entities, and treeview with hierarchical structure of that entities. Treeview is binded from class hierarchy, something like this:</p>
<pre><code>public class SomeDataObject
{
private ObservableCollection<SomeDataObject> _children;
private string _OtherProperty;
public Some... | 3 | 1,024 |
Send data from two differents activities via bluetooth | <p>I´m trying to send data from two differents activities via bluetooth. But I have no success.
This is my code:</p>
<pre><code> public class MainActivity extends Activity {
private BluetoothDevice btDevice;
private CommunicationThread cmThread = null;
TextView y;
private static final UUID sppUUID = UUID.fromSt... | 3 | 1,069 |
Tomcat + OSGi + Hibernate + maven ClassNotFoundException org.hibernate.ServiceRegistry | <p>I've embedded OSGi framework in an Apache Tomcat server (7.0.52) using the Bridge.WAR. I can use it and run bundles on it.
My bundles are built using maven.</p>
<p>Now I would like to access to a database and get data using one bundle. I've mapped my classes by JPA annotations and I would like to use Hql queries to... | 3 | 4,482 |
Volley Request only working in LoginActivity | <p>I have been trying to solve this problem for over 2 hours now.
My POST requests all seem to work in my LoginActivity, but for some reason they don't in my MainActivity.</p>
<p>My Webserver is handling requests fine.<br>
The url is correct in my project, I just changed it here.</p>
<p>Here is the MainActivity:</p>
... | 3 | 1,762 |
HTML links show up but don't work properly | <p>I am relatively new to javascript and creating servers/websites so sorry if there is something very stupid :)
When I go to the server address it displays all the links but I cant click them. I can right click it, copy the link address and search it and that works but I cant find any issue with my code. There is no C... | 3 | 1,341 |
Combining RxJava with LiveData | <p>I have data in JSON file and I want to write ItemRepository class using RxJava (I'm new on this topic), because I've read that using LiveData in repository isn't good idea. Repository should allow to fetch all items (on create view) or filtered by name (later by sarchBar). I don't know how to combine the Repo's Rx s... | 3 | 1,076 |
Builds the map only when the GoogleApiClient is successfully connected? | <p>I'm developing an Android app for exercise, to better understand the Google maps api . In this apps i want to show some marker and if Android knows the user's current position I want to show It on the maps. Following the google tutorial I do it. But I have a doubt on the better way to get the maps and make the Googl... | 3 | 1,433 |
JSON Response not reporting properly | <p>I'm using the newtonsoft.dll to deal qwith the proper JSON responses from a site, i have come in to an issue, the delete code:</p>
<pre><code> Dim delPro As String
Dim resPro As String
Dim sB As New StringBuilder()
For Each row As DataGridViewRow In dataGridProjects.Rows
If (row.Cells(4).Valu... | 3 | 1,050 |
Criteria api restriction with InheritanceType.JOINED | <p>I'm stuck with the following problem - i have a MappedSuperClass entity with InheritanceType.JOINED, and some entities, extending that superclass. And when i try to query this entity with criteria api, i'm getting strange result set, which contains only one of sub entities.</p>
<p>The code as follows:
Base parent c... | 3 | 1,371 |
foreach use value from object twice | <p>I recieve json objects like the following over an rest-service</p>
<pre><code>[
{
"pos_time": "04.09.2018 09:57:02",
"receivetime": "04.09.2018 09:57:18",
"latitude": 47554898,
"longitude": 13173448,
"speed": 8,
"course": 359,
"country": "AT"
},
{
"pos_time": "04.09.2018 09:58:0... | 3 | 1,856 |
Delete Rows in SQL Table Based on Difference Between Values in Another Table | <p>I have one table (let's call it <code>dbo.temp</code>) that has minute by minute record of temperature from different sensors:</p>
<pre>+-----------+------------+----------+------+
| SENSOR_ID | DATE | TIME | TEMP |
+-----------+------------+----------+------+
| 106971 | 2017-01-10 | 10:05:00 | 21.1 |
... | 3 | 1,258 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.