title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
onActivityCreated remove layout of Fragment | <p>I'm trying to create an application which deals with fragments.
First, build an application login without using fragments and it worked perfectly, but I tried to be more constructive and create a menu done for me.
I was trying to migrate all that created the Activity Log for Fragments but I'm having trouble trying t... | 3 | 4,566 |
Maven does not take account a variable category defined in the pom | <p>I have two tests into my Maven test project. I define two categories as interfaces that I use in the following ways: (@Category(HighTest.class) for 'testLR' method and @Category(MediumTest.class) for'testFD' method. I have also defineD these two interfaces in my project as</p>
<pre><code> package com.groups.projec... | 3 | 1,999 |
error in update table using ON DUPLICATE KEY UPDATE | <p>I'm reading and store rss feed in my database ,my requirement is if link field is same then update title and description only in database.<br>
I'm using ON DUPLICATE KEY UPDATE but after entered query.its insert only a single data in database and failed and show a error</p>
<p>my code is </p>
<pre><code> <?ph... | 3 | 1,070 |
Mocking authentication when testing MSAL React Apps | <p>Our app is wrapped in the MSAL Authentication Template from <code>@azure/msal-react</code> in a standard way - key code segments are summarized below.</p>
<p>We would like to test app's individual components using react testing library (or something similar). Of course, when a React component such as <code>SampleCom... | 3 | 1,163 |
JDBC: Unable to get composite index for my table | <p>I am trying to list all the indexes for all the tables in my DB (using a generic solution which is not specific to an RDBMS)</p>
<p>To test out my solution, I have 2 tables in an MS SQL Server DB <code>tempdb</code></p>
<ul>
<li>Stores </li>
<li>Staffs</li>
</ul>
<p>Each table has a PK and the <code>staffs</code>... | 3 | 3,087 |
Kodi python addon windows events | <p>I try to code a small <code>python</code> addon that detect the opening of a specific window then access to a custom control i added to the <code>XML</code> of the window.</p>
<p>I have modified the <code>VideoOSD.xml</code> and add a control slider. Now, i need to detect <code>onWindowOpen</code> to control the sl... | 3 | 17,035 |
How to properly index sql server table to increase query performance | <p>i need to add correct indexes to a temp table to speed up a query. according to msdn i check the menu "Include Actual Execution Plan" and run the query in SSMC, after the execution i can see the query plan but there's no indication about the indexes to create.</p>
<p>in the table @Tax the fields l1,l2....l10 identi... | 3 | 5,227 |
Error when using function preg_replace() in php of wampserver | <p>I have a function:</p>
<pre><code>function filter($str) {
$str = preg_replace("/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/", 'a', $str);
$str = preg_replace("/(è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ)/", 'e', $str);
$str = preg_replace("/(ì|í|ị|ỉ|ĩ)/", 'i', $str);
$str = preg_replace("/(... | 3 | 1,151 |
Bootsrap nav-link does not navigate to the assigned ID in HTML after using canvas tag | <p>When I used canvas element the Bootstrap nav-link did not navigate to the assigned ID. But when I replaced canvas with div, the nav-link was working but the graph did not load.</p>
<p>Here is the link to my website: <a href="https://covidupdate.netlify.com/" rel="nofollow noreferrer">https://covidupdate.netlify.com... | 3 | 2,167 |
LLVM pass doesn't perform single static assignment | <p>I'm using the prebuilt LLVM 6.0, when I perform llvm pass <code>-mem2reg</code> to generate SSA, the IR code remains as is without being changed. But when I use the prebuilt LLVM 3.8 to do the same thing, the llvm pass works. However, I need to use LLVM 6.0 because I'm using other tools that leverage this LLVM versi... | 3 | 1,607 |
Adding views dynamically displays background only | <p> </p>
<blockquote>
<p>I have used a linear layout which will have a top layout and bottom layout. The bottom layout is scrollview which has listview too.
I have done it programmatically by adding layouts as follows,</p>
</blockquote>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(... | 3 | 8,310 |
Bitonic Sort in Multithread (threads conflict)? | <p>I have a problem with the correct sorting using multithreading. Bitonic sorting works correctly in a SingleThread, but in MultiThread returns not quite the correct result. What can be a problem? I suspect that this may be some conflict of threads (race condition)?</p>
<pre><code>public class MultiThreadedSorter : B... | 3 | 2,224 |
can't get my image to resize in CSS | <p>This is my current code and the problem now is that image3, which is the 2nd box is not showing the correct height... The following is the updated code for my style.css:</p>
<pre><code>body {
margin: 0;
padding: 0;
font-family: 'Arial', 'serif';
}
.nav {
background-color: #ffffff;
color: #000000;... | 3 | 2,578 |
Translator with BST in C | <p>So I'm making a program that can take a word from keyboard and output the Spanish translation of it using a file with all the translations. Right now I'm using a BST as my function. In my code I use strtok() to break up the string that is being inputted from a file. However, every word has four random characters in ... | 3 | 1,473 |
Installation of numpy through Anaconda | <p>getting up to speed on Anaconda, I keep receiving an error message when I try to import 'numpy' into Python.
Here is what I have done so far:</p>
<ol>
<li>Downloaded anaconda from anaconda.com (64-Bit Graphical
Installer (466 MB) with Python 3.7 for Windows);</li>
<li>Installed anaconda (under C:\Users\'Username'\A... | 3 | 1,104 |
WPF Image source binding is not working | <p>I have a WPF application which used <code>LinqToTwitter</code> as data source for a <code>ListBox</code>. The data that is rendered inside the <code>DataTemplate</code> comes from the twitter source which has a text and image.</p>
<p><code>SocialFeedView.xaml</code> code</p>
<pre><code><DockPanel Grid.Row="0" B... | 3 | 1,842 |
I want to click a button and execute just one line of code at a time from an already made program.. (javascript) | <p>yeah, so can i do that?</p>
<p>i have a program already written that has two functions.. and one is recursive..
so i want to know how can i execute just one line of code at a time by pressing a button..
i hope it's possible</p>
<p>and also i'm doing this in a web page</p>
<p>this is my script.. it has no importan... | 3 | 1,863 |
Grisu not defined - Julia | <p>I have just started to use Julia a few days back.
While trying to plot, I am getting the following error:</p>
<pre><code>using Plots
x = 1:10; y = rand(10); # These are the plotting data
plot(x, y)
</code></pre>
<p>ERROR:</p>
<pre><code>UndefVarError: Grisu not defined
Stacktrace:
[1] getproperty
@ .\Base.jl:... | 3 | 1,420 |
Two different queries returning the same object Spring Boot JPA | <p>I created a Repository with 3 different queries. Each query returns a different result. But when it comes to mapping the first query result goes to the second query result. If I change the order of the queries the first result will be the result of the next query. I even tried to create two different Repositories</p... | 3 | 1,706 |
Can't seem to figure out how to get the output of an process fired with spawn. stdout.on('data') not outputting for me | <p>I am trying to setup some automation on a <a href="https://developer.valvesoftware.com/wiki/Rust_Dedicated_Server" rel="nofollow noreferrer">game server</a> for the game <a href="https://store.steampowered.com/app/252490/Rust/" rel="nofollow noreferrer">Rust</a>.
The game server itself is ran by running its executab... | 3 | 1,258 |
unable to update different row in a ListView | <p>I have create a sample which has differet layout for few rows in ListView based on the this <a href="http://android.amberfog.com/?p=296" rel="nofollow noreferrer">link</a>. Here is the layout</p>
<p><img src="https://i.stack.imgur.com/GdBcz.png" alt="Here is my layout "></p>
<p>As i want only first row to have a d... | 3 | 1,052 |
Saving pie chart as an image using database data | <p>Require some help when trying to save chart as an image. Sorry just started this new chart.js.</p>
<p>Issue:</p>
<ol>
<li>How do I add my database data inside the chart? I keep try to add in $user but it keep giving me undefined user.</li>
</ol>
<p>Here is the data that I want to add in from my database,</p>
<pr... | 3 | 1,047 |
How to use svg as a preloader instead of css preloader? | <p>I am just a beginner in javascript and three.js so please help me out. I want to use SVG logo as a preloader with a fade-in animation which should be synchronized with page loading but I'm having trouble placing SVG instead of CSS pre-loader. I want SVG animation to have 0% opacity to 100% sync with page loading pro... | 3 | 6,456 |
Workflow using Google Apps Script - I need to email the user in my first step | <p>I'm creating a workflow process that will email a body of a form to users in that workflow. I can iterate through the users and send an email but I do not now how to pass the "e" parameters for the body of the email. I actually already have a function that will send the body , but I need to include this in my step p... | 3 | 2,016 |
Null Pointer in Adapters when Data Transmission INterupted | <p>I get <code>null</code> Force Closes on my Android App when the user interrupts transmission to a data feed. Or sometimes if the internet is slow and it seems to stall I get <code>null</code></p>
<p>Here is how I handle the http code:</p>
<pre><code> HttpClient httpClient = new DefaultHttpClient();
... | 3 | 1,818 |
How do i use filter to filter multiple radio buttons in django template in Django | <p>How do i use filter to filter multiple radio buttons in django template in Django...I want a situation where when you select multiple buttons it filters the cars based on how many cars you have selected.</p>
<p>This is my views.py</p>
<p>How do i use filter to filter multiple radio buttons in django template in Djan... | 3 | 1,290 |
Variables value not passed to GraphQL Mutation (React) | <p>I have been stuck on this bug for now a while, so any help would be much appreciated!! :) </p>
<p>I am building a web app with:</p>
<ul>
<li>Backend server running with Spring Boot</li>
<li>Frontend server running with React/TypeScript/GraphQL</li>
</ul>
<p>So far I have managed to make the Backend work & tes... | 3 | 1,180 |
Group and order array of objects in php by string value | <p>I have an array of objects which looks like this, note that they are already ordered by create_time via MYSQL:</p>
<pre><code>array (size=5)
0 =>
object(stdClass)[38]
public 'vacancy_id' => int 5
public 'title' => string 'test title' (length=10)
public 'create_time' => string '2... | 3 | 1,564 |
Issues when swapping columns in the Rotate Matrix exercise (codefights) | <p>I'm trying to solve the problem of rotating a matrix by 90 degrees. Here is my solution so far:</p>
<pre><code>static int[][] rotateImage(int[][] a) {
for(int i = 0; i < a.length; ++i) {
for(int j = 0; j < i; ++j) {
int temp_ji = a[j][i];
a[j][i] = a[i][j];
... | 3 | 1,096 |
How to fetch the data from JSON using key in iPhone | <p>Hey I'm new to <code>iPhone</code> and I have been trying to parse the below <code>JSON</code> for displaying different types of <code>Survey</code> using my below code. I have two tables, in first table i want to display all the <code>"Surveys_title"</code> text value, and once user will tap on any survey title row... | 3 | 2,674 |
Matching PHP and C# Encrypion/ Decryption | <p>I was using <code>mcrypt_encrypt</code> to encrypt a string and send back to a c# function to decrypt, All was working fine until php 7.2 and <code>mcrypt_encrypt</code> does not work anymore.</p>
<pre><code>function addpadding($string, $blocksize = 32)
{
$len = strlen($string);
$pad = $blocksize - ($len % ... | 3 | 2,260 |
How to find records from database according to the typed string in the ReactJS search bar | <p>I want to fetch records (Which are of vehicles ad) from mongoDB database that matches with the keyword that I type in the search bar and display them in reactJS frontend. The database Schema of record(Vehicle ad) consist of fields like <strong>(make, address, registeration,year,intcolor,extcolor,transmission,bodyty... | 3 | 5,645 |
Ordering files numerically based on the middle of the character string in r | <p>I have a list of .tif imagery in a directory, which I loop through to do some raster math later on. I would like the .tif files to be ordered by date, so that when the loop is run I know which date corresponds to which .tif file based on its order in the list. I think I need to either rename the files, or figure out... | 3 | 1,492 |
Two way binding is not happening between Tree view and combo box in WPF | <p>I have a user control which has a tree view and a combo box.Tree view has items source bound using view model class.Combo box item source is given through code behind.I have bound Selected Id path as two way binding between Combo box and tree view.Now when application run, when control has populated and display... | 3 | 2,365 |
Unable to log in to django admin | <p>I know this question has been asked before, but either I don't understand how to apply the solutions provided or they don't work. I think my case may be much simpler.</p>
<p>I am a beginner with Django and I'm following first the djangogirls tutorial. I installed Django in a virtual environment that I created with ... | 3 | 1,189 |
Redshift SQL - Window function trying to count events up to a certain date | <p>I am trying to write a single SQL Statement (window function, CTE?) that would let me find out how many TFS tickets were 'open' each week (in the past), say 10 tickets were opened on '08/26/2019', 15 tickets opened in '09/06/2019, etc.
Basically, I am trying to answer the question:
"How many tickets are opened weekl... | 3 | 1,539 |
iOS using Facebook graph API for post without share dialog? | <p>I want to use Facebook graph API to share on Facebook through my app, without presenting share dialog.But on reading various threads on internet i'm really confused about how to achieve this. i found <a href="https://stackoverflow.com/questions/9328001/using-facebook-graph-api-on-ios">this post</a> on stack overflow... | 3 | 3,847 |
Unable to generate classes using maven from XSD | <p>Error whiel trying to generate class files from xsd using maven</p>
<p>I have the below xsd file:-</p>
<pre><code><xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0">
... | 3 | 1,828 |
Adobe AIR and different OS filesystems | <p>Another Adobe Air question for you but first here some background into the project I have been tasked with. It is an AIR app that will read assets from a USB key and must work on both WIN and MacOS. The problem is, how do I load assets into the app on MacOS! Sounds simple enough and works seamlessly on Windows.</... | 3 | 1,347 |
Javascript code only works when debugging | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var selectedLetter = "global right now";
function GetLink() {
fetch("https://random-word-api.herokuapp.com/word")
.then(
... | 3 | 1,209 |
PHP page, it sees the pictures in the directory but showing a broken link | <p>I am having an issue with PHP. I have to replace the existing HTML with PHP and I need it to dynamically load the picture from the images folder onto the PHP site on the web browser, but when I load the PHP page it will seem to show how the pictures are supposed to display, but it just has the symbol for broken pict... | 3 | 1,590 |
Form elements IDs as global variables in IE11 | <p>Do you know why named access [1] does not work in IE11 for form elements (<code>input</code>) inside <code>form</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>... | 3 | 1,722 |
Set the menu over div (z-index) | <p>I have example page to describe my problem: <a href="https://www.suale.it/Shelter/app/app/index.html" rel="nofollow noreferrer">https://www.suale.it/Shelter/app/app/index.html</a><br>
if you try to open the menu, and try to click between "list" and "new ads", you will click over the dropdown search menu<br></p>
<p>... | 3 | 3,197 |
Supplying a name when declaring a package resource - Chef | <p>I have the following <code>Chef</code> recipe (<code>web.rb</code>):</p>
<pre><code># Install Apache and start the service.
httpd_service 'customers' do
mpm 'prefork'
action [:create, :start]
end
# Add the site configuration.
httpd_config 'customers' do
instance 'customers'
source 'customers.conf.erb'
no... | 3 | 2,572 |
Firestore Null Pointer Exception on firestoreoptions.getService | <p>Hi i am using SmartFoxServer with a Java extension. Inside that extension i am trying to get firestore instance. Below is the code i am using to connect to service that is working fine inside IDE (Eclipse). but when i deploy my extension on SmartFoxServer it gives a null pointer exception on firestoreOptions.getServ... | 3 | 1,037 |
Rspec how to test in inject method | <p>I have a method that looks like this:</p>
<pre><code> def self.average_top_level_comments_leaders
top_level_comment_count = CrucibleComment.group(:user_id).where(parent_comment_id: nil).order('count_all DESC').count
code_review_assigned_count = Reviewer.group(:user_id).order('count_all DESC').count
di... | 3 | 1,243 |
When I used router in Vuejs 2 it showed blank page | <p>I'm asking for help. I use vuejs to make my application.however when using the router it returned me a blank page.
<strong>main.js</strong></p>
<pre><code>import Vue from 'vue'
import App from './App.vue'
import 'bootstrap'
import 'bootstrap-vue'
import router from './router'
Vue.config.productionTip = false
new V... | 3 | 2,404 |
custom horizontal login using email is not working in drupal 6 | <p>i am trying to make a custom login form in drupal-6.22 using Email Registration module & using danland theme.</p>
<p>in template.php file i made few changes as </p>
<pre><code>function get_user_login_form() {
$form_id = 'user-login-form';
$form = array();
$form['name'] = array(
'#type' => 'textfie... | 3 | 1,518 |
Can you create class methods in Objective-C only visible within your library? | <p>I found <a href="https://stackoverflow.com/questions/6006701/friend-class-in-objective-c">this StackOverflow question on friend classes in Objective-C</a> which was <strong><em>similar</em></strong> to the issue I'm trying to solve, but not quite the same. So I'd like to extend their example.</p>
<p>Suppose I want ... | 3 | 1,825 |
undefined method `i18n_key' for Address:Class | <p>I get this error when I load a page that contains a form (like edit.html.erb or new.html.erb). It freezes on the labels. I need to underline that I am not using ActiveRecord as an ORM in my app but Perpeuity gem which is an implementation of the Datamapper pattern. Leaving Activerecord behind has proved a bit proble... | 3 | 2,011 |
VHDL synthesis error. Signal blk_pointer cannot be synthesized, bad synchronous description | <p>I've got a problem with a synthesis of that code.
The error which is shown is "Signal blk_pointer cannot be synthesized, bad synchronous description. The description style you are using to describe a synchronous element (register, memory, etc.) is not supported in the current software release.". </p>
<p>I want to ... | 3 | 8,960 |
Why I don't see record in database from my test project? | <p>Hї!</p>
<p>I have wrote test for my application. I need add item to database throught UI interface (using robotium) and then I want to check if item exists in database using SQLiteDatabase.</p>
<p>Item is added succesfully (I see new record in database after test finished), but isExistsInDb in my test class return... | 3 | 1,938 |
Yii - File validation rules sets JSON array to NULL when saving to DB | <p>When I added file type checking, things broke :)</p>
<p>I originally had just this rule:</p>
<pre><code>array('image, pictures, documents', 'default', 'setOnEmpty' => true, 'value' => ''),
</code></pre>
<p>It all worked fine, except there was no security on the types of files being uploaded. So I added the ... | 3 | 1,799 |
Sequelize mysql reads timezone incorrectly from mysql database | <p>I'm using sequelize in node.js application and mysql as a database but the problem is, when I read data from the MySQL table, the timezone is read incorrectly.</p>
<p>I want to use <strong>IST(Indian Standard Time) or 'Asia/Calcutta'</strong> as a timezone for both reading and writing to the MySQL database.</p>
<p>I... | 3 | 1,811 |
Viewholder clickable area has margin bottom that's not defined | <p>Here is how the problem looks -</p>
<p><a href="https://i.stack.imgur.com/fj4nd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fj4nd.png" alt="enter image description here" /></a></p>
<p>And here is my ViewHolder code -</p>
<pre class="lang-kotlin prettyprint-override"><code><?xml version=&quo... | 3 | 2,584 |
How to Remove foreign key relation in table | <p>I have a part table which has part_id column and it is a FK in part_commnet table. Now my part table has grown very big, so I decided to remove some records into another table and created archive_parts table which is similar to part table. part table has a part_audit table also as hibernate-envers is implemented. No... | 3 | 2,232 |
Im not able to add a gradient to a bar in barchart using chart js is there any way to do it without the plugin-gradient being installed? | <pre class="lang-js prettyprint-override"><code>const SingleBarChartData = {
count: 0,
data: {
labels: [
['Total'],
['Users'],
['Created'],
['Deleted'],
],
datasets: [{
data: [70, 6, 7, 1],
categoryPercentage: 0.8,
barPercentage: 0.7,
borderRadius:... | 3 | 1,915 |
problem with images load on setTimeout | <p>I have a problem, that i seems not be able find my way around it.</p>
<p>The problem is, that I load images and some text trough ajax call, and then after some time i try to call ajax function again to get new set of images and text. However my problem is that images don't load in time (everything is fine with the ... | 3 | 1,218 |
Queue resets after every operation | <p>I am working on a queue implementation and something weird is happening. The Enqueue seems to work but the changes are not being registered (the size stays the same at 0). From what I can tell, the code will enqueue an element but immediately forget about it. The output is: <br>
Data passed: a34<br>
Back befor:(null... | 3 | 1,792 |
Handling multiple Primitive items inside a glTF2 Mesh? | <p>I am developing a small app using OpenGL ES and the glTF reference loader library (c#) on a Xamarin Android based Visual Studio project.</p>
<p>Right now, I am trying to build my own class structure for organizing the models' data. I read the specs, and the skinning tutorial was very helpful, but now I have a quest... | 3 | 1,055 |
PostBack in ASP.NET causes all TextBox and DropList in GridView to be cleared | <p>I have a grid view in asp.net as given below.</p>
<pre><code><asp:GridView ID="grid_flats_allflatslist" OnRowDeleting="grid_flats_allflatslist_RowDeleting" runat="server" Width="95%" CssClass="gridview" ShowFooter="true" AllowPaging="true" PageSize="8" BackColor="Black" BorderColor="#E7E7FF" BorderStyle="None" B... | 3 | 2,978 |
JAVA: sqlite throws exception after writing a few records? | <p>I am trying to write a few thousand records to sqlite DB. However after writing a random number of records - 122 / 45 / 180, it throws following exception:</p>
<pre><code>java.sql.SQLException: unable to open database file
</code></pre>
<p>The random number of records get populated on DB but this error stops furth... | 3 | 2,747 |
Gather the Co-Ordinates & Draw them to Google Map | <p><br/>
I'm trying to gather several coordinates from a php file and draw them to a google map making several markers. The data are gathered using the <code>.ajax</code> method of the <code>jquery</code> library. Here is my attempt:</p>
<p>allCoordinates.php:
<pre><code>$db_host = "localhost";
$db_user = "root"... | 3 | 3,068 |
Unable to create jaxb context - WebFault error | <p>Error at method initiateBatchProcess : unreported exception must be caught or declared to be thrown. I have a custom exception class with @webFault annotation to handle jaxb exception as suggested in this <a href="https://stackoverflow.com/questions/2064447/jax-ws-map-exceptions-to-faults">link</a>. </p>
<p>My <cod... | 3 | 1,115 |
How to configure LINQ request | <p>I have 2 tables:
'AllowedDates'</p>
<pre><code>- DayID int PK
- Day datetime
</code></pre>
<p>'AllowedTimes'</p>
<pre><code>- TimeID int PK
- DayID int FK
- Hour int
- Minute int
</code></pre>
<p>also I have table 'Users':</p>
<pre><code>- ID int PK
- FirstName nvarchar(max)
...
</code></pre>
<p>and table 'Use... | 3 | 1,201 |
qt isn't detected by qtcreator | <p>I'm triing to get a simple application to work on symbian (Nokia N97)
I installed qt 4.7.4 and qtcreator 2.3.1 on my pc
I installed qt 4.7.4 and CODA 4.0.23 on N97</p>
<p>when i run the application from qtcreator i get the error:</p>
<pre><code>Executable file: 9124 2011-10-23T16:37:36 C:\QtSDK\Symbian\SDKs\Symbia... | 3 | 1,124 |
Why am I getting this error when using Next.js middleware? | <h2>The Problem</h2>
<p>I'm using Next.js, Prisma, and NextAuth's Email Provider strategy to setup an authentication system. I want to use Next.js middleware to redirect a request if it doesn't contain a valid session. But any use of the middleware, like literally just having a function declared in the middleware.js fi... | 3 | 1,491 |
Result mismatch between elem match, and greater than and less than in mongodb | <p>I have a document like this below</p>
<pre><code>{
"_id" : ObjectId("56df07927a65825b47d5e77d"),
"internal_id" : 67627,
"created_at" : ISODate("2015-12-14T16:10:11.015Z"),
"updated_at" : ISODate("2016-01-16T12:40:57.328Z"),
"name" : "DPA_Top Brands",
"company_id" : 2,
"ad_account_id" : 1... | 3 | 1,207 |
How to use array filter for both parent and child values in angular 11 | <p>I have array object i need to use some condition for fetch the data.</p>
<pre><code>this.knowledgeData = [
{
"id": 3,
"name": "Education",
"isOtherCategory": 0,
"isKnowledgeSkills": false,
"isMyInterest": false,
... | 3 | 1,736 |
Dealing With Old iOs Devices | <p>I am making an education app specifically designed for use in schools. When I started the project I didn't take into account how old many of the iPads in the school. Some of them are iOs 9.3.5 and these seem to be the troublesome ones. Because they are locked out I can't do much with them except read the error log b... | 3 | 2,758 |
How to I use several buttons in html to set values for my website and then one button that submits all the data? | <p>I'm looking to have several buttons in my php website that set different values based on the button selected and then have the final button set a value and then submit all of these to the next php page. So here I have two sets of buttons that need to be set inside of a form:</p>
<pre><code><form id="formUploadFi... | 3 | 1,029 |
Swift UITableView numberOfRows Error When Added or Removing Rows in Section | <p>I've been experiencing a very annoying issue this week. I have a UITableView that generates a number of sections (with section headers), each section always having 3 rows.</p>
<p>I've implemented a hiding/showing section functionality when a section header is tapped, where all the rows in that section are either de... | 3 | 2,113 |
Using Theil-Sen method when plotting with geom_smooth() | <p>I looked at previous questions, and the solution was to use mblm(), which I did</p>
<pre><code>library("tidyverse")
library("mblm")
ts_fit<-mblm(Qmelt~date,data=Qm)
ggplot(Qm,aes(x=date,y=as.numeric(Qmelt)))+geom_point(size=3,pch=7) +
geom_smooth(method="ts_fit",se=FALSE)
</code><... | 3 | 1,461 |
Issue in Spark not able to read S3 subfolders of a hive table | <p>I have 3 non-partitioned tables in Hive.</p>
<pre><code>drop table default.test1;
CREATE EXTERNAL TABLE `default.test1`(
`c1` string, ... | 3 | 5,758 |
CORS policy and Spring Security | <p>I can register, update and delete everything. However, when I will
request security, I'm blocked by CORS.</p>
<p><code>Access to XMLHttpRequest at 'http://localhost:8080/oauth/token' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: ... | 3 | 1,421 |
How can I fill missing values if they meet a certain value in the dataset? | <p>I have a dataset with about 2400 rows and some rows are missing a value as you can see in the following example:</p>
<pre><code>+------+------+-------+-------+--------+
| Name | Year | Value | Name2 | Value2 |
+------+------+-------+-------+--------+
| A | 2010 | 10 | | ... |
| A | 2011 | 10 | ... | 3 | 1,213 |
Tenants created in API manager are not able to login to the carbon console of the ID server | <p>I am using APIM 3.1.0 with IS-KM 5.10.0 as a key manager for the APIM. I created the tenants via the APIM carbon console. To create the XACML policies for newly created tenants I am trying to login to the carbon console of the IS using the credentials of the newly created tenant. But I am getting login failed error.... | 3 | 3,380 |
Qt3D - Instance rendering of 2 squares. PrimitiveType? InstanceCount? | <p>I'd like to display on the screen 2 squares using instance rendering.<br/><br/>
The problem is :<br/>
When I draw 2 squares, they are connected. I can't draw multiple separate square. <br/><br/>
I know it has to do with PrimitiveType : i'm using <em>Qt3DRender::QGeometryRenderer::LineLoop</em> or <em>Qt3DRender::QGe... | 3 | 1,301 |
How do I convert a PivotTable that was made into Pandas / Numpy in a DataFrame? | <p>In python3 and pandas I have this dataframe:</p>
<pre><code>despesas_atuais_final.info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 82318 entries, 0 to 82317
Data columns (total 18 columns):
Ano 82318 non-null object
CNPJ 82318 non-null object
Deputado ... | 3 | 1,126 |
Exception in thread "AWT-EventQueue-0" simple calculator(JAVA) | <p>I am attempting to do a simple calculator in java. It only has to account for the basic four operations. I think the logic is correct, however when I run it I get the following error:</p>
<pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at simpleCalc$1equalsListener.actionPerformed(s... | 3 | 2,910 |
How to direct gas use a specified encoding form of instructions, for example, MOV? | <p>The MOV have the two form to move an imm to r64:</p>
<pre><code>| Opcode | Instruction | Op/En | 64-Bit Mode | Compat/Leg Mode | Description |
| REX.W + B8+ rd | MOV r64, imm64 | E | Valid | N.E. | Move imm64 to r64. |
| ... | 3 | 1,192 |
UDP client/server block | <p>This is the client:</p>
<pre><code>int main(int argc, char* argv[]){
int port;
int nrb;
int flag;
int file;
struct hostent *host;
unsigned int len;
char fileName[50];
int sock;
char* buffer;
int bytesRead;
char dest[50];
struct sockaddr_in sv_addr;
sscanf(argv[1],... | 3 | 1,385 |
Uncaught Slim\Exception\HttpMethodNotAllowedException: Method not allowed. Must be one of: GET | <p>I'm trying to implement firebase auth in my chrome extension and in my slim php REST API. After some configuration with the extension manifest and with the php server code I have a problem with the token verification. I always get this error when I try to pass the token I get from <code>chrome.identity.getAuthToken(... | 3 | 1,688 |
How to match div heights using Javascript or Jquery? | <p>I am trying to make the "dropdown-container" match the height of the flyout menu that is shown when one of the dropdown options is hovered. My problem with the below code is that the resize only occurs after the mouse moves again. Is it possible to force the dropdown container to resize any time the "... | 3 | 1,968 |
Android Studio's Translations Editor doesn't load - stuck on "Loading string resource data" loading indicator | <p>When I try to open the Translation Editor it gets stuck on "Loading string resource data" and I get an IDE error. This used to work fine a few weeks ago until adding in the <code>en-001</code> and <code>es-419</code> locales. I tried a new project and Translation editor did open fine until I added those sp... | 3 | 1,884 |
I was trying to implement a object detection on a custom dataset using tensorflow | <p>I am new to tensorflow and I was following this [link]<a href="https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html" rel="nofollow noreferrer">https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/training.html</a></p>
<p>I ran the
<code>python model_main_tf2.py... | 3 | 1,378 |
BeautifulSoup extract data from certain columns from a table I am getting too much data out | <p>I am trying to extract some data out of my Selenium Test Report html file.<br>
I am getting too much data out of the table of rows and columns.
The data I would like to extract is all columns which have the class value "testcase" and there is a column below with a class value "popup_link" and the text value will say... | 3 | 2,281 |
eclipse: maven dependency search shows only old versions | <p>I'm using Maven to create a spring project. But there are no new versions of spring dependencies when I use mave dependency search (I mean a window that appears when you click button "Add" to add new dependency). Here's my screenshot:
<a href="https://i.stack.imgur.com/nBKxb.png" rel="nofollow noreferrer"><img src="... | 3 | 1,053 |
Having troubles with doubles | <p>after long hard work, I have finally completed (almost) my java menu program. However, I am having trouble getting my return change function to work at the end of my code. It is giving very odd numbers. Any ideas?</p>
<p>Code:</p>
<pre><code>import java.io.*;
import java.text.*;
import java.util.*;
public class J... | 3 | 4,625 |
How to clone/duplicate a TensorFlow Probability neural network model | <p>I have a TensorFlow Probability model that is built similar to models described in this <a href="https://www.youtube.com/watch?v=BrwKURU-wpk" rel="nofollow noreferrer">YouTube Video</a>. Here's the code to build the model:</p>
<pre><code>def posterior_mean_field(kernel_size: int, bias_size: int, dtype: Any) -> t... | 3 | 1,669 |
Interactive Graphs in R using rggobi | <p>From the following xml code:</p>
<pre><code><?xml version = "1.0"?>
<Company >
<shareprice>
<timeStamp> 12:00:00.01</timeStamp>
<Price> 25.02</Price>
</shareprice>
<shareprice>
<timeStamp> 12:00:00.02</timeStamp>
<Price> 15&... | 3 | 1,729 |
Why does a single thread make my Java Program so much faster? | <p>I have been given the task of creating a sql database and creating a GUI in Java to access it with. I pretty much have it but I have a question about threads. Before today I did not use any threads in my program and as a result just to pull 150 records from the database i had to wait around 5 - 10 seconds. This was ... | 3 | 1,569 |
FCM - messaging().onMessage duplicate callbacks - does not unmount with useEffect | <p>I'm using FCM to send messages to an Android app which then renders the messages into a FlatList component. When I new FCM message is received I want to refresh the FlatList component so the latest message is displayed in the list. I'm using useEffect to trigger the refresh with setRefreshPage().</p>
<p>The code bel... | 3 | 1,713 |
Why is the training step slower in tensorflow than in Keras (Same network, optimizer, everything)? | <p>I am implementing a CNN fro MNIST both in Tensorflow and in Keras. Therefore Im trying to implement the same network in both platforms, just to compare. However, Im getting a really strange result: The Keras code is <em>really</em> faster than the TF code. I know Keras is just a wrapper, so I cant actually explain i... | 3 | 1,984 |
Why aren't my values from my text fields appearing in the email sent when submit is pressed? | <p>Love the site, this is my first question here.. I'm new to programming php..I have the following coding on my default page where the Form is:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.o... | 3 | 2,454 |
jQuery $this clicked element | <p>I have the following script that sends an image URL to an input field on click (from a modal window). I am also sending that same url, <code>imgurl</code> to a <code><div class="preview-image></code> to show it on insertion.</p>
<pre><code>var BusiPress_Configuration = {
init : function() {
this.f... | 3 | 2,021 |
Python CVXPY: Attribute Error - Parameter | <p>I'm attempting to use CVXPY in python to solve a linear programming problem that has a handful of constraints. I created a single list with all of the constraints listed but when it came to running the problem.solve(), it returned the following error:</p>
<p>"AttributeError: 'list' object has no attribute 'para... | 3 | 1,728 |
Flutter: Horizontal listview break to next line and expandable | <p><a href="https://i.stack.imgur.com/WgnDP.png" rel="nofollow noreferrer">UI mockup</a></p>
<p>I have this above UI to develop using Flutter. I have already put the <code>ListView.builder</code> widget to build a horizontal list.</p>
<p><a href="https://i.stack.imgur.com/IxxiP.png" rel="nofollow noreferrer">Code so fa... | 3 | 1,041 |
Why my tensorflow is not detecting my GPU? | <p>I can't run my code using GPU.</p>
<pre><code>import tensorflow as tf
#tf.disable_v2_behavior()
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
</code></pre>
<p>It prints</p>
<pre><code>Num GPUs Available: 0
</code></pre>
<hr />
<pre><code>from tensorflow.python.cl... | 3 | 8,209 |
Generate multiple pdf based on result of sql | <p>I am generating a pdf with the results of sql query. There may be a possibility that sql returns more than 1 booking_id. What it does now is, it puts the result of all the booking id into one pdf. I want to fetch every booking id and generate its pdf. Basically, 1 pdf per booking_id and zip each pdf(its a requiremen... | 3 | 1,462 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.