title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to incorporate a flask_wtf form into a Bootstrap form? | <p>I am trying to create a simple sign-in/out website, but I don't know how to use Bootstrap with Flask effectively. I have only just started using Bootstrap, so I am new to how it works exactly, and web development in general.</p>
<p>Below is the <code>flask_wtf</code> form I am using:</p>
<pre class="lang-html pretty... | 2 | 1,044 |
mvn clean compile package is not including src/main/java files in the build | <p>I have generated jar files before with maven and never faced this strange issue which I am facing with my current project.</p>
<p>It's a spring project having following <code>pom.xml</code>:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:... | 2 | 4,428 |
Excel VBA - Entering Filter into Pivot Table returning Object Required | <p>I have some VBA code which is set up to look up a dynamic (changing) table of data, the code then changes the range to fit into pivot tables, and refreshes the pivot tables based on the new range.</p>
<p>The code works until it reaches the part where it needs to apply a filter. I have a date value which I have dec... | 2 | 1,196 |
Recover data from ibdata1 file only | <p>As shown question title, it is clear that I want to recover data from ibdata1 file. I had installed mysql in ubuntu system and corrupted around 189GB database. Now database is not gonna up and triggering millions of innodb log sequence number error. </p>
<p>Error </p>
<blockquote>
<p>70925 14:14:34 InnoDB: Err... | 2 | 2,337 |
Game of Life array edges acting weird | <p>I saw Conway's Game of Life and decided to make my own.
I have a bool array to represent the world, but the edges (Top and bottom) are acting weird, random cells becomes live.</p>
<p>In this code, it does not print the bottom and top of the world, but this is a bad solution.
The world "wraps" at the right and the l... | 2 | 2,198 |
to replace a word from data accessed from file | <p>My job is to replace all the occurences of <strong>Bond</strong> with <strong>Hound</strong>. I have tried the following code.</p>
<pre><code>import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class ... | 2 | 1,355 |
Speeding up a Postgres query on millions of rows? | <p>I am using Postgres 9.4. I have a large table. This is the structure of my table: </p>
<pre><code> processing_date | date |
practice_id | character varying(6) |
chemical_id | character varying(9) |
items | bigint |
cost | double precision |
Indexes:... | 2 | 1,140 |
the selectedindex and selectedvalue attributes are mutually exclusive exception? | <pre><code>protected void ddlbranchdate_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
DataTable dtgetvalues = new DataTable();
//objRetailPL.date = Convert.ToDateTime(hdndate.Value);
objRetailPL.branchdate = ddlbranchdate.SelectedItem.ToString();
dtgetvalues = objRetai... | 2 | 1,430 |
Retrieve data from SQLite in RecyclerView inside fragment | <p>I have an activity that contain custom <code>Tablayout</code>.</p>
<p>the <code>Tablayot</code> has <code>pageViewer</code> and link to a fragment.</p>
<p>I want to show data from my <code>SQLite</code> database in <code>RecyclerView</code> in fragment.</p>
<p>this is my codes:</p>
<p>DatabaseHelper.java:</p>
<... | 2 | 2,100 |
Best practice to manipulate hci0 with bluez and advertising | <p>Several questions about this wonderful duo <em>btmgmt/bluetoothctl</em> on a peripheral device with bluez 5.55.</p>
<p>Is it normal that the return code from <em>btmgmt</em> is almost always 0 even if there is an error? I check the code and it seems to be the expected behaviour. But I don't understand why...</p>
<pr... | 2 | 1,560 |
How can I check if there are conflicts for recurring events using Apps Script? | <p>I would like to write a Google Apps Script that will check if there are any conflicts for a recurring events before I send it to Google Calendar from a Google Sheet.</p>
<p>I am able to check on the first date using:</p>
<pre><code>var ConTimes = calendarAll.getEvents(startDate, endDate, {search: roomNumber});
Log... | 2 | 1,677 |
dJango mod_wsgi config issue in Apache | <p>I am trying to run a dJango(1.5) application with Apache (2.4) and mod_wsgi. I have followed the standard tutorial. I have also run apache user and group as the file owner(myself) and the group. After I hit an url, it waits for long and then gives Gateway Timeout. Apache hits wsgi.py and upto settings.py as I am see... | 2 | 1,279 |
What's wrong with my syntax highlighting grammar injection? | <p>I am following <a href="https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example/blob/master/syntaxes/codeblock.json" rel="nofollow noreferrer">this example</a> for a simple grammar injection in markdown.</p>
<pre class="lang-json prettyprint-override"><code>{
"fileTypes": [],
"injectionS... | 2 | 1,637 |
Stripping all qualifiers from a function type | <p>Given a possibly varargs function type with possibly a <em>cv-qualifier-seq</em> and possibly a <em>ref-qualifier</em>, is it possible to write a type trait that strips all the qualifiers without writing 4 * 3 * 2 = 24 partial specializations?</p>
<pre><code>template<class T>
struct strip_function_qualifiers;... | 2 | 1,243 |
onActivityResult not getting called when calling java activity from kotlin for result | <p>I am using Kotlin and Java in my project. I am opening a Java activity for result from Kotlin but the <code>onActivityResult</code> function written in Kotlin never gets called.</p>
<p>Code (Kotlin):</p>
<pre><code> override fun viewAllNotes() {
val intent : Intent = Intent(this, ViewAllNotesActivity::clas... | 2 | 2,017 |
Alternative to using loop to make code run faster | <p>I have 2 questions, the first one is about an excel formula that i can't replicate in VBA even though i've used the record macro to retrieve the formula, the second comes because i couldnt solve my first question and is about code efficiency:
Basically in the cell AR2 i'm putting an excel formula : </p>
<pre><code>... | 2 | 1,512 |
Open XML get cells by Column index C# | <p>I have found the index of the columns that I want to put into a string to be added to a data grid. I am not sure how to use the index value in Open XML to find the cells that I want.</p>
<pre><code> bool headerIndexComplete = false;
int a1141Index = -1;
int NacIndex = -1;
string file... | 2 | 1,031 |
django.db.utils.ProgrammingError: relation does not exist LINE 1 | <p>I encountered an issue while migrating a DB using django:</p>
<blockquote>
<p>Traceback (most recent call last): File
"C:\Users\rroct\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\db\backends\utils.py",
line 84, in _execute
return self.cursor.execute(sql, params) psycopg2.errors.Unde... | 2 | 9,921 |
Get values out of data from NSJSONSerialization | <p>I have some JSON data which is pulled from a URL. The code I have written works fine to download the JSON and parse it, but I cannot seem to access it how I need too, especially where the data is contained as a sub-element of another one.</p>
<p>Here is the JSON format:</p>
<pre><code>{
address = "<null>... | 2 | 1,501 |
Null Exception error when executing Cypher query from Java code. (Neo4J) | <p>I have been digging into Neo4j 2.0 GA release and learning to work with it in a sample Java application. I am using a standalone Neo4j db and connecting to it via the java rest bindings from the neo4j-rest-graphdb:2.0.0 dependency jar. Below in the code I am working with...</p>
<pre><code>import org.apache.log4j.Lo... | 2 | 2,438 |
How can I ensure that Windows 2008 R2 will pass the SERVICE_CONTROL_PRESHUTDOWN control notification to a service | <p>I'm writing a service using plain C++ and the windows API and want it to receive the PRESHUTDOWN notifications which are available from Windows 2008 R2.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms685996(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desk... | 2 | 2,562 |
Spring Cloud Gateway - opaque tokens | <p>I'm currently looking at implementing an API Gateway using Spring Cloud Gateway. There will be some React clients to the APIs and also some devices. The devices will be granted access using OAuth device_code grant.
The API gateway will pass JWT to back end resource API servers, which will validate the request. I hav... | 2 | 2,093 |
Dynamically Make ComboBox Visible on Worksheet Change - VBA 2007 | <p>I created a userform with a multipage. On one of the multipages I have a combination of <strong><em>TextBoxes</em></strong> and <strong><em>ComboBoxes</em></strong>. There are a total of <strong><em>9</em></strong> Boxes next to each other. They are all control sourced to the excel sheet behind it. When a user e... | 2 | 1,351 |
count total items in a multidimensional array | <p>How can I count the total items in this array below?</p>
<pre><code>Array
(
[upload] => Array
(
[name] => Array
(
[0] => 1024x768.jpg
[1] => 1280x800.jpg
[2] => 1280x1024.jpg
[3] =&... | 2 | 1,156 |
Flip the GraphicsPath that draws the text/string | <p>I have this method in my Text Class and I can't seem to flip the whole text.<br>
I am using a Matrix to transform the <code>GraphicsPath</code> which is used to draw the string.</p>
<p>Here's the code since I used @Jimi's answer:</p>
<pre><code> public LayerClass DrawString(LayerClass.Type _text, string text, R... | 2 | 1,687 |
Nginx as load balancer for application using Kerberos | <p>I'm currently using nginx as a load balancer for a tomcat app thats located on two different servers. That app uses NTLM for authentication and nginx is working perfectly fine (valid users are automatically logged in when calling the nginx address).</p>
<p>Now I'd like to do the same for an app that is using Kerber... | 2 | 1,074 |
MySQL / PHP - Conversation System | <p>I'm having a really hard time figuring this one out. I am trying to make a conversation system and it would work like this:</p>
<p>A logged in user would have a link to "conversations". On that page a list of all conversation.titles would show up. When a conversation-name is clicked the conversation messages (mostl... | 2 | 1,656 |
Infobubble tabs not resetting when a new marker is clicked | <p>I'm using api V3's infobubble with tabs. Everything works great with the first marker, 3 tabs show up with the correct data. then you click another marker and the first markers tabs with the data show up along with the new markers 3 tabs, so you end up with 6 tabs when you click the second marker. When you click the... | 2 | 6,145 |
JHipster with MySQL back-end fails on first start with "table does not comply with the requirements by an external plugin" | <p>I'm getting the following error when I try to start a new JHipster app using MySQL as the database:</p>
<pre><code>2019-07-30 09:55:40.583 ERROR 35895 --- [-service-task-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Liquibase could not start correctly, your database is NOT ready: The table does not comply with the ... | 2 | 1,611 |
Node.js Beginner - Can't get past nodetuts tutorial number 2 - stdout and child process | <p>I was trying to go through the tutorial <a href="http://nodetuts.com/tutorials/2-webtail-nodejs-child-processes-and-http-chunked-encoding.html#video" rel="nofollow noreferrer">nodetuts.com - tutorial 2</a> and unfortunatly could not get the example working, I'm very new to node.js and going through any tutorials I c... | 2 | 1,026 |
Bootstrap-vue modal: Always Deleting the Last ID | <p>I have a jobs page in my app where I am trying to delete the job by using its ID every time I try to delete the Job it is deleting the last id in the list it is not deleting the id which is selected here I am using REST API to perform the delete operation I also checked the ID when it is deleting by printing it to c... | 2 | 2,530 |
SQLITE 3 install error | <p>I'm a total noob on trying to install things through Command line. I recently installed Node (the most recent version, under version id 9.20). I am in the middle of trying to install /setup GECKO for auto trading. And it requires installing SQLite3. I'm following the directions to setup gecko from this link:</p>... | 2 | 2,470 |
RSA encoding in PyCrypto vs C -- RSA_PKCS1_PADDING | <p>I was under the impression that PyCrypto was a direct wrapper of OpenSSL, but I seem to be getting unexpected results. I wrote a simple test in C;</p>
<pre><code>int main() {
const unsigned char test[] = "TEST_TEST_TEST";
FILE *privateFile = fopen("private.pem", "r");
RSA *privateRsa = PEM_read_RSAPriva... | 2 | 2,717 |
Filter array results on keyup | <p>I have an array of names that I loop over using <code>v-for</code> I'm trying to filter these results when a user starts typing in a search box. </p>
<p>I've added my code below for reference if I do my loop as <code>v-for="entry in entries"</code> then it output the array but doesn't work with the computed and fil... | 2 | 1,210 |
fork() and execvp() commands in c | <p>I am writing a C program. All code is in while loop but I did not add it yet. It takes input from user like start <code>ls -l</code> and run <code>ls -l</code>. And wait new command. If user write "wait" and there is a process that is not end, It waits until the child process is completed and print child process id ... | 2 | 1,514 |
Elasticsearch index size is 40% larger in 5.x than in 1.x | <p>I have an old cluster running Elasticsearch <code>1.4.4</code>.
My cluster is containing ~11 billion documents and the size of all primaries is around <code>4TB</code>.</p>
<p>I am now in the process of upgrading to Elasticsearch <code>5.2.2</code>, which of course means reindexing my data. I have a separate clust... | 2 | 2,399 |
How to properly sign AWS Requests with Signature Version 4 in Java? | <p>I am looking to send a job request over to Elemental MediaConvert on AWS and I was reading up on how you need to request an endpoint specifically for your account and region, so I did and now I have that custom endpoint. I went through the process of signing my request to this endpoint that is shown <a href="https:/... | 2 | 2,329 |
ggplot2: Adding fill aesthetic to smooth geom inside stat_summary | <p>I have what I think is a version of <a href="https://stackoverflow.com/questions/29594799/remove-data-points-when-using-stat-summary-to-generate-mean-and-confidence-band">remove data points when using stat_summary to generate mean and confidence band</a> or <a href="https://stackoverflow.com/questions/21817856/how-t... | 2 | 1,585 |
Vaadin with JQuery FileUpload | <p>I would like to create <em>FileUploader</em> with <strong>Vaadin</strong> . But I need to get more features over <a href="http://demo.vaadin.com/sampler/#ui/data-input/other/upload" rel="nofollow">normal Vaadin Upload</a>. </p>
<ol>
<li>beautiful and easy to manage (but optional)</li>
<li>fast and never failed whi... | 2 | 7,420 |
Use SQL data for flot chart with C# and ASP | <p>I am new to flot charts and more a SQL guy than a C# programmer. I am attempting to have a bar chart reflect monthly sales. I can't seem to get my data through to the chart. I have been searching all over for a direct answer on getting this to work and have had zero luck after 4 days. Here is what the stored pro... | 2 | 1,594 |
Android App wants Access to "/Data" Folder | <p>I want to stream AAC encoded audio Data from my Raspberry to my Android Phone.
The part of receiving the data works well but there are some problems with decoding it. </p>
<p>I use Media Extractor and Media Codec to decode the audio data.
Here is the important part of the code:</p>
<pre><code>MediaExtractor extra... | 2 | 1,685 |
OSGI Pax Exam simple test running on maven but not on IDE | <p>I am doing a very simple Pax Exam test.</p>
<p>While running it with maven "mvn verify", it is success.
While running it with my IDE, I get the following error.</p>
<p>Anyone know if I am missing a jar or is this a bug ? </p>
<p>Thanks,</p>
<pre><code>java.lang.Exception: No tests found matching Method checkBund... | 2 | 2,226 |
Boost TCP server crash when client disconnects while server performs asio::write operation | <p>Just to test my server, I've created 100 requests using a for loop from my client side and while my server is writing response for the Nth request I deliberately pressed control+c from the client, Thats it. The server stops and has gone unresponsive although I try connecting it using a new connection, can any one ad... | 2 | 3,923 |
Custom Adapter getting Null Context from Fragment | <p>I am working with Tab Layout. I am getting the data from live DB to show the information in listview. For that I am using CustomAdapter. The value which in the arraylist is getting properly. Once the Arraylist data you passed to CustomAdapter then the Context getting null exception. How to pass the context of Fragme... | 2 | 1,554 |
How do I set the text and background color of an single static control c++? | <p>I have managed to set the colors of static and edit
controls when I set all of them to the same color, but I cant figure out how
to set the color of just one without affecting the others. I've looked around on the internet but none of the things I find are about how to set color of just one
static or edit control. H... | 2 | 1,263 |
Why does my HashMap.get returns null value even after putting proper key,value? | <p>I am trying to retrieve some values from a Hash Map, before returning the value I am checking if the key is present in the map or not, and this check always fails which results in null value. I have overridden hash Code and equals method as well. Could someone tell me what I am doing wrong here?</p>
<p>class fields... | 2 | 1,172 |
SwiftUI with Xcode 11 beta 7 not updating contents of List / ForEach | <p>I've been trying a simple feature to add new entries to a List. The View will just add a new generated. item (no need for user input).</p>
<pre><code>struct PeopleList: View {
@ObservedObject var people: PersonStore
var body: some View {
NavigationView {
VStack {
Section {
Bu... | 2 | 1,401 |
Customizing error messages for symfony valid constraint with collection type | <p>I have a symfony form with <code>Collection Type</code></p>
<p>Parent Form </p>
<pre><code>->add('items',
CollectionType::class,
array('entry_type'=>PurchaseOrderRawMaterialType::class,
'allow_add'=>true,
'constraints'=>array(new Valid()),
'entry_options'=>array('type... | 2 | 1,310 |
Provide method to handle GET on a Loopback model, whose db is null and base class is 'Model' | <h2>RESOLVED. MY BAD.</h2>
<p>Skip to the end of this post, and change <a href="http://localhost:3000/api/Setan/getXid/1" rel="nofollow noreferrer">http://localhost:3000/api/Setan/getXid/1</a> to <a href="http://localhost:3000/api/Setans/getXid/1" rel="nofollow noreferrer">http://localhost:3000/api/Setans/getXid/1</a>... | 2 | 2,017 |
how to undo pictureBox drawline C# windows form using Microsoft Visual Studio | <p>And trying get working small paint application, that draws only lines with mouse event.</p>
<p>Could someone provide me with correct working example how to create undo functionality?
I have picturebox1 with Events pictureBox1_MouseDown, pictureBox1_MouseMove, pictureBox1_MouseUp.</p>
<p>When I moving mouse and an... | 2 | 1,242 |
Randomly select all form fields values and fill out form - JS or jQuery - Not sure which | <p>I have a form and for testing I want to have a button to automatically fill out all fields randomly in each group, for checkboxes and radios just select one randomly from each group type deal. Most of the forms are quite large and for testing purposes it's getting to be a pain in the butt to select items all the tim... | 2 | 2,155 |
How to show a container for 3 seconds | <p>I have a container in which there are 2 fields. 1 is a percentage and the other is simple Text. What I need is I don't want to show the percentage container and when I click on the container it will show the percentage for 3 seconds only and then disappear, Can anyone please tell how it's possible? </p>
<p>Here is ... | 2 | 1,561 |
iOS 8 - NSProgress object with fractionCompleted = 1.0 created by NSURLSessionDownloadTask before even resuming the task | <p>I have a tree of NSProgress objects to monitor data processing which involves downloading files. Downloading is done using NSURLSession with background configuration.</p>
<p>When I start the process, the topmost NSProgress object reports unexpected fractionCompleted figures. Having debugged the issue (and isolating... | 2 | 1,132 |
Object must implement IConvertible using ASP.NET | <p>i'm experiencing this error called Object must implement IConvertible.
please help me!
i think it is because of the drop down list for user type. even if i delete / comment out the drop down list i am still experiencing this error.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
u... | 2 | 1,377 |
Ansible time out on Vagrant | <p>I have been trying to use my YML file on the Vagrant box I built, which is CentOS. However, I am running into this timeout at ALL times:</p>
<pre><code>ryan@ryan-Galago-UltraPro:~/Desktop/vagrant$ vagrant provision
[default] Running provisioner: ansible...
PLAY [Show off some basic Ansible features] **************... | 2 | 1,374 |
Error: The root route must render a single element Re | <p>I am new all around React and i am trying to using a simple tutorial for login and signup. currently the server is up but in the browser i get the follwing erros and warnings:</p>
<pre><code> Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
Warni... | 2 | 1,609 |
Swing: How to provide delay on opening menu from menu-bar/submenu | <p>I have an application with a vertical menu bar and lots of submenus. My problem is: submenu goes open immediately after entering by mouse over the corresponded label in parent menu/menu bar. But I need one second delay.</p>
<p>Here is one example:</p>
<p><a href="https://i.stack.imgur.com/9hMW3.png" rel="nofollow ... | 2 | 1,219 |
ews-java-api create new appointment | <p>I want to create a simple java program that creates a new appointment for my outlook calendar, but I don't know what went wrong.</p>
<p>I also tried to send a simple email but it gives the same error.</p>
<p>source code: <a href="https://github.com/OfficeDev/ews-java-api/wiki/Getting-Started-Guide" rel="nofollow n... | 2 | 1,065 |
Fabric JS not functioning in Angular JS | <p>I am trying to do canvas manipulation with Fabric.js in an Angular.js application, and I can't even get the very basics working. I am just trying to set the background image, but at this point, I can't get that or even basic objects to show up on the canvas. I would really like that background image to be resized ... | 2 | 1,578 |
Why sklearn RandomForest model take a lot of disk space after save? | <p>I am saving RandomForestClassifier model from sklearn library with code below</p>
<pre><code>with open('/tmp/rf.model', 'wb') as f:
cPickle.dump(RF_model, f)
</code></pre>
<p>It takes a lot of space on my hard drive. There are only 50 trees in the model, however it takes over 50 MB on disk (analyzed dataset is... | 2 | 1,085 |
Subscribing to COM Events with Com4j | <p>I'm trying to hook into a proprietary network stack from Java. The stack is provided by a COM object, and I've managed to hook into it using com4j. Unfortunately, the network stack is event-based, so I need my code to issue requests and subscribe to events that provide the responses.</p>
<p>Every time I try to subs... | 2 | 1,238 |
Update DataGrid cell if other cell changes | <p>I have a View that displays a Part. All parts contain a list of identifiers. In my View I display Part Properties and a DataGrid with all the Identifiers of that part.</p>
<p>Now if I change a value of an identifier, I want another value update to the default. But if I change my identifier value and set the default... | 2 | 1,263 |
Log4j2 WebLookup | <p>I'm using log4j2 (2.0.2) in a servlet 3.0 web application, running in Tomcat 8.0.12. I'm trying to use the weblookup to get the web app context path to use as part of the log file name. (We run the same war file under several different contexts using properties to configure it).</p>
<p>The log4j2.xml file includes<... | 2 | 1,653 |
NDIS filter driver' FilterReceiveNetBufferLists handler isn't called | <p>I am developing an NDIS filter driver, and I fount its <code>FilterReceiveNetBufferLists</code> is never called (the network is blocked) under certain condition (like open Wireshark or click the "Interface List" button of it). But When I start the capturing, the <code>FilterReceiveNetBufferLists</code> get to be nor... | 2 | 5,816 |
Use R to push local repo to github on Windows | <p>I once asked a very <a href="https://stackoverflow.com/questions/14912161/repo-from-rstudio-to-github">similar question</a> and got a response that worked from the command line but am now wanting to use R to automate the process from Windows (Linux is much easier). </p>
<p>Here is what I'm trying to do:</p>
<ol>
... | 2 | 1,698 |
Using both Response.Filter and BufferOutput=true in an ASP.NET MVC action causes a ZLibException | <p>I have an ASP.NET MVC action that does the following:</p>
<pre><code>public ActionResult Index()
{
/* assuming the client supports gzip since the error doesn't happen without it */
Response.Filter = new GZipStream(Response.Filter, CompressionMode.Compress);
Response.AppendHeader("Content-Encoding", "gzi... | 2 | 1,644 |
The variable _ is either undeclared or was never assigned error | <p>I'm using Visual Studio 2017 and I've encountered this error everytime I try to open the <code>NewComponentForm.cs[Design]</code>.</p>
<p>I've looked up this error and everyone says that you should clean your solution and rebuild and restart the VS application. In my case it didn't help at all.</p>
<p>So this is s... | 2 | 1,875 |
PL/SQL : Need to compare data for every field in a table in plsql | <p>I need to create a procedure which will take collection as an input and compare the data with staging table data row by row for every field (approx 50 columns).</p>
<p>Business logic :</p>
<ol>
<li><p>whenever a staging table column value will mismatch with the corresponding collection variable value then i need t... | 2 | 1,156 |
Read Multiframe DICOM images using ITK | <p>I can read single frame DICOM images fine. But I am not sure how to go about reading a multi frame DICOM file, which say, has multiple images in a single DICOM file. Here is the code I use to read single frame DICOM. I am thinking along the lines that the image buffer loaded (imageBuf) should be divided into as many... | 2 | 1,103 |
Guessing random radio buttons | <p>So far I've got the random number and radio buttons working, my specific questions is how to show the actual answer if the user guess wrong. I would show this on labelOutput in the if/else statement. Also I would like to give a hint as to the actual number before the person guess buy saying even or odd at labelHint.... | 2 | 1,111 |
Touch, and drag/drop events are broken when importing calendar with webpack | <p>The calendar still loads, however it just spits out an error as soon as you attempt to click or drag on something:</p>
<blockquote>
<p>Uncaught TypeError: Cannot set property 'isAnimating' of undefined</p>
</blockquote>
<p>I've initialized the calendar using the following code, the calendar loads, with some issu... | 2 | 4,263 |
tensorflow-gpu ValueError: Unknown layer: Functional | <p>I'm trying to load a model from a .h5 file(trained by mobilenetv2).</p>
<pre><code>from tensorflow.keras import models
class Classifier(object):
def __init__(self, model_path):
self.model = models.load_model(model_path)
</code></pre>
<p>Code of my model:</p>
<pre><code>model_pre = keras.applications.Mob... | 2 | 1,057 |
"RuntimeError: The array return by func must be one-dimensional, but got ndim=2." | <p>I want to solve this 3-3 differential equation system using odeint, and I get this error: </p>
<pre><code>Traceback (most recent call last):
File "/home/spyros/Documents/Spyros/Diplwmatiki/ROS/Serial connection/Dynamic_problem.py", line 81, in <module>
u = odeint(subsystem2,u0,t)
File "/usr/local/lib/... | 2 | 1,368 |
How can I use an SQL Pivot for this? | <p>I have a data set that is organized in the following manner:</p>
<pre><code>Timestamp|A0001|A0002|A0003|A0004|B0001|B0002|B0003|B0004 ...
---------+-----+-----+-----+-----+-----+-----+-----+-----
2008-1-1 | 1 | 2 | 10 | 6 | 20 | 35 | 300 | 8
2008-1-2 | 5 | 2 | 9 | 3 | 50 | 38 | 290 | 2
2008... | 2 | 1,403 |
Magento Load Categories in Admin order | <p>I'm trying to load all of the categories that are marked to be included in the navigation in Magento in the same order as they are in the Admin panel in order build a custom layered menu (we combine the output with another menu stored in the DB to other pages). </p>
<p>This is what I am using in the function to gen... | 2 | 2,058 |
MySQL chooses completely wrong index | <p>For some reason, MySQL chooses completely wrong indexes. It feels like it doesn't check which index is the best for the query.</p>
<p>Some indexes on the contacts table:</p>
<pre><code>+----------+------------+---------------------------------------+--------------+------------------+-----------+-------------+-----... | 2 | 6,333 |
How can I correct error "Unable to find vcvarsall.bat on python 3.5" in "pip numpy" command? | <p>WIN 10 64BIT,PYTHON 3.5</p>
<p>When i try install numpy or any other package with pip rises this error:</p>
<pre><code>C:\Users\MyUser>pip install numpy
Collecting numpy
Using cached numpy-1.10.1.tar.gz
Installing collected packages: numpy
Running setup.py install for numpy
Complete output from command c:\u... | 2 | 3,721 |
Multiple Future calls in an Actor's receive method | <p>I'm trying to make two external calls (to a Redis database) inside an Actor's <code>receive</code> method. Both calls return a <code>Future</code> and I need the result of the first <code>Future</code> inside the second.
I'm wrapping both calls inside a Redis transaction to avoid anyone else from modifying the valu... | 2 | 1,489 |
Firebase App is crashing | <p>I'm following this tutorial:- <a href="https://www.youtube.com/watch?v=x0ScnHJi8WY" rel="nofollow noreferrer">https://www.youtube.com/watch?v=x0ScnHJi8WY</a>
and I don't know, why my app is crashing</p>
<p><strong>activity_main.xml</strong></p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<Relati... | 2 | 8,705 |
mysql process constantly overload | <p>i properly asking a question that do not have an answer, but i am out of resources and have to try any mean that possible to have a way to solve this problem. first off. i ain't programmer, i just an online store staff that assign to deal with the server and stuff like that. i have basic knowledge to cpanel, whm, bu... | 2 | 1,111 |
Creating a CKAN package/dataset with resources using ckanapi and Python | <p>CKAN provides the <a href="https://github.com/ckan/ckanapi#file-uploads" rel="nofollow noreferrer"><code>ckanapi</code></a> package for accessing <a href="http://docs.ckan.org/en/latest/api/#ckan.logic.action.create.package_create" rel="nofollow noreferrer">the CKAN API</a> via Python or the command line.</p>
<p>I ... | 2 | 1,027 |
AttributeError: 'NoneType' object has no attribute 'name' ( related to different tensorflow versions ) | <p>While running the jupyter notebook online in google colab, no error is coming out,
but while running the code in offline mode, it's giving following error. :</p>
<pre><code>---------------------------------------------------------------------------
AttributeError Traceback (most recent c... | 2 | 1,914 |
How to obtain correct google.visualization.Table#selection row index when using ControlWrapper for filtering? | <p>The following works fine (see <a href="http://jsfiddle.net/pgarner/YDQ9w/" rel="nofollow">jsfiddle</a>) except when the table is filtered via one of the control wrappers. It seems that currentRow and rowIndex always have the same number e.g. google.visualization.DataView#getTableRowIndex(currentRow) doesn't do any ... | 2 | 3,122 |
Java 8: How BiFunction works while using andThen() and apply() methods | <p>Currently <code>BiFunction</code> interface has two methods <code>andThen()</code> and <code>apply()</code>. I found different examples in web, but the below example is something I can't figure out - 'How the chaining of these methods works'</p>
<p><strong>Example 1:</strong></p>
<pre><code>BiFunction<String, S... | 2 | 1,414 |
Vagrant VirtualBox (Ubuntu Trusty) stops responding after several days | <p>I am running Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64) using Vagrant [vagrant:amd64 1:1.6.3] (VirtualBox). My host system is the same OS version.</p>
<p>After several days of flawless (or so it seems) operation, the vagrant box will stop responding... or more specifically:</p>
<ol>
<li>My Supervisor ... | 2 | 2,543 |
java.lang.NoClassDefFoundError: javax/mail/Authenticator in javaMail | <p>I Create a java application that uses send mail, and it working in eclipse when I run. but when i make it jar and run in Terminal(I am Using Ubuntu) <code>java -jar EmailApp.jar</code> it give Following Error :</p>
<pre><code>Error: A JNI error has occurred, please check your installation and try again
Exception ... | 2 | 1,556 |
Aligning table rows and columns | <p>I have two tables: </p>
<p>First table has 2 rows and 4 columns. The first column has a row span of 2.
In the picture however the last 3 columns are not aligned with the two rows. How can this be fixed?</p>
<p>In addition, this table has been made so that it is equal sizes by columns. </p>
<p>Table 2 has also 3 ... | 2 | 1,505 |
CSS and Javascript loads too long on Tomcat 8 or 9 | <p>I have JSF application and it works fine when I run it on embedded Jetty server. However, when I deploy it to Tomcat 8.0.35 loading of the CSS and Javascript files takes more than 20 seconds. I have the same problem on the Tomcat running on Amazon AWS server and on the Tomcat running on local machine. These are all ... | 2 | 6,332 |
HOW TO: Changing Dropdown Value in SugarCRM | <p>I'm trying to change the value of a dropdown list via a click of a button, I'm using SugarCRM CE 6.5, and here's the problem I encoutered:</p>
<p><a href="https://i.stack.imgur.com/WL4eJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WL4eJ.png" alt="enter image description here"></a></p>
<p>And... | 2 | 2,420 |
Bootstrap dropdowns in ReactJS, only one open at a time | <p>I have a page contains multiple Bootstrap Cards and each card is a component and each card footer is also a component. Card Footer contains buttons. When you click on a button, drop down will be opened like below</p>
<p><a href="https://i.stack.imgur.com/pYXTR.png" rel="noreferrer"><img src="https://i.stack.imgur.c... | 2 | 3,147 |
Call nested Azure logic app with get and body parameter | <p>We are building nested logic apps where a logic app will call another logic app to aggregate some data.<br>
Currently we have Logic Apps <code>A</code>, <code>B</code> and <code>C</code> all being setup with a GET request.<br>
Logic App <code>ABC</code> that aggreagtes all the data will be exposed by the API over a ... | 2 | 4,891 |
How to return to file upload page after successful upload? | <p>I have a form for file upload and its working no problems.
The problem comes when I wish to return to the form after the file upload is complete. The form will not show. I read another post on here that said that i need to use </p>
<pre><code>header("Location: upload.php?message=" . $message . "");
</code></pre>
<... | 2 | 2,742 |
Why is the Gujarati-Indian text not rendered correctly using Arial Unicode MS? | <p><em>This is a follow-up on this question <a href="https://stackoverflow.com/questions/36600311/jasper-report-pdf-export-font-of-different-language">How to export fonts in Gujarati-Indian Language to pdf?</a>, <a href="https://stackoverflow.com/users/766786/amedee-van-gasse">@amedee-van-gasse</a>, QA Engineer at iTex... | 2 | 1,122 |
how to use boost or weight in more_like_this | <p>I have the following Elastic Query, </p>
<pre><code> more_like_it_match = {
"min_score": 5,
"query":
{"filtered": {
"query": {
"bool": {
"must": {
"more_like_this": {
... | 2 | 2,178 |
sqlite-net-pcl {SQLite.SQLiteException: near ")": syntax error | <p>I´m currently developing an iOS App with Xamarin and ran into a strange error with sqlite-net-pcl:</p>
<pre><code>{SQLite.SQLiteException: near ")": syntax error at SQLite.SQLite3.Prepare2 (SQLitePCL.sqlite3 db, System.String query) [0x0001e] in <49ac49cfb94341128f6929b3ff2090ee>:0 at SQLite.PreparedSqlL... | 2 | 1,377 |
Want my client program to connect to over IPv4 or IPv6 | <p>Currently, the following program only connects using an IPv4 address.
I want it to be modified to connect to a server(compatible of accepting IPv4 and IPv6 clients) using any of IPv6 or IPv4 address of the server.</p>
<pre><code> #include <stdio.h>
#include <stdlib.h>
... | 2 | 1,477 |
Using PayPal REST API with Vb.net | <p>I have a number of old programs that I wrote in VB6 that use a Webbrowser control to log into PayPal and then fill in various PayPal fields in the browser based on actions taken by the user. PayPal has changed some things recently that make my old programs no longer work, so I'm upgrading.</p>
<p>I've started worki... | 2 | 1,602 |
Update "autofocus" attribute via interaction on template level in angular | <p>Having a problem regarding the <code>autofocus</code> attribute in cooperation with Angular. In detail I have a <code><form></code> with an <code><input type="text"></code> on top which is initially focussed by a condition.</p>
<pre><code><input [attr.autofocus]="selection===-1"
[(ngModel)]="m... | 2 | 1,152 |
RestKit POSTs object to server, but server receives empty GET request | <p>When I use the <code>postObject</code> method in RestKit, everything seems okay by the log (see below).</p>
<p>But on the server, the request is received as <code>GET</code> and the request body is empty, instead of being a <code>POST</code> and containing the serialized object.</p>
<pre><code>2013-01-12 14:40:08.... | 2 | 1,442 |
React Navigation after login navigate problem | <p>I'm using useNavigation in React Navigation. After logging in with AsyncStorage, I want to redirect to the home page, but I cannot go back to the App function. When I want to go to HomePage, Navigate cannot find it and returns an error.</p>
<p><strong>How can I trigger a function named app?</strong></p>
<p>Navigate ... | 2 | 1,360 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.