title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
change url with tab on click with materialize css and jquery
<p>2nd question here and new to coding. I'm trying to change the url when I change the materialize css tabs, using jquery but it isnt working. The html is:</p> <pre><code> &lt;div class="row"&gt; &lt;div class="col s12"&gt; &lt;ul class="tabs tabs-transparent"&gt; ...
3
1,092
Working with JSON and Angular NVD3
<p>My HTML code: </p> <p>Here I am retrieving fields(<code>key</code>) from <code>JSON</code> file and displaying it in the options. Whichever option I am selecting from selection's dropdown section , I am sending that option to my angular script js file , through nvd3 directive data option( <code>data="drawData(data....
3
2,022
How to filter the duplicate rows with complex scenarios
<p>I would like to filter duplicate rows with some complex scenarios.</p> <p><strong>For example 1:</strong></p> <p>ID and Code ID are the same, and the Status is either "Not Reservable" or "Reservable", we will remove the ID and Code ID that have the status of "Reservable"</p> <p><strong>For example 2:</strong></p>...
3
1,168
How to get Browser-Sync to serve PHP-Files in Gulp 4
<p>I am working on a gulpfile which already works fine when its processing html/scss/js. Now I want to have my site on PHP-basis and need Browser-Sync to serve my PHP instead of showing <strong>&quot;Cannot GET /&quot;</strong> in the browser. I know that implies some path issue as it all works, when there is an <stron...
3
1,448
slideUp() slideDown() doesn't work properly
<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>$(document).ready(function(){ $('.outer').click(function () { $('.inner').slideUp(); /*alert("I BIMS");*/ }); });</code...
3
2,211
Live data will not load in HighCharts gauge
<p>I am trying to make a Gauge chart. The chart is displaying 80 but live data is not working. I use the following code:</p> <pre><code>$(function () { var chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'gauge', plotBackgroundColor: null, ...
3
2,057
Looping through the data from database
<p>Hey I have got data in my variable using foreach($report as &amp;rep)</p> <p>note it is getting things from 4 different table in database</p> <p>Now when I print my $rep I get the following:</p> <pre><code>Array ( [Report] =&gt; Array ( [id] =&gt; 246 [emp] =&gt; werock ...
3
1,307
How to decrease the timeout in Jakarta EE 9.1 CDI Conversation Scope (MyFaces 3.0)
<p>this is Fernando,</p> <p>I am using JSF 3.0 and and Conversation Scope in some Managed Beans. The problem I am facing is to configure the timeout to expire abandoned conversations. The default 30 minutes is too long to my context and I need to set this around 10 minutes. I have tried to set the timeout using the con...
3
1,310
how to parent object to another object and affect its position through rotation (make object rotate around other object)
<p>For context, I'm making a top down shooter game where the player always rotates/faces itself to the mouse cursor. That can be easily done, but now I'm stuck in positioning the weapon that the player hold (I separate the weapon entity and the player entity because I want the player to be able to switch weapons). I ha...
3
1,907
How to get input text's value and pass it from child to parent component?
<p>When I try to change task which I have done before, input doesn't changes. Because it takes the value from <code>text</code> but not from object which I pushed in <code>tasks</code> array</p> <p><strong>Component's code:</strong></p> <pre><code>const CurrentTaskInformation = ({ status, text, deleteTask, ch...
3
1,077
Submit a form in the background with ajax
<p>I have the following problem, I am using Prestashop and I need a form to make a submit in the background, I have investigated and I found a way to do it with ajax but I need the url and data parameter that I do not know how to get them since the form is this.</p> <p>As you can see, the form has no action and the dat...
3
3,716
Using mapViewDidChangeVisibleRegion with CLGeocoder to return name of the country
<p>I just want to return the name of the country where the black circle stops. [1]: <a href="https://i.stack.imgur.com/Re5FK.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/Re5FK.jpg</a> Example in the picture above</p> <p>I know it can be done by <strong>CLGeocoder</strong> and <strong>CLPlacemark</strong> al...
3
1,852
How generate dynamic DOM element in React
<p>I am getting a list of elements over the network. The list size might vary at each call. I have to show the list content in my React ant-design based site. How to generate this dynamic component ? What I did is,</p> <pre><code>export const myModal = props =&gt; { const contactArr = []; for(let i=1;i&lt;=props.con...
3
1,136
Group by hour and date
<p>I hate to ask a question here, as I know it's been done (slightly), however my problem is slightly different because of the field formats. I've tried a bunch of things on joins and hour selections and others, and I'm stuck. Would love a quick hand.</p> <p>I've got a MySQL table like so:</p> <pre><code>CREATE TABLE...
3
1,058
How to make the background image behind the transparent SliverAppBar?
<p>I'm a beginner to Flutter and I have a problem with the screen background, it was filled fully when I used the <code>AppBar</code>, but when I changed it to <code>SliverAppBar</code>, the top bar becomes empty and the image starts after it, how to solve this because most of the issues when I searched, are regarding ...
3
1,702
The device BACK key not working and all other key events not responding either
<p>The UI of my app is totally built with code. It's an <strong>EMPTY ACTIVITY</strong> with the <strong>activity_main.xml</strong> deleted, and utilizes the following style:</p> <pre><code>&lt;style name="myTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt; &lt;item name="windowNoTitle"&gt;true&lt;/item&gt; ...
3
1,203
tidb-ansible error in ansible-playbook bootstrap.yml command
<p>I am trying to install TiDB through TiDB ansible. I am referring to documentation in <a href="https://pingcap.com/docs/v1.0/op-guide/ansible-deployment/" rel="nofollow noreferrer">https://pingcap.com/docs/v1.0/op-guide/ansible-deployment/</a> and in the process I am facing the following error for command ansible-pla...
3
1,587
CSS adjacent sibling breaks dropdown menu margin
<p>I'm attempting to implement a CSS dropdown menu, based on this <a href="http://www.w3schools.com/css/tryit.asp?filename=trycss_dropdown_navbar" rel="nofollow noreferrer">example</a> from w3schools. It is working, but the left margin around the <code>dropbtn</code> class is not the same as the left margin for the sim...
3
1,163
Websockets in HiveMQ not working - nothing in the log
<p><strong>Problem solved: check bottom of posting</strong></p> <p>I cant connect to websockets. Port 1883 works fine. This is the output from MQTT.fx:</p> <pre><code>2017-01-21 07:46:26,293 INFO --- BrokerConnectorController : onConnect 2017-01-21 07:46:26,294 INFO --- ScriptsController : Clear c...
3
1,870
Remove timer event listener
<p>so I need to remove a timer event. But the problem is, It's in another function so I can't access it.</p> <p>Here's how my code goes:</p> <p>-There is a Boss</p> <p>-It generates bomb</p> <p>-Bomb lasts for a couple of seconds before exploding (no error)</p> <p>-Bomb can be removed by clicking. (generates error...
3
2,225
On tap, display value at a different location
<p>I'm trying to create a word game. I have a local json file where I'm retrieving data from. I'm able to retrieve the data and display it on the first row. What I'm trying to do is on tap of one block (on the first row), get the value and display it in order on the second row. </p> <p>I'm able to retrieve the value b...
3
3,153
Script forgets search keyword
<p>When I go to the next page(from index.php to index.php?page=2), the script forgets search keyword "<code>for example country=US</code>" and shows in the next page default option <code>(country=)</code>. Then I also tried to add(WHERE <code>country</code>='"<code>.mysql_real_escape_string($_GET['country']</code>)."...
3
5,779
Can We Scroll fixed 3 List item item on one time scroll using iscroller
<p>Please Help me to scroll fixed list item using iscroll. i am working on a project in which i want to scroll three LIST Item on one time scroll using iscroller. I allready tryed to scroll with scrollTo, ScrollToPage, ScrollToElement function of iscroller but it didn't work for me so please help me to scroll the fixed...
3
2,770
how to store a new object with javascript for every input and display
<p>I want to build a forum with firebase, so i'm learning how to store data to local storage first, so I encountered a new issue.</p> <p>I want to store every new input in my local storage with a different key and display the values 'when the website loads' in separate div each, more like aa forum, so that every post a...
3
1,028
extract the last repetitive section of a txt file
<p>I have a very big .txt file which contains multiple repetitive sections with the same format but different values. I would like to extract the last repetition and store it into a .csv file. </p> <p>I have successfully extracted all three repetition and do not know how to proceed. Potentially a script could help but...
3
1,751
Deserializing shape_predictor_68_face_landmarks.dat only for once for facial landmark detection in real time in android studio
<p>I am trying to detect facial landmark using opencv ,dlib library in android studio. I can capture image and detect landmarks from the image. But I am facing problem when I am trying to detect facial landmark in real time.</p> <p>Because I am deserializing shape_predictor_68_face_landmarks.dat file for each frame.</...
3
1,649
What is wrong with this sorting algorithm in C?
<p>I was attempting a problem where I had to arrange a list of 5000 first names alphabetically (The names were stored in a text file <code>"names.txt"</code>). As seen from my code below, I created a 2D array <code>names[n][m]</code> to store the names. </p> <p>For every single name, I compare it against all the other...
3
1,354
Angular modular application best practices
<p>My folder structure : </p> <pre><code> /app /components /module1 /module2 /core /extensions -array.js -string.js /services -localdataservice.js /directives - .... .js index.html </code></pre> <p>each...
3
1,726
PHP Array issue , mulitple rows generated
<p>I have an array that is fetched from database using some <code>bindModel</code> in cakephp. finally now I want to change its format according to my liking to own. here is the array contains. </p> <pre><code>Array ( [0] =&gt; Array ( [DriverLocation] =&gt; Array ( ...
3
3,304
Not able to run rails server
<p>Any suggestions on why am I getting this? My ruby version is <code>ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.1.0]</code> and rails version is <code>Rails 3.1.1</code>. I have done <code>bundle install</code> and <code>gem update --system</code>.</p> <pre><code>➜ expertiza git:(master) ✗ rails server ...
3
1,029
Calling Method that has a Return value...param
<p>I am in search of what to put in the param for purse.CountMoney(); if anything...im having a mental block as how methods that return a value work in comparison to non returning methods...I tried total...double total....um I tried stepping into the program and see if the debug tool could assist and nothing popped out...
3
1,103
Improve computational speed for chunk-wise distance calculation
<p>I have an issue with the performance of a code I have to calculate the distance between vectors, but I think a little context is in order before exposing the problem.</p> <p>I have two sets of vectors stored in two dataframes. What I want to do is to compute the distance between the every vector in set of vectors in...
3
15,887
Mongoose can not reference refPath in root path
<h3>schema</h3> <pre><code> const commentSchema = new Schema({ body: { type: String, required: true }, on: { type: Schema.Types.ObjectId, required: true, // Instead of a hardcoded model name in `ref`, `refPath` means Mongoose // will look at the `onModel` property to find ...
3
1,746
Background does not fill whitespace at the bottom of page when using min-height
<p>The last media query (Resolution: 529x266) makes each of my blocks ("Work, About, Hire") have a min-height. But my background does not fill in the extra space. How do I make my background fill the extra space? To see the white space make the codepen 529x266 or smaller.</p> <p><a href="https://codepen.io/anon/pen/Qp...
3
1,339
How to use addListenerIfPending
<p>Can someone tell me if I am using the PendingRequestListener correctly (I am using the robospice library for android)? Here is an example of my code:</p> <p>I start and stop the manager per-activity: LoginActivty.java</p> <pre><code>private SpiceManager spiceManager = new SpiceManager(UncachedSpiceService.class); ...
3
2,841
my code doesn't look the way I want
<p>here is a code I have written. it works fine but it has a small problem. when I push the zoom button to zoom on a picture. picture becomes bigger and covers the buttons. how can I fix this problem?(i want my pictures grow when I push the zoom button but I don't want them to cover the button)</p> <p><div class="snip...
3
1,662
Make QTreeview's Column Editable in Pyside
<p>How can I make the second column of the QTreeView editable so the user can change the name?</p> <p><a href="https://i.stack.imgur.com/jdcfR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jdcfR.png" alt="enter image description here"></a></p> <pre><code>import sys import os import random from Py...
3
1,838
How do I change the background of a shape with a corner radius?
<p>I created a intent that gets shown when I click a button, that intent has the theme of a shape which looks like this </p> <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;gradient android:startColor="#4568dc" android:endColor="#b06ab3" android:...
3
1,617
My project keeps logging me out, Why is this happening? (CLOSED)
<p>I'm writing a code that will allow me to save my data into the database. But for some reason, whenever I type in a response, it refers to the else statement and logs me out.</p> <p>Here's my code:</p> <pre><code>username = &quot;storagei&quot; password = &quot;something&quot; # asking for a username and password. u...
3
1,528
Using jquery ajax post to pass array to controller fails
<p>I have an input form, which is rendered using model similar to this. I have tried to simplify the example for clarity.</p> <pre><code>[Serializable] public class OrderDetailsModel { public string FirstName { get; set; } public string Surname { get; set; } public Address[] OrderAddresses { get; set; } ...
3
1,441
C# - XML, Counting the number of specific elements within other elements
<p>I have an XML which I'm loading into my C# program. What I'd like to achieve is to count the number of "army" elements within each "alliance" element.</p> <p>Here's an example where each "alliance" contains three "army" elements. So the result I'd like to achieve is to have two variables with the result of 3.</p> ...
3
3,297
Nested directive life-cycle not executing in expected order when using $compile and adding to the DOM for the first time
<h1>What I'm trying to do</h1> <p>I have the following directive structure:</p> <pre><code>&lt;dashboard&gt; &lt;widget&gt; &lt;timer&gt;&lt;/timer&gt; &lt;/widget&gt; &lt;widget&gt; &lt;chronometer&gt;&lt;/chronometer&gt; &lt;/widget&gt; &lt;/dashboard&gt; </code></pre> <p>Where <cod...
3
1,470
InvalidOperationException: Timeout - recursive DB access
<p>currently I have a serious problem with one of my web applications which runs into a Timeout Exception around half a dozen times a day. </p> <p>Error: "The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was re...
3
1,376
How to Save Form with the Dynamic Table having MultiSelect Dropdown in each row in Laravel
<p><a href="https://i.stack.imgur.com/Epbwh.png" rel="nofollow noreferrer">Multiselect Drop Down of Color and Size in Dynamic Table with name attribute</a></p> <p>In My Form I have Dynamic Table, Having Multi Select Dropdowns with same names color_id[] and size_id[] in each row. I am Not Getting How to save the multi s...
3
1,062
Flutter scrollable layout with dynamic child
<p>I want to create a generic Layout which accepts a child Widget as a parameter, that lays out the content as follows:</p> <p>I have an AppBar at the Top, a Title (headline), and below that the Content (could be anything). At the bottom, I have a Column with a few buttons. If the content is too big for the screen, all...
3
1,254
mp4 file doesn't get played after being copied and written again
<p>When I try to copy an mp4 from one folder to another inside one of the methods of Mp4Parse, everything works fine. When I tried to utilise one of the methods' outputs to make new objects and then use those in order to write the file in another folder, things didn't quite work out. Below is the code that I use:</p> <...
3
3,608
concurrency issues with event and lock python
<p>My critical region is a shelve object and I'm using a combination of event and lock to keep the threads separated. However this isn't working. By that I mean the process hangs, I have an unchecked lock happening somewhere and nothing happens after that.</p> <p>I actually discovered the problem. The lock is acquired...
3
2,005
Firebase SDK Auth Package Trouble with Automatically Loading Scene Once Authenticated Unity
<p>I am stuck with a functionality of the Firebase SDK (Auth package) regarding the Scenes and it's integration. Here's how they work:</p> <p><strong>1st: Loading Scene</strong></p> <p>Here, I just added the FirebaseInit code EXACTLY as suggested by Patrick, which it's only function is to call the next scene (Login/Reg...
3
1,043
IndexError: index -2 is out of bounds for axis 0 with size 1
<p><strong>Created a chatbot in Django using nltk and sklearn</strong></p> <p><em>while sending the message I am experiencing this error</em></p> <pre><code>C:\Users\xxx\django\project\env\lib\site-packages\sklearn\feature_extraction\text.py:388: UserWarning: Your stop_words may be inconsistent with your preprocessing....
3
1,128
How to chose between two ui containers depending on data from API [React TypeScript]
<p>so I am working on a control panel that displays different videos / posts from an API source. I have a card div that displays video posts (Thumbnail + text) and then I have a second card div that displays more text-based posts. </p> <p>The code for both of them is as follows:</p> <pre><code> &lt;div className=""&...
3
1,632
Duplicate function update
<p>I am trying to create a duplicate system, I have a form revision with a recording.</p> <p>For example, I have to change the value of my field hour_start => 18:00</p> <p><a href="https://i.stack.imgur.com/HTZ7e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HTZ7e.png" alt="enter image descriptio...
3
1,569
Using cross validation to decrease variation in prediction outcomes
<p>Im trying to predict the won category of some soccer matches. I have the following df:</p> <pre><code>head(df) won TEAM1 TEAM2 EXPG1 EXPG2 VAR1 VAR2 41 1 Bordeaux Bastia 1.4200 0.93285 0.33 0.32 42 0 Caen Rennes 1.3105 1.11580 0...
3
1,110
Group by user, location and date range in YII Framework
<p>Can someone help me on how to use the date range (create_date) and grouping the data by user_id and location?</p> <p>I input the field user_id, location and daterange, sorting results just happened to date range. I tried many times to fix the controller, but the outcome remains the same.</p> <p>If I just input the...
3
2,533
insert spinner value in mysql db via soap ws in android
<p>Hi i have to develop the app is insert the database from spinner in mysql database via soap webserices in android application... </p> <p>i have use below webservice code:</p> <pre><code>public class Insertion { public String insertData(String userName,String userPassword){ try{ Class.forName("com.mysql.jdbc....
3
2,103
On Click function not behaving as expected; confused as to why? (Android Studio, RecyclerView)
<p>Ok I've been pondering this all weekend and I'm running in circles and confusing myself about it; so someone please help. Here's the scoop: I have an app with a RecyclerView to hold CardView items. Here is the layout:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;androidx.cardvi...
3
6,263
How can I set up my keybinds in such a way that the character does not pause between inputs?
<p>I'm attempting to make a simple bullet hell game and am struggling to make smooth movement mechanics for the character. Here is my current code:</p> <pre><code>package bullethell; import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.even...
3
2,123
Getting a Contact Without Permissions Using registerForActivityResult
<p>New to Kotlin and Android development and, after updating some libraries, I had some issue with my previously working method of grabbing Contact details, so I decided to try out the new registerForActivityResult defined at <a href="https://developer.android.com/training/basics/intents/result" rel="nofollow noreferre...
3
1,234
Find the sales breakdown by product category across all of our stores
<p>I have a sales file with information such as store name, location, sales price, product name etc. The format for the file is provided below,</p> <pre><code>2012-01-01 09:00 San Jose Men's Clothing 214.05 Amex 2012-01-01 09:00 Fort Worth Women's Clothing 153.57 Visa 2012-01-01 09:00 San Diego Mu...
3
1,710
pg-promise - Not resolving multiple queries
<p>I'm in the process of creating a mass mailer that allows a company to send out an email template to a specific plan that contains X amount of subscribers. </p> <p>However, when using pg-promise, I can't figure how to loop through an array that contains one or more unique plan names that'll then be used as query par...
3
1,979
Adding new elements on ComboBox
<p>I'm developing a <code>Vaadin</code> app, and I've decided to use the <code>SuggestingComboBox</code> idea, that allows better searches between items. This works great, but now I can't figure out how to add new elements, that aren't already in the container with the <code>setNewItemHandler</code> method.<br> For ref...
3
1,988
Gradle fails after converting project into module
<p>I'm trying to integrate the PDFNet library into my Android App, and if you download the SDK you can see that there is a project CompleteReader (PDFNetAndroid-6.7.0.42960\PDFNetAndroid\samples\PDFViewCtrlProjects\CompleteReader) I want to use this project as a module in my app so I changed in build.gradle "com.androi...
3
2,820
vb.net multi-threading activex
<p>Ok, I have looked at a bazillion multi-threading examples; all show cute little counters on a form, while you can still access the form, using backgroundworker, or threadpools. I got it. What I don't get is to apply this into a real world application. Here's my application, and I don't have a clue on how to multi-th...
3
2,875
Can't create a list of elements linked by a "Parent"
<p>I'm trying to create a method (using the *A** algorithm) that solves a puzzle and returns the steps to that solution. The solution it's easy.. but I can't return the path to that.</p> <p>I used a list of Nodes and then every time a push back a new Node I set the parent pointing to the Node which new came;</p> <pre...
3
1,624
terms of service stripe connect
<p>I've created a function to create a stripe custom company account for my users, and everything is working great, but when I try and update the terms of service data in node.js, it comes up with no errors, but when I go to the Stripe dashboard it says the account still requires a terms of service acceptance. What sho...
3
1,401
Remove add to cart for variable products with no price in Woocommerce
<p>I'm currently trying to build a woocommerce site with a some simple products but mostly variable products.</p> <p>I've managed to add some php which will remove the price if the product is either priced at 0 or has no price at all, but I need to remove the &quot;add to cart&quot; button too.</p> <p>When i try to add...
3
1,065
Multi step form - Uncaught TypeError and the form is only submited with "novalidate" property
<p>I created a multi step form using bootstrap and jquery. </p> <p>When I click in some button to go to the next step it appears this error on the console:</p> <pre><code>tab.js:155 Uncaught TypeError: Cannot read property 'nodeName' of undefined at t.a._activate (tab.js:155) at t.a.show (tab.js:120) at H...
3
3,569
Why can't I call my WriteLogDataToDb method?
<p>I'm making a user inactivity logger for an internal application at work, and I'm having trouble writing consumed messages to a MySQL database, when I try to call my method that writes the messages to the database, it throws an error: 'AccessEye.LogData' is a 'type', which is not valid in the given context </p> ...
3
1,641
Google map goes blank when triggering click event outside
<p>I have created a google map using V3 js API, and inside the map I am showing multiple markers. When I am clicking on a markers it does an ajax call and shows the result in the infowindow. I have added an external link outside the map, clicking on which it will display the corresponding marker result in side the map....
3
1,586
Data not rendering after returning from Firestore onSnapshot
<p>I am using an Ionic/Angular frontend here. My data comes back from Firestore correctly. It also comes back after a change has been made to the firestore document.</p> <p>However, the data never renders to the <code>ion-content</code>. It does log to the console correctly. This leads me to believe I am doing somethin...
3
1,067
Sorting Listview control columns with integer values in Powershell forms
<p>I am trying to sort the column &quot;Size (kb)&quot; in the following Listview. The &quot;Size (kb)&quot; column is getting sorted on basis of the text value which is not the intended result. I am getting correct results for all other columns</p> <pre><code># Defining the listbox fo displaying the search results $lv...
3
1,288
App crashing when running bytedeco tesseract in Flutter with Java MethodChannel
<p>I'm trying to use the <a href="https://github.com/bytedeco/javacpp-presets/tree/master/tesseract" rel="nofollow noreferrer">bytedeco tesseract</a> java wrapper inside Flutter using MethodChannel, however I'm getting error. I've tried flutter clean and upgraded gradle to 4.2.2 yet still didn't work. My suspicion is t...
3
2,827
I got a stack overflow error in my int main()
<p>I am writing a snake game and I got a stack overflow in <code>int main()</code> I don't know how to fix it. and I don't really know how to make heap variables :P. The error reads Severity Code Description Project File Line Suppression State Warning C6262 Function uses '17444' bytes of stack: exceeds /ana...
3
3,448
Pagination-like in jquery/ajax
<p>I try to make systeme like paginate in jquery/ajax. When i push the boutton view more i show the 5 next result</p> <pre><code>&lt;button class="btn" id="showFiveNext"&gt;View more&lt;/button&gt; </code></pre> <p>But i dont know how do this. Its possible to set in ajax a new clause LIMIT whith offset in my first me...
3
2,020
Copy data randomly from one file and paste it randomly in other Excel using macro
<p>I am trying to pull a file-(1) inside a excel file(2) by browsing in my computer. And pull data from the file-(1) from different cells randomly and paste it in file(2).<br> I am beginner and trying to copy bits and parts from different program to make it work.I have complied a code that works okay. </p> <p>I face s...
3
1,026
What is the command to open a file in specified ViewColumn in VS Codium?
<p>How can I open a specific file in a specified split view with an built-in command in VS codium? Is that possible without writing an extension?</p> <p>I have a project, and I periodically I want to open a pair of files in specific way in split view. Let's mention them as <code>problem1.py</code> and <code>problem1.tx...
3
1,050
How can I temporarily disable clang-format include sorting?
<p>I am changing my project from using Artistic Style to <strong>clang-format</strong>. One feature I'm excited to use is include file sorting. However, there's one issue I don't know how to get around. I'm using <strong>clang-format</strong> 7.0.1 on CentOS 7 (from <strong>llvm-toolset-7.0</strong> in the SCLo reposit...
3
2,511
Remove outliers from multiple timeseries in R using tsclean
<p>I would like to clean multiple time series of outliers in <code>R</code>. The <code>forecast::tsclean()</code> function works well for univariate time series data (a single time series of observations) but <code>tsclean()</code> does not work for multivariate timeseries (many different timeseries of observations ove...
3
12,011
this.shadowRoot.getElementById(...).textContent is not a function
<p>Hello i'm trying to create my first custom component</p> <p>This is my template</p> <pre><code> &lt;div class=&quot;wrap-boxo&quot;&gt; &lt;div class=&quot;boxo&quot;&gt; &lt;div class=&quot;top-boxo&quot;&gt; &lt;div class=&quot;pal focussed&quot;&gt;&lt;/div&gt; &lt;div class=&quot;pal&quot;&...
3
1,178
Change 3 background Images based on current time in 3 locations
<p>I have 3 images on a page, each needs to change to reflect the time (day or night) in that location. </p> <p>I have got it so if it is between 7pm &amp; 7am in each timezone the images change to night, but I want it so if in UK after 7pm the UK image is night but the New York &amp; LA image is still day, as it woul...
3
1,547
How to Calculate Multiple Correlation Between Several Products using Boolean values With R
<p>I want to compute the multiple correlation between several products depending on the frequency of getting them together (i.e as EX: product A has a large correlation coefficient with product B because the most orders of A were with product B at the same order) OR (If there's no order has A &amp; B at the same time ...
3
11,013
try to find the shortest path between two points in a (x,y) coordinate system in C++. Got 11db erro
<p>This is part of my homework which is to find the shortest path between two points in a x,y graph (the size of the graph is 640*340.). THE PATH SHOULD ONLY GO THROUGH THE POINTS WHERE (X,Y)VALUES ARE INTEGERS. I am new to C++, but the teacher told us we have code it in C++. My code is as follows:</p> <pre><code>#inc...
3
1,131
String content sent as byte[] gets its content escaped as query string
<p>I need to send a String over the network, and I'm getting it on the other side in a REST Controller in Spring Boot.</p> <p>I'm sending the data with the following lines:</p> <pre><code>byte[] content = sw.toString().getBytes(StandardCharsets.UTF_8); //sw is StringWriter httpUrlConnection = (HttpURLConnection)new U...
3
2,040
Load each clicked post into a page
<p>I have the following code working but would like when I click on each posts, the post content to be displayed using either an external .html or within the default html a div page so that the content does not show the whole website contents:</p> <p>HTML Code:</p> <pre class="lang-html prettyprint-override"><code>&l...
3
2,240
SQLiteException no such column : plus (code 1)
<p>Adding more columns to a database that already worked (plus and minus were added). I've looked at previous answers but I can't for the life of me find an error in my syntax. </p> <pre><code>private static final String TAG = "DBAdapter"; // DB Fields public static final String KEY_ROWID = "_id"; public static final...
3
2,487
Why does VBA come out of debug mode when ".paste" method is used to paste data from cell in MS Excel to a cell in a MS Word table?
<p>The code below is intended to be used to copy a string from cells in an excel column sequentially <strong>(i=3 to 61)</strong>, find a directory folder containing many copies of the same .doc file , and paste each string into the <strong>second</strong> row, <strong>first</strong> column of the first table in each ...
3
1,313
call new function inside a .map in react js hook
<p>I'am trying to convert react class to react hook. In react class I use two classes one is to export and another one is called inside .map. This code is running. While i do same code in react hook all good but hard to use (ListItem) as function inside the .map of export class. FOR EXAMPLE: this is called class.</p> <...
3
2,655
Trim in a ForEach query
<p>In my homelab I try to automate scheduled tasks by using PowerShell. I use [System.Collections.Generic.List[String] to collegt a list of all switches for the execution. But I cannot manage to remove the <strong>`</strong> in the last line of my output? Anyone an idea how to solve this issue?</p> <pre><code>-AtLogOn ...
3
1,854
Can't deploy Rails 6 app to Heroku. ErrorLog included
<p>I've build a Rails 6 app using React via the newly integrated Webpacker for JS and can't seem to get over the final hurdle of deploying to Heroku. I don't quite understand the logs. I did create a <code>Procfile</code> to launch Puma and Webpack server. Would anyone mind looking at the logs and tell me what I might ...
3
7,562
How to make the current location Accurate using Gmap api v3?
<p>I make some project for looking nearby location from my current location to my database location.This project run in localhost using XAMPP.</p> <p>HTML :</p> <pre><code> &lt;body style="margin:0px; padding:0px;" onload="initMap()"&gt; &lt;div&gt; &lt;label for="raddressInput"&gt;Search location:&lt;/l...
3
1,128
why my RouteParams in angular2 didn't refresh in angular2?
<p>My RouteParams didn't work well when I click "edit" button.</p> <p><a href="https://i.stack.imgur.com/Kk5Zu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kk5Zu.png" alt="first view here"></a></p> <p>in the first view I click the edit btn on the <strong>bob row</strong> and this is the second ...
3
1,932
Split arrays into separate strings
<p>I've got an array see here:</p> <pre><code>foreach ($fonts as $font) { $html .= '&lt;option value="'. $font['name'] .''. $font['font'] .''. $font['css'] .'"' . selected( $layout_options['h1-font'], ''. $font['name'] .''. $font['font'] .''. $font['css'] .'', false) . '&gt;' . __( ''. $font['name'] .'' ) . '...
3
1,830
Preventing pure HTML 5 mobile app from reseting when changing orientation in Android
<p><strong>I am developing a pure HTML 5 mobile app using jquery mobile and very less dependency on Android code apart from loading my main HTML file.</strong></p> <p>Following is my MainActivity code.</p> <pre><code>public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceS...
3
1,155
Apache Beam Streaming pipeline with sequential batches
<p><strong>What I am trying to do:</strong></p> <ol> <li><p>Consume json messages from PubSub subscription using Apache Beam Streaming pipeline &amp; Dataflow Runner</p> </li> <li><p>Unmarshal payload strings into objects.</p> <ul> <li>Assume 'messageId' is the unique Id of incoming message. Ex: msgid1, msgid2, etc</li...
3
1,337
JavaScript Failing in IE9 Randomly / FORM Tag Containing DIV Closing Prematurely in IE9
<p>The general gist of the problem is that random commands seem to not work in IE9, or only work occasionally. Commands that work on other pages just fine.</p> <p>I've excluded some things I didn't need so now there are only two javascripts on the page. One is jQuery 2.0.3, and the other is the pages main action scrip...
3
1,988
a-entity text only showing when created by the Inspector
<p>I've been trying to do something super simple, such as displaying some text. It was working a couple of hours back, but now it its not. This is the exact code: </p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;meta name="viewport" content="width=device-wi...
3
1,158
Customer adapter for an arraylist and three arrays doesn't wpopulate listview when all data structures have valid values
<p>I've an arraylist and 3 arrays all of them containing valid values. I'm trying to display them in an arraylist but nothing is being displayed. No error whatsoever. </p> <p>Here's my code for the adapter:</p> <pre><code>public class CustomAdapter extends BaseAdapter { Context context; ArrayList&lt;String&gt...
3
2,203
Backbone template doesn't show
<p>I started learning Backbone.js following <a href="http://blog.viison.com/post/11097185009/how-to-switch-views-using-backbonejs" rel="nofollow">this</a> example to change the content of a certain div. But the content doesn't show up.</p> <p>Based from that example I created Backbone.View.js:</p> <pre><code>Backbone...
3
1,269
Using the header function in PHP to reload a page through AJAX
<p>I have built a register form page. It allows you to register an account and stores it in the database.</p> <p>Originally, it posted back any errors to the same page (was called index.php)</p> <p>However, before leaping into the registration page I wanted to present the user with an "I already have an account" butt...
3
2,536
Get task_id of failed task from within an Airflow DAG level failure callback
<p>I have an airflow DAG with multiple tasks and I have defined success and failure callbacks so that they send a Microsoft Teams message to a channel with some information about the success or failure.</p> <p>In the failure callback I am trying to catch the name of the task_id (or one of the task_ids) that has failed....
3
1,432
Ripple effect like a checkbox
<p>How to use the same ripple effect as the checkbox on the menu buttons. That is, the color of the waves varies depending on the inclusion. At the moment, like this:</p> <p>menu</p> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"&...
3
1,310