title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Try to build auth with Symfony 4 / Apli Platform Token not found 401
<p>I wanna make a REST API with <a href="https://api-platform.com/" rel="nofollow noreferrer">API PLATFORM</a> and Symfony 4.2 I'm just trying to make the user auth but it fail every times.</p> <p>I'll will give you each step so may You see where/why I fail:</p> <p>Create Symfony projet and require all needed : </p> ...
2
3,752
Rank(ifs) in Excel without Sumproduct | VBA vs Functions
<p>I have an issue where I'm trying to do RankIfs and Rank while have both return unique ranks instead of duplicates, and all this while not sorting my data. I'll provide a sample of what I'm currently getting below. I would love to solve this in anyway possible, either VBA or Formula's. However I have many data sheets...
2
1,197
what is Vesting and Cliff for ERC20 Token
<p>Hello I am writing a crowdsale using <a href="https://github.com/OpenZeppelin/zeppelin-solidity" rel="nofollow noreferrer">Zeppelin-Solidity</a> where I need to integrate the token lock function so the <a href="https://theethereum.wiki/w/index.php/ERC20_Token_Standard" rel="nofollow noreferrer">ERC20 tokens</a> can ...
2
1,445
Excel VBA copy range to a new sheet after 1,048,576 rows
<p>So I wrote a fairly simple Macro in VBA that updates a set of variables, then copying and pasting the updated values into a new sheet. The problem is that the volume is getting a bit overwhelming now, thus reaching the 1,048,576 row limit in Excel, causing the code to crash.</p> <p>I would like to update it so that...
2
1,756
Unable to load full data on JSON with jQuery
<p>I'm trying to use Json with struts 2 and jquery, I am able to do it up to a level but I have been stucking in some problem for last two days. Here are the codes and configuration that i've used for this </p> <pre><code>&lt;package name="default" extends="struts-default,json-default" namespace="/"&gt; &lt;r...
2
2,782
Realm - Value not convertible to a number
<p>Hello community :) I implemented lots of good working functionality with firebase -> realm. Now i tried to edit a structure and I am running through the wildest error messages.</p> <p><strong>What is right for sure:</strong></p> <ul> <li><strong>Firebase</strong> sends the data</li> <li>Data is <strong>Converted</...
2
1,773
Tkinter Canvas Update Memory Leak
<p>I'm seeing a memory leak in the code below. I'm creating and processing my data in separate modules, but this isn't causing the leak from what I can see. I believe it's because I am calling a new instance of drawing class each time I change my scale, although I'm not sure how to correct this issue. I've read <a href...
2
1,160
JQGrid Multiselect filter-not able to filter multiple options
<p>Sorry to bother you again. I am facing very critical issue with JQGrid Multiselect filter. When ever I am selecting multiple filter options for a particular column, its returning empty result. See below screenshots. And also I am attaching codes. In the example if I select "SPM" or "T-CRM" individually for "COE" co...
2
12,752
Can not get QuickBooks API accessTokenKey for OAuth 2.0 authorization
<p>I am new in Quickbooks and want to use the API by OAuth 2.0 protocol. For that, I did the following steps according to Quickbooks <a href="https://developer.intuit.com/docs/0100_quickbooks_online/0100_essentials/000000_quickbooks_online_overview" rel="nofollow noreferrer">docs</a>.</p> <ol> <li>I have created an In...
2
1,347
How do I add a event to an ASP.NET control when the page loads?
<p>ASP.Net web forms, .NET 2.0</p> <p>I have a dilemma. I have an aspx page that has a custom control:</p> <pre><code>&lt;def:CustomControl ID="customID" runat="server" /&gt; </code></pre> <p>The custom control can be added multiple times to the ASPX page if certain criteria is met:</p> <pre><code>&lt;asp:Repeater...
2
1,219
Sql express SQL driver connect C++
<p>Greeting guys , I have been looking on the internet on how to connect C++ code with SQLEXPRESS DATABASE, I have read some threads about how to connect but yet... I CAN NOT follow any of them... neither they are working for me.</p> <p>I dont want to use MFC or any kind of C++ methods for DB , I want to do it via raw...
2
1,612
Jasmine createSpyObj service not registering calls
<p>After reading what feels like every single post about Jasmine spies not registering calls, here's my code with that exact problem:</p> <pre><code>describe( 'shared.FormAutocompleteComponent', () =&gt; { let component: FormAutocompleteComponent; let fixture: ComponentFixture&lt;FormAutocompleteComponent&gt;;...
2
1,595
How to set page load time out in django
<p>I tried to set page load time out for Django and I come across two ways and there Problems In the models I have function that use external module function sometimes that module function calculation time may take more then 1 minute so I want to limit that time</p> <ol> <li>with python signal but signal command will ...
2
1,344
QSound error - reference?
<p>I'm trying to play a sound from a QSound object. I can't see why it's not working, looking at previous example</p> <p>This is the header</p> <pre><code>#ifndef ACCESSPANEL_H #define ACCESSPANEL_H #include &lt;QWidget&gt; #include "theislandmain.h" #include &lt;QString&gt; #include &lt;QtMultimedia/QSound&gt; nam...
2
1,627
Getting error in apche Pig when running over yarn "org.apache.hadoop.ipc.Client - Retrying connect to server: tasktracker3/10.201.2.169:50000"
<p>I am running Apache Pig 0.11.2 with Hadoop 2.2.0.</p> <p>Most simple jobs that I run in Pig work perfectly fine.</p> <p>However, whenever I try to use <strong>GROUP BY</strong> on a large dataset, or the <strong>LIMIT</strong> operator, I get these connection errors:</p> <blockquote> <p>2013-12-18 11:21:28,400 ...
2
1,433
Get number of posts in a topic PHP
<p>How do I get to display the number of posts on a topic like a forum. I used this... (how very noobish):</p> <pre><code>function numberofposts($n) { $sql = "SELECT * FROM posts WHERE topic_id = '" . $n . "'"; $result = mysql_query($sql) or die(mysql_error()); $count = mysql_num_row...
2
1,055
React Hooks/Next.js and Multer: 401 Unauthorized, Error while uploading image to MongoDB Atlas
<p>I've tried numerous configurations and been pulling my hair out for a couple days now. However no matter what I do when I try to hit <code>/users/uploadmulter</code> I get an authorized error. </p> <p>On mongoDB atlas I've tried creating a new collection.</p> <p>Moving the route declaration in my users file (that ...
2
4,498
CakePHP - TinyMceHelper helper error: Method TinyMceHelper::__name does not exist
<p>So I'm wanting to implement the TinyMce helper. I've followed instructions from the cakephp bakery but am still getting a error. </p> <p>This is the helpers array in my project controller:</p> <pre><code>var $helpers = array('Form', 'Time', 'Crumb', 'Text', 'Tinymce'); </code></pre> <p>This is the tinymce helper ...
2
1,106
Elixir/ExUnit: how to test functions with system calls most elegantly?
<h1>Situation</h1> <p>Normally, unit tests like ExUnit should be self-contained with input, function call and desired output, so that the test can run on any system and always tests correctly regardless of environment.</p> <p>On the other side, if your application does syscalls, for example with Elixir's <code>System...
2
1,339
TensorBoard doesn't update scalars for TensorFlow Slim
<p>TensorBoard runs, and I can see plots, however the Losses do not appear to update. I can print the batch losses at each step, I am uncertain why TensorBoard is not reflecting the losses.</p> <p><a href="https://i.stack.imgur.com/CyUKi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CyUKi.png" alt...
2
2,493
with-param not working in apply-templates
<p>I am currently trying to generate the creation SQL for my tables based off of a Visio diagram. I am doing this using the approach found here.</p> <p><a href="http://www.dougboude.com/blog/1/2008/11/SQL-Forward-Engineering-with-Visio-2003-Professional.cfm" rel="nofollow noreferrer">http://www.dougboude.com/blog/1/20...
2
1,264
How can I fire integration tests separately using failsafe-plugin?
<p>I cannot run integration tests, but only unit tests.</p> <p>Here is my <code>Maven</code> config (see code below). It uses two plugins. One of them is <code>maven-failsafe-plugin</code> and the second one is <code>maven-surefire-plugin</code>.</p> <pre><code>&lt;properties&gt; &lt;project.build.sourceEncoding&...
2
1,297
Umbraco 8 and IoC
<p>I installed Umbraco 8.1.3 and i'm trying to configure dependecy injection following this <a href="https://our.umbraco.com/forum/umbraco-8/95955-umbraco-8-and-ioc" rel="nofollow noreferrer">post</a>, but not work. My code is:</p> <p>CONTROLLER:</p> <pre><code>public class ContactController : UmbracoApiController {...
2
2,208
Connection was refused by other side: 10061: No connection could be made because the target machine actively refused it
<p>My steps:</p> <ol> <li>Build image <code>docker build . -t scrapy</code></li> <li>Run a container <code>docker run -it -p 8050:8050 --rm scrapy</code></li> <li>In container run scrapy project: <code>scrapy crawl foobar -o allobjects.json</code></li> </ol> <p>This works locally, but on my production server I get erro...
2
16,033
Cordova app ajax call to localhost fails. ::ERR_CONNECTION_REFUSED
<p>I've got an node.js (express) webapp running on localhost:3000. I am now trying to develop a mobile app using cordova.</p> <p>I've got a route defined in my express app 'localhost:3000/tweets' which when called gets some tweets using twitter API and send them back as json object. Everythinngs works very fine using ...
2
1,549
WPF Dynamic UserControl Style At Runtime
<p>I have a user control with a togglebutton and a couple of textblocks/labels. I have two styles in my xaml for the toggle button style. I add these usercontrols dynamically when my form loads. I want to be able to apply different styles at runtime in my application. I can't quite figure out how to do this. Here ...
2
2,223
Dynamically adding input text field with label in place of drop down menu
<p>I want to replace drop down menu when a specific option selected from a drop down menu. </p> <p>Here<a href="https://i.stack.imgur.com/59WFl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/59WFl.png" alt="enter image description here"></a> is drop down menu </p> <p>When ever a user select ...
2
1,426
tsplot out of bounds error in Python seaborn
<p>i'm trying to plot time series data as points in seaborn, colored by condition. i tried the following:</p> <pre><code>import matplotlib import matplotlib.pylab as plt import seaborn as sns import pandas df = pandas.DataFrame({"t": [0, 1], "y": [1, 1], "c": ["A", "B"]})...
2
1,082
How to connect to backend server using API in angularjs ionic
<p>I have been trying to connect to the backend server using $http requests in ionic angularjs. I want to register a user using the API. Can someone tell me whats wrong with my code? This is my controller.js</p> <pre><code>angular.module('app.Auth', []) .factory('Auth', ['$q', '$http', '$localStorage', 'URL', functio...
2
1,263
java - sort ascending
<p>well my java project is nearly finished, but having one more part to deal with, sorting. I have to use sorting in ascending order based on an ID number of an employee. I'm not sure what kind of sort to use, and where to implement it. Create a new class for it? Let me show you my tester code. I have faculty/parti...
2
2,761
OpenCV : 2d - 3d point correspondence using chessboard
<p>I'm facing a problem when I try to find the correspondences between a 3D point located on my chessboard and its position on the image taken by the camera.</p> <p>Here is what I do:</p> <p>I use the method </p> <pre><code>corners = cv.FindChessboardCorners(frameGray, patternSize, cv.CV_CALIB_CB_ADAPTIVE_THRESH + c...
2
1,326
How to iterate a JsonElement with unknown keys on Kotlin using kotlinx?
<p>I'm new on Kotlin and I'm trying parse a Json file to take your values. The first problem is that I don't know the keys and the second problem is that I don't know use Kotlin perfectely. Let me explain the case.</p> <p>This is a Json format that I getting from web:</p> <pre><code>{ "Meta Data": { "1. I...
2
1,039
String comparison in Cassandra Select query is not working
<pre><code>select * from customer where cust_city = 'Mumbai' allow filtering; </code></pre> <p>when I run this query, the result shows only the column names, Instead of that if I give an integer value in where clause, I'm getting the output.</p> <pre><code>select * from customer where payment_amt=7000 allow filtering...
2
4,406
Quartz scheduler with tomcat 8 and spring mvc creates multiple threads and fails to stop when tomcat is stopped
<p>I have a java spring mvc web application which use Spring 3.2 and Tomcat 8. I use quartz 2.2 to schedule a task. My controller class is:</p> <pre><code>@Controller public class StatusController implements Job { @Autowired WebContentDefinitionService webContentDefinitionService; public void execute(Jo...
2
2,710
search in toolbar vs actionbar
<p><strong>Update:</strong></p> <p>I am updating this post to make it easier to follow. I just updated my app to use Toolbar vs action bar. I have an activity MainDrawer2 which holds all the fragments loaded from the nav drawer. At the top I have a toolbar that I inflate with this menu:</p> <pre><code>&lt;menu xmlns:...
2
2,748
No such table - error inserting values in SQLite Android
<p>I want to develop an application in which i need to use SQLite database in Android. Below is the code shown which is implementing the database and all its operations my application requires with random data(just to implement the logic successfully first). </p> <p>This code is written in DBHelperDisplay.java w...
2
3,042
MongoDb insert via Node.js Native Driver not inserting
<p>I'm trying to get some data to save into MongoDb. I followed the following example beforehand and verified that it works, however now that I'm trying to write my own test app using this "format" it's not working. MongoDb does not throw any errors and I can even retrieve the doc _id from the insert callback. However ...
2
1,055
Configuring WebSphere 8 SSL (HTTPS Between Apps)
<p>I have two web apps that I am installing in WAS 8, and they need to communicate with one another using HTTPS (This may not be the best way to handle communication in WAS, but these apps are provided as is and I typically run them in Tomcat which causes no problems).</p> <p>In Tomcat, I simply set up a certificate f...
2
2,063
Get Element after mouseup
<p>I have a html page as below :</p> <pre><code>&lt;table cellpadding="1" cellspacing="1" border="1"&gt; &lt;tr&gt; &lt;td id="abc"&gt; &lt;div style="height: 23px; overflow: hidden; position: relative; height: 70px; width: 70px; background-color: red" valign="to...
2
1,622
Nuget install of of Entity Framework Core SQL Server in VS for OSX causing build errors
<p>I am having an issue when installing <code>Entity Framework Core MSSQL</code> in Visual Studio 2017 for OSX.</p> <p>I run the below command and the package install correctly, but a few seconds later I get red (build?) errors showing up in all <code>cs</code> files.</p> <p>What can I do to clear these errors?</p> ...
2
1,113
Looping Through PDF Files
<p>I have a working VBA script that pulls specific form fields from a specified PDF file into a spreadsheet. However I have several hundred PDFs that I need to do this for, so I'd like to loop through files in a directory and perform the same action.</p> <p>Conveniently I have an old VBA script that loops through Word...
2
1,279
AWS Cloudwatch Metric Alarm not triggering after first time
<p>I have a alarm looking for <code>error</code> message in logs and it does trigger alarm state. But it doesn't get reset and remains in <code>In Alarm</code> state. I have the alarm action as SNS topic which in turn triggers email. So basically after first error I don't see any subsequent email. What's going wrong wi...
2
1,787
Bash script output not going to stdout
<p>I have a build process, kicked off by <code>Make</code>, that executes a lot of child scripts.</p> <p>A couple of these child scripts require <code>root privileges</code>, so instead of running everything as <code>root</code>, or everything as <code>sudo</code>, I'm trying to only execute the scripts that need to b...
2
2,078
JWT Authentication fails: Bad Credentials
<p>I am using <code>Spring boot 2.1.3</code> with JWT authentication.</p> <p>the reference link is <a href="https://www.callicoder.com/spring-boot-spring-security-jwt-mysql-react-app-part-2/" rel="nofollow noreferrer">https://www.callicoder.com/spring-boot-spring-security-jwt-mysql-react-app-part-2/</a></p> <pre><cod...
2
5,846
Phone type and Email type not working?
<p>The phone type and Email type in my project has some problem.I am using 2.1 platform, there was no problem in my project before adding the Phone type and the Email type, after using these Phone type and Email type when I try to run the project it open a message box and shows application stopped and force close. My x...
2
2,365
How to remove the arrow in the Google infoBox?
<p>Hi I am going to use infoBox instead of infoWindow and InfoBubble. I can remove the arrow of the infoBubble with the property <strong><em>arrowSize: 0</em></strong>..... <strong>But I cant remove the arrow of my infoBox.</strong> Here is my code...</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;S...
2
2,675
Post request Manytomany field DRF with postman
<p>Objective: Creating a new entry in database from Postman using the &quot;POST&quot;.</p> <p>I am trying to send the data from Postman and I am using nested serializing. I have changed the create method i have shared the snippet below. Also, I tried this <a href="https://stackoverflow.com/questions/31276326/drf-post-...
2
1,457
Calling javascript from sifr replaced anchor tags?
<p>I'm using sIFR to replace my navigation text with a new font:</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;about&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;reel&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;contact&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;archive&lt;/a&gt;&...
2
3,966
Absolute positioning causing horizontal scroll bars with image
<p>I have a situation where I have an image where I need it to be able to be "out of it's bounds"; works fine on larger screens, but causes horizontal scroll bars on smaller screens.</p> <p>I have the image set to <code>position: absolute</code>, so thought this wouldn't cause this issue?</p> <p>I have tried using <c...
2
1,304
Devise, cucumber, and capybara not authenticating on JSON request
<p>I am using backbone.js with rails. My controller accepts and returns JSON. I had all my tests working fine until I added in devise authentication. I cannot get cucumber to stay authenticated.</p> <p>I have tried everything mentioned on:</p> <ul> <li><a href="https://github.com/plataformatec/devise/wiki/How-To:-...
2
1,198
Allure-report empty when allure-results have multiple result folders
<p>The allure-results folders is in the following structure.</p> <pre><code>allure-results/ |-- assertions1 | |-- 2f429779-3c86-4958-8e8b-e9a03a25cd20-attachment.txt | |-- 312890b7-fd56-4c65-bee9-14d76ff4a58e-testsuite.xml | |-- 3f385845-14cc-4411-86c2-06e35a76b2ad-attachment.txt | |-- 59f04042-8f20-4c11-b611-...
2
1,119
Android Application keeps crashing
<p>I want to make an application which on login shows a "home" activity which has a navigation bar. I used android studios navigation drawer template and edited it to switch between fragments, but now the application is crashing on login. Any help on what am I doing wrong is appreciated.</p> <p>P.S. I am an amateur so...
2
4,213
Using columns from junction table in "where" clause in sequelize?
<p>I want to perform this query in sequelize models:</p> <pre><code>SELECT Cou.country_id,cou.country_name, Sta.state_id, Sta.state_name, Dis.district_id, Dis.district_name,Cit.city_id, Cit.city_name,Loc.location_id,Loc.location_name,Sub_Loc.sub_location_id,Sub_Loc.sub_location_name,Prop.property_id,Prop.property_name...
2
1,546
mongoose updateOne with upsert is not working
<pre><code>let cart = req.body.params.cart // array of objects that needs to be updated if exists in db, if not upsert it. let userid = req.body.params.uid for (let i = 0; i &lt; cart.length; i++) { Cart.updateOne({ user: userid, 'cart.product': cart[i].product._id }, { $set: { ...
2
2,295
Turn image black and white and back to normal once a specified element is hovered using jQuery
<p>The title pretty much says it all. I went through a number of jQuery plugins in order to turn an image black and white. But none of them provide the function that I have in mind. I would like the image to turn back into a coloured one when a specified element is hovered.</p> <p>Here's the plugin I currently use:</p...
2
4,168
Is std::mutex trivially destructible?
<p>I have a function <code>foo()</code> protected by a mutex <code>m</code> which is defined as a local static variable of <code>foo()</code>. I'd like to know whether it's safe to call <code>foo()</code> in the destructor of an object <code>bar</code> with static storage duration:</p> <pre><code>// foo.h void foo(); ...
2
1,501
Add google map in html using canvas tag
<p>I have a simple drawing canvas that can allow a user to draw, edit, clear and save that drawing. whenever user refreshes his page that saved drawing will appear on the screen until and unless user deletes that image I have this code which is perfectly fine. </p> <p><div class="snippet" data-lang="js" data-hide="fal...
2
1,534
CollapsingToolbarLayout center TextView in Toolbar
<p>I want toolbar_title layout center in toolbar, but itlooks like there is some margin on left, if I remove CollapsingToolbarLayout it is ok. Inorder to center toolbar_title text I set toolbar_title's margin right manualy in code, but the only after the fragment resumed I toolbar_title.getX() can get the correct value...
2
1,167
Creating Content Item via Code in Orchard CMS
<p>I need to create content item using code. i know there is built in way but i want my own functionality in module. I tried the code but it gives me error. All related code is given below. Content part name is "Course" and Content Item name is "Courses"</p> <p>"Object reference not set to an instance of an object."</...
2
1,478
Set ImageView ImageResource() equal to value of column from database
<p>fellow programmers. </p> <p>I am developing an app displaying information about fishes in Norway. I have a SQLite database up and running with the following structure:</p> <pre><code>CREATE TABLE fisk(image TEXT, id INTEGER PRIMARY KEY AUTOINCREMENT, navn TEXT, familie TEXT, latin TEXT, engelsk TEXT, habitat TEXT...
2
6,214
How to customise user profile fields in allauth after signup
<p>I used allauth to signup function in my web application. In the socialaccount signup is collected from users e-mail, password, first and last name. In the sign in form I just collect e-mail and password from users.</p> <p>Once logged, my app redirects the user to a profile page where is supposed to him/her update h...
2
2,139
Android Espresso: "No test were found" , "Process crashed"
<p>When testing my Android app with Espresso, I noticed that running an AndroidTest configured with <code>All in Module</code> finds no tests, while running <code>All in Package</code> succeeds. </p> <p>I created the following reproducible case:</p> <ul> <li>Use wizard to create new clean application with minSdk 8 an...
2
1,810
Where do I find the org.springframework.security.oauth2.provider.DefaultOAuth2RequestFactory class?
<p>Does anyone know what Maven dependency contains the class org.springframework.security.oauth2.provider.DefaultOAuth2RequestFactory ? I’m using Spring 3.2.11.RELEASE with spring-security-oauth2 (v 2.0.9.RELEASE). I’m having trouble deploying my OAuth application. I get the below exception …</p> <pre><code>nested ...
2
4,912
Why does "NameError: name not defined" occur when executing Python file externally?
<p>I have multiprocessing code that runs a function to retrieve items from an API:</p> <pre><code>import os import pandas as pd from multiprocessing import Pool from datetime import timedelta, date from external_functions import get_api_item #separate .py file with a function def date_range(start_date, end_date): ...
2
1,158
Calculating vorticity for multiple vertical levels in MetPy
<p>I'm trying to calculate vorticity in MetPy for multiple (consecutive) vertical levels. When I try to calculate it for a single level, everything works fine.</p> <p>Here's the code; I've used the example for cross sections from <a href="https://unidata.github.io/MetPy/latest/examples/cross_section.html#sphx-glr-exam...
2
1,372
Django custom user authentication NoneType error
<p>I am trying to make a simple user registration form for a django site. Here is the goods</p> <p><strong>models.py</strong></p> <pre><code>from django.db import models from django import forms from django.conf import settings from taggit.managers import TaggableManager from django.contrib.auth.models import BaseUse...
2
1,863
Where is sockaddr_in in Windows RT?
<p>According to MSDN (<a href="http://msdn.microsoft.com/en-us/library/zx63b042.aspx" rel="nofollow">VS2012 version</a>), <code>sockaddr_in</code> is defined in <code>winsock2.h</code>. There are no exceptions stated (similar to what we see with Windows Phone and some API calls). Yet when I try to compile a file which ...
2
1,431
How can I modify a variable and it's corresponding dimension in a netcdf
<p>I am running an idealized experiment with a atmospheric model with output in the format of netcdf. But the netcdf file header does not describe the variable and and dimension clearly. for example :</p> <pre><code>netcdf qc3d { dimensions: Time = UNLIMITED ; // (1453 currently) bottom_top = 45 ; south_no...
2
1,206
org-mode can't edit C source code
<p>When I use emacs's org-mode to edit a C program, that is when I edit the below segment:</p> <pre><code>#+begin_src c #define MAX 100 #+end_src </code></pre> <p>and after I call the function 'org-edit-src-code' to edit the C code in a new buffer, there is an error:</p> <blockquote> <p>Language mode `c-mode' fail...
2
1,592
UICollectionViewCells dequeued in wrong order
<p>I am hooking up a standard UICollectionView with custom cells. </p> <p>Long story short, when I reload the collectionView, the cells are not dequeued in the order that they were created in.</p> <p>EX. The cell for indexPath.row 5 is given back for indexPath.row 0.</p> <p>This causes a flash when I reload the coll...
2
1,240
Castle Windsor Factory implementation
<p>I am using a Typed Factory supplied by Windsor Castle DI container. I am quite new to DI containers, so am after a bit of guidance with my solution.</p> <p>Here is my implementation:</p> <p>*updated registration &amp; DB call</p> <pre><code>public interface IAgent { } public class Agent : IAgent { } p...
2
1,239
how to count of datalist item (which is an image)
<p>i want to count items image (ImageUploaded) in Datalist in javascript how can i do that.</p> <pre><code> &lt;asp:DataList ID="DataListUploadedPhotos" ClientIDMode="Static" runat="server" RepeatDirection="Horizontal" RepeatColumns="3" CellPadding="10" CellSpacing="10" OnItemDataBound="DataListUploadedPhotos_ItemData...
2
1,736
Unexpected content at the end of chunk - what builds the corrupt stream?
<p>I am hitting an endpoint that returns roughly 900k of XML. Every now and again (less than 1 in 5000 on today's tests) I get a MalformedChunkCodingException </p> <p>This is happening from a fairly old webapp (~10 years), built on Spring 3. I switched to using RestTemplate instead of httpclient directly, but that h...
2
1,240
MPMoviePlayerController, playing in background with audio and video (detach video layer?)
<p>I'm having some issues getting a MPMoviePlayerController playing both <strong>audio and video</strong> to continue once the screen locks/ app is backgrounded. </p> <p>Here's what I've tried:</p> <p>"Required background modes" is an array with the first entry: [Item 0: App Plays Audio]. </p> <p>Also, my view cont...
2
1,168
Getting lots of linker errors when changed the Qt projects Build directory
<p>I am new to Qt, I created a GUI application in Qt and everything was fine, until I changed the Build directory from Projects section in <code>QtCreator</code>. Now I get many linker errors which I am clueless on how to resolve them.</p> <p>I tried reverting back to the previous build folder, but it failed again. I ...
2
7,869
Adding views programmatically with a xml layout
<p>I want to programmatically add a view to ScrollView that is apart of a Fragment layout.</p> <p>I have attempeted the following code:</p> <pre><code>public class MessageDetail extends Fragment { View layout; TextView messageText; Conversation conversation; List&lt;Message&gt; messages; LayoutIn...
2
1,525
how can I AJAX form authentication?
<p>I have a login screen with username and password credentials that are validated throught a php script. once a user enters their username and password and hits submit. authenticate.php does an LDAP bind and if the user's credentials are legit they are redirected to say www.siteA.com, if the credentials are false an e...
2
1,840
Yii2 user model with relational tables
<p>I'm new to Yii and I have problem with its User and login system . I should use 3 tables for login check but when I use custom query I face </p> <p><code>"Argument 1 passed to yii\web\User::login() must implement interface yii\web\IdentityInterface, ActiveQuery given"</code></p> <p>my tables are like :</p> <ul> <...
2
2,701
GetControllerMapping returning an empty collection in WebApi2
<p>I am working on creating a REST API.</p> <p>I put something simple together that works using WebApi.</p> <p>Then I discovered that I couldn't call it from outside of my domain, so I looked up what to do about that and found <a href="http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web...
2
1,061
Using Scheme, how to keep a variable's value during recursive calls (nested lists)?
<p>I'm trying to remove the last occurrence of a value from a list, and my program is failing during the recursive call with nested lists.</p> <p>I have a function that counts the number of occurrences of the symbol:</p> <pre><code>(define (countOccurrences lst elem count) (cond [(empty? lst) count] ...
2
1,214
Lexical analyzer (java) for HTML Markdown source code
<p>I do not even know where to begin writing the character-by-character lexical analyzer. I wrote BNF grammar rules for a Markdown language (specifically, HTML) based on rules and specifics I was given, so none should need to be added. I now have to design and implement a character-by-character lexical analyzer that pa...
2
1,758
google-api-php-client connect with key.p12
<p>I'm able to add event to my google calendar with an API keys and OAuth 2.0 client IDs but I want to do this without the authorization screen of google.</p> <p>I followed the information found on this post:</p> <p>stackoverflow.com/questions/8995451/how-do-i-connect-to-the-google-calendar-api-without-the-oauth-auth...
2
1,089
DESede (3DES) Encryption in RAILO CFML
<p>I've been trying for many days to try and solve this issue.</p> <p>A 3rd Party webservice requires me to send encrypted data using 3DES with ECB and PKCS7padding - They're using .NET</p> <p>The encrypt function within railo CFML is limited to DESede without any further options (i.e. defaults are used for cipher mo...
2
1,080
Content Under Sliding Drawer - Android
<p>I'm having trouble getting this button to only appear under the drawer. I'm using a package that I found online and not the sliding drawer that comes with the SDK.</p> <p>Here is the main.xml layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.an...
2
3,660
PyTorch memory leak on loss.backward on both gpu as well as cpu
<p>I've tried everything. gc.collect, torch.cuda.empty_cache, deleting every possible tensor and variable as soon as it is used, setting batch size to 1, nothing seems to work.</p> <p>I'm working on text to code generation problem and utilizing the code from this repository : <a href="https://github.com/pcyin/tranX" re...
2
6,952
How to loop over Firestore array values in Cloud Function
<p>I'm stuck at trying to get a cloud function to loop over the values of an array in my Cloud Firestore. I have searched stack overflow but I couldn't find a solution yet. My Firestore structure looks as follows:</p> <p><img src="https://github.com/winckles/rooster/blob/master/Schermafbeelding%202020-02-06%20om%2010....
2
1,329
how to populate v-text-field with json data
<p>I have a table populated with json data. There is a column 'edit' in every row. When I click on edit a dialog opens up with a form. I want to edit the table data in the form. The value of input fields of the form should show the json data. But it's not showing.</p> <p>I tried fill up the form using v-model="editedI...
2
1,120
Inline edit form in Angular.Js
<p>I am trying to make a small app with items pulled from a json source and i want a form to edit each element. Each element has several attributes, name, id, description. </p> <p>Here is the example but the edit form does nothing at the moment. I will later use the example to store the data in a database.</p> <p>I a...
2
1,357
hibernate 2nd level cache hits=0 for two successive identical queries
<p>Got a problem setting up 2nd level cache for hibernate for my Spring+Hibernate project or I don't understand how it works.</p> <p>I have one table roughly defined as this</p> <pre><code>@Entity @Cache(usage=CacheConcurrencyStrategy.READ_ONLY, region="testCache") public class TestClass extends MSId { @Transien...
2
1,455
How to calculate and add an FDR column to file in python
<p>I have the following input file (Input.xls):</p> <pre> Mouse No_neigh_mouse Human No_neigh_hum Intersection TotalGeneTested Gm20645 1 lnc3 2 1 8 Gm20645 1 lnc2 1 0 8 Gm20645 1 lnc1 2 1 8 Gm26549 2 lnc3 2 1 8 Gm26549 2 lnc2 1 1 8 Gm26549 2 lnc1 2 1 8 <...
2
1,067
How do I add a 'Save' button to an Editor Grid Panel in Ext JS?
<p>I need to add a 'Save' button to my Editor grid panel. Everything I have tried does not work. Thanks for your help. Here is my code.</p> <pre><code>var iLineItemGrid = new Ext.grid.EditorGridPanel({ id: 'iLineItemStore', store: iLineItemStore, cm: iLineItemCM, cls: 'iLineItemGrid', width: 'auto'...
2
1,403
AspNet Core 2 No service for type 'Microsoft.AspNetCore.Http.HttpContext' sessions issue
<p>im using AspNet Core 2 to build an app, im having problems with sessions, can you please help?</p> <p>exact error:</p> <p><strong>No service for type 'Microsoft.AspNetCore.Http.HttpContext' has been registered.</strong></p> <p>im using <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/app-state?v...
2
1,137
aws ec2 public ip not at all working
<p>I am very new to AWS. successfully launched EC2 windows 2012 r2 instance and i am able to login through remote desktop service. installed a nodejs app and it is successfully running on localhost:80. but, the problem is with public ip. i tried a lot of solutions posted around like adding inbound security rules and et...
2
1,346
404 on Properly mapped SpringBoot RestController
<p>I'm experiencing a little issue that is wasting a lot of my time...</p> <p>I've created, for demonstration purposes, a simple SpringBoot application using the Eclipse New > Spring Starter Project.</p> <p>Here is my Application class:</p> <pre><code>package it.asirchia; //All needed imports @SpringBootApplicatio...
2
1,173
No Launcher Activity Found Android
<p>I got the Launcher tag, but my app still does not launching on compile from eclipse, what is the problem?</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myproject.test" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-permission android:name="and...
2
1,181
WPF UI hangs after a WaitOne, dispatcher keeps processing other messages and does not return control
<p>For the past few weeks my team and I have been scratching our heads with a UI hang problem. From the user perspective, very sporadically and after many hours of use, one window in our UI becomes unresponsive, i.e. hangs. Typically, you would expect a deadlock in the UI thread but this is not the case here. We have c...
2
3,228
Assign values to Angular-ui modal
<p>I think i have some pretty big holes in my code, as when the modal is appearing, the content from the table (which when you click on a row produces the modal), is not populating the input boxes I have inside of the modal. I think I'm tackling the situation in the wrong way and some direction would be fantastic.</p> ...
2
2,970
With Minitest+Guard+Spork, all test suites and support files are being reloaded on each run
<p>I'm running into a problem where everything in my test setup, including Spork's prefork block, is being reloaded and invoked on each run. It is taking 5-8 seconds for a test to fire off after guard picks up a change even though this is a new project so there are minimal tests and I even have an SSD.</p> <p>Before I...
2
2,906
Posting a null validation from drop down list MVC
<p>I am working to develop an application asp.net MVC that has a text box and two drop down lists. Users can input a numeric value and choose from the list from - to to process . My problem is trying to validate the drop down list as I tried to use the required validation but didn't work. I also tried to check on the d...
2
2,732
ffmpeg and pulse audio creating buzzy speech
<p>I'm attempting to record video and audio from an ec2 instance (Ubuntu 16.04), using xvfb and pulse audio. Everything works fine, except that the output file contains "buzzy" speech (not sure if this is what "clipping" is?). This happens using either aac or mp3 audio codecs.</p> <p>Sample audio file: <a href="http:...
2
4,612