title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to loop command using the .getRowIndex() in Google Sheets? | <pre><code>function getColIndexByName(colName) {
var sheet = SpreadsheetApp.getActiveSheet();
var numColumns = sheet.getLastColumn();
var row = sheet.getRange(1, 1, 1, numColumns).getValues();
for (i in row[0]) {
var name = row[0][i];
if (name == colName) {
return parseInt(i) + 1;
}
}
return -1;
}
... | 2 | 1,219 |
Adding multiple nodes to a tree C++ | <p>So I've been working on a project for school for sometime, and I've run up against a wall. My add_node function isn't working correctly, and I know why. What I'm trying to do is take in a file with multiple randomly generated letters, and create trees out of them, then make a confirmation. </p>
<p>The thing is that... | 2 | 6,752 |
onCreate(savedInstanceState) savedInstanceState is NULL | <p>My issue is this: I'm new to android programming and I have created a new app, when i press the button to launch this activity below, it crashes. When I debugged it it said onCreate() got a null bundle. How do I fix this? I don't understand the other classes of the activity so please use detailed info, thanks in adv... | 2 | 1,856 |
Flipkart seller API access token generation issue | <p>I am trying to access the flip-kart seller API as i registered with Flipkart seller APIs - Developer Admin portal by following steps as given in the documentation:-</p>
<p><a href="https://seller.flipkart.com/api-docs/FMSAPI.html" rel="nofollow">https://seller.flipkart.com/api-docs/FMSAPI.html</a></p>
<p>After suc... | 2 | 1,391 |
How to select multiple in value-of select XSLT to correct html? | <p>I want to convert my xml to xslt, but i have some problems...</p>
<p>Fisrt, I found how do to it. I selected one block, then I wanted the second block of my xml, but xslt couldn't be two select in one "for-each"...</p>
<p>This is my xml:</p>
<pre><code><?xml version="1.0"?>
<T24 xmlns:xsi="http://www.w3.... | 2 | 5,881 |
ERROR: Failed building wheel for twisted-iocpsupport when deploying app in Heroku | <p>This is my first attempt at learning Git and using Heroku and I am hitting a hurdle on the deployment.</p>
<p>The project is <a href="https://github.com/geordiefrost/boxscores" rel="nofollow noreferrer">https://github.com/geordiefrost/boxscores</a> but when I deploy in Heroku I get the following error:</p>
<pre><cod... | 2 | 1,307 |
jqGrid showCol/hideCol not working after sorting | <p>The below given code illustrates what I have done fro hide/show. It does work on load but wouldn't work after sorting </p>
<pre><code>grid.jqGrid({
url: "processing.php",
datatype: "json",
mtype: "POST",
postData: { "sessionTicket": "<?php echo $sessionTicket; ?>" },
colNames: ["D... | 2 | 2,096 |
Table locks in SQLite accessed by fireDAC | <p>I'm working on porting a set of paradox tables to SQLite. In order to do so, I created a test application that simulates (somewhat) the current usage scenario: multiple users accessing the same DB file and performing simultaneous read and writes.</p>
<p>The application is very simple: it will start several threads ... | 2 | 1,216 |
p tag formatting in shortcode's content wordpress | <p>I know this must have been asked a hundred times but I've been trying out a number of solutions I could find but none seem to work.</p>
<p>I have a <code>shortcode</code> that wraps content:</p>
<pre><code>[important_note]Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nam vel velit at ex congue aliquet.... | 2 | 1,084 |
No module named 'base' even though base.py exists | <p>Suppose a certain directory <a href="https://drive.google.com/drive/folders/1ST9sGqdiwAPin3OjQpjuuf75XU1IF3ed?usp=sharing" rel="nofollow noreferrer">checkerbot</a> (You can download the files). From my current directory, I have this directory called <code>checkerbot</code> which contains 4 files, i.e. <code>base.py<... | 2 | 1,116 |
AJAX CalenderExtender Not Working | <p>I am using ajax calender extender on my website. </p>
<pre><code> <table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Active From: <asp:TextBox ID="inputActiveFromDate" runat="server"></asp:TextBox... | 2 | 1,473 |
Highcharts Highmap world - color all countries within a continent | <p>I cannot get the world map to work by coloring in country iso codes supplied by a back end app.</p>
<p><a href="http://jsfiddle.net/TheRealPapa/q3bgw4nu/" rel="nofollow noreferrer">I have a fiddle here.</a></p>
<p>My code is:</p>
<pre><code>var chartData = [{
"name": "Africa",
"data": ["DZ", "AO", "BJ", "BW",... | 2 | 1,349 |
External libraries work just fine in a .html file but not in a quasar project | <p>I'm trying to move my code in an .html file to a Quasar project. The code works perfectly fine when I run my .html file but I receive errors from Quasar.
Here is my initial code in the index.html file:</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<... | 2 | 1,999 |
parsing xml and output encoding in php | <p>I generate a lot of posts in Wordpress from an XML file. The worry: accented characters.</p>
<p>The header of the stream is: </p>
<pre><code><? Xml version = "1.0" encoding = "ISO-8859-15"?>
</code></pre>
<p>Here is the complete flux : <a href="http://flux.netaffiliation.com/rsscp.php?maff=177053821BA2E13E9... | 2 | 1,335 |
Template Error asp | <p>I finally made my monodevelop to create an mvc3 razor project, but not everything works. When I try to create a view, it says it can not find a template. Also, when I try to create the project, it says this:</p>
<pre><code>System.IO.FileNotFoundException: Could not find file "/usr/lib/monodevelop/AddIns/MonoDevelop... | 2 | 1,649 |
How to automatically parse spring form data to json object? (Spring, jQuery, AJAX, JSON) | <p>I have a spring form that submits via ajax. Here is my form...</p>
<pre><code><form:form action="addToCart" method="POST"
modelAttribute="cartProduct">
<form:input type="hidden" path="product.productId"
value="${inventory.getProduct().getProductId()}" /&g... | 2 | 1,711 |
PESEL checksum validation(Javascript/HTML) | <p>Im a student currently studying from home and im seriously stuck on a Checksum problem. The script is supposed to validate the PESEL(Polish equivilant of a social security number i think), Anyway the checksum works as follows for
PESEL: 70051012347</p>
<p>PESEL:7,0,0,5,1,0,1,2,3,4 (7)</p>
<pre><code> (Multiply ea... | 2 | 1,346 |
android:onclick method doesn't work | <p>xml code:</p>
<pre><code> <Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Invia"
android:clickable="true"
android:onClick="onClick1"
android:id="@+id/invia" />
</code></pre>
<p>java code:</p... | 2 | 4,934 |
JavaScript addEventListener & initializing function conflicting, trying to update global variable | <p>I'm developing a game interaction menu, and it is a HTML menu that will show actions depending on what job the player is having at the moment. </p>
<p>My issue: I retrieve information about the players job via window.addEventListener. It's being sent from my game Lua file to JavaScript. I can confirm that this is w... | 2 | 2,126 |
Problem with horizontal recyclerview in android | <p>I'm filling in my Recycler View with the data of all the records from my SQLite DB (one record under another). I need to scroll the Recycler View horizontal, because some words are larger and don't enter into the screen, like you can see in the image below:</p>
<p><a href="https://i.stack.imgur.com/CzxBN.png" rel="... | 2 | 3,617 |
Read Avro file with python to create a SQL table | <p>I'm trying to create an SQL table from AVRO file which contains the structure of my table :</p>
<pre><code>{
"type" : "record",
"name" : "warranty",
"doc" : "Schema generated by Kite",
"fields" : [ {
"name" : "id",
"type" : "long",
"doc" : "Type inferred from '1'"
}, {
"name" : "train_id",... | 2 | 1,199 |
Get the output of RestSetResponse without making HTTP request | <p>I have a minimal (example) REST end-point <code>test/people.cfc</code>:</p>
<pre><code>component
restpath = "test/people/"
rest = true
{
remote void function create(
required string first_name restargsource = "Form",
required string last_name restargsource = "Form"
)
httpmethod = "PO... | 2 | 1,444 |
Why does tokio::spawn have a delay when called next to crossbeam_channel::select? | <p>I'm creating a task which will spawn other tasks. Some of them will take some time, so they cannot be awaited, but they can run in parallel:</p>
<p><em>src/main.rs</em></p>
<pre class="lang-rust prettyprint-override"><code>use crossbeam::crossbeam_channel::{bounded, select};
#[tokio::main]
async fn main() {
let... | 2 | 1,253 |
Howto reconnect to a server which does not answer to close() | <p>I am using the <code>C++ REST SDK</code> ("Casablanca") to receive feed from websocket servers. </p>
<p>Sometimes, I need to close the connection and reconnect. The library does not have a <code>reconnect</code> function, so I close the old connection and simply open a new one. The problem is that the server on the... | 2 | 1,394 |
Best way to implement interthread communication in FreeRTOS? - checking the state of a lwIP cable | <p>I want to make a lwip cable on/off bulletproof with DHCP on and a TCP connection. Both solutions work ok but I don't know which one is the more sensible and right. (I am afraid of wrong context function calls) </p>
<ul>
<li>First solution:</li>
</ul>
<p>I call:</p>
<pre><code>tcpip_init(network_init, &net);
<... | 2 | 1,030 |
MacOS: brew install graph-tool on High Sierra | <p>I'm using High Sierra and am unable to install graph-tool via brew install. Given below is the output after brew installing. </p>
<pre><code>> brew install graph-tool
graph-tool: macOS Mojave or newer is required.
Error: An unsatisfied requirement failed this build.
</code></pre>
<p>As I'm using a somewhat lock... | 2 | 3,636 |
How to download nasa satellite OPeNDAP data using python | <p>I have tried requests, pydap, urllib, and netcdf4 and keep either getting redirect errors or permission errors when trying to download the following NASA data:</p>
<p>GLDAS_NOAH025SUBP_3H: GLDAS Noah Land Surface Model L4 3 Hourly 0.25 x 0.25 degree Subsetted V001 (<a href="http://disc.sci.gsfc.nasa.gov/uui/dataset... | 2 | 1,265 |
Cannot import any firebase related classes | <p>I had to setup my android project new. The old version is not working anymore (IDE is not recognizing or whatever).
So I decided to copy all classes in a new project.
But I cannot use any import such as</p>
<pre><code>import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSn... | 2 | 1,197 |
Unable to obtain the id of the element using v-if | <p>I am new to VueJS. I am developing an application using VueJS and Bootstrap. There is a div which I wish to render based on a condition.</p>
<p>I have been trying to use <code>v-if</code> on the div so that once the condition is true, the data property is set to true and the div gets displayed.</p>
<p>My code look... | 2 | 9,630 |
Unhandled exception in jquery-ui-1.10.0.js. 0x800a138f - Microsoft JScript runtime error: Object expected | <p>I am developing my ASP-MVC application in ie9, and when I load the first login page I get this error;</p>
<blockquote>
<p>Unhandled exception at line 6953, column 7 in
.../Scripts/jquery-ui-1.10.0.js</p>
<p>0x800a138f - Microsoft JScript runtime error: Object expected</p>
</blockquote>
<p>I look inside th... | 2 | 4,461 |
Submit form with jquery ajax + parsley validation in modal | <p>The below is my modal code: </p>
<pre><code> <div class="modal fade" id="offline-payment">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><... | 2 | 3,864 |
Server Error "Object reference not set to an instance of an object" after insert from branch | <p>Everything works correctly but after Sitecore update from 7.0 to 7.2 I see the following Server Error when creating a site from a branch </p>
<pre><code>[NullReferenceException: Object reference not set to an instance of an object.]
Sitecore.Nexus.Data.DataCommands.AddFromTemplateCommand.(Item , Item , Strin... | 2 | 1,203 |
Why is there still a Rate Limit error from Twitter using Tweepy? | <p>I am trying to get all the tweets from the previous day. And to address the rate limit by Twitter, I implemented two sets of codes.</p>
<pre><code>if counter == 4000:
time.sleep(60*20) # wait for 20 min every time 4,000 tweets are extracted
counter == 0
continue
</code></pre>
<p>I looked at the output... | 2 | 1,301 |
How to convert points in depth space to color space in Kinect without using Kinect SDK functions? | <p>I am doing a augmented reality application with 3D objects overlay on top of color video of user. Kinect version 1.7 is used and rendering of virtual objects are done in OpenGL. I have manage to overlay 3D objects on depth video successfully simply by using the intrinsic constants for depth camera from the NuiSensor... | 2 | 1,326 |
Injecting LdapTemplate to return user details inside a Grails service causes Null Pointer Exception | <p>I've been struggling with Spring Security LDAP for a while now, and just when I finally thought I had it beaten into submission, its tripped me up again.</p>
<p>The scenario: I'm having users log in using their organisation credentials, which I then check against the internal user database. If they don't exist, I... | 2 | 1,676 |
why can't i import my custom component in react native | <p>i created these components and i was trying to import them in App.js but it shows me an error message, i tried to change the export default class multiple times , i chaged the order of import lines to figure out if there'e an error in the importing of one of the components, but nothing changed and still shows me the... | 2 | 9,715 |
How can I add colons and remove "p/pp" from in-text citations with BibLaTeX? | <p>I'm referencing Harvard style in a paper, and I'd like to slightly edit the way in-text citations come out. I am using Biblatex, and I have used some specifications to make in-text citations and bibliography compliant with Harvard referencing, so that's all well and good.</p>
<p>In-text citations, however, don't lo... | 2 | 1,662 |
Java Matching Game | <p>I am writing a simple GUI matching game using classes that derive from JButton. I have created a grid of buttons. I have a Card class that contains the color of the card and it "flips" card over by changing the background color. I have created Card1 and Card2 in a list that match each other in their background color... | 2 | 3,508 |
Unable to start Rails server nor console - (crack/xml) LoadError | <p>I've searched all around the web but haven't been able to find a resolution to this error. Each time I attempt to either start the rails server, or even rails console I get a <code>crack/xml (LoadError)</code>. Anyone have any suggestions that they believe might help me get rails up and running correctly?</p>
<pre>... | 2 | 1,027 |
Android client/server INTERNET permission causes app crash | <p>I am new to Android programming.</p>
<p>I'm trying to make a very simple client / server TCP communication in eclipse. Server side uses a java class, and client side an Android app. I start the app from eclipse, not on an emulator but on a USB connected phone.</p>
<p>The problem. When I remove the INTERNET permiss... | 2 | 3,589 |
Set item name from combobox to knockout list | <p>I have one issue displaying value from combobox to knockout list.
Please image below where i am selecting item from combobox. When i select item from combobox it updates all the rows with same value.
<img src="https://i.stack.imgur.com/CFBeh.png" alt="List with same values"></p>
<p>The list on left hand side doesnt... | 2 | 1,415 |
MySQL installed with homebrew stopped working | <p>I'm running Laravel with Valet on localhost. The other day my DB stopped working and I got this error.</p>
<p>I've tried varies solutions from StackOverlfow but nothing seems to work for good.
I had some success with re-installing MySQL. First it worked, then after a restart the error returned as if nothing had hap... | 2 | 4,982 |
How to build a model using multiple features in Tensorflow Federated? | <p>I have the following codes and problem when trying to create OrderedDict for multiple feature inputs (i.e., features a-g) and one label h.</p>
<pre><code>
def preprocess(dataset):
def batch_format_fn(element):
return collections.OrderedDict(
x=collections.OrderedDict(
a=tf.TensorSpec(shap... | 2 | 1,515 |
why Angular 2 reset form is also rest array of object | <p>I build a simple angular app.I have a class and a from in html template matching with my object of class here is my component.</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-js lang-js prettyprint-override"><co... | 2 | 3,964 |
Spark not executing tasks | <p>I cant get the pyspark to work. I added the necessary paths to the system variable <code>SPARK_HOME</code>. I extracted data from my mongodb database and simply converted the obtained list to dataframe. Then, I want to see the dataframe through <code>show()</code> (the last line of code) which gives the following er... | 2 | 10,795 |
Android DexGuard: Exclude Crashlytics from Obfuscation | <p>My application can run perfectly with Crashlytics when I turn DexGuard off. However, when I add the following configurations to obfuscate my code the application stucks at launch with a black screen.</p>
<p>Here is the related part of the <strong>build.gradle</strong></p>
<pre><code>apply plugin: 'com.android.appl... | 2 | 1,202 |
json not matching model | <p>In EXTJS i will use a model and store for my grid. Now is the problem that sometimes the json will not match the model. There will be less information then in my model. When this happens EXTJS will not show any data in the grid. So i looked for a fix and found this:</p>
<pre><code>Ext.define('App.Reader', {
extend:... | 2 | 1,134 |
Listfragment can not be cast to android.app.activity | <p>im trying to use a class extends for Listfragment but i cant open it. </p>
<p>I have 2 activitys, firts is the main and extends ActionBarActivity to get action bar to older APIs:</p>
<pre><code>import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.... | 2 | 1,207 |
Can I control the order in which javascript / jQuery events fire? | <p><strong>Background</strong></p>
<p>I've got asp.net webform with a grid, and when users update textboxes in that grid, the onchange event kicks off a WebMethod call and updates the rest of the changed row. Nothing is saved at that time -- we're just updating the UI.</p>
<p>To commit the changes, you click the save... | 2 | 1,134 |
How does Google Custom search, search the web and why does it like so much domains with edu? | <p>I'm trying to use the Google Custom API to search for a certain keyword however it seems that the returned JSON that contains the links to the websites which "match" my keyword are totally irrelevant to what I have searched. I have noticed that anything searched will return 80% domains which end with <code>edu</code... | 2 | 7,296 |
'missing routes' error handling in node.js express app (failing) | <p>I am simply trying to work within my <code>app.js</code> or router file to handle possible missing router errors. <em>(similar stackoverflow solutions have not worked for me)</em></p>
<p>my <code>app.js</code> or router files is thus <em>(works fine as is; but am trying to handle missing router error properly)</em>... | 2 | 1,124 |
Tizen emulator not working on mac (Maveriks) | <p>I'm having problems to create a virtual machine of the Tizen Emulator Wearable (2.3.1). Everything is installed properly but once I want to create a new virtual machine it return error 133. I'm running Mac OS X (10.9.5).</p>
<p><a href="https://i.stack.imgur.com/u3DPe.png" rel="nofollow noreferrer"><img src="https:... | 2 | 1,141 |
Swiftmailer e-mail into Hotmail SPAM/Junk - SPF pass, DKIM, signed message | <p>After a lot of researching and testing, the e-mail still coming into the SPAM/Junk folder of Hotmail. This only happens when the receiver, receives the e-mail at the first time. The content of the e-mail contains 2 links, 1 to a Facebooklink and one to the homepage. It also contains one big voucher (embedded image).... | 2 | 1,292 |
Update Full calendar Vue events with data from API after an input outside the calendar | <p>I'm using the FullCalendar package as a <a href="https://fullcalendar.io/docs/vue" rel="nofollow noreferrer">Vue component (docs)</a>. I have a form with a select input and the calendar component.</p>
<p>Only when this select input has a value or gets changed I want to set events on the calendar by making an API req... | 2 | 1,981 |
Consuming WCF Service through https from Silverlight | <p>I'm trying this example code:
<a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=624" rel="nofollow">http://www.dotnetcurry.com/ShowArticle.aspx?ID=624</a></p>
<p>Everything seems to be ok but when it tries to call the async method from the WCF it shows this exception (sorry it's just in spanish):</p>
<blockq... | 2 | 3,076 |
Multiple dependent dropdown menus | <p>I am stuck with multiple dynamic dropdowns. So here is the problem I try to solve. I have the following four example tables stored in a database and want to access the values dynamically.
Dropdown 2 is dependent on Dropdown 1, Dropdown 4 is dependent on 2 and 3. </p>
<pre><code>| ID | name | percent | | ID... | 2 | 1,312 |
how to generate pdf with header and footer from html | <p>Tried to generate pdf along with header and footer for every page from HTML, but finally got header at starting first page and footer at the last page.</p>
<p>How to add for all pages,
find the following c# code which i used,</p>
<pre><code>string outputHTML;// here it contains HTML as string and im passing this
I... | 2 | 4,301 |
MaterialContainerTransform transition is not Working on Return | <p>My MaterialContainerTransform transition is working from source -> destination, but not the other way around. My situation is pretty standard -- I am attempting to provide a simple transition from a RecyclerView item (source Fragment) to a "details" Fragment (destination Fragment). The items within the ... | 2 | 4,132 |
mysql query help needed - Group by parent | <p>I'm trying to do a mysql query that will create an array of parent items, with their child items underneath. But I'm not 100% sure how. Here's what I have done so far:</p>
<p>SELECT * FROM categories as rf ORDER BY parent, name ASC</p>
<p>And here's what is being outputted (array):</p>
<pre><code>Array
(
[0] ... | 2 | 1,102 |
Writing Runge-Kutta ODE solver using gsl | <p>It's been some time since I did any C/c++, but I wanted to write an ODE solver using the gsl library to solve the following ODE set</p>
<pre><code>$$ u'(r)=up(r)$$
$$ up'(r)=-(2*(r-1)/(r*(r-2)))*up(r)-((r*r/((r-2)*(r-2)))-(2/r*(r-2)))*u(r) $$
</code></pre>
<p>so in the gsl notation my y[0]=u, y[1]==up, and the RHS... | 2 | 1,311 |
Backtesting Trading Strategy in R using quantmod: Function and for loop within a Function | <p>I am using R, quantmod and Performanceanalystics packages. As part of a backtesting strategy, I am trying to create a signal/holdings vector that tells me whether I should buy/sell/hold a stock, based on the value of RSI. If RSI<30, buy (so holdings increases by 1), if RSI is between 30 & 50, don't do anythin... | 2 | 1,108 |
Wordpress Customize Image Control Not Working | <p>I am currently creating a Wordpress theme and I have run into a snag. I'm using the theme customize page to upload a main logo and a mobile logo. Those logo's should then be used on the page. I got it to work for twenty minutes but them it stopped working.</p>
<p>Here is my customize register function in function.p... | 2 | 1,885 |
How to add two listviews in a fragment in android layout? | <p>i'm trying display two listviews in a fragment. but i'm getting problems in xml file itself. I am using sherlock fragment.
Also one list should be displayed on 2/3 space of the screen and another list on 1/3 of the screen space. please can u help? Any help would be appreciated. Thanks in advance.</p>
<pre><code> ... | 2 | 1,024 |
Installing modules with Strawberry Perl 5.16.2.2 (64bit) | <p>I used to use activestate perl, but moved to strawberry perl just now because I want to install those less common used packages. However I'm having problems installing modules with Strawberry Perl 5.16.2.2 (64bit) on my Windows 7. </p>
<p>Having installed Strawberry Perl, I verified that perl is working fine (ref 1... | 2 | 1,416 |
Laravel - Avoiding double-booking time slots | <p>I am trying to figure out how I would add some form of validation so that the same theatre slot cannot be booked twice on the same date. Any advice is much appreciated.</p>
<p>The code below is how to crete a booking, at present the user has a set list of options within the form to choose a theatre time slot in the... | 2 | 3,094 |
KonvaJS : How to draw a line to connect two shape based on mouse move? | <p>I'am trying to draw a line to connect two shape based on mouse move. And I konw how to relize it by using native canvas. But have no idea how to realize it by using KonvaJS.
Please help me on this.</p>
<p>This image shows what result i what : <a href="https://i.stack.imgur.com/YoQrD.gif" rel="nofollow noreferrer">en... | 2 | 1,097 |
Emergency Calling | <p>I am trying to design a system of android, in which emergency call can be placed on the number of my desire. I have an interface for patients, in my interface I have placed a button for emergency call to the doctor, if they start feeling sick then on a single button click, a call be placed to the doctor.</p>
<pre><... | 2 | 1,415 |
Error: [orderBy:notarray] Expected array but received: {} | <p>I am trying to implement pagination functionality from here:
<a href="http://jsfiddle.net/SAWsA/11/" rel="nofollow noreferrer">http://jsfiddle.net/SAWsA/11/</a></p>
<pre><code>[
{
"name": "Micro biology",
"id": "2747c7ecdbf85700bde15901cf961998",
"category": "Other",
"type": "Mandatory - No Certif... | 2 | 1,722 |
XCode 4.6 - Failed to launch application due to build error? | <p>When I tried to launch an application, getting the build error as below. Could not able to launch any application. Using XCode 4.6.</p>
<pre><code> dyld: Symbol not found: _audit_token_to_egid Referenced from:
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfigurati Expected in:
... | 2 | 2,761 |
textarea autogrow functionality jitters with every keystroke | <p>I was playing around with the jquery autogrow plugin, which expands the height of the text automatically as the text needs it. The problem is that with every key down, the bottom border of the textarea jitters in a noticeable way. I'm not sure what the problem could be, so I'm going to go out on a limb and post the ... | 2 | 1,634 |
Scraping Crunchbase.com using python | <p>I'm trying to scrap data from crunchbase.com using python requests library.</p>
<p>When ever I've tried to get page source using requests library, urllib library it was giving my ssl error below.</p>
<pre><code>import requests
requests.get('https://www.crunchbase.com/#/home/index')
Traceback (most recent call las... | 2 | 1,109 |
basic auth http-builder-ng | <p>Basic Auth not working with http-builder-ng - Authorization request is not passed by ng?</p>
<p><strong>build.gradle</strong> </p>
<pre><code>group 'org.vinay.rest'
version '1.0-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
de... | 2 | 1,879 |
how to retrive shared preferences from another class without activity ANDROID | <pre><code>package com.example.win7.simpleloginapp;
public class ServerRequest {
ProgressDialog progressDialog;
public static final int CONNECTION_TIMEOUT = 1000 * 15;
public static final String SERVER_ADDRESS = "ekinidris.site40.net";
final static String TAG_USER = "user";
JSONArray user;
JSONParser jsonParser ... | 2 | 1,592 |
Authentication: forced to refresh page to be authorised | <p>I'm using the code from <a href="https://blog.hyphe.me/token-based-authentication-with-node/" rel="nofollow">this blog</a> to make an authentication module for my angular app.</p>
<p>I have a test page that includes a login form, a submit button and a "profile" button that will query a restricted route.</p>
<pre><... | 2 | 1,195 |
Gson and Jackson incompatibility | <p>Currently I'm working on two projects: one is using Java 1.5 and Spring 3.2.3, and the other is using Java 1.8 and Spring 4.1.5. As you may know, since Spring 4.x.x default <code>HttpMessageConverter</code> is Gson. Prior to version 4.x.x default was Jackson. I thought this will not influence compatibility, but lo a... | 2 | 1,884 |
The 'xs:group' start tag on line 21 position 4 does not match the end tag of 'xr:group' | <p>I am working with MVC3 project and when deployed to production Im getting this error</p>
<pre><code>The 'xs:group' start tag on line 21 position 4 does not match the end tag of 'xr:group'. Line 30, position 5.
</code></pre>
<p>Stacktrace below</p>
<pre><code> at System.Xml.XmlTextReaderImpl.Throw(String res, S... | 2 | 1,754 |
Handle URL changes in React | <p>I am new to React and currently taking this tutorial on Youtube. <a href="https://www.youtube.com/watch?v=5Bytq6LNDO4&t=599s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=5Bytq6LNDO4&t=599s</a>
I am using v4 of React-Router so i have to change a few things.</p>
<p>At my code, the url is changin... | 2 | 1,072 |
FlexJson Error : ClassCastException: java.util.HashMap cannot be cast to class | <p>This is the error I get while I try to cast my LONGTEXT object from mysql back to my ProcessInputs java object using FlexJSON.</p>
<pre><code>java.lang.ClassCastException: java.util.HashMap cannot be cast to org.juzzy.server.ProcessInputs
at org.juzzy.server.FLSDAO.RetrieveFLSFromDatabase(FLSDAO.java:68)
at... | 2 | 1,343 |
Newbie: Tripped a warning: WARN io.netty.util.ReferenceCountUtil - Failed to release a message | <p>Netty 4.1.6 (io.netty:netty-all:4.1.6.Final from Gradle via jcenter() with Java 1.8.0_102 on OS X 10.11.6) <em>claims</em> this is a warning, but it actually causes my code not to do the right thing. Being totally new to Netty, I'm almost certainly screwing something up, so I thought I'd ask the experts.</p>
<p>I... | 2 | 1,605 |
Lexical error running sql in netbeans 8.02 | <p>I new to java DB programming.I am trying out create tables in GlassFish Server 4.1 using sql statements but whenever I run the sql using the run sql tool, it gives me the following errors
Error code -1, SQL state 42X02: Lexical error at line 3, column 3. Encountered: "`" (96), after : "".
Line 1, column 1</p>
<p>... | 2 | 1,131 |
Phone authentication with firebase and flutter | <p>I'm writing a flutter app that using phone authentication. I am runing the app currently on iPhone 12 simulator and when I testing the app and implement the phone number I am not receiving the 6 digit code from firebase as planed. I Think is because one of those mention resons.</p>
<ul>
<li>
<ol>
<li>Firebase can't ... | 2 | 4,313 |
Insert date into MySQL | <p>My website is simple, all I want to do is insert a date that I chose in a date picker into MySQL. (at the moment its inserting like this "0000-00-00 00:00:00").</p>
<p>My PHP/HTML code is:</p>
<pre><code><form id="form_351400" class="appnitro" method="post" action="insert.php">
<div class="form_descr... | 2 | 3,012 |
How to use ng2-canvas-whiteboard in ionic 3 | <p>I want to use this npm-package in my Ionic 3 App:</p>
<p><a href="https://www.npmjs.com/package/ng2-canvas-whiteboard" rel="nofollow noreferrer">https://www.npmjs.com/package/ng2-canvas-whiteboard</a></p>
<p>I did everything it says in this link.</p>
<p>Here is my package.json:</p>
<p><div class="snippet" data-l... | 2 | 2,055 |
Oracle 12C - JSON_TABLE - How to return other columns in the table when json column is null | <p>There is a table which has a CLOB JSON column:</p>
<pre><code> CREATE TABLE STUDENT
(
NAME VARCHAR2(32 BYTE),
ADDRESS VARCHAR2(30 BYTE),
PAYMENT_JS CLOB
);
ALTER TABLE STUDENT ADD
CONSTRAINT CK_PAYMENT_JS
CHECK ("PAYMENT_JS" IS JSON (LAX));
</code></pre>
<p>PAYMENT_JS is a HUGECLOB which has... | 2 | 1,074 |
How to write and use a retargetable merge module in wix | <p>I would like to write and use a minimal retargetable merge module. It should contain 3 files</p>
<pre><code>PS C:\Users\mto\sandbox\wixme3> Get-ChildItem files
Directory: C:\Users\mto\sandbox\wixme3\files
Mode LastWriteTime Length Name
---- ------------- ------ ----
----... | 2 | 1,512 |
my program won't execute anything after the while loop | <p>I wrote this "calculator" and I want it to output the result after calculation but it won't for some reason !!<br>
<strong>A sample input would be</strong><br>
2<br>
1 + 1 * 2 = </p>
<p><strong>And output will be</strong>
4 </p>
<p>Thanks in advance </p>
<pre><code>import java.util.Scanner;
public class Mai... | 2 | 1,171 |
win32 scrollbar in not working in C/C++ program | <p><a href="https://i.stack.imgur.com/ge7yT.png" rel="nofollow noreferrer">win32 scrollbar in not working screenshot</a></p>
<p>Win32 scrollbar in not working. This is my code in win32 C/C++</p>
<pre><code>#include <windows.h>
#include <stdio.h>
/* Declare Windows procedure */
LRESULT CALLBACK WindowP... | 2 | 1,886 |
OpenSSL Support disabled in Apache 2.4/PHP 7.4.4 | <p>I'm trying to setup Apache MariaDB PHP manually but I'm running into some issues with the openssl feature.
Here are the steps I took to setup Apache 2.4 and PHP 7.4.4:</p>
<p>I. Apache httpd Installation and configuration</p>
<ol>
<li>Download and Extract <a href="https://www.apachelounge.com/download/VS16/binarie... | 2 | 1,101 |
Remove duplicates from an array in BigQuery | <p>I work within BigQuery, and one of my tables has an array that has duplication that I want to figure out how to remove. I'm able to identify the problem rows using a CTE, but actually removing them is where I get stuck.</p>
<p>Let me provide an example to give more context:</p>
<div class="s-table-container">
<table... | 2 | 1,065 |
Groupby on pandas dataframe and concatenate strings with comma based on the frequency of values in a column | <p>This is an update to the structure of my DataFrame, I formulated the structure in haste, I was inspecting a single user and mocked up that structure. @liliscent's remark: "data accidentally satisfies this condition" is also true and value_counts and cum_sum() solves it. But then user_id's also change, and different ... | 2 | 4,215 |
Dispatcher.BeginInvoke not being executed in one case | <p>I'm trying to fix a bug in an existing application, where in a single case, a dispatched event is not being executed.</p>
<p>In our application, there are several services implementing a common abstract class (AbstractService). The issue I've got occurs when a service saves an entity and has to raise a notification... | 2 | 2,952 |
Rest json POST error Handling in Swift 2 | <p>An new to swift 2 and I try to write an App in Swift 2 that makes an HTTP POST request but I can't figure out how to use the new error handling of Swift 2.am using do try catch method but still error shows
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSJSONSerialization da... | 2 | 2,397 |
Vue Prop undefined in child component | <p>I am trying to pass an array that inside an object from a parent component to a child component but answers is coming up undefined. When checking the prop in the parent component the data is there, but when it gets past to the child it is undefined.</p>
<pre><code>Vue.component('single-question', {
props: ['que... | 2 | 1,816 |
Various calc() polyfill libraries not working in IE8 | <p>I've been asked to create a page with a header and sidebar where the sidebar is 100% the height of the page minus the heading height, without a vertical scrollbar. The following works in FF, Chrome, and IE9+, but the polyfill doesn't do anything in IE8.</p>
<p>I've tried the following 2 polyfill calc libraries in I... | 2 | 1,234 |
Problem with JSONArray response to android Volley | <p>i'm sending this data from php file to android:</p>
<p>[{"Nom_Carrera":"Cursa popular BCN","Ciudad":"Barcelona","Anyo":"2019"},{"Nom_Carrera":"Maraton Madrid","Ciudad":"Madrid","Anyo":"2018"},{"Nom_Carrera":"Mitja Marato Valencia","Ciudad":"Valencia","Anyo":"2018"}]</p>
<p>I know that this is a JSONArray, but how ... | 2 | 1,613 |
Calculate distance from GPS data | <p>I do have data frame with gps data and I need to calculate distance between two rows (current and previous)</p>
<pre><code> id time lat long heartrate altitude
1 20130424.tcx 2013-04-24T04:53:22Z 50.024818 14.522724 151 <NA>
2 20130424.tcx 2013-04-24T04:53:26Z... | 2 | 1,202 |
PHP Apple APNS Read IMMEDIATE Notification Status_code | <p>for the past 3 days i have been trying to make things work with my php code and apns.</p>
<p>So far i'm able to deliver notifications (i only have one device so i don't know if this is working for multiple devices).</p>
<p>When i try to test sending one notification for 2 devices where the first is an device token... | 2 | 1,550 |
React, how to update a state without repainting, or how to trigger useEffect without useState (and with useRef), or how to stop infinite loop | <h2>The situation</h2>
<ul>
<li>I want to redistribute a grid based on the height of the images (using a masonry approach)</li>
<li>Those images are lazy loaded</li>
</ul>
<h2>What I want</h2>
<ul>
<li>When the images are loaded, they send a flag, this flag makes the masonry logic to redistribute the grid, and every... | 2 | 1,699 |
VSCode C++ c_cpp_properties.json "defines" does not define the symbol on ubuntu | <p>I have a <code>main.cpp</code> thus:</p>
<pre><code>#include <stdio.h>
int main(){
#if defined(_LINDEBUG)
#if defined(VSCODE)
printf("VSCODE defined"\n);
#else
printf("VSCODE not defined\n");
#endif
#endif
}
</code></pre>
<p>My <code>c_cpp_properties.json</code> file in <code>.vsco... | 2 | 1,269 |
Laravel Nova Column in where clause is ambiguous/Unknown column in where clause | <ul>
<li>Laravel Version: 5.8</li>
<li>Nova Version: 2.0.0</li>
<li>PHP Version: 7.2.1</li>
<li>Operating System and Version: Max OSX 10.13.6</li>
<li>Browser type and version: Firefox 66.0.3</li>
</ul>
<h3>Description:</h3>
<p>Hi, I have 2 models relevant to this bug; Event and TimeSlot. They have a BelongsToMany re... | 2 | 1,201 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.