title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
MySQL search across multiple indices
<p>I've inherited a large, ugly MySQL 5.7 database and am looking to optimize some queries.</p> <p>Specifically, the user wants to search 7 different <code>var_char</code> columns...in 7 different tables.</p> <p>Obviously, I can join the 7 tables and filter for <code>LIKE '%search term%'</code>, but I'd love to use <...
3
2,111
Animation BottomNavigationView doesn't work
<p>When I click on BottomNavigationView item it doesn't animate on some version (for example Marshallow)</p> <p><strong>The expect behavior is</strong>:</p> <p><em>When I click on item the icon become larger and appear the text.</em> </p> <p><strong>But the result is</strong>: </p> <p><em>Icon stay in normal size a...
3
2,308
p:dataTable doesn't display each p:selectManyCheckbox selected
<p>Passed on the demo example of:</p> <p><a href="https://www.primefaces.org/showcase/ui/data/datatable/basic.xhtml" rel="nofollow noreferrer">https://www.primefaces.org/showcase/ui/data/datatable/basic.xhtml</a></p> <p>and I can show the complete example as primefaces-test-master and run as mvn clean jetty:run-explo...
3
2,026
Grouping results from SQL query in python to display on page
<p>I am running an SQL query in a views.py file and based on what values are returned I need to display different data in a column from an .html file. </p> <p>If:</p> <p>customer_id is not null, then the detail column should display the customer_id and name.</p> <p>If:</p> <p>customer_id is null, then the detail c...
3
1,043
Variable 'this.userInfo' is unbound and cannot be determined
<p>I am developing a maven JDO project, but I am getting this error when I am trying to make relation between two tables (user_login, user_role)</p> <p>User_Login: user_id(primary key), user_name, user_password,user_role_id</p> <p>User_Role: id(primary key), role</p> <p><strong>user_role_id is same as id of user_rol...
3
1,130
Is it possible to typedef a multidimensional array of uncertain size? [C]
<p>I am trying currently to solve a specific task. For this task I try to exercise all the skills I have learned so far. Since I am dealing with a multidimensional array a lot I wanted to typedef it as usual.</p> <p>This time the array has to be editable by the program in size.</p> <pre><code>typedef char grid[][]; <...
3
1,544
How do I do OS-specific notifications in Java?
<p>I am not a programmer by trade (any Java knowledge I have comes from the School of Hard Knocks). Please forgive me for the stupid question I'm about to ask, and answer appropriately.</p> <p>A Java app I'm working on uses very buggy platform-agnostic notifications (such as when a file has been successfully download...
3
1,041
getting error in spark structured streaming
<p>I am trying to create a POC on spark structured streaming with Kafka using python, below is the code.</p> <p>Spark version - 2.3.2 kafka - 2.11-2.1.0 Hadoop - 2.8.3 </p> <pre><code>spark = SparkSession \ .builder \ .appName("StructuredNetworkWordCount") \ .getOrCreate() brokers, topic = sys.argv[1:] p...
3
1,619
Problem with symfony multi language in sub directory
<p>when trying to access my symfony 5 production environment i get a problem with the redirection for the language. It redirect automaticaly to : mydomain.com/en instead of mydomain.com/subdirectory/en</p> <p>i tried to update the file config/packages/security.yaml</p> <pre><code> access_control: - { path: ^/subdirect...
3
1,428
I cannot see the error in my code
<p>Here is my code</p> <pre><code>#include &lt;iostream&gt; using namespace std; #include "mykouti.h" int main() { Kouti koutiA(2.0, 3.2, 6.0); Kouti koutiB(2.5, 4.0, 5.0); Kouti koutiC; // Display the volume of each box cout &lt;&lt; "KoutiA volume is: " &lt;&lt; koutiA.calculateOgkos() ...
3
1,068
Time Graph in Flot issue?
<p>I am trying to graph a month out in flot (per day) or possibly every other day, have a tick.</p> <p>To get my time values, i am doing this: </p> <pre><code>$date = strtotime($rowData[0]); // 2013-01-01 $myData = json_encode(array($date*1000, 1234)); // I Then echo it out as an array into the javascript var. </code...
3
1,058
Java Applet, game loop runs fine the first time, and then when reset, updates at half the speed
<p>so for the game I'm creating I realized I mist have done something wrong with my gameLoop because the first time I play through my game it runs great, but the second time or anything after that, it slows down by about half. Even if I minimize the game (Because that stops the gameLoop, and then bringing it up again s...
3
1,929
User class threw exception: com.esotericsoftware.kryo.KryoException: Buffer overflow. Available: 0, required: 1
<p>I'm doing following operation on pyspark,</p> <pre><code>df = spark.read.table(&quot;pseudonymized_cdp_offline_store_snapshot_ssp_request_admonet_v3&quot;) req=spark.read.table(&quot;rtf_request_table_ssp_segment_2022_06_15_0&quot;).select(&quot;pseudonym_id&quot;).distinct().rdd.map(lambda x : x).collect() reqid...
3
1,256
Logging to file in Python across modules/class (again!)
<p>After reviewing <a href="https://stackoverflow.com/questions/16947234/python-logging-across-multiple-modules">this thread</a> and <a href="https://stackoverflow.com/questions/47886582/logging-to-a-single-file-across-different-modules-in-python">this thread</a>, I still don't quite &quot;get&quot; the concept of usin...
3
1,314
Creating custom week number in sql
<p>I have a table with ID and Date columns.</p> <p><strong>Table A:</strong></p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">ID</th> <th style="text-align: center;">Date</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">24</td> <td style="text-align: c...
3
2,522
InvalidOperationException was unhandled - Easy fix?
<p>Hi could someone please help me, I am a completely new to coding and just following material my teacher has given me.</p> <p>I am currently making a vb programme connected to xampp-mysql database</p> <p>I have made the login form where the user/pass is store on the xampp database. I have included some presence che...
3
2,361
How write SQL statement in controller to retrieve the data from user input (HTML) and do multiple filter in datatable?
<p>I need to do multiple search/filter the records in a datatable, but I do not know how start it. I tried to code the <code>GetSearchList()</code> function to get the user input (view-html), but I'm getting errors. I do not know how to fix them. The errors show:</p> <pre class="lang-none prettyprint-override"><code>Se...
3
16,513
Logging the results of mouse clicks in C# Winform app?
<p>I'm trying to create a log of each mouse click in my Win form app that records what method or action was triggered by the click event. This would include interacting with not only buttons but tables, docks, etc. (which is where I'm having trouble). Obviously I'd like to avoid going into all my previous code and manu...
3
1,173
How to wait for an activity to finish in asynctask
<p>I know that the purpose of the AsyncTask is to run asynchronously with other tasks of the app and finish in the background, but apparently I need to do this, I need to start an activity from AsyncTask and since I cant extend an activity in this class I can not use startactivityforresult, so how can I wait till my ac...
3
5,458
OpengGL makefile linker error in c++
<p>I been trying to make Makefile for medium sized project but it is no go for me:</p> <pre><code>DPS=-Wall -lglfw -lGLEW main: glfw.o shader.o g++ $(DPS) glfw.o shader.o -o main.run glfw.o: glfw.cpp g++ $(DPS) -c glfw.cpp shader.o: shader.cpp shader.h g++ $(DPS) -c shader.cpp clear: rm *.o main.run...
3
4,579
Weird error in using Ant
<p>This is my build.xml using ant.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project name="compile" default="css.concatenate" basedir="."&gt; &lt;property name="charset" value="utf-8"/&gt; &lt;!-- compile LESS --&gt; &lt;target name="css.concatenate"&gt; &lt;concat destfile="${basedir}/src/...
3
1,413
How to add existing songs to a music library Rails 4
<p>What I'm trying to do is add songs that artists have already uploaded to a user library (I have already set up my app so that artists can upload songs). Also, I have set up my code so that an empty user library is created after a user signs up (using the after_create Active Record Callback).</p> <p>To be more clear...
3
1,596
Error 3 uploading video to Google Photos with Powershell (Works for pictures)
<p>I am using the following code to upload photos and videos to Google Photos using Powershell. The code works perfectly for pictures, but will fail when uploading a video (which is accepted in Google Photos when this is uploaded through a browser).</p> <p>When attempting to upload a video, raw bytes upload will succee...
3
1,291
Add one more property to default Index.cshtml RazorPages Asp.Net Core 2.1.0
<p>I am using <code>Asp.Net Core 2.1.0</code> in a project where I want to add one extra <code>property</code> to default scaffolding <code>Index.cshtml</code> page.</p> <p>Here is my Entities Please suggest.</p> <pre><code>public class Role { public int RoleId { get; set; } public string RoleName { get; set;...
3
1,600
Cant run app Nativescript on iOS but runs on android
<p>Cant run app Nativescript on iOS but runs on android My code works ok android with no problems but in iOS i get those erros below. and i have no ideia why, what im missing ???? Its a plugin? Module? Any help would be good cuz im lost here. thanks when i run <code>tns run ios --env.aot --env.uglify</code>.</p> <p>th...
3
1,628
Site not vertically scrolling on mobile device
<p>I'm newer to html/css and am trying to deploy a very basic construction page, but I cannot figure out how to make it scroll on mobile. This page will scroll if I test it within the safari browser developer tool for iphone on my desktop, but will not scroll on my actual iphone device. Can anyone help me figure out h...
3
2,824
how can be add text by using UILabel instead of CATextLayer over a video
<p>I have created an application in which i have add text by using CATextLayer.but i want to add text by using UILabel and perform scaling and rotation . Is it possible to add a text by using UILabel over a video ? If yes, Please help me for getting this.</p> <p>My code for adding text by using CATextLayer is Here and...
3
1,479
Select returns wrong value on initial change
<p>I'm using React, jQuery, and NewsAPI. The request and state should change when the user updates the option selected. However, when the Onchange function executes it returns the wrong value. After the function executes again the value is off by one index. Can someone point me in the right direction without being ru...
3
1,255
How to get only a few indexes of the data array?
<p>I'm having trouble with the second iteration of this, take a look at the code below:</p> <pre><code>include ('rest.php'); include ('header.php'); include ('topo.php'); include ('menu.php'); $token = $_COOKIE['token']; $table1 = "&lt;div class='pai-forms'&gt; &lt;table id='calendarTable'&gt; ...
3
1,041
How to use Armadillo Columns/Rows to perform optimised calculations on accesses within the same column
<p>What is the best way to manipulate indexing in Armadillo? I was under the impression that it heavily used template expressions to avoid temporaries, but I'm not seeing these speedups.</p> <p>Is direct array indexing still the best way to approach calculations that rely on consecutive elements within the same array?...
3
1,303
AVAudioPlayer not playing iPad2
<p>New to IOS dev, I'm testing AVAudioplayer to play sound on iPad2 (Xcode 4.2 project, ARC/storyboard enabled). Sound plays ok in simulator and no error. No error on device either but no sound. </p> <p>Been browsing this fine resource temple, but nothing I've tried based on feedback here has produced anything but de...
3
1,519
Android Studio Equivalate to CSS display grid
<p>In CSS I can easily create a grid as in the picture below:</p> <p><a href="https://i.stack.imgur.com/gSTU4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gSTU4.png" alt="Grid" /></a></p> <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false"> <div class="s...
3
1,191
unwrap a generator to use inside model.fit
<p>I have exactly the same problem as that addressed in this <a href="https://stackoverflow.com/questions/50928329/getting-x-test-y-test-from-generator-in-keras">post</a>: I cannot use generator in the training input of <code>model.fit</code> in <code>keras</code>, so I should unwrap it. The proposed solution:</p> <pre...
3
1,729
App deployed on Heroku but api calls are now failing (Failed to load resource: net::ERR_CONNECTION_REFUSED, TypeError: Failed to fetch)
<p>My app is successfully deployed on Heroku- it works when I have VSCode open and do npm run start manually, however when I close VSCode it is no longer able to successfully call any APIs on the backend and the console shows me a bunch of errors like the one in the title.</p> <p>my console (ONLY happens when I close V...
3
1,227
kafkaSpout is not emitting messages
<p>I am able to run storm Kafka with local cluster but not able to run with storm Submitter below is my topology code</p> <p>can anyone please help me to solve this issue :)</p> <pre><code>package com.org.kafka; import org.apache.storm.Config; import org.apache.storm.LocalCluster; import org.apache.storm.generated.A...
3
1,548
pygame: I can't make one rectangle notice when the other comes in contact
<pre><code>import pygame import time import random pygame.init() white = (255,255,255) black = (0,0,0) red = (255,0,0) green = (0,155,0) blue = (0, 0, 200) #img = pygame.image.load("rectangle.png") displayW = 500 displayH = 500 display = pygame.display.set_mode((displayW, displayH)) pygame.display.update() clock ...
3
1,811
Hibernate user_roles table will not update when using ManyToOne relationship
<p>I have 3 tables, User, Role, and User_role. User has a OneToMany relationship mapped by "user" with a CascadeType.Merge and user_role has 2 ManyToOne Relationships with cascadeTypes.All however the user_table never populates with data when running hibernate. Instead values are only populated in the user and role tab...
3
1,276
parse tableview controller added to parent view will not select cells in Swift
<p>I have a view controller, and when pressing a button I want it to display a tableview on top of the view controller. I have used the following code for my view controller:</p> <pre><code> @IBAction func addRecipientsButton(sender: AnyObject) { let controller:contactTableView = self.storyboard!.insta...
3
3,324
Create UDAF(not UDTF) in Snowflake
<p><code>Java UDFs return a scalar result. Java UDTFs are not currently supported.</code><a href="https://docs.snowflake.com/en/sql-reference/udf-overview.html#java" rel="nofollow noreferrer">reference</a></p> <p>That said, I created a Java UDF as given below</p> <pre class="lang-sql prettyprint-override"><code>CREATE ...
3
1,294
Watermark overlay fluctuate in codeigniter
<p>When I use to do watermark overlay in codeigniter, the size of watermark image comes different for different dimension images. Following code is using for watermarking. </p> <pre><code>function do_upload_img() { if(isset($_FILES['portfolioimg']['size']) != 0){ $name_array = array(); $files = $_FI...
3
1,261
Differentiating between instances of a class in python
<p>I'm working with multiple instances of a class called Enemy. I'm calling them from my main method in the Game class, so it looks like this. </p> <pre><code>class Game(object): def main(self, screen): if condition is true: Enemy(arguments) elif condition is true: Enemy(ar...
3
1,209
Data Types in Flutter
<p>Hi guys so I am working around a datatype that is &quot;int&quot; and &quot;double&quot;... but how do I pass it in the text such that I can have a parenthesis or bracket around my int like this; (260) and a currency or letters attached to my double like this; $20.00 or GHS15.00 any help</p> <p>this is my code;</p> ...
3
3,499
FirebaseRecycler doesn't retrieve list with a String in the DatabaseReference
<p>The code that I will show next, I have been using it since always and now this error appears:</p> <pre><code> com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.aplicacion.vivaluganoapp.ar.Model.UserPedido </code></pre> <p>com.aplicacion.vivaluganoapp.ar.Mod...
3
3,334
C++ priority_queue pop() and top() discrepancy
<p>I'm having a hard time understanding why a priority_queue pop() call is not removing the top() element. The priority queue has a custom comparison structure so that lower numbers have higher priority (and therefore should be retrieved with top()).</p> <p>The debugging text (below) shows the top() element remains th...
3
1,560
Creating a python program that scrapes file from a website
<p>This is what I have so far</p> <pre><code>import urllib Champions=["Aatrox","Ahri","Akali","Alistar","Amumu","Anivia","Annie","Ashe","Azir","Blitzcrank","Brand","Braum","Caitlyn","Cassiopeia","ChoGath","Corki","Darius","Diana","DrMundo","Draven","Elise","Evelynn","Ezreal","Fiddlesticks","Fiora","Fizz","Galio","Gang...
3
1,790
PhP Select not sending value
<pre><code> &lt;?php include ("forms/coneccao_feed.php"); $query = "SELECT id as ID, nome as Nome FROM provedor"; $query1= "Select MAX(id) as ID From provedor"; $ultprovedor = mysqli_query ($ligacao_feed, $query1...
3
1,406
Facebook SDK - get friends details
<p>I need to get friends details of the friends selected by the user.</p> <p>The user can selected his friends using default facebook friend picker. But when I get the selection as a list of GraphUser I cannot see any details of the users. In particular, I cannot get the usernames.</p> <p>Here is the Activity of the...
3
1,063
ggplot dismisses x axis factor levels
<p>I have the following issue: if I run the code, my labels for the X axis loose for some unknown reason the assigned factor levels and instead of order: 1 week, 2 week it becomes: 1 week, 10 week... when I use <code>geom_line</code> AND <code>geom_point</code>:</p> <pre><code>datax &lt;- read.csv(&quot;https://raw.git...
3
1,053
how do i make the html code appear on top of the animation and not behind it
<p>I tried putting this in CSS p{ z-index: 99 !important; } it didn't work I Just want to make everything in html appear on top of the animation here is the code::</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;meta name=&quot;viewport&quot; content=...
3
4,399
Adding header to .txt file - doesn't iterate through list of files
<p>My script aims to add headers to some text files that are currently defined in a list. After that, it should combine the text files into one.</p> <p>However I'm stuck with this error code here. I wouldn't want to do the same for-loop for every file needed:</p> <pre><code> Traceback (most recent call last): Fi...
3
1,027
Signing jwt token with refresh token as payload
<p><strong>How I understand jwt based authentication should work:</strong></p> <ol> <li>Client sends log-in credentials to server.</li> <li>Server verifies if credentials are correct and responds with a signed jwt token and a refresh token, while also storing the refresh token in database.</li> <li>Client uses jwt tok...
3
1,449
Libcontainer - Running multiple processes in the container
<p>I am trying to implement something to the effect of <code>docker run</code> and <code>docker exec</code> using <code>libcontainer</code>.</p> <p>I have been able to create a container and run a process inside it with the following code:</p> <pre><code>func Run(id string, s *specs.LinuxSpec, f *Factory) (int, error...
3
1,042
boost::enable_if MSVC
<p>I have code, that compiles and runs as expected in <code>gcc</code> and doesn't compile in <code>MSVC 2012 RC</code>, i can't explain why, so it's bug in <code>MSVC</code>, or my code is incorrect?</p> <pre><code>#include &lt;boost/mpl/vector.hpp&gt; #include &lt;boost/mpl/front.hpp&gt; #include &lt;boost/mpl/is_se...
3
1,492
How can I pull variables out of a Static class?
<p>As the title says I would like to pull some variables out of different classes. In class I was tasked with producing a magic square which isn't particularly hard to code so I thought I would make an interactive GUI for and because I had never coded with GUI before I had to learn how to use JLabel and JButton etc.</p...
3
2,265
Postgres-MADlib predictions is taking longer than training
<p>I am training my data using following code:</p> <pre><code>start_time := clock_timestamp(); PERFORM madlib.create_nb_prepared_data_tables( 'nb_training', 'class', 'attributes', ...
3
1,152
Combine autocomplete with getopts
<p>I made a script called "gc" to autocomplete git branch names, when using the <code>git checkout</code> functionality, e.g. typing <code>gc mob-102</code> then pressing tab twice would display matching branch names such as mob-1025-a, mob-1025-b, mob-1021-end, etc. </p> <pre><code>function gc() { git checkout "$1...
3
1,097
Change class name in ngFor based on Viewport - expressionChangedAfterItHasBeenCheckedError
<p>On the left, there's a navigation list with titles of categories, and on the right, I have the categories listed. The titles in the list could get &quot;highlighted&quot; based on the category shown on the right.<br /> 1- The user may click on a category title from the list to scroll to it, and now that clicked titl...
3
1,136
How to fix 'Argument must be a string' TypeError
<p>I have a tuple that i am trying to use for choice field in my model. Although, i have created this table without this last column (optional value - can be null) which i am trying to add now. Here is my model code</p> <pre><code>class SemesterData(models.Model): YESNOCHOICE = ( ('Y', 'Yes'), ('N', 'No'), ...
3
2,976
How to remove redundant quotation marks in dynamically created json object with javascript?
<p>Following problem: I want to create an Audio player with a playlist like on this site: <a href="http://www.davidorlowsky.com/player/demos/lark.htm" rel="nofollow">http://www.davidorlowsky.com/player/demos/lark.htm</a></p> <p>If you click the right mouse button and view the source code you'll see that the playlist h...
3
1,051
JavaScript/jQuery - Array list does not go across whole board
<p>So, I'm working with <code>A* Pathfinding</code>. I got it working however it doesn't work all the way. It works all the way until the last <code>4</code> columns to the right. Weird. </p> <p>It works all the way until X is 10 or less. Which is weird because <code>Y</code>'s max is <code>10</code>. Maybe it's toget...
3
1,425
apache/flask - when uploading file, requests are beeing qued, server unresponsive & memory gets high
<p>I'm running Flask on Apache with mod_wsgi, every time a file get uploaded, the response time of the server worses, and my memory goes over 100% to swap.</p> <p>This below is the whole code that handles my upload</p> <pre><code>@app.route(sApiRoute + '/f/upload', methods=['POST']) @hasToken def pbFileUpload(token=N...
3
1,336
How to avoid a ServletFilter being called twice?
<p>I got a simple Filter which sets an Expiration date and content type for .mp4 and .png files. This together with Frontend is deployed on a Payara Server from which I call the desired media files. What then happens is that the request for a video is sent twice. The second request then throws an Exception because the ...
3
2,863
C# DataGridView retrieving outdated results from database when Child Form is closed
<p>I have a form opens up a <strong>dialog</strong> that contains a DataGridView. </p> <p>When I double click the DataGridView, it opens up a child form that contains details of that row. </p> <p>Once I save any updates, the child form closes and the DataGridView should be refreshed.</p> <p>However, I have noticed t...
3
1,285
Can I have more than 1 form action(form inside form) in single jsp using hibernate
<p>In this jsp, I have used 2 form actions, one to save the role(table:defining role), and other to call the drop list from other table(table: solutionList).</p> <p>After clicking on submit, it is not doing anything. </p> <p>If i remove this form(solutionMaster.html)</p> <p>Im getting this error " Invalid property ...
3
5,506
Can't connect to Mysql from Ruby
<p>When i ran cucumber BDD .feature files getting the below mentioned error, but was able to connect through Mysql command line client. Any inputs to solve this will be very much helpful, Thanks. </p> <p>I am using:</p> <ul> <li>WinXp (64 bit)</li> <li>Mysql 5.1 (64 Bit)</li> <li>Ruby 193</li> <li>cucumber 0.8.5</li>...
3
1,377
Element on a menu not responding to a trigger event
<p>I've made a menu that reveals a drop down menu when you click or touch it. At least that's what happens when you select the word 'Menu2' but unfortunately it's not what happens when you select the words 'Menu3'.</p> <p>On Menu3, for some reason my code is not recognising the selection of the anchor element and then...
3
2,126
SLF4J: Class path contains multiple SLF4J bindings. - Apache Kafka 3.1
<p>I am trying to run Apache Kafka from git source but I am getting <code>multiple SLF4J bindings</code> warn which leads into a failure when using docker containers.</p> <p>according to the documentation;</p> <pre class="lang-sh prettyprint-override"><code>git clone --depth 1 --branch 3.1 https://github.com/apache/kaf...
3
1,962
Django Migration not starting on ubuntu
<p>i have uploaded my Django project to an ubuntu server. and deleted all migration files on project folder. I was using mysql on my localhost, but installed Postgresql on Ubuntu. When i try to migrate database django raises errors like below.</p> <p>python manage.py migrate results in</p> <pre><code> F File "manage...
3
2,275
Pagination with HTML Table
<p>In the table below, i put every student under the teacher that you belong in the table. Now, i want to rather paginate the students being shown under the table. So if 1st tab has 10 students, i could paginate to 5. </p> <p>Currently, my code doesn't do what i want to achieve. How do i achieve this?</p> <p>PS: I k...
3
1,215
Trying to customise FUIAuthPickerViewController and getting error in AppDelegate
<p>I'm trying to customize <code>FUIAuthPickerViewController</code> so that I can have a customized authentication screen as my login screen using FirebaseUI authentication</p> <blockquote> <p>*** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be re...
3
2,338
Initializing private data in custom Gtk+ widget which depends on parent's members (C)
<p>I'm working on a pet project solely for the purpose of learning a few API's. It's not intended to have practical value, but rather to be relatively simple excercise to get me comfortable with libpcap, gtk+, and cairo before I use them for anything serious. This is a graphical program, implemented in C and using Gtk+...
3
2,111
How to add Guess.js to Vue.js in existing Laravel project
<p>I have created the project from the base and have done step by step what saying <a href="https://guess-js.github.io/docs/nuxt" rel="nofollow noreferrer">here</a>. It's working. What I want to do is exactly the same on my current existing Laravel+Vue project.</p> <p>So in the first step I installed <code>fs</code>, <...
3
1,218
How to rotate a 2d plot along the x and y axis
<p>I would like to rotate the below example image along the x and y axis, 360 degree. Save the rotated images so that I can create a gif from the saved files.</p> <p>I used the scipy module with numpy but the output doesn't align with the intended output.</p> <p>import scipy.misc from scipy import ndimage import matplo...
3
1,024
Is a "complex" matrix style grid powered by a css grid possible?
<p>I am currently trying to achieve the following grid structure in Material-UI with a css grid:</p> <p><a href="https://ibb.co/yBgyH0G" rel="nofollow noreferrer">Desired complex layout</a></p> <p>I already created a css grid with Material-UI that looks like this:</p> <p><a href="https://ibb.co/pws5fnx" rel="nofollo...
3
2,266
PHP/Symfony3/Doctrine association returns NULL
<p>I have 2 tables, one a GrowerProjection and one a Crop. One crop can have many grower projections associated with it. I came into this project with the underlying database already built, and in the database, Crop has a unique ID of, for instance, CROP-001, stored in a column called crop_ID. In the GrowerProjection t...
3
1,377
i want to get the div with the class name hour 0:00AM by the parent div day sun
<p>I have a weekly calendar and want to get the hour by the parent day (<code>sun</code>). I will do the same for for the other days and will get the classes from key/value array. I just want the simple js or jquery code to find it.</p> <p>This worked for me, but it gets all <code>&lt;div&gt;</code>s under class <code...
3
1,725
Dynamic column name in xslt 1.0 grouping
<p>I am using xslt 1.0 and would like to use dynamic column name inside the group, Kindly suggest me the options.</p> <pre><code>&lt;xsl:key name="district-by-state" match="District" use="concat(../../StateName, '+', TranslatedDistrictName)" /&gt; </code></pre> <p>Like- If <strong>TranslatedDistrictName</strong> is ...
3
2,104
reason: actual value has 1 more key(s) than expected:
<p>I am running karate tests.</p> <p>I am posting a request object and i recieve a response object . however in the response object i have one extra field populated .How will i handle the scenario ?</p> <p>the following is my test</p> <pre><code>@NFRSubscription.feature Feature: NFR Subscription API Tests Background...
3
2,866
Why is Json from API not rendering on the Table
<p>So I wanted to play with ReactTable this evening to get information from an API and display on the table. This is the PHP crafted REST API https://librational-`talker.000webhostapp.com/peopleBase/employee_informationAPI.php so now I want it to load the data from componentDidmount() it should populate the Table and s...
3
1,586
$.each only the last element is shown
<p>I'm trying to filter a list with AJAX, I have an issue where the html only shows the last element. I have read a lot of similar SO questions and to no avail. I have variables, so I don't know whats the issue.</p> <pre><code>$("#programme").change(function () { event.preventDefault(); var selected_pr...
3
1,069
Jrebel is not working with weblogic 12.X
<p><strong>Issue Description:</strong> Unable to bounce the weblogic server with JRebel</p> <p><strong>Error:</strong> I am getting the follwoing error when i try to bounce the server</p> <pre><code>JRebel: ERROR Class 'java.lang.ClassLoader' could not be processed by com.zeroturnaround.javarebel.bv@null: org.zerotur...
3
1,577
Object returning an extra NULL array inside
<p>So I've built a simple API with Slim framework, while using one Middleware for validation from here <a href="https://github.com/Respect/Validation" rel="nofollow noreferrer">https://github.com/Respect/Validation</a> via a function as followed through this guide: </p> <p><a href="https://www.codecourse.com/lessons/s...
3
1,726
Invalid Cast Exception with FreshEssentials BindablePicker
<p>I have used FreshEssentials BindablePicker in other projects fine, but am having a very strange problem with a particular Page/PageModel.</p> <p>I have stripped the Page and PageModel right down to the following: Page:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;ContentPage x:Class="Manager.Pa...
3
3,105
The optimized way to show text
<p>I am in a process of optimizing item renderers that display a character in a Rect, I notice that the action of dynamically setting the text is slow, now I am thinking of creating premade objects with text hard-coded in them and inside the item-renderer have a switch to select the proper text object instead of using ...
3
1,458
Facebook Photo Posting App Doesn't Work?
<p>I used a Facebook Developers script called "Upload photos to a User's profile" (check it out : <a href="https://developers.facebook.com/docs/php/howto/uploadphoto" rel="nofollow">https://developers.facebook.com/docs/php/howto/uploadphoto</a>) but it doesn't work...</p> <p>Here's my code :</p> <pre><code>&lt;?php ...
3
1,327
Entities are not persisted after creation
<p>Disclaimer: this is my first project using NHibernate, I may miss something "obvious".</p> <p>My problem is as follow. I have a command that creates an order:</p> <pre><code>public void Handle(BuyOneProductCommand command) { var product = _uow.Query&lt;Product&gt;().Single(p =&gt; p.Name == command.ProductName...
3
2,351
Multiple file uploads Extjs 6 modern toolkit
<p>I have done multiple file upload in Extjs Classic Now i want to implement it in Modern toolkit but there are issue there is no fileButton Field So i'm using filefield, But i'm not sure how can i get the file data from the filefield here is the code:</p> <pre><code> { ...
3
1,047
Base64 code stays the same even though the values it is encoding are changing
<p>I am currently creating an incremental game much like cookie clicker. What would cookie clicker be without its save code that you can hack. I have code that takes all the values of my variables <code>atoms</code>,<code>clickvalue</code>,<code>elmts</code>,<code>molecules</code>, ect. it puts them in a string with sp...
3
3,094
Add child elements in particular order
<p>I am working on an xml to xml transform via XSLT. I Have the following:</p> <p><b>stylesheet.xsl</b></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.test.org" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="...
3
3,479
Django Forms Returns Error About Errorlist When Validating
<p>I am new to Django and am attempting to make a simple blog. I'm currently attempting to make a form that will only appear to admins that allows them to add articles to the database. However, I'm running into a problem that article.is_valid() keeps failing. I've worked on this for a while and have narrowed it down to...
3
1,082
How to take a screenshot of a bunch of labels and other trivial widgts in Qt and save it to a file at runtime?
<p>Alright so i was working on a C++ project for school which required me to create an interactive timetable. So i implemented this in Qt and the implementation turned out to be quite successful.</p> <p>I am now on the final stage where i want to take a <strong>screenshot of a particular part of the window which conta...
3
6,567
Django Social Auth not working with custom user setup
<p>I've been having a heck of a time getting django and django-social-auth to play nicely with a custom user and custom user manager. I've found many posts about this, but nothing seems to be working.</p> <p>Here are the settings:</p> <pre><code>LOGIN_URL = '/login/' LOGIN_ERROR_URL ...
3
1,380
Checking whether checkbox is check and passing of data
<p>I'm trying to check whether the checkbox have been checked before it can proceed to update the data of the box that have been checked.</p> <p>This is my original code and it works fine but it is unable to check whether a checkbox have been checked:</p> <pre><code>echo'&lt;form name = "frmPrice" method="post" actio...
3
1,497
Codeigniter session not working with my code
<p>I have this problem with this session in codeigniter that nothing displays. I use to call the result with an ajax. If I direct it to echo only it shows the correct user id. I don't know were do I wrong? I hope someone will correct me. Thank you</p> <p>This is my function for user login. This is for setting a sessio...
3
1,356
gradle build hangs when using azure application insights appender in logback.xml
<p>I am using azure application insights for logging in my application, It is a spring boot application with gradle. I am using application insights as an appender in my logback.xml The application works fine and logging works fine. But when I try to build my application using "gradle build" the build gets stuck and r...
3
3,408
How can I make data that is allocated manually be garbage-collected in Haskell?
<p>I'm thinking about a FFI calling some C functions from Haskell.</p> <p>If a memory buffer is used to hold some data and is allocated "manually" and then it is used in Haskell computations, can I somehow rely on the garbage collector to free it when it is not needed anymore.</p> <p>As for the manual allocations, th...
3
1,842
AFNetworking POST gives no args or data, though GET works
<p>I want to post an image to a server-side Flask endpoint. I run the following GET and POST using the following code, and then I describe what the server receives. How can I make sure the server receives the image and post parameters in the POST request? </p> <pre><code> [_client POST:@"post_image" pa...
3
2,561
Heroku adds an extra "/checkout" in the URL when completing order with Stripe using Django
<p>I have a small ecommerce project hosted on Heroku that I've built using Django, when clicking &quot;complete order&quot; on the checkout page I should be taken to the template &quot;checkout_success&quot; but instead I get stuck on the same page due to the URL trying to find a path with an extra &quot;/checkout&quot...
3
8,017
LayoutManager for Recyclerview with different cell spancount
<p>I am working to achieve a recycler view interface that looks like this: <a href="https://i.stack.imgur.com/ID5SD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ID5SD.png" alt="My target interface"></a></p> <p>Presently, am only using a recyclerview with LinearLayoutManager using an adapter with ...
3
3,880
JavaScript Read response - JSON - FaceAPI
<p>I have this JSON response i need to get the values of some elements inside this response. The values i want to display is the value of "makeup" which has to elements in it which are, "eyemakeup" &amp; "lipmakeup" i want to display it in an alert / or textbox.</p> <pre><code>[ { "faceId": "90c30c46-2a51-4754-bf...
3
1,739