title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Loading multiple images on a page for Blackberry 10 | <p>I am working on BB10 cascades. I am trying to load multiple images from network. I have referred <a href="http://blackberry.github.io/Cascades-Samples/imageloader.html" rel="nofollow">following example</a> and I have modified it to load a single image. Sample code is as follows:</p>
<p><strong>main.qml</strong></p>... | 3 | 2,141 |
Load more script for content using jquery | <p>I am using below script but it's not working for my script want to keep limit 3 boxes after 3 boxes if user wants more he have to click load more link i gave a live link to see i want load more for that boxes or any new code for load more jsut give me?</p>
<pre><code> <ul id="myList">
<li>One... | 3 | 2,195 |
Are Blank Tag Names Causing A Parsing Error? | <p>I'm trying to restructure some XML by taking the data, creating a DOM doc, and transferring across just the bits I need, before saving the output, however I keep getting a "XML Parsing Error: no element found: Line Number 1, Column 1:" error. I think it's related to the blank tags inside the first :</p>
<pre><code>... | 3 | 1,691 |
Can we freeze columns in HTML on basis of colgroup? | <p>I was dealing with complex tabular data and wanted to freeze the header and column heading but on the "col" tag.
I can freeze the row heading with position sticky for each tag but then for the second heading when I use-value of the width in the left position the table distorts in some large screens.</p>
<p... | 3 | 2,753 |
self.assertEqual(response.status_code, status.HTTP_200_OK) AssertionError: 404 != 200 | <hr />
<p>This is were the error comes from</p>
<pre><code>def test_single_status_retrieve(self):
serializer_data = ProfileStatusSerializer(instance=self.status).data
response = self.client.get(reverse("status-detail", kwargs={"pk": 1}))
self.assertEqual(response.... | 3 | 1,131 |
getting an attribute from a tag with beautiful soup | <p>I am trying to get the attribute 'datetime' but cant seem to do it right for the past couple of hours:</p>
<pre><code> driver.get("https://cointelegraph.com/tags/bitcoin")
time.sleep(10)
page_source = driver.page_source
soup = BeautifulSoup(page_source, 'html.parser')
#print(soup.pr... | 3 | 1,463 |
Weird behavior of Redux thunk in a React Native app | <p>I recently noticed a very weird behavior of Redux in my app that I would like to share with you. When I click this TouchableOpacity in my settings in order to disconnect, I get the following error: </p>
<blockquote>
<p>TypeError: Cannot read property first_name of null</p>
</blockquote>
<p>from Homepage.js</p>
... | 3 | 1,249 |
Draggable left side of screen (JQuery) | <p>I'm wondering if someone can help me work out the offset of <code>left</code> side of the screen. I've currently got the <code>right</code> side done and you can see the example below. However I want the same for <code>left</code> side with the text saying "Not Interested".</p>
<p>Could someone please point me in t... | 3 | 1,908 |
PHP Javascript - cannot change selector onclick to Remove preview files | <p>I'm doing upload multiple files(use <code><input type="file" multiple/></code>) with preview image file and can remove the image preview and filedata successfully.</p>
<p>but the problem is, I cannot change the selector for onclick to remove filedata.
(If I change to other selector, it will only remove the p... | 3 | 2,206 |
PHP form required fields error message not shown | <p>Why there's no error message shown in the browser window?
(had more fields but reduced all to a minimum)
There is just nothing happening but that it is redirecting to the 'save_entries.php'.
I would have liked the error message in the table as first row, second column.</p>
<p>The code:</p>
<pre><code><?php
sess... | 3 | 1,294 |
Split a single linked list into 2 SIngly linked lists -one containing nodes with even data and other containing nodes with odd data | <p>I tried coding the above problem but I'm getting a segmentation error.Below is the code that I've written :</p>
<pre><code> #include<stdio.h>
#include<stdlib.h>
#include<math.h>
struct oddeven
{
int data;
struct oddeven *link;
};
... | 3 | 2,145 |
How to make End Date 1 day after the Start Day on android datePicker | <p>i have a project that should bring end date after the start date on android datepicker.
(user will chose any date on start date and when user click end date what ever user choose end date should be one day after start date)</p>
<p>for this purpose i have a Kotlin code as in below;</p>
<pre><code>private fun showDat... | 3 | 1,308 |
Chart.js Show label/tooltip for single point when multiple points coincide | <p>I have a Chart.js scatter plot where data points from two different datasets occasionally coincide/overlap. They have the same x and y coordinate. On default, when the points are hovered, the tooltip shows info for both data points. My desired behavior is to get the information for the first overlapping point only. ... | 3 | 2,499 |
is there a javascript method for telling us if a input range slider value is going up vs down? | <p>I'm trying to group input range sliders or 'faders' together so that one 'Group Fader' can control two or more faders while keeping their respective relative values intact.
So if fader One has a value of '50' and fader Two has a value of '75' When we group them together and increase the Group Fader by +20, faders on... | 3 | 1,762 |
Unable to get child of Current User Id for RecyclerView | <p>I want to set RecyclerView with Child of Current User Id by using <code>getCurrentUser().getUid()</code>.The data structure you can see in image below, <a href="https://i.stack.imgur.com/PTLbH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PTLbH.png" alt="enter image description here"></a></p>
<... | 3 | 1,453 |
Permission denied (missing INTERNET permission?) when using exoplayer | <p>I am beginner in android i try to use ExoPlayer to show video but i have a problem when trying to run the elumater it crashes and give me that error in the logcat "Unexpected exception loading stream "</p>
<p><strong>This is my Logcat error</strong></p>
<pre class="lang-html prettyprint-override"><code>10-17 17:... | 3 | 4,811 |
Scraping Data from a table with Scrapy but not Scraped Items | <p>I'm trying out Scrapy for first time.After doing fair bit of research I got the basics. Now I was trying to get data of a table. It isn't working. <strong>not Scraped any data</strong>. Check below for source codes.</p>
<p>settings.py </p>
<pre><code>BOT_NAME = 'car'
SPIDER_MODULES = ['car.spiders']
NEWSPIDER_MOD... | 3 | 2,738 |
error in custom list adapter class | <p>I am trying to get server responce and store it in different string array but when i call adapter class till now it is fine but in adapter class will give me error.</p>
<pre><code> class viewticket extends AsyncTask<String, Void, String> {
@Override
protected void onPreExecute() {
... | 3 | 2,297 |
Attempts to access this ref will fail. Did you mean to use React.forwardRef()? | <p>I'm trying to create a sign up form with an input for a users address. The address input uses the google autocomplete address api.</p>
<p>I'd like to be able to keep it as a <code>Formik</code> field, so I can use <code>Yup</code> validation on it.</p>
<p>The address input component looks like</p>
<pre><code>// Goog... | 3 | 2,984 |
How to generate object ids when $unwinding with aggregate in mongodb | <p>I'm having the following query</p>
<pre><code>db.getCollection('matches').aggregate([{
"$lookup": {
"from": "player",
"localField": "players.account_id",
"foreignField": "account_id",
"as": "players2"... | 3 | 1,062 |
how to calculate total based on check box checked.? | <p>I'm trying to calculate checked total amount based on checkbox select, if checkbox select then total value should add. i have added screenshot below also in that i had explained clearly please go through that. in my main project what happen is 'checked total' showing in every child table if i click in other table, a... | 3 | 3,810 |
Inconsistent Imports in React (create-react-app) | <p>returning to React for the first time in a while and having some strange issues I'm having trouble resolving. It seems like my imports are behaving inconsistently and I'm not sure why that might be. Here's the file in question:</p>
<pre><code>import React from 'react';
import axios from 'axios';
import {VanillaPudd... | 3 | 1,508 |
Android Custom XML layout for SQLite | <p>So I have been working on a project app that reads from a database and prints the contents of the DB into a list view. I now want to print more then just one column, I want to add two buttons and an edittext to the row that is being printed. I have created the new xml file that I want to use but when i try to set th... | 3 | 2,714 |
ContextMenu in a ListView/GridView | <p>Inside a ListView, I have a GridView and am trying to set things up so that when the user right clicks a 'row' in the ListView, I'm able to access the original data object.
I think its the gridview part of the ListView that is making this a bit more difficult.</p>
<p>I've created a sample that demonstrates where I'... | 3 | 1,423 |
PEM encoded certificate error when trying to import new Composer card | <p>I am having some problems setting my network up in Composer. It is a single organisation and i have been following and adapting the multi-org tutorial <a href="http://Multi%20org%20tutorial" rel="nofollow noreferrer">https://hyperledger.github.io/composer/v0.19/tutorials/deploy-to-fabric-multi-org</a> to try and get... | 3 | 9,456 |
Include pymssql in py2app | <p>I'm trying to package an app and include <code>pymssql</code> with it. </p>
<p>Here's my setup.py:</p>
<pre><code>"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['AppName.py']
DATA_FILES = ['pic1.jpg', 'pic2.jpeg']
OPTIONS = {'argv_e... | 3 | 1,358 |
Zurb Foundation top-bar not working on small screens | <p>I just started using foundations and frankly, its been a while since i built my last website. so please be pacient with me.</p>
<p>I deal with an issue with my menu (top-bar) now for over a day and can not find a clue what is going wrong.</p>
<p>The thing is, I really just need a basic menu, which is toggeling to ... | 3 | 2,108 |
Is it possible to make an image move with the cursor when it gets near, and have collision? | <p>I am creating a maze game. I got provided with how I would make an image not able to enter a div with jQuery. I also have a code with the image following the cursor. In the second code, I made it so that the image would only go to the mouse if it was a certain distance away. With the collision, the code from the sec... | 3 | 1,489 |
HTML + Hiding element from table based on value from another column | <p>I am trying to hide a button in a table column based on another column value, there's a table column field call "Archive" and if that value is true, I want to hide a button from another column. The code below I have however only hides the button in the first row and ignore subsequent rows. Please kindly assist. Than... | 3 | 1,123 |
What is a SMART WAY to deal with a lot of repeated If statements checks? | <p>In my attempt to create a searching tool for a database that I created in the context of my undergrad thesis, I am required to make a lot of checks on the values that the user has entered, and according to those values, generate and execute the appropriate <code>MySQL query</code>. An example follows:</p>
<p><code>H... | 3 | 4,378 |
facebook meta og:image not showing in post | <p>I have the following meta tags</p>
<pre><code><meta data-n-head="true" data-hid="og-title" property="og:title" content=" | Skryit"><meta data-n-head="true" data-hid="og-description" property="og:description" content="">
<meta data-n-head="true" data-hid="og-type" property="og:type" content="website"&... | 3 | 1,917 |
Remove duplicate form select result | <h1>#edited</h1>
<p>Ok. I will delete all role permissions and add them again.</p>
<p>Is it possible to combine all 4 queries into one?</p>
<hr>
<p>I am creating a permission system.</p>
<p>Assumptions:</p>
<ul>
<li><p>Each user can have more than one role</p></li>
<li><p>Each role can have more than one permissi... | 3 | 1,165 |
combining get_absolute_url into a raw SQL statement in django | <p>Am working on a django application with uses several complex queries to return ranks, ratios and other complicated output. I've followed few exampled from the web which helped me find the best way to put it and retrieve data from the query set returned</p>
<p>Yet, I would like to find a way to inject custom details... | 3 | 1,290 |
PHP emails from form scramble cyrillic characters | <p>Here's what this is all about. Since I am using PHP as of today I am facing this issue.
I have build a form , for the ISP company that I work for, which emails the form results. Customers fill out this form to request new service from us. Since the company is foreign (Bulgarian) 99% of people are going to fill it ou... | 3 | 2,880 |
I would like not to use root as global | <p>Hello I am writing an avl tree and I have one issue . I am currently having a root as global since I use it in the class as well as in main , how can I write it without having it global?</p>
<pre><code>struct avl_node {
int data;
struct avl_node *left;
struct avl_node *right;
}*root;
class avlTree {
... | 3 | 4,033 |
Google Map API not plotting array of markers | <p>I need some advice or a telling off because my code is wrong. I'm new to JQuery and google maps api. I have a JSON get to retrieve my data. I have declared an array and stored (hopefully this is the correct way to do this).</p>
<p>update** - Thanks to @geocodezip I have updated my code to allow correct population o... | 3 | 2,888 |
QUEUE and 'IF' 'ELSE' 'WHILE' statements from scratch and running functions | <p>I'm making a game engine in javascript, and needed some way to code some actions.</p>
<p>The code is here:</p>
<pre><code><!DOCTYPE html> <html> <body> <script>
var engine={}, actions={}; engine.atomStack=new Array();
events = {
1: ["action1|5","action2|2;2","action1|2"],
2: ["actio... | 3 | 1,042 |
How to get offsetTop of element in regards to the document and not its parent? | <p>I had trouble wording my question, but here's the detail ! I've been struggling with how to get my navigation bullets (spans) to be highlighted when the current element is in viewport. I've initially tried using the same logic as a sidemenu tutorial I previously used elsewhere (by Web Cifar on youtube), but it doesn... | 3 | 7,492 |
ASP.NET MVC Mismatch error on a google chart | <p>I'm running into an javascript error with google charts. I've got this to work with a different query but I need the result of the query below to be displayed. The problem as of now is that the chart is not appearing. Any thoughts on debugging this?</p>
<pre><code>Uncaught (in promise) Error: Type mismatch. Value 1... | 3 | 1,056 |
How are remote actors created on joining of new nodes in akka? | <p>Explaining my Akka cluster setup:</p>
<ul>
<li>I have remote actors in a multi node Akka cluster.</li>
<li>Actors are behind Router which is of Singleton Type.</li>
<li>Singleton Router is behind a Cluster Singleton Proxy.</li>
<li>Also, on a side note, I have N type of actors, each doing a different kind of task a... | 3 | 1,036 |
Got Solution How to store the cookies in login and delete the cookies in logout action | <pre><code>My Problem is solved
</code></pre>
<p>I am doing an application that is getting cookies from server side. I want to store the cookies and delete the cookies at logout function but I don't know how to do this.
Based on this cookies my app has to show some additional benefits to the user so I want to save thi... | 3 | 1,875 |
iOS Segue opening two view controllers (assuming two table cells clicked) | <p>When I click a table cell in my application it opens two view controllers. Which it seems to assume that I have clicked two cells, since it opens the cell before and the one I have clicked.</p>
<p>The first 3 cells are pretty much static, every other cell underneath the "ingredients" heading are dynamic. Hence why ... | 3 | 1,908 |
VBA Array is being transposed into the second column of a range, not sure why? | <p>I have the below VBA code which calculates a number of output values and stores them in as an array (beginning_gross_facility_balance being one of the examples).</p>
<p>when I try to print the resulting array values into excel (to output2 range, which is C16:J515 in an excel tab, the array is exported/printed into ... | 3 | 3,427 |
jvm options -XX:+SafepointTimeout -XX:SafepointTimeoutDelay look don't work | <p>I detected on a server long safepoints (>10sec!) in jvm safepoint.log:</p>
<pre><code>6534.953: no vm operation [ 353 0 4 ] [ 0 0 14179 0 0 ] 0
7241.410: RevokeBias [ 357 0 1 ] [ 0 ... | 3 | 1,310 |
Where is my error (R Programming) | <p>The below code works <code>when i=0</code> and having problem <code>when i=2</code>. <br>Below is the error:</p>
<blockquote>
<p>"Error in while (Net_Present_value$NPV[year] <= 0) { :
missing value where TRUE/FALSE needed" in second iteration</p>
</blockquote>
<pre><code> vaaa=10000
concession<... | 3 | 1,302 |
Downloading only first item from web service - Android | <p>I want to download items from a web service to Android app (Web service output - XML). I'm using Android Download Manager class for downloading part. </p>
<p>When I click download button , it only downloads the first item from XML list. This is what I tried. Help me to download all files. </p>
<pre><code> try {... | 3 | 1,450 |
Sprite Kit delay on runAction completion? | <p>I'm building a game with Sprite Kit that implements A* Pathfinding. I'm using a grid system (blocks) that the character uses to calculate the path, it works great. My problem is the animation.</p>
<p>I'm using a NSMutableArray to hold the steps and removes a step each time the move has been completed (runAction com... | 3 | 1,538 |
Trouble to access attributes by using glVertexArrayAttribFormat / glVertexArrayVertexBuffer | <p>I have this code :</p>
<pre><code>Upp::Vector<float> verticesTriangle{
1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -0.5f, -0.5f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f, -0.5f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f,
};
glGenVertexArrays... | 3 | 1,084 |
Parameters not being read even though they appear to be passed | <p>I'm making a form that creates more than one record for the user depending on how many items the user decides to check off in the form using checkboxes.</p>
<p>Currently, I'm running into an error where <code>param is missing or the value is empty: itemrecord</code> even though in the log, it appears that <code>par... | 3 | 1,057 |
fetching data from json and unable to display proper graph in extjs | <p>I am unable to display graph in extjs after fetching values from .json file.</p>
<p>Please find the attached code.</p>
<p>chart.json</p>
<pre><code> { "graphobject":
[
{ 'name': 'abc', 'data': 7 },
{ 'name': 'xyz', 'data': 5 },
{ 'name': 'mnop',... | 3 | 1,719 |
Nodejs microservice to SQL Server database connection timout | <p>I am using <a href="https://loopback.io/doc/en/lb3/" rel="nofollow noreferrer">loopback3</a> for creating Nodejs microservice.</p>
<p>I have total 7 to 8 micro services. All the micro services connecting to different SQL Server databases running on same instance (192.168.20.25:1433). I am building docker images for ... | 3 | 2,119 |
Executing playbooks in groupings created in hosts.yaml file | <p>Ansible Version: 2.8.3</p>
<p>I have the following <code>hosts.yaml</code> file for use in Ansible</p>
<p>I have applications that I want to deploy on potentially both <strong>rp_1</strong> and <strong>rp_2</strong></p>
<pre class="lang-yaml prettyprint-override"><code>---
all:
vars:
docker_network_name: devop... | 3 | 1,615 |
Why does my code not work when a character is in the second row of the array? | <p>I have some code with a method that is trying to return the opposing character label of a 2d array's position.</p>
<p>Let's suppose the array and it's labels for each position are like below:</p>
<pre><code>{{3,3,3,3}, {3,3,3,3}}
a,b,c,d e,f,g,h
</code></pre>
<p>If b is entered, f is returned. I have it work... | 3 | 1,252 |
Jwt token always return 401 .net core 3.1 web api | <p>I'm new at the Jwt. I create new web api running on 3.1 version and my configuration like that ;</p>
<pre><code>public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
var symmetri... | 3 | 1,618 |
PHP MS SQL - Fatal Error: Call to undefined function sqlsvr_connect() | <p>Good morning. I am trying to set up a php development environment but I keep running in circles chasing down answers that have not worked by searching.</p>
<p>The error I get when trying to run the test php file in Php Designer or after saving it and running it in Chrome or Firefox to connect to my local MS SQL Exp... | 3 | 1,439 |
How to share an annotation across multiple elements | <p>I have this in my XSD (excerpt):</p>
<pre><code><xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="int1">
<xs:complexType>
<xs:complexContent>
<xs:extension base="baseStructMember">
<xs:attribute name="min" type="xs:byte" use="optional" /... | 3 | 1,077 |
Unable to upload webdatacommons example file into OpenRDF Sesame 2.7.0 (seemingly) because of encoded Chinese characters | <p>I just tried uploading the example <a href="http://webdatacommons.org/samples/data/ccrdf.html-rdfa.sample.nq" rel="nofollow">webdatacommons RDF file</a> </p>
<p>Into Sesame 2.7.0 and get a message: </p>
<pre><code>"'ζ΄ͺιη' was not recognised as a language literal, and could not be verified, with language zh_tw [line... | 3 | 1,672 |
Improving graph quality while exporting in r | <p>I have written following code for comparing between to different variables over a period. The code works fine but only problem is when i output the file as "jpeg" the lines are not smooth and my arrow is not as smooth as i like it to be in other words the graph feels very low quality. But when i output it ... | 3 | 1,223 |
Upload doesn't work using Carrierwave in Rails 5 | <p>So I was working on my app and trying to put on an uploader feature.</p>
<p>First I generated a course uploader and allowed jpeg, jpg, png and gif. </p>
<p>Next I've added the ff code mount on my course model:</p>
<pre><code> mount_uploader :thumb_image, CoursesUploader
mount_uploader :main_image, CoursesUploa... | 3 | 1,730 |
How to put a thread to sleep for microseconds? (invalid implementation for sleep_for in MinGW) | <p>Since <code>std::chrono::sleep_for</code> accepts microseconds, I expected it to be able to sleep for microseconds with some reasonable bias (sleep <em>a little</em> longer, <em>definitely</em> not shorter).</p>
<p>However, it turned out that I was wrong and it seems to be not possible with STL.
MSVC implementation ... | 3 | 3,190 |
Transforming an Image to move diagnally | <pre><code>public void draw(Graphics g, Graphics g2d, double theta, int NEWY){
g.setColor(Color.orange);
int drawLocationX = character.x;
int drawLocationY = character.y-47;
double rotationRequired = Math.toRadians (theta);
double locationX = this.getWidth()/2;
doubl... | 3 | 10,227 |
Action Bar Background Not Changing | <p>I have went on android and followed their instructions to style the Action Bar and it is not working. The app keeps stopping. I can see the changed color briefly as the message is shown. I have a note 2 with 4.4.2.. Here are my </p>
<p>styles.` </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<... | 3 | 1,625 |
Setup Fedena on windows 8 | <p>I am trying to setup Fedena project on windows 8. I have followed steps mentioned in official website. <a href="http://www.projectfedena.org/install" rel="nofollow">http://www.projectfedena.org/install</a> . But while creating database it throws an error.
Step is <code>Run the command "rake db:create". This will cr... | 3 | 1,158 |
Most efficient way to re-order my database table and display to web | <p>I'm new to MySQL, Just read the section of my book explaining it and now at the point where I'm applying it to the website I'm building.</p>
<p>I have the two following tables in my database:</p>
<pre><code>Table Name: Transactions
+------------------+------------+-----------+--------+
| description | date ... | 3 | 2,114 |
Generic expression for EF Core 3.1 filtering throws exception on .Any(...) | <p>I try to create a generic way of getting data via EF Core 3.1 with the same filtering of different children. For this, I try to extract the searched expression inside of Any(...).</p>
<pre><code>public Expression<Func<PraeparatUpdateEntity, bool>> IsToApprovePackungUpdates_Working()
{
return entity =&... | 3 | 2,367 |
My app keeps saying "unfortunately it has stopped". I don't know why it is crashing | <p>In my activity, the user can input numbers into a EditViews, then click a button to calculate, the result is displayed below. However, if a user edits an EditView, clicks calculate, then goes back to edit an EditView again, the app crashes when the user clicks calculate to recalculate a new total.</p>
<p>Full log:<... | 3 | 3,456 |
JavaScript Calculator not displaying total | <p>When I click the calculate button, the total doesn't display and I don't know why. It's supposed to add up all the quantity ticket fields and display the total amount. Instead nothing happens when I click the button "Calculate". Any ideas?
JavsScript</p>
<pre><code>// JavaScript Document
$(document).ready(function ... | 3 | 2,306 |
optimize query with lambra expression in entity framework | <p>I have the following query, often have excution timeout errors, have any ideas for optimization.
Thank you!</p>
<pre><code>queryResult = db.Products
.Where(x => !x.product_is_deleted)
.Where(x => x.product_name.Contains(keyword) || x.product_barcode.Cont... | 3 | 1,454 |
Message Box preventing exception, but requires user input | <p>This code gets images from google, and sets a Picturebox's image to the specified index. For some reason it will not work without, "MsgBox("anytext")" being right before "Dim hecImages as HtmlElementCollection..."</p>
<pre><code>Private Sub GetImagesFromUrl()
Dim wbID As New WebB... | 3 | 1,683 |
Error Resources not found on Xamarin Forms droid | <p>I have a xamarin solution with a iOS project working, now i'm triying to do the same on android. So i created a new project android, install the nugets, and set the references, and this happens:</p>
<pre><code>resource integer/google_play_services_version not found. (APT0000)
</code></pre>
<p>In the path obj/debug... | 3 | 1,990 |
How to reload Datatable using Ajax when checkbox is clicked | <p>I want to be able to reload my Datatable once my checkbox is clicked , provided below is my attempted code but I continue to get error:Uncaught TypeError: Cannot set property 'data' of null not really sure how to handle this error. I have provided both the javascript and the view in my MVC application please let me ... | 3 | 2,731 |
Compute the Cartesian Distance between points in high-dimensional space optimally | <p><strong>Summary:</strong></p>
<p>My class SquareDistance computes the square of the Cartesian distance in four ways using methods with these names:</p>
<ol>
<li>Signed</li>
<li>UnsignedBranching</li>
<li>UnsignedDistribute</li>
<li>CastToSignedLong</li>
</ol>
<p>The first one is fastest and uses signed integers, ... | 3 | 5,617 |
LWJGL Objects not shown on ATI graphics card | <p>I've written an LWJGL application that uses .obj files, reads them and displays them (using displaylists).</p>
<p>On my nvidia graphics card, everything runs fine. But on an amd graphics card i can't see the objects.</p>
<p>How i give data to the shaders:</p>
<pre><code>glUseProgram(shaderEngine.obj);
glUniform1i... | 3 | 1,260 |
facebook login status in sdk javascript | <p>I have a problem to get the login status of the logged in user.
The getLoginStatus Function will be not called.
I want to get the access token to get the user data.
I tried with my own APP-ID and with a game APP-ID (298553513572593).
Above you can see my code:</p>
<pre><code><body>
<div id="fb-root"&... | 3 | 1,320 |
How to import an object of one app into another app in the same django project? | <p>Codes are given below.</p>
<p><strong>users.model.py</strong></p>
<pre><code>from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django.db import models
# from django.contr... | 3 | 1,645 |
Puppeteer - TypeError: require(...) is not a function | <p>I've started using puppeteer to test a login form, I've tried the following code but I get this errors in vs terminal when I try to run the script</p>
<p>index.js</p>
<pre><code>#!/usr/bin/env node
require('dotenv').config()
const puppeteer = require('puppeteer')
(async () => {
const browser = await puppeteer... | 3 | 1,068 |
How to make the text inside of a div glow whenever you hover over the div | <p>Okay I have this navbar its a series of 5 divs that have text inside of them. I want to make it to where whenever I hover over a div the <code><p></code> element inside of the div will have a glow. I know all of the correct css tags to get the glow and such, but I'm stumped when it comes to the (div):hover { }... | 3 | 1,706 |
Fileserver directory for dynamic route | <p><strong>My scenario</strong></p>
<p>Compiled angular projects are saved like</p>
<pre><code>.
βββ branch1
βΒ Β βββ commitC
βΒ Β βΒ Β βββ app1
βΒ Β βΒ Β βΒ Β βββ index.html
βΒ Β βΒ Β βΒ Β βββ stylesheet.css
βΒ Β βββ commitD
βΒ Β βββ app1
βΒ Β βΒ Β βββ index.html
βΒ Β βΒ Β βββ stylesheet.css
βΒ Β βββ app2
βΒ Β ... | 3 | 1,875 |
How to calculate a div's width and make all their sibilings adopt the biggest size so that they look consistent using CSS? | <p>I want to make several divs containing diferent strings () length inside. I want them to fit to the content, but this pose a problem: one of the various divs will contain a larger string, hence, It will be bigger in width than the others, and when applying a border, it looks awful.</p>
<p>I've been practicing some H... | 3 | 1,362 |
Calculate total amount from different dropdowns selected value | <p>I am trying to calculate the total value of the selected value. In one row I have three options one is to select room that is one only, second is to select any one option and the same with the third column. When I am selecting options, it shows the correct "total Amount". Also on clicking on add room one new row wit... | 3 | 1,996 |
Why does my method return the wrong value? | <p>Even though my method <em>operationsNeeded</em> prints the correct value for my return-int "count1", the very next line it returns something else to my main method. I did not include the rest of my code, if needed I'd gladly provide it.
For example if <em>operationsNeeded</em> is executed 4 times, <em>count1</em> i... | 3 | 1,064 |
$scope.modal remains undefined on $ionicPlatform.ready | <p>I've been looking everywhere for an answer to this problem; I wouldn't mind but it was actually working earlier. I'm trying to open a modal in an Ionic App on load of the app if there is no user access token stored in localStorage.</p>
<p>This is the code I'm working with:</p>
<p>JS</p>
<pre><code>.controller('Le... | 3 | 1,660 |
Why is my layout displayed wrongly on Xperia Z? | <p>I have a problem with layout rendering on Xperia Z. I have 2 buttons on layout which should take the size of its parent. Unfortunately, the phone can not do that. This is my layout code :</p>
<pre><code><RelativeLayout>
android:layout_width="match_parent"
android:layout_height="match_parent">
... | 3 | 1,141 |
database file can't be found | <p>i am trying to use dataBAseHelper class to create database file, but i cant find it on data file (it stills empty). while debugging it, it seems that onCreate method doesn't been called .
i tried different databaseHelper versions,but it didnt work.<br />
you can see my code below (MAinActivity & DataBaseHelper ... | 3 | 1,749 |
Freeing dynamic 2D array not working as expected in C | <p>When I run code like the following:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
int main (void)
{
int i, count = 0x09;
int sizei = 5, sizej = 2;
int **ary = malloc (sizei * sizeof **ary);
for (i = 0; i < sizei; i++) {
*(ary + i) = malloc (sizej * sizeof *(ary + i))... | 3 | 1,098 |
Django class-based view doesn't display query result | <p>I'm trying to improve my <code>Django view</code> with classes in order to get a better script.</p>
<p>I don't why but I don't overcome to display query result with the new syntax. Maybe someone could help me to find a solution ?</p>
<p><strong>This is my view :</strong></p>
<pre><code>class IdentityIndividuForm(... | 3 | 2,560 |
How to display images using foreach statement in asp.net? | <p>To better understand my problem, I will explain first my main goal for the website. My website is a music store which has 6 different brand of guitars(Ibanez, Fender, Gibson, PRS, Musicman and ESP). Now I've created a webpage where it will display the logo for each guitar brands.</p>
<p>Here is the aspx code for di... | 3 | 2,002 |
Oozie custom asynchronous action | <p>I have a problem implementing a custom asynchronous action in Oozie. My class extends from ActionExecutor, and overwrites the methods initActionType, start, end, check, kill and isCompleted.</p>
<p>In the start method, i want to to start a YARN job, that is implemented through my BiohadoopClient class. To make the ... | 3 | 1,655 |
Modify a <p> element in a list, with jQuery | <p>I'm coming back here because I'm not able to do what I want. I have a nav menu, with three 'li' in one 'ul', each containing a <p> element, with the nav name.
I already have a script which hides divs and show the corresponding one, containing project thumbnails. What I would like to do, is to distinguish which nav e... | 3 | 1,403 |
What is the purpose of creating "Mappings" in CloudFormation? | <p>See the code below:</p>
<pre><code>Mappings:
RegionMap:
us-east-1:
bucketname: s3bucketname-us-east-1
us-east-2:
bucketname: s3bucketname-us-east-2
us-west-1:
bucketname: s3bucketname-us-west-1
us-west-2:
bucketname: s3bucketname-us-... | 3 | 1,575 |
RadioGroup not updating bound value | <p>I am using a <code>radiogroup</code> in my form, and I noticed that when I select one of the radio buttons, the value (bound value) is not updated.</p>
<p>Here's a small example:</p>
<pre><code>Ext.create({
xtype: 'container',
renderTo: Ext.getBody(),
items: [{
xtype: 'formpanel',
viewMod... | 3 | 1,247 |
Spring MVC4 Session Management | <p>I am developing a small spring project in which the login page has two type of users admin and staff. on login attempt i want to apply session using spring MVC4 and also wants to open jsp based on the user role(Admin or Staff).
the session has four/five fields like name,id,role,SessionId. i want these information to... | 3 | 1,638 |
Windows Server 2012 IIS8 Performance over Server 2003 IIS6, Sporadic slowness with WebService | <p>We had a few .NET 1.1 projects hosted on IIS6 in Server 2003. I was tasked with porting these projects to .NET 4.0 and host them on new Server 2012 VM's. Ported the code and getting it to run on Server 2012 IIS8 was no problem, but I started seeing performance problems throughout the day and they would over time res... | 3 | 1,100 |
Kendo Grid AJAX Bound Not Updating MVC4 | <p>I am trying to get my grid to update for the opt-in status, but when I hit update no action occurs. I an using ajax binding with a model and entity framework. When I hit cancel it will follow this method. I am not sure what I am missing as everything else functions and compiles. </p>
<p>View </p>
<pre><code><d... | 3 | 1,979 |
Cannot set ImageView by Capture Camera from Intent.createChooser | <p>Im reaching the way how to set image for ImageView from Camera or Gallery without using AlertDialog or handle two buttons for too intent.</p>
<p>So, I found the Intent.createChooser from <a href="https://gist.github.com/Mariovc/f06e70ebe8ca52fbbbe2" rel="nofollow noreferrer">https://gist.github.com/Mariovc/f06e70eb... | 3 | 5,923 |
phonegap - should navigator work in the browser? | <p>I'm just trying to get phonegap/cordova working. Should the Navigator's function be working in the android emulator? When i do the geolocation getcurrentposition function, it doesn't do anything. </p>
<p>When i try the navigator.notification.alert() in the browser and emulator, it doesn't work. It says that navigat... | 3 | 1,285 |
JIT deoptimization, reason="constraint". Why JIT deoptimizes method? | <p>could someone point me in direction which might lead me to get why JIT deoptimizes my loop? (OSR). It looks like it gets compiled once by C1 and then its deoptimized multiple times (I can see tens or maybe hundred logs which starts with <deoptimized...>)</p>
<p>This is the class which contains that important l... | 3 | 1,879 |
Javasript function to change a HTML class of a <div>, render, then continue running the rest of the function code | <p>I am learning programming HTML/CSS/Javascript. I created a webpage and a javascript code to get some information within an Access database then render it to user. It is a big table sometimes.
I just want to update a class and an innerHTML at the beginning and in the end of the code, in order to show to the user: "W... | 3 | 2,209 |
Not receiving PHP contact form submissions | <p>I was wondering if you guys can figure out why I'm not receiving my contact form submissions. I tested it out with my secondary email but still haven't received it. I tried looking for answers here in SO and on Google but can't find any solution. I have 3 questions.</p>
<p>It is my code?
Or did I not properly setu... | 3 | 2,063 |
I get wrong output when using diff -u between two textfiles | <p>When i use "diff -u" between two txt files where I have only changed two lines it tells me that i've changed every line in the file. Here's the output:</p>
<pre><code> Admin@DESKTOP-9A5CFG4 MINGW64 ~/Desktop/singlediff
$ diff -u nutty-pancake.txt nutty-pancake-new.txt
--- nutty-pancake.txt 2016-07-12 16:48:29.465... | 3 | 1,271 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.