title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Test App failing on Back Button... Windows Phone 7
<p>Ok this question stems from this question: <a href="https://stackoverflow.com/questions/5530555/wp7-app-failing-can-not-figure-out-where">wp7: App failing! Can not figure out where?</a></p> <p>I thought it was corrected but it is still failing. I ripped out all of the app.xaml.cs code and it still crashing when t...
3
1,162
tkinter event handler reference lost on widgets
<p>I put a event handler in a class <code>Verification</code> in a separated file <code>verification.py</code> (tried to make the code modular). The main GUI code is as follows,</p> <pre><code>from tkinter import * from make_widget import * from verification import * class LoginFrame(Frame): def __init__(self, pa...
3
1,145
how to Connect React Native component with Node js Server? (React Native, NodeJS(without Express), MongoDB)
<p><strong>I'm creating a simple React Native app,</strong> using...(React Native as FrontEnd, Node js as Server(<strong>without Express Framework</strong>) Database in MongoDB Local), <strong>so I Created Backend for the app, Server.js and React Native component in CreateUser.js</strong></p> <p><strong>my problem is</...
3
2,474
How do i properly add characters to string in recursion
<p>So i have this function EDIT:Whole program as requested</p> <pre><code>//This is a java program to construct Expression Tree using Infix Expression import java.io.*; public class Infix_Expression_Tree { public static void main(String args[]) throws IOException { String result=&quot;&quot;; ...
3
4,159
How can I make a list of integers click on element with corresponding id?
<p>I have a list of ids (integer) and I have multiple components. After a request to my API, the component receives a list of ids that should already be active. I want to simulate a click on each element with the same id as the one in my array. I know I can use refs to do that, but I don't undertstand how to make it ...
3
1,674
XPages typeahead: do like Google
<p>UPDATE</p> <p>This is now what I have in my xpage:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core"&gt; &lt;xp:panel id="ContainerPanel"&gt; &lt;xp:inputText id="typeAhead"&gt; &lt;xp:eventHandler event="onchange" submit="true" ...
3
3,844
NullPointerException when drawing graph with the data retrieve from database
<p>the BrokenLineCusVisit class and BrokenLineCUsVisitView class are used to draw the line graph,Dashboardfragment is the place that i want generate graph. Well when i run the code, the following error occur: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object...
3
5,987
How can I make this js app run using one "on click event" instead of four?
<p>I'm a few weeks into javascript and had to make a simple "crystals collector" app. The app works as intended, but the code is obtuse and repetitive. </p> <p>I'd like to make the app work using just one on click event, rather than using four for each crystal. I can't make an array of each color crystal and loop thro...
3
2,858
How to inflate a view in android in API level 25 and below?
<p>I am getting error in inflating a view in recycler view. It works on Oreo and Pie but not working in Nougat and devices below it.</p> <p>This is the code I have used to inflating the view.</p> <pre><code>View itemView = LayoutInflater.from(parent.getContext()) .inflate(R.layout.listing_row_item, pa...
3
2,571
LinearLayout onShow it moves the ScrollView down
<p>I want to display my <strong>notification_bar_linearlayout</strong> on top of the <strong>ScrollView</strong>. </p> <p>In code after the data in <strong>ScrollView</strong> has been populate I will then show the <strong>notification_bar_linearlayout</strong>.</p> <p>But When I show:</p> <pre><code>notification_ba...
3
1,710
Interest calculator in vuejs
<p>i have problem with my page. I'm new in vue.js and i don't know how to fix it. This is Interest calculator. It working to calculate Day, credits and etc. It compute missing number with this: </p> <p>credit= (Full number * percente * day)/(100*365)</p> <p>this is my code:</p> <p><div class="snippet" data-lang="js"...
3
1,454
Word VBA script behaves differently when launched with "Step-into" or "Run"
<p>This is my first attempt at writing a VBA script for Word (I'm an ex-programmer who's had reasonable, self-taught, success with Excel VBA). I'm using Word 2013 (15.0.4641.1001 64-bit) and VBA 7.1 .142.</p> <p>I'm trying to perfom a simple task, which is to create a two-column table at the current cursor position (w...
3
1,076
How to get the same rsi calculation as Trading view in python
<p>So I have been trying to replicate the rsi values of tradingview by hard coding it myself as a little project, but to no avail. What I am trying to do is a little different from the usual replicating of values as I am not operating on equivalent timeframes. I am trying to replicate the values of the rsi (which is on...
3
1,704
Facing problems regarding pygame
<p>I'm trying to build a music player using pygame, but I'm facing a lot of problems.<br /> The basic idea is to put some songs in a list and access them.</p> <ol> <li><p>For shuffle option, I have imported random module and used randint method to generate random numbers which will be used as index values to access the...
3
1,937
In a regular expression, is (\W|$) a workable alternative for \b?
<p>We have a client application where the users want to search "notes" fields for specified text. The fields are either formatted with HTML or plaintext. One of the recent changes that we made was to only support "whole word" matches. Using <code>\b</code>, we made this happen. Pattern:</p> <pre><code>"\b(?:match...
3
1,229
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation
<p>I have multiple StrictMode policy violation on my Android Studio app. I actually got these when trying to pre-launch my app on the Play Store. I don't think I got these warning when testing my app on my emulator device. I am not really sure what these are and where it came from. Here are all the stacktrace (shown be...
3
10,407
failure to install packages in RStudio
<p>I am a bit new to RStudio, I had the previous version but I uninstalled it to install the latest version but when I try to install any package (I try to install tidyverse as an example) it does not install and what appears is the following:</p> <pre><code> Installing package into ‘/home/edgardo/R/x86_64-pc-linux-...
3
4,292
Different types of Arrays of Objects
<p>I have two arrays of objects that I'm trying to feed into a function. One array is a test array that contains 4 objects, the other array contains 1600 objects. The test array is functioning as expected, while the large array is not.</p> <p>The only difference I can see is here in the console of the browser when log...
3
1,154
"Bracket nesting level exceeded maximum" when working with large dataset in PyMC3
<p>I have a recursive model in PyMC3 and I'm training it on about 600 timesteps. I'm getting the error</p> <pre><code>Exception: ('Compilation failed (return status=1): /Users/tiwalayoaina/.theano/compiledir_macOS-10.14.6-x86_64-i386-64bit-i386-3.8.8-64/tmp1dgcmqm3/mod.cpp:30412:32: fatal error: bracket nesting level e...
3
1,581
Re attach tab content after i've detached on page load
<p>I am wanting to detach some of my tabs content on pageload. I do not have access to edit the existing tab script btw. I can only add jquery after tabs are loaded.</p> <p>I've done that successfully...</p> <pre><code> $(document).ready ( function(){ $('#tabcontent1,#tabcontent2,#tabcontent3,#tabcontent4').detach...
3
1,066
jquery click function is responding weirdly. ajax call also not triggered
<p>Instead of a <code>POST</code> request, somehow <code>GET</code> is being triggered. </p> <p>Secondly, the ajax call is not being called. </p> <p>I have done this a hundred times, but everything I tried seem to do nothing. This could be some my fault somehow, but please help. If you need anything more please ask. ...
3
1,285
Trying to add Dropdown to menu
<p>I'm trying to add a dropdown to a template i downloaded, but i'm not the greatest with CSS when it comes to existing templates. </p> <p><strong>HTML Code:</strong></p> <pre><code> &lt;header&gt; &lt;div class="main"&gt; &lt;div class="wrapper"&gt; &lt;h1&gt;&lt;a href="index.html"&gt;KB Customs&lt;...
3
1,376
Refining the output from LAG query
<p>Hello I'm running postgresql 10.10 on Ubuntu.</p> <p>I have the following data in my table:</p> <pre><code> radio | hits | iteration ---------+------+----------- 211 | 1 | 1 1423013 | 1 | 1 2114805 | 1 | 1 2114833 | 1 | 1 2109257 | 1 | 1 126681 | ...
3
1,260
Laravel displaying all jobs on same date under 1 header
<p>I created table displaying the date as a heading then the job for that day beneath it. But when i have 2 jobs on the same day it displays the date twice with each job beneath it. I want to display all the jobs for that day together under 1 Date (Heading). thanks<a href="https://i.stack.imgur.com/ANTiE.png" rel="nof...
3
1,214
Fields_for not saving data on update
<p>I'm trying to do the edit action for my users with fields_for. The problem is it wont save the pro params in User. It wont update the pro attributes.</p> <p>I have 2 models, <code>pro</code> and `user``</p> <p>User <code>has_one</code> pro, and pro <code>belongs_to</code> user.</p> <p><strong>In the user model</s...
3
2,406
How can I highlight droppable areas on hover in a jquery accordian - trying to re-order Accordian sections
<p>I'm trying to use the JQuery Accordian with drag and drop to enable the accordian sections to be dragged and dropped to move them around and change the order.</p> <p>The section headers become draggable (when active) using a handle on the right (using font awesome icons) when you hover over them. The idea was that ...
3
1,566
How to upload a file to MySQL database using Nodejs backend and display the photo
<p>I am trying to upload a photo to mySQL database using a node backend but for some reason I am getting that what I have uploaded is undefined.</p> <p>I have declared a new variable &quot;Photo2&quot; which is storing that photo and I console.log it but I get &quot;undefined&quot; in my console</p> <p><strong>The form...
3
9,477
CloudFormation error from template in marketplace
<p>I am using a template from aws marketplace titled &quot;Jitsi Meet 100 concurrent user video conferencing setup with recording&quot; but an error occurs while launching it in cloudformation.</p> <p>Error:</p> <pre><code>The instance configuration for this AWS Marketplace product is not supported. Please see the AWS...
3
22,793
How to insert data in DB (SQLite3 or sth) after parsing through casperjs?
<p>I'm new at ruby on rails and casperjs!</p> <p>I wrote code that parsing a lot of words (innerHTML) from some webpages.</p> <p>and I know how to run this code and I can check data in bash terminal</p> <p>But I don't know how to insert this data directly in my DB (now i'm using SQLite3)</p> <p>Here is my js code.....
3
1,429
Selenium Webdriver Python I am trying to wait until data has completed processing in a html table. How do i know when the table is blank
<p>I have a webpage with a HTML table of 1 row and some columns. The user selects the checkbox and then clicks the run button. A process starts to run, data starts to be processed. The HTML table, the column called "Progress" will show a progress bar with a percentage of how much has been completed. It will show 100% ...
3
3,411
Am I converting JSON data to a Swift variable the long way?
<p>I am reading json data from a file and trying to move it into a NSDictionary and I am wondering if there is a more concise way to do it. The code shown below works fine. In my program the Astruct-type variable has more than 25 Bstruct-type variables. I have several files similar to the one I show. So it leads to a ...
3
1,040
stop() function stops other controling parameters
<p>I have a complex imagemap with several mapped areas. On mouseover or click I want to overlay these imagemap with other images which do have exactly the same size and shall be in exactly the same position. So far, so good. </p> <p>Doing this, I added a <code>.fadeIn()</code> and <code>.fadeOut()</code> on my mouseov...
3
1,612
.net Cookie dissapears after session Timeout
<p>I have a bit of a problem handling cookies/session timeout, i need a persistent cookie to expire not at session timeout, but after. The problem is, that when the .net session dissapears after timeout, the cookie value is not being found, here's the code i use to set the cookie and to retrieve it.</p> <p>Code that s...
3
3,241
Responsive Design works on Ipad in Inspect Element but not actual Ipad view?
<p>I have a dropdown list that works on a web browser and responsive design on google chrome, however on the ipad it doesn't work in landscape mode, here is the code</p> <p>I have tried (landscape: orientation) {..code here..} and that doesnt' seem to fix the issue?</p> <p>This is the HTML: </p> <p> </p> <pre><code...
3
1,792
Full Text Search with LINQ
<p>I am trying to implement a search function where the results could be populated to a Gridview. I am using LINQ to query my db in c#.</p> <p>The problem I am trying to figure out is, if the user want to search through multiple columns/fields with more than one search term, then how do I do that? So instance if I sea...
0
2,565
"Neither path nor baseDir may be null or empty string." error when importing gradle project in Android Studio 0.2.9
<p><em>NOTE: i can't post links, so i guess you'll need to go <a href="https://gist.github.com/nrser/b4c068fcd07d8be01b9e#file-references-md" rel="noreferrer">here</a> to follow the references. sorry, not my rule.</em></p> <p>i'm getting the following error when attempting to import a project into Android Studio 0.2.9...
0
1,100
Module not found: Error: Cannot resolve module 'react' when I use webpack
<p>would really appreciate help on this one: I'm unable to build using webpack, I get a short list of errors starting with:</p> <pre><code>Module not found: Error: Cannot resolve module 'react' in ../client/front_desk.jsx </code></pre> <p>and then ending up with a long list that looks like:</p> <pre><code>Module not...
0
1,030
Uncaught Invariant Violation: Too many re-renders. React limits the number of renders to prevent an infinite loop
<p>I'm trying to add a snackBar in order to display a message whenever a user signIn or not. SnackBar.jsx:</p> <pre><code>import React from "react"; import PropTypes from "prop-types"; import classNames from "classnames"; import CheckCircleIcon from "@material-ui/icons/CheckCircle"; import ErrorIcon from "@material-ui...
0
2,160
Problem with dynamic controls in .NET
<p>Problem with dynamic controls</p> <p>Hello all,</p> <p>I'm wanting to create some dynamic controls, and have them persist their viewstate across page loads. Easy enough, right? All I have to do is re-create the controls upon each page load, using the same IDs. HOWEVER, here's the catch - in my PreRender event, ...
0
1,334
VB Change Calulator
<p>I am creating a VB 2008 change calculator as an assignment. The program is to use the amount paid - the amount due to calculate the total.(this is working fine). After that, it is to break that amount down into dollars, quarters, dimes, nickels, and pennies. The problem I am having is that sometimes the quantity of ...
0
1,262
PyQt - simplest working example of a combobox inside QTableView
<p><strong>Background</strong>: I cannot find a full working example of a combobox inside a <code>QTableView</code>. So I wrote this code based on several other more contrived examples out there. The problem is, however, that this example requires you to double-click on the combobox before it becomes enabled, then yo...
0
1,304
Batch file to backup data to networked drive?
<p>I am trying to create a backup of some local files on one machine, to a networked hard drive on another machine. The source computer is running Windows Server 2008 R2, and the destination machine is running Windows Server 2003 R2. I want to create a batch file that will run on the source computer, and copy all of th...
0
2,398
Eclipse EXCEPTION_ACCESS_VIOLATION crash
<p>Today at work my eclipse started to crash repeatedly. It is enough to open it and start editing files to have a crash after few minutes. I reinstalled everything: Eclipse, Workspace, Java but nothing helped. Please try to identify the source of my problems as I am currently unable to work.</p> <pre><code># # A fata...
0
9,407
How to clear v-autocomplete (multiple) search input after selecting the checkbox in the drop-down list?
<p>I have multiple v-autocomplete component from Vuetify. Currently, for example if enter in search input "Cali" and check "California" value, "Cali" value still exist in search input. I need to clear entered value. For current, search value cleared when closing dropdown list, but I need clear it when I select checkbox...
0
1,394
java.lang.StackOverflowError when persisting an object jpa
<p>I am building an application using JPA, JSF, EJB, Derby. At this point the application is still small. I have a form in the application to add new products. When adding data to the db it goes smoothly until I restart the application or the server. When I restart either the server or app I get <code>java.lang.StackOv...
0
4,327
How do I export a TensorFlow model as a .tflite file?
<p><strong>Background information:</strong></p> <p>I have written a TensorFlow model very similar to the <a href="https://www.tensorflow.org/get_started/premade_estimators" rel="noreferrer">premade iris classification model</a> provided by TensorFlow. The differences are relatively minor: </p> <ul> <li>I am classifyi...
0
3,596
classpath error: unable to find org.aspectj.lang.JoinPoint
<p>I am using maven to build my project. It was compiling successfully earlier. It has started to give an error when I do <code>mvn clean install</code>.</p> <blockquote> <p><code>[ERROR] classpath error: unable to find org.aspectj.lang.JoinPoint (check that aspectjrt.jar is in your classpath)</code></p> </blockquot...
0
5,902
How to display a user profile pics while the user is logged in php?
<p>I have successfully created a form that submits data and a picture of a user into my online folder and the path directory stored in the database. My question is this how do I get users to see their picture once they are logged in?</p> <p>Well Guys thanks for everything but still not getting right here is all my cod...
0
3,384
Why does TextView in single line elipsized with "end" show boxes?
<p>I'm using a TextView in Android, what I want to show 1 line in TextView ending with ". " but this give [] type box at the end. I don't know why? I just want to remvoe this box and only to show text ending with "... "</p> <p><img src="https://i.stack.imgur.com/yIS2u.png" alt="TextView shown box at end"></p> <p>Upd...
0
1,918
How do I access variables from the main class from another class (java)?
<p>I'm making a cookie clicker clone in java to practice my java skills and I have a small problem, I have variables that are declared in the main method that I want to access from an ActionListener class. Here is some sample code from the ActionListener class. the the int variables (ex. clicks, grandamaCost) and the J...
0
1,048
Dynamic database table display using Jstl
<p>I am trying to display database data using JSTL like this:</p> <p>My dao;</p> <pre><code>public ArrayList getStudentFirstName(){ ArrayList v = new ArrayList(); Connection conn; try{ conn = db.getDbConnection(); String sql = "select STU_FIRST_NAME, STU_MIDDLE_NAME, LAST_NA...
0
1,191
Calling functions with parameters using SOAP with Perl
<p>I am attempting to access a web service using SOAP through Perl and am having issues calling the service's functions that require parameters. The XSD that dictates the SOAP call says,</p> <pre><code>&lt;xs:complexType name="getVersion"&gt; &lt;xs:sequence/&gt; &lt;/xs:complexType&gt; &lt;xs:complexType name="get...
0
1,093
Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib64/perl5
<p>I'm using Centos 6 and install Perl-CPAN and Developement Tools. I cannot seem to install Test:Harness::Straps it get this error:</p> <pre><code>Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl...
0
2,279
How can I rotate an image by any degree?
<p>I have animated gif and I'm using a class to parse the images(frames) from it. The class is:</p> <pre><code>using System; using System.Drawing; using System.Drawing.Imaging; using System.Collections.Generic; using System.IO; public class AnimatedGif { private List&lt;AnimatedGifFrame&gt; mImages = new List&lt;A...
0
1,857
How to trigger site language change using php?
<p>I am making a site, using only PHP as back-end (no framework), which should be available in 3 languages. The site structure (tables/divs) is maybe less common. It tends to simulate an Ajax kinda behavior. I include a file (selector.php) in the body, which takes care of it's content, via _GET(), passed from the navig...
0
2,948
Uncaught ReferenceError: (function) not defined at HTMLButtonElement.onclick
<p>The following functions, <code>onColourChange</code> and <code>onWindowChange</code>, should cycle through images on button click. Instead, I get both: </p> <blockquote> <p>Uncaught ReferenceError: onColourChange is not defined at HTMLButtonElement.onclick</p> </blockquote> <p>and</p> <blockquote> <p>Un...
0
2,136
Finding the center of a cluster
<p>I have the following problem - made abstract to bring out the key issues.</p> <p>I have 10 points each which is some distance from the other. I want to </p> <ol> <li>be able to find the center of the cluster i.e. the point for which the pairwise distance to each other point is minimised, <br> let p(j) ~ p(k) repr...
0
1,103
How to render partials from another Controller
<p>If I have a HomeController displaying its Index view, how would I proceed in order to have the Index view imbed a UserControl from another Controller?</p> <p>Here's a look at the content of the Home/Index View:</p> <pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.We...
0
1,066
After using android studio 3.1.2 it showing error=2, No such file or directory
<p>After installing <code>Ubuntu 18</code> in new desktop with i7 and 24gb ram . We try to move our <code>android studio</code> project to new pc in zip format and our project work fine on old pc but it showing error on new pc . </p> <blockquote> <p>org.gradle.api.tasks.TaskExecutionException: Execution failed for ...
0
2,259
Python & MySql: Unicode and Encoding
<p>I am parsing json data and trying to store some of the json data into Mysql database. I am currently getting following unicode error. My question is how should I handle this. </p> <ul> <li>Should I handle it from the database side, and if so how can I modify my table to do so?</li> <li>Should I handle it from pytho...
0
1,754
Create React App Dependency Issue with Webpack
<p>I am going through Lynda's Learning React course. In the second video of the 3rd chapter I am facing an issue. When I type npm start on Git Bash, the following error is being displayed:</p> <pre><code>$ npm start &gt; bulletin-board@0.1.0 start C:\Users\John\Desktop\Ex_Files_Learning_Reactjs\Files\Ch03\03_02\start...
0
1,280
How to deal with SettingWithCopyWarning in Pandas
<h2>Background</h2> <p>I just upgraded my Pandas from 0.11 to 0.13.0rc1. Now, the application is popping out many new warnings. One of them like this:</p> <pre class="lang-none prettyprint-override"><code>E:\FinReporter\FM_EXT.py:449: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataF...
0
1,090
TypeError: __init__() takes at least 2 arguments (1 given) error
<p>I am developing a simple text based Dungeon game using Python3. First the user is prompted to select the hero from screen.py file.</p> <pre><code>from game import * class GameScreen: '''Display the current state of a game in a text-based format. This class is fully implemented and needs no additional ...
0
2,672
DuplicateFlagError when trying to train tensorflow object detection api on google collaboratory
<p>I am trying to train Tensorflow Object Detection API on my dataset containing apples and capsicum. For that, I generated the required files (TFrecords and images with annotations) and placed them in models/research/object_detection directory. Then, I forked the Object detection api from github and pushed my files to...
0
1,977
ANGULAR 6: error TS2315: Type 'ModuleWithProviders' is not generic
<p>Hello I am experience a issue that I cannot relate to anything.</p> <p>I show some of my code hoping it can be of any use. </p> <p>Consider that the issue appeared once I started on creating a Reactive Form.</p> <p>First of all, here it is my package.json:</p> <p><div class="snippet" data-lang="js" data-hide="fa...
0
2,593
Listview error: "Your content must have a ListView whose id attribute is 'android.R.id.list'"
<p>I am getting an error in my logcat saying "Your content must have a ListView whose id attribute is 'android.R.id.list'". My code compiles and runs but force closes when I start my listview activity. I've checked on many similar questions, it seems to be a common problem but I am still unable to fix my code.</p> ...
0
2,819
Impersonate user in Windows Service
<p>I am trying to impersonate a domain user in a windows service with the service logged in as the Local System Account.</p> <p>So far, I am only able to get this to work by logging the service and set the process using the user credentials, like the following.</p> <pre><code> ProcessStartInfo startInfo = new ...
0
2,583
Using Picasso library with ListView
<p>What I'm trying to do is adapt my custom ListView adapter to use images fetched from the web by the Picasso library. I believe I have my adapter changed in order to accept an image from Picasso, but I am unsure how to change my implementation to accept it using a ListView. I believe I have to access holder.imageIcon...
0
2,713
apache2.4 + php-fpm + phpmyadmin in debian
<p>I have this setup in a debian: apache 2.4 proxy_fcgi and php-fpm (v5.5). In my virtualhost file i have:</p> <pre><code>&lt;VirtualHost *:80&gt; DocumentRoot /var/www/html ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php5-fpm.sock|fcgi://./var/www/html CustomLog ${APACHE_LOG_DIR}/access.log combined ErrorLog ${AP...
0
1,436
There is already a listener on IP endpoint 0.0.0.0:13000. ?? (TCP using WCF)
<p>I'm trying to figure out why the port is being used even after restarting the computer!</p> <blockquote> <p>System.ServiceModel.AddressAlreadyInUseException: There is already a listener on IP endpoint 0.0.0.0:13000. This could happen if there is another application already listening on this endpoint or if you hav...
0
1,857
Multi-module Navigation with Architecture Components
<p>So I have this structure for my modules in my current app.</p> <p><a href="https://i.stack.imgur.com/rNCdT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rNCdT.png" alt="App Module Structure"></a></p> <p>I haven't found any official documentation on multi-module navigation yet but I found this <a href="...
0
1,054
Angular 5 Stop background scrolling when mat-sidenav-container displayed
<p>I'm creating a new <code>Angular 5</code> site that has a <code>mat-sidenav</code> but i have an issue with it.</p> <p>My <code>mat-sidenav-container</code> sits under my <code>position: fixed</code> main menu which is fine but if the page has a vertical scroll, if the <code>mat-sidenav</code> is displayed it too s...
0
1,051
‘main’ is normally a non-static function ERROR
<p>There are two errors that show up: main.c:80: warning: ‘main’ is normally a non-static function main.c:88: error: expected declaration or statement at end of input and I cant't seem to find the problem... There number of curly braces is equal... What seems to be the problem?</p> <pre><code> #include &lt;unistd.h&g...
0
1,594
Spring Boot: Oauth2: Access is denied (user is anonymous); redirecting to authentication entry point
<p>I am trying to use spring boot oauth2 to accomplish stateless authentication and authorisation. However, I am struggling to it working.</p> <p>Here is my code:</p> <pre><code>@EnableAutoConfiguration @ComponentScan //@EnableEurekaClient //@EnableZuulProxy @Configuration public class AuthServiceApp { public stat...
0
3,892
How to use firebase with read and write rules as false
<p>I am working on a project and I followed few tutorials in order to learn and build the app. But all of them, they change the Firebase read and write rules to true which is not safe. for example they change </p> <pre><code>{ "rules": { ".read": false, ".write": false } } </code></pre> <p>to </p> <pre><...
0
1,220
php mysql + insert query errors
<p>i am creating a page where users can edit their account and add some text using php and mysql . first i was able to do insert and update but now it display an error msg Duplicate entry for key email address how can i solve this problem this is the code of the account setting but it do not contains any email ...
0
4,651
"inline-style"-Error with Content Security Policy and Javascript
<p>I turned on Content Security Policy on my server with this command in my Apache2-configuration:</p> <pre><code>Header set Content-Security-Policy-Report-Only "default-src 'self'" </code></pre> <p>(I set it to <code>...-Report-Only</code> to only report errors, without really blocking something while developing.)</...
0
1,346
Get facebook friends list in js api
<pre><code>I am getting user info but unable to get friend list. &lt;script&gt; function sortMethod(a, b) { var x = a.name.toLowerCase(); var y = b.name.toLowerCase(); return ((x &lt; y) ? -1 : ((x &gt; y) ? 1 : 0)); } window.fbAsyncInit = function() { FB.init({ appId: ...
0
1,473
T-SQL Dynamic SQL and Temp Tables
<p>It looks like #temptables created using dynamic SQL via the EXECUTE string method have a different scope and can't be referenced by "fixed" SQLs in the same stored procedure. However, I can reference a temp table created by a dynamic SQL statement in a subsequence dynamic SQL but it seems that a stored procedure doe...
0
1,289
How to use my own Android.mk file with Android Studio
<p>I am defining some variables within the <code>Android.mk</code> file (I am passing some flags for the compiler), but every time I build my project, the <code>Android.mk</code> is overwritten. I am assuming that <code>Gradle</code> is responsible and that I should be looking there? <strong>How do I use my own Android...
0
1,518
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Error
<p>This is my page</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;?php require("admin/config/connect.php"); ?&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;META http-equiv=content-type content=text/html;c...
0
5,498
Horizontal center the content of a div with display: table-row
<p>I'm having trouble centering the contents of a div with <code>display: table-row</code>.</p> <p>Here's a <a href="http://jsfiddle.net/zGLQX/" rel="nofollow noreferrer">Fiddler</a>.</p> <p><strong>HTML</strong></p> <pre><code>&lt;div class=&quot;table-row&quot;&gt; &lt;div class=&quot;left-right-padding&quot;&gt;...
0
1,094
Windows Vista/Windows 7 privilege: SeDebugPrivilege & OpenProcess
<p>Everything I've been able to find about escalating to the appropriate privileges for my needs has agreed with my current methods, but the problem exists. I'm hoping maybe someone has some Windows Vista/Windows 7 internals experience that might shine some light where there is only darkness. I'm sure this will get lon...
0
2,351
Sudden - 'The certificate chain was issued by an authority that is not trusted in Microsoft.Data.SqlClient' in working project
<p>I have an ASP.Net Webforms website running in IIS on a Windows Server. Also on this server is the SQL server.</p> <p>Everything has been working fine with the site but now I am seeing issues with using a DataAdapter to fill a table.</p> <p>So here is some code, please note it's just basic outline of code as actual c...
0
1,326
Restarting quartz scheduler without getting an error
<p><strong>Context</strong></p> <p>I am trying to use the quartz scheduler in cluster mode using jdbc.</p> <p><strong>Problem</strong></p> <p>Before I started with jdbc in clustered mode I just tested the scheduler in general with the RAM store. That worked without a problem and I was able to restart the scheduler (...
0
4,159
Anaconda ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
<p>I am getting the following import error when I am trying to run a Python script in a conda environment</p> <pre><code>(squad) azada@scholar-fe00:~/Desktop/Toy-Problem-Team-2 $ python3 train.py Traceback (most recent call last): File &quot;train.py&quot;, line 21, in &lt;module&gt; from tensorboardX import Sum...
0
1,160
Get JSON in AsyncTask Android
<p>I'm trying to get JSON but I have to do it in AsyncTask , because I get this in logcat <code>AndroidRuntime(18153): Caused by: android.os.NetworkOnMainThreadException</code>.</p> <p>Here is my code:</p> <pre><code>public class LatestAlbums extends Activity { TextView t; // url to make request private...
0
1,470
"Unable to connect to remote server fail" in HttpWebRequest
<p>I am using VSTS 2008 + C# + .Net 3.5 to develop a console application and I send request to another server (IIS 7.0 on Windows Server 2008). I find when the # of request threads are big (e.g. 2000 threads), the client will receive error "Unable to connect to remote server fail" when invoking response = (HttpWebRespo...
0
1,426
drawing text within a JPanel
<p>I'm looking for the most basic description of how to draw text within a JPanel. I know there are a billion tutorials out there but none of them are clicking with me and I have some specific questions which may help others who are confused. As a setup (a testing app) I have a single class which has a JLabel, a JTextF...
0
1,457
Using xml for a configuration file
<p>I'm trying to figure out how to use <code>XmlTextReader</code> and <code>XmlTextWriter</code> for the configuration file of my program(s).</p> <p>The xml file looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Base&gt; &lt;Global&gt; &lt;some_config_value&gt;86400&lt;/some...
0
2,813
Load image from url in notification Android
<p>In my android application, i want to set Notification icons dynamically which will be loaded from URL. For that, i have used <code>setLargeIcon</code> property of NotificationBuilder in <code>receiver</code>.I reffered many link and tried various solutions but couldn't get desired output. Though i downloaded that im...
0
1,425
Generate excel sheet from html tables using jquery
<p>I wanted to generate an excel sheet once a user clicks on a button . Basically i want to do exactly what is dicussed here </p> <p><a href="https://stackoverflow.com/questions/6517106/how-to-pass-html-table-values-to-excel-sheet-cells">how to pass html table values to excel sheet cells</a> (Kalle H. Väravas answer )...
0
1,154
What are the benefits of pip and virtualenv?
<p>So everyone is telling me to use pip and virtualenv but no-one is able to explain me how it is better than my current approach. The main reason for people to use pip and virtualenv seems to be that everyone else is using it...</p> <p>I'm sure there are very good reasons to use PIP and virtualenv but I haven't been ...
0
1,322
Preferred way of using Bootstrap in Webpack
<p>Greetings one and all,</p> <p>I have been playing around with Bootstrap for Webpack, but I'm at the point of tearing my hair out. I have literally gone through loads of blog articles and they either use the 7 months outdated 'bootstrap-webpack' plugin (which, surprisingly does not work out of the box) or.. They inc...
0
1,158
405: Method Not Allowed
<p>EDIT: Summary: It seems that my web app can be accessed by anyone (only firefox or chrome) and by me using my main computer. If i try to access <a href="http://luiscarlosch.com/WebFormClean.aspx" rel="noreferrer">http://luiscarlosch.com/WebFormClean.aspx</a> from any other of my LAN it gets a 405 error</p> <p>I ca...
0
2,655
immutablejs : find if map contains key value
<p>I am trying to determine whether or not a certain part of my immutable map contains a certain key value, <code>checked: true</code>, and if so, set checked: true on the upper level. The object I am looking over looks like so:</p> <pre><code>const memo = { "Topics": { "filters": { "Psychological disorde...
0
1,030
I cannot use opencv2 and received ImportError: libgl.so.1 cannot open shared object file no such file or directory
<p>**env:**ubuntu16.04 anaconda3 python3.7.8 cuda10.0 gcc5.5</p> <p><strong>command:</strong></p> <pre><code>conda activate myenv python import cv2 </code></pre> <p><strong>error:</strong> Traceback (most recent call last): File &quot;&quot;, line 1, in File &quot;/home/.conda/envs/myenv/lib/python3.7/site-packages/cv...
0
5,757
How to prevent event propagation for "Enter" key press in ag-grid-react cellEditor component?
<p>My question primarily revolves around <a href="https://www.ag-grid.com/javascript-grid-cell-editing/" rel="noreferrer">this statement</a> in the docs w.r.t. the react component:</p> <blockquote> <p><strong>cellEditor Params</strong></p> <p><strong>onKeyDown</strong> Callback to tell grid a key was pressed - useful t...
0
1,511
Delete alarm from AlarmManager using cancel() - Android
<p>I'm trying to create and delete an alarm in two different methods which are both called at different moments in the application logic.</p> <p>However when I call AlarmManager's <code>cancel()</code> method, the alarm isn't deleted.</p> <p><strong>Here's my <code>addAlarm()</code> Method :</strong></p> <pre><code>...
0
1,620
What are en0, en1, p2p, and so on, that are displayed after executing ifconfig?
<p>When I type <code>ifconfig</code> on my Mac terminal, several information is printed. But I can't understand what they are. Can anyone briefly tell me what they are? What are <code>lo0</code>, <code>gif0</code>, <code>en0</code>, and so on?</p> <p>Here is the results of my terminal.</p> <pre><code> Last login: We...
0
1,231