title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Laravel angularJS CORS using barryvdh/laravel-cors not working on IIS | <p>I have problem with cross domain request to an API hosted on IIS.</p>
<p>I am using an angularjs application to fetch data from the API, which is developed with laravel 5 using tymondesigns/jwt-auth and barryvdh/laravel-cors package for JWT and CORS.</p>
<p>When the API is hosted on apache angularjs app fetches da... | 2 | 1,061 |
Youtube AS3 API simple question | <p>I am trying to add youtube player in my flash site. I downloaded the AS3Player class file from youtube api website and link it in my flash file. When I ran it, I got compiler error that said <code>C:/project/flash/youtube/player/AS3Player.as : The definition of the base class Canvas was not found</code></p>
<p>and ... | 2 | 3,794 |
Moving std::list<std::unique_ptr> into vector attempts to reference a deleted function | <p>Here is a complete program which reproduces my problem.</p>
<pre><code>#include <vector>
#include <list>
#include <memory>
#include <utility>
int main()
{
std::vector<std::list<std::unique_ptr<int>>> v;
std::list<std::unique_ptr<int>> l;
l.push_bac... | 2 | 6,336 |
How to handle mixed datatype values in columns using SQL Server | <p>I have a question about SQL Server: how to convert scientific notation value to integer values?</p>
<p>We have some bill numbers that were converted to scientific notation. This means they are in the wrong format for bill numbers and should be converted back to regular decimal or numeric format. </p>
<p>I am encou... | 2 | 1,038 |
Why I keep getting "Object reference not set to an instance of an object."? | <p>My objective is to connect to an mdb database (stored locally), go through it and get the following information:</p>
<p>-The names of all the tables present in the database</p>
<p>-The name of the columns AND their type in each table of the database.</p>
<p>While developing the code I used the code indicated in t... | 2 | 1,194 |
Trying to delete specific checked elements using jquery | <p>I can't seem to figure out how to delete an element using jQuery. I'm creating a sample shopping list app and I'm able to add items as needed but I cannot figure out how to remove checked items. What am I missing?</p>
<pre><code> jQuery(document).ready(function() {
$('.addStuff').on('click', function() {
var htmlSt... | 2 | 1,144 |
Android Espresso, How can I perform onLongClick and slideDown continued? | <p>I mean, I can perform the two actions sequentially but in the middle there is an <code>ACTION_UP</code> MotionEvent where I removed the OnTouchListener I'm using on the view</p>
<p>In my case I need to avoid trigger that event. </p>
<p>I have a sport field with players, one of the Use Cases is move a player after ... | 2 | 1,236 |
java.lang.NullPointerException error when using alarm manager | <p>This error <code>java.lang.NullPointerException</code> is be displaying, when I use alarm manager to fire notification using receiver.</p>
<p>I select an item from <code>listView</code> then it call <code>setNotification</code> method then it set repeating alarm to fire notification.</p>
<p>This is the code:</p>
... | 2 | 4,486 |
OpenCL Kernel Executes Slower Than Single Thread | <p>All, I wrote a very simple OpenCL kernel which transforms an RGB image to gray scale using simple averaging.</p>
<p>Some background:</p>
<ol>
<li>The image is stored in mapped memory, as a 24 bit, non padded memory block</li>
<li>The output array is stored in pinned memory (mapped with <code>clEnqueueMapBuffer</co... | 2 | 1,664 |
How to add services to CBPeripheralManager correctly in Xamarin | <p>I am attempting to add services to a CBPeripheralManager for IOS using Visual Studio for Mac. However, when I scan for my peripheral using another device, I do not see my added service. The advertising name is correct, but I only see other services (presumably default for iphone).</p>
<p>As a side note, I wrote th... | 2 | 1,051 |
Problem encoding string to ISO8859-1 | <p>I'm using this code to convert string to ISO8859-1</p>
<pre><code>baseurl = "http://myurl.com/mypage.php"
client = New WebClient
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)")
client.QueryString.Add("usuario"... | 2 | 1,092 |
How to get a RecyclerView Item to update itself from a LiveData value in it's binding object using BindingAdapter? | <p>I have a recyclerview.widget.ListAdapter to display some cards in a grid. When I click on a card, it comes to the front of the grid, flips, and when you see the front, you are supposed to be able to like it. I have an ImageView on the corner of the front of the card, that is supposed to toggle between liking or not,... | 2 | 1,968 |
Geometric median/meeting point 2D realization | <p>I have some problems with my program, it currently gives the wrong results for finding a meeting point.
I choose to use <a href="http://en.wikipedia.org/wiki/Geometric_median" rel="nofollow noreferrer"><code>geometric median</code></a> algorithm for searching for a meeting point, as described <a href="https://stacko... | 2 | 2,584 |
How use formik from Header / navigationOptions and trigger handleSubmit onpress HeaderRight | <h3>the goal</h3>
<p>pass params to navigation in order to get access to </p>
<pre class="lang-js prettyprint-override"><code>onPress={props.handleSubmit}
</code></pre>
<p>within a simple react Natie app,
inside <code>#EditProductScreen.js</code> </p>
<p>I have this pattern </p>
<pre class="lang-js prettyprint-ov... | 2 | 2,056 |
When spark-shell launch, It has RuntimeException for SimpleUserGroupsMapping | <p>I install HDFS, YARN through Ambari and try to deploy spark on yarn.</p>
<p>But When I execute follow script, Spark has error</p>
<p>How to deploy spark on yarn.
Would you mind explaining how to deploy spark on yarn step by step?</p>
<p>I set HADOOP_CONF_DIR, YARN_CONF_DIR in spark-env.sh and spark.master in spar... | 2 | 1,799 |
window.print() prints 6 empty pages before requested page | <p>I have a web page that contains a menu bar with 7 tabs. Right beneath the menu bar is a print button that calls the javascript window.prin() function. However, every time this button is pressed the pages for all 7 tabs get printed. Is there any way to specify exactly which page you want to print? </p>
<pre><code>&l... | 2 | 8,222 |
log4net different messages for different appenders, creating duplicate log entries in file | <p>I have implemented a custom appender for log4net in which i am doing logging to a file and sending out mail. I want to log different message strings for each case. Below code creates two log entries in the file, one with appended string & one without appended string. It also sends out the email without the appen... | 2 | 1,085 |
Spring:failed to load applicationContext? | <p>My project has <code>service</code> module which has <code>applicationContext.xml</code> on <code>src/main/resources</code> path. </p>
<p>I run integration test using <code>maven-cargo</code> plugin and dependency looks like </p>
<pre><code> <plugin>
<groupId>org.codehaus.c... | 2 | 4,875 |
Android: navigation drawer with custom adapter onItemClickListener | <p>I've been trying set custom ListView adapter for navigation drawer it derived from <code>BaseAdapter</code> so when I set <code>OnItemClickListener</code> it doesn't work on either <code>ListView.OnItemClickListener</code> and <code>AdapterView.OnItemClickListener</code>.</p>
<p>Googled around but all examples deri... | 2 | 1,243 |
.Net Core 1.1 with ADAL: The dependency NetStandard.Library >= 1.6.0 could not be resolved | <p>I'm trying to use ActiveDirectory client on my <code>NetCore 1.1</code> project. Project restores fine, but doesn't build. When building I get an error <code>The dependency NetStandard.Library >= 1.6.0 could not be resolved</code> that points to Microsoft.IdentityModel.Clients.ActiveDirectory</p>
<p>Why can't th... | 2 | 1,643 |
[react-native]update RN to 0.43.3 build failed | <p>when I update RN from 0.41 to 0.43.3,I suffered a crazy problem, if I run gradlew assembleRelease, the apk build failed, but when I add option --debug, the apk build successful, it should be the problem of progurad, but i cannot fix it, any help is appreciated:</p>
<pre><code>-gradlew assembleRelease
...
Loading de... | 2 | 7,105 |
How do you get the original coordinates of a point within a zoomed image? | <p>I have this school assignment which asks me to be able zoom in and out on a region of interest using opencv and C++. The size of the region of interest is initialized at 80*80 and it augments (left click) and diminishes (right click) by 10px vertically and horizontally on click. I think I have managed to do that as ... | 2 | 2,087 |
Reading file with fread() in reverse order causes memory leak? | <p>I have a program that basically does this:</p>
<ol>
<li>Opens some binary file</li>
<li>Reads the file <strong>backwards</strong> (by backwards, I mean it starts near EOF, and ends reading at beginning of file, i.e. reads the file "right-to-left"), using 4MB chunks</li>
<li>Closes the file</li>
</ol>
<p>My questio... | 2 | 1,341 |
Drupal 6 batch not executing | <p>Anyone able to offer some ideas on this? Basically the module I'm building has a form (as per function_email_solicitors_compose), and on submission we obviously route to form_emails_solicitors_compose_submit. Here I define a batch in $batch, and batch_set the aforementioned batch. The drupal documentation says I don... | 2 | 2,202 |
app crash while using firebase phone Auth in android | <p>This question is not similar to any of the others. I've already tried many solutions from <a href="https://stackoverflow.com/questions/49237350/app-crashes-with-firebase-phone-auth">App crashes with firebase phone auth</a>, <a href="https://stackoverflow.com/questions/64720643/error-while-geting-firebase-phone-auth-... | 2 | 1,471 |
No suitable HttpMessageConverter found error while executing rest service that takes multipart parameters | <p>I am using Spring Integration in my project. I am trying to execute a rest service which takes multipart/formdata input parameters. I am using int-http:outbound-gateway to execute rest service. The following is the code:</p>
<pre class="lang-xml prettyprint-override"><code><int:channel id="PQcreateAttachment-Res... | 2 | 2,312 |
Simple OpenCL kernel produces vertical bars instead of solid color in output image. Why? | <p>I'm trying to write image processing OpenCL application, but my problem that any attempt to alter input image produces artifacts which look like vertical bars. This does not happen if I copy image pixels without altering them. So for example this line produces artifacts:</p>
<pre><code>pixel = (uint4)(image1_pixel.... | 2 | 1,397 |
How can I upload a webcam snapshot with a given name in my form? | <p>I have this plugin that takes a snapshot and upload the jpg to the server. Now, I'm using the function date('YmdHis') . '.jpg' to name the file. But I would like to give the filename at my html file. I have 4 files: TEST.HTLM with my html, WEBCAM.JS with some JS and TEST.PHP with the server functions. I have webcam.... | 2 | 5,353 |
How do I create ActionBars recursively at runtime? | <p>I am writing a class which will map a large legacy application's <code>TMainMenu</code> hierarchy to <code>TActionMainMenuBar</code> items.</p>
<p>The most important method, which borrows heavily from a EDN CodeCentralC article by Steve Trevethen, looks like this. I apologize for the length, but this really is prob... | 2 | 1,706 |
Routing Problem: "There are multiple heroes that share the same tag within a sub-tree ." | <pre><code>import 'package:flutter/material.dart';
import 'package:ui_mvc/Rings.dart';
class Diamonds extends StatefulWidget {
@override
_DiamondsState createState() => _DiamondsState();
}
class _DiamondsState extends State<Diamonds> {
var dataList= [
{
"name": "A1",
... | 2 | 1,928 |
Error /dev/tty: No such device or address when installing sqlcmd inside docker | <p>I wanted to install sql cmd in my docker image.
My dockerfile has these commands to install sqlcmd (centos 7 base image)</p>
<pre><code>RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo
RUN yum remove mssql-tools unixODBC-utf16-devel
RUN yum install -y unixODBC-devel ... | 2 | 1,256 |
Calling an alias command from a docker not working as expected | <p>I am troubleshooting a Dockerfile meant to reproduce a manual installation procedure. The last step in the manual procedure invokes an alias <code>cm</code>. That alias expands out to alias <code>cm='cd ~/catkin_ws && catkin_make'</code>. <code>which catkin_make</code> reports <code>/opt/ros/kinetic/bin/catk... | 2 | 2,030 |
How to Generate CSV File from PHP Form? | <p>Aware this has been asked before but the solutions I found didn't help. </p>
<p>Currently I receive an email when a user completes the form on my website to download the brochure. I would like to have these details; Name, telephone, email and city store in a CSV file, which I can then manually add to Mailchimp or o... | 2 | 1,696 |
Setting text color in custom sliding tab view on first display | <p>I'm trying so set the text color on sliding tabs within a custom view according to the tab state. It's working but not on initial display.</p>
<p>The textcolor in the custom view should be <strong>white</strong> when the tab is <strong>selected</strong> and <strong>darker grey</strong> otherwise. I got it partly wo... | 2 | 1,270 |
Setting deadlock_priority does not make LOW priority session the victim | <p>One of our jobs was deadlocking with user routines, so we put the following code in the job step, just before the procedure is called:</p>
<pre><code>DECLARE @deadlock_var NCHAR(3);
SET @deadlock_var = N'LOW';
SET DEADLOCK_PRIORITY @deadlock_var;
*--Call procedure
exec Client_myDeliveries_I_S*
</code></pre>
<p... | 2 | 2,974 |
BlueImp AngularJS Integration | <p>I want to integrate the BlueImp AngularJS file upload plugin into my site , but the problem is I'm using a template / directive / controller / service model. Ignoring the service I still can't seem to find which part of the code goes where.</p>
<p>My template </p>
<pre><code><div> <form id="fileuploadbe... | 2 | 2,740 |
Get a list of all shared libraries that a running service is using in Ubuntu | <p>Some solutions I found for the above problem are : (let's take an example of a running service, say <code>/usr/sbin/acpid</code> and say the pid of the process is 1234)</p>
<ol>
<li><p><strong>ldd /usr/sbin/acpid</strong><br>Output:</p>
<blockquote>
<p>linux-vdso.so.1 => (0x00007ffe5eb7a000)<br>
libc.so.6 => ... | 2 | 1,395 |
Issues cross compiling libnftnl for arm | <p>libnftnl had a dependency on libmnl and I cross compiled libmnl separately for ARM. compiled libs and include dir is present in the location /home/badri/arm_libs/mnl</p>
<p>./configure --build=x86_64-pc-linux-gnu --host=aarch64-linux-gnu --enable-static=no --prefix=/home/badri/arm_libs/nftnl LIBMNL_LIBS=/home/badri/... | 2 | 3,077 |
DataGrid Paging in C# (With Next & Previous Link ) | <p>I have a Data Grid holding upto 250 rows with unquie column called Tab order. Now i need to
have only 5 rows and remaining rows should only be visbile when i click on next button and so on .. </p>
<p>below is my code snippet, when the for loop is completed it will load up all 250 row data into data grid .. i need ... | 2 | 1,598 |
MaterialDesignXamlToolkit with WPF class library? | <p>Sorry for the duplicate, but my low reputation does not allow me to comment on posts.</p>
<p>i am trying to use MaterialDesignXamlToolkit with WPF with class library, exactly as in this post: <a href="https://stackoverflow.com/questions/55594443/how-to-include-materialdesignxamltoolkit-to-wpf-class-library">How to ... | 2 | 1,624 |
Using grunt-postcss - how do we run autoprefixer without the other plugins? | <p>I have a Gruntfile.js set up with Post CSS running autoprefixer, mqpacker, and cssnano at the moment. </p>
<p>I have a default grunt build that will work to build everything for deployment. It includes the call to postcss, like so:</p>
<p><code>grunt.registerTask('default', ['sass', 'postcss', 'concat', 'uglify',... | 2 | 2,021 |
Get first 5 values from array | <p>From my ata i only have to fetch first 5 values. Using Jquery how it is possible.</p>
<pre><code> var server =[
{
"jobid": "4",
"browser": "FF20",
"subemail": "0poo",
"userid": "60",
"names": "abc@gmail.com",
"datetime": "Thu Oct 03 2013 13:41:06 GMT+0530 (IST)... | 2 | 2,367 |
MigLayout confused by JTable objects contained in JScrollBar objects | <p>It appears the MigLayout becomes confused by JTable objects contained in JScrollPane objects. Since it seems likely that it is a common idiom to have a JTable within a JScrollPane, I thought it would be important to find out why.</p>
<p>In the attached example program, a simplified form is created, consisting of 1... | 2 | 2,562 |
How to remove a user from SSRS folder security using Powershell | <p>I'm creating SSRS folder security programmatically using ReportService2010 and Powershell 4.0. I can create folders and then add users to the folder security successfully. </p>
<blockquote>
<p>My requirement is <br />
I want to add all users to the Home folder(Browser role). But for folders under Home folder, o... | 2 | 1,131 |
Installing py27-scipy not working for py27-cairo using macports | <pre><code>(graphite)[nai:~]$ sudo port install py27-cairo
---> Computing dependencies for py27-cairo
---> Cleaning py27-cairo
---> Scanning binaries for linking errors: 100.0%
---> Found 5 broken file(s), matching files to ports
---> Found 3 broken port(s), determining rebuild order
---> Rebuil... | 2 | 1,080 |
Filter a JavaScript deeply nested array of objects based on its values | <p>I have a menu structure as follows:</p>
<pre><code>const menu = [
{
title: 'Supervisor Dashboard',
link: '/dashboard/supervisor-dashboard',
slug: '/dashboard/supervisor-dashboard'
},
{
title: 'User Dashboard',
link: '/dashboard/user-dashboard',
slug: '/dashboard/user-dashboard'
},
... | 2 | 1,370 |
Make stops everytime on a different file | <p>I'm trying to compile some libraries with make, such as Opencv and I'm just curious about it's behaviour. When I run make for example 3 times, it stops and gives error on different files each time while linking. There's also different percentage each time. What does it mean? Make builts targets always in different o... | 2 | 9,427 |
jquery hide show or toggle div loop naming need solution | <p>I have a simple hide show jquery script I grabbed from an example site. I am trying to traverse through using $(this). to target the divs I want to hide/show. I have been able to make this work for the first goruping, anything after the first fails. I have tinkered with the code so I have a few examples of failur... | 2 | 1,388 |
Create a dataframe from nested xml and generate a csv | <p>I have an XML file like this:</p>
<pre><code><?xml version="1.0"?>
<PropertySet>
<PropertySet NumOutputObjects="1" >
<Message IntObjectName="Class Def" MessageType="Integration Object">
<ListOf_Class_Def>
<ImpExp Type="CLASS_DEF" Name="lp_pkg_... | 2 | 3,347 |
What can I do to better structure my File Directory? | <h1>I am working on a dynamic blog/portfolio:</h1>
<p>Ref Link: <a href="http://www.andrewryan.me/" rel="nofollow">http://www.andrewryan.me/</a></p>
<p>I have been working on my personal website for more than a month now. I keep modifying things because I feel like I am setting up this entire thing wrong. I know I am... | 2 | 1,224 |
i have problems in consume WCF service using JAX-WS in java | <p>I have to consume this service exposed in WCF with authentication and ssl.
i generated the client using JAX-WS wsimport tool.
But when i run the application this returns this error:</p>
<pre><code>Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: An error occurred when verifying security for the mess... | 2 | 13,623 |
Interface Iterator already defined somewhere in Java? | <p>Is the interface <code>Iterator</code> already defined somewhere in java library (mind the terminology).
i.e.</p>
<p>What i am asking is that, say i have an arraylist, now i write.</p>
<pre><code>Iterator itr= new Iterator();
</code></pre>
<p>but i never define anything like</p>
<pre><code>public interface Itera... | 2 | 1,033 |
Groovy shell horrendously slow to start | <p>I'm running the interactive <a href="http://groovy.codehaus.org/Groovy+Shell" rel="nofollow">Groovy Shell</a> and it's literally taking <strong>minutes</strong> to start on my machine (a Windows 7 laptop with an Intel i5 processor and 4 GB of RAM so not an ancient computer, just a middle of the road one)</p>
<p>Run... | 2 | 2,033 |
Loop and count in JavaScript | <p>I try to get at least three responses from a total of 10 textboxes. And an alert will occur if the total number of responses is less than three. I also try to eliminate responses that are only spaces, so I use <code>return x.replace(/^\s+|\s+$/gm,'')</code> to get rid of spaces before and after the string.</p>
<p>Wh... | 2 | 1,389 |
Quarkus + Panache. Handle persistence exception (unique constraint) | <p>I'm having trouble catching an exception with quarkus+panache repository.</p>
<p>I have a simple class with with a unique contrain</p>
<pre><code>@Entity()
public class Todo extends PanacheEntityBase {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Type(type = "pg-uuid")
private UUID ... | 2 | 8,979 |
Change Listview item image on click in Android | <p>i want to change particular listview images when click on nect and prev button but Changed all list view images when click on next and prev button</p>
<pre><code>public class ListAdapter extends ArrayAdapter<String>{
Context context;
String imgurl;
String[] imageUrls;
int i=1;
ViewHol... | 2 | 2,985 |
Back button doesn't go back to previous fragment | <p>I have a simple android app in which the launcher activity is a navigation drawer activity. I have a couple of fragments that are shown when user clicks any of the sidebar buttons. The activity shows "fragment1" at first. </p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
sup... | 2 | 1,481 |
How to put an add in for word 2013 using manifest.xml | <p>I have created an add in for word 2013 task pane </p>
<p>now I want to to check whether it is working or not </p>
<p>where and how should i keep the manifest.xml file so has to see whether the add in is working properly or not.</p>
<p>PS: I do not want to use office online it should be through the word in the de... | 2 | 6,669 |
android.view.InflateException: Binary XML file line #36: Error inflating class fragment | <p>I'm very new to Android Application Development. I know my problem might be simple one. but, I'm sure it is related to layout.</p>
<p>Here's my issue: There's is a <i>listView</i> in the <i>Fragment</i>. When I click the button the new Fragment is added to the <b>ScrollView</b> in the main Layout. When I start the ... | 2 | 4,484 |
How do I access the id parameter from the ActionLink? | <p>The issue is that id = 5 is already in the URL as <code>http://localhost:4032/Category/5</code>. But to pass that value to the ActionLink it seems I have to do this:</p>
<pre><code><td> @Html.ActionLink(p.ProdNo, "Main", "Home", new { id = 5, prodno = p.ProdNo }, null) </td>
</code></pre>
<p>Which resu... | 2 | 1,025 |
Elasticsearch multi_match query not working with synonyms and cross_fields | <p>Elasticsearch multi match query with <code>cross_fiels</code> type and synonyms is not working as expected. </p>
<p>I have the following configuration:</p>
<pre><code>{
"my_index": {
"mappings": {
"my_mapping": {
"properties": {
"@timestamp": {
... | 2 | 2,437 |
two separated list-group close to each other [Bootstrap] | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf... | 2 | 1,209 |
Login / Registration PHP form | <p>having a bit of trouble with my login / reg forms</p>
<p>Basically when i register (create new user) it takes me to the login.php script and not the register script. </p>
<p>The login form is in the "header.php" page so its at the top of every page including the register form. But dont think that would be an issue... | 2 | 1,941 |
JDBC MySql bind variable syntax error in where clause | <p>I am getting this error:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1</p>
<pre><code>public static Person getDetails(int id) {
Connection conn = null;... | 2 | 1,363 |
"No module named". Python error in gdb | <p>I'm working on a class project (don't worry, this question is not homework) and recently moved from department machines to my own machine.
The project is to build a simple operating system. To make the task easier, we are provided with the ability to "attach" gdb to QEMU in which our program runs. Running this progr... | 2 | 1,247 |
Installing PyYAML in docker container | <p>I am trying to build a container with the yaml package in it.
However when I try to import the package I have the following error:</p>
<pre><code>>>> import yaml
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'yaml'
</code>... | 2 | 1,123 |
How do I set up AWS kinesishose `agent.json`? | <p>I'm trying to test it as shown below architecture</p>
<p><img src="https://i.stack.imgur.com/Pn8um.png" alt="enter image description here"></p>
<ol>
<li><p>The region is virginia </p></li>
<li><p>I created an EC2 instance and Access Management (IAM) role configured with permission to write to Amazon Kinesis Fireho... | 2 | 1,046 |
SonarQube LDAP Plugin StartTLS | <p>We're using SonarQube 5.6.6 with LDAP Plugin 2.2.0 to authenticate users against our Active Directory server. This is working fine for non-SSL/StartTLS connections.</p>
<p>I saw that with version 2.1 there is a new option available to enable StartTLS.</p>
<p>When I add the following line to my sonar.properties</p>... | 2 | 4,158 |
Is there a better way to read a RadioButtonList than If-Else-If loops? | <p>I have a large RadioButtonList (about 20 items) and need to check which one was selected in order to return that value with the submitted email (it's an email form).</p>
<p>Right now I'm running a large If-Else-If loop to parse through each RadioButton to find out which one was selected:</p>
<pre><code> ... | 2 | 1,178 |
How to update a Widget in OREO (AlarmManager stops after some hours/days) | <p>I have a information widget which I'm updating each 60 seconds. Before OREO I did it using a service, but now, you can't do it because you can't use the service when the app is in the background, so I followed some posts here and used a alarm and AlarmManager to update the widget.</p>
<p>The problem is that it wor... | 2 | 1,112 |
How to catch NoSuchMethodException | <p>I am trying to Deserialize XML file containing methods.
Snippet looks like:</p>
<pre><code> XMLDecoder decoder = new XMLDecoder(os);
deSerializedObject = decoder.readObject();
decoder.close();
return deSerializedObject;
</code></pre>
<p>When XML file does not contain method for every object.It throw... | 2 | 1,365 |
show dynamically changing data in my web app by flask | <p>i want to show some dynamically changing data from request api on my web app
my request is :</p>
<pre><code> url='https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-nav'
z=[]
r = requests.get(url)
x=r.json()
e1=x['result'][0]['Ask']
</code></pre>
<p>i want to display it on web app in pythona... | 2 | 1,141 |
Get related entity statecode value to use as a check | <p>I need to be able to only execute my code upon the condition that the related opportunity has a <code>statecode</code> of <code>1</code></p>
<p>In my code I am able to use the <a href="https://msdn.microsoft.com/en-us/library/microsoft.crm.sdk.messages.generatesalesorderfromopportunityrequest.aspx" rel="nofollow">G... | 2 | 1,341 |
Filter with jQuery by input range | <p>A few days ago, I asked on this forum about filter with jQuery. Some people helped me but now I need to do filter no by checkboxes, but with input type="range".
Is it possible?
My code looks like:
<a href="http://jsfiddle.net/ajwj7kt9/3/" rel="nofollow">JSFIDDLE</a></p>
<p>My code. </p>
<p><div class="snippet" d... | 2 | 5,992 |
JavaScript OOP: Implementation of Logging | <p>I have written the following code to implement logging in a separate js file logger.js by using OOP. </p>
<pre><code>var console;
function Logger() {
init();
}
var init = function() {
if(!window.console){
console = {
log: function(message){},
info: function(message){},
... | 2 | 1,166 |
Error: Problem with `mutate ()` input `..1`. when aggregate data in R | <p>Here my data</p>
<pre><code>mydat=structure(list(id = c(15010124001, 15010153006, 15010169005,
15010228019, 15010229028, 6010001012, 6010012023, 6010014015,
6010015008, 6020001014, 6020002037), sqr = c(14, 9, 2, 21, 13,
26, 17.2, 21.7, 4.7, 32.2, 36.1), por = c("alpin", "alpin", "alpin&qu... | 2 | 1,407 |
Titanium ListViews with data collection | <p>In my titanium app i have to show a list of elements, to do so i am using the following view:</p>
<pre><code><Alloy>
<Collection src="featuredEvents"/>
<Window id="win" class="container" navBarHidden="true" exitOnClose="true" onOpen="showIndicator">
<View id="navView"></View... | 2 | 1,724 |
Import txt file/data to my mysql database | <p>I have a txt file with 1000 user names in it. They are seperated by lines. (break line).</p>
<p>I wanna import those user names into my mysql table. I've tried the csv method but it's not as simple as uploading a txt file. Because I need to convert the txt file to a csv file and it's a waste of time.</p>
<p><stron... | 2 | 1,358 |
ActionPerformed on a JButton invoked more than once? | <p>I am implementing a function which the function passes a selected item in a JList and a value in a JTextField when users click on a JButton.</p>
<p>I am using several listeners. However, it seems that the loop actionPerformed inside addcartbtn is invoked twice when users pressed the button for the second times and ... | 2 | 1,177 |
Lock a single access variable for parallel threads in C# | <p>Hello i have this code</p>
<pre><code>var queue = new BlockingCollection<int>();
queue.Add(0);
var producers = Enumerable.Range(1, 3)
.Select(_ => Task.Factory.StartNew(()=>
{
Enumerable.Range(1, queue.Count)
... | 2 | 1,032 |
LARAVEL 7, Undefined variable, cant pass Variable from Controller to View | <p>im new at Laravel, and im making a CRUD following this tutorial:</p>
<p><a href="https://appdividend.com/2020/03/13/laravel-7-crud-example-laravel-7-tutorial-step-by-step/" rel="nofollow noreferrer">https://appdividend.com/2020/03/13/laravel-7-crud-example-laravel-7-tutorial-step-by-step/</a></p>
<p>first i made it ... | 2 | 1,197 |
Kurento endpoints order in order to record screencast | <p>I'm trying to record a webcam with <code>kurento</code> media server, here is the function I'm using at the backend:</p>
<pre><code>var startScreen = (sessionId, ws, sdpOffer, callback) => {
console.log("Start screen")
getKurentoClient((error, kurentoClient) => {
if (error) {
return callback(e... | 2 | 2,172 |
Can linq2db create query that has ORDER BY by specific column but without including that column in SELECT? | <p>I am using linq2db as ORM for my project (ASP.NET Core 2.2) with Oracle database. I want to get list of products from database ordered by a specific column but this column doesn't need to be shown on the front-end client.</p>
<p>SQL query that I am looking for should be something like this:</p>
<pre class="lang-sq... | 2 | 1,038 |
How to use Mathjax in android, offline | <p>I saw this post</p>
<p><a href="http://cs.jsu.edu/wordpress/?p=498" rel="nofollow">http://cs.jsu.edu/wordpress/?p=498</a></p>
<p>and I tried using mathjax in offline</p>
<p>I just want to include this code in my html</p>
<p><code>w.loadDataWithBaseURL("http://bar/", "<script type='text/x-mathjax-config'>"
... | 2 | 2,256 |
How to scrape page with POST method with Python? | <p>I want to join together some pages that report Starlink constellation passages. As they are now, I need to access each single page manually, and cannot filter out according to time and visibility.</p>
<p>The base page is <a href="https://heavens-above.com/StarlinkLaunchPasses.aspx?lat=50&lng=12&loc=Somewhere... | 2 | 1,362 |
Indexing Foreign Keys in Postgresql | <p>Like many Postgres <code>n00bs</code> we have a lot of tables with foreign key constraints that are not indexed. I some cases this should not be a big performance hit - but this would be subject for further analysis.</p>
<p>I have read the following article: <a href="https://www.cybertec-postgresql.com/en/index-you... | 2 | 1,106 |
GridView with images from xml file in the web | <p>I'm trying to show some images which URLs are in an XML file that you can find it on the web. I've tried the gridview and it worked, I've tried to show an image from the XML file and it worked, but when I put both together, it doesn't work!! I don't know the reason. Any help please?</p>
<p>The code is: </p>
<pre><... | 2 | 3,021 |
how to move rectangle and take coordinates as globle to crop the selected image | <p>i am a trainee software engineer and i am working on angular CLI for my learning process. it is image cropping stuff on canvas. i draw a circle on when click on it.</p>
<p><strong>My question is how to move the circle with mousedown and stop it when mouse up
and take (x ,y) coordinate as gloable to change final c... | 2 | 1,107 |
How to get minimum date by each section for same id different times? - SQL Server | <p>I use SQL Server 2012. I have some table with daily history for delay sum, something like this:</p>
<pre><code>SET DATEFORMAT YMD
GO
CREATE TABLE [dbo].[testsum](
[CID] [int],
[HDATE] [date],
[DELAYSUM] [numeric](16, 2)
)
GO
INSERT [dbo].[testsum] ([CID], [HDATE], [DELAYSUM]) VALUES
... | 2 | 2,153 |
Getting java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams | <p>Here I need to add textview at runtime. first I took reference of RelativeLayout to get layout params but unfortunately its throwing ClassCastException at <strong>RelativeLayout.LayoutParams params = (android.widget.RelativeLayout.LayoutParams)contentLayout.getLayoutParams()</strong></p>
<p>I also checked - <a href... | 2 | 2,173 |
Render JSON data from API call in react | <p>Working on an app using the google maps API for geolocation with Reactjs. My aim right now is to simply render the entire JSON data to the window (will be used later). No errors, but nothing is rendering to the page. Am I trying to access the data inccorrectly? </p>
<pre><code>class App extends Component {
constr... | 2 | 2,586 |
Javafx How to unclick/disable a button after it's been clicked | <p>Edit: Solution at bottom</p>
<p>This is for a checkers game. After one button is clicked, it waits for a second button to be clicked to swap with it. However, sometimes you might not want to move that button, but once you've clicked on it, there's no turning back because I'm unable to disable it.</p>
<p>From other... | 2 | 1,500 |
I want to scroll down to Specific element using appium in Android, java client v-5.0.4 and appium v-1.7.1 | <p>I am trying to scroll down to an element, looked and searched everywhere and no code is helping to scroll down, i have tried with the code below which seems to be not working, anyone gives me the solution to scroll down perfectly.
As swipe and scrollTo functions are depreciated in the latest java client version, a p... | 2 | 1,068 |
Can I write criteria query joining view and a table | <p>I have two table
1)application(application_id(pk),application_type,application_date,......,................,............)
2)application_survey(application_survey_id,application_id(fk),survey_no,resurvey_no,...............,..................,....................)</p>
<p>Here application_survey table includes multipl... | 2 | 2,977 |
Why doesn't my <ul> expand width to cover all the <li>? | <p>I have a nav that I'm trying to create with flexbox. I want the to have a max height, and have the <code><li></code> push to a new column when there isn't enough space for it.</p>
<p>I have displayed the <code><ul></code> inline-flex. The <code><li></code> are jumping on to a new column, but the ... | 2 | 1,731 |
get currency-converted amount via REST API | <p>We currently process USD payments via paypal's REST API using their ruby gem. I would like to accept other currencies and have set our account to auto-convert foreign currency payments to USD. I can successfully process these payments and can see in the sandbox web interface that they were converted, but it's unclea... | 2 | 2,869 |
How to fix 'NotSerializableException: java.time.format.DateTimeFormatter' Error | <p>I am trying to use ObjectOutputStream to save all objects in an Arraylist to file. An attribute of the object is a LocalDate and whenever I try to write to file an error NotSerializableException: java.time.format.DateTimeFormatter returns despite having no DateTimeFormatter for any of the LocalDates</p>
<p>Full Err... | 2 | 1,188 |
element.blur() causing Uncaught TypeError: elem.getAttribute is not a function | <p>So I am struggling to understand where a console error is coming from. It doesn't currently break any behavior, but the error is unsettling. The error happens when I trigger a .blur() on a span that is being edited. Jquery then complains "jquery.js:1451 Uncaught TypeError: elem.getAttribute is not a function"</p>
<... | 2 | 1,422 |
How to pass int as a C++ function parameter from Java using JNA | <p>I'm currently working on a project which requires developing a native DLL (in C++) to be accessed by a Java application. I have chosen JNA for the bridging job and I am facing problems passing correct int values from Java to C++ functions.</p>
<p>Simply put, I have a function that accepts an int value as parameter ... | 2 | 1,425 |
How to restore a single mongodb database with oplogReplay? | <p>I'm having trouble finding if this is even a supported operation. I found things that suggest it didn't use to be, but I'm not getting any logs that indicate it's not supported (just confusing logs) and I wasn't able to find anything in mongo's docs that indicate it's not allowed.</p>
<p>For reference:</p>
<ul>
<l... | 2 | 1,230 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.