title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Multilabel classification converges to all zeroes
<p>I am attempting to do a one vs all multilabel classification. I feed a batch of input to each classifier along with expected labels. The classifiers use a softmax layer for output to predict a label as yes or no. Also I am using a softmax cross entropy loss for each classifier and each classifier tries to minimize i...
2
1,153
Writing plain text to an NFC tag, problems with intents
<p>I'm trying to make an application that writes a simple plain text message to an NFC tag. The user writes a message in the EditText box, then on button press, the app writes the text onto a tag. I've been following this tutorial: <a href="http://www.framentos.com/it/android-tutorial/2012/07/31/write-hello-world-into-...
2
2,268
Delphi - Is there any way to edit the format and layout of a SMTP email?
<p>I'm creating a database system which sends emails out via the webmail on the hosting website 'one.com'.</p> <p>With some help from this website and others, I managed to put together this email procedure. However, I do not know how to format the text within this email so that it's font, font size and color etc can b...
2
1,337
Autofac's None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder'
<p>I'm back to Autofac issues despite using it in a very similar manner for over a year and really need some advise.</p> <p>I choose to opt-in via attributes. The difference this time is that one of the registrations uses IIndex to select the most appropriate interface for the task at hand based on a LoginState enum....
2
2,626
AppsFlyer SDK Integration Test failed on app, but non-organic test data is reflected on the Dashboard
<p>Trying to integrate the AppsFlyer SDK for Android, I've followed all the steps indicated in the <a href="https://support.appsflyer.com/hc/en-us/articles/207032126-AppsFlyer-SDK-Integration-Android" rel="nofollow noreferrer">AppsFlyer guide</a>. Initially, the dependency that was stated is:</p> <pre><code>implementa...
2
1,230
ASP.NET Session State & Postback problems
<p>I have a problem that I believe is a session state issue, but I'm at a loss to figure out what's wrong. I have a sample project to illustrate the problem. (Code below) I have 2 buttons. Each populates a List with some unique data and then uses that data to add a row to a table. The row contains text boxes so th...
2
2,297
ASP.NET MVC Session using jQuery
<p>PROBLEM SOLVED: I was overlooking a very simple issue, and that is that this is actually two different apps running under one website. I modified the URL in the AJAX call slightly to reflect that and the problem is no longer happening.</p> <p>ORIGINAL QUESTION:</p> <p>I'm having a weird issue and I'm hoping someo...
2
1,290
Setting Action/Actionlistener programatically never invoked on JSF 2.2
<p>I have tried several ways to implement and adding programatically a commandButon with action or actionListener. I tried to implement an ajax behavior, set an action and set an actionListener without success. In my pom I added <em>el-api</em> dependence because my project didn't got MethodExpression,MethodExpressionA...
2
1,426
How to use multiprocess in django command?
<p>I'm tring to use <code>ProcessPoolExecutor</code> in django command to get some results at same time. And I tried with below codes to get it</p> <pre><code># main codes import json import time import datetime from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor from redis import Redis from djan...
2
1,403
re-subscribing a prevously unsubsribed Rx.Subject in Angular 2
<p>I am not sure, if i am using a wrong approach or i just coding badly but to explanation of my problem.</p> <p>I have a backend component, where i manage array of websockets ( because every websocket can have a different WS url, or they need to be turned off/on separately) and for every websocket, I want to know if ...
2
1,479
Why does Razor view add "CS$<>8__locals1" prefix to input names when accessing indexer of model assigned to local variable?
<p>I'm building a simple ASP.NET MVC 5.2.3.0 view that displays a user name and a checkbox list of roles. You can check or uncheck the checkboxes to control which roles the user is in. Here is my ViewModel:</p> <pre><code>public class EditUserVM { public string Id { get; set; } public string UserName { get; se...
2
1,968
Compiling POCO library with MinGW-w64 under Windows (message compiler not found)
<p>I have problems with following part of code from <a href="https://github.com/pocoproject/poco/blob/develop/cmake/PocoMacros.cmake" rel="nofollow noreferrer">PocoMacros.cmake</a> file:</p> <pre><code># CMAKE_MC_COMPILER - where to find mc.exe if (WIN32) # cmake has CMAKE_RC_COMPILER, but no message compiler if ...
2
1,036
Codeigniter insert_batch error
<p>I use Codeigniter v2.1.4 to insert some values in a sqlite3 database.</p> <p>The problem is that when I try to insert a batch it gives me an error:</p> <pre><code>&gt;[17-Jan-2014 22:44:17 UTC] PHP Fatal error: Call to a member function execute() on a &gt;non-object in E:\Repository\cashy-support-app2\system\data...
2
1,558
testng suite second test fail -> nullpointerexception
<p>I have some dao tests i want to execute using testng suite I am initializing all daos in <code>@BeforeSuite</code> but only the first test can use the daos , others tests generate nullpointer when calling to a dao</p> <p>Any help would be appreciated Thank you very much</p> <p>Base test :</p> <pre><code> public c...
2
1,505
jQuery Need to loop through next elements based on rowspan
<p>Well, basically, I have a table set up like so, but <code>&lt;td&gt;</code> elements can have any number of rowspans...</p> <pre><code>&lt;table width="100%"&gt; &lt;tr class="tablerow0"&gt; &lt;td class="tablecol_0" colspan="4"&gt;Content&lt;/td&gt; &lt;/tr&gt; &lt;tr class="tablerow1"&gt; ...
2
1,215
group-wise summaries/subsets dplyr
<p>I have a data set of two courses in 2 different semesters that takes the following form: </p> <pre><code>set.seed(200) sem &lt;- sample(c("1", "2"), 200, replace = T) course &lt;- sample(c("1", "2"), 200, replace = T) d.gender = sample(c(0, 1), 200, replace = T, prob = c(0.6, 0.4)) d.pass = sample(c(0, 1), 200, rep...
2
2,741
react-pdf generation is very slow in combination with umijs
<p>I included <strong>react-pdf</strong> in a fresh umi project:</p> <ul> <li>PDF-Generation 150 Text-components took arround <strong>311.44 ms without umi</strong></li> <li>Using umi: 7179.40 ms</li> </ul> <p><strong>Every single element takes about 10X more in umi projects!</strong></p> <p><strong>Code example I trie...
2
1,098
Generate thumbnail image from .webp file
<p>I am trying to create a simple, single file thumbnail generator.</p> <p>This file takes the image url and generates a small image.</p> <p>It works for .JPG, .PNG, .GIF images, <strong>but does not work for .WEBP</strong>.</p> <h2>Request</h2> <p>How to make my code also generate the image .WEBP?</p> <h2>Start</...
2
1,228
How to ignore @BeforeMethod and @AfterMethod from testng results?
<p>Following is a <em>sample</em> test case created using <code>testng</code> framework,</p> <pre><code>public class MyTest { @BeforeMethod public void beforeMethod() { } @Test public void test1() { } @Test public void test2() { } @AfterMethod public void afterMethod() {...
2
1,928
set bootstrap "required" attribute on textarea only if specific radio button selected
<p>This is one of my first post here and I'm amateur at all of this, so please bear with me.</p> <p>I do display a textarea with Jquery depending on a radio button selection (3 radio button so 3 hypothetical textarea).</p> <p>I do set the bootstrap "required" attribute on them but, as only 1 among 3 is displayed, I c...
2
1,080
need help on jni code(calling java method from native code)
<p>I am writing a JNI key logger and the native code for that is as below.</p> <pre><code>#include "com_webspur_rmtadmin_java_app_keylogger_KeyloggerHelper.h" #include "com_webspur_rmtadmin_java_app_keylogger_KeyloggerHelper_KeyListener.h" #include &lt;cstring&gt; #include &lt;windows.h&gt; #include &lt;iostream&gt; #...
2
1,839
returning a widget based on the json result from POST method in flutter
<p>my dashboard.dart look like this </p> <pre><code>import 'package:flutter/material.dart'; import 'dart:async'; import 'dart:convert'; import 'package:abc/utils/connection_config.dart'; import 'package:abc/screens/loginpage.dart'; import 'package:http/http.dart' as http; import 'package:flutter/cupertino.dart'; clas...
2
2,206
Running Gradle test with Robolectric and AppCompat results in NullPointerException
<p>As the title says running Robolectric tests with Gradle results in <code>NullPointerException</code> while calling <code>Robolectric.buildActivity(MyActivity.class).create().get();</code></p> <p><strong>build.gradle</strong> (based on <a href="https://stackoverflow.com/questions/16649397/robolectric-with-gradle-res...
2
1,447
MySql QT QMYSQL driver not loaded
<p>I try to use the MySQL module from QT but without result, the module is present but Qt does not load it. I have this error</p> <p><code>QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7 QSqlError("", "Driver not loaded", "Driver not loaded")</code></p> <p...
2
1,542
Django ImportError: cannot import name 'x'
<p>I have problems with circularity in my two files. Model import function to run when create object and this function import model to check if code in unique.</p> <p>How use model in function and function in model without problem with circularity? I checked questions simillar to my problem but i still don't know to f...
2
1,682
How to load an image from facebook profile using Glide android?
<p>I have an android app where I load the facebook profile photo into an <code>ImageView</code> and it was working just fine with the following code:</p> <pre><code>Glide.with(this).load(user.getPhotoPath()).apply(RequestOptions.circleCropTransform()).into(imageView); </code></pre> <p>where <code>user.getPhoto()</code>...
2
2,785
On win7, cygwin and git bash have different ideas about a file or folder's permission
<p>In Cygwin, I set the permission of a folder "tmp"</p> <pre><code>$ chmod 600 tmp $ ls -ld tmp drw-------+ 1 leecy Users 0 Aug 15 10:56 tmp </code></pre> <p>But Git Bash (from Git for Windows) gets a different idea of the permission:</p> <pre><code>$ ls -ld ~/tmp drwxr-xr-x 1 leecy 1049089 0 Aug 15 10:56 /c/cygwi...
2
1,974
Conditional Cross tabulation in R
<p>Looking for the quickest way to achieve below task using "expss" package.</p> <p>With a great package of "expss", we can easily do cross tabulation (which has other advantage and useful functions for cross-tabulations.), we can cross-tabulate multiple variables easily like below.</p> <pre><code> #install.packages(...
2
1,083
Android Q, get a list of files with MediaStore ContentResolver
<p>Per <a href="https://developer.android.com/training/data-storage/shared/documents-files#use-cases" rel="nofollow noreferrer">https://developer.android.com/training/data-storage/shared/documents-files#use-cases</a>, once I <code>targetSdk 29</code>, the only way to get a list of files from the /Downloads directory is...
2
1,239
Using the same TPU model for training and inference (prediction) in Google Colab
<p>I have a code something like this:</p> <pre><code>def getModel(): model = Sequential() model.Add(...) ..... model = tf.contrib.tpu.keras_to_tpu_model(model, strategy=tf.contrib.tpu.TPUDistributionStrategy( tf.contrib.cluster_resolver.TPUClusterResolver(tpu='grpc://' + os.envi...
2
1,774
PHP Like/Unlike button with jquery
<p>i was following a tutorial on youtube to make a simple Like/unlike button for my status system, i got most of it done, but it will not UPDATE my likes and not INSERT the like into the database, please help me say whats wrong, i tried so much now..</p> <p><strong>Function to get status:</strong></p> <pre><code> fun...
2
1,323
Error when migrate - psycopg2 Django
<p>I'm trying to deploy the local work on the server but i'm having problems with psycopg2 when i run migrate on python manage.py.</p> <p>SETTINGS:</p> <pre><code> DATABASES = { 'default':{ 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': '******', 'USER': '*****', 'P...
2
1,368
getPassword() returns null in spring security 3.1 with ldap although I set erase-credentials="false"
<p>I need to get the username and password for the logged user to use these credentials to reconnect to another product.</p> <p>Here is my SecurityContext.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XML...
2
1,639
displaying all items in session array. only the top item is showing
<p><code>$_SESSION['cart']</code> is stored in an array, and I used <code>foreach</code> to get all the product id in <code>$_SESSION['cart']</code> to be used in my query. however, only the top of <code>$_SESSION['cart']</code> array is displayed and I can't find a way to display all products stored in the session. Ev...
2
1,304
Cannot find module 'passport'
<p>I am trying to start project with using Docker Compose at Ubuntu (16.04 LTS). However, I have this issue with 'passport' module</p> <pre><code>api_1 | [nodemon] 1.11.0 api_1 | [nodemon] to restart at any time, enter `rs` api_1 | [nodemon] watching: *.* api_1 | [nodemon] s...
2
1,110
Spring amqp delay messaging with rabbitMQ
<p>I am struggling hard to find out the way for scheduled/Delaying messages in Spring AMQP/Rabbit MQ and found solution in here.But i still with a prolem about Spring AMQP/Rabbit MQ which can not received any message.</p> <p>My source as the following:</p> <pre><code>@Configuration public class AmqpConfig { @Be...
2
1,472
Strict Notice: Non-static method should not be called statically
<p>I'm getting this error in magento log:</p> <blockquote> <p>Strict Notice: Non-static method Mage_Catalog_Block_Product::getPriceHtml() should not be called statically, assuming $this from incompatible context in /home/edistico/domains/fujitsu-skener.si/public_html/app/design/frontend/base/default/template/...
2
1,738
Specify URL path as a variable for a REACT SSR applications built manually (i.e. NOT using NextJS )
<p><em>Note: I am not using NextJS for my SSR application. I also did not use create-react-app to create my application.</em></p> <p>I have a React Server Side Rendered (SSR) application which was hand built (as apposed to using a tool like create-react-app). I use WebPack to bundle up the server side code and the cli...
2
2,584
How to add new column to order grid using observers?
<p>Could you help me? I'm trying to add new column to the order grid in admin using observers. there is my config.xml</p> <pre><code> &lt;adminhtml&gt; &lt;events&gt; &lt;adminhtml_block_html_before&gt; &lt;observers&gt; &lt;order_grid&gt; ...
2
1,050
Apache POI cell type error
<p>I am trying to use Apache POI to read an excel file that will have two columns: title and language. Title will have some sentences in a language, language column will be empty. After the Apache POI reads the sentence in the title, it should save it in a variable and then call the language-detect library (<a href="ht...
2
1,697
Possible problem with aspnetzero & power tools
<p>i created an entity, and when i add a row, all works OK, when i do a view (sometimes), update or delete, i get an 'internal error'. i have no idea what is the problem.</p> <p>its a simple entity:<a href="https://i.stack.imgur.com/ccZ5t.png" rel="nofollow noreferrer">pic1</a><a href="https://i.stack.imgur.com/JKYOi....
2
1,871
Should one use a custom SecurityManager to sandbox javax.script.ScriptEngine?
<p>A big issue with the <a href="http://docs.oracle.com/javase/7/docs/api/javax/script/package-summary.html" rel="noreferrer">javax.script</a> package of <a href="http://jcp.org/aboutJava/communityprocess/final/jsr223/index.html" rel="noreferrer">JSR-223</a> is the lack of any obvious way to sandbox the script that get...
2
1,114
How to merge arrays without overwriting its index in php?
<p>I have this array </p> <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; Name [1] =&gt; Email [2] =&gt; Address ) [1] =&gt; Array ( [0] =&gt; vanson [1] =&gt; dhmax@pan.com [2] =&gt; gurgaon ) [2] =&gt; Array ( [0] =&gt; john [1] ...
2
1,127
Image div disappear on bootstrap carousel when it's less than 768px
<p>I'm trying to make a responsive bootstrap carousel, it's perfect on the desktop but when it's less than 768px then the slide try to show on the background and disappear i've been searching and i don't see and answer if you can please help me guys.</p> <p>the HTML code is like this:</p> <pre><code> &lt;!-- Full P...
2
2,680
Techniques to merge overlapping bounding boxes not working
<p>I am trying to detect text regions in an image with OpenCV (3.0) and Python. So far, I am able to detect individual text characters and draw a bounding box or rectangle around them. My ultimate goal is merging individual text characters into words/text lines and eventually into text blocks or paragraphs.</p> <p>My...
2
1,504
Camera recording with framelayout and surfaceview
<p>Trying to record video without default camera of android. I found some sample code to fix my solution. Now in that camera previewing orientation in the framelayout is little weired. When I start the record with portrait the preview is landscape and vice-versa.</p> <p>I tried with setting rotation for both surfacevi...
2
2,826
Upload multiple images on server
<p>i was trying to code a form that helps in uploading images, after a little research over this site i had this script, however it is uploading only single image whereas i wish to upload multiple images on server folder and store their path in database table </p> <pre><code>&lt;form action="insertimages.php" method="...
2
1,322
'NoneType' object has no attribute 'next'
<p>I am trying to implement quicksort in the single linked list with python .In my quicksort_recur() newhead is Node() type with none value but newhead does not update its value in partition()</p> <pre><code>class Node(object): def __init__(self, data): super(Node, self).__init__() self.data = dat...
2
1,744
How to make the border shorter and the search form line up on one line?
<p>I am working on this site: <a href="http://www.problemio.com" rel="nofollow">http://www.problemio.com</a> and on the blue navigation bar, on the right side of it, my search form does not line up horizontally. Is there a way to make it do that?</p> <p>My current html is like this:</p> <pre><code> &lt;div class="...
2
2,421
Token cache serialization in MSAL.NET is not working
<p>I am facing some issues when trying to serialize the tokencache, returned from authenticating with MSAL. I would appreciate any help, since i don't really understand what i am doing wrong. Here is our situation/problem:</p> <p>We are currently using ADAL to allow users to authenticate to their SharePoint Online acco...
2
2,509
The C++ STL function find() doesn't accept the iterator arguments of a user-defined class
<p>When I pass user-defined iterator arguments in std::find(), the GCC 5.2.1. compiler (on Ubuntu 15.10) gives two error messages:</p> <p>(1) </p> <blockquote> <p>/usr/include/c++/5/bits/stl_algo.h:162:34: error: no matching function for call to ‘__iterator_category(Text_iterator&amp;)’<br> std::__iterator_cat...
2
1,240
Render an Element on Fullscreen Video.js in React App?
<p>**ORIGINAL POST HAS BEEN EDITED: I am working with Video.js in a React app. I need badges to appear on the video player at various points during the video based on a state change. The problem is, when I enter full screen mode, the video sits on top of the badges. I have the Z-index for both badges set to the max, an...
2
1,387
Camel cxf with Spring boot-manual starting route
<p>I am using latest release version of spring boot with camel-cxf to expose rest/soap web services. However since I have many services and some of them are not well defined, I want to register each of them one by one, catch if any exception occurs and continue with remaining valid services. But when I set camel.spring...
2
3,298
Android Camera 2 API 1fps using setRepeatingRequest
<p>I want to take 1fps still captures using Camera 2 API's <code>setRepeatingRequest()</code> mode.</p> <p>I set the <code>CONTROL_AE_MODE</code> to <code>CONTROL_AE_MODE_OFF</code> and <code>SENSOR_FRAME_DURATION</code> to <code>1</code>. However I still receive a very high frame rate of 20fps with the below code.</p...
2
1,290
How do I write a program that will deal out half of a deck to a player and the other half to the other?
<p>I'm trying to write a code for the Game of War, but I currently have two problems with my code. </p> <p>The first problem is that, I can't get my game to go into WAR when both cards have the same value (in the <code>dealWar()</code> function). It is determining a winner but I don't know how it is.</p> <p>The sec...
2
1,310
g++ linker error: undefined reference
<p>I am writing a templatized <code>Matrix</code> class, and I include the declarations in <code>Matrix.h</code>, the implementation in <code>Matrix.cpp</code>. I have a test file <code>testMatrix.cpp</code>.</p> <p>The beginning of the files look like this:<br></p> <p><strong>Matrix.h</strong></p> <pre><code>#ifnde...
2
1,042
Fetch Data Array in Array From JSON and Insert Into MySQL
<p>I already did to fetch data in JSON and insert into MySQL. But I got a problem if the data is like array in array. I tried many methods by myself but I dont know how to do it proper for</p> <p>This is the index.php</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Media Monitoring&lt;/titl...
2
2,470
Injecting SoyTemplateRenderer in custom Atlassian JIRA plugin
<p>I'm currently trying to develop a custom Jira plugin, which also uses a servlet to render a Soy template.</p> <p>This is the code of my servlet:</p> <pre><code> /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and ope...
2
2,049
jQuery, Masonry, JWPlayer, Infinite-Scroll Append "<script></script>" Tags within PHP Include File Doesn't Work
<p>First I will provide a quick overview of what I am trying to accomplish.</p> <p>I have a main PHP page that loads images, text, and videos (which play using JWPlayer) from a mySQL database and uses Masonry for the layout. I am also using Infinite-Scroll which loads additional content using the following code:</p> ...
2
1,541
Warning: mysqli_affected_rows() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\ajax-complete\live-table-post.php on line 23
<p>When i am trying to fetch data from database showing warning error </p> <blockquote> <p>Warning: mysqli_affected_rows() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\ajax-complete\live-table-post.php on line 23</p> </blockquote> <p>I am trying to fetch data from database it is showing that e...
2
1,684
remove by _id in mongodb doesn't work
<p>I originally thought it would be really simple to create an delete function to use with my mongodb but am unable to get it to work and haven't been able to find a solution on google or SO. </p> <p>I'm creating an application using the MEAN stack that uses Users and Courses and have used an example to do the User-ha...
2
2,155
What are the unresolved externals?
<p>I have looked up my question to no avail so I am here specifically to ask. When I run my code that takes a part and looks into a file of parts, it's part class, how many of that part there is, and how much it costs, it is supposed to tell me where it is in the file and if it isn't, to add it into the file. With the ...
2
5,717
Retrieving an xlsx file using http.get() and then loading said file into ExcelJs in Angular
<p>I'm using HTTP GET to retrieve an xlsx file that I then want to load into an ExcelJs workbook. After which I want to add an additional sheet to the workbook and save it. This part seems to be working but WITHOUT the xlsx template file being part of the downloaded file.</p> <p>I think I might not be setting the corr...
2
1,438
How to cache job results only for running pipeline?
<p>I wrote a pipline to build my Java application with Maven. I have feature branches and master branch in my Git repository, so I have to separate Maven goal <code>package</code> and <code>deploy</code>. Therefore I created two jobs in my pipeline. Last job needs job results from first job. </p> <p>I know that I hav...
2
1,144
Java - Serialization - NotSerializableException Issue
<p>I'm currently working on a student database using Java only and have two particular lists I would like to save. Students and Profiles(To login with). I'm currently testing out serialization on Students only to get it to work but have been getting a weird issue.</p> <hr /> <p><strong>My Student object classes and cod...
2
1,392
Creating a program in java that counts sentences, paragraphs, letters and words
<p>I need to create a program that counts the frequency of characters in a text file, as well as the number of paragraphs words and sentences. </p> <p>I have a problem where when my program outputs the frequency of the letters the program outputs multiple outputs for each letter in the alphabet.</p> <p>Output should ...
2
1,113
clickable listview on bottomsheet
<p>I've made an bottom sheet with <code>listview</code> which working really fin but, I also want, that <code>listview</code> items be clickable.</p> <p>main_activity:</p> <pre><code>public class MainActivity extends AppCompatActivity { String[] serialNumber = new String[]{"XX-453-CS","KF-009-KD","GD-098-ML","SG-865...
2
1,315
submit edited comment in same place with ajax, jquery in rails
<p>I just tried a lot and search for answers but found nothing.... I have comments in a post and user can edit their comments.. if he click the edit in the comment, a form will display in place of the comment...all of that is working but when you submit the updates the comment will go below the list of the comments in ...
2
1,865
Permanent 2x3 CSS image gallery
<p>I have very basic image gallery how can I fixed it to be 3 columns by 2 rows</p> <p>This is the HTML code </p> <pre><code>&lt;div id="gallery"&gt; &lt;div class="img"&gt; &lt;a target="_blank" href="klematis_big.htm"&gt; &lt;img src="../zeela/img/image_1.png" alt="Klematis"/&gt; &lt;/a&gt; ...
2
1,885
ReactNative:Failed to parse React Native CLI configuration: groovy.json.JsonException: Unable to determine the current character
<p>started a new react-native project, followed link <a href="https://facebook.github.io/react-native/docs/getting-started" rel="nofollow noreferrer">react native cli quickstart approach</a>. even though I have not done any code change , getting the below error when i run <code>npx react-native run-android</code></p> ...
2
3,520
How to get Android system preferences look?
<p>The android system preferences screen on lollipop appears to be using a layout that resembles the "card layout".</p> <p><a href="https://i.stack.imgur.com/EyacM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EyacM.png" alt="enter image description here"></a></p> <p>I'm trying to get the same lo...
2
1,555
Make a droppable div dynamically expand when i drop an element into it
<p>When I drag the question1 &amp; question2 into questionslots i want the questionSlots div to expand its size dynamically when the second question is dropped into it. i.e. both the questions should be accomadated and visible in when dropped in the questionSlots.</p> <p>Html:</p> <pre><code>&lt;div id="questionsHold...
2
1,562
Writing a simple Spring example using the Play! Framework
<p>I'm trying to set up the <b>Spring 1.0.1 module</b> to work with <b>Play! 1.2.1</b>.</p> <p>Firstly I added the Spring module to the dependencies.yml:</p> <pre><code>- play -&gt; spring 1.0.1 </code></pre> <p>Then I added the following as per the <a href="http://www.playframework.org/modules/spring-1.0.1/home" re...
2
2,554
AJAX post function not working properly after first call to the function
<p>I'm totally new to jquery and AJAX, After trying hard for 5-6 hours and searching the solution I'm asking for the help.</p> <pre><code>&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(function() { ...
2
1,077
WebRTC Error: Failed to create remote session description. Called in wrong state
<p>I am trying to implement a real time audio/video group calls, but for now I want to get it for only two participants.</p> <p>It is not working and I don't understand why :( (actually when I test it with myself with two different accounts at the same time, I see some error messages but it works anyway, but when I te...
2
6,420
Run timer in windows service
<p>I have a windows service which is checking in a given path if there are new files created. To do that, I made with a timer which is checking every second the creation of new files in the directory. All the actions of the windows service I'm saving in a log through Log4net library. The problem comes when I start the ...
2
1,359
Hystrix Circuit Breaker won't open?
<p>I'm trying to learn how to use Hystrix. I've created this class below:</p> <pre><code>public class CommandReturnAllExceptFive extends HystrixCommand&lt;Integer&gt; { public static final Integer SLEEP_TIME = 5000; private Integer x; public CommandReturnAllExceptFive(Integer x) { super(getHystri...
2
1,205
Ubuntu 16.04 LTS and Ubuntu SDK - errors for fresh install of ubuntu sdk
<p>I started to study the development of Ubuntu for the mobile world. I write here what I did to install the development environment.</p> <p>I hope someone can help me. Thanks to everyone!</p> <ol> <li>Fresh installation of Ubuntu 16.04 LTS Desktop</li> <li>Update and upgrade it</li> <li>In according to communication...
2
2,237
SUM of column - Doctrine2 / Symfony2
<p>So I'm currently trying to find the SUM of a Column in Doctrine/Symfony.</p> <p>Currently I have it so a User enters products in an embedded form (Recipe with embedded 'ProductRecipe' associated to Product (1-m-1)) 'ProductRecipe.Amount * Product.Unitcost = Productcost' which works fine as is. Now I need to calcula...
2
1,045
Icons from react-native-vector-icons onpress needs to click twice to work
<p>I use react-native-vector-icons.</p> <ol> <li>Click the input</li> <li>Keyboard goes up</li> <li>When pressing the icon, icon doesn't trigger, the keyboard will go down first rather than the onpress method icon triggers while having the keyboard is on</li> </ol> <p>Expected Result would like a live chat, while key...
2
6,146
How do I get Data to 'commit' from Python to SQL Server?
<p>I have a localhost SQL Server running and am able to connect to it successfully. However, I am running into the problem of data not transfering over from temp csv files. Using Python import pyodbc for Server connection.</p> <p>I've tried with Python Import pymssql but have had worse results so I've stuck with pyodb...
2
1,070
Cannot scroll to last element in content container tailwindcss
<p>I want to create an application layout that has a top toolbar with a could of divs in it, </p> <p>then a sidebar and a content window with a top nav</p> <p><a href="https://i.stack.imgur.com/p4BUA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p4BUA.png" alt="Desired Layout"></a></p> <p>I have...
2
1,536
How does Array.sort() behave if comparison function is not transitive?
<p>I'm writing an algorithm to sort an array of 3D boxes for drawing in front-to-back order. There is a well-defined, stable way to decide which of two boxes is in front of the other, so I have written a function to do that, and then I pass my function to <code>Array.prototype.sort()</code> to get the correct drawing ...
2
1,079
transform-origin not working on firefox
<p>I'm trying to make this effect on Firefox but "transfrom-origin' is not working properly, and the result on Firefox it looks way different. I want to imitate the waving effect and its working perfectly in Chrome and Opera and also Vivaldi as for IE i don't really care! Thanks </p> <pre><code> .arm-wave ...
2
1,467
SQL Group by and update/delete row
<p>I have a SQL.Table</p> <pre><code>CREATE TABLE [dbo].[Stack_Example]( [ID] [bigint] NOT NULL, [Product_ID] [bigint] NULL, [Quantity] [decimal](18, 2) NULL, [Price] [decimal](18, 2) NULL, CONSTRAINT [PK_Stack_Example] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPU...
2
1,180
Codeigniter Get Nested Hierarchical Data from Database
<p>How can i get Hierarchical Data from db in Codeigniter. I read this : <a href="http://www.sitepoint.com/hierarchical-data-database/" rel="nofollow">http://www.sitepoint.com/hierarchical-data-database/</a> And i do good that but i cant optimize this tutorial with my model, controler and views</p> <pre><code> Defaul...
2
1,180
Is there a way to configure separate serviceCredentialsFile for each Android build variant with Firebase App Distribution?
<p>We have several Firebase projects which share the same code base via build types and flavors. We aim to use the app distribution via Gradle and authenticate using service account credentials.</p> <p>In the <a href="https://firebase.google.com/docs/app-distribution/android/distribute-gradle" rel="nofollow noreferrer"...
2
1,250
flutter - how can Listview be able to scroll as usual beside tabBar?
<p>I want to build a UI on the homescreen where there is a <code>Carousel</code> element and then <code>TabBar</code> below it. I use <code>Listview</code> to hold it, but why is it when it scroll it's not as usual? Scroll it apart between the list on the TabBar element and the whole element on the homescreen.</p> <p>...
2
1,806
Completed 500 Internal Server Error in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
<p>I want create new method by post data to rails server and create action to save data to database. I post data correctly and data save to database correct. But at end I get <code>500 internal error</code>. I show <code>create</code> action:</p> <pre><code>class Api::V1::BolouksController &lt; Api::V1::BaseController...
2
1,481
Timeout::Error for selenium while loading heavy page
<p>I'm facing a Timeout::Error issue while loading heavy web page. I observed that even if I added an implicit wait call <code>@driver.manage.timeouts.implicit_wait = 300</code>, a timeout error is thrown before 300 seconds - it's thrown in around 60-70 seconds.</p> <p>Error thrown is -</p> <pre><code>Timeout::Error ...
2
1,894
STD error: wrong number of template arguments (1, should be 3)
<p>I have three class. One is abstract, second is based on the abstract one and its storing pointers in <code>std::vector</code> to instances of another. </p> <p>I want to create <code>std::shared_ptr</code> of <code>ClientRepository</code> to pass it to the Manager class instance in the future. </p> <p>There is a t...
2
1,136
How do I install one of Github Pages' Jekyll themes for local preview?
<p>I'm trying to install Github Pages' <a href="https://github.com/pages-themes/slate" rel="nofollow noreferrer">Slate theme</a> on my CentOS 7 VM so I can locally preview my <em>new</em> site using the <code>bundle exec jekyll serve</code> command.</p> <p>I followed the instructions as best as I could.</p> <ul> <li>...
2
1,026
Flash Actionscript 3 Toggle Menu Buttons on/off
<p>This is probably really simple but i cant figure it out. Take a look at the code, i moved 2 instances of this button class (CategoryButton) onto the stage. As you can see when you click a button it should gotoAndPlay(3), record itself as the selectedBtn. When the second button is clicked, it should re-enable the lis...
2
1,115
how to set Data property for button style in wpf?
<p>In this example property:</p> <p><code>Data= M150.655, 39.109L10.407, 53.785L0.602, 1.309l158.026-0.806L150.655, 39.109z</code></p> <p>How does this <code>Data</code> property work and use these 5 values?</p> <pre><code>&lt;Style x:Key="ButtonStyler" TargetType="{x:Type Button}"&gt; &lt;Setter Property="Cur...
2
1,986
send downstream message to google ccs with node js
<p>I am using <a href="https://github.com/node-xmpp/node-xmpp">node-xmpp</a> to connect to google gcm ccs servers. I followed the <a href="https://www.google.com/url?q=https://gist.github.com/jamesvnz/6756208&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNEiaHKz8ttVGhwS_KCPeiJkbiCh2w">from gcm google groups</a> to connect. Now i ne...
2
2,379
Passing file data from .Net backend to Javascript front-end
<p>I have a .Net (VB/C#) backend on one server and a javascript/jquery front-end on another. I am attempting to pass file data from the backend to the front-end by reading the file in .Net as a byte array, converting it to a base64 string and passing that to the js front-end along with a variable indicating the file ty...
2
1,897
asp.net mvc 5 get related data from different tables
<p>I'm trying to get specific data from different tables based on some requirements, The program is supposed to take some columns of choosing from tables: Contatti, Contacts and Companies which are at different locations and bring them together.</p> <p>Contact is connected to Companies through CompanyID</p> <p>What i...
2
2,043
Why did my XAML suddenly crash?
<p>I added a "Basic Page" to my project in a folder ("View") that I created within the project.</p> <p>At first all was well, but "all of a sudden" the design view failed and displayed:</p> <p><em>System.ObjectDisposedException Safe handle has been closed</em></p> <p>This is the XAML (I hadn't changed a thing in the...
2
2,508
I am getting null pointer exception in connection establishment
<p>Here I am using jdbcHelper to establish connection with database but some times(not all the times) I am getting exception as null pointer in connection establishment but that is not all the time. here is my code.This code is used to insert data into database..</p> <pre><code> Connection conn = JDBCHelper.getConnect...
2
2,695
FATAL EXCEPTION: Thread-128 java.lang.NullPointerException
<p>Today I build new app to add contact, but I have error in log cat like this:</p> <blockquote> <p>threadid=11: thread exiting with uncaught exception (group=0xa4ca6b20)</p> <p>FATAL EXCEPTION: Thread-128</p> <p>Process: kr.co.composer.callrecord, PID: 5275 java.lang.NullPointerException</p> <p>at ...
2
6,250