title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Fix: Msg 102, Level 15, State 1, Line 37 Incorrect syntax near ')'
<p>I'm using MS SQL server.</p> <p>I have used <strong>pivot</strong> in my query. What I've done yet is given below:</p> <h2>SQL Procedure</h2> <pre><code>--/*========================================================== -- -- -- --===========================================================*/ --CREATE VIEW View_BASeq...
2
1,724
Making a toolbar stay at the top in CSS
<p>In my real website I have actual content but this example should suffice. LOGO is actually a logo image. The toolbar is also an image. I used the following code to keep the toolbar at the bottom by simply using bottom:0 as opposed to top:35px. I basically want the toolbar to stick to the top of the page and only...
2
2,074
How to create responsive blocks by using just CSS and HTML
<p>Check: <a href="http://apkapp.in/software/view/43908225?download=ChatAdda.apk" rel="nofollow noreferrer">http://apkapp.in/software/view/43908225?download=ChatAdda.apk</a></p> <p>I want to create a responsive block as shown below:</p> <p>PC View:</p> <p><a href="https://i.stack.imgur.com/vzSpz.png" rel="nofollow n...
2
1,663
how to load an external html file that contains scripts
<p>Unfortunately, I am not sure to understand anything to java, jquery and all this kind of thing. Nevertheless, I am trying to get some inspiration on forums in order to make a personal website that contains a vertical navbar and a div container in which external html pages will be loaded. Each html file uses an html5...
2
3,107
Can't find data/payload from Shopify Webhook
<h1>Summary</h1> <p>I have been following the Shopify tutorial on setting up an App using Node and React. I have everything working but I am trying to move past the last step. I am trying to get the data returned from the Shopify webhooks and I can't see where the data/payload is. </p> <h1>Background</h1> <p>I've tr...
2
1,866
Bootstrap Modal keep playing audio after video window close in Firefox
<p>The following is the full testing code. The example is running on <a href="http://public.eitan.ac.il/modal/modal-video.html" rel="nofollow noreferrer">http://public.eitan.ac.il/modal/modal-video.html</a></p> <p>I am trying to run a youtube video in a pop up window using Modal, but after closing the window, in Firef...
2
1,308
Magento 2 get order in custom block
<p>I have a custom module which sends email to custom email address after successful purchase. It works well but now I need to get gift message from order.</p> <p>Here is my Block code</p> <pre class="lang-php prettyprint-override"><code>&lt;?php namespace Test\Test2\Block\Vendor\Shipment; class Items extends \Mage...
2
2,683
Strong Parameters : Hash param is missing or the value is empty
<p>I have a form where I have a table with checkboxes in order to select rows and save IDs in my DB.</p> <p>But it throws me an error:</p> <blockquote> <p>Param is missing or the value is empty: leadallocation"</p> </blockquote> <p>I tried different ways but still nor working. So at the moment I just wand to save ...
2
2,029
How to redirect to another page in react confirmAlert?
<p>I am developing a react shopping cart app. If the user click on 'Clear Cart' button, the entire cart will be cleared. Before that the application should confirm the action and therefore, I used 'React Confirm Alert'. If the user click on 'Yes' button, it will clear the cart and it should navigate to the root page('/...
2
2,912
I have problem with ionic native plugin for printing ionic 4
<p>I have a problem with this code when I run in the android device also ios I have the same problem</p> <pre><code>TypeError: Printer.getPlugin(...).check is not a function at vendor.js:79303 at vendor.js:78443 at new ZoneAwarePromise (polyfills.js:3272) at tryNativePromise (vendor.js:78442) at ge...
2
1,030
Angularfire auth guard and angular material not working together
<p>I am trying out angularfire and their auth guards. I used their <a href="https://github.com/angular/angularfire/blob/master/docs/auth/router-guards.md" rel="nofollow noreferrer">documentation</a> to learn how to setup my auth guards. And everything seemed perfect, but then I noticed that in my login page angular mat...
2
1,273
Checking if Boolean Mathematical Formula is in the Proper Form
<p>I am creating a program that takes in a boolean expression as a string and converts the infix formula to postfix, while making sure the formula is in a valid form. What I'm having a hard time doing is figuring out a way to check if the inputed formula is valid or not. <strong>NO IMPORTING</strong> is permitted (use ...
2
1,186
Touch event pool was exhausted
<p>I have a touch problem. I have some word sprites, and I bind the touch event (below) to them. After I touch one of them a few times consecutively and them want to drag, firstly the touch event does not respond, but if I wait a second then I can drag. In the <a href="https://sites.google.com/site/androidhowto/how-to-...
2
4,238
how to download jar dependencies while installing jar into m2 repo
<p>I have a maven plugin jar which is already built on another machine , say test-1.0.0.jar . This jar have multiple dependencies like apache,plexus,maven etc . e.g.</p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.maven&lt;/groupId&gt; &lt;artifactId&gt;maven-core&l...
2
1,957
Connecting Excel to Mysql Update PROBLEM
<p>i am connecting to a mysql table through vba in excel and i am updating it:</p> <pre><code>Set cn = New ADODB.Connection cn.Open "DRIVER={MySQL ODBC 5.1 Driver};" &amp; _ "SERVER=localhost;" &amp; _ "DATABASE=employees;" &amp; _ "USER=root;" &amp; _ "PASSWORD=M1llen;" &amp; _ "Option=3" 'lets ge...
2
1,116
How to unit test class with no logic?
<p>I find it easy to write unit tests for algorithms. For example, <code>sort(List)</code>, it is easy to write tests like:</p> <pre><code>list = [2, 1, 4]; assert(sort(list) == [1, 2, 4]); </code></pre> <p>But I find it really hard to test methods that have no logic, no <code>if</code> statements, just a set of call...
2
1,075
how to change textcolor of selected list item both header and child in expandable listview?
<p>what i need:<a href="https://i.stack.imgur.com/3zJLh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3zJLh.png" alt="enter image description here"></a> the above screen is my drawer.In that expandable listview,if i pressed the "DashBoard" header list i will redirect to dashboard activity.Here,i ne...
2
7,737
insert query with varchar as data type for primary key
<p>The program is not accepting the query given below-</p> <pre><code> public class loginDaos { public void create(loginBean bean) { ConnectionPool c = ConnectionPool.getInstance(); c.initialize(); Connection con = c.getConnection(); try { String sql =...
2
1,180
CSS Drop Down List Hover mouse not work
<p>i have a code HTML CODE: <BR></p> <pre><code>&lt;div class="wrapper-demo"&gt; &lt;div id="dd" class="wrapper-dropdown-2" tabindex="1"&gt;Sign in with &lt;ul class="dropdown"&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-twitter icon-large"&gt;&lt;/i&gt;Twitter&lt;/a...
2
1,109
How do I mock a bloc in Flutter, with states being emitted in response to events from a widget under test
<p>I'm trying to test a widget that makes use of a bloc. I'd like to be able to emit states from my mocked bloc in response to events being fired by the widget under test. I've tried a number of approaches without success. I'm not sure if I'm making some simple error or if I'm approaching the problem all wrong.</p> ...
2
2,072
Delphi & Indy httpServer how stop sending 400 bad Request
<p>I get data from a device that expects him back ACK (HTTP1/1 200 OK). My httpserver after receiving header is automatically returned 400 Bad Request (i see on WareShark). Perhaps the device is not properly built his request. How do I stop server does not return an error? So I will be able to continue communication wi...
2
1,171
Css, circles animation how to have them growing on hover and staying on the same line
<p>I've 2 problems with the following snippet, I would like that on hover all the circles stay on the same line, they are "simply" pushed on the side.</p> <p>But I'm struggling, it only seems they are going to the bottom when one of the circle is scaling..</p> <p>Then, I'm trying to have them as close as possible, ma...
2
1,205
Checking if a radio button selection matches an item in an array using JavaScript or jQuery
<p>At this point I am just testing to see if I can compare the radio button selected with the correct answer in the array. See comments below:</p> <pre><code>var allQuestions = [{ "question": "Who was Luke's wingman in the battle at Hoth?", "choices": ["Dak", "Biggs", "Wedge", "fx-7"], "correct...
2
1,110
Face API Detect Issue with Canvas
<p>What I am currently trying to do is use the Face API to detect an image that a user has uploaded. I am trying to follow the documentation and the forums are locked so my best bet would be here. Code is below:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;FaceDetect&lt;/titl...
2
2,356
what is the correct syntax to use for getting youtube data via json and php as at november 2012?
<p>i'm having a difficult time getting youtube video data via json and php. </p> <p>i've spent a full night and morning trying code snippets from around the web and stack overflow. </p> <p>the fact that they are not working suggests to me that i am not using up to date syntax. </p> <p>i think the clearest way to a...
2
2,132
Telerik tabstrib doesn't work when jquery ui is used
<p>Ive got the following code in my site.master page:</p> <pre><code>&lt;head runat="server"&gt; &lt;title&gt;&lt;asp:ContentPlaceHolder ID="TitleContent" runat="server" /&gt;&lt;/title&gt; &lt;link rel="shortcut icon" href="../../favicon.ico" type="image/x-icon" /&gt; &lt;%--&lt;script src="../../Script...
2
1,488
Merge excel files into a new excel file based on filename
<p>I have a folder containing about 500-600 excel files from a script I have made where the file names end up like this</p> <pre><code>101a12345.xlsx 101a67899.xlsx 102a12345.xlsx 102a78999.xlsx </code></pre> <p>The file names follow that patern, 101a, 102a etc. What i want to do is merge those based on that paternt in...
2
1,411
std::regex and ignoring flags
<p>After learning basic <a href="/questions/tagged/c%2b%2b" class="post-tag" title="show questions tagged &#39;c++&#39;" rel="tag">c++</a> rules,I specialized my focus on <code>std::regex</code>, creating two console apps: 1.<code>renrem</code> and 2.<code>bfind</code>.<br> And I decided to create some convenient funct...
2
2,789
Windows IoT BackgroundTask Async/Await
<p>I am having a play with a Raspberry Pi 3 running Windows IoT. I have wired up a DS18B20 sensor and I am able to communicate to it fine via a UWP app.</p> <p>I now wanted to make this app into a BackgroundTask app. I am using this code for the OneWire coms</p> <pre><code>class WireSearchResult { public byte[] i...
2
3,313
python beautiful soup web crawling with json
<p>I'm new to beautifulsoup in python and I"m trying to extract certain information from a website. In detail, the url and the title.</p> <p>I use beautifulsoup to extract the json which I successfully did but I´m unsure about the next steps, how to get the url and title</p> <p>I did not manage to extract the desired...
2
2,902
Azure IoT Edge ClientModule can't connect in host mode
<p>as expected of a beginner IoT Edge developer, I started following the Microsoft tutorial on how to deploy custom code to an IoT Edge server <a href="https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-csharp-module" rel="nofollow noreferrer">Tutorial: Develop a C# IoT Edge module for Linux devices</a>.</p> <p>I...
2
1,422
Getting different errors for different platforms using Renderscript Support Library
<p>I'm having different troubles trying to implement some code written in Renderscript for Android. First let me say that all my SDK packages are up-to-dated to the 22.3 version, including the Ecplise ADT and Build-Tools 19.0.0.</p> <p>My purpose is to implement some high-computational image algorithms on a wide range...
2
2,753
How set Firebase notification ChannelID in Android O?
<p>For API level 26 we have to set a channel id as a reference. I learned how to do it without a channelID and below there is my firebase messaging set-up code. But now for the new Android api 26 level</p> <pre><code>NotificationCompat.Builder(this); </code></pre> <p>This doesn't work and I should add a reference to ...
2
1,385
Android - Adjust spinner to have nothing selected or do nothing on first choice
<p>How can I make my spinner not start automatically? I have seen a few solutions on here but they confused me. When the activity starts the download starts immediately and that is not what needs to happen. How can I allow the user to make the selection instead of it downloading the first item automatically?</p> <p...
2
2,541
How do I disable form dropdown option using javascript
<p>I'm trying to disable the "name" text field in the form when "Choose" is selected in the drop down <em>after</em> the page loads (it's disabled when the page loads) ie after I've chosen one of the other two options that disable or enable that field, when I return to "Choose" i'd like the same field to disable. I can...
2
1,868
Flutter HTTP Request Called Multiple Times On App Load
<p>I have a flutter project that makes an http request to gather json of inventory items then render it on screen in a list view. When a user scrolls to the bottom it then loads more inventory by triggering another http call. However my initial HTTP call is being called multiple times. And I am not sure how to handle t...
2
1,085
Fetching an async hasMany relationship in the model hook
<p>Lets say I have two models, <code>Book</code> and <code>Chapter</code>.</p> <pre><code>App.Book = DS.Model.extend({ name: DS.attr(), chapters: DS.hasMany('chapter', { async: true }) }); App.Chapter = DS.Model.extend({ name: DS.attr(), book: DS.belongsTo('book') }); </code></pre> <p>I'm using the <code>RES...
2
1,115
Why can't i login with spring security and weceem plugin installed in grails framework 1.3.7
<p>I'm working on a nearly clean grails 1.3.7 project with weceem 1.0RC2, spring-security-core 1.1.3, spring-security-ui 0.1.2, weceem-spring-security 1.0 and their dependencies installed.</p> <p>Everything works fine except the user login. When I want to login over <a href="http://localhost:8080/appname/login" rel="n...
2
1,681
Orphans and widows in fo:table to control page break within fo:table-cell
<p>I'm faced with a styling problem when using tables with a lot of text within the cells. Sometimes the text is unfortunately separated by the page break. As you can see in the following picture the <strong>paragraph1</strong> from <strong>row3</strong> is divided by the page break.</p> <p><img src="https://i.stack.i...
2
2,617
losing css style in dynamically added table rows
<p>I've read a lot about adding and removing rows from tables dynamically. I'm very sure I have done everything the right way. </p> <p>my view:</p> <pre><code> &lt;table id="LibList" class="table table-responsive table-condensed table-bordered"&gt; &lt;thead&gt; &lt;tr&gt; ...
2
2,197
emacs save-excursion not restoring point?
<p>I'm running this function (interactive and in a hook) to reformat source code</p> <pre><code>(defun a-style () (interactive) ...
2
1,535
Add a line (not a series) to a dojo chart
<p>I have a working chart that graphs sales by week. I'd like to add a vertical line to the chart that represents the current week, but I can't figure out how to do it.</p> <p>My chart setup is pretty vanilla:</p> <pre><code>dojo.ready(function(){ var chart = new dojox.charting.Chart2D("saleschart"); chart.setTheme(d...
2
1,205
django.db.utils.OperationalError no matter what I try
<p>OK, I'm stumped. I think I've tried everything. </p> <p>I created a model in an app's <code>models.py</code> and also added some more fields to an existing model (all with default values). Then I ran <code>makemigrations</code>. The result:</p> <pre><code>$ python3 manage.py makemigrations Traceback (most rece...
2
4,855
How to make Jbutton run another class?
<p>Hi stackoverflow community!</p> <p>I'm making an AI TicTacToe project for my finals, and I'm having a problem trying to run another class after pressing one of jButtons in the jFrame class.</p> <p>I'm using NetBean's jFrame class, where you can design easily by placing it from the container, and some of the codes ...
2
1,158
Cannot invoke method with argument list of type KeyType in Swift
<p>I am working on custom message dispatcher in Swift. I want to have dispatcher which can:</p> <ul> <li>dispatch enums as events or whatever what is <code>Hashable</code>.</li> <li>Every object which implements one protocol might be added as listeners</li> </ul> <p>Here is the code:</p> <pre><code>import Foundation...
2
2,575
social media icons fade and swap effect with Jquery
<p>I've searched around and haven't found anything, which is surprising because of how common I see this effect on websites. </p> <p><strong>The problem:</strong> social logos are too colorful to display without clashing with the rest of the website's look and feel.</p> <p><strong>The solution:</strong> turn them the...
2
1,341
Could not resolve placeholder "server.contextPath"
<p>When testing a functional test of a resource with Spring, I'm calling a Rest Service, which code is the next:</p> <p>SERVICE:</p> <pre><code>@Service public class RestService { @Autowired private Environment environment; @Value("${server.contextPath}") private String contextPath; private int...
2
2,457
PySpark regexp_replace does not work as expected for the following pattern
<p>I'm using spark streaming to consume from a topic and make transformations on the data. Amidst these is a regex replacement. The <code>regexp_replace</code> function from <code>pyspark.sql.functions</code> is not replacing the following pattern (I tested it beforehand using regex101.com, <code>re</code> from python,...
2
2,262
Image Upload from React to Express server with Multer
<p>I get <code>undefined</code> when I try to read the <code>req.files</code> and if I read <code>req.body</code> I get <code>file: [object Object]</code> which, when read on the front end before being sent is</p> <p><code>Icon: File(4076381) lastModified: 1513292207750 lastModifiedDate: Thu Dec 14 2017 17:56:47 GMT-0...
2
1,103
Auto-flipping images in ViewFlipper inside a fragment
<p>I am trying to automatically change images inside a fragment using ViewFlipper. My activity code is :</p> <pre><code>package com.example.scientia; import android.app.Activity; import android.app.ActionBar; import android.app.Fragment; import android.app.FragmentManager; import android.app.FragmentTransaction; impo...
2
3,598
Android: how to set up CardView OnLongClick()?
<p>I have a RecyclerView list of CardViews. I click on a CardView and it uses an intent to launch a new activity, which shows a detail CardView to the user. I want to add a LongClick to that new CardView that will launch a Dialog to ask the user if they would like to delete the CardView. I tried the set up below. T...
2
1,257
Trying to work with down() method from ExtJS 4.2.1
<p>I am trying to find a specific element from my page using ExtJS 4 so I can do modifications on it. I know its id so it should not be a problem BUT</p> <p>-I tried Ext.getCmp('theId') and it just return me <code>undefined</code></p> <p>-I tried to use down('theId') method by passing through the view and I still get...
2
2,034
How to detect touches on a draggable line (drawn using drawRect)
<p>Calling all experts! I have seen various posts, and to be honest, my need is a little different than the answers available on SO. </p> <p>I want to create a UI where the user can create various lines (straight, curved, wiggled etc) onto a specific area (lets call this "canvas" for now). There can be multiple instan...
2
1,295
Read a Xml file in Groovy
<p>I am reading a xml file in groovy something like below, but don't know what is going wrong.</p> <p>Below is my function</p> <pre><code>def setEnvironment(Map env,Map params) { def records=new XmlSlurper().parse(env.get("ABC_HOME")+"/isp/config/nodemeta.xml") def jdbcurl=records.'domainservice:DBConnectiv...
2
1,065
EF Core FromSQLRaw is not calling the database?
<p>I need to rewrite an old web service because the team that supported the old one no longer wants to support it with their new tool. So I'm rewriting it using ASP.NET Core WebAPI and EF Core 3.1.</p> <p>The majority of the logic for the service is stuck in stored procedures written years ago. Nothing super complex, ...
2
1,758
Replace dot product for loop Numpy
<p>I am trying to replace the dot product for loop using something faster like NumPy</p> <p>I did research on dot product and kind of understand and can get it working with toy data in a few ways in but not 100% when it comes to implementing it for actual use with a data frame.</p> <p>I looked at these and other SO thr...
2
5,099
Sabre OTA_AirBook soap request
<p>I have problem with soap request for OTA_AirBook on sabre, I can use SessionRequestRQ to get the binary security code.</p> <p>This is my request</p> <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:xlink="http...
2
2,499
OpenID+OAuth for YouTube using openid4java
<p>My application allows users to log in using OpenID from Google or Yahoo. There's also a feature which allows users to upload to YouTube. Some users arrive via a YouTube context with the purpose of creating something and uploading to YouTube. These users will need to authorize my application to access both the addres...
2
1,784
Android FFmpeg - Mux encoded h264 frames from MediaCodec
<p>I'm trying to capture h264 frames from Android camera (encoded by MediaCodec) and pass them to an FFmpeg process running on the same device.</p> <p>I currently do it by writing the encoded byte arrays I receive from the MediaCodec to a file called out.h264. </p> <p>Like so :</p> <pre><code> FileOutputStream fo...
2
1,243
deprecated warnings when using sonata admin bundle
<p>I am using symfony2.7 with sonata admin doctrine orm bundle, I followed the official install instructions, works fine except one thing. At every request I get the following debrecated warnings, and I dont know how to eliminate it.</p> <pre><code>Date: 2016-10-18 08:58:28 Fatal: array( ['type'] =&gt; 16384, ...
2
3,744
Java using SharePoint 2010 Web Services - SPSearch.asmx
<p>I'm developing a custom component in Java (1.7). This component needs to be able to Push and Pull a file to a SharePoint 2010 Server.</p> <p>I've successfully Pushed a file along with metadata to the Server. I've also successfully Pulled a file from the Server.</p> <p>Well I need to be able to search (query) the S...
2
1,100
Erro loading third party dll from Asp.Net Application
<p>the situation is quite complex ( and my english very basic) but let's try to explain:</p> <p>i'm developing a Asp.net web service calling a method from an external dll.</p> <p>This external dll calls some method from other .net dlls.</p> <p>So we have:</p> <pre><code>Asp.net WS ----&gt; External.dll ----&gt; o...
2
1,038
Java: Using BufferedReader and PrintWriter in Conjunction Causes Issues
<p>I'm trying to learn about Java's io package through experimentation and from the book "Java2: the Complete Reference (5th ed.)". Below, I have tried to make a very simple program to take some input using a BufferedReader instance and deliver some simple console output with PrintWriter instances.</p> <pre><code>pack...
2
1,514
D3 force directed graph drag and zoom functions not working
<p>I've been trying to implement a D3 force directed graph function to give a visual representation to my data, So far I've been successful in getting the nodes to display on the screen and have the individual nodes draggable, however I have been unsuccessful in getting the whole network to pan and zoom.</p> <p>I've l...
2
1,279
ASP.Net Membership (Visual Studio 2012 & Web Forms)
<p>I'm using the Membership Provider (Precursor to Identity) in a WebForms Project. I was able to get the users working right out of the box. I registered a few users and ASP.Net created the following tables in my database.</p> <pre><code>dbo.Memberships dbo.Profiles dbo.Rules dbo.Users dbo.UsersInRoles dbo.UsersOpenA...
2
3,882
setting up struts2 project in netbeans Maven
<p>the following is what i do. 1. download and use all the jar 2.building web.xml in the WEB-INF</p> <pre><code> &lt;!--?xml version="1.0" encoding="UTF-8"?--&gt; &lt;web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s...
2
1,038
React native websocket error on Android
<p>I'm using simple Websocket connection on react native framework, with ios it works great, but on Android I'm in 70% getting message: <code>WebSocketEvent {type: "error", message: null}</code> and this error is closing socket connection. I don't know why does it happenning?</p> <p>My code is:</p> <pre><code>self._w...
2
1,081
flutter - How to Speed Up Compute for Parsing Json Function
<p>I have a function in <code>bloc</code> that needs to retrieve data from API then parse and load them into the widget.</p> <p>For Data Retrieval from API, it's so fast. However, I see a <strong>bottleneck</strong> when parsing the json, as seen as below code :</p> <pre><code> response = await dio.get("/article...
2
2,795
Service Fabric Client on Azure Functions - Unable to load DLL 'FabricClient.dll' or one of its dependencies
<p>I have an application running on Azure Functions, including a class that manages apps &amp; services running on Service Fabric Cluster using Service Fabric Client API for .NET. </p> <p>Application works when I run it locally in debug mode from Visual Studio, and connection to Service Fabric Cluster works as expecte...
2
1,101
Create a list of dynamic queries from an array in SQL Server 2008
<p>I split this question of from <a href="https://stackoverflow.com/questions/24184180/fill-dynamic-array-with-values-from-an-array/24185288">Fill dynamic array with values from an array</a>. Below is the actual code I now have. </p> <p>First the dynamic code, second the 3 example queries that I would like the dynamic...
2
1,175
What is a good way of forwarding credentials within a web environment?
<p>Given the following configuration:</p> <ul> <li>a web client = a regular, modern browser;</li> <li>a typical <em>ASP.NET</em> web application, somewhere on the Internet;</li> <li>a third-party web service that: <ul> <li>sits in another domain (no relation via <em>federation</em>, <em>domain trust relations</em> or...
2
1,464
TextBlock and Image inside Dockpanel
<p>I have the below code. I am trying to place the image directly to the right of the textblock within the border, but the image is almost touching the right side of the screen. How can I allign the image to the right of the textblock</p> <pre><code>&lt;Border BorderBrush="#FFD6D4D4" BorderThickness="0,0,0,1" Grid.C...
2
1,124
Customize Infowindow : move arrow to the left not working on first click
<p>I'm using the "5 ways to customize the Google Maps Infowindow" ( code here : <a href="https://codepen.io/Marnoto/pen/xboPmG" rel="nofollow noreferrer">https://codepen.io/Marnoto/pen/xboPmG</a> )</p> <p>When clicking for the first time on the marker, the window opens, but the arrow don't move to the left (this appen...
2
3,133
How to fix Error: Unexpected value 'DataTableModule' imported by the module 'DashboardModule'. Please add a @NgModule annotation
<p>I converted Angular 4 project to Angular 7. ng serve commands works but after login in an application, it gives error in console <strong>"Unexpected value 'DataTableModule' imported by the module 'DashboadModule' . Please add a @NgModule annotation."</strong> Application works fine in Angular 4 version. I already ha...
2
1,419
Unity - IOS persistentDataPath access denied // Could not open database
<p>I am trying to recover a file from my streamingAssets and make a copy of it in the persistentDataPath.</p> <p>The problem is that access to persistentDataPath is denied by iOS, so I cannot write the file, can someone tell me why?</p> <p>Code:</p> <pre><code>#elif UNITY_IOS if (File.Exists(Application.dataPath + "...
2
2,873
Best Way to Create Table In Flutter
<p>Here i create table using using container and based on expanded using flex number to make header and the row relatable. I think this is not best way, but i don't know the other way how to create table like this, anyone can give me a suggestion?</p> <p>Here is the code:</p> <p>_tableSection</p> <pre><code>Widget _boo...
2
1,081
Uncaught (in promise) : DOMException: play() failed because the user didn't interact with the document first in console
<p>I had created a game using html, css and javascript. In my code there is an issue in playing the audio, I am not able to play the audio. Every time it is showing an warning/error &quot;script.js:7 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first&quot; in the ...
2
1,210
Converting integer to binary - how it's done on Android ( vs Windows) - XE5
<p>So, yesterday I opened up a <a href="https://stackoverflow.com/questions/21361627/converting-decimal-integer-to-binary-how-and-why-it-works-the-way-it-does">question about converting integer to binary</a>, which was a little unclear to me, about how it works (with the shifting operations). Now, I have another questi...
2
1,347
$_POST in php not populated using Volley library JsonObjectRequest (method POST)
<p>Let's start with the code I am using, I have tried every single possible different way to make "params". I have used it as a HashMap, in Json format and also as a string. I have also tried to @Override the getParams() method by creating a hashmap and returning it. Nothing as worked.</p> <p>Here is my function that ...
2
1,663
Import JSON and convert to array
<p>I tried alot of things, but nothing worked. I'm using jQuery.</p> <p>So what I have to do is really to import <a href="http://jacce.dyndns.org/game/resources/game/map.php" rel="nofollow">http://jacce.dyndns.org/game/resources/game/map.php</a> (so far I succeeded with $.getJSON), convert it to an array and then plac...
2
5,907
search query in elasticsearch with url in field
<p>I have to search a file location path in the indexed data of an elastic search. I indexed the location path in an encoded format(tried without encoding also). The below query returns all the indexed data without doing any match. If I search with <strong>id</strong> or <strong>title</strong> field, it returns correct...
2
1,878
Retrieving Value from Another Row in Spotfire
<p>I am attempting to reference a value in another row for a particular column of data in Spotfire. As an example, I would like to reference the sales month where the quantity of sales of bronze widgets was equal to the number of Gold Widgets. I've included a column below to show the data I need, "Month Where Bronze S...
2
1,050
Golang docker library - mounting host directory volumes
<p>How do I perform the equivalent of:</p> <pre><code>docker run -v /host/path:/container/path image:tag </code></pre> <p>from Go using the official docker client package?</p> <p>I've tried different <a href="https://godoc.org/github.com/docker/docker/api/types/container#HostConfig" rel="nofollow noreferrer">Mounts<...
2
3,038
Tomee - slf4j create logs file but not writing on them
<p>I want to use log4j for my app (I don't need to handle the server logs for now). I searched for a solution but all post are related with server logs. When I run the app, the log4j.properties is read and the logs file are created but it didn't write on them.</p> <p>I'm using Tomee as server. I have other project wit...
2
1,334
How to add a toolbar at the bottom?
<p>I'm trying to have my toolbar at the bottom. I already tried some tips but the toolbar rests at the top. </p> <p>So: What do I have to change so my toolbar appears at the bottom?</p> <p>If you need more code - there isn't much more - or other informations, just say so. </p> <p>My XML file:</p> <pre><code>&lt;?xm...
2
2,421
TeamCity fails deploying to Artifactory - reports "Expected a folder but found a file"
<p>I have a Maven build that was recently working and properly deploying, and now it fails to deploy. As far as I can tell, nothing has changed in the build settings nor the pom.xml. <em>(I did a diff on the pom from the successful and failing folders and they are identical; assuming the folder hasn't been updated.)</e...
2
3,436
Using Postgis' Geometry type with Entity Framework
<p>I've been trying to build my first ever API project using ASP.NET Core.</p> <p>Everything is going smoothly, except for one thing. Whenever I try to add a new scaffolded controller (after adding my models, of course), I get the following error:</p> <blockquote> <p>The property 'Favor.Coordinates' is of type 'Geometr...
2
1,181
Class Not Found: Could not load com.microsoft.sqlserver.jdbc.Nanos
<p>I'e got what seems to be a very strange issue. My application runs fairly well and I am in the process of optimizing it (I inherited it from other developers). </p> <p>The project uses Hibernate 4 with MS SQL Server and runs on Tomcat 8 using Primefaces. I've recently gone back and began use lazy loading (the previ...
2
5,782
Trying to upload video to facebook using FBConnect for iPhone
<p>I am working on an app which will upload videos to a Facebook users wall, however I have not had much success. I present an extended permissions dialog window, and then use the face.video.upload method call. In the debugger, it seems like each parameter is set correctly, however the ext permission dialog never compl...
2
1,990
Sequelize Eager Loading not working at all
<p>First of all, I already searched every single question about this topic here in StackOverflow and in almost everywhere, so I'm asking if you can help me.</p> <p>I'm making a web app using ExpressJS(v4.15.5) and Sequelize(v4.22.6). I defined the models, migrations, associations and inclusively add an alias to all as...
2
1,077
MVC, Passing count of 3 tables to view
<p>I'm trying to pass the counts of three different tables into a view along with a list of albums. It's a mod of the MvcMusicStore tutorial. I'm getting the "The ObjectContext instance has been disposed and can no longer be used..." error. I understand that it has to do with lazy loading, but I can't figure out how to...
2
1,292
WPF Datagrid Get Cell Value in MVVM architecture
<p>How to get selected Cell value from Datagrid? </p> <p><strong>What information i have looked?</strong> Everything where title was "WPF get cell value MVVM".</p> <p><strong>What i did?</strong> 1 step:</p> <pre><code> &lt;Page x:Class="PDB.UsersView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/p...
2
1,819
AJAX doesn't update value of a text box
<p>I want to update a value of a input text box via AJAX. I cannot make it work althouth almost the same AJAX code works fine for 'text' only. The same behavior for ff &amp; chrome.</p> <p>the only difference is </p> <pre><code>doesn't work ---&gt; document.getElementById("f1").value=revision; works fine -----&gt; ...
2
1,155
ZeroMQ PUB/SUB Pattern with Multi-Threaded Poller Cancellation
<p>I have two applications, a C++ server, and a C# WPF UI. The C++ code takes requests (from anywhere/anyone) via a ZeroMQ messaging [PUB/SUB] service. I use my C# code for back testing and to create "back tests" and execute them. These back tests can be made up of many "unit tests" and each of these sending/receiving ...
2
3,796
Facing vulnerability security issue for dot-prop when updating to latest npm package
<p>I am trying to update npm version to latest <code>6.14.7</code> in <em>package.json</em>.</p> <p>After updating npm to the latest, I ran <code>npm audit</code> and got two vulnerabilities for the <code>dot-prop</code> package dependency which is showing under npm path.</p> <p>So, I tried updating the latest <code>do...
2
2,543
d3.js changing data on click (multiple instances of Donut Chart )
<p>I'm trying to make a data visualisation with d3.js. Im new to d3 and i think i did not quite understand completely how to change data with a click, so i need your help!</p> <p>Thats what i've got so far(which i'm quite happy that it works):</p> <pre><code> /*-------------------------data is parsed and proceedet ab...
2
1,909
React Native: facebook-android-sdk dependency build error
<p>I'm running <code>React Native v0.53.0</code> and npm installed <code>react-native-fbsdk v0.7.0</code> but I can't build my project.</p> <p>I've seen various <a href="https://github.com/facebook/react-native-fbsdk/pull/339" rel="nofollow noreferrer">issues</a> and stackoverflow questions and it seems like it proble...
2
4,322
Meaning of position or offset in HTMLDocument text
<p>I'm trying to understand how positions/offsets work in <code>HTMLDocument</code>. Position/offset semantics are described <a href="https://docs.oracle.com/javase/7/docs/api/javax/swing/text/Document.html" rel="noreferrer">here</a>. My interpretation is that these are indices in the sequence of on-screen characters r...
2
1,793
Cannot create index for LaTeX/PDF output
<p>I followed the <a href="https://bookdown.org/yihui/bookdown/latex-index.html" rel="nofollow noreferrer">bookdown</a> instruction to create the indexing. Although the code ran without error, it was not showing the index in the pdf output. There is also instruction <a href="https://github.com/rstudio/bookdown/issues/1...
2
1,279
Grails Java 8 dev-mode Support
<p>As Java 7 is now no longer being publicly maintained and Grails 2.4.X support for Java 8 is marginal (it crashes) in dev-mode <em>when reloading</em>. <strong>I was wondering if anyone had a better luck with Java 8 dev-mode Grails 2.5 or Grails 3</strong> before I migrate? </p> <p>In theory a lot of things wer...
2
1,643