title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Problem with the popup/notification in Android?
<p>I have created an activity in which I have created a progress bar as follows, and I have written the Notification but it's not working. Notification occurs at top corner of the screen sometimes. I want that Notification as a message box in the middle of the screen. How to achieve it? My activity code as follows:...
2
1,437
Disabling submit/post button if inputs empty jquery
<p>I have been looking all over but did not find anything that worked for me. I am trying to prevent users from sending incomplete forms. I have disabled "submit" by default, and the intent is to remove the "disable" attribute if all inputs have been provided. For some reason the submit button is still disable. I belie...
2
1,124
Android Studio ERROR: Cause: executing external native build for cmake /path/to/project/app/tools/CMakeLists.txt
<p>I have downloaded WireGuard from Github (<a href="https://github.com/WireGuard/wireguard-android" rel="nofollow noreferrer">link</a>) after run app by android studio I have this error:</p> <pre><code>ERROR: Cause: executing external native build for cmake /path/to/project/app/tools/CMakeLists.txt </code></pre> <p...
2
1,536
Using shared memory between two programs
<p>I'm having some issues with shared memory. I want to pass a value into shared memory from program a that will be messed with and put back into that shared memory from program b, that program one can then read. As of now I can only get it to show me the value that I put in. I don't know if its the timing that needs t...
2
1,307
How to validate dynamic content using jQuery Validate plugin
<p>I'm having issues validating some dynamic content. The closest I have come to finding a similar problem is this: <a href="https://stackoverflow.com/questions/13170006/jquery-validate-is-not-working-with-dynamic-content">jquery-validate-is-not-working-with-dynamic-content</a></p> <p>My form is a basic form, enter na...
2
1,221
Tastypie obj_create bundle gives invalid literal for int() with base 10
<p>I'm using <a href="http://tastypieapi.org/" rel="nofollow">Tastypie</a> to POST and create a new Resource, which works fine:</p> <pre><code> class TestResource(ModelResource): class Meta: queryset = MemberParticipant.objects.all() resource_name = 'participant' allowed_methods = ['post'...
2
1,302
How to dynamically load the pop-up window in AngularJS?
<p>Web project: backend - ASP.NET, frontend - AngularJS.</p> <p>I have the "main page" with mainApp module. Also i have the another page with the registration, which is the responsibility of LoginLayerApp.</p> <p>What i want: when you click on "main window" i need pop-up window with the registration content (html, cs...
2
2,102
Skaffold dev just hangs with first deploy message failure
<p>I am adding a NextJS frontend to my Kubernetes cluster. I added the following file:</p> <pre><code>apiVersion: apps/v1 kind: Deployment metadata: name: client-depl spec: replicas: 1 selector: matchLabels: app: client template: metadata: labels: app: client spec: containe...
2
1,184
Icon with text in a well Bootstrap 3
<p>I'm new to using bootstrap and I'm trying to customize a well with an icon on the left and some text on the right. In doing so, I want the div with the icon to have a green background like this:</p> <p><a href="https://i.stack.imgur.com/dYvSV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dYvSV....
2
1,087
How to activate bootstrap datepicker in a table?
<p>I have a script that apppend a row into a table. Each row has two datepicker textboxes for <code>start_date</code> and <code>end_date</code>.</p> <pre><code>var rows = ""; $("#btn_add").on('click', function(i){ var ct_row = $("#t_activity tr").not('.header').length+1; rows = "&lt;td class='text-center...
2
1,296
Cannot read properties of null (reading 'animate') error chrome JS animation
<p>I am new to webdev and I am trying to use this CodePen to animate my buttons:</p> <p><a href="https://codepen.io/Mamboleoo/pen/JjdXPgR" rel="nofollow noreferrer">https://codepen.io/Mamboleoo/pen/JjdXPgR</a></p> <p>However, I am still getting this error on chrome when trying to run the code:</p> <p>Uncaught TypeError...
2
1,666
Invalid Content-Type:application/xml, Soap Server responding with HTTP 500 error
<p>I have created a Soap Endpoint based on Client's request and that endpoint currently works with Content-Type:text/xml. But Client wants to send Content-Type as application/xml. I cannot ask client to change their content-type and I have to fix my server endpoint to work according to client using Spring boot. Please ...
2
3,380
How do you connect a POST to a different razor page loaded via AJAX into a modal popup?
<p>Edit: Have marked up where the error in the original code was stopping this from working.</p> <p>I can find plenty of info and examples of this on MVC, but doesn't seem to apply for Razor Pages?</p> <p>Simple scenario: I have a page (FooList) showing a list of Foo items. Each has an Edit button. This opens a modal...
2
1,893
java.lang.ClassNotFoundException: Didn't find class "eduapp.arg.MainApplication" on path: DexPathList
<p>This is a react native application made first with expo and then ejected. When I want to perform the build it does not give any error but when installing and running it crashes, the app never always closes at once and shows an error.</p> <p>Using the adb logcat tool to see the phone log and show me this:</p> <p><cod...
2
4,587
Upload Media from Heroku to Amazon S3
<p>New to Heroku &amp; Amazon S3, so bear with me. Uploaded my Django app onto Heroku, and having a problem with user media uploads. The model is below:</p> <pre><code>#models.py class Movie(models.Model): title = models.CharField(max_length = 500) poster = models.ImageField(upload_to = 'sto...
2
1,095
Java Refreshing Auth token after 30 min
<p>I want to know how to keep refreshing token every 30 min. Currently i dont have it. I need to cache that token for 30 min and then replace current token with the new refresh token.</p> <p>Right now when i pass 1000 records all records uses same Auth token but the program runs more than 1 hour. I get Auth token expi...
2
1,833
Program Crash Upon Switching Between Tabs 5 Times
<p>I've got a strange bug I'm not sure how to track down. I'm running an app in the Simmulator 3.0. It has three tabs on the tabBarcontroller, let's call them tab1, tab2, and tab3. All three tabs are a sub-class of a customized grouped table. If I click back and forth between tab1 and tab3 indefinitely, there is no tro...
2
1,073
Gmsh issue with physical entities
<p>I have a <code>*.geo</code> file that I have written with a python script. The main use of this <code>*.geo</code> file is to construct and save a triangular mesh. In gmsh you can label interest entities with the command Physical. For example <code>Physical Point</code>, <code>Physical Line</code>, etc.</p> <p>Here...
2
4,344
Google Chrome Drag to desktop: Custom 'File' Names
<p>using this mark up and script I can create "drag file to desktop" links for Google Chrome 8.0.552.237 OSX (yay!). My issue us that I cannot specify the name of the dynamically created script file- Google Chrome ALWAYS calls it "download.js" even though I have specified it should be called "customFileName.js".</p> <...
2
1,850
ASP.NET MVC LinQ - Use our own method in "Any" LinQ expression?
<p>I'm coding a login page in asp.net mvc thanks to multiple articles found on the web but I have a problem to find the matching user in the database. Here is my POST method :</p> <pre><code> [HttpPost] [ValidateAntiForgeryToken] public ActionResult Login([Bind(Include = "username, password")] user model, s...
2
1,063
Creating Spark schema for GLoVe word vector files
<p>GLoVe pre-trained word vectors which can be downloaded here (<a href="https://nlp.stanford.edu/projects/glove/" rel="nofollow noreferrer">https://nlp.stanford.edu/projects/glove/</a>) have the following file format:</p> <pre><code>government 0.38797 -1.0825 0.45025 -0.23341 0.086307 -0.25721 -0.18281 -0.10037 -0.50...
2
1,057
Integrated Unit Testing is not running in ASP.NET core MVC/Web API
<p>I am developing a web API using ASP.Net core. I am doing integrated testing to my project. I am following this link, <a href="https://koukia.ca/integration-testing-in-asp-net-core-2-0-51d14ede3968" rel="nofollow noreferrer">https://koukia.ca/integration-testing-in-asp-net-core-2-0-51d14ede3968</a>. This is my code.<...
2
1,231
Mongodb dealing with opening hours and how to find our if a place is opened or not
<p>I'm trying to find the best way to deal with restaurant opening hours. The complexity is due to the fact that:</p> <ul> <li>places may be opened multiple times during the same day (e.g. 7:00-14:30, 18:30-22:00)</li> <li>sometimes the closing time goes past the midnight (e.g. 19:00-2:00)</li> <li>not everyday shares...
2
1,176
Failed to get environment, + java.lang.ExceptionInInitializerError, Traceback IOError: File not found -
<p>I run windows 7 on a 64bit system. I use netbeans 6.9.1 (the python plug ins are installed) Installed also: Python 2.7.1(64), JDK 6 update 24(64), </p> <p>I'm interested in term extraction so I downloaded montylingua which is supposed to run in Java or/and Python. this is the link: <a href="http://web.media.mit.edu...
2
1,887
`pd.concat` with `join=='inner'` doesn't produce intersection of pandas dataframes
<p>I am trying to extract common rows from several dataframes using pd.concat:</p> <pre><code>&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; x = np.random.random(size=(5, 3)) &gt;&gt;&gt; df1 = pd.DataFrame(x) &gt;&gt;&gt; df2 = pd.DataFrame(x[1:3]) &gt;&gt;&gt; df3 = pd.DataFrame(x[2:4])...
2
1,169
Can't add WCF service reference to client project using netTcpBinding
<p>I have a WCF service that uses NetTcpBinding and I'd like to host it in a WPF application. The service seems to start correctly, but when I'm trying to get it's metadata using 'Add service reference' in visual studio I get this exception:</p> <pre><code>The URI prefix is not recognized. Metadata contains a referen...
2
1,364
How to generate BlockingStub in C++ in Protobuf?
<p>I'm having the following .proto for <code>Protobuf</code> (2.6.1 to be more detailed):</p> <pre><code>service InstallService { rpc getWifiNetworks (WifiRequest) returns (WifiResponse); } </code></pre> <p>I've generated java files and i'm having BlockingStub:</p> <pre><code>TestInstallService.BlockingInterface...
2
1,080
How to select multiple markers on google map
<p>I am New to google maps and php, Assume that I have 100 markers on map and I want to select some 15 markers from them if the markers clicked it changes the color of the marker and do some action..In this code If i click the marker it just show the popup which get the data's from database.</p> <p>Here is my google m...
2
1,082
Lib Poco: DSO missing from command line
<p>I get following error when linking a cmake project to poco libraries:</p> <pre><code>/usr/bin/ld: /usr/local/lib/libPocoUtil.so.60: undefined reference to symbol '_ZN4Poco4JSON6Object3setERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7Dynamic3VarE' /usr/local/lib/libPocoJSON.so.60: error adding symbols...
2
4,364
Can you use v3 Azure Functions with Entity Framework Core 3.0?
<p>I am trying to use EF Core 3 in the latest (preview) version of Azure functions, but I am getting the following error when I try interacting with the database:</p> <blockquote> <p>System.Private.CoreLib: Exception while executing function: DemoFunction. Microsoft.Data.SqlClient: Microsoft.Data.SqlClient is not su...
2
1,073
googletrans python AttributeError: 'NoneType' object has no attribute 'group'
<p>So, I've prepared code like this:</p> <pre><code>async def cv_local(ctx, country=&quot;&quot;): translator = Translator() try: country = translator.translate(country, dest='en').text now = datetime.datetime.now() # startTime = time.time() if country == &quot;&quot;: ...
2
2,635
Pytorch modified DQN algorithm error "the derivative for ' ' is not implemented"
<p>I'm trying to construct new observation and applying it into DQN. I use pytorch DQN algorithm with my observation code. its not finished yet, so data is not clear. </p> <p>I changed some line in whole code as follows.</p> <pre><code>import sys, math import random as rd import numpy as np import matplotlib import m...
2
2,373
Java - Sorting a 2D Array by Row Sum
<p>Trying to write a method that swaps the rows of a 2D array in order of increasing row sum.</p> <p>For example, if I have the following 2d array:</p> <pre><code>int [][] array = {4,5,6},{3,4,5},{2,3,4}; </code></pre> <p>I would want it to output an array as so:</p> <pre><code>{2 3 4}, {3 4 5}, {4 5 6} </code></pr...
2
1,191
How to use tinymce with highlight.js?
<p>On my website I wanna show syntax highlighted code to readers. I am using Tinymce for editing purposes. I am using Mezzanine CMS and I dunno much about TinyMCE. The problem is when I select preformat for wrapping my code snippet, TinyMCE wraps it with <code>&lt;pre&gt;</code> tags but highlight.js only highlightjs <...
2
1,725
XSLT is not comparing multiple values in "when" condition?
<p>Below is the part of the XSL where I am trying to check the file extension against multiple possible values and the content type against in the XML file where I already have preset value, but for some reason it is not checking the first condition. I have also put the xml file below </p> <pre><code>&lt;?xml...
2
1,392
Angular authentication wait to set permissions in local storage before guard
<p>I try to implement an authentication service in my project. A backend provide me a sso token and the current user permissions.</p> <pre><code>{ "success":true, "data: [ { "first_name":"Michel", "last_name":"Drucker", "email":"mdrucker@fr3.com", ...
2
2,171
How to use JBossTS (Narayana) with Spring Data JPA
<p>I am investigating the use of a JTA transaction manager with Spring Data JPA. I have successfully configured Atomikos and Bitronix and am trying to configure JBossTS (Arjuna/Narayana).</p> <p>I followed the instructions for <a href="https://developer.jboss.org/wiki/JBossTransactionsWithSpring" rel="nofollow norefer...
2
2,196
Docker container cannot access internet
<p>I'm on my second week of working through this problem and nothing on the internet has helped fix my issue.</p> <p>The problem is that without specifying --net=host, I cannot access the internet from my docker containers.</p> <pre><code>/home/dnadave&gt; docker run -it --net=host --rm debian:jessie ping 8.8.8.8 PIN...
2
10,378
Haskell parse error on input `let'
<p>Im trying to run this code but I'm getting a parse error on input 'let' on:</p> <pre><code> let database = tempFilm:database </code></pre> <p>I can't find where the problem is, could you take a look please?</p> <pre><code>options 7 (username, database) = do putStrLn "******************" ...
2
4,228
How to add custom headers to an open id connect authentication request in OWIN middleware
<p>I have a system where I have an MVC website calling a web api. I have used OAUTH and OPENID Connect for my authentication/authorization. I have setup an identity server in another web api project using Thinktecture's IdentityServer3. In the MVC project I am doing the redirect to the identity server in the OWIN Start...
2
2,382
Filter on mat-table not working
<p>Successfully built and displaying an md-table with Angular using DataSource. But when I try to add a filter it says that <strong>filter does not exist on type "Account Data Source"</strong>. Below is my account-list.component.js Just wondering what I might be doing wrong? Do I need to add filter elsewhere?</p> <pre...
2
1,210
How to change the display text in the View?
<p>I am having the following tables created in my <code>SQL Server</code>:</p> <pre><code>Create Table tblDepartment( Id int primary key identity, Name nvarchar(50) ) Create table tblEmployee( EmployeeId int primary key identity, Name nvarchar(50) not null, Gender nvarchar(10) not null, City n...
2
3,607
How to get co ordinates of div?
<p>I am using the below code to get the position of dropped elements. I am saving the position to database,so that when the user opens the page next time, the elements are in the same position. It works fine so far, but when the screen size changes the position are changed.for example if i am using big desktop screen ,...
2
2,010
how to expand collapse toggle div layer using jquery
<p>i try to use the following tutorial <a href="http://designgala.com/how-to-expand-collapse-toggle-div-layer-using-jquery/" rel="nofollow">How to expand collapse (toggle) div layer using jQuery</a></p> <p>it is working perfect in index.html file but i want to add the code into the following template</p> <pre><code>&...
2
2,249
CSS: Don't apply multiple drop shadows on top of each other
<p>Is there a way to not apply multiple drop shadows on top of each other? I am trying to use drop shadow to simulate stroke around an element. I needed to use drop shadow because I needed it to work when we had masks or images with transparent spots in it and I couldn't find another way to accomplish the same thing....
2
1,146
Regex - negative lookahead with lazy limit?
<p>I'm not a regex expert, but after a couple hours I've built this regex:</p> <pre><code>#\[url=(?!.*?&lt;div onclick="unveil_spoiler.*?\[/url\])([^_\W]+?://.*?)\](.+?)\[/url\]#i </code></pre> <p>Which is a case-insensitive:</p> <pre><code>\[url=(?!.*?&lt;div onclick="unveil_spoiler.*?\[/url\])([^_\W]+?://.*?)\](.+...
2
1,330
Presto window function get only top 10 records of each group
<p>I am using <strong>window function</strong> on <strong>Presto</strong> to group each partition the result is returning as extected but I want to grab only top 10 records of each partition. But If I apply LIMIT 10 then it returns only 10 rows among all partition not individual partition. <strong>Note:</strong> I've s...
2
1,825
Angular : SetData to HighChart widget from an array object
<p>i'm using under my ANgular component a <strong>highchart</strong> widget :</p> <p><strong>DEMO OF THE CHART :</strong> <a href="https://www.highcharts.com/demo/pie-legend" rel="nofollow noreferrer">https://www.highcharts.com/demo/pie-legend</a></p> <p>from the documentation , using it is like that :</p> <pre><cod...
2
1,214
SDL2.dll is missing from your computer
<p>Hi I am following an SDL tutorial, but when I try to run the program I get this error :</p> <pre><code>The program can't start because SDL2.dll is missing from your computer. Try reinstalling the program to fix this problem </code></pre> <p>None of the other answers to this question have helped me. I have tried pl...
2
1,360
Simple synchronization with C signals
<p>I'm trying to solve an exercise which requires that : "the starting process must fork two times. The father and the children must synchronize to write, one after another, in the first position of a temporary file reading the characters written on three different files (one for each process). The program must use sig...
2
3,829
Problem encountered while trying to remove select in query table refresh code
<p>I have successfully connected to a text file as per given code by using Excel's Get &amp; Transform (Power Query) experience to connect to Text files. Next base text file is <code>Axis1.txt</code> which changes periodically. Next I went to refresh the query table with latest data. I referred following references to...
2
1,592
editParams not sent/processed when keys set to true on inline grid
<p>),</p> <p>I am having an issue with using inline editing in jqGrid. I am switching some grids from form editing to inline editing. The mechanics of the inline editing works fine, but I am trying to send additional data back to the server when I save (I used postData to do this when I was using form editing). I have...
2
2,587
How to load local text information into <div> section
<p>I am trying to draw a diagram by using below codes. It works well. As you can see, I should put some text information in the <code>div</code>. If there is a <code>sample.txt</code> which includes this information in local drive, can I load it into <code>div</code> section dynamically instead of putting it manually?<...
2
1,362
How to I parse a JSON file to display it's elements in a html table cells
<p>I am trying to build a dashboard which is a table with multiple columns and rows. I have a URL(provided by the backend team) which has JSON data. Now, I have to read that data from that URL and display it in the cells of the HTML table.</p> <p>I have to use something called asynchronous calls so that the latest dat...
2
1,506
Android options menu not displaying at all
<p>Alright, Here's my AndroidMenuActivity.java file.</p> <pre><code>package com.example.caliexpeditionapp; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.webkit.WebView; public class AndroidMenuActivity e...
2
1,316
asp.net MVC6 Implementing a tagbuilder class and get error on ".ToString"
<p>I am getting compile errors when attempting to implement the message class from <a href="http://levelnis.co.uk/blog/send-success-message-to-view-using-tempdata" rel="nofollow">Levelnis</a>'s Blog.</p> <p>The class in question is:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; usi...
2
1,187
How to escape single quote in laravel Raw query
<p>Previously, I was inserting data from csv to database using eloquent. However, I feel this quite slow, so I am trying to test it with Raw Query as follows in laravel:</p> <pre><code>$query = Committee::where('name', $committee_arr['name']); if ($committee_arr['mailing_address_city']) { $query-&gt;where('mailin...
2
1,298
Python's "platform.mac_ver()" reports incorrect MacOS version
<p>I'm using Python <a href="https://docs.python.org/3/library/platform.html" rel="noreferrer"><code>platform</code> module</a> to identify the MacOS version like this:</p> <pre><code>import platform print(platform.mac_ver()) </code></pre> <p>Output:</p> <pre><code>In [1]: import platform In [2]: platform.mac_ver() Ou...
2
2,212
Nullpointer exception for AndroidImageSlider DefaultSliderView In Android Studio, Build 22.0.1
<p>This is my stack trace : </p> <pre><code>08-16 10:23:40.006 19022-19022/com.world.innov.ebilling E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.world.innov.ebilling, PID: 19022 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.world.innov.ebilling/com.world.innov.ebilling.MainActivit...
2
2,029
NPOI Excel file download corrupt
<p>I am trying to export data from a data table to excel using NPOI, angular2 and web API. The steps I am following are - 1. Write data from data table to XLSX and store the file temporarily on the server, 2. Read this same and into a memory stream and return. I see that browser prompts the user to download the file, o...
2
3,198
angular 2 styleurls not working
<p>I'm not sure what is missing here. I've followed the guide at <a href="https://angular.io/guide/component-styles" rel="nofollow noreferrer">https://angular.io/guide/component-styles</a> for using component style URLs. But when I run the component, the styles aren't being applied. However, if I use component inline...
2
1,213
In Go + FastCGI, does it make any sense to use multiple handlers?
<p>Gopher newbie here. Please be kind :-)</p> <p>I have a setup where I do have an account on a shared server which runs Apache + FastCGI over which I have no control. It smoothly interfaces with Go, though. I'm more used to using Go with <code>net/http</code>, but figuring out how to use it with <code>net/http/fcgi</...
2
1,444
Camel onException() not triggered
<p>I'm trying to test my onException code, but it isn't triggered under unit test. I can doCatch() the exception in the route, but otherwise it's just passed back to the unit test code. I've boiled it down to little more than a hardcoded throwException() and log() statement, but no luck. Using Camel 2.17.1.</p> <p>any...
2
4,682
How to resolve this error Type 'FirebaseUser' is not a subtype of type 'String'?
<p>I am getting this exception while running my app:</p> <blockquote> <p>type 'FirebaseUser' is not a subtype of type 'String'</p> </blockquote> <p>The app is working. It does the phone authentication and then move to the next page based on same given condition. But when i hit the back button it throws the exception al...
2
1,301
Remove code from "functions.php" in child theme
<p>I am trying to remove some lines from function.php in Wordpress without making this permanent. My initial thought was to use a child theme. I understand that if you add "functions.php" as a child, it can be used to modify the parents function. Any recommendations? Thanks in advance for your support!!!</p> <p>This i...
2
1,715
initialization discards ‘const’ qualifier from pointer target type
<p>I have an array structs that hold char names. I want to sort them alphabetically using qsort however I keep getting an error message saying &quot;initialization discards ‘const’ qualifier from pointer target type&quot;. I believe my cmpmi() function and qsort arguments are correct. Any help is greatly appreciated!</...
2
1,320
LINQ to SQL: inner join with manual association on SQL 2000
<p>I have two tables in a one to many relationship. (products and qty break pricing). At the database level I cannot create a relationship between the two tables. I brought those two tables into LINQ and created the association manually. </p> <p>I need to do a big LINQ query and have the tables be joined. My problem i...
2
2,765
spring testng: Failed to load ApplicationContext
<p>I am getting failed to load applicationcontext. The class extending AbstractTestNGSpringContextTests which is applicationcontextaware. Any help what is missing here? It is a simple spring test file. I am using spring boot. Do i need to set anything for configuration to get applicationcontext. </p> <pre><code>jav...
2
1,262
Unread block data while reading from Java Spark
<p>I'm trying to read some files from HDFS and/or from the filesystem and I get this exception</p> <pre><code> Driver stacktrace:] [unread block data] ]org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 4 times, most recent failure: Lost task 0.3 in stage ...
2
1,313
notifyDataSetChanged() causes NullPointerException when changing listview data which is retrieved from firebase
<p>I am trying to set a <code>ListView</code> inside my <code>Fragment</code>. I am getting data from Firebase which i set to my <code>ListView</code>. In my Firebase database I have a parent node <code>patients</code> which has child nodes like <code>patient1</code>, <code>patient2</code> etc. and every item in my <co...
2
2,194
React bootstrap modal animation property changes doesnt apply as expected
<p>I'm trying to create custom ModalManager class and i have problem with showing/hiding animations.I would like to have control how modal will display/hide all the time,for example modal will show up with animation and hide without it.Is there any way to achive such a thing?</p> <p>Here is some slim example of ModalM...
2
2,737
Kafka not receiving message from external producer
<p>Update #2 - I believe I found the solution and I am answering this for completeness. It seems that I need to have the following configurations set with my instances public ip address and port 9092.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snipp...
2
1,698
How to disable sorting on Primefaces lazy datatable?
<p>I have a datatable with lazy data model and pagination. I want to disable default sorting when I click on "search" button and enable it again when I click on "display" button. So didn't put "sortBy" in my xhtml file and instead, I set it dynamically in my backing bean.</p> <p>Everything works properly until I click...
2
4,464
Apache rewrite rule works for homepage but not links
<p>I have a site in a <code>/www/</code> folder. In the parent directory I have an .htaccess file which passes through the <code>/www/</code> directory so it is as if it does not exist.</p> <p>Within that folder I have Kirby CMS as a submodule which uses it's own rewrite rules for urls. The homepage shows as <code>ht...
2
1,319
Download large files through S3 java sdk 2 without writing to server
<p>I am trying to download large files through AWS without saving it to server and so far nothing I have tried has worked.</p> <p>Here is the code to fetch from AWS.</p> <pre><code>public ResponseInputStream&lt;GetObjectResponse&gt; downloadFile(String key){ return s3client.getObject(GetObjectRequest.builder()...
2
1,535
Unknown provider
<p>I have come across a quite peculiar error on my AngularJS code of a web application.</p> <p>I have an application which has a form for inserting new data in the database, but before that it's going to look for any coincidences.</p> <p>Now, the object that we insert in database has a series of collections and if it...
2
3,075
jQuery filter on color and category
<p>I need jQuery to filter my list on color and category. I made two filters but when I filter on a color and then on a category the other colors I filtered out apear again. Here's my html and jQuery code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; #scrollable{ height:920px; w...
2
1,423
How can I avoid this infinite loop?
<p>It feels like there must be some semi-simple solution to this, but I just can't figure it out.</p> <p>Edit: The previous example showed the infinite loop more clearly, but this gives a bit more context. Check out the pre-edit for a quick overview of the problem.</p> <p>The following 2 classes represent the View-M...
2
2,625
Kivy:- Load & Save does not work for pdf & word docment
<p>I was reading the kivy pdf file &amp; in that i found a Load &amp; Save code...That code works well for .txt file &amp; .py file but it does not work for .docx &amp; .pdf file...</p> <p>main.py:---</p> <pre><code>import kivy from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.factory im...
2
1,859
d3.js Node Position in Force Directed Graph following Search
<p>Objective: center a node in the viewing area following search</p> <p>I created a force directed graph that enables a user to search for a node by name. When a node is searched, the selected node remains visible while all other nodes temporarily reduce opacity to highlight the searched node. Now, I would also like t...
2
1,906
Chef-Server Installation Ubuntu Error on execute[verify-system-status]
<p>I am trying to install chef-server on Ubuntu 12.04 following these instructions.</p> <p><a href="http://docs.opscode.com/install_server.html" rel="nofollow">http://docs.opscode.com/install_server.html</a></p> <p>My research has shown me that generally when this error shows it self it is because of the hostname</p>...
2
1,447
Cucumber Spring DI two Step classes loading Spring context
<p>I'm using cucumber-spring to create my integration tests and use DI provided by Spring. The way it's done: there is a separate project that defines all the necessary cucumber dependencies:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;io.cucumber&lt;/groupId&gt; &lt;artifactId&gt;cucumber-j...
2
1,288
MVC3 Partial View - Can the DIV be inside the Ajax.BeginForm?
<p>This is what i need to do:</p> <p>I have a Partial View (PV): </p> <pre><code> @if (Convert.ToBoolean(ViewData["IsLogged"].ToString())) { &lt;div id="onlineStatus"&gt; ONLINE &gt;&gt; @Html.ActionLink("Take a Break", "GoOffline", "Account") &lt;/div&gt; } e...
2
1,050
How to change the div style when you move the mouse over another element in another div?
<p>I'm working on my personal project and i need to change div style which is my cursor (from width and height 10px to width and height 100px) when i'm hovering it on h1 element inside another div.</p> <p>I tried </p> <pre><code>h1:hover ~ .cursor{ width: 100px; height: 100px; } </code></pre> <p>and </p> <pre><...
2
1,077
valgrind : what does the following summary tells
<p>First have a look at my code .It is giving runtime error(sigsegv) on an online judge, though works perfetly fine on my computer.Please help me find out the error.</p> <p>The constraints are:</p> <p>0&lt; t1 &lt;1000000</p> <p>0&lt; num &lt;100000000</p> <pre><code>#include&lt;stdio.h&gt; #include&lt;malloc.h&gt...
2
1,106
Using Jaybird to connect to a Firebird database located in a computer in a local network
<p>I'm creating a java application that connects to a Firebird database and retrieve some data. The program is done, and it runs well in my computer. The problem is that, in the computer I need to run the application, the database is in another computer in the local network and I have no idea of which path should I put...
2
1,140
Question(s) about time complexity of array "resizing" in Java
<p><strong>NOTE:</strong> As the title already hints, this question is <strong>not</strong> about the specific <code>java.util.ArrayList</code> implementation of an array-based list, but rather about the raw arrays themselves and how they might behave in a "pure" (meaning completely unoptimized) array-based list implem...
2
1,590
Pass array from GraphQL query to React-Table
<p>I am trying to take the array output of a GraphQL query and render it using React-Table but I am getting a <code>Cannot read property 'forEach' of undefined</code> error.</p> <p>The only other question similar to mine that I have managed to find has not helped (<a href="https://stackoverflow.com/questions/48166281/...
2
1,100
Magento. Nginx. Multiple store. How to add 'index.php' to urls
<p>I downloaded magento with 3 stores and trying to install it on localhost.</p> <ul> <li>Ubuntu 14</li> <li>Nginx</li> <li>Mysql</li> <li><p>php-fpm</p> <pre><code>/app /downloader /includes ... /store1/index.php /store2/index.php </code></pre></li> </ul> <p>Inside my <code>store1/index.php</code> I put <code>$mage...
2
3,161
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
<p>I trying to save resource id of an image in sharedpreferences on button click and then trying to set that resid to the image. But i am getting "String cannot cast to Integer" error. My question can be silly but I want to solve it. I will be much thankful for that .My code is here.</p> <pre><code>b4.setOnClickListe...
2
3,034
DSE Graph with Java Driver, how to add edges
<p>I want to build a graph completely with the Datastax Java Driver. I managed to insert vertices, but I have no clue how to add edges to existing vertices.</p> <p>When I run the following code</p> <pre><code>session.executeGraph("parent = g.V().has('businessId','sys-1').next()"); session.executeGraph("child = g.V()....
2
1,534
my mandelbrot set outputs wired image
<p>I am trying to create a mandelbrot image using c++/opengl. Below is the simple code that i have came up with so far and the image that comes out:</p> <p><img src="https://i.stack.imgur.com/GKt3Z.png" alt="enter image description here"></p> <pre><code> #include&lt;GL/gl.h&gt; #include &lt;GL/glu.h&gt; #include &...
2
1,204
Issue in getting json response data using Retrofit
<p>I am using Retrofit and having some issue in getting the data from response for the inner class.</p> <p><strong>DEPENDENCES:</strong></p> <pre><code>//// retrofit, gson implementation 'com.google.code.gson:gson:2.6.2' implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:con...
2
5,265
OpenXML to Read Document
<p>So I have put an excel document in my assets folder for testing. And I am working on a test project just to see how the code works.</p> <p>If I run the following code:</p> <pre><code>public async void TestAsync() { StorageFolder storageFolder = Windows.ApplicationModel.Package.Current.Installe...
2
2,088
FPDF insert text
<p>I have a html form which sends the answers onto a pdf document. Everything is working fine but I would like the questions to be on the pdf document as well.</p> <p>currently it looks like this on the pdf:</p> <pre><code>Jurgen Yes No 4 No </code></pre> <p>I would like it to be:</p> <pre><code>Name: Jurgen Do you...
2
1,137
ASP.Net + JQuery Tabs: Using the Cookie Option Breaks my GUI
<p>I've got a tabbed GUI on a webpage using: </p> <ul> <li>JQuery 1.4.2 </li> <li>JQuery-UI 1.8.9 (full download)</li> </ul> <p>The IDs for the 'pane' divs are GUIDs of domain objects in a database. Everything works as it should.</p> <p>But when I include the <code>cookie</code> option in the function call on</p>...
2
1,112
Connect two modal picker in react native
<p>I use react native modal picker to drop down the data <a href="https://www.npmjs.com/package/react-native-modal-pickerhttp://" rel="nofollow">link here</a></p> <p>I used two modal picker, that depend on each other. first one is select service. second one is select city. I want to display cities that have particular...
2
1,610
Write delta file to S3 (MinIO) - PySpark 2.4.3
<p>I am currently trying to write a <code>delta-lake</code> <code>parquet</code> file to S3, which I replace with a MinIO locally.</p> <p>I can perfectly fine read/write standard <code>parquet</code> files to <code>S3</code>.</p> <p>However, when I use the <a href="https://docs.delta.io/latest/quick-start.html" rel="...
2
2,391
Project Euler #14: Why is my TreeMap algorithm slower than brute force?
<p>Background: I first learned C++ and Java in school a number of years ago, but I haven't done much programming over the past 9 or so years as my previous career did not require it.</p> <p>I decided to look into Project Euler to brush up on my programming and solved problem 14, which asks to find the integer between ...
2
1,441
How to emit inputs on change using socket.io?
<p>I'm working on a chat style app using React and socket.io, and I want to implement something where a client can see the input being typed by the other client in realtime. I'm using <code>onChange</code> on the input to update the state and emit the message at the same time, but that only sends messages one letter at...
2
1,050