title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How I convert this jQuery function to AngularJS Directive?
<p>I have this <code>onclick="startTimer({{ $index }},{{ product.time }})"</code> but for obviously reason the databindings doesn't render, so I have to use <code>ng-click</code>for rendering the values but <code>ng-click</code>no working with my jQuery Script</p> <pre><code>&lt;script&gt; function startTimer(id, ...
3
1,438
How can I hide my drop-down menu option(s)?
<p>I have a dropdown-menu, <strong>Class View</strong> is my default option.</p> <p><img src="https://i.stack.imgur.com/n5T0d.png" alt="enter image description here" /></p> <p>When I clicked on the arrow, I have this</p> <p><img src="https://i.stack.imgur.com/sRuxt.png" alt="enter image description here" /></p> <hr /> ...
3
1,293
C++ Socket Programming: Network Low Speed Analysis
<p>I have bought a VPS as a remote server and deployed shadowsocks as a proxy on this remote server.</p> <p><strong>Case 1:</strong></p> <p>When I use uTorrent to download files through shadowsocks, the speed could reach 10 MB/sec (which is 80 Mbits/sec). The diagram is:</p> <pre><code> --------------------------- ...
3
9,676
TypeError: argument has wrong size
<p>I am trying to index matrix based on the size. I am getting TypeError: argument has wrong size in <code>images[i,:] = img[ind[i]*rows*cols:(ind[i]+1)*rows*cols]</code> loop, not sure what is going on there. But the <code>labels[i] = lbl[ind[i]]</code> works fine. </p> <pre><code>def read(digits, target_index): ...
3
2,567
Twitter4j: getUserTimeline method sometimes returns http status code 405 when I call user timeline api continuously
<p>I am trying to get recent 1000 tweets of 2000 twitter users using Rest API's getUserTimeline() method. It works fine most of the times but some times it stops executing by returning http status code 405. The respose code is as follows</p> <pre><code>Failed to get timeline: Server returned HTTP response code: 405 fo...
3
1,627
Java AWT - Add a popupMenu to a Panel / Frame without Layout
<p>I need to create a GUI which has to provide a PopupMenu. I managed to do this but it only appears if I set the Layout null - In this case there is the problem, that none of my features appears only the popupmenu. I am not allowed to use Java.swing or something else.</p> <p>How do I manage to let the popupMenu appea...
3
2,530
Primefaces submit function and oncomplete doesn't work with p:wizard
<p>After i click a submit button within wizard component, the relevant function in backing beancan't be able to invoked.</p> <p>Then i try to put attribute "process" on that Submit button and it works. However the oncomplete function won't be invoked after the function in backing bean is finished.</p> <p>Anyone can h...
3
8,476
R loop to produce multiple summary tables and graphs
<p>what I want to do is to plot the percentage of observations with a specific value by the group. The following code produces a graph I want, but I want to do this same function over multiple variables instead of copying and pasting, and changing the variable name manually.</p> <p>The following is how my dataset looks...
3
1,376
using methods for program?
<p>So I did this hangman game, and it works perfectly fine, the only problem is that I want to use methods to organize everything.</p> <p>And yes, it is a school project. I tried my best but whenever I try to put a part of the program in a method it's as if I removed a variable and it underlines it in red.</p> <p>I r...
3
3,701
only centre second container
<p>i have a header-container and a quote-container within the body. I like the h1 element to be on the top left of the page and the quote-container in the center of the page.</p> <p>I applied display:flex to the body and both header-container and quote-container get centered.</p> <p>How can I center the quote-container...
3
1,846
Bluetooth RFCOMM socket is not writable while another socket is connecting (Linux, blueZ, C++)
<p>I am implementing a C++ program that communicates via Bluetooth RFCOMM with several different robots via bluetooth. In this communication scenario the robots are servers and my program consists of several clients.</p> <p>I implemented two threads: <strong>1.</strong> the ConnectThread connects to several servers vi...
3
3,510
Multithreading with async fuinctions to create new task, that do not wait other running task with python 3
<p>I have a several tools that every user can use it and I wrote them with python language. I worked with RabbitMQ message broker to get request from user and then start the task.So when each user send, request to server, the server handle all of incoming tasks in one loop (thread) as async and then wait all heavy proc...
3
1,053
Multiprocess wont execute simultaneously
<p>Ive checked this all sorts of ways, not sure why my various processes wont start and run at the same time there is no error to google as it does work for the most part </p> <pre><code> from multiprocessing import Process, Queue, Event #for threading class WebScraper(object): def __init__(self, pq, e): ...
3
1,106
Android attribute "xxxx" has already been defined
<p>I don't know if anyone know this library or have used it ( <a href="https://github.com/johnkil/Print" rel="nofollow">https://github.com/johnkil/Print</a> ) but the main ideea is to make <code>icons</code> from different <code>fonts</code>.</p> <p>I need it because I need to implement a library that use it ( <a href...
3
1,418
Multiple addresses in google maps? And overlay
<p>I am about to create a google map script, where i can set locations (not lat and lng) but locations in the google map, so it shows a picture on that location, and when mouseover it should open a overlay with picture + text.</p> <p>I have the script to show 1 address, but how to implementate more than 1? Like an arr...
3
1,182
EF in C# child record is deleted whe updating parent record
<p>When adding both parent and child records, the child record is ignored, and when updating a parent record, the child record is deleted if it exists.</p> <pre><code> public ItemResponse&lt;bool&gt; SyncUp(List&lt;DAL.Entities.Task&gt; Tasks, Guid UserClientID) { using (IUnitOfWork uow = new DAL.Data.Uni...
3
2,225
react-hook-form do not send PasswordConfirm
<p>Hello guys I'm using react-hook-form library it's really awesome library for me !</p> <p>but I have some problem at this time I don't want to send pwdConfirm value, cuz this value gets me 400 erros, so How can I send values without pwdConfirm ?</p> <p>I just only want to send id , pwd , nickname !</p> <pre><code> ...
3
1,562
Importing Blender obj file with mtl to ThreeJS
<p>I am trying to import an object file that I created in Blender to ThreeJS. My Blender project looks like this: <a href="https://i.stack.imgur.com/aYydr.jpg" rel="nofollow noreferrer">image</a></p> <p>I exported it into a waveform, for importing into ThreeJS I used MTLLoader and OBJLoader, here is my code:</p> <pre...
3
3,112
Applying a theme to AlertDialog Builder causes the title to not work correctly
<p>I am attempting to add a title to my AlertDialog Builder. When I add the theme, my title gets moves into the selection area. <br> Here is the first example:</p> <pre><code> classificationButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Al...
3
1,407
Submit form in to database using ajax in while loop
<p>I am trying to insert value in database through ajax. There rows which are coming in while loop from database. I have added one column in each row which have button. On click of button I am submitting the values in database its working fine.</p> <p>But problem is that it inserts value from first row only. Need help...
3
1,098
Create a list of all variables containing a certain pattern
<p>I am trying to create a list of all <code>varN</code> variables , where <code>N</code> is a number. Let's say I have 6 <code>varN</code> variables and I want to create a list <code>vars_lst</code> containing all the values belonging to the <code>varN</code>: </p> <pre><code>vars_lst = [var0, var1, var2, var3, var4,...
3
1,059
Symfony Form Events, but "data" not part of form's entity
<p>I'm trying to do the following process for a dynamic form:</p> <ol> <li>The user selects a school</li> <li>I then need to get all the "grades" linked to that school. </li> </ol> <p>What I'm trying to achieve with this form is create a new "Class" (as in school class), which is linked to a grade. The issue (I think...
3
1,637
iOS 4 bluetooth discovery doesn't work
<p>I'm reading "beginning iPad application development", and at the bluetooth chapter i'm testing the code exactly as it appears at the book. The only difference is that the book was for 3.2 and I'm using XCODE 4 for iOS >4.0.</p> <p>XCODE does not throw any error or warning, it builds correctly, but when testing at t...
3
1,223
Sidebar with bootstrap modal do not update
<p>I am new to ruby on rails, I have been recommended to using a sidebar so that on most pages it will show what I want. I currently have an application on its own page called Todo List. It simply let you create a task and displays the tasks. It runs on its own page. Now I want to move that app and let it function in m...
3
4,427
Unable to create thumbnail from video on iOS Safari - works on desktop (Javascript)
<p>I am having trouble getting code that works on Chrome desktop to work on iPhone. I've create a demo page (<a href="https://jsfiddle.net/0nryc7uf/" rel="nofollow noreferrer">https://jsfiddle.net/0nryc7uf/</a>) that allows users to select (or capture) a video. Once selected, the video is displayed in a video element...
3
1,379
How can I write if in query in laravel without breaking the chain and sequence
<p>I have the following query i need if statement in the query how can i do that. the following query gets the list of products based on manufacturers. If tried if after this query and then use get(); but that not work for me </p> <p>Query:</p> <pre><code> $productsFeatured = Product::select('products.low_emitting_m...
3
1,581
FCM Web convert Android webview
<p>Create an FCM reception using JavaScript Upload to IIS 10 and link with HTTPS Completed PC and mobile testing. Its address is <a href="https://car369.net/msg_test.ejs" rel="nofollow noreferrer">https://car369.net/msg_test.ejs</a></p> <p>We have both Android and Windows environments Try to convert to web view and dis...
3
3,027
How is the state of the entity being persisted between calls to EventSourcingHandlers?
<p>In the <a href="https://github.com/AxonIQ/giftcard-demo" rel="nofollow noreferrer">Axon Giftcard demo</a>, there is a <code>GiftCard</code> class which is annotated as @Aggregate:</p> <pre><code>@Aggregate @Profile("command") public class GiftCard { private final static Logger log = LoggerFactory.getLogger(Met...
3
1,405
How to Dynamically Call a Username in a File Directory with Python
<p>So I am trying to call a username inside of a python command to instantiate the Selenium Driver.</p> <pre class="lang-py prettyprint-override"><code># WebDriver Path for System if platform.system() == ('Windows'): browser = webdriver.Chrome(&quot;C:\Program Files (x86)\Google\Chrome\chromedriver.exe&quot;,option...
3
1,454
imagemagick trim the bottom from transparent PNG
<p>I am attempting to write an imagemagick command to trim the transparent pixels from the bottom of a transparent PNG. <a href="http://www.fmwconcepts.com/imagemagick/tidbits/image.php#trim_2sides" rel="nofollow noreferrer">I found these commands</a> and modified them to take off just the bottom. However the output is...
3
1,174
How can I generate a UI-grid table from a form?
<p>The goal here is to take the following form data sitting inside a bootstrap modal, and generate a UI-grid table based on the form elements (# columns, rows, Title, etc): <a href="https://i.stack.imgur.com/DkouU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DkouU.png" alt="enter image description...
3
1,750
Parsing JSON data and populating ListView
<p>I am getting issue while parsing json Data and populating list view. </p> <p>For an example below is the json data i am trying to parse and the rest of sample code which shows what i am trying to achieve.</p> <pre><code>[ { "id": 123, "name": "abcd", "department": { "name": ...
3
1,726
Clearing A Dynamic Linked List with a Single Stored Element Crashes Program
<p>For my scholastic assignment I have been given the task of creating a Dynamic Set ADT using linked list. My program is functioning properly, but when I attempt to clear a Set which only has a single element (ergo, single node)my program crashes.</p> <p>Here is how my linked list is defined:</p> <pre><code>typedef ...
3
1,289
Python 'py2exe' not working after following the tutorial
<p>I am trying to follow py2exe tutorial with 'Hello World' but run into errors. Here are my steps. Created <code>hello.py</code> as below:</p> <pre><code>print ('Hello World!') </code></pre> <p>Made sure it works:</p> <pre><code>D:\Users\test&gt;python hello.py Hello World! </code></pre> <p>Created <code>setup.py<...
3
1,115
modifying tibbles inside of a list of tibbles (and secondarily filtering list of tibbles by dimensional size)
<p>I'm trying to cleanup some <strong>scraped</strong> data.</p> <pre><code>a &lt;- read_html(&quot;Top Ten FRANKREICH 2021_2.html&quot;) %&gt;% html_nodes(&quot;table&quot;) %&gt;% html_table() #a &lt;- read_html(&quot;https://www.insidekino.de/BO/F2021.htm&quot;) %&gt;% html_nodes(&quot;table&quot;) %&gt;%...
3
4,439
How can I keep track of record number across multiple json objects in PHP
<p>I have an export of Customer Records that needed to be split up over several chunks of 500 records. I grab each chunk through a REST request, save it to my server:</p> <pre><code>public function createImportFile($json) { $filePath = storage_path().'/import/'.$this-&gt;getImportFileName($this-&gt;import-&gt;chu...
3
1,846
AngularJS 1.0.7 in html5Mode get 404 error when refresh page part 2 new error
<p>this is related to <a href="https://stackoverflow.com/questions/28611396/angularjs-1-0-7-in-html5mode-get-404-error-when-refresh-page">AngularJS 1.0.7 in html5Mode get 404 error when refresh page</a> . But, actually the problem I depicted in that post is fixed, but after that, new errors has come. So, I have marked ...
3
1,562
Why does this added UI button's event not get called?
<p>In developing a mod for Cities: Skylines, I have run across a problem.</p> <p>Most of my code, as far as I can tell, works fine - but so far, I haven't got to test it. This is because it should all get called in sequence when a button I have added to the UI gets clicked. The click event on this button is not callin...
3
1,262
Error Generating RSpec
<p>I've created a new Rails project directory and I have just edited the .gemfile; I'm working my way through Michael Hartl's tutorial. I have the revised .gemfile now in place. It states next to 'rails generate rspec:install' which I have ran in my command prompt; however, it now gives me the following errors:</p> ...
3
1,918
How do i access the properties of a many-to-many with Membership in Django
<p>How can i set only mine membership, instead of all in for-loop ?</p> <p>template.html:</p> <pre><code> {% for g in gr %} &lt;div class="jumbotron"&gt; &lt;div class="jumbo2"&gt; &lt;form method="POST" class="post-form"&gt; {% csrf_token %} &lt;p id="nam...
3
1,260
iOS App Crashes on every device except devices connected with Xcode
<p>My app crashes and quit when user try to register a new account but that occurs on any device except devices deployed the app with Xcode.</p> <p>All the devices are registered in the developer account and running iOS 11.4.1</p> <p>Here is the register button function:</p> <pre><code>@IBAction func regButton(_ sen...
3
1,665
memory leak in cell with UILabel with ARC
<p>Hi i have problem with my app with memory leak on UILabel in cells on table view. Every time if I enter to table view and back, memory rise with 2mb, and if I enter to that view again it rise with next 2mb. Why I know that is because of UILabel : - I checked it with profiler:zombies and - If I remove UILabels from c...
3
6,048
Unable to load the package 'enthought.mayavi.mlab'
<p>I'm trying to load the package enthought.mayavi.mlab in python's spider enviorment:</p> <pre><code>import enthought.mayavi.mlab as mlb </code></pre> <p>And I get the following error message:</p> <pre><code>Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "C:\Python27\lib...
3
1,369
Tkinter, functions over other classes
<p>I'm trying to understand more about classes. I want to play around with this example <a href="https://stackoverflow.com/questions/17466561/best-way-to-structure-a-tkinter-application">Best way to structure a tkinter application?</a> from Bryan Oakley. But now I have a problem, I want to make a simple <code>destroy</...
3
2,410
Switching from MVC to React. How do I write React correctly so that a table from the database is drawn on the page?
<p>Prompt when worked through MVC that created Models then controllers and returned them to Razor for display. Everything worked. Now you need to write an application in .Net Core + React. I don't understand how to pass a value to it for display.</p> <pre><code>public class TableController : Controller { List&lt;T...
3
1,272
Allow events to be dragged only onto background events
<p>I am managing appointments on <code>fullcalendar</code>. I have available slots of time where I can create new appointments. Also I can drag appointments onto available time slots which are shown as <strong>background events</strong>.</p> <p>I only want the drop functionality on background event slots.</p> <p>I ha...
3
1,243
TypeScript arguing that an interface is not compatible with generic type T, although T extends that interface
<p>I ran into a peculiar behaviour. Better explained by code below or following <a href="https://typescript-play.js.org/?target=2#code/HYQwtgpgzgDiDGEAEAFANiAnkg3gKCUKQgA8YB7AJwBckBLYaiSgMwWQCEQo74BJRszaJcBIuJiVyMAFxIQwTGMIBfPMuJkqteBihQkAdSoBrZriQbxAd1MAKAJRyuPfoNbtR470UoRqAK6UwBaS0nIARAASEGho5BFIaj6qGmoapBQ0SLrcBgBi5...
3
1,434
HALog - Connect and response times percentiles
<p>When I run the following command to parse haproxy logs, the output doesn't contain any headers, and I'm not able to understand the meanings of the numbers in each of the columns. </p> <p><strong>Command</strong> <code>halog -pct &lt; haproxy.log &gt; percentiles.txt</code></p> <p>the output that I see is: </p> <p...
3
1,104
Tensorflow weights stay at nan
<p>I am trying to code a basic logistic regression in tensorflow ( full code here <a href="http://pastebin.com/m6EwakjL" rel="nofollow">http://pastebin.com/m6EwakjL</a>) using my own data. The problem is that foreach batch run, all values in my weight stay at nan which causes all other calculations ( cost, etc ) to ( ...
3
1,131
Flutter Error :68:14: Error: Getter not found: 'context'. and Unhandled Exception: type 'Null' is not a subtype of type 'BuildContext'
<p>i didn't know what is the error means by that.but the thing is i want passing in my funtion of ShowDate Widget inside my Button function here is the code:</p> <pre><code>class AddTaskPage extends StatefulWidget { const AddTaskPage({Key? key}) : super(key: key); @override _AddTaskPageState createState() =&gt; ...
3
1,377
Trying to upload an image using laravel and vuejs
<p>I have my upload html form like this</p> <pre><code>&lt;div class="album_single_data settings_data"&gt; &lt;div class="album_single_img"&gt; &lt;figure class="thumbnail thumbnail-rounded"&gt; &lt;img class="m...
3
3,861
React- how to pass a state from one component to another
<p>I am trying to pass the value of &quot;value&quot; from AdminNavBar.js to Sentiment.js and replace the value in <strong>ticker</strong> variable. I am really new to React. it will be fine for any better approach as well.</p> <p>What I actually need is, Search for a ticket and that state will be passed on to Sentimen...
3
3,125
My code won't work in Chrome but works fine in JSFiddle
<p>So I am having a problem. I found a code of a carousel online which I tought was good. I tried to copy it into new html, css and js files, for so to open the file, but the carousel won't work in Chrome even though it works fine in JSFiddle and Codepin. </p> <p>It says that the code ( $(document).keydown(function(e)...
3
2,005
Information not sending over to Apple Watch on viewDidLoad
<p>I have an iOS app that has a watchOS extension, both of which are build in Objective-C. The app needs to send over an array when it loads up (<code>viewDidLoad</code>) or appears (<code>viewDidAppear:(BOOL)animated</code>). When the app loads up, nothing happens, but if I somehow add a file to the app (either throug...
3
1,203
How can I use SQL to get a variable value from a literal?
<p>Part 1</p> <pre><code>DECLARE @A INT DECLARE @B NVARCHAR(20) SET @A=123 SET @B='@A' </code></pre> <p>Part 2</p> <pre><code>DECLARE @SQL NVARCHAR(MAX) SET @SQL='SELECT ' + @B EXEC SP_EXECUTESQL @SQL --Should return 123 </code></pre> <p><strong>Directly referencing @A in non-dynamic SQL would not be acceptable f...
3
1,393
how to handle wcf errors using fault contract and jquery ajax
<p>I searched a lot in the internet but could not be able to find any solution for my problem.</p> <p><strong>Problem</strong></p> <p>I have created two applications. One is WCF service application and another one is the main application that consumes WCF service operations through jQuery Ajax. Everything is working ...
3
1,159
Is there a way to group browser-specific css3 animations?
<p>I want to make a CSS3 animation where a div gets a box shadow on mouse over, and loses it on mouse out. This is what I have so far:</p> <p>HTML:</p> <pre><code>&lt;div id="page"&gt; &lt;div id="container" onmouseover="mouseOverContainer()" onmouseout="mouseOutContainer()" class=""&gt; &lt;/div&gt; &lt;/di...
3
3,633
Fast loading and querying data in Python
<p>I am doing some data analysis in Python. I have ~15k financial products identified by ISIN code and ~15 columns of daily data for each of them. I would like to easily and quickly access the data given an ISIN code. </p> <p>The data is in a MySQL DB. On the Python side so far I have been working with Pandas DataFram...
3
1,301
Google App Engine dev_appserver.py IOError when importing apache_beam
<p>I have an App Engine application which breaks the moment I do</p> <pre><code>import apache_beam </code></pre> <p>I can confirm the dependencies are installed within the virtual environment the app runs in. Judging by the stack trace below it looks like it's trying to access /dev/null for some reason and it fails t...
3
1,024
Unable to connect to test.mosquito.org using Paho android client
<p>I am following some examples made by the Paho developers to learn how to apply the Paho Android Client library (<a href="https://github.com/eclipse/paho.mqtt.android" rel="nofollow noreferrer">https://github.com/eclipse/paho.mqtt.android</a>) since I am new to it. I have followed all the steps but after testing the ...
3
2,735
Nested Data Contract Exception in WCF - Cannot Implicitly convert Entity's model to model defined in DataContract
<p><strong>Problem Statement:</strong></p> <p>In my MVC 4 application,I have an index view(List View) where I'm bringing data from multiple tables. I'm able to bind the data to grid and fetch values.Now I'm converting the method involved in fetching the data from MVC controller to WCF method,where I'm facing problems ...
3
1,061
setting SQLite DataBase to TextView With ActionBar and AlertDialog
<p><a href="https://i.stack.imgur.com/8jYIs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8jYIs.png" alt="enter image description here"></a></p> <p>Here having detail (firstname, lastname, mobile, password, email id) that is stored in database.</p> <p>I set a list so that it will get my database ...
3
3,300
android.view.InflateException: Binary XML file & Out of memory on a ...byte allocation
<p>There is a Video-game app and when I test with Samsung N-8010(1024*768) and Galaxy S2(640*480) it works fine however with Note 3(1920*1080) logcat showing me inflating error and out of memory. I read others about this but none of them was helpful. Can someone find my problem and solution ?</p> <p>I need to cut my x...
3
12,557
KeyError when iterating through pytorch dataloader
<p>I am trying to build a model with pytorch, and I want to use a customized dataset. So, I have a <code>dataset.py</code> which defines a class, <code>MyData</code>, which is a subclass of <code>torch.utils.data.Dataset</code>. Here's the file.</p> <pre><code># dataset.py import torch from tqdm import tqdm import nump...
3
1,643
getting error: 'tuple' object has no attribute width' when creating qr scanner
<p>I know, there was answers, but I am new to python, and don't understand how to fix the problem.</p> <p>I was creating QR Code scanner and I copy code from: <a href="https://pastebin.com/C4r2uNCC" rel="nofollow noreferrer">https://pastebin.com/C4r2uNCC</a></p> <p>And I get these errors. I have Webcam plugged in. Th...
3
1,107
How to make a thrown object rotate automatically based on the direction its thrown in?
<p>so what I am trying to do is pull a spear back(like a slingshot) and send it flying, all the while making it rotate while it's flying in the air to mimic a real thrown spear. So far, I have only been able to make it rotate after a few seconds to a certain position but I can already tell that this isn't really a perm...
3
1,643
How to give hint in Java that two type parameters are actually the same type?
<p>I'm working with AOSP's <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest" rel="nofollow noreferrer"><code>CaptureRequest</code></a> and its associated <a href="https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.Builder" rel="nofollow noreferrer"><c...
3
1,397
Pandas concatenate levels in multiindex
<p>I do have following excel file:</p> <p><a href="https://i.stack.imgur.com/028Yd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/028Yd.png" alt="enter image description here"></a></p> <pre><code>{0: {0: nan, 1: nan, 2: nan, 3: 'A', 4: 'A', 5: 'B', 6: 'B', 7: 'C', 8: 'C'}, 1: {0: nan, 1: nan, 2: ...
3
1,728
HTML Multi Select Submit breaks when values alread added
<p>I found something strange, I have 2 selects columns. You can select values and push it to the second select using jquery. This works perfectly when I submit and my second select had no values.</p> <p>First Select field:</p> <pre><code>&lt;select style="width: 100%;" name="extensions" id="extensions" multiple="mult...
3
1,324
CarrierWave not uploading (after upgrade)
<p>A month back I upgraded my Ruby version on RoR-app from 1.9.3 to 2.3.3. I have been successfully using <code>fog</code> &amp; <code>carrierwave</code> to upload images to Amazon S3 before that but after the upgrade it stopped working. It does not upload my images to S3 any longer, the folders and files are not creat...
3
1,599
Insertion Sort Access / Usability Issues
<pre><code>SortedArrayList&lt;E extends Comparable&lt;? super E&gt;&gt; extends ArrayList&lt;E&gt; { public SortedArrayList(){ } public void insertionSort(E a){ for (int i=1; i&lt;this.size(); i++ ) { E value = this.get(i); int j; for (j = i; j &gt; 0; j--) { if (...
3
1,200
The Android App Bundle was not signed even after changing debug mode to release mode
<pre><code>def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -&gt; localProperties.load(reader) } } def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterR...
3
1,084
Aspect don't work on Scheduled, but it's work on HTTP
<h2>I show the code first:</h2> <pre><code>@Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface AopTest { } </code></pre> <pre><code>@Aspect @Component @Slf4j public class AopTestAspect { @Around(value = &quot;@annotation(aopTest)&quot;) public void aspect(Procee...
3
3,010
Formating problem Tailwind CSS - flex boxes too big
<p>I've got a small formating problem. My CSS makes too long boxes (while I'm using the same CSS/Tailwind in the first column as the second one). If i remove flex, the problem disappears, but the content is no longer in the same row.</p> <p>Here are some screenshots of the problem:</p> <p>First (with flex) <a href="htt...
3
3,573
unity freezes when my loop activates, and displays no error message
<p>ok, so i am making a script for my game that generates the composition of a silicate planet. it is not great code, as i am pretty new to coding, but here it is:</p> <pre><code>using UnityEngine; public class silicateComposition : MonoBehaviour { public GameObject noise; public int silicone; public int...
3
1,818
Error using Google Assistant Library with Raspberry Pi 3 and Python (Credentials not accepted)
<p>I successfully managed to get Google's Assistant working on my Raspberry Pi 3. It works by using </p> <pre><code>google-assistant-demo --d device_id1234 </code></pre> <p>Now I want to get access with python to turn on/off an LED when a certain command is recognized. Unfortunately the page I followed isn't free, so...
3
1,110
multiple inner joins adds extra values to count
<p>I am trying to include results from other tables in a <a href="https://stackoverflow.com/questions/53718429/calculate-standard-deviation-inside-pivot-table">previous</a> query using multiple joins below:</p> <pre><code>SELECT mid as mID, round((x.qty_sum / x.qty_count), 5) as qtAVG, ...
3
1,161
Delete Action seems not working in rails 3.2.1
<p>I have this problem . I am doing a program in Ruby on Rails 3.2.1 I use scaffold</p> <pre><code> 1)rails generate scaffold Article name:string description:text 2)rake db:migrate 3)rails server </code></pre> <p>When I click in destroy the javascript cartel does not appear and the page is directed to show method...
3
1,935
Multithreading with MVP & violation in Android
<p>I want to convert my project according to MVP structure, &amp; I had done it but it violate the MVP design, as it holds the activity instance in the presenter layer.</p> <p>So, I just wanted to know how can I convert this project into pure MVP. Here Validation class is recursive and validate many fields &amp; for h...
3
1,551
PCF Not firing updateview without Resize Browser
<p>Created a PCF control, working fine in harnes tool. After integrating to D365 , updateview()not being called. Once I click the developertool then it is working. If am not opening developer tool OR REsize the browser window, then updateview is not being called even though data changed.</p> <p>Onresetclick am calling ...
3
1,942
Remove lines between quad glyphs in Bokeh
<p>I am trying to create a 2D histogram with square bins (instead of hex elements) and I'm using quad to do so.</p> <p>First, I create a 2D histogram using numpy (not shown for brevity).</p> <p>Then I plot it using the quad glyph:</p> <pre><code> def plotHist2D(self,name): &quot;&quot;&quot; Creates ...
3
1,066
Spring MVC - 5.2.9.RELEASE with Mongo (spring-data-mongodb - 3.0.4.RELEASE) not working
<p><strong>While configuring the Mongo DB with Spring MVC (5.2.9.RELEASE) and deploying it to Tomcat 9.5 as WAR file it is giving me the follow error:</strong></p> <pre><code>Below is the stacktrace: Many thanks, I was able to resolve that, but now it is showing me error Caused by: org.springframework.beans.BeanInstant...
3
1,817
Error while import tensorflow
<p>I was working with tensorflow and keras for a while, and I was using tensorflow==1.4.1 version with CUDA toolkit 8.0 and cudnn 5.1 and it was working perfectly fine. But recently I wanted to install tensorforce, which requires me to install tensorflow 1.5 + So I decided to install lates tensorflow-gpu==1.8.0 as well...
3
2,086
Kony - Unable to store object in Memcache node
<p>I have integrated a simple service call in Kony, When I run my App on iOS simulator i cannot see any errors, instead in the middleware.log files I can see below error, Can anyone please help. </p> <pre><code> Logs X-Forwarded-For=null] 12:15:55,270 DEBUG factory.KonyAppFactory - Memcache is Enabled and Memcache...
3
1,538
Inserting Images in Specific Album on Picasa in iOS
<p>I am working with an iOS application in which i upload images on Picasa web albums from my iOS application.When i create album firstly i check whether any album with the same name exist or not so i fetch all the albums with their name and album id with the below code.</p> <pre><code>for (GDataEntryPhotoAlbum *album...
3
1,462
Display specific ads on first page Osclass
<p>I'm fairly new to PHP (or programming for that matter) and I've been stuck on an issue for some time now (my logic fails at the moment, please don't judge, I'm learning)</p> <p>I want to display only specific items on Premium ads. For example there should be ads from Cars, Real Estate but NOT from Dating, Tobacco an...
3
3,257
ListView not refreshing contents from database
<p>I'm trying to make a simple list with the ability to add new items to it, delete and modify them. The contents of the list should be saved in SQLite. My problem is the following: When I add a new item, the list isn't refreshing, and the item appears only after I exited the app, and open it again.I found a workaround...
3
1,311
In Concrete Class my ObjectOutputStream not work not showing correct Result
<p>My User Abstract class</p> <pre><code>package mainpkg; abstract public class User { public int id; public String name, email, mobile; public User() { } public User(int id, String name, String email, String mobile) { this.id = id; this.name = name; this...
3
1,649
Laravel modify array request
<p>im new using laravel and i get a problem. and there is my var_dump (post request)</p> <pre><code>+request: Symfony\Component\HttpFoundation\ParameterBag {#44 ▼ #parameters: array:12 [▼ &quot;_token&quot; =&gt; &quot;R1fnZMtNA55fy1plkTuztuhMZ1ExvkSw01GJq4rN&quot; &quot;spg&quot; =&gt; &quot;test&quot; &quot;nam...
3
1,357
how to debug midi output device using pygames
<p>I'm using a <a href="http://www.behringer.com/EN/Products/BCF2000.aspx" rel="nofollow">BCF2000 Behringer fader</a> as input to control a robot using ROS. Everything was working fine, but suddenly it stopped working. By suddenly I mean after I got to word after a week off. I need to know if it's a hardware or softwar...
3
2,234
How to manipulate SQL Data
<p>I have set of query like below but the result are not like i want</p> <pre><code>SELECT * INTO #Temp FROM (SELECT Product,PeriodNum,OpenBal,Month Qty,0 as OnHandQty FROM StockTransaction WHERE Company = 1 AND FiscalYear = 2016 AND ...
3
1,144
Multi selection in recyclerview is not working
<p>Long click on row of recyclerview is not entered in onClick() I dont understand what is wrong with my code.Following are my MainActivity, adapter and row of my recyclerview which is made using cardview.</p> <p>Following is my MainActivity.java</p> <pre><code>public class MainActivity extends AppCompatActivity impl...
3
10,854
Apples's Scrolling Example Crashes
<p>I am trying to run the <a href="http://developer.apple.com/library/ios/#samplecode/Scrolling/Introduction/Intro.html" rel="nofollow">Apple's Scrolling Sample Code</a>, but I get following Error:</p> <pre><code>Scrolling[45877:207] Unknown class ScrollingAppDelegate in Interface Builder file. Scrolling[45877:207] Un...
3
1,544
How can I catch asyncio.exceptions.InvalidStateError from dns.asyncresolver.Resolver?
<p>I'm running a load of DNS lookups through dns.asyncresolver and around 0.05% of them are throwing:</p> <pre><code>Exception in callback _SelectorDatagramTransport._read_ready() handle: &lt;Handle _SelectorDatagramTransport._read_ready()&gt; Traceback (most recent call last): File &quot;/usr/lib/python3.8/asyncio/e...
3
1,324
How to get the sum of number from an array of objects, using pure JS?
<p>I want to show the <strong>total number of Likes</strong> using only pure JS. I grabbed the numbers from the JSON file but I don't know how to get the Total number of likes, I tried to use <strong>reduce</strong> method it didn't work maybe i am doing in the wron way</p> <p>This is what I want to do <a href="https:/...
3
1,820
error with using memcpy
<p>I try to connect c++ to matlab for figure function. for the example </p> <pre><code>Engine *m_pEngine; m_pEngine = engOpen("null"); //open matlab engine const int arraysize = 1000; const double degTorad = .0174; double SinArray[arraysize]; double CosArray[arraysize]; double Degrees[arraysize]; for (int iii = 0; ...
3
2,010
Rails admin, link to /admin doesn't work with HEROKU
<p>I'm using a HEROKU server to test my app in rails, in localhost everything is ok and my route to "localhost/admin" work ok, but when I sent my app to heroku the route to /admin doesn't work!!</p> <p>My route.rb:</p> <pre><code>Rails.application.routes.draw do devise_for :users mount RailsAdmin::Engine =&gt; '/...
3
11,417
Solution for Contact Saving is not working on iPhone 5 Device
<p>I am using copy and paste solution for saving Contacts into Address Book on iOS 6 but solution posted in docs for Contact saving in Titanium (Appcelerator) isnt working,</p> <pre><code> if (Ti.Contacts.contactsAuthorization == Ti.Contacts.AUTHORIZATION_AUTHORIZED){ Ti.API.info('Saving contact...'); ...
3
1,667
Items not showing up in my view cart page
<p>I am trying to create an e-commerce website for the school project that fetches information from a database I created. Unfortunately this was the code we were partially given and I can't get the items added to the shopping cart to show in the check out page.</p> <p>Here is the code for the main page </p> <pre><cod...
3
3,598
Download a File through Django-Filer instead of Redirect
<p>I am making a file serving system that organizes different files based on categories. Once a user finds the file they need, they click a download button and it downloads it. These files are of all different kinds pdf, ai, video, etc. I was using the download attribute on HTML and it was working find locally but then...
3
1,160