title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Problems with jQuery On, specifically with iPad
<p>Having read up on it and having been "told off" several times for using <code>live</code> as opposed to <code>on</code> I am moving all my code over to <code>on</code>... and having loads of trouble!!</p> <p>Most of it I have overcome, but today I have a very strange issue.</p> <p>I have a question/answer bulletin...
2
1,356
Calling a REST service inside another REST service (Apache Camel)
<p>I have implemented following APIS using CXF REST Service and Apache Camel.</p> <ul> <li><a href="http://localhost:9090/api/compute" rel="nofollow">http://localhost:9090/api/compute</a></li> <li><a href="http://localhost:9091/api/listAction" rel="nofollow">http://localhost:9091/api/listAction</a></li> </ul> <p>Both...
2
3,419
Convert to decimal when using CsvHelper
<p>When I try to use CsvHelper to parse the below CSV, I get a &quot;conversion cannot be performed&quot; error (full error is below). It looks like I'm missing something about how to deal with reading values as decimals. Have seen some other answers relating to setting the culture, but that doesn't seem to have helped...
2
1,893
Item not showing inside RecyclerView
<p>I check everything in my code,I ask a question and do some of the modification,and also reading all the question about "Item not showing in RecyclerView",but the layout still not appear in my recyclerView.</p> <p><a href="https://stackoverflow.com/questions/42929053/recycleview-not-showing-in-dialogue-fragment">Thi...
2
4,811
How to uncheck checkboxes and remove validation
<p>I have HTML that looks like this:</p> <pre><code>&lt;div class="form-group"&gt; &lt;div class="input-group"&gt; &lt;label for="daterange-vacancy" class="input-group-addon"&gt;Van&lt;/label&gt; &lt;input type="text" id="daterange-vacancy" class="for...
2
1,383
JSF <include> doesn't work in template
<p>I'm a newbie in Java and JSF and trying to create a test page using JSF template, <code>&lt;ui:include&gt;</code> and <code>&lt;ui:insert&gt;</code>. As a result I get only <code>&lt;ui:insert&gt;</code> blocks on the page, but <code>&lt;ui:include&gt;</code> is not rendered. Could someone advise what's wrong here? ...
2
1,151
Why does TextureCoordinates work as expected for a Viewport2DVisual3D, but not for a GeometryModel3D?
<p>I have a model that I created in 3ds Max. The model is a simple rectangle. Its texture has overlapping texture coordinates--the model should display the right half of the image file twice, side-by-side. I exported this model as an <code>.obj</code>, and converted it to XAML using Microsoft Expression Blend.</p> <p>...
2
2,063
Uncaught Error: Call to undefined function mysql_connect() - WordPress Setup
<p>Am trying to install wordpress on nginx on windows 10, wont able to complete setup i see this after entering database connection info:</p> <blockquote> <p>There has been a critical error on your website.</p> </blockquote> <p>errors from php log file</p> <blockquote> <p>Stack trace: #0 C:\nginx\html\wp\wp-admin\setup...
2
1,828
android.os.NetworkOnMainThreadException Trying to access database from android activity. Android Studio
<p>I am getting android.os.NetworkOnMainThreadException in my Login Activity. Basically I am simply trying to check if the user id and password entered by the user are correct i.e., is the user allowed to sign in or not. I have searched for a solution and know that the exception has got something to do with networking ...
2
2,115
Create PDF from WebAPI response
<p>Hey guys hope you're all doing well, well my problem here is that i want to return a PDF file from my WebAPI response, this is the code im using to get the responses to create the pdf file.</p> <pre><code>[Route("Reporte")] public async Task&lt;HttpResponseMessage&gt; createReport(RequestIdSugeridoModel request...
2
3,068
R data.table merge / full outer join with na.fill / nomatch based on formula
<p>What I need is to perform full outer join with some kind of smart na.fill / nomatch in a efficient way. I've already done it using loop but I would like to use matrix algebra or data.table operations to speed up the process.</p> <p>Data below are sample of stock open orders information, full outer join is performed...
2
1,248
Redraw Widget every second
<p>I want to create a clock widget with a second watch hand. And yes, I already read that widgets aren't designed to be refreshed that fast. </p> <p>The widget should become an egg timer which is only animated when the user actively starts it so it is probably not that bad for battery life and performance at all becau...
2
2,436
JQuery $(this).find(Selector) returning this
<p>I have a form defined as this</p> <pre><code>&lt;form name="NewForm"&gt; &lt;td hidden&gt;New&lt;/td&gt; &lt;td&gt;&lt;input name="name" type="text"&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="url" type="url"&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="submit" value="New"&gt;&lt;/td&gt; &lt;td&gt;&lt;...
2
1,811
How can I prevent a later binding on a jQuery autocompleter from firing?
<p>The below code is very simple. I have a jQuery <a href="http://docs.jquery.com/Plugins/Autocomplete" rel="nofollow noreferrer">autocomplete</a> bound to an html text input referenced by <code>#search</code>. When the user types something into it, a drop-out list shows suggestions from the server. If the user clicks ...
2
1,104
Apache camel, how to move message from SOAP to JMS
<p>I'm learning Apache Camel framework, and try to build simple route where message is received from SOAP endpoint and is put into JMS queue (ActiveMQ).</p> <p>I have the following route</p> <pre><code>&lt;route id="cxfToJMSRoute"&gt; &lt;from uri="cxf:bean:endpoint" /&gt; &lt;log message="test" /&gt; &lt...
2
3,411
How to replace text with an image from a url in Android?
<p>I have an app which is reading its information from a json file online, the format of which is like so:</p> <pre><code> { "title":"Title", "introParagraph":"Text for introParagraph", "heading1":"Text for heading1", "paragraph1":"Text for paragraph1 \n\n image1" ...
2
3,400
Hide Panel in a datalist with Linkbutton and C# and javascript
<p>I'm a new programmer, so any help or suggestions would be appreciated.</p> <p>I have a datalist containing a link button that displays a row of data. The linkbutton, when clicked, should unhide a panel that contains a datalist (also containing a linkbutton), that displays more detailed information. The problem th...
2
2,313
How to set custom font for RecyclerView items
<p>I am a beginner at android. I created a <code>RecyclerView</code> by parsing JSON data. I want to make this TextView font in <code>RecyclerView</code> items custom. I tried many methods but it didn't work for me. I want to set a custom font as my font in a text view in <code>RecyclerView</code> item. Please help me ...
2
1,148
Three.js: Setting `texture.needsUpdate = true` is very slow
<p>I'm working on a Three.js scene in which I'd like to update some textures after some time. I'm finding that updating the textures is very slow, however, and drags FPS to only 1-2 FPS for several seconds (when updating just a single texture).</p> <p>Is there anything one can do to expedite texture updates? Any insig...
2
3,047
Where do I put my scanner and how do I return a value?
<p>For my programming class, I have the following assignment:</p> <blockquote> <p>In this assignment you will write a program that will model a pet store. The program will have a Pet class to model individual pets and the Assignment5 class will contain the main and act as the pet store. Users will be able to v...
2
1,274
Jboss 7 own authenticator
<p>I am trying to write own authenticator which will read particular custom cookies and authenticate user based od token which is stored in that cookie. As an example I took this class: org.jboss.security.negotiation.NegotiationAuthenticator</p> <p>So I start to writing my own authenticator:</p> <p>public class Sampl...
2
1,565
asp.net mvc partial view is caching my model values
<p>I am working on an asp.net mvc web application. and i have a WebGrid, where i added a Page-size drop-down list to enable users to select how many records they like to have per page.</p> <p>the Action method is:-</p> <pre><code> [OutputCache(CacheProfile = "NoCache")] public ActionResult Disposed(string filter = n...
2
2,395
A difficulty with RecyclerView Adapter after update to API 27
<p>Everything was fine until I updated Sdk Version to 27. It says here that ViewHolder views must not be attached when created. But the attachToRoot parameter in my LayoutInflater is already set 'true'. Please explain me what could have caused this problem? <strong>Logcat</strong>:</p> <pre><code>06-02 11:40:15.669 2...
2
3,305
Change an imageview when it is clicked
<p>I want the imageview with the Id = soundtoggle to switch to R.drawable.sound_on under the if condition and otherwise to R.drawable.sound_off. But i am not able to do it. Please help</p> <pre><code> package com.twodwarfs.fallanimation; import com.tmp.animation.R; import android.os.Bundle; import and...
2
1,102
Why use public static textfields in swing
<p>I had a problem, im currently in learning process of java swing/awt </p> <p>I was creating a small program, with 2 jtextfields and 1 jbutton</p> <p>I used 2 classes, 1 was for GUI and other was for LOGIC/IMPLEMENTATIONS </p> <p>I declared a button in class1 and applied an actionlistener to it, in class2(extends c...
2
1,803
Infragistics IgniteUI Grid set Datasource(Create Data Access Class or use Entity Framework)?
<p>i recently started to use infragistics, i have got the infragistics version 2013.2... I am creating a project using mvc 4.0 , and i am trying to use igniteui components...in this case igGrid.. Is it possible to assign datasource to entity framework ? i saw the youtube video displaying this case, but i am getting err...
2
1,192
Pycharm gives error "TypeError: 'NoneType' object is not callable" in debug mode for Python-Django Project
<p>I have set up the <code>python-django</code> project in Pycharm.</p> <p>On <code>python manage.py runserver</code> command in run mode, its works fine but when I run the project in debug mode I get following exception:</p> <pre><code>Traceback (most recent call last): File "/home/usmanmaqbool/Downloads/pycharm-c...
2
1,590
C program - taylor series_long formula
<p>This formula is from a friend of mine --- and I fixed it up for him. But I can't seem to figure out of how to get the right sine calculations per angle. Can someone please help me in getting the right commands in the sin part?</p> <p>Code:</p> <pre><code> #include&lt;stdio.h&gt; #define PI 3.141592653589 #define N...
2
1,160
My Images are not showing up on my Shopify website when I upload in Shopify theme editor. With Code Atom Theme Custom Section
<p>Im trying too create a custom section where a user can use the theme editor to upload images in a four column row. Ive been hitting a stump on the layout and this method I came close but my images I load in the theme editor won't load. Please Help me I'm trying different routes from YouTube and online forum but this...
2
2,167
Decrease distance between point in highchart
<p>I'm tryng to decrease distance between data points on the chart below code is from highcharts example</p> <pre><code>$(function () { $(document).ready(function() { Highcharts.setOptions({ global: { useUTC: false } }); var chart; $('#container').highcharts({ chart...
2
1,491
How to reload Laravel @includes with AJAX?
<p>I've got a single page application inside of my larger application that will send data to the DB, and will also display that same table's data. Currently, I have AJAX dynamically sending the data. However, to get the data just inserted to appear in the table that I want it to, I have to refresh. I've been trying thi...
2
1,695
Camel sftp - jsch auth fail
<p>Camel sftp publickey connection fails with the below auth fail error. Created id_rsa and id_rsa.pub and known_hosts file in source system (Tried with both windows and linux). Copy pasted the contents of id_rsa.pub in the target system authorized_keys file.</p> <p>Note: This is working fine with winscp, putty, and...
2
3,843
Program Segmentation Faults on return 0/fclose/free. I think I have memory leaks but can't find them. Please help!
<p>I am trying to write a Huffman encoding program to compress a text file. Upon completetion, the program will terminate at the return statement, or when I attempt to close a file I was reading from. I assume I have memory leaks, but I cannot find them. If you can spot them, let me know (and a method for fixing them w...
2
1,930
python - urllib.request.urlretrieve throws unexpected exception unknown url type: ' '
<p>I am trying to download files using urllib.request.retrieve()</p> <p>I am using Python 3 and the downloads are successful, but I don't know why it throws exception.</p> <p>For some reason it throws an exception.</p> <p>This is the main file:</p> <pre><code>import os import urllib.request zip_file_open = open("u...
2
1,035
Programmatically printing different types word document in C#
<p>I would like to ask how can I print a variety of documents from C #. I did this by modifying the document word by replacing the text for example:</p> <pre><code>&lt;Value&gt; -&gt; value. </code></pre> <p>I have various documents, ie. a plain text document and the document to the table. The table shows the instal...
2
1,911
OpenMP and shared variable in Fortran which are not shared
<p>I encounter a problem with OpenMP and shared variables I cannot understand. Everything I do is in Fortran 90/95.</p> <p>Here is my problem: I have a parallel region defined in my <code>main</code> program, with the clause <code>DEFAULT(SHARED)</code>, in which I call a subroutine that does some computation. I have ...
2
1,107
Spell check program issues
<p>I'm trying to finish my spell check project and am having a few issues. I'm trying to use <code>strlen</code> and <code>strcmp</code> to compare the words in the article and dictionary with each other, but the compiler tells me that the identifier "strlen" and "strcmp" are undefined. I'm not sure what to do here. Ad...
2
1,928
as3 different between cacheAsBitmap vs CachedSprite
<p>I have cacheAsBitmap = true</p> <p>and the following class</p> <pre><code>package utility{ import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Sprite; import flash.geom.Matrix; import flash.geom.Rectangle; import flash.utils.getQualifiedClassName; publi...
2
1,242
Kafka Consumer in spring can I re-assign partitions programmatically?
<p>I'm new to Kafka, and using <code>@KafkaListener</code> (spring) to define kafka consumer. I would like to check whether its possible to manually assign the partition to the consumer in runtime.</p> <p>For example, when the application starts I don't want to &quot;consume&quot; any data. I'm using currently <code>@K...
2
4,042
AOL openid website verification
<p>Iam trying to use AOL openid, nut am getting "AOL is unable to verify this website"</p> <p>can somebody tell me the steps to avoid this error, what should I don on my end.</p> <p>If there is some sample code please share it - thanks in advance</p> <p><img src="https://i.stack.imgur.com/IByP7.jpg" alt="AOL openid...
2
1,795
How to create Binding Adapter for material.Slider view?
<p>My goal is to 2-way databind material.Slider view to MutableLiveData from my viewmodel:</p> <pre><code> &lt;com.google.android.material.slider.Slider ... android:value="@={viewmodel.fps}" ... /&gt; </code></pre> <p>Of course, it's not working because there is no databinding adapter fo...
2
1,032
WebKitLegacy - [_WebSafeForwarder forwardInvocation:] application crash in iOS10.0.1
<p>I am getting the following crash only in iOS10.0.1. Its not giving me enough stack trace information. The only clue I have is , seems to be happening from WebView.Because it says "WebKitLegacy - [_WebSafeForwarder forwardInvocation:] ".</p> <p>The crash log is given below. I have another crash group related to "up...
2
1,606
Navigation Drawer fragments recreated on click. Need to reuse instance of fragment
<p>So I use the sliding menu with a few fragments in my application. The issue is that the every time I click on a new fragment in the navigation drawer it appears to completely destroy the old fragment. Either that or the new fragment forces itself to be recreated whenever I click it. Basically I want to know how I ca...
2
4,462
BaseCollectiveExecutor::StartAbort Out of range: End of sequence
<p>I'm new to python so I was following a tutorial for a chatbot (which, judging by the amount of errors I had to deal with and how many other people appeared to struggle with it on this site, wasn't the greatest.). It used tflearn and (after a lot of troubleshooting) worked perfectly at first but I wanted to update te...
2
1,589
How to make navigation drawer appear bottom to app bar/ tool bar
<p>I have implemented navigation drawer. The drawer covers the App Bar but what i need is it should not cover the app bar and navigation drawer should start from the bottom of the app bar. I have achieved bringing list tiles to the bottom but i need whole navigation drawer to be in bottom of the app bar/ toolbar</p> <...
2
1,073
@EnableWebFlux and thymeleaf not working together
<p>Is there any restriction on using thymeleaf with springboot application with main class <strong>annotated with @EnableWebFlux.</strong></p> <p>If I just comment @EnableWebFlux in the below class everything works. Wasted 2 days just to find where to comment to get things working :).</p> <pre><code>@EnableWebFlux @S...
2
4,373
Semantic UI : api vs ajax calls
<p>I have a form with two fields, username and password. I am using Semantic UI / JQuery for submitting the form. </p> <pre><code> $(document).ready(function () { $('#ValidateUser').form( { on: 'submit', fields: { username: { ...
2
2,836
posting form to iframe with extjs without rendering to bidy
<p>I am trying to post a form to an iframe. my issue is that my form gets posted just fine when I render the iframe to body. But the issue with this is that the container displays at the bottom of the page instead of the place where I want it to show. If I don't use the renderTo property, my form never gets posted to i...
2
1,415
Retrieve the hashed password from the database to the text
<p>I want to do the <code>Forgot your password?</code> in the program, I already could retrieve the username and password that hashed from the database and send it to the email user (I use my own email as user), but what I am getting on the email is still the hashed password that actually stored in the database (not th...
2
3,713
How to bundle javascript using Parcel in Electron?
<p>I'm using <a href="https://github.com/parro-it/electron-parcel-example" rel="nofollow noreferrer">https://github.com/parro-it/electron-parcel-example</a> to use Parcel with Electron.</p> <p>My project is <a href="https://github.com/patrykkalinowski/dcs-frontlines-electron" rel="nofollow noreferrer">https://github.c...
2
1,495
Make na abstraction to kafka consumer using ktor and kotlin
<p>I'm creating a abstraction for consumer and producer Kafka, to avoid duplicate code all the time. So i created a lib using kotlin and gradle, named "kafka-commons", and put the following code: For Kafka producer: </p> <pre><code>fun producer( bootstrapServers: String, idempotence: Boolean, acks: Acks, ...
2
2,148
What is the best practice to configure httpClients in ASP Net Core 3.0 during startup?
<p>ASP NET Core 2.1 gave us HttpClientFactory which is a great way to build custom httpClients.</p> <p>We used this method together with an endpoint configuration service that was injected into the constructor of the startup.cs class.</p> <p>The code looked somewhat like:</p> <pre><code> public Startup(IConfi...
2
1,311
GDB crashes at start (internal error: follow_die_offset)
<p>I have a small C++ project under Linux. When I try to debug the executable with gdb I get the following error:</p> <pre><code>../../gdb/dwarf2read.c:16760: internal-error: follow_die_offset: Assertion 'dwarf2_per_objfile-&gt;reading_partial_symbols' failed. A problem internal to GDB has been detected, further debug...
2
1,093
Uploading Captions using YouTube API v3 (dotnet, C#, Null Error, CHALLENGING)
<p>I'm trying to upload closed captions using oauth2 with the youtube dotnet libraries. The samples don't include .NET and I understand this is new (i.e. lightly used functionality in the API). I'm pulling my hair out on this one and don't know if I'm missing something or if there could be a bug in the API. Please Help...
2
2,900
Using %dopar% with a custom function
<p>So I've got this function meant to group measurements from multiple probes that fall into defined regions. </p> <pre><code>HMkit.dmr&lt;-function(Mat,Classes,method.fdr=c("BH","bonferroni"),probe.features) { #Annotate first... require(plyr) require(dplyr) #Filter matrix for testing and stuff... ...
2
1,442
Prestashop 1.6 and SwiftMailer with PHP version 5.6 - fsockopen error
<p>I have an issue with sending mail using the version of Swiftmailer that came with PS1.6</p> <p>Swift Error: The SMTP connection failed to start [ssl://mail.wineofthemonth.co.za:465]: fsockopen returned Error Number 0 and Error String ''</p> <p>This is due to the fact that since PHP 5.6 the verify_peer option is set ...
2
1,221
I am getting errors in the xfunction built in class and i dont know what to do
<p>I am creating a map data structure that uses set to hold pair values. I have made a custom pair class for the program. I got through most of the debugging and now i am getting these error in the built in xfunction class. </p> <p>Error 6 error C2784: 'bool std::operator &lt;(const std::basic_string&lt;_Elem,_Tra...
2
3,526
android custom spinner dialog
<p>The problem is that when I am clicking on my custom spinner custom dialog is appearing with list view radio buttons and button at the bottom but no item is selected by default and even when I am selecting any choice application is crashing because of nullpointerexception in SpinnerDialog -> onItemClick -> onItemSel...
2
4,539
How to generate the header and footer for WhatsApp's .crypt12 format?
<p>WhatsApp stores all messages in an sqlite file which is first zlib compressed and then AES encrypted. </p> <p>Decryption/decompression can be done quite easily like that:</p> <pre><code>def decrypt(db_file, key_file): """ Function decrypt Crypt12 Database """ try: with open(key_file, "rb") as fh: ...
2
2,154
catching the login event of ZfcUser with Zend framework 2
<p>i am using <strong>zfcUser</strong> with <strong>Zend Framework 2</strong>.</p> <p>i want to capture the login event so that i can do something with it and also redirect the user to a different page. </p> <p>i know how to catch the register event. ie i place a onBootstrap in my module.php file and then do the foll...
2
1,147
Receiving 500 error posting valid JSON to .NET Core 2 / .NET MVC Api. (post request is null and stating "System.Net.Http.NoWriteNoSeekStreamContent")
<p>So quick background on what is currently going on in my solution. I'm writing pretty basic API web tests in c# using the XUnit framework and some json validation helpers I created to validate response messages and payloads received back from the API. I've been banging my head against a wall trying to figure out why ...
2
1,392
Load ads error mAdView.loadAd(adRequest);
<p>I tried to put the ads to my app follow the Google docs but always got the problem.</p> <p>My mainactivity code:</p> <pre><code>import com.google.android.gms.ads.MobileAds; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; public class DongVatHoc extends AppCompatActivity { pr...
2
1,681
Python (preferably 3) equivalent to INKEY$
<p>I am using Python 3.6.4 on a Windows 7 system (I have other systems like Win 10 and Android but this is my starting point).</p> <p>INKEY$, for those not familiar with BASIC (pretty much any flavor), is a function that checks the keyboard buffer, returning that data as a string or a null/empty value ("") if there wa...
2
1,190
PDO intermittent error "Call to a member function execute() on a non-object"
<p>So I am getting this intermittent error on a call to PDO::execute(). Error is "Call to a member function execute() on a non-object". It happens at line 117 in my db class. Here is my class below. Page loads in fine and then intermittently when I refresh this error comes back.</p> <pre><code>class db extends PDO { ...
2
1,596
Handling failed login notifications with Spring Security 3 login handlers
<p>In my application, I would like to increase a failed login attempt counter for my users and lock them when it reaches a certain attemp count using Spring Security version 3.1.4.RELEASE.</p> <p>I have succcessfully implemented a simple login success notification handler that resets the counter to zero and saves this...
2
1,216
Lettuce client configuration to connect to aws redis elasticache
<p>I have aws redis elastic cache configured in cluster mode enabled and I have one primary and one replica (both in separate availability zones). I am using Spring RedisTemplate along with LettuceClientConfiguration but getting below error when I try to write into redis:-</p> <p>[http-nio-8080-exec-5] ERROR c.a.w.c.a...
2
1,150
java.lang.RuntimeException: Unable to start activity ComponentInfo
<p>I am working on an application in which I have to create a <code>Lunar Calendar</code> I am creating a custom Lunar Calendar. There is very limited code on Lunar Calendar. But somehow I manage to create one. This is my code.</p> <pre><code>public void onCreate(Bundle savedInstanceState) { super.onCreate(sa...
2
2,321
Spring - Validator does not trigger in integration test
<h2>The problem</h2> <p>Actually, this is a kind of <a href="https://stackoverflow.com/questions/40870242/spring-integration-test-of-multipartfileupload-with-container-and-custom-valid">&quot;follow-up&quot; question</a>. I have 2 integration tests running for a file upload, testing the corresponding controller. Unfort...
2
3,662
How to open overlay menu from oncomplete of p:commandButton with Primefaces?
<p>I'm using Primefaces 3.3.1 and have question.</p> <p>I have p:commandButton inside p:column of p:dataTable. I can show overlay menu when button is clicked with xhtml shown below.</p> <pre><code> &lt;p:commandButton id="btnID" icon="ui-icon-circle-triangle-s" style="height: 16px;"&gt; &lt;f:setPropertyAc...
2
1,031
How to read values from a text file and saving as the custom property[SOAP UI]
<p>I have two values in the text file as follows:</p> <pre><code>12345 67895 </code></pre> <p>I want to save these two values as two custom properties so I can use it in my soap request. </p> <p>This is what I have so far but no luck:</p> <pre><code>def myTestCase = context.testCase // configure the path to your t...
2
2,207
C++: Recursive backtracking boggle grid
<p>I realize this code might be a bit dense to read, what I´ve tried to do is to adapt a standard recursive maze-solving algorithm - where all directions are tried until a solution is found, to an algorithm for the game 'boggle' that checks if the target word can formed on the grid by going in either of the four direc...
2
1,775
R Shiny: How to temporarily disable reactivity?
<p>I am building a UI containing <code>DT</code> tables and sliders (both as inputs), as well as plot outputs. The tables are used to make a selection out of several. The user can only select one cell to make a choice.</p> <p>I want the user to be able to store the setting of tables and sliders because they are quite ...
2
1,713
File uploading even after Exception (FileNotFoundException (Access is Denied))
<p>I have created a servlet that uploads a file, selected by user from a form.</p> <p>HTML Form snippet is:</p> <pre><code> &lt;form method="POST" enctype="multipart/form-data" action="UploadFile"&gt; &lt;div class="form-group"&gt; &lt;label for="inputModuleName"&gt;Module Name&lt;/label&gt; &lt;input type...
2
2,157
.NET Date to string gives invalid strings in Vista Pseudo-cultures
<p>My computer is configured with a culture that is <a href="https://stackoverflow.com/questions/7042920/how-to-use-enable-pseudo-locale-in-windows-for-testing">not <code>en-US</code></a>. </p> <p>When using the native Win32 <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd318086%28v=vs.85%29.aspx" r...
2
2,295
swapCursor() slow: "The application may be doing too much work on its main thread."
<p>I keep seeing "The application may be doing too much work on its main thread."</p> <p>Is this being caused by swapCursor() in my code below? It appears so: if I remove it, the above warning disappears.</p> <p>I still don't understand why it claims to be the main thread that is causing the problem. I have moved th...
2
2,057
Get html content from webView in Swift?
<p>I have the webView shows the content like the image. My purpose is that i want to print out exactly the string <code>Thanh toán thành công</code> and i don't want to get any html format. Please help me how to handle it. Appreciate your helping !</p> <p><a href="https://i.stack.imgur.com/vpU6j.jpg" rel="nofollow nor...
2
1,025
MongoDB update complex document
<p>I search for some similar example, but didn't find something good.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>{ "_id" : ObjectId("571dea148234534308a290e"), "user" : "myusername", "duration" : "...
2
2,382
Camera2 ImageReader hangs after a while with "Failed to release buffer" message
<p>I'm having a problem with android's camera2 API. My end goal here is to have a byte array which I can edit using opencv, whilst displaying the preview to the user (e.g. an OCR with a preview). I've create a capture request and added an ImageReader as a target. Then on the OnImageAvailableListener, i'm getting the ...
2
1,280
HasItems Property in TreeViewItem true, even if all children are Visibility = Collapsed
<p>Can you please give me a hint, to make HasItems Property better. I have a TreeView like this:</p> <pre><code> &lt;TreeView ItemsSource="{Binding Customers}"&gt; &lt;TreeView.ItemContainerStyle&gt; &lt;Style TargetType="{x:Type TreeViewItem}"&gt; &lt;Style.Triggers&gt; ...
2
1,275
Async Task inside BroadcastReceiver onReceive method not running?
<p>I have a working app which sends String data from application's input textfield to TCP server on my PC. I have added BroadcastReceiver class to send message to computer when it's received. Application receives messages(Toast is working), but I can't make it send received message to PC. </p> <p>No Errors. Applicat...
2
1,601
Issue with removing points from a boost::geometry::index::rtree
<p>I'm using boost 1.56 on OS X, installed through homebrew.</p> <p>I'm running into a compilation problem - specifically, it appears that I cannot remove values from a boost::geometry::index::rtree. </p> <p>Here's the code I've come up with so far:</p> <pre><code>#include &lt;iostream&gt; #include &lt;vector&gt; #i...
2
3,139
Multiple URL requests to API without getting error from urllib2 or requests
<p>I am trying to get data from different APIs. They are received in JSON format, stored in SQLite and afterwards parsed.</p> <p>The issue I am having is that when sending many requests I eventually receive an error, even if I am using <code>time.sleep</code> between requests.</p> <h1>Usual approach</h1> <p>My code loo...
2
1,874
How to call Exchange Web Services GetUserAvailabilityRequest when current timezone does not observe daylight savings time?
<p>I am attempting to call <a href="http://msdn.microsoft.com/en-us/library/exchange/aa564001%28v=exchg.140%29.aspx" rel="noreferrer"><code>GetUserAvailabilityRequest</code></a> from South Africa Standard Time which does not observe daylight savings time, however, the TimeZone element requires StandardTime and Daylight...
2
2,035
Assign Azure rbac Role to Virtual Machine using terraform
<p>I have a virtual machine in my Azure subscription that should be able to read and write to a storage container in the same subscription.</p> <p>Therefore, I created a rbac role that allows for reading and writing from and to storage containers. To assign the role to the VM I enable a system assigned identity in the ...
2
1,880
Project a DateTime from an IQueryable to a string in a custom class
<p>I have this code running on the server part of my Silverlight application with WCF Ria Services:</p> <pre><code>public IQueryable&lt;PersonePM&gt; GetPersoneByCognome(string cognome) { return (from p in ObjectContext.Persone where p.Cognome.ToLower().Contains(cognome.Trim().ToLo...
2
1,620
Make a div use a scrollbar instead of growing bigger
<p>I have a navbar with a container in it. This container will hold many divs later on. It should act like a tree view. I want the navbar to fill the whole left side from top to bottom. But when the content grows bigger, it should stop growing, a scrollbar should appear.</p> <p>Using <code>height: 100%</code> does not...
2
1,343
Fragment flips and losses Image
<p><strong>I've completely re-wrote the question to single down the scope.</strong></p> <p>I have Two Fragments that Flip around like a card(Left, Right). When the front fragment disappears flips it shows the back. Once the button is clicked again it flips to the front again but the ImageView on the front fragment is ...
2
2,819
Xampp mysql not starting v3.2.4
<p>I tried deleting the aria_log_control file</p> <p>I tried changing the port</p> <p>I tried deleting aria_log.0000001 file</p> <p>I tried deleting both aria_log_control and aria_log.0000001 file</p> <p>I am running the control panel as admin</p> <p>I also tried restarting my computer multiple times</p> <p>it was work...
2
5,002
How to add ExpandableListView in android studio 1.2 under my CategoryFragment?
<p>i use android studio 1.2 and i just want to know how to add submenu or what they call ExpandableListView under my category?</p> <p>hope someone can help me..</p> <p>here is my code..</p> <p>MainActivity.java</p> <pre><code>package com.example.administrator.mosbeau; import android.app.Activity; import android.su...
2
8,855
InnoDB and creating relationships for table - one will not join
<p>This is my database:</p> <pre><code> -- Host: localhost -- Generation Time: Feb 04, 2011 at 01:49 PM -- Server version: 5.0.45 -- PHP Version: 5.2.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `myepguide` -- -- -------------------------------------------------------- -- -- Table structure for tab...
2
1,597
Laravel-5 saving entity with multiple relations
<p>I have three entities Project, Staff, and Client in Laravel 5 project. A Project has many to one relation with Client and Staff. I have declared the relations as given below.</p> <p>In Project Model:</p> <pre><code>/** * Fetch the Staff entity associated with a project * * @return \Illuminate\Database\Eloquent\...
2
1,493
TensorFlow keras callback using tensorboard. ProfilerNotRunningError: Cannot stop profiling. No profiler is running
<p>I am running into this error: <code>Cannot stop profiling. No profiler is running</code>. Can it be related to <code>log_dir</code> ?</p> <p>Before this issue, I had a problem with creating a directory. I have fixed it by manual creating dir. Can the error &quot;Cannot stop profiling. No profiler is running&quot; b...
2
2,109
XNA Simple way to spawn enemys
<p>Im trying to spawn enemies from a list. I've tryed multiple ways in doing so. However I can't get it to work. Is there a simple way to spawn enemes every 3 seconds? EDIT</p> <p>I tried spawning it like this: problem: only spawns once</p> <pre><code> protected void AdjustSpawnTimes(GameTime gameTime) { ...
2
2,027
AngularJS - $http.post keeps sending "NULL" values to ASP.NET Web API 2
<p>In simple terms, I'm making a task management tool with CRUD funcionality using AngularJS for the frontend and ASP.NET for the backend.</p> <p>In the ASP.NET I've created a table called "KBTM_Task" with the following parameters:</p> <pre><code>public class KBTM_Task { public int ID { get; set; } public str...
2
1,234
Crashlytics reporting multiples issues for TextView.makeSingleLayout
<p>I am receiving multiples crash reports about the same error, but I have no idea what is may causing it.</p> <p>The exception that is throwing is <code>ArrayIndexOutOfBoundsException</code> in <code>android.widget.TextView.makeSingleLayout</code>.</p> <p>I know it is not about Android versions and devices types, si...
2
2,071
How to make a JSONArray Request with post param using volley in Android
<p>This is the method for getting the groups:</p> <pre><code>public void getGroupsThree() { String tag_json_obj = "json_obj_obj"; /* tag used to cancel the request */ String loginUrl = "removed for security reasons"; /* login rest url */ /* show the progress bar */ PD = new ProgressDia...
2
2,009
MVC Entity Framework Edit View for a Model with a Foreign Key
<p>I have a Project model and a Skill model, </p> <p>the Project has a one to many relationship to skills</p> <p>I am having an issue figuring out how to do the edit actionmethod for the Project,</p> <p>When the project object is instantiated by mvc, the skill collection is null, in the view I display checkboxes an...
2
1,076
JestResult.getSourceAsObjectList - for "@timestamp" or seemingly any field starting with "@"
<p>How would JestResult.getSourceAsObjectList be used to map the field "@timestamp"? Actually, I cannot figure out how to map any field with a name starting with "@". It keeps getting set to "null". </p> <p>For example if the Elasticsearch query returns</p> <pre><code>{ "_id": "Vhv2OE1SNSeSg285UYQRQ", "@ver...
2
1,285
SQLiteCantOpenDatabaseException Error on Android Studio
<p>I'm trying sample app. I'm populating listview data from sqlite db. DB stored under assets folder. Log cat shows DB couldn't open. My database name "mydb", contain one Table: "month" and three column: jan, feb and march.</p> <p>Check My code:</p> <p>MainActivity.java</p> <pre><code>package test.lin.com.presqlited...
2
6,167
Load all modules (files) in directory without prefixes
<p>I am using python 2.7. I have a folder with a number of .py files in it that define functions, load objects, etc. that I would like to use in my main script. I want to accomplish the following two objectives:</p> <ol> <li>Load all objects from all .py files in this directory, without knowing the file names in adva...
2
1,053