title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
regex stops after first match - I need it to continue | <p>I have this regex:</p>
<pre><code>source_IP = re.findall(r':name\s+[\(]Anti-Spoof-firewallX-eth2-02[\)]\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*\s+.*:Name\s+[\(](.*)+[\)]'
</code></pre>
<p>running against the following text:</p>
<pre><code>:name (Anti-Spoof-firewallX-eth2-02)
)
... | 2 | 1,031 |
Spring Security: how to change HTTP Status for response? | <p>On unsuccessful authorization I need to return HTTP 401 status. I use Spring Security and the following setup authorization:</p>
<pre><code> @Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatch... | 2 | 1,093 |
Why are the dependencies not included in the JAR file? | <p>If I look inside the JAR file there are no dependencies in it.
I am using Netbeans 8.0 as IDE and the JDK 8 Update 25.</p>
<p>This is my <em>pom.xml</em> file:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche... | 2 | 1,541 |
Unity Android Game requests permission to read phone state but NONE of my manifests have that permission in it | <p>The only permission that i see in the manifest files that i have is : </p>
<pre><code>android.permission.INTERNET
</code></pre>
<p>yet whenever i run the game on device, it asks for permission to read phone and contacts information, when i open the manifest inside Temp\StagingArea i do see the request to read phon... | 2 | 1,483 |
Can't read file using File.ReadAllLines | <p>I am trying to make a button check each line of the file in <code>openFileDialog1.FileName</code> and if it contains one of the strings, "LCD" or "laser" and "on" on the same line, or if it contains "laser" and "off" on the same line and the string ".end" and then do something.</p>
<p>I am new to C# (started this w... | 2 | 1,058 |
Importing a type in a JSP results in "Only a type can be imported. com.sitename.ClassName resolves to a package" | <p>I'm using maven to manage dependencies and building by installing the package to <code>/apps/myapp/install</code>. The maven build runs fine and installs. I've verified my bundle's registration and status as active in the <code>/system/console</code></p>
<p>I've setup a component with the following markup in the js... | 2 | 6,516 |
how to display jquery/ajax data into select field? | <p>code:</p>
<pre><code><script>
$(document).ready(function(){
$(".field").change(function(){
field = $(".field").val();
$.ajax({
type:"POST",
data:{"field":field},
url:"potential-courses.php",
success:function(data){
$(".course").val(... | 2 | 1,070 |
why is encoder.json not found when running GPT2 small model | <p>good evening,</p>
<p><em>caveat, im not a python or machine learning expert</em></p>
<p>I'm trying to run the small instance of GPT2 , after the hype I wanted to check it out. So far I've downloaded all the prerequisites. Python, regex, tensorflow etc. but when it comes to running the script to generate the sample... | 2 | 1,519 |
How to get a simple line for average on a bar chart in jqPlot | <p>I am working with a bar chart in jqPlot where I need to show the average with a separate line on the chart. My question is how to do that? Would I need to use a Line chart for this? I have looked at few Line chart examples but they are shown as a trend in the bar chart which starts from the very first bar on the cha... | 2 | 1,655 |
UICollectionViewCell - animate cell height change when its content changes | <p>I have a really simple <code>UICollectionView</code>, using iOS 13's <code>UICollectionViewCompositionalLayout</code>. The cells have a vertical <code>UIStackView</code>, and when you press the "toggle details" button, I simple change the <code>isHidden</code> value of the <code>detailsView</code>. When the cells th... | 2 | 1,050 |
Iphone JPEG datastream contains no image using NSURLConnection | <p>I was previously downloading images for my app by using dataWithContentsOfURL to download a jpg then writeToFile to save it. </p>
<p>I recent;y started using an NSURLConnetion to do the same, but now I am getting the follwoing errors and a crash:</p>
<p>Corrupt JPEG data: 87 extraneous bytes
JPEG datastream contai... | 2 | 1,486 |
fetch post method with razor page doesn't send body | <p>I would like to trasnfer some data from the page to the page model with ajax (fetch api) post.
I manage to get to "OnPostTest" handler, but I don't recive any data - variable "json" is null.
Where is my problem?
Is it on my ajax call or in the razor page model method?
thanks</p>
<p>razor page- pa... | 2 | 1,159 |
Adjust background size on hover | <p>When you hover over the image, you will see that it will be replaced by the semi-transparent background in my code.</p>
<p>The transparent background is supposed to cover all the picture, however, it only covers the area taken by the text. </p>
<p>How do I make sure that it covers the whole picture, regardless of ... | 2 | 1,665 |
Zxing causes app to stop&exit | <p>I'm trying to add zxing as library to my android app - it must be offline so using Intent to outside app is bad as many people wouldn't have bar code scanner.
I have Zxing as library, name is "zxingLib", and in my app "IntentIntegrator" and "IntentResult" + core.jar added.</p>
<p>In my app I call zxing by button:</... | 2 | 2,871 |
Invalid UTF-8 start byte 0x8b error calling a SOAP service after receiving result of a REST call - WSO2 ESB 4.8.1 | <p>Implementing a service chain in WSO2 ESB 4.8.1 we have a sequence that calls a REST service and in the receiving sequence we call a SOAP service. In doing so, we get the following error, </p>
<pre><code><?xml version='1.0' encoding='utf-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&g... | 2 | 1,404 |
StoredProcedureQuery with multiple OUT parameter always throws expection | <p>I have procedure with IN/OUT parameter as follows:</p>
<pre><code>PROCEDURE procedureName(p_esp_message_id VARCHAR2,
p_esp_message_id_dt DATE,
p_event_bus_channel VARCHAR2,
p_esp_ev... | 2 | 7,379 |
Firebase facebook signInWithRedirect not redirecting to specified page on login success | <p>I am using Firebase's facebook signInWithRedirect but can't figure out why my application won't navigate to the specific page on redirect and instead it just returns back to the home page. I followed the steps on <a href="https://firebase.google.com/docs/auth/web/facebook-login" rel="nofollow noreferrer">https://fir... | 2 | 1,136 |
Need help on passing data from jsp to servlet | <p>Im currently new in java ee. I need help on how to pass my data from jsp to my servlet to fil up my query. Whenever i run, the error is being catch and i print out the exception. It says java.null.exception.. I couldn't find out where my error is..pls help me... thanks..</p>
<p>Here is my code: </p>
<p>UpdateProdu... | 2 | 3,249 |
BottomNavigationViewEx Null pointer exception | <p>My xml file contains the code:</p>
<pre><code><com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
android:id="@+id/bnve"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"... | 2 | 1,711 |
Overriding ToString() for debugging and logs - should the string be localized? | <p>I'm designing a .NET library that will be used by other developers making both web and desktop applications. I'm overriding <code>ToString()</code> in various classes to provide information for debugging purposes and for inclusion in application log files.</p>
<p>Some of my classes contain numbers and dates.</p>
... | 2 | 2,072 |
Python: How do I generate minecraft style terrain with pyglet? | <p>I'm currently trying to make a Minecraft clone using pyglet and python for fun, and I found a nice tutorial which I used to create a player class with movement, and a 3D block that generates in the scene. </p>
<p>Now I want to create some sort of a terrain, I read about terrain generating and I stumbled upon a func... | 2 | 2,729 |
Updating the text on a button | <p>Hi I was wondering why updating the text of a button behave different in my app.</p>
<p>I call a fragment that gets the information what the button should be updated with, I do a interface-callback from the fragment to update a global variable that the activity updates the button text.</p>
<p>The problem is that t... | 2 | 1,065 |
WPF Grid with a dynamic number of columns | <p>I am quite new to WPF, and am struggling with accomplishing a visual effect - I would like to have a two-dimensional grid of objects with a data-driven number of columns. I am trying to go with MVVM with zero code-behind. I have had a look at several posts in this regard, and have come up with the following:</p>
<... | 2 | 1,762 |
how to parse html tag using dom parser in java | <p>I am getting the value from web service, my attribute value is coming like html tag and special character can anybody tell how to parse the value</p>
<p>I am getting this exception when i parsing the value using dom parser</p>
<pre><code>org.xml.sax.SAXParseException: Attr.value missing f. WIDOWS: (position:START... | 2 | 3,307 |
Memory Error when plotting images using loops python | <p>So I have a lot of images that I am plotting for data quality control purposes. I am using nested loops to go through and extract the gzipped files and then plot and save the images as .png so they can later be referred to. I can get it to run for a while but eventually I will get a Memory Error. I don't know if I a... | 2 | 1,769 |
Merge lists in Ansible when a key/value pair from each matches | <p>I have two lists of dictionaries (port_info and int_trunk) that I am trying to merge when the value of the 'port' key matches however not every port will be represented in 'int_trunk'. In this instance, just leave the 'trunked_vlans' value blank. I am using 'with_nested' to iterate over the lists. I can't seem to... | 2 | 2,098 |
opengl error: undefined reference to `main' collect2: error: ld returned 1 exit status | <p>I modified a program trying to render a triangle and I get the following errors :</p>
<pre><code> g++ -Wall triangle_with_shader.cpp -lglut -lGLU -lGLEW -o triangle
/usr/bin/ld: /tmp/cczvlWs7.o: undefined reference to symbol 'glDrawArrays'
//usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: error adding symbols: DSO mis... | 2 | 1,726 |
android: ListView with Checkbox: row should not be focused | <p>I have a ListView with rows containing one CheckBox, some Images, TextViews and so on. If I select a row only the checkbox should activate. No focus of the row, no highlight of the CheckBox.
Currently when I select a row the background becomes blue (holo light color). Thats what I do not want. I want no colors, onl... | 2 | 1,747 |
One videoview blocked by another videoview | <p>My activity layout is shown below. Basically I have a listview menu on the left and two videoviews that I switch between depending on which menu item the user clicks.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
an... | 2 | 1,538 |
How to specify the path to config file in mongodb | <p>In config file I have:</p>
<pre><code>systemLog:
destination: file
logAppend: true
path: c:\data\log\mongod.log
storage:
dbPath: c:\data\db
journal:
enabled: true
replication:
replSetName: "rs0"
net:
bindIp: 127.0.0.1
port: 27017
security:
authorization: enabled
</code></pr... | 2 | 1,025 |
UIView animateKeyframes not working | <p>I am attempting a keyframe animation where a view is faded in, then transformed (panning and zooming), then transformed again after a delay, then faded out. The problem I am running into is the second transform starts immediately after the first transform ends, instead of respecting the delay value. This seems to ... | 2 | 1,270 |
Updating an already existing spacy NER model | <p>I want to update and already existing spacy model 'en_core_web_sm' and train it with additional data. </p>
<p>My data is in the same format as mentioned in spacy's documentation
<a href="https://spacy.io/usage/training" rel="nofollow noreferrer">https://spacy.io/usage/training</a></p>
<p>I've followed the same st... | 2 | 1,412 |
Spark: GraphX fails to find connected components in graphs with few edges and long paths | <p>I'm new to Spark and GraphX and did some experiments with its algorithm to find connected components. I noticed that the structure of the graph seems to have a strong impact on the performance.</p>
<p>It was able to compute graphs with millions of vertices and edges, but for a certain group of graphs, the algorithm... | 2 | 2,439 |
Active Admin with join table relation | <p>I am configuring Active Admin. Everything is running apart from a join table, which connects the magazine resource with the keyword resource. One magazine is defined by multiple keywords and a keyword can define multiple magazines.</p>
<p>I have two models:</p>
<pre><code>### models/magazine.rb
class Magazine <... | 2 | 1,528 |
jQuery - piece of code causing conflict problems on pages the selector doesn't exist | <p>Okay so I am developing a WordPress theme. On the single post page I have a comments div which floats down the page using some jquery. I am also running a modal popup form to log in. This is completely fine on the single page when the #commentWrapper (selector for the jquery floating effect) exists. However on p... | 2 | 1,202 |
The requested list key 'userRegisterTO.countryList' could not be resolved | <p>I was working with Struts 2.0 , Hibernate and JPA . But i got this strage error on my jsp page so please help me if you have any solution for the above problem please find the action class detail. In action class i am getting the value of <code>userRegisterTO</code> object and complete <code>countryList</code> but o... | 2 | 2,200 |
Saving Array, from blade to controller Laravel | <p>I want to save all of these data which is might be an array, into my answer table. I have tried so many ways but cant seem to find a correct solution.. can someone helped me thank you. I dont how to store the data from the answer(create.blade.php) into a database which is on the store function in the AnswerControlle... | 2 | 3,005 |
android parsing Feed RSS images | <p>I'm using this library <a href="https://github.com/matshofman/Android-RSS-Reader-Library" rel="nofollow">https://github.com/matshofman/Android-RSS-Reader-Library</a> to parse Feed RSS. I tried to edit it for get also the images but i don't know if I am in the right way and I don't know how to edit RssHandler.java
Th... | 2 | 3,159 |
How to disable an item in TreeWidget programmed in PYQT5 | <p>I draw a tree widget and set up a list with many items in the widget.</p>
<p><a href="https://i.stack.imgur.com/0ll1O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ll1O.png" alt="enter image description here"></a></p>
<p>The items are all checked by default. What I want is whenever a higher l... | 2 | 7,213 |
how to read specific row from excel file to display information on html output using PHP code? | <p>how to read specific row from excel file to display information on html output using PHP code? </p>
<pre><code><?php
include 'excel_reader.php'; // include the class
// creates an object instance of the class, and read the excel file data
$excel = new PhpExcelReader;
$excel->read('fees.xls');
// Exc... | 2 | 1,081 |
How can I get smooth movement in pygame? | <p>How can I make my character move smoothly in pygame? When I create a regular program I seem to be able to get smooth movement by decreasing the velocity (how far the character moves for each step) and decreasing the time delay so that it quickly moves small steps. </p>
<p>The code for that could look something like... | 2 | 1,100 |
POST request XML with CakePHP | <p>I'm trying to make a POST request of XML data with CakePHP 2.3.8, but I'm having some issues and I think it's dealing with authorization. First of all, what I'm trying to do is make a POST request with XML data from an action in a controller. The action which this post request is made to should save an entry in the ... | 2 | 1,395 |
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'Knight' in 'field list' | <p>I have no clue why this doesn't want to cooperate when the rest of the code using MySQL works perfectly, It's just when I try to set a string.</p>
<p>The MySQLManager class:</p>
<p><a href="http://pastebin.com/RWavasPh" rel="nofollow">http://pastebin.com/RWavasPh</a></p>
<p>I do alter a table to add another colum... | 2 | 1,069 |
Override (globally override key binding in emacs) temporarily | <p>I use the method stated here : <a href="https://stackoverflow.com/questions/683425/globally-override-key-binding-in-emacs">globally-override-key-binding-in-emacs</a></p>
<pre><code>(defvar my-keys-minor-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-i") 'some-function)
map)
"my-keys-... | 2 | 1,229 |
HTTP POST fails when the body has emoji in it | <p>I am doing an HTTP POST for anything the user enters in uiTextField. The Text is captured in NSString which is then added to a NSDictionary. It then gets converted to a JSON and finally to NSData as UTF8 for the HTTP Body.</p>
<p>This works perfectly if the user had entered plain text. However, if the user entered ... | 2 | 1,184 |
Keeping KEYS in correct ORDER in NSDictionary/NSArray from JSON | <p>I have a JSON array returning from a request.<br/>
Data is as such (it comes from external source and cannot be changed from server):</p>
<pre><code>[{"clients":
{"name":"Client name here","telephone":"00000","email":"clientemail@hotmail.com","website":"www.clientname.com"}
}]
</code></pre>
<p>I receive the JSON a... | 2 | 1,252 |
mobx-persist not persist my data in local storage | <p>Recently i'm working with Mobx and works well but when refresh the page the data lost and is fine this but i want to retain data in localStorage. Mobx-persist is for save data in localStorage and i implemented it in my project but doesn't work and i don't why.</p>
<p>this is my authStore:</p>
<pre><code>import { obs... | 2 | 2,680 |
Generic where condition in Entity Framework Core | <p>I'm building a Web API application which use Unit of work design pattern. I've created a repository with search function:</p>
<pre><code>public IQueryable<User> Search(SearchUserViewModel parameter)
{
// Find all user from database
var users = GetAll();
// Id has been defined.
if (parameter.I... | 2 | 1,499 |
How can I get nested virtualization working on e2-micro GCP VM? | <p>I'm trying to utilize the nested virtualization feature on Google Cloud Platform (GCP), however I was unsuccessful when attempting to use it. Here's the procedure I followed, according to the <a href="https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances" rel="nofollow noreferrer"... | 2 | 1,500 |
Position relative to screen size | <p>before I start to explain my problem, I just wan't to say that even if this subject already exist I haven't found any solution working, it has been 1 week that this problem is now blocking, I really need help. So the problem is that I started to create a website and I tried it on different screen resolution, but it ... | 2 | 2,368 |
Java.lang.StackOverflowError Excel in spring boot jpa | <p>I have a problem I dont know how to track the StackOverFlowError it says And the converting to datatypes is okay but I dont know what the error comes from: How to fix this issue? Can you please help what is the most approach to track this error to generate the list and save it to database?</p>
<pre><code> at jav... | 2 | 2,740 |
HTTP error on adding large data using jquery ajax | <p>I have created a good html/javascript program in displaying ajax in my jqgrid. But just recently, I noticed that when I try to save large or many data to save to my table line, it will return <code>http:error</code>.</p>
<p>I really don't understand whats wrong when I can successfully saved small numbers of lines. ... | 2 | 1,044 |
MVVM Binding to Custom Control in Windows Phone | <p>I have the following simple custom control that I have defined for a Windows Phone Application. The XAML for the control is as follows : </p>
<pre><code><UserControl x:Class="PhoneApp1.MyControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xa... | 2 | 1,076 |
How to get a callback every time faceid/touchid authentication fails | <p>We have a requirement where we have to block the user for 24 hours if Face ID or Touch ID fails for 5 consecutive time. </p>
<p>In Face ID, I am using the fallback to call authentication manager again, and after total of 6 attempts (2 in each call), I block the user in the fallback method itself.</p>
<p>In Touch I... | 2 | 2,397 |
How do I stop Nhibernate log4net conflicting with existing log4net? | <p>I'm very new to this so I apologise if my question isn't well structured or just in the wrong place, etc. I've had a good look for solutions to this and tried a number of different approaches but haven't found anything that works so....</p>
<p>I have a solution that makes use of Nhibernate, and consequently must us... | 2 | 1,057 |
How to create dynamic dropdown from nested object | <p>How to bring the second selection drop down dynamically from the nested array objects. i am able to get the first drop down data but on select of the fist selection list i want to bring the list of processors.</p>
<p>My Json data is as below. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-conso... | 2 | 1,391 |
Use jQuery to add an Active class to active tab elements depending on loaded Page | <p><strong>MY QUESTIONS</strong> are: </p>
<ul>
<li><p>How can I add a class to an element unsing jQuery, or anything else for that matter, to the active tab?</p></li>
<li><p>Have is so that the tab that dropdown is the one that contains the active tab & not always the Company one.</p></li>
</ul>
<p>In sort I nee... | 2 | 5,318 |
nested svg inherited sizes | <p>Two mysteries, or maybe they are the same. All the rectangles in the below are filling in for graphics, which have been removed to simplify the description.</p>
<p>Mystery #1: A height for #mbfluid is given, but it is not honored. The #mbfluid rectangle should grow dynamically based on the width of #mbsvg. So myste... | 2 | 1,475 |
Tomcat 7 sessions end unexpectedly Spring Security with message: HttpSession returned null object for SPRING_SECURITY_CONTEXT | <p>We are facing an issue with our webapp deployed on Tomcat 7. Users are getting kicked out of the system even when its not under load. This is also happening when we run the application locally within eclipse.</p>
<p>The application uses Spring Security 3.2.5 to authenticate users. After successful login the applica... | 2 | 4,993 |
javax.persistence.EntityManager missing a method | <p>I have recently tired to fix the problem with maven dependencies in my java web project and I deleted all things from the repository folder, after that I did "maven update project" in eclipse and the problem was fixed, however other error appeared. The method I was using <code>createNamedQuery(String, Class<T>... | 2 | 4,935 |
Android studio failed to instantiate one or more classes after update to SDK 26 | <p>After downloading SDK 26 and updated my project I had some library conflicts which I successfully fixed. But I have this persistent issue that it is tackled nowhere in the forums or SO.</p>
<p>My XML preview is broken. I can build and run the program but I can't see anything because of that: </p>
<p><a href="https... | 2 | 1,764 |
How to equally set the column width in JavaFX table using Scene Builder? | <p>I am building a table in Java Fx using Scene Builder. The parent of the table is a Grid Pane. Normally I use computed size to the row's, the column's Min width, Pref Width and Max width to equally adjust the space among the components inside of the grid. And I use Hgrow accordingly to my required use. But the comput... | 2 | 1,519 |
Manual parameter updates using tf.assign in TensorFlow | <p>Given the following example code (to work with):</p>
<pre><code># Generate random data
x_train = np.random.rand(64, 16, 16, 8)
y_train = np.random.randint(0, 5, 64)
one_hot = np.zeros((len(y_train), 5))
one_hot[list(np.indices((len(y_train),))) + [y_train]] = 1
y_train = one_hot
# Model definition
class FeedForwar... | 2 | 1,857 |
How to prevent UIPickerView from closing when the user selects a field? | <p>I am trying to prevent my <code>UIPickerview</code> from closing when a field is selected by a user. I want the user to be able to select a field without <code>UIPickerview</code> dismissing automatically. I have tried so many things such as trying the following but none of them helped:</p>
<pre><code>_txtfield.hid... | 2 | 1,335 |
How to create a view for details of a single post and url in django? | <p>I am creating a website with a blog application in django 2.2. I only have a problem with the last step, which is to create a view for a single post. Unfortunately, I don't know how to finish it.</p>
<p>I created the simplest view I can, but after entering it, I get a 500 error from the server.</p>
<pre class="lan... | 2 | 1,901 |
signed integer is greater than maximum in scikit-learn in python | <p>I am working on sentiment analysis of around 30,000 tweets. python version is 2.7 on linux. In the training phase I am using <code>nltk</code> as a wrapper for <code>sklearn</code> library to apply different Classifiers such as Naive Bayes, LinearSVC, Logistic regression , etc. </p>
<p>It works fine when the number... | 2 | 1,226 |
Cannot vagrant ssh after successful vagrant up? | <p>I am on OSX El Capitan, using Vagrant 1.8.1 and Virtualbox 5.0.20 (latest versions in both cases). I am trying to <a href="https://i.stack.imgur.com/rgRwR.png" rel="nofollow noreferrer">set up a VM as described here</a>. </p>
<p>I have run <code>vagrant up</code> with no obvious errors:</p>
<pre><code>$ vagrant up... | 2 | 1,598 |
NodeJS + PhantomJS + phantomJS-node + JQuery + click a link is not working | <p>I tried to use the phantomjs(v1.9.8) module (<a href="https://www.npmjs.com/package/phantom" rel="nofollow">https://www.npmjs.com/package/phantom</a>) for node.js The goal was just to display the current url and navigate by programatically clicking the Next link using JQuery. Im unsuccessful in clicking the Next lin... | 2 | 1,491 |
Minimized video call and shared view with Zoom SDK | <p>I'm trying to integrate Zoom SDK meetings in an Android app. I've struggled for a while now with using the custom meeting ui and learning how to use Zoom's video view called <code>MobileRTCVideoView</code>. Here's the interface I would like to create:</p>
<p><a href="https://i.stack.imgur.com/vvRGQ.png" rel="nofoll... | 2 | 1,377 |
PowerBI Dynamic binning (ranges change) based on value of measure | <p>I’m trying to represent some continuous data via binning. Continuous weighting data of an area should be binned as: VeryHigh, High, Low, VeryLow. The weighting values are based on an interaction between certain Types of events grouped by an Area and so can change depending on the Type selected by the report user.</p... | 2 | 2,517 |
spring boot & thymeleaf | <p>I use spring boot 1.5.6 release, and thymeleaf 3.0.0.release, thymeleaf-layout-dialect 2.0.0.</p>
<p>I wrote a html file, like below.
<a href="https://i.stack.imgur.com/y2okD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y2okD.jpg" alt="enter image description here"></a></p>
<p>header_top and ... | 2 | 1,572 |
latlng function argument | <p>My main goal with the program in question is to generate a Google map that shows the location of a specific building. </p>
<p>Due to Google limitation reasons, I have generated and stored all latitudes and longitudes for all the buildings that I analyze in a MS SQL database(it is a real estate web site). Everytime ... | 2 | 4,650 |
Selenium IDE:- Error on a basic recorded login script | <p><em>Configuration Manifesting</em></p>
<ul>
<li>Windows 7.</li>
<li>FireFox 22.</li>
<li>RAM 2 GB.</li>
</ul>
<p>The following error occurs when we try to click on login button:- </p>
<p><strong>[error] Unexpected Exception: fileName -> chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js, lineNumber ... | 2 | 2,467 |
How do I get the target element event of accordion-group on isOpenChange is triggered | <p>Well I want to expand the accordion(collapsable) when I click on the button and scroll the opened accordion to the top of the view.</p>
<p>I am using ngx-bootstrap for this it has an "isOpenChange" event which triggers when any accordion is expanded. Here I am trying to get the event.target of the accordion-group w... | 2 | 1,385 |
Could not find method dependencyResolutionManagement() for arguments [build_ckqar66poaozqtyzw4dyn6sx4$_run_closure3@a921a13] on project app | <p>I have a trouble in my build.gradle file because there is a method called dependencyResolutionManagement() but I don't know how to solve it.
The error says that there are not method.
This is the message:
Also I have an error that says 'Cannot Resolve symbol 'RepositoriesMode' on my build gradle.
I think I was modify... | 2 | 1,444 |
Jedis ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context | <p>all of a sudden when I try to send a message, I get this error. I don't know why. This has worked fine for a while but then it just stopped working when I tried to send a message. Sometimes it actually sends the message even though the error is thrown but in the listeners, the message is null. I have no idea why thi... | 2 | 2,576 |
Doubts about how to represent a graph with adjacency lists | <p>I have to write a class that implements the following interface:</p>
<pre><code>public interface Graph<V> {
/**
* Adds vertex to the graph.
*/
boolean addVertex(V vertex);
/**
* Adds the edge (vertex1, vertex2) to the graph.
*/
boolean addEdge(V vertex1, V vertex2);
/... | 2 | 1,208 |
PHP bootstrap 4 modal delete button in each row | <p>Good day! I got a error that says "Undefined variable: id".</p>
<p>I created a table which has a delete button in each row, when clicked pops up an modal and asks if I want to delete the row. But when ever I click on the delete button it says the error Undefined variable: id and doesn't delete the data.</p>
<p>Her... | 2 | 3,281 |
Imagecreate/GD issues(PHP) | <p>I'm using the following function that I slightly tweaked from the php site a user posted.</p>
<pre><code>function createImgText ($string=NULL, $fontsize=0, $marginX=0, $imgH=0, $fontfile=NULL, $imgColorHex=NULL, $txtColorHex=NULL){
if($string != ""){
//header("Content-type: image/png");
//
$spac... | 2 | 1,281 |
WPF Attached Property Content Control | <p>I have an attached property to provide context help for my varying uielements in my WPF application.</p>
<p>The attached property is set to the child property of a border control that is the Child property of a popup control that is used to provide context sensitive help.</p>
<p>Problem is the color foreground col... | 2 | 10,513 |
How to Call FrameLayout slider in Different Activities in Android | <p>I have 3 activity say <code>first_activity</code>,<code>second_activity</code>,<code>third_activity</code>.I have used FrameLayout to open a slider .!</p>
<p>Now what I want to open the slider on click of button that is available on all three activities.</p>
<p>So now like in the Test 1 there is a button on the le... | 2 | 2,479 |
How to bind ascii stream to a prepared statement | <p>I am testing fastload example code from an <a href="http://developer.teradata.com/doc/connectivity/jdbc/reference/current/samp/T20208JD.java.txt" rel="nofollow">official teradata website</a> . To err on the side of caution , I use the sample <code>FastLoad1.csv</code> located on their <a href="http://developer.tera... | 2 | 1,966 |
C++ Forward Declaration of Objects | <p>i'm trying to figure out how to forward declare objects where new objects are storing other new objects for example:</p>
<p>A Queue, holding Nodes, these Nodes hold Data items which hold 2 Lists or preferably 2 Queues.</p>
<p>Here is my Data.h</p>
<pre><code>#ifndef DATA_H_
#define DATA_H_
class List;
class Data... | 2 | 1,708 |
Send a recorded file via Filetransfer with Cordova/Phonegap | <p>I am trying to send a voice recording that I recorded via the Media plugin.</p>
<p>When I try to send the file I get this FileError.NOT_FOUND_ERR error:</p>
<pre><code>Error opening file /myRecording100.wav: Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo... | 2 | 1,045 |
Makefile: Converting C-code to mex code (Linking error) | <p>I have a <code>C-code which works fine</code> using makefile. Now, I am trying to <code>convert it to mex</code> file so that I can run it from Matlab. Here also, I am <code>using makefile approach</code>. But, makefile for mex gives me error. </p>
<p>Here is the <a href="http://www.jasoncantarella.com/wordpress/so... | 2 | 5,704 |
"Backend not found" with netlifyCMS and Gatsby | <p>I've been trying to setup NetlifyCMS on a really basic Gatsby app made via cloning the <a href="https://github.com/gatsbyjs/gatsby-starter-default" rel="nofollow noreferrer">gatsby-starter-default</a>. I followed the <a href="https://www.gatsbyjs.org/docs/sourcing-from-netlify-cms/" rel="nofollow noreferrer">Sourcin... | 2 | 1,875 |
SQL multiplying rows. Data from the same table next to each other in select | <p>I have four tables: Documents, Items, Articles and DocumentRelations. In Documents there are three types of documents, this question relates only two of them: order and invoice. Invoice is generated based on orders. Invoice can have multiple orders and one order can have multiple invoices. Order and invoice can have... | 2 | 2,083 |
Update ng-select item after added new item from modal in angular 4 | <p>I need to update ng-select in angular 4 after add new value from modal </p>
<p>In console.log I can view the new added item in list, but it didn't reflect in drop-down</p>
<p>Can any one please suggest</p>
<p>I have following code</p>
<blockquote>
<p>city.component.ts</p>
</blockquote>
<p>export class CityCom... | 2 | 1,219 |
Rotate, scale and pan element in UWP | <p>My goals are quite simple. I want to be able to do multiple transformation of an image in my UWP application using primarily touch screen gestures. More precise I want to handle each manipulations like</p>
<blockquote>
<p>Pan (Translate) - One finger gesture to pan image around the canvas.</p>
<p>Scale - pin... | 2 | 1,220 |
iOS HTTP Post Redirection Handler Not Working | <p>I am new to iOS development. I was just trying to do a post request to a server, but encountered problems mentioned <a href="https://stackoverflow.com/questions/1446509/handling-redirects-correctly-with-nsurlconnection">here</a> with server redirection. I used the event handler mentioned in the answer, but things st... | 2 | 1,854 |
Find angle between two objects while taking another object as center in Unity using C# | <p>I am trying to find angle between two stationary objects while taking a moving object as center. I have tried a lot like finding distance between all the objects and then applying <a href="http://www.teacherschoice.com.au/maths_library/trigonometry/solve_trig_sss.htm" rel="nofollow noreferrer">cosine rule</a> to fin... | 2 | 1,789 |
Using Xpath to click on link | <p>I seem to be having issues clicking through to the link that is in <code>//table/tbody/tr[2]/td[2]</code>.</p>
<p>I have been using the following line of code:</p>
<pre><code>find_element_by_xpath("//table/tbody/tr[2]/td[2]/a[@href]"".click()
</code></pre>
<p>this is the table I wish to extract the data from </p>... | 2 | 1,044 |
Only using OpenStreetMap in this leaflet map? | <p>I'm new to creating maps with map layers and tiles, so please bear with me.</p>
<p>So I'm working on a map to display points, and I've read that <code>OpenStreetMap</code> is free, and <code>mapbox</code> isn't. For this reason we only want to use <code>OpenStreetMap</code>.</p>
<p>This HTML example draws a map an... | 2 | 1,160 |
Is there a better way to save a custom class to NSUserDefaults than encoding and decoding everything with NSCoder? | <p>My current class has around 50 lines just encoding and decoding variables in order for my class to be NSUserDefaults compatible. Is there a better way to handle this?</p>
<p>Example: </p>
<pre><code> init(coder aDecoder: NSCoder!) {
lightEnabled = aDecoder.decodeBoolForKey("lightEnabled")
soundEnabled = aD... | 2 | 1,128 |
matplotlib very slow in plotting | <p>I have multiple functions in which I input an array or dict as well as a path as an argument, and the function will save a figure to the path of a particular path.</p>
<p>Trying to keep example as minimal as possible, but here are two functions:</p>
<pre><code>def valueChartPatterns(dict,path):
seen_values = C... | 2 | 1,133 |
Android play video in surfaceview NullPointerException | <p>I try to play video in surfaceview. I use Fragment (extends Fragment) and I have <code>NullPointerException</code>. I have no idea what am I doing wrong. First time I used Activity and in Activity project worked perfect but I use Fragment and I have error</p>
<p>This is a my source</p>
<pre><code>public class La... | 2 | 1,251 |
Can't connect to sqlserver | <p><strong>Im trying to install asp.net membership system on a remote sql server but this error shows up:</strong></p>
<p>Setup failed.</p>
<p>Exception:
Unable to connect to SQL Server database.</p>
<hr>
<h2>Details of failure</h2>
<pre><code>System.Web.HttpException (0x80004005): Unable to connect to SQL Server ... | 2 | 1,226 |
Jersey JAX-RS auto-generated webservices and MSSQL Identity fields | <p>I can't get working the Jersey RESTful webservices, autogenerated with Netbeans.</p>
<p>When POSTing the JSON like this,</p>
<pre><code>{"name":"Some New Site"}
</code></pre>
<p>the POST query returns me this,</p>
<pre><code>Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert
expli... | 2 | 1,428 |
Basic Win32 WebView2 example not working in pure C | <p>A new problem blows my mind lately: a very simple code using the WebView2 library from Microsoft works if compiled as C++ but not as C. What could be causing the problem? I tried all sorts of fixes, like using an older version of the WebView2 library, using Edge Canary or beta or a different version of WebView2 Runt... | 2 | 7,935 |
Setting Session Timeout in ASP.net Core 3.1 | <p>I have a web app .net core 3.1 razor pages. I have the session timeout set to 30 minutes, however it logs the current user out after 10 minutes of inactivity. The global IIS settings are set for 60 minutes on the server. Here is my code in Startup.cs. What am I missing? Any help is greatly appreciated. Thanks!</p>
<... | 2 | 1,366 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.