title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
fetch value from a JSON output | python
<p>I have a JSON output as below, how can i fetch <strong>clientHostname,clientId,completionTime,creationTime,status,retentionTime,fileCount</strong> value from it in a python code in a formatted table format.</p> <p><code>[{'attributes': [{'key': '*anchor save set time', 'values': ['158']}, {'key': '*backup start tim...
3
1,032
IT Hit WebDAV PowerPoint and Excel Unlocking before document opens
<p>I have implemented the IT Hit WebDAV server on our company website. I've been looking at the logs and I can see it unlocks PowerPoint presentation twice. Once just before it open and then when you close MS PowerPoint.</p> <p>Can I stop this from happening so when you open a PowerPoint document it unlock only when t...
3
1,553
Slow Haskell and Python code with Project Euler #2
<p>I was practicing a bit with Haskell to get to know the language (It's amazing) so I went to project euler and did problem #2 which took quite a while (~ 30-40s I don't know how long exactly) to finish. I wondered why it took so long so I tried the same with F#, C# Javascript and Python. F# and C# took a couple of ms...
3
1,052
having trouble formatting mat-expansion panel
<p>My expansion panel is not filling the entire width of the container, even when I set the width to 100%. Any ideas how to get it to fill the available space? I tried creating a stackblitz. I can't figure out why nothing is displaying <a href="https://angular-hikqnf.stackblitz.io" rel="nofollow noreferrer">https://ang...
3
1,408
How to Ignore some query and execute the rest of query?
<p>I Have 5 databases with some structures are the same and some are not, like the <code>tbl_employee_debitcredit</code> this table is not in the other database i'd like to ignore the query that is not in the database table and let the other query execute. is that possible? if yes how? reference is enough. thanks</p> ...
3
1,229
Akka streams Source.actorRef vs Source.queue vs buffer, which one to use?
<p>I am using akka-streams-kafka to created a stream consumer from a kafka topic. Using broadcast to serve events from kafka topic to web socket clients.</p> <p>I have found following three approaches to create a stream Source. Question: My goal is to serve hundreds/thousands of websocket clients (some of which mig...
3
1,059
How to put PHP array 'x' literally in array 'y'
<p>I don't know what's going on, it seems like a have a PHP beginner issue. I want to put the content of the $moduleDetail array (key-value pairs) literally in another array ($url). Here's my attempt:</p> <pre><code> $moduleDetail = array(); if (isset($menuItem['Page']['module_detail_slug'])) { $module...
3
1,049
Kotlin - RecyclerView doesn't display items but no error
<p><strong>I try to make a simple recycler view on Kotlin with Android Studio. But it doesn't display item.</strong> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p> <p>I have a MainActivity.kt :</p> <pre><code>package fr.monarch.viper import androidx.app...
3
3,543
(libgdx) Why is my sprite being rendered so large?
<p>I'm currently trying to learn the LibGDX game engine for java. I'm using a Tiled map, with each tiled being 32*32 pixels. I also have a character sprite with size 48*64. In my game, I'm defining one unit as one tile from the map. For some reason, my map gets rendered correctly, but the player sprite gets rendered ab...
3
1,182
libav filter aformat not converting properly to new sample rate
<p>I made a test bench application to test LibAV's FilterGraph. I would like to use it (among other filters) to convert any given audio track to signed 16bit stereo PCM (<code>s16</code>) at 48kHz sample rate. Currently my test sound file is located here: <a href="https://commons.wikimedia.org/wiki/File:Median_test.ogg...
3
3,992
Problem with ListBuilder repeat data in same view flutter
<p>I generated a list of question in my listBuilder. I want to create one view for one list because for the moment I have my entitled with the answers but all to one view.</p> <p>But i want to respond of my first question and when i click to next button, generated the same screen with the next question. </p> <pre><co...
3
1,306
Traversing JSON to buid a parent child output with Javascript
<p>I have to traverse the below input JSON to build a parent child relation as in the sample JSON.</p> <p>Logic, the element which has immediate_parent_id of -1 that becomes a root node. Than root node immediate_dependents are it's child. Now I have to pick up the each dependent of immediate_dependents and look for ma...
3
9,099
Custom listView android fails
<p>so I have made a List view, called it "neighborhood". it supposed to show a list of names of houses, number, and their passwords. for it, I have made a layout with 3 textviews. the three lists that CustomAdapter class gets are from SQL, which works(i debugged it and it gets 3 full lists)</p> <p>EDIT: now it just ...
3
2,746
Returning a string value to a parameter with lambda in java
<p>I am doing a data generation project for football bettings and it works. To avoid using switch cases(as there is a huge amount of fixtures generated) I have used lambda expressions to simplify things. However I'm fairly new to Java and got stuck.</p> <p>I would like to match League names to league fixtures...</p> ...
3
1,068
How to get a data from magento frame work using SOAP in android?
<p>I want to get a data from magento frame work using SOAP in android. refer this url: <a href="http://inchoo.net/dev-talk/android-development/magento-v2-api-soap-android/" rel="nofollow">http://inchoo.net/dev-talk/android-development/magento-v2-api-soap-android/</a></p> <p>but i unable to get a session id</p> <p>Thi...
3
1,899
hg shelve created a commit, I don't understand
<p>I'm a bit confused by <code>hg shelve</code> because the documentation is rather sparse. Somehow I got a commit in my log of the form:</p> <pre><code>changeset: 29:ad47ed1ca915 parent: 27:afca280f2884 user: shelve@localhost date: Wed Jun 08 15:30:36 2016 -0600 summary: changes to: ... </cod...
3
1,033
XAML bound property isn't working as expected
<p>I have a Crew property, the property has several fields, few of which are Code and InvoiceAmount. The plus button is supposed to insert a new crew into an ObservableCollection of crews. Adding the first item works fine, however when the second item is inserted the first item's code changes to the second item and the...
3
1,118
How can I fire a script each time an element with a certain class is added to DOM?
<p>I have a function to modify divs of a specific class, but the problem is these divs are being loaded and unloaded dynamically by a 3rd party WP plugin that I cannot modify, and there are no click actions I can bind to. These divs may appear and disappear at any given point in time, and they come inside a more comple...
3
1,097
How do I get the current Firebase UID and write it to Realtime Database?
<p>I followed a tutorial to create this AuthService class. This is working well.</p> <pre><code>import 'package:firebase_auth/firebase_auth.dart'; import 'package:app/models/user.dart' as UserModel; class AuthService { final FirebaseAuth _auth = FirebaseAuth.instance; // create CurrentUser object based on Fireba...
3
1,631
¿how can i solve the following problem with an interceptor in angular?
<p>I am trying to use an interceptor to be able to request a new token from the Spotify API in case it is not in the localStorage or in case it has expired (401 error). But it happens that the requests that are made are the following:</p> <ol> <li>the first request to get the data from the API</li> <li>the request to t...
3
1,358
Recommendation for POST vs GET
<p>I'm working on some quiz script, found one from internet, everything works like a charm, but i need to modify for security reasons. Actually i use $_GET , but i'm afraid about sql injections.</p> <p>I'll let here all my script, and if someone can help me with suggestions, will be great. I tried so many things to ma...
3
1,216
RecyclerView's removed row still gets click events?
<p>I have a <code>RecyclerView</code> showing a list of items. The <code>ViewHolder</code> for each rows contains a delete button, to remove the row. If I remove the last row and tap very fast on the disappearing row, I can crash my app because the second tap event is delivered to the removed row. I'm surprised that an...
3
1,058
Android ksoap2 not working after downloading project from git
<p>I have an android client consuming a netbeans webservice with ksoap2 library. It was working perfectly until yesterday, when I had to format my computer.</p> <p>I downloaded my project from git and now it's not working, it just keeps giving me timeout exception, even though the webservice works perfectly.</p> <p>T...
3
1,127
Error while regridding 3-D satellite data in Python with Basemap, 2-D works
<p>I have the following issue:</p> <p>I have cloud cover datasets from different satellites, that I want to regrid onto the grid of a climate model to make comparisons between the model output and the observed satellite data.</p> <p>For now I was using the interp function from basemap, which works perfectly fine for ...
3
1,100
Permission is not recognised
<p>I am developing on Asus nexus 7, and i am writing data to file, the permission for writing is added as shown below in the manifest, but at run time the logcat displays an error saying that the required permission is not there.</p> <p>NOTE: the same code is working when installed on other devices, but it does not w...
3
3,047
how to generate meta model from entity?
<p>I was trying to do this with hibernate tools, Also with maven like this:</p> <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt; &lt;groupId&gt;br.com.ingenieux.maven.annomojo&lt;/groupId&gt; &lt;artifactId&gt;org.jfrog.maven.maven-plugin-anno&lt;/artifactId&gt; &lt;version&gt;1.4.1&lt;/versio...
3
1,083
Data in array items not being displayed on the screen in React
<p>I'm making a simple React app where I am getting a list of cars through useEffect hook and then mapping through each one to display them on the screen. Then, I have one button whose purpose would be to sort the cars based on their horsepower. So, when clicking on that button the user would see only the cars whose ho...
3
1,116
JavaFX adding KeyFrames in KeyHandlers
<p>So I am currently trying to create a project where you can move a box. The Box movements get "recorded" via KeyFrames, and by confirmation via SpaceBar you can play the movements again. My Problem is, that upon pressing the SpaceBar, the Box just snaps to its starting point (100,100) for a split second and then goes...
3
1,483
WebAPI2 - Cross Origin scripting issues
<p>I'm trying to access my WebApi service in a framework called YDN-DB. It is a local storage type database. It allows you to load from a URL and I'm trying to do it using a Cross Origin call.</p> <p>This is the code that creates the XMLHttpRequest and makes the call:</p> <pre><code>var xhr = new XMLHttpRequest(); xh...
3
1,177
Small line of certain color displaying below images in anchor tags
<p>So I have uplodaded two graphics as nav buttons to my webpage. A small line of the same color as the buttons appears below and in between the two buttons. Here is a picture showing the problem. </p> <p><a href="http://imgur.com/ikYjLUE" rel="nofollow">http://imgur.com/ikYjLUE</a></p> <p>These buttons were created ...
3
1,049
Vuejs variable using in function google maps matrix api problem
<p>Vuejs variable using in function google maps matrix api problem. I am using Google distance matrix api to get the distance between two locations. I declared a variable globally. Changed this variable in function. But as per normal circumstances I should be able to access this changed value of variable after calling ...
3
1,422
get responseXML when responseType === 'arraybuffer' after load
<p>I am using this code to retrieve imagery data and it works.</p> <pre><code> function imageLoadFunction (image, src) { var img = image.getImage(); if (typeof window.btoa == 'function') { var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://cors-anywhere.herokuapp.co...
3
1,263
Android Image Upload to S3 happening from emulator and not from mobile
<p>I am building an android app that allows users to take pictures. The pictures gets saved in <code>/files/Pictures</code> within the app. I am using the following code to upload images:</p> <pre><code>public void uploadFileToS3() { String ACCESS_KEY = ""; String SECRET_KEY = ""; String MY_B...
3
1,406
Chromedriver doesn't return a control when it's started
<p>I am using pretty old chromedriver 2.38.0.1 and cannot use any newer version since Chrome wouldn't work on it. So when I launch a test on chromedriver 2.39.0 - 80.0.3987.1600-beta Chrome is started but it doesn't return a control. It crashes on </p> <pre><code>driver = new ChromeDriver(); </code></pre> <p>Got next...
3
2,038
How to get my js function to work with an anchor link / radio button
<p>I can get my function to work when its not inside of an anchor tag, I know how to add a onclick event to a link but its not working however when i take it out om my label it shows the letter S and i click it it works right but i want it to work with my pretty radio button no just the letter s, any ideas? Please and ...
3
1,824
Can Emstripten compile the iostream library?
<p>I'm on Ubuntu. </p> <pre><code>$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty </code></pre> <hr> <p>I installed <a href="http://packages.ubuntu.com/trusty/emscripten" rel="nofollow">Emscripten</a>. </p> <pre><code>$ ...
3
3,831
getChildCount() returns 0 when called on TableLayout
<p>This question is related to one I posted earlier. <a href="https://stackoverflow.com/questions/26055707/views-removed-using-removeview-are-there-when-i-next-open-the-activity-androi?noredirect=1#comment40819352_26055707">Views removed using removeView() are there when I next open the Activity (Android)</a></p> <p>B...
3
1,138
Navigating to a specific page based on radio button checked in Angular
<p>I'm trying to make a simple login app, for both normal users and the admin. I made a working login function, but I want the user to choose whether he's a normal user or an admin. I want to use radio buttons for it. Based on the radio button clicked, after logging in, I want the user to navigate to the respective pag...
3
2,196
Swift - Customizing cell content (UILabel, UIImageView)
<p>I would like to customize my <code>UICollectionViewCell</code> but it doesn't work how I would like it to work. </p> <p>This is my code for the first cell:</p> <pre><code>class MainWishlistCell: UICollectionViewCell { let wishlistImage: UIImageView = { let v = UIImageView() v.translatesAutoresi...
3
1,099
Loop through Knockout observable array of objects with observable properties
<p>In my app I need to loop through my Knockout observable array of objects with observable properties. This is so I can post each object back to the server.</p> <p>I can access my model but I can not access the child elements, which I would like to post back to the server.</p> <p>My client code is</p> <pre><code>se...
3
1,708
Nested if Statement does not follow "map"
<p>I have a bit of an issue with some nested if statements. Here is what it looks like:</p> <pre><code>if (selectedlocat == &quot;&quot;) { if (selectedfield == &quot;&quot;) { } else { } } else { if (selectedfield == &quot;&quot;) { } else { } } </code></pre> <p>It does ...
3
2,957
Google Map onMapClickListener
<p>I am using clustering to draw markers on a map.</p> <p>In some cases, I need to prevent close markers from being clustered.</p> <p>To do this, I draw them separately.</p> <p>By default, when I open the map, I set as cluster</p> <pre><code>override fun onMapReady(map: GoogleMap?) { googleMap = map goo...
3
1,740
Jcoco does not generate reports when jars are included in report task
<p>I am running JUnits on build. Build includes jars of the product. We want to run code coverage on classes in jar. We have unobfuscated jars. We have ant script as follows </p> <pre><code>&lt;target name="codeCoverageReport"&gt; &lt;jacoco:report&gt; &lt;executiondata&gt; &lt;file file="${codecoverag...
3
1,444
Posted Flash on wall (FB.ui js SDK), does not work in IE7/8 and Opera
<p>Here is the basic I am using FB.ui to post a flash application to the wall of a facebook user. More exactly allowing the user to post the flash application to one of his/her selected friend's wall. </p> <p>The flash is posted and works fine in Chrome, FF, Safari and in IE9 with http... but with https it does not wo...
3
1,546
How can we ensure that a while loop would not be an infinite loop?
<p>This is a method where I am using the while loop. I strongly suspect that an infinite loop is possible. How to check and eliminate that?</p> <p>I am using two while loops here. Sould I totally dismantle the while loop?</p> <pre><code>public class ReferenceListSaveHandler { public PublishReferenceListUpdates popula...
3
1,628
Errors while Installing Garfield++
<p>Apologies beforehand, I figure this is the kind of thing that probably has been posted about before but I couldn't find anything when I searched.</p> <p>I'm trying to install Garfield++ and getting some error messages when I try to run the cmake. My system is running Ubuntu 18.04.5 LTS and ROOT version 6.20/02.</p> ...
3
4,899
How fix this null check issue?
<p>Dart Language:</p> <p>This is plugin issue xmpp_stone plugin I can't fix this issue anyone known please replay [![enter image description here] https://i.stack.imgur.com/FHe0O.png</p> <p>Dart Language:</p> <p>This is plugin issue xmpp_stone plugin I can't fix this issue anyone known please replay [![enter image desc...
3
1,689
macos - Flutter ios app not building with razorpay plugin
<p>I already build and run my flutter app for Andriod. But when I trying to build it for ios its showing the following error.</p> <p><em><strong>If I remove the <code>razorpay</code> dependency from pubspecs.yaml then my app successfully build for ios devices.</strong></em></p> <p>I'm new to mac env. Do I have to make ...
3
1,269
PHP dynamic table is duplicating the information from my mysql table
<p>Well I'm making an school project and I need to get the students from table 'alumnos' <em>(I'm from Mexico so my table is in spanish)</em> that are in an specific career (table is 'carreras') from example engineering in computer Systems.</p> <p>Well <strong>I get the results</strong>(I have 2 students) <strong>but ...
3
1,077
servlet action threw exception: java.lang.ClassNotFoundException: org.dom4j.DocumentException when create WEB_INF/lib by ANT build script
<p>My project uses ant build script to create WEB_INF/lib folder and copy all jar files into it, and when I run the build.xml , created war file has the WEB_INF/lib folder including all jars, and I have below error in runtime:</p> <pre><code>servlet action threw exception: java.lang.ClassNotFoundException: org.dom4j.D...
3
4,140
[Code Walkthrough]How to remove all occurrences of a given character from string in C?
<p>After reading the code on <a href="https://stackoverflow.com/questions/9895216/how-to-remove-all-occurrences-of-a-given-character-from-string-in-c">the top answer here</a>, <br> I have a couple of questions WHY this answer successfully works as it should be.<br> I have walked through myself to this code, but still d...
3
1,601
I have a VueJs 3 menu component and need to set cursor for selected element on render
<p>I'm so far really pleased with how simple it was to setup a menu that has a sliding cursor to show where you are hovering:</p> <pre><code>&lt;template&gt; &lt;div class=&quot;menu&quot;&gt; &lt;div class=&quot;logo&quot;&gt; &lt;span&gt;**Logo Here **&lt;/span&gt; &lt;/div&gt; &lt;div class=&quot...
3
3,840
Bank ATM ledger in Django - - deposit, withdrawal, balance
<p>I’m trying to build a rudimentary interactive ATM machine ledger prototype demo in Python with Django.</p> <p><a href="https://i.imgur.com/pl6EJ75.jpg" rel="nofollow noreferrer">Here is what my web app currently looks like</a>.</p> <p>The intended basic functionality I am trying to create right now is to have the we...
3
3,376
Destroying tkinter screen in different class
<p>In my program, once my user has logged in, a new class is opened in which a function is loaded to check if the users details are correct, and then proceeds to either close the login window, display an error message, and then reload the page. And if the user logs in successfully, then the login screen closes and the ...
3
1,291
memory error when retrieving data from Songkick
<p>I have built a scraper to retrieve concert data from songkick by using their api. However, it takes a lot of time to retrieve all the data from these artists. After scraping for approximately 15 hours the script is still running but the JSON file doesn’t change anymore. I interrupted the script and I checked if I co...
3
1,293
2 different surface charts with matplotlib python
<p>I'm creating 2 surface charts, where I'm only changing the vertical ("z") axis values. The first chart looks exactly how I want, but in the second one it looks like its taking the values of the first chart to apply the colormap. </p> <p>This is the first chart: <a href="https://i.stack.imgur.com/smQrt.png" rel="nof...
3
1,074
Flutter broken Apk
<p><a href="https://i.stack.imgur.com/LNZcT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LNZcT.jpg" alt="enter image description here" /></a>my problem is when i build the apk of my app, the buttons don't appear, do you have any idea why? The code I left is the start screen. I can't test it becaus...
3
1,456
cannot install discord/opus
<p>I'm making discord bot. It work perfectly yeseterday. The bot works and I tried to host it on heroku. Then I found some errors.So, I tried to search the solution online and typed <code>npm cache clean</code> and delete the node_modules and package-lock.json as the guy said from the solution post. Then this error occ...
3
3,314
JSON Object name returning as ID
<p>I'm learning Angular and .NET Core. In my web application that I'm building I have two objects that are returned on my Organization Detail page. They are as follows: </p> <ul> <li>Organization (retrieved via the API and gives details about an organization such as OrganizationName, StreetAddress, PhoneNumber, Firs...
3
2,351
Django Rest Framework - Annotate duplicates values
<p>I encounter a really weird bug. When annotating 3 values (AVG, COUNT and SUM) I notice that COUNT and SUM are multiplying each other.</p> <p>For instance:</p> <p><a href="https://i.stack.imgur.com/ZucUJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZucUJ.png" alt="enter image description here" /...
3
2,175
Find missing values by linear interpolation (time serie)
<p>I have these <code>data.frame</code> called <code>df1</code> which represents each month over three years (36 rows x 4 columns) : </p> <pre><code> Year Month v1 v2 v3 1 2015 1 15072.73 2524.102 17596.83 2 2015 2 15249.54 2597.265 17846.80 3 2015 3 15426.35 2670.427 18096.78 4 ...
3
1,347
Putting menu options in "more" button when there is not enough space
<p>I am just starting with web developing so sorry if my questions are trivial.</p> <p>I am using Bootstrap 4 and created <code>navbar</code> with hamburger menu which hides entire menu when screen reaches certain width but I would like to change that the single menu elements hides in &quot;more&quot; button one by one...
3
1,845
SIP registration fails - TIME OUT - ALL PERMISSIONS included in the manifest BUT the RECEIVE DATA FROM INTERNET PERMISSION not included in the APP
<p>I am trying to register with my SIP account. I doudt it's a programming issue because I rewrote the SIP programme twice from scratch and took inspiration from different sources. AND!! I look over the permission actually in the APP in the setting option of my android phone and the permission "RECEIVE DATA FROM INTER...
3
2,624
JavaScript not working when split into sub- functions
<p>I've written a game in JavaScript.It worked, but now I'm trying to make my code more reusable and easier to debug, by splitting it up into smaller functions and files.Below is the play function, that is repeatedly called within a game loop:</p> <pre><code> function play(deltaTime) { if (gameScene.visible...
3
1,765
"Prev" button not cycling through array, "Next" button works fine
<p>I am trying to get "Next" and "Previous" buttons working in my program. The next button works as expected, but I can't get the logic right for the previous button. I am getting the error:</p> <p>"Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1 at Bookstore8$3.actionPerformed(...
3
2,066
jpeg to bmp with 300x300 resolution outputs distorted grayscale image
<p>I am using libjpeg on a Ubuntu 14.04 environment to decompress my JPEG image and write it to a BMP file. However, if I have a colored JPEG image with 300x300 resolution(2550x4206 pixels), the output BMP file is in grayscale and image seems dull. Other JPEG images with resolution 200x200, 400x400 and 600x600 will ou...
3
1,057
C - Array of Strings & Mysterious Valgrind Error
<p>I'm trying to allocate a two-dimensional array of strings, where the last member is always a NULL pointer, i.e. an empty array consists of a single NULL pointer. I keep getting Valgrind errors but I have no idea why. </p> <pre><code>/*Initializes the string array to contain the initial * NULL pointer, but nothing ...
3
3,072
Using gpg to digitally sign an encrypted key
<p>I'm working on a lab for my computer security class, and one step is giving me problems. <a href="http://pastebin.com/6RhEuK4A" rel="nofollow noreferrer">Here is the assignment.</a> <a href="http://pastebin.com/QBAJbaEi" rel="nofollow noreferrer">And here is all the work I've done up until step 11.</a> It is step ...
3
1,456
How does one install rlwrap on a mac os?
<p>I have mac and I had this software installed before and working so not sure what changed. This is the commands:</p> <pre><code>(meta_learning) brandomiranda~ ❯ rlwrap sertop --printer=human zsh: command not found: rlwrap (meta_learning) brandomiranda~ ❯ rlwrap zsh: command not found: rlwrap (meta_learning) brandomi...
3
1,221
Litelement - Table sorting renders wrong values
<p>I am trying to sort an HTML table based on it's values in my Lit element. However, I'm running into a problem with my component. Here is an overview of my table; <a href="https://i.stack.imgur.com/PQHQ1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PQHQ1.png" alt="enter image description here" /...
3
3,778
Why am I getting a 500 when uploading file via the browser but not via Postman?
<p>When I run my API on Postman, the file gets stored in S3 followed by the DB successfully, as depicted in the <code>FileUploadController.php</code> file below. I'm not sure if there's something off in the <code>Gallery.js</code> file but my suspicion is that the <code>name=&quot;userUpload&quot;</code> attribute on ...
3
1,764
I have a JSON table, how can I create a sql table with this information in PLSQL?
<p>I'm working with PLSQL and I have this JSON table (first variable), How can I insert this data into a sql table, i have already try this, but i have SQL statement ignored error:</p> <pre><code>CREATE TABLE Prueba_ins_json ( userId number(3), id number(3), title VARCHAR2(200), body VAR...
3
1,696
Laravel get a empty variable from axios.post from vuie.js module
<p>partners from stackOverflow im making a module using laravel like backend, and vue.js by frontend, i have a form to create a new entity, but the controller dont get the values¡, plz help me to find the error. I'm going to share the code.</p> <p>the routes.web</p> <pre><code> //new event from API Route::reso...
3
2,874
Change images dynamically inside a div within effect with jquery
<ol> <li><p>I have four divs that hold images</p> </li> <li><p>I am using an effect that flips a card, this is currently working, <a href="http://jsfiddle.net/fUsPh/7/" rel="nofollow noreferrer">here is the fiddle</a> so you can see what I mean.</p> </li> <li><p>Now I would like to change the image for each div every t...
3
1,930
showing send_invitations.class cant be resolved to a type in android
<p>hai all..... I am displying all my emulator contacts into my appliaction.I want to select some of the contacts and putting into an array...I followed the below code ...please help me..</p> <pre><code>package com.android.sample; import android.app.Activity; import android.content.Intent; import andro...
3
1,663
Incoming push notifications set alerts twice swift 4
<p>I'm implementing Push Notifications via Firebase Cloud Messaging, and when I get the alert on device it actually adverts twice, but on notifications list panel it appears just once as expected. I'm trying to sort this out but I'm new to Push notifications and I don't find where I did set a duplicate . I'm testing on...
3
5,646
Angular - mat-table render data
<p>I am using Angular 9, and I am trying to render a <a href="https://material.angular.io/components/table/overview" rel="nofollow noreferrer">Mat-Table</a>.</p> <p>If I use hard-coded data, it works perfectly, however if I use data from my service the values do not display in the table.</p> <p>For example, the below c...
3
1,571
EmbeddedServletContainerFactory and TomcatEmbeddedServletContainerFactory create defaultServletHandlerMapping error
<p>I have spring boot version 1.3.1. I configured https on my application and everything is good. But now I try to redirect application from http to https. I use my SecurityConfig class.</p> <pre><code>@Configuration @EnableWebSecurity @ComponentScan("com.myApp.recproject.security") @EnableGlobalMethodSecurity(prePos...
3
5,517
Go "polymorphism"
<p>People are saying, Go is not an OO (Object Oriented) language; don't use OO terms on Go. OK, let me describe what I am able to do with OO --</p> <p>With an OO language, I can make different animals say different things based on their classes:</p> <pre><code>cat.Say() // miao sheep.Say() // bahh cow.Say() // moo </...
3
1,382
Bing Map image generator not working as expected
<p>I have a requirement to Use Bing map with image download functionality with my web application. I've a requirement to draw on bing map and user may able to download the same. It's working fine If I'm drawing something on map, but I can't get expected result while trying to zoom areas. After zoom and draw on bing map...
3
1,427
How do I make the bootstrap carousel controls appear on top of the images instead of next to them?
<p>I'm using the carousel code provided by bootstrap and although it's working, the controls are taking up space to the right and left of the image instead of lying on top of them.</p> <p>I'm a newbie so so far my attempt to fix this was to add</p> <pre><code>} .left carousel-control { position: absolute; } .righ...
3
2,174
Apply scroll to a html application
<p>How can apply scroll bars to the below HTML chat application using jquery, possibilities to add scrollbars to the conversational chat bot.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettypri...
3
1,366
Reading data not working in CRUD style table. PHP Ajax, SQL Server
<p>I am trying to implement a table that I can dynamically add data into with ajax, I have the insert working and it's going into my database fine, but I can seem to get the data to display on the page.</p> <p>These are my ajax functions:</p> <pre><code>&lt;script&gt; function saveData(){ var qid = '25'; ...
3
1,456
how to get a subobject from json response
<p>i'm trying to retrieve an inner object from a json response, my json pojo looks like this:</p> <pre><code>public class Pojo { private String token; private User user; public Pojo() {} public Pojo(String username, String password,User user) { user.setUsername(username); user.setP...
3
1,186
Using regular expression in Python to generate a list
<p>I have a small script which is used to produce an image with predefined font and text. I would like to change it to use multiple fonts to render the same text e.g. letter <code>A</code> in 5 fonts. I am defining my fonts list as :</p> <p><code>fonts = [ 'Georgia', 'Consolas', 'Arial'</code> ]</p> <p>and then I ...
3
1,030
Why fopen() and open() does not recognise the char pointer
<p>The purpose of this program is to test the speed of both C library functions and System calls. I have been trying to implement some extra uses such as either inputting from command line arguments like this <code>./scat -l read.txt /dev/null</code> or if command line argument is <code>./scat -l</code> then the progra...
3
1,755
How to have Java Iterable return base subtype from extended generic
<p>I am attempting to make a class that sub-classes Iterable. This is similar to this <a href="https://stackoverflow.com/questions/21512250/how-can-i-make-my-class-iterable-so-i-can-use-foreach-syntax">question</a>. However, I need to have the objects in the list be sub-classes of a specific class, e.g. QObject in my ...
3
1,567
Not logging in? No value for login error?
<p>the api login.php is correct but some problem in java code in android studio but not understanding the problem?need help in code?</p> <p>I have tried my method but it dosen't solve my problem.</p> <p>this is my login.php code.</p> <pre><code>header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-M...
3
3,757
insert data with comma delimiter but with different ID
<p>Hi I am having a problem with my <strong>bulk insertion.</strong><br/> The challenge/objective is to save a column with comma delimiter to another table with different ID's<br> like for example-><br> I selected query<br> from @temp table<br> </p> <blockquote> <p>Rolln &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbs...
3
1,279
Why this below code is throwing an error "Abort signal from abort(3) (SIGABRT)"?
<p>Question :- Write a program to Validate an IPv4 Address. According to Wikipedia, IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255, separated by dots, e.g., 172.16.254.1 . The generalized form of an IPv4 address is (0-255).(0-255).(...
3
1,137
Issue in Android Dynamic TableLayout
<p>I'm using TableLayout. TableRows are dynamically added from the JSON parsing. I'm using Volley method for JSON Parsing. My problem is when I run the app at first time table rows are created. If I back to the tablelayout activity or redirect to the activity, table rows are not created.</p> <pre><code>tableRow5 = new...
3
1,451
Crash with many-to-many NSManagedObject relationship lookup in Swift 2.0
<p>I am trying to implement a many-to-many relationship in Core Data with Swift 2.0 NSManagedObject subclassed, but whenever I try to fetch an object in the relationship I get a strange <code>unrecognized selector sent to class</code> error.</p> <p>The relationship I am trying to design looks like this:</p> <p><a hre...
3
1,914
Send an HTML email with an attachment in unix either using mail,mailx or sendmail
<p>I am trying to send an HTML email along with few attachments, but i when m not using <strong>Content-Type: text/html</strong> in header then i am able to send the attachment , but HTML part of the email is displayed as below :-</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;p&gt;This is t...
3
1,041
Async Await Loop/Math problems
<p>I'm making a little program to practice with WPF and Async/Await for multithreading, and what the program does is:</p> <ol> <li>Find all the prime numbers between two numbers "a" and "b", and spit them out to a textbox called "Prime1".</li> <li>Simultaneously in a different task, find all the prime numbers between ...
3
1,825
ngInclude worked in 1.0.7 but not working in 1.2.1
<p>Working version Angular 1.0.7 <a href="http://plnkr.co/edit/QUiKuYdOk5hSmeLxZH2k?p=preview" rel="nofollow">plunkr</a></p> <p>Not working version Angular 1.2.1 <a href="http://plnkr.co/edit/faZ4c1QW4RmKTL19sKxD?p=preview" rel="nofollow">plunkr</a></p> <p>In angular 1.0.7, the following ngInclude worked fine:</p> <...
3
1,051
a website that is blocked from being embedded in an iFrame. I need a legal workaround that allows me to post my store on my website
<p>I need to add a website that is blocked from being embedded in an iframe. I need a legal workaround that allows me to post my store on my website. I'm not trying to hack anybody. Just want to safely and legally bypass this restriction. Thanks. :) As it is not working kindly give me a solution or solve it and sent me...
3
1,669
Calling converter's Convert() method everytime on mouse over WPF
<p>I would like to call the converter's Convert method though there is no value change in the source. Now it is calling first time only. Is there any way to achieve this?</p> <p>I know that convert method will not call every time unless there is a change is the source.</p> <pre><code> public class ElementNameToDrawin...
3
2,956
how to deserialize part of the JSON object using JSON.NET
<p>I am working on an asp.net mvc web application. and i am receiving the following json object :-</p> <pre><code>{ "operation":{ "name":"GET RESOURCE ACCOUNTLIST", "result":{ "status":"Success", "message":"Resource details with account list fetched successfully" }, "...
3
1,427
Logback sift RollingFileAppender not rotating when run from WAR
<p>I have a logback config that logs to multiple files including the primary log file called servernexus.log. Each log file is suppose to be rotated by RollingFileAppender. When I run from eclipse with the logback config file and everything else in my $CLASSPATH the servernexus.log is rotated properly by logback. Wh...
3
6,776
Problem with showing image from the database
<p>I need a help regarding my source code on uploading and displaying the profile picture of my users on their profile. The upload went smooth, but the display is not. The display of the user's picture is only shown in picture icon and not the real picture. Like this:</p> <p><a href="https://i.stack.imgur.com/AvaM2.pn...
3
14,222