title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Deploying to RVM-enviroment with Capistrano (RoR App)
<p>I've been looking around a lot for answers to my problem but I can't find a solution that works...so here is my first post ever on stackoverflow!</p> <p>A while ago I setup an apache server with RVM in order to host one of my client's website. By then, my development environment also had ruby installed through rvm....
2
1,231
SyntaxError with VirtualEnv + mod-wsgi in Django
<p>I am having trouble using <code>VirtualEnv</code> on my production <code>Ubuntu 13.04</code> server with <code>mod-wsgi</code>.</p> <p>Would someone be able to point out what the issue may be?</p> <p>Here is the traceback that I am getting the below syntax error:</p> <pre><code>[Mon Jul 14 14:37:09 2014] [error] ...
2
1,072
How to post FileReader object using $.ajax and asp.net MVC
<p>I want add temporary images first and then on submit i want to add all those images to server.</p> <p>Here is my class</p> <pre><code>public class UserModel { public int Id { get; set; } public string FirstName { get; set; } public List&lt;AcademicDetailModel&gt; AcademicDetails { get; set; } } pu...
2
1,332
NodeJS OAuth2 CORS issue with AngularJS
<p>I've been trying a ton of things found on the internet for the past 6 hours and I can't seem to solve this.</p> <ol> <li><p>I have a local testing Angular app, under <a href="http://tok.client" rel="nofollow">http://tok.client</a></p></li> <li><p>I have FrankHassanabad's OAuth2orize Recipes (<a href="https://github...
2
1,672
callback to notifyDataSetChanged
<p>I implemented a listview inside DialogFragment. Each item has a textview with a selector to simulate a radio group with option to select only one item at a time. The problem is when the user clicks on an item I am updating the data on the adapter then calling to <code>notifyDataSetChanged()</code> and calling <code>...
2
1,628
Value of custom field in sale.config.settings is not displayed in sales settings view
<p>I try to add a new configuration field for sales configuration settings by inheriting the standard sales settings view/model using a custom module. </p> <p>Creating the field in the model works fine and a value entered in the view is also successfully written to the database. <strong>However, if I reload the view ...
2
1,367
Spring security ajax login use http redirect instead of https
<p>I just migrate my webapp to HTTPS and everything works fine except ajax login.(although non ajax login works)</p> <p>When I try to log in, I get the following error message : </p> <pre><code>Mixed Content: The page at 'https://www.foo.bar/paris' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpo...
2
1,816
Button not working after TranslateAnimation ends
<p>Im tring to simulate a slideup animation.The idea is to slideup and slidedown the tablelayout with the id searchForm when pressing the button so that i can use the extra space for a list. I managed to slideup the searchForm and the button and the list seems to be visible but after this i cant click the button, here'...
2
1,218
Spark Streaming - restarting from Checkpoint
<p>We are building a fault tolerant system that can read form Kafka and write HBase &amp; HDFS. The batch runs every 5 seconds. Here's the scenario we were hoping to setup:</p> <ol> <li><p>Start new spark streaming process with checkpointing enabled, read from kafka, process data and store to HDFS and HBase</p></li> <...
2
3,843
CSV cvc-datatype-valid.1.2.1: '' is not a valid value for 'double'. CSV file error
<p>i am getting an error reading a <code>csv</code> file, in this file i store values that has to be of a specific data type for generate an invoice (known as facturae, or electronic bill), so the problem is that i get the error:</p> <pre><code>cvc-datatype-valid.1.2.1: '' is not a valid value for 'double' error </cod...
2
5,900
File to import not found or unreadable: foundation/functions RAILS 4.1.10
<p>I have tried everything and nothing seems to be working. could one kindly advise how i can rectify this issue</p> <p>error message:</p> <pre><code>Sass::SyntaxError: File to import not found or unreadable: foundation/functions. </code></pre> <p>gemfile:</p> <pre><code>source 'https://rubygems.org' ruby '2.3.0' ...
2
11,875
Connection Management Working with Database in Python
<p>I have a class that working with db operations like below : </p> <pre><code>class DepartmentOperations(DatabaseOperations): def __init__(self): try: self._connection = Database.create_connection() self._cursor = self._connection.cursor() self.isactive = True except ConnectionExcepti...
2
1,323
parsing SOAP response with touchXML - a problem
<p>i've another problem with obj-c: i'm trying to parse this XML :</p> <p>here's the case:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSc...
2
1,103
Custom, Complicated, Dynamic Reflection Solution - C#
<p>I have many custom classes that I am using that I will explain and post examples of. After Explaining what they all do I will try to clearly describe the conditions under which my bug is happening.</p> <p>First, I am using a PropertyGrid to display the properties of several different types of objects. Because the d...
2
2,259
Recycler View item onClick not working.(working abnormally)
<p>I have seen all the related links, but didn't found out any solutions yet. I will explain the problem now. I have recyclerview (Grid Layout), i set an on Click listener as i usually do. But this one is behaving abnormally. after so many clicks on different items. OnClick runs for one or two time randomly.Any help wi...
2
1,076
Qt Creator 4.0.3 reports, "Warning: Cannot find Visual Studio release redistributable files in C:\..." when redists are installed
<p>After installing VS2015 and the redists, I installed Qt 5.6.2 and went to build some apps. Basic default-option console apps were compiling, so i thought all was well until I ran into this <em>warning</em> which is somehow blocking me. </p> <p><a href="https://i.stack.imgur.com/JLDzB.png" rel="nofollow noreferrer">...
2
4,897
Jersey Jackson JSON class name not being generated
<p>Hey there so basically I am trying to get the class names to show up in my JSON response. So instead of this: </p> <pre><code>{"username":"MYANCHEK","token":"3b6037c7-e7b3-4e9a-8271-a63adda89371","active":true,"verified":true} </code></pre> <p>I am expecting to get this:</p> <pre><code>{authenticatedUser: {"user...
2
4,299
Incorrect Error Message for Compare Attribute in MVC model class (for jquery unobtrusive)
<p>Friends, </p> <p>This problem is really annoying me from last 2 days. I've finally decided to put it on SO.</p> <p>I have following property in my Model</p> <pre><code>[Required] [StringLength(20, MinimumLength = 4, ErrorMessage = "Length of this field should be between 3 and 20.")] public string Password { get; ...
2
1,407
VS Code & Incremental Typescript Compiling
<p>I cannot find a clear information on the topic if I can get Typescript to just recompile the changed .ts files in Visual Studio Code. I can run "tsc -w" (or via task) and "webpack --watch" and get everthing done, but tsc always rebuilds every file, thus triggering webpack to rebuild my whole project. As it is a gro...
2
1,274
WildFly 18 update Hibernate to 5.4.12.Final
<p>I am trying to update the Hibernate version of my WildFly 18.0.1 server. But I encounter a problem with Infinispan, which is used for caching. The classic WildFly distribution hast Hibernate 5.3.13.Final and Infinispan 9.4.16.Final.</p> <p>In order to update I use the <code>wildfly-server-provisioning-maven-plugin<...
2
4,562
Asio::async_connect and io_service.run don't compile
<p>I am learning to use Boost ASIO. Here is my code adapted from the Boost doc's <a href="http://www.boost.org/doc/libs/1_50_0/doc/html/boost_asio/example/chat/chat_client.cpp" rel="nofollow">chat example</a>.</p> <pre><code>class AsioCommunicationService { AsioCommunicationService::AsioCommunicationService( b...
2
1,447
Large File Upload Fails with JMeter
<p>I am trying to use Apache JMeter to test a server's performance in a file upload scenario. Specifically, I am using the HTTP Test Script Recorder to create a test plan to realize this curl command:</p> <pre><code>$ curl -k -x localhost:8888 -XPOST -d @filename.json -H "Content-Type: application/json" "https://hostn...
2
1,130
Is it possible to make the height of a DIV match the width of a DIV with Compass or Susy?
<p>I am creating a completely fluid design portfolio site that has a design thumbnail gallery page showing a grid of thumbnail tile links which a viewer can click to see the full art work. Since the site is completely fluid, the tile widths only match the tile height 3 times as one switches between the 3 responsive sta...
2
2,880
How to make Laravel broadcasting/websockets work with Redis Cluster
<p>I got a Redis Cluster server which I created by following this <a href="https://redis.io/topics/cluster-tutorial#creating-the-cluster" rel="nofollow noreferrer">tutorial</a>. </p> <p>This is what my database/config.php setup looks like (see details <a href="https://stackoverflow.com/questions/56497809/how-to-make-l...
2
3,375
Compile-time equivalent to std::accumulate()
<p>I tried to code a basic, <strong>compile-time</strong> version of <a href="http://en.cppreference.com/w/cpp/algorithm/accumulate" rel="noreferrer"><code>std::accumulate()</code></a> by defining a class template that would recursively iterate through a given range and would add the elements at each iteration.</p> <p...
2
1,814
Cannot create unordered_map of tuple<int, int, int>
<p>I'm using <code>std::unordered_map&lt;std::tuple&lt;int, int, int&gt;, float&gt;</code>. However, VS2010 will not compile the instantiation. I explicitly provided a <code>hash</code> specialization and an <code>operator==</code> overload. The error message refers to</p> <pre><code>std::unordered_map&lt;NodeType, fl...
2
3,595
Why does BufferBlock<T>.ReceiveAsync() hang when data is available?
<p>I am new to TPL Dataflow. </p> <p>I am trying to build a throttled async update to a fairly fast flowing input stream. BufferBlock seemed a nice match for this with the idea that I could call the ReceiveAll() to grab everything off the buffer and on the occasions there is nothing there I can await on a ReceiveAsync...
2
1,605
Material UI - How to ListItem link to open a dialog
<p>I'll preface with the fact I am pretty green on React.</p> <p>I have a dynamic list of employee items inside a <code>Card</code> component as part of a dashboard. I want to add the ability to create a link per employee, clicking on the link will open a modal dialog to enable editing in the same page.</p> <p>I am...
2
1,561
My App Crashes when calling my Animation?
<p>I have an AnimationDrawable object, when I call the wavingAndroid method, the game crashes. Any help? Here's my MainActivity.java</p> <pre><code> private void wavingAndroid(){ ImageView animateAndroid = (ImageView) findViewById(R.id.dancingAndroidLogo); animateAndroid.setImageResource(R.drawable.movingandroid);...
2
2,243
Deep filter for values in JSON data
<p>I have some JSON data that I am trying to filter based on the checkbox selection of a user in javascript but I have run into a wall as to the multi-level filtering. I have two dimensions of data that need to be filtered from the JSON; first filter the JSON data based on the OS selection, then to filter that resultin...
2
1,425
WebRTC for UWP, new RTCPeerConnection() doesn't complete execution
<p>I’m trying to create a Universal Windows Platform application that uses WebRTC, but my code never executes past the first new RTCPeerConnection.</p> <p>I have been looking at the open source project WebRTC for UWP (<a href="https://blogs.windows.com/buildingapps/2017/02/22/real-time-communications-universal-windows...
2
1,255
VBA post request error - multipart/form-data
<p>I am trying to make a POST request on a website in order to upload an Excel file. When I do it manually (manually browsing a file in a file input html element) and capture the network traffic, the following message appears on fiddler:</p> <pre><code>Host: electool.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64...
2
1,356
Timeout behind GCP Nat
<p>I seem to have a problem similar to <a href="https://stackoverflow.com/questions/58027907/significant-delay-when-accessing-internet-via-google-cloud-nat">this</a> question in that I get the following timeout when building a docker image using a gitlab runner on GCP</p> <pre><code>Put https://registry.gitlab.com/v2/...
2
1,418
Writing to the external storage is not working anymore on Nougat
<p>I wrote a little app to learn how to write and read files. It worked, but now I can't write files any more..</p> <p>1.I added to Manifest:</p> <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&...
2
1,500
Plotting regressions from slope and intercept (lattice or ggplot2)
<p>I have a microarray dataset on which I performed a <code>limma</code> <code>lmFit()</code> test. If you haven't heard of it before, it's a powerful linear model package that tests differential gene expressions for >20k genes. You can extract the slope and intercept from the model for each one of these genes. </p> <...
2
1,151
"java.lang.ClassNotFoundException: javax.persistence.Persistence" error in hibernate JPA project based on MVC
<p>I try to create a web application based on <code>MVC</code> structure and by <code>Hibernate JPA</code> .</p> <p>I want save data form in database . for this job , I get data in <code>servlet</code> and call a method in <code>personManager</code> class in <code>business logic "bl"</code> package .</p> <p>this met...
2
3,495
using AngularJS ng-class in a span element
<p>I have a dashboard-style widget container, which contains a header panel. I have several icons in the header panel which implements the following features:</p> <p>1) collapse widget 2) maximize widget 3) launch widget settings 4) close widget</p> <p>Item #2 is the one where I'm having trouble. I need to swap out t...
2
1,577
Works with urrlib.request but doesn't work with requests
<h2>I am trying to send a request wtih post method to an API, my code looks like the following one:</h2> <pre><code>import urllib.request import json url = &quot;https://api.cloudflareclient.com/v0a745/reg&quot; referrer = &quot;e7b507ed-5256-4bfc-8f17-2652d3f0851f&quot; body = {&quot;referrer&quot;:...
2
1,123
How to send JSON to Struts2 Action with AngularJS form?
<p>How to send JSON to Struts2 Action with AngularJS form?</p> <p>My code:</p> <p>My struts.xml</p> <pre><code>&lt;package name="default" extends="json-default"&gt; &lt;interceptors&gt; &lt;interceptor-stack name="defaultStack"&gt; &lt;interceptor-ref name="json"&gt; &lt;para...
2
1,312
VBA - Array calculation with Function and Loops
<p><a href="https://i.stack.imgur.com/kHUQX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kHUQX.png" alt="enter image description here"></a>I am writing a program in VBA that is acting as a Workforce Management Tool. In this particular problem I am trying to take a set of numbers (widgets produced...
2
1,908
Error trying to save to Postgresql with Spring & Hibernate
<p>I have a spring-boot 1.2.1 application that uses spring-data-jpa, liquibase and postgresql. I have two entities that I am trying to persist, and I am getting an error that doesnt' seem to make sense (to me at least).</p> <p>Here is my liquibase definition:</p> <pre><code>&lt;createTable tableName="ROLE"&gt; ...
2
1,559
Unity - Set an instance of a script to use variables from a class Update function in another script
<p>This is my first unity project and also my first post, so please comment if I neeed to include further information or anything of the sort.</p> <p>I'm currently trying to build a minigame where all the information gets automatically saved and appended in a csv-file after the Save method gets called inside the Incre...
2
3,190
OpenApi 3.0 Register Filter to exclude methods with specific Tags
<p>We have a requirement to generate multiple definitions of an API using the Java annotations. We are open to any and all suggestions but the one proposed seemed like a viable option if we could work out how to get it to work.</p> <p>We basically need to generate 2 API docs from a single code base. The first should i...
2
1,729
SQL Error Converting Data to Int When I am Not Asking It To
<p>I have the following SQL statement. In it I need to convert some numbers stored as varchar to decimal in order to sum them. </p> <p>When I run this SQL against my constraints I get this message:</p> <blockquote> <p>Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '1635.34'...
2
1,084
Angular Chart.js not displaying Chart (Legend is Displaying)
<p>I am using the Angular-chart.js package: <a href="http://jtblin.github.io/angular-chart.js/" rel="nofollow noreferrer">http://jtblin.github.io/angular-chart.js/</a></p> <p>When I load the page, the legend at the bottom of the page shows, but the chart itself is not displayed.</p> <p>I added divs to verify that the...
2
1,660
Showing Elevation with Cardview in Preview in Android Studio but not in Device
<p>I was trying to make shadow effect with Cardview and it is showing the shadow effect in the XML Preview but there is no shadow effect on the Physical Device</p> <p><a href="https://i.stack.imgur.com/OPgMJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OPgMJ.png" alt="Recycler View on Device whic...
2
1,087
update model with ajax in razor
<p>i write this code with ajax to delete some info after that i update my updateAjax div with ajax for refreshing content and this view have masterpage.in picture u see what happen. <img src="https://i.stack.imgur.com/poju2.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/ZbSnu.png" alt="ent...
2
2,628
SAS extract substring from string with prxchange or prxpson(prxmatch(prxparse()))
<h1>2 SOLUTIONS POSTED AT BOTTOM</h1> <h2>My code</h2> <pre><code> data test; extract_string = "&lt;some string here&gt;"; my_result1 = prxchange(cat("s/^.*", extract_string, ".*$/$1/"), -1, "A1M_PRE"); my_result2 = prxchange(cat("s/^.*", extract_string, ".*$/$1/"), -1, "AC2_0M"); ...
2
1,684
SQL Server Windows Auth error connecting from NodeJS
<p>I am trying to connect to a MS SQL Server database from my NodeJS server application and while it works flawlessly on my local machine using localhost/127.0.0.1 when I push it to a real server I get an Auth error.</p> <p>The error I am getting is as follows:</p> <blockquote> <p>The login is from an untrusted domain ...
2
1,155
Convert a string which contains uri paths to a arraylist<uri>
<p>I am creating a notepad programm where the user can add images to his notes . When he creates a new note and picks a few images their paths(uri) are stored in an arraylist which is converted to a xml tag (string type conversion) . When the user wants to open a created note the selected images from before are display...
2
1,159
How to customize include path order for clang?
<h2>Question</h2> <p>Can I custom the order of include path with clang 8?</p> <p>For example:</p> <p>Compile a project using clang with <code>-v</code> flag, it will output such logs.</p> <pre><code>#include &lt;...&gt; search starts here: Path1 Path2 Path3 </code></pre> <p>How can I move the Path3 ahead of Path2?</...
2
1,215
Null object reference if configuration changes
<p>I get null object reference if configuration changes for only <code>LinearLayout</code> objects.</p> <p><strong>landscape</strong> mode I have to <code>setVisiblity = View.GONE</code> for all views except one view </p> <p><strong>portrait</strong> mode I have to <code>setVisibility = View.VISIBLE</code> for all vi...
2
5,108
mysql/connector python query works in mysql but not python
<p>I've seen the following two answers:</p> <ul> <li><a href="https://stackoverflow.com/questions/24131196/python-mysql-query-not-working">python - mysql query not working</a></li> <li><a href="https://stackoverflow.com/questions/11705450/sql-query-works-in-console-but-not-in-python">SQL query works in console but not...
2
1,054
How to configure Many to One relationship?
<p>Currently I'm working on a Rest api in dotnet core with a Mysql Database. At the moment I have two Tables with Users and roles. For my project I need to get the user and the role. In my code I pecified the relationships as stated in this Sample</p> <pre><code>public DbSet&lt;User&gt; Users { get; set; } private voi...
2
1,844
A-Frame with device camera: how to see video behind the a-scene?
<p>I'm trying to implement a poor man's AR by showing some objects with A-Frame <strong>on top of the active video</strong>.</p> <p>Note: I'm not using <strong>ar.js</strong> because I don't want to use a marker.</p> <p>All in all, app is working nicely, but video is half transparent instead of fully opaque as I want...
2
1,741
Not able to access Flask Web application running inside a Docker container
<p>I have the following <code>Dockerfile</code> where I build a docker image that contains <code>ElasticSearch</code>, <code>Kibana4</code> and <code>gunicorn</code></p> <pre><code># gunicorn-flask ...
2
1,586
Why would a .NET EXE, compiled as x86, run as x64?
<p>I have a simple little command-line program, written in C#, running under .NET 4.0, and compiled with Visual Studio 10.0.</p> <p>What it does is pull data out of another vendor's Access.mdb file, and insert it into a Sql Server database, so one of our apps can access the data.</p> <p>We're using .NET's OleDbConnec...
2
1,154
Issue in JPA Cascade Save with EmbeddedId in child
<p>I am having three class. <code>Person</code>,<code>vehicle</code> and a <code>association</code> class to link the person and vehicle</p> <p><strong>Person</strong></p> <pre><code>package entity; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import javax.persistence.OneToMany; import javax....
2
1,637
android fragment getArguments returns null in oncreateView()
<p>I have two fragments and <code>FilterFragment</code> and <code>LocationListFragment</code>. when I am switching to <code>LocationListFragment.java</code> I am getting values in <code>getArguments()</code> and from <code>LocationListFragment.java</code> to <code>FilterFragment.java</code> getting null values by calli...
2
1,195
Uploadify giving HTTP Error (403) while saving files direct to Amazon S3
<p>Here is the following code of mine <a href="http://www.uploadify.com" rel="nofollow">Uploadify</a>, to upload files direct to <a href="http://aws.amazon.com/s3/" rel="nofollow">Amazon S3</a>:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="uploadify.css" type="text/css" media...
2
1,828
Android webview: inject a function call to the onclick event of a checkbox
<p>I have the following html code loaded in a webview:</p> <pre><code>&lt;form&gt; &lt;input checked="true" id="myCheckBox" onchange= "location.href='/doSomething.html'" type= "checkbox"&gt;My Checkbox description &lt;/form&gt; </code></pre> <p>I can not modify this the html code because I'm not the owner...
2
1,270
executor failed running /bin/sh -c docker-php-ext-install
<p>I am trying upgrade this docker file from 7.3 to 7.4 but getting executor failed error.</p> <p>Detailed error:</p> <blockquote> <p>executor failed running [/bin/sh -c docker-php-ext-install bcmath<br /> ctype dom gd hash iconv intl mbstring<br /> mysqli opcache pdo_mysql simpl...
2
1,452
How to parse JSON string and check if result contains the text, then ignore or allow it?
<p>I'm working on a Minecraft launcher, I have a problem, because my launcher uses the original way, and for example, here is the JSON:</p> <pre><code>{ "id": "1.8.1", "time": "2014-11-24T14:13:31+00:00", "releaseTime": "2014-11-24T14:13:31+00:00", "type": "release", "minecraftArguments": "--username ${auth_...
2
5,557
Find if there is an echo in a sound file
<p>I have thousands of recording, that I use for an app I am building. Lately I noticed that some of the recording has a weird echo.</p> <p>The recording are in .wav format and i am using python to process them.</p> <p>I saw many questions in which pepole try to cancel the echo, but I only need to locate those files....
2
1,163
Invoke method inside a Thread
<p>I just learn about Invoking Method from this <a href="https://docs.oracle.com/javase/tutorial/reflect/member/methodInvocation.html" rel="nofollow">link</a>, and now I am trying to used it but I can't make it work with the logic I want. I simply want to invoke a method from a Thread.</p> <p>I've used the below code...
2
1,618
pecl installs to directory other than ext_dir
<p>I have been plugging away, trying to install the pecl_http extension (it is a dependency for a library I am going to use). I am having an issue where the extension is being installed in the wrong directory.</p> <p>I am working on an Apple MacBook Air, with OSX 10.8.5. I have the php that comes with OSX, and I have ...
2
1,105
React context from library not updating in consumer
<p>I originally followed <a href="https://github.com/the-road-to-react-with-firebase/react-gatsby-firebase-authentication" rel="nofollow noreferrer">this project</a> to add Firebase to a Gatsby React app. It involves making a Firebase context, wrapping a root layout with a provider, and then using a withFirebase HOC to...
2
1,392
Signal async completion with Gulp, Babel and config.yml
<p>Current project handle babel and gulp for task and load a yml config file for paths.</p> <p>This is the <code>cofing.yml</code>:</p> <pre><code>PATHS: # Path to source folder sources: "jet/static/jet_src" # Path to dist folder dist: "jet/static/jet" # Paths to static assets that aren't images, CSS, or Ja...
2
3,865
Google Maps Weather Layer No Longer Works Since Google Update
<p>I understand that Google updated their map a day or two ago. Since the update, the weather layer no longer works on the webpage I am building. I have a MacBook Air with Apache server installed. </p> <p>When the map loads the marker still works and the latitude and longitude are correct, but the city names no longe...
2
1,328
Data not posting in multipart form data in angular and node js(File uploading with angular and node js)
<p>I am fresher to using Angular js and node js. I am doing File Uploading process by angular and node js. I already create directives and services by watching some tutorial. But in services Form data is not posting on NodeJs server. Here is following code file by file:-</p> <p>Here is my Directive :-</p> <pre><code>...
2
1,379
FastAI PyTorch Train_loss and valid_loss look very good, but the model recognize nothing
<p><strong>Update 1</strong></p> <p>I’m thinking that it might be the mistake in my detector code. So, here is my code for using the trained learner/model to predict images.</p> <pre><code>import requests import cv2 bytes = b'' stream = requests.get(url, stream=True) bytes = bytes + stream.raw.read(1024) # I have my...
2
1,204
How to change values on events of FM 'FREE_SELECTIONS_INIT'
<p>I created some dynamic select options. On my table, <strong>I want to have one parameter predefined and not changeable for the User</strong>. The not changeable I made with a callback form on the event:</p> <pre><code>data: LS_EVENTS type RSDSEVENTS, LT_EVENTS type standard table of RSDSEVENTS. LS_EVENTS-EVENT...
2
1,383
Dataweave - Loop in-depth mapping XML
<p>I have a <code>XML</code> <code>payload</code> that contains the following example:</p> <pre><code>&lt;Example&gt; &lt;Brand&gt; &lt;Id&gt;987S&lt;/Id&gt; &lt;logo&gt;circle&lt;/logo&gt; &lt;Item&gt; &lt;Name&gt;cologne1&lt;/Name&gt; &lt;Item&gt; &...
2
1,157
Using oneToMany relation, but saving data in individual tables at different point of time
<p>I am working on a Spring-MVC application which has 2 tables in database and 2 domain classes. Class Person has oneTOMany relation with class Notes. I would like to add Person and notes both in database. So I googled, to find out many MVC based examples for the same problem. However they seem to assume a few things :...
2
1,685
MS Graph API - Create Online Meeting, not generating with dial-in/conference information
<p>I am calling to the MS Graph API to generate a Teams meeting, I previously was doing this same thing but with Application permissions, which MS has decided to deprecate. So I am now setting things up to do this call using User permissions, the new correct way to do it.</p> <p>I finally got the call itself working in...
2
1,426
ASP.NET Core MVC with Razor Pages (can't return object from a different model)
<p>I'm making a call to Azure tables in a method I've created as part of the Razor page model (cs) file. The results are of type <code>TenantEntityModel</code>. I'd like to simply display those results in my view.</p> <p>Is it possible to do this and if so, what needs to be in my Razor page model?</p> <p>The method i...
2
1,082
Error when Fitting a glmer with poisson error structure
<p>I hope somebody can help me. I'm trying to conduct an analysis which examines the number of samples of Hymenoptera caught over an elevational gradient. I want to examine the possibility of a uni-modal distribution in relation to elevation, as well as a linear distribution. Hence I am including <code>I(Altitude^2)</c...
2
4,419
Spring MVC Form Submit - Dynamically change the form catching Object
<p>My Spring framework version 3.1.4</p> <p><strong>Question ???</strong> Is there is any way to dynamically change the form catching Object depending on the some criteria. </p> <p>Its really tough to explain, I will do my best here</p> <h2>JAVA OBJECTS</h2> <p>I have a Java Object <code>PatientDocument.java</code>...
2
2,414
Unrecognized selector sent to instance (self.navigationController.toolbar)
<p>I've been banging my head against the wall for the past 2 days with it - and I need help.</p> <p>In my controller, I have this code:</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; self.navigationController.toolbar.barStyle = UIBarStyleBlack; [self.navigationController setToolbarHidden:NO]; ...
2
2,923
prometheus to monitor eks (aws) node
<p>I am trying to setup prometheus to monitor kubernetes node (eks, Version 1.10) with following <code>scrape_configs</code></p> <pre><code> - job_name: 'kubernetes-nodes' kubernetes_sd_configs: - api_servers: - 'https://kubernetes.default.svc.cluster.local' in_cluster: true role: node ...
2
1,604
get Last Location is returning null object reference error
<p>hey guys my method to return my current(last known) location is killing my app. My error logs aren't showing up, so the only think I can think of is that something is going on with the permissions/Location class. I have it set to pull my location if it can, else return a pre stored LatLng. Please help! here's my c...
2
1,580
How to run build twice so that I can get two artifacts using different dependencies?
<p>I've got a Maven project and we want to build two separate jars, one containing 32-bit libraries and one containing 64-bit libraries.</p> <p>Our current build will produce either 32 or 64-bit artifacts depending on the operating system on which the build is run. </p> <p>An overview of how we're currently set up:<...
2
1,116
does code check every if statement?
<p>So i was practicing on past google code jam problems(btw it is on 7th april if you don't already know) and i wrote this code in which i put multiple if statements. Looks something like this:</p> <pre><code>for(int b=0;b&lt;length;b++) { if(array[b]==1 &amp;&amp; do...
2
1,982
EXCEPTION: No Directive annotation found on ArticlesService
<p><a href="http://plnkr.co/edit/iFYtlbDte83umKgiUcTl?p=preview" rel="nofollow">This is a Planker</a></p> <p>i'm tring to get whole article text from json file by press a button "more". When i press "more" button i get an error "EXCEPTION: No Directive annotation found on ArticlesService".</p> <p>article.ts</p> <pre...
2
1,111
Issue updating user account with avatar laravel
<p>So I was able to submit the form to allow an avatar to be uploaded and changed which worked. Now I am trying to allow all the user details to be updated too.</p> <p>If I just try to change the username or email and submit, the page is reloaded with the original content. When I upload a new avatar and then try to su...
2
1,210
Linked ARM templates result in Invalid Template
<p>Let's start with what I'm trying to accomplish.</p> <p>What I'd like to do is create an ARM template where I'm retrieving secrets from the Azure Key Vault, without specifying too much details on the specific Key Vault. Sounds easy enough and probably something which is implemented in every production system.</p> <...
2
1,852
how include pandas library on my python package?
<p>I have to include the pandas library in my package to run my software on a cluster server without pandas library installed but with all the right dependencies.</p> <p>I tried to build on my pc the pandas library from source (ver. 0.8.1): </p> <pre><code>python setup.py build_ext --inplace </code></pre> <p>and if ...
2
1,139
How to do NAT with PHP sockets
<p>I'm trying to make a peer to peer app in php to work in the same kind of way skype works. It works with internal addresses, but when I try to send data to my external address the message never gets there. Obviously I'm missing some address translation, but I'm at a loss for how to do that with PHP sockets. Is it pos...
2
1,231
WIX Combobox Bind Values
<p>I am trying to populate values using custom actions and want to bind the values into combobox which is inside product.wxs.</p> <p>Can anyone guide me how to bind values if I want to populate a list of countries inside the combobox?</p> <p>I am struggling with how to pass this value so the values will show inside c...
2
1,066
QT C++ - How to refer to a widget in another class
<p>I'm trying to make a button that adds a widget into a layout.</p> <p>The widget is in another class entirely from the UI.</p> <p>Normally I'd make a pointer to the other class (without the UI, with the widget) which would be <code>InkSpot *ink</code> (class name being InkSpot) then I would say <code>ui-&gt;paintAr...
2
2,245
Error While Deserializing object from Kafka Streams
<p>At kafka streams side while writing to Topic, I have serialized Window Key <code>[test_id@timestamp1/timestamp2]</code> using <code>Serdes.String()</code> serializer from kafka. While retrieving same key from another application I am getting following error while deserialization</p> <pre><code>com.fasterxml.jackson...
2
1,057
How to convert pretrained fastText vectors to gensim model
<p>How to convert pretrained fastText vectors to gensim model? I need predict_output_word method.</p> <p>import gensim from gensim.models import Word2Vec from gensim.models.wrappers import FastText</p> <p>model_wiki = gensim.models.KeyedVectors.load_word2vec_format("wiki.ru.vec") model3 = Word2Vec(sentences=model_wi...
2
1,658
Backing bean String[] access in JSF
<p>First, apologies if you've been involved with my recent questions. As this isn't a discussion forum, and comments are limited, my last hope is to ask a specific question with actual code in the hope that somehow I can reach the bottom of my problem.</p> <p>OK. I've a backing bean called PrismBacking with this pert...
2
2,388
What are the best practices for dealing with the Back Button in IE (and Firefox)
<p>I know this in old issue but I can't figure out the best practices for dealing with the back button.</p> <p>I'm writing a web application with lots of data movement between the browser and the backend server. I currently use post and of course when the user bypasses the application navigation and uses the back butt...
2
1,354
Duplicate metrics with multiple instances of kube-state-metrics
<p><strong>Problem</strong>:</p> <p>Duplicate data when querying from prometheus for metrics from <em>kube-state-metrics</em>.</p> <p>Sample query and result with 3 instances of <em>kube-state-metrics</em> running:</p> <p>Query:</p> <pre><code>kube_pod_container_resource_requests_cpu_cores{namespace="ns-dummy"} </c...
2
1,238
How to use JSF tags in resource bundles / How to rewrite URLs in a resource bundle?
<p>Enviornment: JSF 2.1.7 SEAM 2.3.0 JBOSS 5.1.2</p> <p>My application has a string that needs to be localized</p> <blockquote> <p>"I agree to WorldSite's <em>Privacy Policy</em> and <em>Cookie Notice</em>"</p> </blockquote> <p>Where the italicized <em>Privacy Policy</em> and <em>Cookie Notice</em> are hyperlinks...
2
1,273
Bokeh: Why does factor_cmap work in vbar but not in line?
<p>I have trouble understanding how to map categorical data to colors in bokeh. I create a sample data frame that look like </p> <pre><code> A B 2000-01-31 0.357440 baz 2000-02-29 0.377538 foo 2000-03-31 1.382338 bar 2000-04-30 1.175549 baz 2000-05-31 -0.939276 baz 2000-06-30 -1.143150 ...
2
1,884
how to update Spreadsheet values using FreeCAD python module
<p>Let's say I have a FreeCAD model that defines a certain geometry with dimensions height, width, and length that are defined in cells of the model's spreadsheet. I want to build an automation pipeline in a stand-alone Python script using the FreeCAD module that - reads that model - sets the spreadsheet cells to val...
2
1,280
Add collision detection to a plattformer in pygame
<p>I'm working on a small platformer game in which you place blocks to make a level, then play it.</p> <p>I got gravity, jumping, and left and right movement.. but I am not sure how to make the player collide with walls when moving left or right.</p> <p>The way I want it to work is like this-</p> <p><code>if key[K_L...
2
1,359
Batch file with more than 9 options for user input
<p>So I have this simple shortcut script but when I select a number that is higher than 9 it opens authorization manager and does not recognize the second digit. I have played around with the settings but to no avail and Google isn't much of a help with this one.</p> <pre><code>@title Microsoft Management Console @ech...
2
1,109