title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Can generate EDMX but can't run query on Oracle DB
<p>I can't get working EF with my Oracle DB, on Visual Studio 2013, .NET 4.0.</p> <p>This is what i have done:</p> <ul> <li>Installed ODTwithODAC121012 (I also have installed previously ODAC1120320_x64)</li> <li>Set up a new connection successfully</li> <li>Generated an edmx rom my DB successfully (I have choosen EF5...
2
1,343
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8000/api/task-list/
<p>I'm working on a vuejs and django rest single page application. the problem is so clear, that I'm getting the <strong>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource</strong> error.</p> <p>My vuex code be like:</p> <pre><code>mutations:{ addTask: function(){ ...
2
1,228
How to change @INC lib contents by using no lib command in PERL
<pre><code>if (@arr =~ /env1/) #checking enviroment { # Want to flush the @INC contents using below no lib # --&gt; Command before the perl get the libraries of my choice at the time of compilation no lib "//First/lib/"; #flush INC no lib "//Second/lib/"; #flush INC print log1 "INC before current...
2
1,126
how to build a graph from tuples in graphx and label the nodes after ?
<p>Some context can be found <a href="https://stackoverflow.com/questions/31928133/how-to-create-a-graph-from-arrayany-any-using-graph-fromedgetuples/31929807?noredirect=1#comment51792711_31929807">here</a>, the idea is that I have created a graph from tuples collected from a request on a Hive table. Those correspond t...
2
1,513
PHP - How to extract blocks from a text file by reading it line-by-line
<p>I have an input text file like the following:</p> <pre><code>BEGIN #1 #2 #3 #4 #5 #6 1 2015-05-31 2001-11-24 'Name Surname' ID_1 0 2 2011-04-01 ? ? ID_2 1 2 2013-02-24 ? ? ID_3 1 2 2014-02-28 ? ...
2
4,306
Bootstrap datatable not refresh on underlying data changed (knockout binding)
<p>I am using knockout to bind my data to table and on page startup everything is working fine as expected. When i changed the underlying data by calling getDataByFilter() function, datatable data get refresh by knockout and everything is working fine as well. </p> <p>Thing started to corrupt when i added paging and s...
2
2,106
How do I make opengl objects appear on mouse click?
<p>What I need to do is click somewhere on my OpenGL viewport and have an object render in that spot. I already know the basic stuff, i.e. creating the window, detecting mouse clicks, getting the click coordinates and draw objects. The missing link I have is getting the coordinates right. I need to determine what the (...
2
2,632
Safely defining variables for public callback functions in javascript
<p>I am working with the YouTube iFrame API to embed a number of videos on a page. Documentation here: <a href="https://developers.google.com/youtube/iframe_api_reference#Requirements" rel="nofollow">https://developers.google.com/youtube/iframe_api_reference#Requirements</a></p> <p>In summary, you load the API asynchr...
2
1,231
Get Markers dynamically in Google Map
<p>I have a list of Google map addresses in database and i want that if i give the latitude &amp; longitude of one of the address form my list.Than the all the markers comes nearer to this point.and the markers should be from my database list.</p> <p>For Example :if i have a list of 20 schools with their latitude &amp...
2
1,252
accessing resources in next steps spring batch
<p>Hello I have the follow Tasklet in my spring batch application:</p> <pre><code>public class FileMovingTasklet implements Tasklet, InitializingBean { @Value("${positionFile.source-path}") private String sourcePath; @Value("${positionFile.local-path}") private String localDirectory; @Value("${...
2
2,163
React Hooks Problem: Unhandled Rejection (TypeError): Cannot read property 'signup' of undefined
<p>I'm trying to implement the useAuth hook from <a href="https://usehooks.com/" rel="nofollow noreferrer">https://usehooks.com/</a></p> <p>useAuth.js</p> <pre><code>// Hook (use-auth.js) import React, { useState, useEffect, useContext, createContext } from "react"; import axios from 'axios'; //Credentials const ...
2
6,283
How to put a validation for bootstrap time picker so that it never exceeds given minutes?
<p>I have got two fields inside a form <strong>timervalue</strong> and <strong>warmupvalue</strong> (timervalue is always in Minutes .)</p> <p>How to put a validation for timepicker so that it never exceeds given minutes ?</p> <p>This is my code </p> <pre><code>&lt;form id="update-form" class="form-horizontal"&gt; ...
2
1,144
Null Reference Exception from Gridview DataKey
<p>With this site, I am attempting to insert a row in a database through a selection on a gridview row. I've got everything working well except for collecting the primary key from the gridview. I've tried all I can find to no avail. I'm not great with this language as of yet, but my code is below:</p> <pre><code>pr...
2
1,233
Is stability of std::remove and std::remove_if design fail?
<p>Recently (from one SO comment) I learned that <code>std::remove</code> and <code>std:remove_if</code> are stable. Am I wrong to think this is a terrible design choice since it prevents certain optimizations?</p> <p>Imagine removing the first and fifth elements of a 1M <code>std::vector</code>. Because of stability,...
2
1,222
SSL Cert for WCF auth
<p>I've developed an application which starts several WCF Service which use the SecurityMode.Message to encrypt the communication.</p> <p>It's working, but, it's very complicate, because we have to generate a SSL cert and put it in specific store, on the server and on the client.</p> <p>The problem is that the custom...
2
1,094
How to convert String into number and sort it?
<p>Could somebody tell me the way to break down problem. The requirement is display a menu with choice bubble sort, insertion sort. Allow user to input infinite number and sort those numbers base on their choice. I am lost. This is the code I have been working on. I am confused how to let user input a String and split ...
2
1,292
qtip2 reposition on target change
<p>I'm using <a href="http://craigsworks.com/projects/qtip2/" rel="nofollow">qtip2</a> to add a qtip next to the selected radio button among a set of grouped radio buttons. I can display the qtip correctly when the page loads, but when the selected radio changes, I'd like the qtip to follow along and point at the newly...
2
1,249
Merge two dataframes with duplicate
<p>I have two data frames which look like and I want to merge them based on the countries</p> <p>df1:</p> <pre><code>+-------------------+-------------------+--------------+----------+----------+ | Country/Region | ObservationDate | Confirmed | Deaths | Recovered| +-------------------+-------------------+--...
2
2,134
How to Create a JPanel as the main class
<p>Here is the Subclass which extends from the Jpanel. At the moment I don't have a main driver program which is the Jpanel. May you help me create one?</p> <p>Here is the subclass of the program that shows a pair of dice that are rolled when the user clicks the applet.</p> <pre><code>import java.awt.*; import java.a...
2
1,225
jQuery Autocomplete - Prevent submit of anything that is not a value from the autocomplete array?
<p>I am trying to create a "jump to page" type of search on a website using a jQuery autocomplete search form.</p> <p>On this form, I have two text input fields. One is the one the user sees (#tags) and the other is hidden (#propertylink - I made this visible in the JSFiddle so its easier to understand what is going o...
2
1,172
Django-rest-framework serializer fails to save model instance
<p>I am using DRF. My models.py:</p> <pre><code>class Farm(models.Model): farmer = models.ForeignKey(User, verbose_name="Farmer of this farm") name = models.CharField(max_length=15, blank=False, verbose_name="Farm name", help_text="Please give a single word name for your farm.") address = models.TextField...
2
1,024
How to get a bean dynamically using Custom Qualifier Annotation
<p>We're using Custom Qualifier Annotations to create and inject beans. How can we select a bean dynamically at runtime by just specifying the Custom Qualifiers. </p> <p>Custom Qualifier : </p> <pre><code>@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.TYPE, ElementType.PARAMETER }) @Retention(Re...
2
1,259
Lighting for JavaFX pano viewer
<p>I am currently trying to set up a panorama viewer in JavaFX using its 3D features. I think I got the geometry right (3D sub-scene, TriangleMesh, etc.) but I am fighting with the proper lighting. What I need is actually no lighting at all, just the geometrically correct display of the original colors of the texture i...
2
2,232
Is it possible to make a Codedeploy BlueGreen deployment to ECS use healthcheck data?
<p>I haven't been able to do this. I have healthchecks configured on my NLB's two target groups and they report healthy, but the deployment will take place and succeed even if the target group that is being switched to never becomes healthy.</p> <p>I can use alarms and lambda based tests to rollback of course, but I'm...
2
1,531
Mule - Transform XML to SOAP message
<p>I receive a <code>JSON</code> message to my <code>mule flow</code> like this:</p> <pre><code>{ "book": { "author": "Gambardella, Matthew", "title": "XML Developer's Guide", "genre": "Computer", "price": "44.95", "publish_date": "2000-10-01", "description": "An in-depth look XML" } } </co...
2
1,037
Changing the layout of DatePicker
<p>Is there any way to reformat the datePicker so that instead of getting "mm/dd/yyyy" you can get "dd/mm/yyyy" or even "dd/mm/yy"</p> <p>This is my current code.</p> <pre><code>import android.app.Activity; import android.app.DatePickerDialog; import android.os.Bundle; import android.view.View; import android.widget....
2
1,324
Ajax-MySql-Php issue (submit text from form, send via AJAX to php script, back to div)
<p>I would like to send data to a MySql DB from a form via AJAX and a PHP script. I can get it perfect using option selection in the form, but I simply cannot get it using a text submit form.</p> <p>First what works:</p> <h1>HTML Form:</h1> <pre><code>&lt;form&gt; &lt;select name="users" onchange="showUser(this.valu...
2
1,150
Where does this unspecified error comes from?
<p>I'm trying to format any kind of variables to achieve some kind of <code>toString()</code> method.</p> <p>It's working for pretty complex objects and arrays, handling circular references, but when I try to call it on a jQuery object: <code>format($("body"))</code>, for testing it on large complex objects, I got thi...
2
1,548
How to get item value when editItem function is called in jsGrid
<p>in my jsGrid config, I have called <code>editItem</code> function like this:</p> <pre><code> editItem: function(item) { var $row = this.rowByItem(item); if ($row.length) { console.log('$row: '+JSON.stringify($row)); this._editRow($ro...
2
1,033
Java Inheritance - Getting a Parameter from Parent Class
<p>I'm trying to take one parameter from the parent class of Car and add it to my array (<code>carsParked</code>), how can i do this?</p> <p>Parent Class</p> <pre><code>public class Car { protected String regNo; //Car registration number protected String owner; //Name of the owner protected St...
2
1,060
Uncaught exception when running tests: java.lang.NoClassDefFoundError: scala/collection/mutable/ArrayOps$ofRef
<p>I have a project setup using Intellij Idea scala sbt.</p> <blockquote> <p>sbtVersion = 1.2.8, scalaVersion = 2.13.0</p> </blockquote> <p>I am trying to setup gatling but i get the following errors after i run the command :</p> <pre><code>gatling: test </code></pre> <blockquote> <p>[error] Uncaught exception ...
2
1,371
how to bind image with specific height and width in repeater control
<p>i have repeater control that have specific template for my web site jquery slider. how ever i have table name tbl_Slide_master that have slide details to show. this table have two columns like Img_height and Img_width as int data type for setting image properties in repeater control. for further information i includ...
2
1,635
JavaFX: ComboBox in TableView with different content for each row
<p>I try to create a tableview with a different content for a combobox for each row. The user could add an entry to the tableview per button and the object of this entry define the content of the combobox (ObservableList will be changed in background, means it will be filled with new items after clicking a button). I s...
2
1,302
AWS SES SendRawEmailAsync not entertaining BCC
<p>I am sending the email using AWS SES Api, by converting the mail message into the stream, but i am not able to send the BCC. </p> <pre><code>private async Task&lt;bool&gt; SendMessageUsingAWSProfileAsync(EmailMessage message, CancellationToken token) { MailMessage mailMessage = GetMailMessage(message);...
2
1,686
Spring security custom filter initialization
<p>I am getting this error when i add filter-chain-proxy bean. I think I must create a bean with named securityContextPersistenceFilterWithASCTrue but there is no such a bean shown at examples. Is there any solution?</p> <pre><code>SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationExc...
2
1,246
Correct method to implement onclick button in android
<p>I am doing a login page and have the following codes as below. The moment I open up this codes </p> <pre><code> // Login button clicked // ok = (Button)findViewById(R.id.btn_login); // ok.setOnClickListener((android.view.View.OnClickListener) this); </code></pre> <p>My app crashes. I ...
2
3,240
Moving in-page CSS to external file
<p>When I put the CSS below in-line, in the head section of HTML document, everything seems to work fine. However, when I move the CSS to an external file, it does not work as it did when inline.</p> <p>My question is, when I move the CSS code to an external file, do I need to change anything? Why does it not work in ...
2
1,030
Request to HLS/DASH URL for Reddit-hosted video through XHR results in “CORS header ‘Access-Control-Allow-Origin’ missing” error
<p>I'm trying to use the hls.js library for displaying Reddit hosted videos from the HLS/DASH playlist. However, accessing any Reddit HLS/DASH url, such as <a href="https://v.redd.it/5r0nz8sywgl41/DASHPlaylist.mpd" rel="nofollow noreferrer">this one</a> through XHR will fail due to, what the error says is a Same Origin...
2
2,473
Hos to use rsyslog to ship non-syslog files to remote server?
<p>I've been following this <a href="https://techpunch.co.uk/development/how-to-ship-logs-with-rsyslog-and-logstash" rel="nofollow">rsyslog/logstash article</a> to try to ship my applications' log files to a remote server, via rsyslog. From that page, here are the steps I've taken. Note that firewall and SELinux are of...
2
1,062
Kendo Grid Drop-Down column with conditional formatting
<p>I have a grid I'm working on, and some of the columns are Boolean (true/false). I want them to display as "Yes/No" in the column. I also am using a drop-down to change the value. The issue I am having is that once I select the value form the drop-down, it doesn't display the new value when I leave the line. But ...
2
1,220
google-services plugin could not detect any version for com.google.android.gms or com.google.firebase - strange behaviour
<p>I have project with 4 modules:</p> <ul> <li>app (main)</li> <li>common-lib</li> <li>C</li> <li>D</li> </ul> <p>I have correctly set firebase as states here: <a href="https://firebase.google.com/docs/android/setup" rel="noreferrer">https://firebase.google.com/docs/android/setup</a></p> <p>In my <strong>app module<...
2
1,188
Handling currency conversion in SQL Server T-SQL
<p>I have attempted to build an SQL script in MS SQL Server T-SQL to split a Sales Invoice Revenue measure into 4 measures representing the following:</p> <ul> <li>Transaction Sales Revenue = The revenue in the originating currency</li> <li>Home Sales Revenue = The revenue represented in the local division currency (h...
2
3,444
Kafka topic with Variable nested JSON object as KSQL DB stream
<p>I'm trying to join two existing Kafka topics in KSQL. Some data samples from Kafka (actual values redacted due to corporate environment):</p> <p>device topic:</p> <pre><code>{ &quot;persistTime&quot; : &quot;2020-10-06T13:30:25.373Z&quot;, &quot;previous&quot; : { &quot;device&quot; : &quot;REDACTED&quot;, ...
2
2,843
springboot client for secure soap
<p>I'm trying to access a secure SOAP service from a springboot client and I have this error</p> <blockquote> <p>StartTransaction Started... equifax | Start transaction ... equifax | Service initialise equifax | 2018-09-20 07:50:38.512 INFO 1 --- [nio-7070-exec-1] o.a.c.w.s.f.ReflectionServiceFactory...
2
1,572
Error when shutting Tomcat down
<p>When I shutdown Tomcat I get the following error and I'm not sure how to go about fixing it:</p> <pre><code>[root@jaws bin]# shutdown.sh Using CATALINA_BASE: /usr/share/apache-tomcat-7.0.16 Using CATALINA_HOME: /usr/share/apache-tomcat-7.0.16 Using CATALINA_TMPDIR: /usr/share/apache-tomcat-7.0.16/temp Using JRE...
2
1,097
From pdf text to tidy dataframe with file names in document column
<p>I want to analyse text from almost 300 pdf documents. Now I used the <code>pdftools</code> and <code>tm</code>, <code>tidytext</code> packages to read the text, coverted it to a corpus, then to a document-term-matrix and I finally want to structure it in a tidy dataframe.</p> <p>I've got a couple questions:</p> <u...
2
1,536
Jquery Ajax responseText returns undefined but when i log it as an object it returns the ajax text
<p>responseText returns undefined but when i log it as an object it returns the ajax text. I think it might have something to do with the readystate not being ready before it assigns the text to the variable</p> <p>When I do this:</p> <pre><code>function loadTrack(){ var min = -10; var max = 10; var rando...
2
2,198
Will creating a background thread in a WCF service during a call, take up a thread in the ASP .NET thread pool?
<p>The following code is part of a WCF service. Will eventWatcher take up a thread in the ASP .NET thread pool, even if it is set IsBackground = true?</p> <pre><code>/// &lt;summary&gt; /// Provides methods to work with the PhoneSystem web services SDK. /// This is a singleton since we need to keep track of what lines...
2
3,107
Print out mario two half pyramid CS50
<p>Hey I'm working on the CS50 more comfortable problem and I can't figure out how to print the second mario pyramid on the same line. In my code it already prints out, but it's not on the same line.</p> <p>It doesn't matter if you guide me or show me how to do it. I'm using CS50 as a practice, I'm not turning anythin...
2
1,199
Add dynamically components to a Custom Dialog in Android
<p>I'd need your help to do something in Android, in the following the use case. I have created a custom dialog in Android, whose layout is: <em>dialog_threshold.xml</em></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:...
2
2,810
CSS - Borders not hide in Safari
<p>All images on site have a border property of <code>border: 2px solid;</code>. Expected result is that what I want to hide is hidden and not showing. I hide with below but are there any type of <code>-webkit-</code> for this? Google isn't showing any useful results.</p> <pre><code>height: 0; display: none; border: 0...
2
7,926
adding a Post To Facebook Timeline from iOS APP
<p>HI Im trying to enable a IBAction to post on an user's timeline while they have an active section. I am getting an error message stating; Implicit declaration of function "x" is invalid C99. I been reading posts about the issue but no luck and honestly I am not sure if I am doing this right at all. I updated the per...
2
1,327
Monodevelop - Try to install on linux Precise 64 (Ubuntu 12.04 LTS)
<p>I'm trying to install Monodevelop from <a href="http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives" rel="nofollow">http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives</a>.</p> <p>I'm using a virtual Box VM via Vagrant with an Ubunt...
2
2,092
Trying to create a web service to upload a file - Jersey with embedded Jetty
<p>I'm trying to create a web service using Maven. I used DarchetypeArtifactId=maven-archetype-quickstart and I have created the instances of the jetty on main class and it works </p> <pre><code>package com.rest.test; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.ServletContextHandler; impo...
2
2,568
Triggering tasks on Semver change: triggers jobs out or order
<p>Here's what I'm trying to achieve:</p> <p>I have a project with a build job for a binary release. The binary takes a while to cross-compile for each platform, so I only want to release build to be done when a release is tagged, but I want the local-native version to build and tests to run for each checked-in versio...
2
1,043
UICollectionViewCell labels overlap each other in background color
<p>I am new to iOS but can code in Swift 3. I don't know Objective-C at all.</p> <p>I am learning <code>UICollectionView</code> and I have set of string arrays. When I am setting custom width to cell it doesn't works so well. the label overlaps one another. After that when I use flowLayout then it trims the label. Als...
2
1,336
Spring is setting mysql dialect when using h2 dialect for test
<p>I'm doing some tests in Spring and I saw a strange thing.</p> <p>When I set datasource in <code>application.properties</code> like this</p> <pre><code>spring.datasource.url = jdbc:mysql://localhost:3306/test?useSSL=false spring.datasource.username = root spring.datasource.password = 123456 spring.jpa.properties.hi...
2
1,177
JVM locks up after full gc sporadically
<p>Recently we just noticed many of our servers sporadically and abruptly (no discernible gradual degradation) locking up with the following stack (all other theads are BLOCKED, IN_NATIVE, or IN_VM) (truncated where our code starts), obtained using jstack -F</p> <pre><code>Thread 18334: (state = IN_JAVA) - java.util....
2
1,724
libpcap not receiving in real time, seems to be buffering packets
<p>So I'm working with a device where I need to send and receive raw ethernet frames. It's a wireless radio and it uses ethernet to send status messages to its host. The protocol it uses is actually IPX, but I figured it would be easier to send raw ethernet frames using libpcap than to dig through decades old code impl...
2
1,605
Webpart Connections asp.net VB
<p>Im having the following problem with vb.net asp.net webparts. Im trying to create a static connection between webparts but im running into a problem, namely: </p> <blockquote> <p>Could not find the connection provider Web Part with ID 'Ucl_Diary_Summary1'</p> </blockquote> <p>I have the following defined as my i...
2
1,841
is_uploaded_file says error but no error code returns
<p>I have the following code:</p> <pre><code> if (!is_uploaded_file($_FILES['sb_file']['tmp_name'])) { echo "Error in Uploading File &lt;br&gt;".$_FILES["sb_file"]["error"][$count]; } </code></pre> <p><code>is_uploaded_file</code> re...
2
1,800
Seven segment digits clock with the system time in python Tkinter with strftime
<p>I need a seven-segment clock with <code>time.strftime</code>. I have this for the clock:</p> <pre><code>import sys from tkinter import * import time def tick(): time_string = time.strftime("%M:%S") clock.config(text=time_string) clock.after(200, tick) root = Tk() clock = Label(root, font = ("times", 2...
2
1,057
iOS NSInvocation setArgument: atIndex: does not work with struct on ARM builds
<p>I have a strange problem with setting the argument of an NSInvocation with a struct that contains a double or any 64 bit type which is not aligned (I offset it with a char at the beginning of the struct). The problem is that some bytes are cleared after the argument is set. This problem occurs on ARM7 but not in the...
2
1,381
Need to expand an inventory journal (log) pandas dataframe to include all dates per product id
<p>I have an inventory journal that contains products and their relative inventory qty (resulting_qty) as well as the loss/gain every time inventory is added or subtracted (delta_qty). </p> <p>The issue is that inventory records do not get updated daily, rather they are only updated when a change in inventory occurs. ...
2
11,690
Having trouble getting the scroll animation to not trigger the scroll event
<p>I currently have a number of div tags that can be seen below that are each the height of the viewport.</p> <pre><code>&lt;!-- .current represents the div the user is currently viewing --&gt; &lt;div class="full-height current" id="id1"&gt; &lt;div class="container"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div c...
2
1,220
Google Maps Javascript Api V3 data.remove isn't removing a feature
<p>I'm working on a little pet project to edit personal maps by drawing polygons and am finding that when I call map.data.remove(feature), the feature is removed from map.data but isn't removed from the visual map. Some of the javascript that doesn't relate to the data layer has been omitted. What additional steps, r...
2
1,117
A thread-safe vector and string container?
<p>I posted a previous question <a href="https://stackoverflow.com/questions/2412667/seg-fault-when-using-stdstring-on-an-embedded-linux-platform">"Seg Fault when using std::string on an embedded Linux platform"</a> where I got some very useful advise. I have been away on other projects since then and have recently ret...
2
1,159
Custom radio button using css
<p>I am trying to create the custom radio button as shown in the picture below. <a href="https://i.stack.imgur.com/3qO5J.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3qO5J.png" alt="enter image description here"></a></p> <p>I wrote the code and able to achieve the correct styling but not able to make the ...
2
1,126
ASPXAUTH cookie getting lost on jquery Ajax Call
<p>For some reason, after 2 or 3 calls, my cookie is no longer getting passed. Usually, after 3 requests, my cookie disappears from the request. I have no idea why. I am not making any cross domain calls. I did notice that on one of the responses that the ASPXAUTH cookie comes back in the Response Cookies (viewing in G...
2
1,157
How to place multiple panels into a tab item?
<p>I added a tab control and a tab item into my design and want to place 3 dock panels into this tab item horizontally. But I get an error:</p> <blockquote> <p>The property 'Content' is set more than once.</p> </blockquote> <p>I want a design like below.</p> <p><strong>TabItem1</strong></p> <p><em>PersonalInforma...
2
1,110
Write from CSV to yaml file?
<p>Wondering if anyone can help me with outputting this to a yaml file?</p> <p>As at the moment it only writes the last array returned to the yaml file.</p> <pre><code> require 'csv' require 'yaml' #fp = File.open("vatsim-row.txt") CSV.foreach("vatsim-data.txt", :col_sep =&gt;':', :row_sep =&g...
2
1,129
preg_match(): No ending delimiter '/' found Laravel
<p>I'm doing a validation by regex from a request, this validation is to check that the parameter that is sent is an IP.</p> <p>My rules are as follows:</p> <pre><code> &lt;?php namespace App\Http\Requests\usuarios; use Illuminate\Foundation\Http\FormRequest; class storeVPN extends FormRequest { /** * De...
2
1,052
Deploying next-auth app to Vercel creates error in credentials provider
<p>I am trying to deploy my next app to vercel. I am using next-auth for authentication with credentials and an api that returns a JWT. On localhost it works ok, but when I put it on vercel, and try to login, nothing happens. However when I view the logs in the project's dashboard functions, there's an error:</p> <pre>...
2
1,490
jsf - foreign key in datatable
<p>I'm showing a list of Orders in a datatable , and one of its columns must show the customer_id of that order: customer_id is a fk in ManyToOne relationship. </p> <p><strong>Customer entity</strong></p> <pre><code>@Entity public class Customer { ///other columns @OneToMany(mappedBy = "cliente", fetch=Fetc...
2
1,698
WPF Waving images animations
<p>I need to create at runtime a series of images on the screen, these images are all letters of the alphabet (PNG, 32x32), these images must look like they are "waving" up and down and rotating slightly too. (Almost like a Mexican wave)</p> <p>The issue is that the images are NOT all added one after another at start ...
2
1,997
HttpClient cannot send second request after retry
<p>Initially I want to send a first request without client certificates and if the error is "an authentication error" then I want to resend the request with the certificates attached. So the code first is </p> <pre><code>HttpStringContent ehttpContent = new HttpStringContent(content); HttpRequestMessage req2 = new Htt...
2
1,193
Deep linking via Google Search - how it works, and what to put in the manifest?
<h2>Background</h2> <p>I need to investigate how to integrate with the new (?) Google search deep linking feature.</p> <h2>The problem</h2> <p>This seems like a relatively new feature that's still not so popular, so I can't find a lot of resources about how it works and how to configure it correctly.</p> <h2>What I...
2
1,961
How to find dma_request_chan() failure reason details?
<p>In an external kernel module, using DMA Engine, when calling <code>dma_request_chan()</code> returns an error pointer of value -19, i.e. <em>ENODEV</em> or "No such device". Now, in the active device tree, I do find a <strong>dma-names</strong> entry with what I'm trying to get a channel for, so my suspicion is that...
2
1,637
Show my location in map react-native
<p>i'm React-Native newbie </p> <p>I have created a google map but i want when i open my app, it will show my location first. How can i do it ?</p> <p>Here is my code export default class GoogleMapApi extends Component { state = { mapRegion: null, lastLat: null, lastLong: null, ...
2
1,254
I cannot understand the meaning of EclipseLink MOXy XmlProperty or xml-property, could anyone give more information?
<p>What I can find on google are ONLY 3 piece of information, and the most detailed is the design doc as following URL</p> <p><a href="http://wiki.eclipse.org/EclipseLink/DesignDocs/317962/Phase2.1#.40XmlProperty" rel="nofollow">http://wiki.eclipse.org/EclipseLink/DesignDocs/317962/Phase2.1#.40XmlProperty</a></p> <p>...
2
3,003
Break a while loop with a stop button in tkinter
<p>I wrote a <strong>python GUI</strong> which should create and update a <strong>.csv</strong> file by clicking a button called <strong>"Start"</strong> and should stop the while loop which updates .csv by clicking another button called <strong>"Stop"</strong>. But whenever I run the GUI and click on start it freezes....
2
2,100
How to create WordPress widget using custom menu select
<p>I'm creating a custom widget for WordPress but am wanting to use the same select menu as the default Custom Menu widget does. So far what I have works except the selected menu isn't being saved or displayed on the frontend. Any help or direction with this is appreciated. Thanks. </p> <p>For brevity, I've removed ex...
2
1,507
webgl rotate camera around X-axis
<p>I'm having some trouble with rotating camera around X-axis. I have an image placed in the camera's scene and when I look up with camera I want to keep an image inside the scene. </p> <p>First I built up some functions to create matrices:</p> <pre><code>mat4 makeTranslation(float tx, float ty, float tz) { retu...
2
1,068
ASP.NET MVC with Spring.NET and ModelBinder
<p>I'm working on a demo that makes use of Spring.NET IoC capability in ASP.NET MVC . It's kind of like the MyBlog application presented on pair programming video tutorial on www.asp.net site. I've completed the same demo using Microsoft's Unity framework and now want to try out the Spring container. To that end I've i...
2
1,140
MediaBrowserService with ExoPlayer and PlayerControlView - How to access to the player instance from the UI (PlayerControlView)?
<p>I am currently working on a part of an app which has video and audio functionality, and started refactor the code base recently. The goal is to integrate <code>MediaSession/ MediaController</code> and <code>MediaBrowserService/ MediaBrowser</code> framework.</p> <p>We use <code>ExoPlayer</code> and <code>PlayerCont...
2
1,048
How to nest FieldArray functionality inside other <FieldArray> component with React-final-form
<p>Within the app i am developing, there is a module to make surveys/polls. The backend has already been programmed, and basically there is an endpoint that accepts a complex object in the body and then it will build the poll. The complex object can vary according to the poll and question types, some are multiple choic...
2
1,400
Unable to build Kotlin Multiplatform mobile project on MacBook M1 chip
<p>I am unable to build KMM project for iOS app. I am following KMM <a href="https://kotlinlang.org/docs/mobile/create-first-app.html" rel="nofollow noreferrer">get started</a>.I have below setup</p> <ul> <li>Android studio Artic Fox Beta 3</li> <li>Kotlin 1.5.10 plugin</li> <li>KMM plugin 0.2.6</li> <li>Xcode 12.5</li...
2
6,561
How to wait for a method to finish before moving on the next line of code in Unity?
<p>I want to make an Visualization of quick sort using game objects. The problem is, when I put the method inside the quicksort method it doesn't wait for the animation to finish. The code executes all the lines at the same time. </p> <p>I want to make the method execute first then proceed to the next line. I already ...
2
1,065
Call Cost Calculator Python Exercise
<p>I'm taking a python class for beginners. However, I'm struggling with the below:</p> <p><strong>Description of exercise</strong></p> <p>Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule:</p> <p>• Any call started between 8:00 A...
2
1,053
sys.exit() not working, no other threads and no try: blocks capturing SystemExit?
<p>I can't get my Python app to exit. After a call to sys.exit(), python.exe stays running and I have to kill it with task manager.</p> <p>I've spent the past 4 hours looking into this, and I'm stumped.</p> <p>This is Python 3.4.4 on Windows 10 x86.</p> <p>First, I do have a multithreaded application. However I have...
2
1,932
Android popup won't dismiss
<p>I am trying to implement a popup in my application but it won't dismiss. The Popup is supposed to open when I click on a Plus button, and this works. However, it is supposed to close when I click on the Cancel button in popup layout but it doesn't. why?</p> <p>Popup layout (tempo_popup.xml):</p> <pre><code>&lt;?xm...
2
1,848
Spring Security Login error Status 404 - /j_spring_security_check
<p>This is the code for login system in Spring web mvc using spring security in eclipse.</p> <p>web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xml...
2
5,609
white space between toolbar and status bar
<p><a href="https://i.stack.imgur.com/1sh5Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1sh5Y.png" alt="enter image description here"></a></p> <p>Just so know the listview in the image is fragment generated. But i dont think that should interfere with toolbar's layout. Here is the code for layou...
2
1,432
LOG4PHP File size Error
<p>I am running this script as a cron job on GoDaddy Shared Hosting (php 5.3.13), and am using log4php. The script seems to run fine, and finish. But then when log4php tries to finish up, it throws this error.</p> <p>It does seem to actually output the file, and its contents. And I even changed the file's permissions ...
2
1,269
Sorting a polygon vertices clockwise
<p>I am working on a project that involves conversion of polygon into trapezoids. I am using a version of seidel.py as featured <a href="https://deparkes.co.uk/2015/02/05/trapezoidal-decomposition-polygons-python/" rel="nofollow noreferrer">here</a>. This software essentially takes in coordinates of a polygon, and perf...
2
3,277
Can we use nested table after the `<tr></tr>`?
<p>I am displaying the record from database in the table list. Also, I have a follow-up button in each row, If any user clicks on followup button then a popup will open for a specific user with details.</p> <p>Or any other idea to handle this issue?</p> <p>I tried to use something like this</p> <pre><code>&lt;table&...
2
3,862
I can delete Html.HiddenFor(model=>model.Id) and the app still works. What is it for?
<p>If VS creates a strongly-typed view for the <code>[HttpGet] Create</code>, I get markup for the model as follows. </p> <p><strong>Note that the code has been simplified for the sake of brevity.</strong> The important point is that VS does <strong>NOT</strong> include <code>Html.HiddenFor(model=&gt;model.Id)</code>....
2
1,263
React useCallback: useCallback is still re-rendering function each time
<p>I'm fairly new to the <code>useMemo</code> and <code>useCallback</code> hooks within react and I'm kind of stuck as to why my functions still continue to re-render even if the variable I'm checking against stays the same. Currently I'm trying to build a google map that allows the user to turn on and off certain mar...
2
2,408
Accessing Views inside fragment
<p>I'm having troubles accessing the Views that within my Fragment. In the example below, I can't access the 2nd button that is within the Fragment (e.g., <em>findViewById</em> appears to return NULL and the app crashes when I try b2.setText("test") ), but when I directly add it in the activity_main.xml, it does work.<...
2
1,184
Why do I get an error saying eof is not a class type of fstream?
<p>I have printed out the array in the main just to test this method works and it does. But when I try to do the same thing in a different class I get errors. </p> <pre><code>#include &lt;iostream&gt; #include &lt;stdio.h&gt; #include &lt;string.h&gt; #include &lt;fstream&gt; #include "struct.h" #include "phoneBook.h...
2
2,841