title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Create a time varying and time invariant contextual variables in r
<p>I am attempting to do a longitudinal multilevel model using ESS survey data from 2002-2018. I want to look at the effects of macroeconomic performance on political trust. In order to do this I am using a 'within-between' approach which models a cross sectional and longitudinal component simultaneously.</p> <p>Right ...
3
3,578
Laravel: Select raw query with filter doesnt return anything
<p>Previously I was able to display data normally, here it's still not there any filters, this is my code and the result.</p> <p>Code:</p> <pre><code>$app = DB::select(DB::raw(&quot; select pel.id as id_pelamar, nm_pelamar as nama_pelamar, nm_rs as rumah_sakit, nm_unit as unit, ...
3
1,094
Resize QPaint drawRect by dragging the corner in order to select the ImageCrop Area
<p>I want the red rectangle resize like this</p> <p><img src="https://i.stack.imgur.com/NFaXG.gif" alt=""></p> <p>now</p> <p><img src="https://i.stack.imgur.com/8CuqN.png" alt=""></p> <p>I would like to keep Image remain the same size, but resize the Red Rectangle by dragging the corner of Red Rectangle, <strong>ic...
3
1,115
select * from table where id in (select group_concat(id) from table ) How to implement batch and new data using the group_concat function IN IN()?
<p><a href="https://i.stack.imgur.com/ZBaAE.png" rel="nofollow noreferrer">enter image description here</a>SELECT * FROM <code>user</code> WHERE id IN (select group_concat(id) from <code>user</code> GROUP BY sex) ; </p> <p>I want the following result </p> <pre><code>UPDATE `user` SET average_age = (SELECT AVG(score...
3
1,240
Xamarin - Socket IO issue
<p>I have to make a chat for a Xamarin Forms (PCL) application. I'm using the NuGet package SocketIoClientDotNet for socket.</p> <p>At first I could not connect at all. After many researches on internet I found <a href="https://github.com/Quobject/SocketIoClientDotNet/issues/127" rel="nofollow noreferrer">this open is...
3
1,143
reading public var valid of subclass of NSTimer fails with 'isValid only defined for abstract class'
<p>I have created a subclass of NSTimer which adds (i hope) the pause and resume function to scheduledTimerWithTimeInterval function.</p> <pre><code>class HCTimer: NSTimer { var hcTimerInterval :NSTimeInterval! var hcTarget :AnyObject! var hcSelector :Selector! var hcUserInfo :AnyObject! var hcRep...
3
1,732
Action in RelayCommand is not running
<p>The main window:</p> <pre><code>&lt;Window x:Class="Generator.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/...
3
1,410
PlaceHolder duplicating on button click-Insert Error too many arguments
<p>I'm having the user selecting the amount of textboxes as the need arises; however if the user selects 3 then on button click the count shows 6; hence inserting the data to the database table; it is saying that it has too many arguments. How can I stop it from duplicating and just pass the amount from the populate fu...
3
1,062
Edit mode, how to toggle between states
<p>I am following this guide: <a href="http://emberjs.com/guides/getting-started/toggle-todo-editing-state/" rel="nofollow">http://emberjs.com/guides/getting-started/toggle-todo-editing-state/</a></p> <p>So I wrote this code:</p> <pre><code>App.PostEditController = Ember.ObjectController.extend headerTitle: 'Editin...
3
1,152
Hibernate: Query unmapped class
<p>I have two entities for which I implement CRUD operation with REST, Hibernate and Postgres. The API is written with Quarkus.</p> <p>There is a Tenant and a Member class.</p> <p>Member class</p> <pre><code>@Getter @Setter @AllArgsConstructor @NoArgsConstructor @EqualsAndHashCode @Entity(name = &quot;member&quot;) @Ta...
3
5,117
Slick Lightbox Won't Open After Swiping on Slider
<p>Hey y'all this is my first time posting here, so please let me know if I've asked correctly.</p> <p>I have implemented a button that opens up a Slick Lightbox with Slick Slider. The button opens the current slide that is displayed but on mobile, when you swipe the slider and then try to click on the button, the ligh...
3
1,082
how can I insert into sql table using javascript
<p>// HOW CAN I INSERT INTO SQL TABLE USING JAVASCRIPT how can I insert into sql table using javascript</p> <pre><code> function checkout() { </code></pre> <blockquote> <p>enter code here</p> </blockquote> <p>`// HOW CAN I INSERT INTO SQL TABLE USING JAVASCRIPT how can I insert into sql table using javascript<...
3
1,139
How to correctly set a date using datepicker?
<p>I have 3 pages:</p> <pre><code>registration all values detail page </code></pre> <p>Once I register all the values ​​on the registration page, and go to the page where I see all my results, obviously as I set I get the date of a value, so far nothing strange, when I then go to the information page of the product, wh...
3
1,215
Creating XML Using SimpleXMLElement
<pre><code>&lt;?php $xml =new SimpleXMLElement('&lt;OTA_HotelAvailRQ&gt;&lt;/OTA_HotelAvailRQ&gt;'); $xml-&gt;addChild("AvailRequestSegments"); $AvailRequestSegment = $xml-&gt;addChild("AvailRequestSegment"); $StayDateRange = $AvailRequestSegment-&gt;addChild("StayDateRange"); $StayDateRang...
3
1,116
laravel how to parse compact variable
<pre><code>@foreach($brand as $br) {{$br-&gt;brands}} @endforeach </code></pre> <p>i echo out my variable like this and i get this output</p> <pre><code>[{&quot;id&quot;:1,&quot;title&quot;:&quot;Eurboor&quot;,&quot;description&quot;:null,&quot;status&quot;:1,&quot;slug&quot;:&quot;eurboor&quot;,&quot;icon&quot;:null,&...
3
1,113
java.lang.NumberFormatException: null error in doPost
<p>I'm creating a webpage that starts a list of vaccines. When I click on a link to edit a specific vaccine entry in the list, this is the webpage that users are brought to. The id parameter from that entry is passed to this page. Clicking on the save button calls doPost. when I try passing the id parameter from doGet ...
3
4,285
How to stop component from from re-rendering multiple times?
<p>I have a component which contains a couple of others which are dependent on reducer states. Whenever I run the actions within the component, it rerenders multiple times. The last two rerenders are completely in the render function, I was not aware that this happens. I have tried tracking the render using the react ...
3
17,640
So specific, adding a image of the artist to the table view of recent songs in a joomla component
<p>I want to have the image of the artist (song artist) available in the viewing of the recent songs. here are the php files and the tables of the database i guess you might need when answering: (I'd be happy if someone would teach me so fast how to use query commands for selecting a data like this in a crossed usage ...
3
2,822
SQLite3 do not always work properly (cannot prepare or execute queries)
<p>I am using an MacMini for development in swift and I am testing on an iPhone 6S.</p> <p>I tried to install Sqlite-wrappers (SQLite.swift, fmdb) but they both crashed my app on startup. So I use the pure sqlite3-API.</p> <p>At first I created a pointer to the DB and made it available as a static variable.</p> <pre...
3
1,443
C: Segmentation fault with printing Link List
<p>I'm pretty new to C, but I wanted to build a program that could allows users store ip addresses obtained from a traceroute/tracert that is first stored into a text file. It then allows them to print the next/previous hop. I used a linked list, but the printing gives me a segmentation error.</p> <p>I tried looking t...
3
2,437
How to separate user interface for phone and pad (or laptop)
<p>I have a MainPage.xaml with ListView, it works on phone well, but when it runs in windows 10 laptop, the listView item is very small, and I can't use all the area of screen. So that I want to use ListView on Phone and GridView with groups on Pad and laptop (larger screen). How can I do that?</p> <pre><code>&lt;List...
3
1,498
JavaFX custom chart class - how to bind a node's layoutX and layoutY properties to the display positions of a NumberAxis?
<p>I'm writing a rudimentary <a href="https://en.wikipedia.org/wiki/Candlestick_chart" rel="nofollow noreferrer">Candlestick</a> chart class in which the candlesticks are created as <code>Regions</code> and are plotted by setting their <code>layoutX</code> and <code>layoutY</code> values to the <code>getDisplayPosition...
3
2,009
Sum values of the array against same SKU
<p>I am getting the total sold items from an URL and it return in an array that contains the 'SKU', 'Date', 'Quantity' and 'Total Price'. I want to calculate the Total Quantity against Same 'SKU' and store in new array. Can any one let me know how can i do this in PHP language? </p> <pre><code>$url ="abc"; ...
3
1,296
First build in MyEclipse 2017 --> has errors in maven build
<p>I have the web project that run smoothly. But When on another colleague computer, it installed myEclipse 2017 and jdk 1.7. When first build the project, it shows error dialog with details as below. I have tried to new another workspace and delete the .m2/repository folder and update maven build. Same error dialog ha...
3
4,867
removeobjectAtIndex: causes index to be -1;
<p>I have a <code>NSTableView</code> that is populated by an array called tableArray. I have a button that is supposed to remove the selected item from the array. In my removeItem: method:</p> <pre><code>[tableArray removeObjectAtIndex:[tableView selectedRow]; [tableView reloadData]; </code></pre> <p>But I get the er...
3
1,598
Problem with TableLayout
<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@null"&gt; &lt;ImageView android:layout_width="70d...
3
1,937
How to passing data to modal Materializecss
<p>My website uses the Materialize CSS for CSS framework and PHP for the back-end language. But, I have some problem. I want to make edit data features on modal, but I don't know how to passing data to the modal. What should I do?</p> <p><strong>This is my modal content code:</strong></p> <pre><code>&lt;!-- Modal Start...
3
1,058
Symfony 1.4 jQuery doesn't know user is logged in because of cache?
<p>I have an issue with image comments trough jQuery. As I figured out the action is cached and, when jQuery calls the action, because of the cache, it doesn't know that sfGaurd user is authenticated and therefore I can't insert a comment without user_id (relation problem) </p> <p>so here is how its done :</p> <p>RO...
3
1,215
Code compiling but not executing Java
<p>I've written the code below and from what I can guess it should execute correctly but it doesn't and I'm hitting my head against a wall. What I'm trying to do after finding the objects to be added to the temp vector list is to loop through the vector list take each file name and count the number of occurrences of a ...
3
1,694
How do I change the function of a button more than 2 times?
<p>I would like to make one button do 3 or more things one after the other. I'm trying to make a CYOA and I need one button to go through multiple layers/phases/sections(Start to layer 1 to layer 2) of the CYOA, with as little repeating code* as possible. I have placeholder text in the areas where the text in the title...
3
1,050
Set margin-top according to the height of the other element
<p>I have two navbar´s (one under the other). My goal is that both are fixed at the top, so I applied to both (fixed-top).</p> <p>To make the other navbar fit under the other, I used a margin-top. My problem is that this margin top is not responsive, if you increase or decrease the screen size, the navbar does not fit...
3
2,834
Custom Navigation Drawer : The ListView over the Toolbar
<p>I have this MainActivity.xml and I would like when my ListView (Drawer Navigation) opens over the ToolBar.</p> <p>A change in my XML is enough to get a result ? If it's possible with ToolBar and style.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code...
3
1,295
How to Implement Binding Validation for Binding Collection
<p>I am new to WPF and having problem with validation of bound collection.</p> <p>I have DataGrid that is bounded to collection of polymorphic objects that are grouped together.</p> <p>The DataGrid has two columns: </p> <ul> <li>Lable oneTime bounded to the Display Name</li> <li>TextBox TwoWay bounded to the value w...
3
1,871
How to get multiple selected images from canvas to php?
<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>function showimage(a){ /*$('#sinistra img').click(function () { var c = document.getElementById("screensketchCanvas"); ...
3
10,403
Advice on routing to another page with a specific ID
<p>I am very new to Angular and I am creating a full stack MEAN stack. I need some advice on a problem I'm facing. I want to create a form, 'fa-daform.component.html,' that gives a brief description, author and date that stores to a database with a randomly generated ID. I want such that when I hit submit/a create form...
3
3,862
Column search fails after modifying cell value
<p>I have the following code (snippet attached):</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> &lt;!DOCTYPE HTML&gt; &lt;html lang="en"&gt; &lt;head&gt; ...
3
8,282
Just want to print out 2 values from an API response Python
<p>I am calling an API that returns some user data, see output below.</p> <p>All I want to do is print out 2 of the values from each section labeled node, ultimately I want to use the output in an html table. I have looked at a dozen or more posts on here and can't get this sort of output.</p> <p>In the case out the ...
3
1,110
AngularJS View does not show up while loading
<p>I've got a simple view which takes 2 seconds to load. I also have a loading overlay which checks the $http.pendingRequests to display a Loading-Overlay.</p> <p>First the Overlay shows up, does it's thing and then the View pops in. I need the View to be displayed BEFORE it has finished loading, so that the Overlay c...
3
4,757
Remove checkbox php
<p>I'm really new to PHP, and i'm currently making a small webshop (Locally) to try out my skills.</p> <p>I've got some code, where there is a checkbox if you are a danish citizen, but i want the checkbox to be removed and then just run the code which normally only would have been running if it was checked no matter w...
3
1,122
App cannot be launched, but seems to have installed
<p>I changed the manifest of my app, and now the app cannot be launched. No icon. However, when I check installed under setting Application Manager, I see it there! Whats going on??? I have used same permissions before. I just changed which app was MAIN and launcher. Now cannot see the app. Does not come up via Studio...
3
2,989
Finding out the original author of a shared post (the "via X" while reading the newsfeed)
<p>While fetching the stream FQL table you can see entries as link post (type_id is set to 80), the attachment attribute says it's a video (in this specific case) but I see no way to find the original post_id used for the "via" while reading the news feed through on a desktop browser</p> <p><img src="https://i.stack.i...
3
2,370
How do I increase the size of Notification Center notification images in macOS Big Sur using node-notifier or some other Node notifications library?
<p><strong>TL;DR:</strong> This could be a question with an easy answer, but I'm either looking for a solution that allows me to use larger content images in macOS Big Sur notifications or evidence that it is no longer possible.</p> <p>In macOS X High Sierra (and possibly Catalina), it was possible to display notificat...
3
1,165
Complex SQL optimization vs. general-purpose language
<p>How might I optimize this query? The schema:</p> <pre><code>mysql&gt; show columns from transactionlog; +---------------+-------------------------------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------...
3
2,515
how to add adding multiple aws target groups to multiple autoscaling groups using terraform
<p>i am creating 4 target groups and 4 nlb , count is based on number of screenrecorders (01-04). Also 3 ASG one for each AZ. I want to add 4 target groups to each ASG. for example : fw_asg_az1 should have 4 target groups attached, same way for fw_asg_az2 and fw_asg_az3 same target groups needs to be attached.</p> <p>i...
3
2,256
Define Number of lists according with Number into Widget flutter
<p>What I Have are number of orders received that has be shown into a tab into a widget in flutter according with this code:</p> <pre><code>class ShipmentTab extends StatefulWidget { @override _ShipmentTabState createState() =&gt; _ShipmentTabState(); } class _ShipmentTabState extends State&lt;ShipmentTab&gt; { ...
3
1,992
Troubleshooting PyQt4 Matplotlib
<p>So I managed to write a PyQt4 Widget, which can run a loop in a thread. 2 Things are done in the thread. </p> <ol> <li><p>A loop is started and a signal is emitted to a progress bar to give info about progress. (I know this could be done better but for my task is sufficient)</p></li> <li><p>After the loop is done r...
3
1,210
How do I organise pure QML projects for reusability?
<p>I have <a href="https://gitlab.com/detly/MyComponent/tree/44571f968b6174aaee64ad91308b106fddc5cafe" rel="nofollow noreferrer">a QML project</a> that works fine when it's all in the same directory. There's a <code>main.qml</code> with a <code>main.cpp</code> containing the usual:</p> <pre><code>QQmlApplicationEngine...
3
1,178
About TestNG @BeforeClass in multi@Test situation
<p>I put initMocks and some PowerMockito init(each PowerMockito.when point to each @Test) in @BeforeClass.</p> <p>But when run as TestNG test, just one @Test is success, the others is fail because these PowerMockito seems don't work.</p> <p>Here is test code. </p> <pre><code>package main.test.testng.biz; import mai...
3
1,352
Reverse loop TicTacToe
<p>I've got loop:</p> <pre><code>for (int i = 0; i&lt;3; i++){ System.out.println(i); } output: 0 1 2 </code></pre> <p>I need to reverse this loop to output:</p> <pre><code>2 1 0 </code></pre> <p>I need it because I work on TicTacToe Java game.</p> <p>Here is my code for check win:</p> <pre><code> static boolean che...
3
1,895
django unprintable templatesyntaxerror object caused by urlconf?
<p>I'm trying to get a django project set up, and I seem to be having trouble with my urlconf. I'm not sure what the deal is, and the error below isn't entirely helpful to me. I don't think it really has anything to do with template rendering, actually, because I stepped through the execution path until just before t...
3
1,308
Newsletter2Go REST API - How to add new recipient to list?
<p>Is it possible to add a new recipient via the REST API of Newsletter2Go?</p> <p>I tried it like this (snippet):</p> <pre><code>public function subscribeAction() { $this-&gt;init(); $email = $this-&gt;getRequest()-&gt;getParam('email'); $gender = $this-&gt;getRequest()-&gt;getParam('gender'); $firs...
3
2,013
How to declare vector of object in c++?
<p>I receive the following error on declaring a vector of <code>Point</code> in the code shown (see reference to class template instantiation <code>std::vector&lt;Point,std::allocator&lt;Point&gt;&gt;</code> being compiled):</p> <blockquote> <p>Severity Code Description Project File Line Suppression State Err...
3
1,100
Selenium - EventFiringWebDriver beforeFindBy and afterFindBy methods fires same event multiple times
<p>I have implemented WebDriverEventListener in my project to log events. I am facing an issue that same events are fired multiple times for <strong>beforeFindBy</strong> and <strong>afterFindBy</strong> methods in WebDriverEventListener Interface though I registered eventListener only once. Not sure what went wrong. M...
3
2,106
Server running with daphne starts to response with code 504 on any http request after passing uncertain time
<p>I'm using django-channels2+daphne in production. After uncertain time passed I got this error twice (after 2 and after 6 hours correspondingly), which involved <code>504</code> answer on any HTTP request. I have no idea how should I debug the problem. Using nginx, django-channels2, daphne. </p> <pre><code>Applicati...
3
1,088
File being used by another process, cannot be accessed
<p>I am creating loggers to log messages to a text file. The function DeleteOldLogs() is responsible to delete any logs that are over 14 days old. When I run TestMethod1(), I receive an error "The process cannot access the file because it is being used by another process" Is there a way to avoid that error?</p> <p>// ...
3
1,207
how to let users only delete their own reviews Ruby on Rails?
<p>Im new to rails and working on my project.When a user logs into his account i want to give him the ability to delete only his reviews and not the reviews of others.Currently one is able to log in an delete any reviews.I know this needs some authorization thing but im not sure.Here is my code... here is the model rel...
3
2,279
Widget not handling click event
<p>i already checked all the other already solved question but no one fixed my issue. If anyone could help me it would be wonderful. Thanks in advance.</p> <p>I am using a GridView with 1 column. I want to open the MainActivity.class on the GridView or on an item click. Currently it is not working and i do not underst...
3
3,711
Performing a join against a sub subdocument in mongodb
<p>I am trying to do a left join using mongodb to get a count of the number of each product was purchased in each store per user. I am new to aggregates and nosql and am having a problem seeing how to join the users.products.stores to the stores table to get the name of the store and the products table to the users.pr...
3
1,093
Image not displaying on Firefox (bootstrap + Wordpress) due to AdBlock issue
<p>I have this code using Wordpress + Bootstrap, and somehow images aren't showing in Firefox, however, they display correctly in any other browser. I did a search at SO and found some answers related to disabling ad-block, but it didn't solve the issue, so I'm quite lost here.</p> <p>The relevant HTML part</p> <p><d...
3
1,674
Error in running android app
<p>i just started <code>Android Studio</code> and i am having error as i try to run my app.This is the error message i got:</p> <pre><code>Error:(53, 58) error: method getId in class View cannot be applied to given types; required: no arguments found: int reason: actual and formal argument lists differ in length Error...
3
1,329
Angular - ng-class - progressbar wizard
<p>So i am working on a multistep wizard in AngularJS. It looks something like this.<a href="https://i.stack.imgur.com/kAcm4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kAcm4.png" alt="Multistep wizard"></a></p> <p>I am using angular ui-router, i have 3 states so when i am on state 1 i want step...
3
1,586
Retrieve Firestore data and populate Vuejs but v-html update is not working
<p>I am retrieving firestore data and populate to the interface with Vuejs. Unfortunately, the innerHTML is not updated and I am stuck for 3 hours but still do not know where have I done wrong.</p> <p>HTML</p> <pre><code>&lt;section&gt; &lt;div v-html=&quot;boardDetails&quot;&gt;&lt;/div&gt; &lt;/section&gt; </...
3
1,710
Generalize way to handle response and error for all web-service calls
<p>I am trying to create generlize approach to handle following </p> <ol> <li>response from webservice </li> <li>to handle HTTP error and custom errors</li> </ol> <p>for that i have written following code and crated callbacks to handle response <code>ResponseCallback</code> and errors <code>ErrorCallback</code>.</p> ...
3
1,385
Read XElement Fragment from xml file to XElement Element
<p>I have xml fragment in an xml-File. The fragment has tags with namespace.</p> <p>How can I read that xml fragment, which represent exactly an XElement element ?</p> <pre><code> &lt;node id="n0::n0"&gt; &lt;data key="d6"&gt; &lt;y:ShapeNode&gt; &lt;y:Geometry height="91.44" width="59.49119999999999" ...
3
1,025
How to integrate 2checkout with reactjs and nodejs?
<p>I am trying to integrate 2checkout API in my reactjs &amp;nodejs project.I reffered the documents which 2co provided.I created an account and in that webhooks&amp;API i have &quot;Merchant Code&quot; and &quot;Secret Key&quot; but there is no &quot;Publishable key&quot; and &quot;Private Key&quot; Why?</p> <p>what i...
3
2,535
BottomTabs with Tabbar
<p>I'm using the v2 of react native navigation for navigation and I'm trying to make a layout with bottom tabs and side menu. This is my current layout</p> <pre><code>export const goHome = () =&gt; Navigation.setRoot({ root: { sideMenu: { left: { component: { name: 'app.SideMenu', ...
3
1,611
How to make an input react the same way as the parent div in a flexbox?
<p>I'm trying to size some divs correctly with a flexbox, so that the inputs and the other items that I'm going to add in later have the correct sizes, but no matter what I do to the div, the input size doesn't change.</p> <p>What can I do to the input to make it so that it's size also changes according to the parent ...
3
1,096
Azure Resource Manager: Web App Slots Config: App Service Authentication
<p>I am having a issue with applying a App Service Authentication to my Web App Slots.</p> <p>The error i am receiving is the following:</p> <p><strong>&quot;The template resource 'webapptest1a/authconfig' for type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Common.Entities.TemplateGenericProperty`1[System.String]'...
3
1,608
Ajax/PHP: Updating a Database
<p>I am using Ajax with PHP to insert values taken from input into a table in phpmyadmin. I am working with camp, but I have a problem getting the value of input.</p> <p>Here is my HTML:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;inscription cli...
3
1,422
Autocorrelation create time series object with multi dimension with many levels
<p>(added xts and zoo tags since I couldn't see a specific r based time-series tag)</p> <p>I was researching the concept of time lag and correlation and learned about the acf() function that calculates the correlation of a variable lagged on itself by different time indexes.</p> <p>I have a data frame with a numeric ...
3
13,301
Java 2 dimensional array throwing out of bounds
<p>I'm new with arrays.</p> <p>This program i have created is throwing an out of bounds error with every method inside of the BlueJays class.</p> <p>To be honest, im not even sure if im searching through the array right. Any help would be appreciated.</p> <p>Thanks</p> <p>This is my main</p> <pre><code>public clas...
3
3,438
Elasticsearch Query Movie Title Contain Episode Number
<p>I wonder if this is the right place to show and discuss about my use case. If not, please help me to redirect this question to other right place.</p> <p>I'm using ES 5.2 for our searching feature in an social media website (something look like youtube). And it's really hard for me to find out how can I search a vid...
3
3,214
iOS script is not running on Appium
<p>When I'm trying to run iOS scripts the Appium server is running but just shows listener started on 0.0.0.0:4723. I don't know where the error is ?</p> <p>Appium: Server is not running</p> <pre><code> AlexHacki- Downloads % appium --base-path /wd/hub [Appium] Welcome to Appium v1.23.0 [Appium] Appium REST http in...
3
1,510
Tailwind styles not applied after deployed on Netlify
<p>I'm trying to deploy my react-app to netlify. But the tailwindCSS doesn't seem working. I have no error message or anything, so have no clue which way to go. Deployment was successful. I was checking all the answers here and other forums, but nothing solved my problem. Tried different builds, and pushing different s...
3
1,585
I am not able to send data to all clients from a single server
<p>I am using a for loop on the server-side to send data to all clients received from a single client. But it is unable to send to all clients. Instead, it just sends data to the only client who has sent the data. And also it is not printing the <strong>here</strong> printf line on the server console.</p> <pre><code>fo...
3
6,158
TDs of only a table not accept width
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code> table.produtos_vendidos table { border-collapse:collapse; border-right: 1px solid #ccc; } table.produt...
3
16,367
How to perform a conditional on a column of lists (considering each item in the list) in Pandas
<p>Say that I have a column of lists. If the list has at least one item in a set, I want to keep the row, otherwise I want to drop the row. </p> <p>Here is a minimal example</p> <pre><code>#create the df d={'range':list(range(0,3))} df=pd.DataFrame(d) l=[1, 2, 3] m =[4, 5, 6] n =[1, 7, 8] df['var_list']='' df['var_l...
3
1,080
View is not working until do a click anywhere on the page when updating checkbox angular 2+
<p>Am using Angular 7 in my application. I have functionality to display content based on the selected checkbox. Everything works fine, but after checkbox checked or unchecked content seems updated but the click is not working until click is register anywhere on the page. </p> <p>Please check the below code.</p> <pre...
3
2,852
Twilio: Uncaught exception 'Services_Twilio_HttpStreamException' with message 'Unable to connect to service'
<p>I am using this code in PHP to list SMS messages received to a certain number:</p> <pre><code>&lt;?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); // Get the PHP helper library from twilio.com/docs/php/install require_once('twilio/Services/Twilio.php'); // Loads the ...
3
1,574
onActivityResult not called in Fragment only in Activity in scanning appl
<p>I am new to Android. My scanning appl is not able to call onActivityResult in fragment. I did check the other threads but unable to understand the issue.</p> <pre><code>public class BarCodeFrag extends Fragment { // TODO: Rename parameter arguments, choose names that match // the fragment initialization pa...
3
2,374
Classic ASP Mail - Error send to user and admin
<p>I am sending a mail using CDO.Message. When the user submits a form, the form details to be sent to the Web Site Owner and a Acknowledgement mail to the user. The later is not working for me. I have repeated the same code twice by changing the configuration names, I simply get "Internal Server Error"</p> <p>My Code...
3
1,041
Posting text on wall: the user hasn't authorized the application to perform this action facebook in android
<p>I know this question has been asked many times before. But none of those answers are working for me.When iam logging in with different user,error is shown.If login with credentials admin of this app,posting on wall is working fine.Please try solve this issue.</p> <p>Here is my code:</p> <p>if (isFB) { // calling ...
3
1,218
LXML Xpath Query
<p>I'm in the middle of writing a small and dirty module to convert an XML document to JSON so that various Javascript libraries can display it in a table. This involves me learning to use LXML and its various XPath functions.</p> <p>I have the following block of code:</p> <pre class="lang-py prettyprint-override"><cod...
3
1,168
Setting num_workers >= 0 makes my script skip the trainloader and start from line 0. My model will not train and just finish the script
<p>I am currently trying to optimize my Model with Hyperopt, thus I have put my whole training and validation loop inside the objective function. So now I want to set num_workers to a higher value because I run my script on a PC with 16 cores. For it to work on the Windows PC I put the fmin function from hyperopt that ...
3
2,020
Use values from groups before and after certain focal groups
<p>I have a value column 'v', grouped by an 'id' column which indicates if values are standards ('s') or collected in field (1.1 - 1.5; 2.1 - 2.5), like this:</p> <pre><code> id v 1 s 8 2 s 3 3 s 3 4 1.1 7 5 1.2 3 6 1.3 6 7 1.4 5 8 1.5 10 9 s 3 10 s 8 11 s 6 12 2.1 2 13 2.2 8 14 2.3...
3
1,431
Frustrated trying to migrate from v1 to Recaptcha v2 in Java application using Struts2 framework
<p>I have an existing Java application on Struts 2 framework. While trying to migrate away from captcha v1 and implement v2, I am not having any luck. I'm hoping someone can help, I would think this should be basic. The I'm not a robot just sits and spins when it is clicked and nothing goes to my action class until ...
3
1,245
How to get dynamically changing Key's value in Json using jackson in java
<p>below is my json string parsing using jackson using java , in which the storage array values will be dynamically changing based on the region , US, UK or any region. how to handle these objects</p> <pre><code>{ "serviceType": { "US - Northern California 1": [ { "serviceName": "Virtual Private Clo...
3
1,351
Haxe Iteration of defining variables
<p>I have a chunk of code that is parsing xml into variables. On one of the variables, there will never be more than 12 but there may be less. I am trying to define each of these variables multiple times a second. However I only need them defined if they have a variable because right now, if there is less than 12 varia...
3
1,759
I cannot workout how to use a Partial View in a form that uses Knockout in MVC
<p>This is my view;</p> <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage&lt;SHP.Models.TrainingListEmployeesViewModel&gt;" %&gt; &lt;%@ Import Namespace="System.Web.Script.Serialization" %&gt; &lt;%@ Import Namespace="SHP.Helpers" %&gt; &lt;a...
3
3,866
What's causing this background-image to display "incorrectly" in Opera and Firefox?
<p>I know this is something I'm probably doing wrong, so please don't incinerate me for the thread title.</p> <p>I'm trying to put together a small personal website using HTML 5/CSS3. I've checked with the w3c validator and the site and CSS file fully conform according to the validator (However the validator has a wa...
3
1,544
Pyinstaller .exe compilation error
<p>THE SOLUTION---> import Tkinter at top f script.</p> <p>I am trying to compile my python script (which uses matplotlib, pyside.pyqt, and numpy) into an exe using PyInstaller. After I compile it using this command:</p> <pre><code>py PyInstaller.py guidraw_final.py </code></pre> <p>I go ahead and run it from the di...
3
2,110
Docker and Django. django.db.utils.OperationalError: could not connect to server
<p>I can't find solution, please help!</p> <p>I have <strong>Dockerfile</strong></p> <pre><code>FROM python:3 ENV PYTHONUNBUFFERED=1 RUN mkdir /app WORKDIR /app RUN pip install Django \ &amp;&amp; pip install psycopg2 \ &amp;&amp; pip install jinja2 \ &amp;&amp; pip install Pillow COPY . /app/ </code></...
3
1,063
Spring Framework NString not supported
<p>I have an object named "Duuni" with some abstract getter and setter methods inside and "DuuniImpl" implementation of Duuni. I use JdbcTemplate and RowMapper to retreive data from database. Here's my code:</p> <pre><code>package vjb.de.vietjob.bean; import java.util.Date; public interface Duuni { public abstr...
3
3,125
How to include a Microsoft Visual C++ Redistributable package in a python cx_freeze application
<p><strong>CONTEXT</strong></p> <p>I'm trying to build a python tkinter application using <code>cx_freeze</code>, and I successfully build the .exe. Here is my setup.py:</p> <pre class="lang-py prettyprint-override"><code>import sys from cx_Freeze import setup, Executable version = &quot;0.7.6&quot; author = &quot;Me&...
3
1,059
Image could not be shown in canvas
<p>I am now working on a assignment that needs to make use of the Android studio to create an app with animation. However, I found that the image that I put on the drawable file could not be shown on the canvas. Therefore, I tried to added a line of <code>this.setWillNotDraw(false);</code> in order to show the image. T...
3
1,299
Want to update column Values for each occurrence of column AppName where at least one of the values in column Values is "Yes" s.t all values are 'Yes'
<p>I have a table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">AppName</th> <th style="text-align: center;">Values</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">JBX</td> <td style="text-align: center;">Yes</td> </tr> <tr> <td style="text-align: ...
3
1,075
Java OverlayLayout items arrangement issue
<p>I have an issue with placing objects inside <code>JPanel</code> which has <code>OverlayLayout</code> as layout. I am creating card game and what I want is to have a story of dropped cards on the table. For instance, I would like to have 10 or 12 cards on board, displayed in the order in which they were placed and wi...
3
2,100
Python Package Not Including Static Content When Installed
<p>I'm writing a Python package for creating architecture diagrams. As part of that process, I need to be able to include static content (i.e. images) as part of my package distribution. To do this, I followed the documentation and added a <code>MANIFEST.in</code> file that includes all of my icons and updated <code>...
3
2,187
LINQ query to get price of product that is added in sales table
<p>I am New to MVC ASP.NET C#, so i am having trouble in getting product' price from ProductsList table. The Sales Table has a column of Total Price where price of product from ProductList is multiplied with the quantity added in Sales Table by user and total price will be calculated for that product. Model Class for P...
3
2,419
Network requests are not always happening after click() command in cypress
<p>I am new to automation testing. I'm training to automate with cypress and I faced the problem that network requests (GET-XHR requests in particular) are not always being triggered after click() command in cypress.</p> <p>I have a custom command in my <code>/support/commands.js</code>, which is supposed to click 'Add...
3
3,096