title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
regex to ignore html tags but start at a word boundry with varied end anchors | <p><strong>Let me start off by saying I need a regex only solution.</strong></p>
<p>I'm trying to pull a description from html files with a 3rd program program. <strong>This program is java based, but I cannot manipulate the source code in any way!</strong>. The program I submit the regex into already has another rege... | 2 | 1,104 |
Spring.net is not looking for definition in the parent container | <p>In my project I have 2 configurations for spring, one in code and one in xml. The code context will load the mock objects defined in the MockConfigurations class. The xml config is defined in the app.config. I’m setting the xml config as parent of the code config.</p>
<pre><code>public static IApplicationContext Ge... | 2 | 1,246 |
How to use vtkOBBTree and IntersectWithLine to find the intersection of a line and a PolyDataFilter in python using vtk? | <p>I have an oriented cylinder generated with <code>vtkCylinderSource</code> and some transformations are applied on it to get the orientation that i want. Here is the code for creating this oriented-cylinder:</p>
<pre><code>def cylinder_object(startPoint, endPoint, radius, my_color="DarkRed", opacity=1):
colors =... | 2 | 1,740 |
Type was not found or was not a compile-time constant: XML | <p>well I instance my .fla with a class test.as so, when I try to declare a var like a XML it launch this error Type was not found or was not a compile-time constant: XML. I dont understand why, if I was loaded xml and its so reall easy but this time i dont know what happen, any idea?? </p>
<pre><code>///////////////... | 2 | 7,646 |
Moving not empty directory recursively using Java NIO.2 FileVisitor and Files.walkFileTree(...) | <p>I saw a lot of examples of how to copy or delete files recursively by using Java NIO.2. For example, this is how to copy a folder with all its contents:</p>
<pre><code>/**
* Copies a folder with all contents recursively. Class implements
* {@code FileVisitor} interface.
* @author Ernestas Gruodis
*/
public sta... | 2 | 2,252 |
Changing target SDK from 28 to 29 results in BLE scan not working | <p>I am working on Android app which need to be connected to BLE devices.
The app works as expected but now when I changes the target SDK to 29 (which was previously API 28) the app stops getting any scan results.
At API level 28 when the app starts I check the permission. If not granted I ask for it and then start sca... | 2 | 1,067 |
in_array not working codeigniter | <p>I cannot get my in_array to work on my library both functions are on same library. I will not let me do </p>
<p><code>$this->user_auth->hasPermission('modify', 'folder/controller-name');</code></p>
<p>By using the function above I can check if has permission to modify.</p>
<p>On my library function hasPerm... | 2 | 2,034 |
Count numberOfRowsInSection according section | <p>I am creating an Ipad application which will act as wine list.</p>
<p>My wine list is organized in section, every section possesses a different number of row.</p>
<p>My problem is that I do not manage to count the number of row according the sections.</p>
<p>I parse this Json File: </p>
<pre><code> {"posts":[{... | 2 | 1,317 |
Fabric.js New Class from existing Shape fromObject Error | <p>In my continuing saga of trying to make a custom class in Fabric.js that can be saved and loaded. I'm trying to extend the Line and Circle class and add some custom attributes... But I'm running to a problem when attempting to load the data. It saves ok, my simple 'name' attribute is there, but when attempting to lo... | 2 | 2,758 |
How can I access my docker asp.net core application? | <p>I have a ASP.NET Core 2.2./PostgreSQL composed docker solution that seems to be working fine amongst the containers.</p>
<p>I have followed a hybrid of the official <a href="https://docs.docker.com/compose/aspnet-mssql-compose/" rel="nofollow noreferrer">Quickstart: Compose and ASP.NET Core with SQL Server</a> and ... | 2 | 2,625 |
Hibernate 3.2 and apache dbcp eats postgres connections | <p>I have a simple entity bean and use hibernate 3.2.5 to persist it to postgres, prod will be pg 8.4, while I currently develop on 9.1. I use apache commons dbcp 1.4 (and commons pool 1.5.4) a public class DBCPConnectionProvider implements ConnectionProvider as googled from the web <a href="http://wiki.apache.org/comm... | 2 | 1,164 |
Best way of code sign using Fastlane on CI | <p>Before you get mad at my question, I know there is not <strong><em>one best way</em></strong> to setup Fastlane, but I would like to understand better the different approaches that you can take when you start using it.</p>
<p>I am setting up Fastlane for a project. Now I only have it on my local machine but I would... | 2 | 1,606 |
Angular 2 pipe/filter with component variable | <p>i have app that shows events from this and next week. Weeks are switched by two buttons. I need filter/pipe that will show only events from current active week. I had this filter in Angular 1 and everything was working but in An 2 I am not able to get this filter work. See code:</p>
<pre><code> @Page({
templ... | 2 | 1,272 |
Edsim51 Always Invalid Label Error | <p>I'm using <a href="http://www.edsim51.com/" rel="nofollow">EDSIM51</a> on MacOS. But I'm always getting <strong>Invalid Label - **** is keyword</strong> errors. Read documentation (<em>User's Guide</em> and <em>Examples</em> pages) but still no idea where I'm making mistake. I've downloaded example codes from Edsim'... | 2 | 1,862 |
Moving CardView below the NavigationView | <p>I'm looking to move the cardview down so it's not blocked by the navigation bar. Here's a screenshot to show what problem I currently have: <a href="https://i.stack.imgur.com/Btu9Q.png" rel="nofollow noreferrer">Nav-Bar Covering Cardview</a>. Any suggestions would be appreciated! </p>
<p>Here is my activity_recycle... | 2 | 2,984 |
web3 - VM Exception while processing transaction: out of gas | <p>I have this contract:</p>
<pre><code>// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract CampaignFactory {
address[] public deployedCampaigns;
function createCampaign(uint minimum) public {
address newCampaign = address(new Campaign(minimum, msg.sender));
deployedCampaigns.push... | 2 | 1,331 |
Document won't save after selecting value combobox | <p>I have an Xpage with 3 comboboxes related to each other.
In the onchange event of Combobox1 I have a partial refresh of combobox2(since the key of the dblookup of combobox2 is the value of combobox1). As server option I have "Do not validate or update data"
Same for combobox2 and 3.
Then I have a button that will p... | 2 | 3,447 |
Rainfall program not accepted in codeLab | <p>I am working on an assignment from MyProrammingLab:
Write a RainFall class that has the following field:</p>
<p>• an array of doubles that stores the rainfall for each of the 12 months of
the year (where the first index corresponds with January, the second with
February, etc.)</p>
<p>The class should also hav... | 2 | 1,293 |
@RequestParam return null value from Postman | <p>I am trying to make a login Restful API using Spring Boot. I am using <strong>Postman</strong> to test API. But When I am passing email and password through postman it returns null parameters. Because of that, my other functionalities are not working. Here is my code:</p>
<p><strong>LoginController</strong></p>
<pre... | 2 | 1,117 |
How can I change default date format of Javascript? | <p>I have this code to change the date on the itinerary but it appears like this: <strong>Sat Apr 15 2017 00:00:00 GMT-0500 (CDT)</strong> I don't need the "time" and the next info (00:00:00 GMT-0500 (CDT)), I want the date display like this: <strong>Saturday, April 15 2017</strong></p>
<p>Here is my code:</p>
<pre><... | 2 | 2,625 |
Binding Validation.ErrorTemplate in UserControl | <p>I have a user control that has a textbox where its text property is bound to a dependency property called SelectedValue. When the user enters text, that value is validated against another DP called ItemsSource to see if it in there. If not, I throws an error. Everything works - the TB in the UC has the default re... | 2 | 1,547 |
Admin LTE dashboard with React | <p>I am using ADMIN LTE dashboard with my React Application. I have added certain tags in my Sidebar component along with font-awesome icons. However when I click on the link, the font awesome icons are refreshed(it re-runs the scripts in index.html).</p>
<p>Following is the code of index.html</p>
<pre><code> <!... | 2 | 1,462 |
How to enable the SelectionChanged event on specific button click in Listbox in windows phone 7? | <p>I am developing window phone 7 application in C#. I am new to the window phone 7 application. I am also new to the silverlight. I have taken the ListBox control in my xaml file & adding the many button controls to this listbox control dynamically. My xaml code is as follows</p>
<pre><code><phone:PhoneApplica... | 2 | 3,538 |
How to find a field in a JSF page that is connected with an AJAX push server with Selenium? | <p>I am trying to perform some automated tests on a JSF page that is already deployed on the internet and i cannot modify currently.</p>
<p>I know how the source looks like and i see that some of the fields do not have id or name, this is how its source looks like:</p>
<pre><code><h:form rendered="#{messagePusher.... | 2 | 1,853 |
YouTube API with Google PHP SDK - Response as JSON | <p>For my latest Project I would need the result from a YouTube Search as a JSON string. I have tried to modify the code of the official Samples from <a href="https://developers.google.com/youtube/v3/docs/search/list?hl=de" rel="nofollow" title="Search: list YouTube - Google Developers">here</a> so that the whole respo... | 2 | 1,703 |
PHP webpage navigation and active page | <p>i have template.php and i include navigation.php that in separate page to template i want when i navigate through my website pages to be the page i'm on to be active with css style i want to be linked to css page to take active style link for my links. </p>
<p>here my naviation.php page.</p>
<pre><code> <bo... | 2 | 1,957 |
GWT RPC Deferred Binding Failed | <p>We are co-developing a GWT web app that already has working RPC calls for other modules. We built a new RPC module (based on the existing architecture) that compiles and runs, but fails throwing a run-time exception on the following line:</p>
<pre><code>this.dashboardService = GWT.create(DashboardService.class);
</... | 2 | 5,440 |
Create a Django Database | <p>This code works on other people's local computer - we aren't running it in production yet. But mine isn't working. A coworker indicated that I need to create a database. Prior to using mysql, I was using sqlite, which didn't require this. </p>
<p>When I run python manage.py runserver this is what I get:</p>
<pre><... | 2 | 1,966 |
Upgrading to spring boot 2.1.3 to 2.1.4 giving tomcat exception while starting | <p>I have updated my spring parent from 2.1.3 to 2.1.4 Release, so after I am getting some exceptions while starting the applications. is there any version problem?</p>
<p>command used for run : mvn spring-boot:run</p>
<p>java version :11</p>
<p>pom.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
&l... | 2 | 10,968 |
Producer-Consumer using a stack in Java | <p>I am using a stack as my storage to implement my Producer-Consumer model.</p>
<pre><code>public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Stackable<Integer> stack = new MyArrayStack<Integer>();
Producer producer = new Producer(stack);
Consumer consumer = n... | 2 | 1,555 |
Android : App closes after requesting permissions | <p>i have an strange behavior in my Android app. When i request a permission the first time, like Manifest.permission.GET_ACCOUNTS, my app closes (no crash) and the permission dialog appears. </p>
<p>If I decline the permission, start the app again, click the button in a Fragment (who needs the permission to proceed),... | 2 | 7,392 |
Problems designing Bejeweled game | <p>I am trying to do the design of a <a href="http://en.wikipedia.org/wiki/Bejeweled" rel="nofollow noreferrer">Bejeweled</a> game. I have basically 3 classes. The <code>Game</code> class, which is what is going to be used by the player, a <code>Board</code> class, that represents the board, and a <code>SwitchControlle... | 2 | 1,118 |
Cannot send sms verification code using with the SMS User Consent API on android | <p>I am trying to make a phone number verification on android studio using java. I followed the instructions from the documentation here <a href="https://developers.google.com/identity/sms-retriever/user-consent/overview" rel="nofollow noreferrer">https://developers.google.com/identity/sms-retriever/user-consent/overvi... | 2 | 4,086 |
On JBoss AS 7.1.1, why does Hibernate's AnnotationBinder not detect annotated entities? | <p>I'm trying to migrate a Spring application from JBoss AS 4.0.5.GA to 7.1.1.Final. In my <code>jboss-spring.xml</code> there is one bean, <code>engine</code>, whose init method results in the <code>createQuery</code> row below being executed.</p>
<pre><code>public class QueueConfigurationDAO {
private EntityMana... | 2 | 5,659 |
'npm run dev' command not working for windows with bash error | <p>I'm trying to create a laravel nova tool. And I'm running this command.</p>
<pre><code>npm run dev
</code></pre>
<p>But instead of compiling I'm getting this error.</p>
<pre><code>> @ dev C:\wamp64\www\project
> npm run development
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! ... | 2 | 1,822 |
java.lang.ClassCastException - Deploying WAR to GlassFish 3.1.2. - Invalid JNDI lookup, maybe? | <p>I'm trying to decipher the standard deployment procedure for WAR files to Oracle GlassFish 3.1.2 via Eclipse EE on *NIX. I'm getting a <code>java.lang.ClassCastException</code> for the JNDI lookup String (as far as I know). Any suggestions?</p>
<p>JNDI lookup String: <code>Object objref = ctx.lookup("java:comp/env/... | 2 | 3,621 |
Error on NEVPNManager.saveToPreferencesWithCompletionHandler | <p>My target platform is OS X 10.10 / Xcode 7.2
I'm trying to save the preference for NEVPNManager and I got an error in the domain=NEConfigurationErrorDomain:</p>
<pre><code>Error Domain = NEConfigurationErrorDomain Code = 10 "permission denied" UserInfo = 0x610000073280 {NSLocalizedDescription = permission denied}
... | 2 | 2,662 |
Django error loading MySQLdb module undefined symbol:_ZTVN10__cxxabiv117__class_type_infoE | <p>I'm working on centos 6.5/Python2.7.10/Django/MySQL, I get the following error when I try to run:</p>
<pre><code>python manage.py check
</code></pre>
<p>The error is:</p>
<pre><code>Traceback (most recent call last):
File "../manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File ... | 2 | 1,127 |
maven using parent dependencyManagement with ${project.version} causes dependency in wrong version | <p>I have the following structure with the following dependency: child1->child2.</p>
<p>and a parent for both which consolidates all versions in dependency management, using <code>${project.version}</code>.</p>
<p>Folder structures:</p>
<pre><code>+ parent
+ child1
+ child2
</code></pre>
<p>See poms below + com... | 2 | 1,916 |
UncategorizedKeyValueException trying to save RedisHash via repository with transaction support | <p><strong>Problem:</strong></p>
<p>After enabling transaction support (<code>redisTemplate.setEnableTransactionSupport(true)</code>)
I get <code>UncategorizedKeyValueException</code> trying to save <code>@RedisHash</code> in repository.</p>
<p>Everything works fine when transaction support is disabled.</p>
<p>Direc... | 2 | 1,525 |
Boost::Asio Async write failed | <p>I am porting an application which uses Boost::Asio to an embedded system.</p>
<p>I have already cross-compiled boost 1.57.0 binaries for the board using its BSP. To test the libraries working, I ran two http server examples that use synchronized and asynchronized writing respectively.</p>
<p>The Sync version runs... | 2 | 1,154 |
Replication in PgPool2 | <p>Anyone help me with this, I want to replicate postgresql data using pgpool in one Vm with other two Vm’s. I am new to this field I installed postgresql-9.3 in three Vm’s and pgpool-II in one Vm’s. Now I want to know how to replicate data between vm’s and What are the necessary changes in Pgpool.conf file, pool_hba.c... | 2 | 2,054 |
Redefined symbol in multiple c code with #ifndef directive | <p>I have a stupid problem and I don't see where it comes from. I took care of using #ifndef directive to make sure all my #include are not redefined. Sadly for three of them that's happening. Here my multiple files arch :</p>
<p>t_include.h</p>
<pre><code>#ifndef T_INCLUDE_H_
#define T_INCLUDE_H_
/* Project specifi... | 2 | 1,234 |
How to select more contacts from my contact list to send an sms | <p>Right now i am able to select only one contact from my contacts in my phone,i want to send sms more person in my contact list ,how can i send.</p>
<p>Right now i cant add more contacts in the phone no edit text even in manually also and getting from contact list also.</p>
<p>I want to send more contact number in m... | 2 | 2,421 |
How to get data in a form event within a CollectionType? | <p>I have a problem with Symfony 4 on an issue already identified and described on Github (here: <a href="https://github.com/symfony/symfony/issues/5694#issuecomment-110398953" rel="nofollow noreferrer">https://github.com/symfony/symfony/issues/5694#issuecomment-110398953</a>) but I can't find a way to apply this answe... | 2 | 3,453 |
Not able to Quick Start on Theia | <p>I am trying to create PoC using theia. Going through
<a href="https://github.com/theia-ide/theia/blob/master/doc/Developing.md" rel="nofollow noreferrer">https://github.com/theia-ide/theia/blob/master/doc/Developing.md</a> </p>
<p>Running it on Ubuntu 16.04. git clone <a href="https://github.com/theia-ide/theia" r... | 2 | 4,964 |
Android View InflateException: Binary XML File line #63 Error inflating class <unknow> | <p>i dont have errors project be like clean but doesnt work on test
wherever I looked this error but i couldnt find anyting
i dont have errors project be like clean but doesnt work on test
wherever I looked this error but i couldnt find anyting</p>
<p>ERRRORS
<a href="https://www.dropbox.com/sh/qdlwpluf3m5w20n/FjJxZxB... | 2 | 3,219 |
p:carousel (tab slider) issue | <p>i'm having problems implementing the Carousel - Tab Slider example shown in the <a href="http://www.primefaces.org/showcase/ui/carouselTabs.jsf" rel="nofollow">Showcase</a> site.</p>
<p>Here's my xhtml code:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/199... | 2 | 1,656 |
Taking screenshot of windows phone 7.5 and sending over through TCP | <p>i am stuck on how to take a screenshot of my windows phone 7.5 and sending it over TCP. i have no experience in doing socket program and I/O and am doing what i can through tutorials over the internet. This is what i have done.</p>
<p>From the codes below i am stuck in how i can send the writeableBitMap over TCP en... | 2 | 1,673 |
Change Grid datasource dynamically | <p>I need to change the telerik mvc grid datasource on a dropdown selection change. below is my current view and i want to change the grid with the dropdown selection.</p>
<pre><code><%@ Page Title="" Language="C#" MasterPageFile="~/ViewMasterPage.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GateAppl... | 2 | 1,085 |
Unit Testing using InternalsVisibleToAttribute requires compiling with /out:filename.ext? | <p>In my most recent question: <a href="https://stackoverflow.com/questions/2827051/unit-testing-best-practice-c-internalsvisibleto-attribute-for-vbnet-2-0-whi">Unit Testing Best Practice? / C# InternalsVisibleTo() attribute for VBNET 2.0 while testing?</a>, I was asking about InternalsVisibleToAttribute.</p>
<p>I have... | 2 | 1,178 |
Can not find symbol method checkSelfPermissions | <p>Build fails with error : <code>unable to find symbol method checkSelfPermission</code>
although I have added the support libraries.
It gives error after building but in Android Studio its not underlined by red color, or marked as missing, still after build, this method missing error is received.</p>
<p><strong>GRA... | 2 | 1,028 |
How to efficiently partial argsort Pandas dataframe across columns | <p>I would like to replace values with column labels according to the largest 3 values for each row. Let's assume this input:</p>
<pre><code> p1 p2 p3 p4
0 0 9 1 4
1 0 2 3 4
2 1 3 10 7
3 1 5 3 1
4 2 3 7 10
</code></pre>
<p>Given <code>n = 3</code>, I am looking for:</p>
<pr... | 2 | 1,176 |
couchdb - startkey endkey doesn't filter records with key arrays as expected | <p>I have Couch-DB map-reduce view which outputs this;</p>
<pre><code> {
rows: [
{
key: [
"2014-08-20",
2,
"registration"
],
value: 2
},
{
key: [
"2014-08-20",
2,
"search"
],
value: 3
... | 2 | 1,846 |
why does Java servlet gives ClientAbortException when file size larger than about 2 MB? | <p>I'm trying to write a java servlet that is located on a Linux server, that may be used by a client to download a video file. It works when the file size is small (perhaps less than 2 MB), but larger file sizes return the error: <code>org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pip... | 2 | 1,104 |
PHP-SDK for Facebook Connect Generating Error on Logout | <p>I copied the code from the example in the sdk, and made a few small changes, (and the following error occurs even without the changes) and the script logs me in correctly.</p>
<p>It recognizes that I'm connected, produces the appropriate session information, etc. However, the logout link
facebook.com/logout.php?nex... | 2 | 1,904 |
Error: Could not find main or io in tokio, invalid return type `impl Future` | <p>I'm on my way of converting to Rust from the ML family, but I'm finding it hard at some strange places I'm not used to having problems.</p>
<p>I'm trying to use <code>hyper</code> for http handling but can't seem to get <code>tokio</code> to work.</p>
<p>I have tried to copy paste this <a href="https://github.com/hy... | 2 | 1,151 |
how do i add shadow on left and right side of column of table | <p>can anyone please take a look at my code and can tell me how to use shadow box on both side of the column. right now i have shadow on the column. but its not seamless.
I want it to be exactly like the same i have for the column when i hover over it.If anyone have any suggestion please let me know. Ty.</p>
<pre><cod... | 2 | 1,306 |
Convert a form of BNF grammar to g4 grammar | <p>I'm trying to covert this BNF grammar for validating boolean expression which is currently being used in Swift. Now want to implement similar parser in Java. I came across Antlr4 lib and want to use it to generate parser for the same grammar. I'm not very familiar with antlr4. Can someone please provide me some guid... | 2 | 1,833 |
Redrawing container or individual, dynamic elements in GWT page? | <p>I am developing a GWT app (I'm fairly new to GWT so this is a request for best practices; I haven't found any relevant answer on SO or elsewhere) where a timeline is required. This timeline (with descriptions, labels, interaction handles, and plots) resides in its own container (a <a href="http://google-web-toolkit.... | 2 | 1,065 |
Why do I get a column not found error while sorting a GridView | <pre><code><asp:GridView AlternatingRowStyle-BackColor="#E2E2E2" AutoGenerateColumns="false" OnSorting="yourTasksGV_Sorting" AllowSorting="true" ID="yourTasksGV" runat="server" ClientIDMode="Static" EmptyDataText="There is no data to display" OnRowDataBound="yourTasksGV_RowDataBound">
<Columns>
... | 2 | 2,131 |
Client certificate authentication WCF | <p>So I'm completely lost with certificates. I've searched all over the web for solutions and tutorials for this and found nothing that can really help me.
What I'm trying to do is to have both server and client certificate validation for my WCF client-server application. The application is hosted on IIS.
I want it on ... | 2 | 1,818 |
Compilation error after including <map> | <p>I just started with C++, trying to learn some basics. Right now compiling using gcc version 5.2.1 in Eclipse, project is compiled with c++11 parameter.</p>
<p>Now the include problem occurs when I try to <code>#include <map></code> (it doesn't really matter where as long as compiler gets into it, I don't even... | 2 | 2,215 |
Error posting JSON to WCF Rest Service | <p>I have a WCF Rest service that i am try to test with the Firefox Rest Client,</p>
<p>The signature of the method i am calling is </p>
<pre><code> [WebInvoke(Method = "POST", UriTemplate = "UploadEvidenceData/{userName}/{password}/{cdb}")]
public EvidenceData UploadEvidenceData(string userName, string pa... | 2 | 2,322 |
How to cover test for button click in angular? (Stackblitz attached) | <p>I am making a very simple application which has one input box and a button.</p>
<ol>
<li><p>Input is for entering <strong>email</strong></p></li>
<li><p>Subscribe <strong>button</strong> with event handler</p></li>
</ol>
<p>Entering email and click over the button will make an api call, (This method works)</p>
<p... | 2 | 1,600 |
Objected Oriented Programming- How to use the toString() method and format()? | <p>I have just started doing object oriented programming as part of my course, but I am struggling with it, specifically the toString method in a Person Class. I need to write a toString() method to display the contents of instance variables.</p>
<p>I need to by sample print out:</p>
<pre><code>Person[forName=joe, su... | 2 | 1,229 |
How to disabled selected date (asp.net mvc4) | <p>I am trying to make an appointment page in MVC4. It is working well but I would like to disable the date which is chosen. Here is my controller to make an appointment:</p>
<pre><code>public ActionResult Make()
{
return View();
}
[HttpPost]
[ValidateAntiForgeryToken]
pu... | 2 | 1,343 |
Multiple array with same object name in JSON Array in android? | <p>In my application am get the J SON response like this </p>
<pre><code>{
"orderDetails": [
{
"order_details": {
"branch_code": 0,
"cust_code": 87,
"custom_instructions": "<null>",
"merchant_code": "<null>",
"order_number": 419,
... | 2 | 1,447 |
How do you visualize or graph real-time training/testing data in machine learning? | <p><strong><em>In short I want to be able to visualize both train/test data as it's learning in real-time</em></strong></p>
<blockquote>
<p>below is how I'm currently visualizing the progress:</p>
<pre><code>batch_size = 100
epochs = 30
init = tf.global_variables_initializer()
samples = []
with tf.Session() as ses... | 2 | 1,379 |
android - can't access view inside fragment method. it returns null object | <p>I'm building an app based on the tabbedActivity preset of android studio ,therefore fragments are created so:</p>
<pre><code>private SectionsPagerAdapter mSectionsPagerAdapter;
private ViewPager mViewPager;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | 2 | 1,418 |
How to get something like Matplotlib's symlog scale in ggplot or lattice? | <p>For very heavy-tailed data of both positive and negative sign, I sometimes like to see all the data on a plot without hiding structure in the unit interval.</p>
<p>When plotting with Matplotlib in Python, I can achieve this by selecting a <a href="http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.set_xsc... | 2 | 1,490 |
Change toolbar colour on scroll without collapsing | <p>I'm trying to make my toolbar change colour on scroll without actually collapsing it (so I don't want the height of it to change). I want it to be one colour initially and then it will change to another when you scroll. It should then change back to the original colour when I scroll back to the top.</p>
<p>I've bee... | 2 | 1,449 |
Uncaught TypeError: Cannot read properties of undefined (reading 'undefined') | <p>I'm trying to change the state created with the useState hook when clicked. But I do not understand this mistake.
Uncaught TypeError: Cannot read properties of undefined (reading 'undefined'). I do not understand why this happens after setState (state.activeQuestion + 1)</p>
<pre class="lang-js prettyprint-override"... | 2 | 1,221 |
No Route matches "say/hello" when route exists | <p>I'm trying to create a very simple Hello, world program in RoR, but when I go to view the url <code>http://localhost:3000/say/hello</code> I'm getting the error message <code>No route matches: "say/hello"</code></p>
<p>When I started the rails server I got this message with warnings scattered throughout:</p>
<pre>... | 2 | 1,330 |
Command line arguments using if/else statements in C | <p>I am new to programming and this one has me baffled.</p>
<p>I am writing a function to be called by <code>main</code> that takes the command line arguments and stores them in a <code>struct</code> to use later. This specific example is for use with image editing, but can be used anywhere.</p>
<p><strong>Desired pe... | 2 | 1,472 |
Jquery Ajax Calls With CodeIgniter | <p>I am trying to set up a way for two tables on my page to updated automatically or if correct me if I am wrong "Asynchronously". I need second to second updates as well. I am also using CodeIgnighter MVC framework, and as for my tables I am using DataTables. My Jquery goes as follows : </p>
<pre><code><script>... | 2 | 3,766 |
Send file from PC to Android via Socket | <p>I have two problems with sending files on the computer from android
the first problem, use the following code to send</p>
<pre class="lang-java prettyprint-override"><code>Socket sock;
try {
sock = new Socket("172.16.3.120", 1025);
System.out.println("Connecting...");
// sendfile
File myFile = new... | 2 | 1,175 |
Refresh previous form table after submit button | <p>How do I refresh the table when I click EDIT NOW Button? or this is easier, how do I make refresh button to refresh the table? I have no knowledge on JSP to auto refresh. However, I manage to make an onchange event so when I choose menu, it will refresh upon changing. When I edit a data and submit, it does not refre... | 2 | 1,913 |
How to inject webapi AccountController in WebApi | <p>I have default constuctor and constructor with params like here:</p>
<pre><code>public class AccountController : ApiController
{
private const string LocalLoginProvider = "Local";
private ApplicationUserManager _userManager;
public ISecureDataFormat<AuthenticationTicket> AccessTokenFormat { get; p... | 2 | 1,252 |
MDL Component Not working with React | <p>I was following the Facebook's react tutorial and was playing around with it.
When i tried to integrate MDL with my page (from getmdl.io), its not working.</p>
<p>In my index.html; i have added links to their css and js files. I also installed mdl using npm.</p>
<p>My index.html:</p>
<pre><code> <!DOCTYPE html... | 2 | 1,369 |
How to seek a .ts file in vlc media player integrated in android application? | <p>I have used vlc media player integration in my android app (libvlc). I use it to play rtsp files which are in .ts format.I have implemented a feature in which I can playback the recorded files and it works fine only for playing but I can not seek through these files even though they are seek-able in vlc desktop vers... | 2 | 1,554 |
Generic Netlink unicast from kernel to user fails (-111) | <p>(Linux 4.4)</p>
<p>I am trying to get a kernel module to send information to a user process over a Generic Netlink. It seems that the message is not successfully received by the user process - the nlmsg_unicast function returns with -111.</p>
<p>Here is what I know:</p>
<ul>
<li>The kernel module successfully re... | 2 | 2,595 |
Rails: Couldn't find Comment with 'id'= | <p>I'm trying to add "likes" to "comments", so that a user has the ability to like a comment. When I click on "like" I get an error saying <code>Couldn't find Comment with 'id'=</code> on this line here: <code>comment = Comment.find params[:comment_id]</code> which is in my likes_controller.rb#create. </p>
<p>likes_c... | 2 | 2,398 |
Bottom Navigation does not work and leads to app crash | <p>I have tried to use Bottom Navigation on my application but it doesn't work and application keep crash.
here is my main activity:</p>
<pre><code>package com.example.testing;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;... | 2 | 3,907 |
(Laravel) How to filter table by newest pivot value | <p>I have a table of orders (orders), a table of statuses (order_statuses) and a pivot table which is intended to be a status log (order_order_status).</p>
<p>When an order's status is changed, an entry is added to the pivot table. The newest entry in the pivot table for that order will be it's current status.</p>
<... | 2 | 2,014 |
Highcharts Styling Questions | <p>I'm hoping for some help on styling a line Highchart.</p>
<p>I'm trying to get the graph here to look like the image:</p>
<p><a href="http://www.myhealthcoach.tv/HRA/aardvark.php" rel="nofollow">Example of my graph</a></p>
<p>But I'm struggling to get the block colour lables?</p>
<p>Any help would be much apprec... | 2 | 2,181 |
Weird issue with Net::SSH::Expect in Perl script | <p>I am working on putting together a perl script. I have captured it below:</p>
<pre><code>#!/usr/bin/perl
use Tie::File;
use Net::SSH::Expect;
use utf8;
use warnings;
use diagnostics;
# Grab password from hidden file
$pw=`cat .password`;
chomp $pw;
#Read list of 9200's from hosts.list file into an array
tie @hosts... | 2 | 1,262 |
How to reverse the process of np.flatten() and mapping? | <p>I have a target value numpy array with this format, lets say 10 dimensions (24,10)</p>
<pre><code>Target = [[ 2, 0, 2, 0, 0, 3, 0, 0, 1, 0, 0, -2, 4, -2, 0, 0,
-3, -3, -5, 1, 0, 0, 0, 2],...]
</code></pre>
<p>So I applied this map</p>
<pre><code>checker_presence = {
5: np.array([1,1,1,1,1], ... | 2 | 1,510 |
why's this program giving a runtime error on jcreator but not on netbeans? | <p>This is my solution for sphere's online judge <a href="https://www.spoj.pl/problems/PALIN/" rel="nofollow noreferrer">palin problem</a>. It runs fine on Netbeans, but the judge is rejecting my answer saying it gives a RuntimeError. I tried it on JCreator and it says:</p>
<pre><code>Exception in thread "main" java.l... | 2 | 1,038 |
caffe python manual sgd | <p>I am trying to implement the SGD functionality to update weights in python manually in caffe python instead of using <code>solver.step()</code> function. The goal is to match the weight updates after doing <code>solver.step()</code> and that by manually updating the weights.</p>
<p>The setup is as follows:
Use MNIS... | 2 | 1,359 |
Having An Issue With Randomly Generated Numbers - Java | <p>I am working on this project from the Java Programming book by Joyce Farrell, and I am having an issue with the Randomly Generated number and the user's guesses not being checked correctly. For example the user has 3 guesses, lets say their first guess it 2 and the first randomly generated number is 2 the program wi... | 2 | 1,323 |
Who borrowed a variable? | <p>I'm fighting with the borrow checker. I have two similar pieces of code, one working as I expect, and the other not.</p>
<p>The one that works as I expect:</p>
<pre><code>mod case1 {
struct Foo {}
struct Bar1 {
x: Foo,
}
impl Bar1 {
fn f<'a>(&'a mut self) -> &'a F... | 2 | 1,100 |
Deep link from external to specific route angular2 app | <p>I need to create a deep link that allows user to click it from external (like e-mail or browser directly) and then it should be redirect to <code>my-app.blablabla.com://path-to-route</code>. I've already created a working deep link but it always redirect the user in my app homepage (like <code>my-app.blablabla.com:/... | 2 | 2,697 |
Returning RecordCount from Get-WinEvent in Powershell | <p>I'm writing a PowerShell script that will count the number of records from the
requested log with a specific id that have occurred in the last <code>$interval</code>
seconds. In the current version of the script, I am printing the <code>$log</code> of
events returned, as well as the <code>RecordCount</code>. Howev... | 2 | 1,201 |
How to detect touch and show new SCNPlane using ARKit? | <p>Now I am able to show different <code>SCNPlane</code>, when card detected. After displaying <code>SCNPlanes</code>, the user touches any plane to show new <code>SCNPlane</code>. But right now touch is working properly but new <code>SCNPlane</code> is not showing.</p>
<p>Here is the code I've tried:</p>
<pre><code>... | 2 | 1,285 |
Java Cassandra Datastax driver custom codec not handling collection types | <p>I have defined a custom codec taking tutorial as a reference- <a href="https://docs.datastax.com/en/latest-java-driver/java-driver/reference/customCodecs.html" rel="nofollow">https://docs.datastax.com/en/latest-java-driver/java-driver/reference/customCodecs.html</a>. Here is my codec impelementation: -</p>
<pre><co... | 2 | 1,610 |
jQuery and XML best way to parse | <p>Trying to parse an XML result from a Web Service, vinquery.com, usually the values are in between the key name e.g. hello however the XML returned is:</p>
<pre><code><?xml version="1.0" encoding="utf-8" standalone="yes"?>
<VINquery Version="1.0.0" Report_Type="BASIC" Date="1/19/2012">
<VIN Number... | 2 | 1,090 |
dialog box causes app to crash | <p>This is the issue, I have a dialog box that only appears the first time a user installs my app. After testing with my own device I see that simply doing nothing after the box pops up causes the app to crash. My intention is to have this dialog box be the first thing that the user sees after installing the app. It do... | 2 | 1,230 |
Error while upgrading from Rails 3.2 to Rails 4 | <p>When upgrading to Rails 4 I encounter the following error:</p>
<pre><code>Bundler could not find compatible versions for gem "railties":
In Gemfile:
rails (= 4.0.0) ruby depends on
railties (= 4.0.0) ruby
sass-rails (~> 4.0.0) ruby depends on
railties (4.0.0.rc2)
</code></pre>
<p>My Gemfi... | 2 | 1,759 |
Shift operator in CUDA | <p>Given this CUDA code, I am trying to perform bit shifting operations and the return on these values is zero. This should not be happening. Does anyone know how to fix this issue? Am I missing a CUDA header include?</p>
<p><strong>Code</strong></p>
<pre><code> __device__ unsigned int FI( unsigned int in_data, ... | 2 | 1,135 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.