title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
local rancher host not visible on gui
<p>I am trying to set up a rancher environment for testing purposes on an ubuntu laptop. I am reproducing the steps that worked on another server (this one with Debian) to get it running but I am having some trouble.</p> <p>The host is an ubuntu 16.0.4. I have installed docker-ce.</p> <pre><code>sudo docker version C...
2
6,340
Toggle Button "ENTER VR" not working in three js
<p>i am using google Chrome (59.0.3071.125) in my mobile </p> <p>i was Enabled : WebVR , Gamepad in my chrome using chrome://flags/ to support WEBVR when i tried first time it worked BUT after 2 days now its givig this exception:</p> <p>Uncaught (in promise) DOMException: Presentation request was denied.</p> <...
2
5,415
Spring Kafka multiple topic for one class dynamically
<p>I recently wanted to add a new behavior in my project that uses spring-kafka.</p> <p>The idea is really simple :</p> <ul> <li>App1 create a new scenario name &quot;SCENARIO_1&quot; and publish this string in the topic &quot;NEW_SCENARIO&quot;</li> <li>App1 publish some message on topic &quot;APP2-SCENARIO_1&quot; an...
2
1,757
How do you generate REST service template with wadl2java where POST/PUT methods have parameters?
<p>I’ve read that the wadl2java code generator and cxf-wadl2java-plugin Maven plugin “can be used to generate server and client JAX-RS code…” However, for anything besides GET requests, the generated code seems useless.</p> <p>For example, if I use the following WADL file:</p> <pre><code>&lt;?xml version="1.0" encodi...
2
1,124
Adding Form Data into html file being emailed using phpmailer
<p>Hi guys, i have a very basic php issue about adding form data into html/php file being sent using phpmailer</p> <p>Im using gmail account SMTP to send HTML email on successful submission of form.</p> <p>On Form submission the HTML email is being successfully sent.</p> <p>PROBLEM / ISSUE: </p> <p>Im unable to att...
2
1,713
SQL Conditional Merge When Matched Update when columns do not equal
<p>I have a table named SalesOrders. I merge data form multiple tables into it. Within this table, I have a column named Ack which will toggle to 'N' when the row is inserted or updated (I toggle 'Y' in C# code). the trouble I'm having is when I run my query, I only want Ack to change to 'N' when something changes. I t...
2
1,777
Mousemove on mobile devices
<p>I have to implement the rotation of an image even on mobile devices. Currently if we place the mouse on the image simulates a 3D rotation but on mobile devices nothing happens. I saw that I have to add: if (window.DeviceMotion) {// Do something} But I do not understand how to implement it. Does anyone have any ideas...
2
1,143
How to get the success message after clicking on submit button
<p>I have my code where it should show a success message after submitting (click on add) but for some reason this success message is showing all the time even if I don't add anything, it is just showing on the top of the page.the problem is if I removed the message that is below if statement, the message will not show....
2
2,444
Moving (shifting) two registers in Assembler
<p>I have 8 LEDs and 2 buttons, initially the first and the last LED are lit, if i press the first button, the first led shifts right, if i press the second button the last led shifts left. If the two lights "meet", by shifting upon each other, they switch off.</p> <p>I did not know how to update the leds on a single ...
2
1,072
Rails: Losing flash/errors from embedded form after redirect_to
<p>This is a stupid example but I'm trying to understand how thing get passed around behind the scenes in Rails. And there's probably a better, "Rails", way to approach this...if so please let me know. I have:</p> <pre><code>Warren has_many Rabbits Rabbit belongs_to Warren </code></pre> <p>I'm listing existing rabbit...
2
1,073
"ClassNotFoundException: com.mysql.jdbc.Driver"
<p>I’m new using IntelliJ 13 and I have a problem on connection to MySQL. I’m using the code as below and this code I learn from tutorials Manage Your Database Scheme with IntelliJ IDEA 12. </p> <pre><code>public class App { public static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; public static fin...
2
1,327
Locking main() thread
<p>Not exactly sure on the terminology here but here I go basically I have the main() thread of my application that starts and calls two threads, one sets up an event handler to wait for specific registry keys to change, while the other starts a timer to write any changes made to an xml file every 5 mins or so and runs...
2
1,131
E-mail's and Exchange's errors in emulator
<p>I update my Eclipse SDK to last updates (today).</p> <p>When I launch emulator on 4.0.3, 4.1.2 or 4.2 (Android or Google APIs 15, 16, 17 on any CPU) <code>e-mail</code> application is not present in him and <code>com.android.exchange</code> generate warnings and errors:</p> <pre><code>12-26 06:20:19.094: D/Exchang...
2
2,386
NSInputStream's NSStreamEventHasBytesAvailable never gets called
<p>I am creating an app similar to WiTap (but to connect many devices) and here is my problem: The application seems to connect the devices (they are displayed in table view controller. The delegate of <code>NSInput/OutputStream</code> says both streams are opened but when I send packet to <code>NSOutputStream</code> t...
2
1,514
Sequelize TypeError: Cannot read property '1' of null
<p>Normally this type of error would not be a problem but i simply cannot understand where this is happening:</p> <p>Here is my setup:</p> <pre><code>router.route('/api/academyModule') .post(function (req, res) { req.body.academyModule.module_id = req.body.academyModule.module.id; req.body.academyModule.modu...
2
1,691
Bootstrap Validator Form message to load on the same page
<p>I've been looking to solve this, but i can't find a way to do it. I already tried other methods i found in here, but none of them were working for me.</p> <p>I'm building a website with Bootstrap and also using Bootstrap Validator to make a Contact Form. I can make it work perfect and also submit the contact, but t...
2
3,252
Nant Fails on File::exists check
<p>I<code>m getting a problem in a Nant Build i</code>m running , There is a part where i need to execute a file and then delete it , but only if the file exists , But the script keeps failing</p> <p>****The relevant Script part :****</p> <pre><code> &lt;do&gt; &lt;property name="lessfolder.parent" value...
2
1,091
How can I improve Lucene.net indexing speed
<p>I am using lucene.net to index my pdf files. It takes about <strong>40 minutes to index 15000 pdfs</strong> and indexing time increase with number of pdf file increase in my folder. </p> <ul> <li><strong>how can I improve indexing speed in lucene.net?</strong></li> <li><strong>Is there any other indexing service wi...
2
1,315
cannot read property of undefined/property not defined
<p>My array is returning information and has data in it (not null) but yet it still errors saying:</p> <blockquote> <p>Uncaught TypeError: Cannot read property 'date_appeal_received' of undefined" or "Uncaught ReferenceError: date_appeal_received is not defined.</p> </blockquote> <p>I've tried: </p> <pre><code>co...
2
2,335
NullPointerException & Error creating bean with name 'entityManagerFactory' from Hibernate Configuration class (using spring data jpa)
<p>I have updated some dependency in my project after that my hibernate configuration class showing Nullpointerexception.</p> <p>I'm using spring data JPA repository with hibernate, it's been more than 24 hours still not found any appropriate solution regarding small problem.</p> <blockquote> <p>Some Solution which...
2
6,873
Cannot set up connection to local database in MonetDB.R
<p>The title summarizes my problem, I think. I'd appreciate any pointers anybody might have on what else I could try. I've pasted the console output with comments in bold below. Theinstalled version of MonetDB.R is the latest from R-forge (0.8.5).</p> <pre><code>fabians@wap27:~$ R [...] &gt; library(MonetDB.R) Lo...
2
1,460
Set Punjab as a BOSH XMPP Proxy for Facebook Chat
<p>I want to use Punjab as an xmpp proxy for Facebook Chat</p> <p>Punjab is running well but when i ask chat.facebook.com it won't work</p> <pre><code>SENT: &lt;body rid='313820892' xmlns='http://jabber.org/protocol/httpbind' to='chat.facebook.com' xml:lang='en' wait='300' hold='1' content='text/xml; charset=utf-8' v...
2
2,134
Can not connect to website using Jsoup behind company proxy
<p>I want to scrape a webpage using Javas Jsoup library but i am behind a corporate proxy which prevents me from connecting to the webpage. I researched the problem and know now that I have to specifically address the proxy as well as identify myself to the proxy. However I am still not able to connect to the webpage. ...
2
1,050
I'm making a simple program to calculate vector resultants and I can't figure out why it isn't working.
<p>I'm extremely new with programming, and I mostly pieced this together straight out of textbooks, but I cannot get the damn thing to work. For some reason, my doubles (F1 for example) say that they haven't been declared. Here's the code.</p> <pre><code>// Vector Resultant Calculator by Jeffrey Weissman #include &lt;...
2
1,107
Add MVC3 unobtrusive validation (addMinMax)
<p>I have such attribute:</p> <pre><code>public class AgeRangeAttribute:ValidationAttribute,IClientValidatable { public int MinAge { get; set; } public int MaxAge { get; set; } public IEnumerable&lt;ModelClientValidationRule&gt; GetClientValidationRules(ModelMetadata metadata, ControllerContext context) ...
2
1,053
Decryption with RSA/ECB/PKCS1Padding
<p>Following tag is a part of SAML response. I have to decrypt following CipherValue. I pass CipherValue ( string ) to following function but it did not return correct value, what am I doing wrong?</p> <p>Documentation says : </p> <ol> <li><p>Obtain the private key from the certificate. </p></li> <li><p>Decrypt the ...
2
1,122
Access a Derby database from JSP
<p>My question is in the title. I am new to Java web development and I am currently working on an assignment that requires the use of only JSP, Derby and Tomcat (servlet, scripting languages, beans and frameworks are banned). I have created a Derby database which is located in D:\Software\Apache\derby\db-derby-10.10.1....
2
1,289
Using Security Transforms to verify an RSA signature created with Ruby/OpenSSL
<p>I'm trying to implement a simple license key scheme for my app and I'm running into significant roadblocks. I'm following the example at <a href="http://sigpipe.macromates.com/2004/using-openssl-for-license-keys" rel="nofollow noreferrer">OpenSSL for License Keys</a>.</p> <p>Since that blog post was written in 2004 ...
2
1,482
Qt5.2.0; Debian Wheezy: QSqlDatabase destructor causes segfault
<p>I have an app that utilizes a wrapper class to access a MySQL database. Since the database is accessed at various places in the app, and the app is multithreaded, the wrapper class is used to minimize the amount of repetitive code needed to access the DB. </p> <p>I read somewhere that a <code>QSqlDatabase</code> ...
2
1,861
Wordpress Custom Post Type and Bootstrap Modal
<p>I am using Advanced Custom Posts and Custom Post Types plugin for my WP site.</p> <p>How can I make a custom post show on the Bootstrap modal depending on the trigger button? I want it to show inside the modal's <code>.modal-body</code>. I found a solution somewhere here but it requires putting the modal syntax ins...
2
1,668
Android - Crash after click push notification message
<p>I'm using cordova for my project. My app crash after I click push notification message. I got this error message in my log cat.</p> <pre><code>03-12 10:53:21.185: W/PluginManager(5548): THREAD WARNING: exec() call to PushPlugin.register blocked the main thread for 23ms. Plugin should use CordovaInterface.getThreadP...
2
3,337
how to make the header of Recycle view invisible
<p>I have a Recyclerview with <code>header view as slider images</code> and remaining view as <code>normal recycler items</code>.I am wondering if there is any way around to make the header view invisible depending upon some sort of condition.The recycler view consists of two separate layout files for this purpose: <co...
2
4,016
JSON.NET Deserializing from file
<p>I'm trying to deserialize an array from a file. I keep getting the error &quot;cannot deserialize JSON object into array&quot; because it is apparently not in the correct format. However, I copied the JSON into a string and used it within the C# class and everything works fine. When I went back to getting it from th...
2
1,101
Handle HttpClientErrorException$BadRequest: 400 Bad Request in Cucumber RestTemplate
<p>Hi I have written a Cucumber test case where i send a POST request with an XML body, output of that request is 400 Error with an XML body, which is expected and when i throw the request i get that too, but what i get is below:</p> <pre><code>org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Ba...
2
1,071
mongodb aggregate and $lookup in the same collection within a subdocument
<p>I have the following structure:</p> <pre><code>{ "_id" : ObjectId("5ae451b46302b274b5ebeefb"), "name" : "Laurent", "email" : "laurent@laurent.fr", "password" : "sha1$e6f05101$1$21444307dfa8684f479f39530b03a2f5cad98ac9", "follows" : [ { "_id" : ObjectId("5ae7495e1cc09532e...
2
1,697
Fish Pond Simulation: Homework, where am I going wrong?
<p>This is a multipart question.</p> <p>Restrictions:</p> <ul> <li>can't use <code>.clone()</code>, or <code>Collections</code>, or <code>System</code>.</li> <li>can't change to a different object type (I mean I can't change the <code>ArrayList</code> to a <code>List</code> or what not).</li> </ul> <p>I think my pro...
2
1,586
Getting Jquery mobile script error(**Error Loading Page**) while clicking on URL or Href?
<p>I have created a sample web application using jQuery Mobile. </p> <p>I have created two <code>&lt;div&gt;</code>s; one contains <strong>href</strong> and another contains the content. When I click on HREF It showing jquery-mobile script Error as like below:</p> <p><strong>Error Loading Page</strong></p> <p>Can an...
2
1,113
Android - Intercept Link From Webview
<p>So I need the user clicked link in webview, in this case it is a link containing a .pdf file. I have code that launches the PDF reader but it doesn't get the link so it just loads the PDF reader on click of a PDF file. How do I intercept this link and feed it to my PDF reader intent?</p> <p>Code:</p> <pre><code>...
2
1,994
Uncaught (in promise): TypeError: Cannot read property 'executeSql' of undefined
<p>I get my articles from my JSON API in asynchronous and I would like to do a local storage with SQLite when the user does not have an internet connection, but I have these two errors :</p> <blockquote> <p>cordova_not_available</p> <p>ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'execut...
2
3,816
Vue 3 in iOS 9: Unexpected keyword 'const'. Const declarations are not supported in strict mode
<p>My Vue 3 app doesn't work in Safari 9. There is this error in console:</p> <pre><code>Unexpected keyword 'const'. Const declarations are not supported in strict mode. </code></pre> <p>My package.json:</p> <pre><code>{ &quot;name&quot;: &quot;test&quot;, &quot;version&quot;: &quot;0.1.0&quot;, &quot;private&quo...
2
1,374
Dependent dropdown for country and state in yii 1.13
<p>I had created two database tables as,</p> <ol> <li>Country</li> <li>State</li> </ol> <p>In Country table i had countryid &amp; cname field. In State table i had state_id, state_name &amp; country_cid.</p> <p>Now i need to make a dependent dropdown i.e. when i select country dropdown box, then the particular state...
2
1,273
xsl:Template match xml node
<p>I am new to <a href="http://en.wikipedia.org/wiki/XSL_Formatting_Objects" rel="nofollow">XSL-FO</a> and have a very basic question, the following are xsl and xml files.<br> I expect "xxx" to be outputted for every xml node "inhouse" (template match). But I am not getting it.</p> <pre><code>&lt;?xml version="1.0" e...
2
1,121
how can I limit user's access to information of their profile in YII framework
<p>how can i limit user's access to information of others. </p> <p>I've tried controller for Users and they can access to index of controller for other user. please describe me how to change setting in YII framework that each User just can access to their information.</p> <p>i am using version 1.1.X</p> <p>my Here a...
2
2,469
How to test a Controller and Model in a JSF Project with jUnit?
<p>i don't know exactly how to write tests for these following Classes especially for the Controller and Model. Is it to possible to test with jUnit ? I heard from Selenium but first i would test with jUnit. Thanks for ur help and best regards.</p> <p>Controller.class:</p> <p><div class="snippet" data-lang="js" data-...
2
1,052
javascript onclick navigation (multiple layers) - how do I separate parent and child click?
<p><a href="http://jsfiddle.net/kGw8y/1602/" rel="nofollow">http://jsfiddle.net/kGw8y/1602/</a></p> <pre><code>$('#global-nav li:has(ul)').click(function(){ $(this).find('&gt; ul').stop().slideToggle(400); }); </code></pre> <p>I found this that was originally using hover; however, I modified it to be on click in...
2
1,981
TypeError: You provided 'undefined' where a stream was expected. You can provide an Observable, Promise, Array, or Iterable. at <Jasmine>
<p>Hi I ahve added this piece of code in ngonit, for polling and after adding this all my test cases are getting failed. Please help how to resolve?</p> <pre><code> ngOnInit(): void { this.timeInterval = interval(5000) .pipe( startWith(0), switchMap(() =&gt; this.deviceService.getDeviceList()) ) .pipe( takeUntil...
2
2,186
inner join is not working in hql in hibernate
<p>I want to fetch data from two tables using inner joins in HQL in hibernate but its not working don't know why?? The Pojo classes and their mapping files are given:</p> <pre><code>public class Org implements java.io.Serializable { private String quarter; private Orgtype orgtype; private String pare...
2
4,081
'attempt to scroll to invalid index path: <NSIndexPath: 0x6000002264a0> {length = 2, path = 0 - 0}'
<p>I am new to Swift and Realm, sorry. I am trying to build a Scrollable Tab Pages, wherein all data comes from Realm. </p> <p>First Launch, after I successfully login: The data is not loaded automatically. </p> <p>Second Launch, I am getting this error.</p> <pre><code>'NSInvalidArgumentException', reason: 'attempt ...
2
2,069
Do I have to re-render my page after updating template data
<p>First I have <a href="https://stackoverflow.com/questions/13465711/how-do-i-post-with-jquery-ajax-in-django">searched and seen another answer</a>, but it doesn't address my need.</p> <p>I am trying to POST data using jQuery/AJAX from my HTML to update a list that is also on my HTML.</p> <p>When I first rendered my...
2
1,587
PHP - Parse html to retrieve href from an "a" tag that is inside an other "a" tag
<p>I've been searching for hours (there shouldn't be any duplicate) and tried many different ways using both regex (regular expressions) and DOMdocument without success.</p> <p><strong>How the non-standard html code looks like:</strong></p> <pre><code>&lt;a class="SOMECLASS" href="javascript:__FUNCTION(SOME_HREF_INSI...
2
1,063
Cannot get my meteor app to connect to my server. Shows "connected" briefly, goes to "connecting" and "waiting"
<p>I am able to connect my Samsung Galaxy Prevail to my dev box, on the same LAN, run "meteor run android-device", and have my app launch on the phone and Meteor.status().status reports "Connected". The app runs fine.</p> <p>But when I use "mup" to deploy to my server, (and I can run the app on my server fine in the ...
2
4,761
Variable(s) ‘group’ have been specified in ‘linfct’ but cannot be found in ‘model’!
<p>My question has been asked on a previous forum but for some reason the answer is not working for me. I am doing a planned comparison on log transformed data using R and I continue to get the error: Error in mcp2matrix(model, linfct = linfct) : Variable(s) ‘group’ have been specified in ‘linfct’ but cannot be fou...
2
1,047
send_email() takes 1 positional argument but 3 were given - Django Python
<p>I am trying to send a test email from my Django python project and following the django docs for that. When the below function is executed I get an error (image attached). What I am doing wrong?</p> <p><a href="https://docs.djangoproject.com/en/2.0/topics/email/" rel="nofollow noreferrer">https://docs.djangoproject...
2
1,661
Scrape HTML table with standard Python HTMLParser
<p>I'm looking to scrape data from an HTML table using only the standard Python HTML Parser. I need to stick with stock tools because the code will be widely distributed and I cannot take the time to support those who need to install BeautifulSoup, lxlml, etc.</p> <p>For example, the HTML code:</p> <p><div class="sni...
2
1,920
Make text appear in a textbox when clicking on button
<p>I have some text which I want to appear in a textbox which I click on the linkbutton "Edit" As you can see I have <code>CommandNames</code> and <code>CommandArguments</code> on those linkbuttons so I need a solution which can be written in the codebehind (.cs) as I got an <code>if (e.CommandName == "Edit")</code></p...
2
1,120
Yarn Workspaces Not Building Local Dependency
<p>I deleted my old question, to provide more info. I'm using Yarn workspaces (v1.22) on a monorepo with both an Angular app and library. I have the library declared as a dependency of the app.</p> <pre><code>root | ---projects | ---lib (components) | ---app </code></pre> <p>E...
2
3,700
Execute Script task throws error "The package execution returned DTSER_FAILURE (1)"
<p>I have a SSIS package that will load data from a set of excel files then archive those files to a specified folder.</p> <p>The excel files are stored in a folder and inside that folder I have the archive folder. </p> <p>Below is my script task code for reference.</p> <pre><code>public void Main() { ...
2
1,221
choose the best Coherence Score for LDA model
<p>I am using python Gensim package to build LDA model (<a href="https://www.machinelearningplus.com/nlp/topic-modeling-gensim-python/#:%7E:text=Topic%20Modeling%20with%20Gensim%20(Python)&amp;text=Topic%20Modeling%20is%20a%20technique,in%20the%20Python%27s%20Gensim%20package" rel="nofollow noreferrer">https://www.mach...
2
1,218
How to download report through URL to database
<p>I have report, which when I run through web browser, using URL displays correctly.</p> <p><a href="http://my.server:8081/jasperserver/flow.html?_flowId=viewReportFlow&amp;reportUnit=%2Freports%2FTestRep_TK&amp;standAlone=true&amp;ParentFolderUri=/reports&amp;repLocale=cs_CZ&amp;j_acegi_security_check&amp;j_username...
2
13,038
Can Java Generics replace multiple similar classes?
<h3>Problem</h3> <p>I'm trying to use Java generics to replace classes with similar methods. All of the examples that I've found cover simple examples, but I'm not sure if Java Generics are intended to be used this way.</p> <p>I have 2 parent classes, and 2 child classes that have almost identical methods. Both paren...
2
1,109
Adwhirl does n't show ads from ad mob and same time it show house ads
<p>now i've been tring to integrate adwhirl to my application it does not show any add from the admob provider.But it will show house ads does not seem any problem with that</p> <p>I added log cat file </p> <p>To verify working of admob I interated with the same application too it does n't show any problem</p> <p>An...
2
1,727
Ofbiz service creation
<p>Starting to learn ofbiz, I am following the tutorial here: <a href="https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-SecureYourApplicationbyAuthentication" rel="nofollow">https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+T...
2
1,836
Laravel 8 Call to undefined method Illuminate\Database\MySqlConnection::tabel()
<p><strong>its laravel 8 course im getting this error while using query builder but with ORM its perfectly run well. when i comment this code and use another method for getting data with query builder in AllCat() method DB::table is running perfectly</strong></p> <p><strong>Category Controller</strong></p> <pre><code>&...
2
2,557
Segmentation fault in ld.so, with my build of glibc
<p>I have a local build of glibc.</p> <p>When I run python from the command-line with it, it is successful:</p> <pre><code>LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-7.5/lib64:/usr/local/cuda-8.0/lib64/cuda/lib64:$HOME/my_libc_env/lib/x86_64-linux-gnu/:$HOME/my_libc_env/usr/lib64/:$HOME/my_libc_env/usr/lib/" ...
2
8,160
SQL: Iterate through subquery
<p>I'm currently working on a query that flags all the orders that don't have the same email address as any other order within the last 10 days.</p> <p>Now I can check if the last order is less than 10 days old or not but if there are 3 orders:</p> <pre><code>1. 2019/01/01 2. 2019/01/20 3. 2019/01/22 </code></pre> <...
2
1,396
Putting a wrapper around a group of elements in XSLT
<p>I'm using XSLT to transform an XML document from one doctype to another. In simplified form, I have something that looks like this:</p> <pre><code>&lt;section&gt; &lt;title&gt;Title&lt;/title&gt; &lt;a&gt;content1&lt;/a&gt; &lt;a&gt;content2&lt;/a&gt; &lt;a&gt;content3&lt;/a&gt; &lt;a&gt;conten...
2
1,522
CakePHP 3.0 get values on index.ctp instead id
<p>I have two tables, 'applications' and 'statuses' where there is a relation 'applications' BelongsTo 'statuses'. Lets begin with Model.</p> <p>This is what <strong>ApplicationsTable</strong> looks like:</p> <pre><code>public function initialize(array $config) { $this-&gt;table('applications'); $this-&gt;dis...
2
1,612
Saving PHP form with foreach loop to MYSQL
<p>I'm trying to save question options input into a table in database. However, I can only save the last question inputs into db but not the rest before that. </p> <p>I'm currently using foreach loop to come out with textfield inputs based on the question structure table. </p> <p>I don't really know how to explain in...
2
2,906
django and dataTables - speed up query and page display
<p>I have a page in my app that lists all our client records - about a thousand total. The query is straight forward (two queries, actually) and look like this (one for commercial and one for residential):</p> <pre><code>all_comm = System.objects.all().filter(isRessy=False) all_ressy = System.objects.all().filter(isR...
2
1,090
STM32: I2S input not working when using DMA
<p>I am trying to interface a 'STM32F401RET6 Nucleo-64' microcontroller with an <a href="https://www.adafruit.com/product/3421#technical-details" rel="nofollow noreferrer">Adafruit I2S microphone</a> in a mono setup. To accomplish this task, I would like to have DMA enabled.</p> <p>I used the Device Configuration Tool ...
2
2,576
PHPspreadsheet extracting and importing data from Excel to MYSQL. Implode function warning error
<p>I've been trying to extract data from the excel file and import it to MYSQL using PHPspreadsheet. This is the excel file.</p> <p><a href="https://i.stack.imgur.com/5CJFj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5CJFj.png" alt="enter image description here" /></a></p> <p>My current code work...
2
1,372
How to create mapped types derived from other mapped types with assignable keys
<p>Minor Edit: This was happening for me on TS 3.0.1</p> <p>I've been running into issues using Typescript to nail down a config shape for use with a React component enhancer. In essence, I want to specify a map-object whose properties are used by the enhancer to create injected props for the enhanced component.</p> ...
2
6,356
Flutter Alert Dialog Not Centered
<p>I'm creating a Flutter mobile application. I have a Scaffold with a Drawer that is Centered in the App Like This:</p> <blockquote> <p>Centered Drawer: <a href="https://ibb.co/s5BMdNM" rel="nofollow noreferrer">https://ibb.co/s5BMdNM</a></p> </blockquote> <p>When The User Taps on the 2nd ListTile which is &quot;Filte...
2
1,609
Unable to complete the code coverage if the conditional statement is in Jquery - Jasmine - AngularJs
<p>My project is written in angular and test cases in Jasmine. These test cases are run with Karma.</p> <p>I have a scope function in the controller that has a if condition in it. This if condition statement is in Jquery. I am not sure how to test the if and else part of this code. </p> <pre><code>$scope.getHelperMes...
2
1,028
Semantical error The annotation in property does not exist or could not be loaded
<p>When running orm:schem-tool:update, I get this error:</p> <pre><code>[Doctrine\Common\Annotations\AnnotationException] [Semantical Error] The annotation "@Doctrine\Orm\Mapping\ManyToMany" in property Admin\Entity\AppointmentDefinition::$products does not exist, or could not be auto-loaded. </code></pre> <p>I've ...
2
2,220
How to get a chrome tab source code in javascript
<p>I try to develop a chrome extension and I need to be able to get the source code of the current tab, so I follow the chrome example and I have three files:</p> <p>manifest.json:</p> <pre><code>{ "manifest_version": 2, "name": "Source code getter", "description": "This extension is a test to get current...
2
1,289
Can't unmarshal marshalled document when default namespace used
<p>I set up a repo which shows my problem: <a href="https://github.com/Waxolunist/stackoverflow.34392476" rel="noreferrer">https://github.com/Waxolunist/stackoverflow.34392476</a></p> <p>I try to unmarshal a simple xml document:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt; &lt;for:docu...
2
1,527
GWT: switching from <table> to g:LayoutPanel and g:layer disable all input
<p>I'm using uiBinder to layout my views in a gwt project and I've been using a regular table to handle the basic layout of the view. It became kinda messy and static so I was looking into using layers inside a layoutPanel instead. This seemed like a better way of doing it. So before I had the structure: docklayoutpane...
2
2,944
Celery + Flask + Docker, consumer: Cannot connect to amqp://admin:**@rabbit:5672/myhost: failed to resolve broker hostname
<p><strong>Background</strong></p> <p>I am building a web application that uses Flask for the backend framework. The application uses Celery to handle all the time-consuming tasks as background tasks as to not block the backend thread. I use RabbitMQ as the message broker for Celery workers. I bundled each service usin...
2
2,636
Send large string to controller using ajax post
<p>I'm working on a ASP.NET MVC application, in which I need to send data stored in sessionStorage to a Controller. This storage has a key-value pair, in which the key is 'confirmed'. The value is an array with numbers, like [1,2,3,4,5].</p> <p>I need to send this array to my controller, and everything works fine, exc...
2
1,119
FormView Layout
<p>This has driven me crazy a few times in the past but I've always fudged it and moved on. Today I want to try and fix it!</p> <p>I quite frequently create a <code>GridView</code> to display data and a <code>FormView</code> directly beneath in Insert mode with controls in the InsertItemTemplate corresponding to the c...
2
1,373
Error executing Bootstraps in Grails 2.1.1 springSecurity plugin
<p>I am creating an interactive grails application and trying to authenticate through springSecurity plugin in grails 2.1.1. I am using IntelliJ idea IDE. When I run my app, following sequence of exceptions is generated, which I cannot understand.</p> <pre><code>Error 2013-06-24 13:46:53,524 [localhost-startStop-1] ER...
2
3,906
Elasticsearch Unreachable - Docker
<p>I'm using the ELK Stack with Docker. Everything worked fine, except the day when my server ran out of space because I didn't manage well the lifetime of my data. I had to remove and build again my Docker containers. My problem is that I don't know if it's directly related or not, but I have errors when I try to star...
2
2,081
boost::property_tree without exceptions
<p>I need to parse some INI files. To do this, I'm trying to use <code>boost::property_tree</code>, but in my system exceptions are not allowed.</p> <p>How can I disable the exception support when using <code>boost::property_tree</code>?</p> <p>If there's no way to do this, any recommendations for another library are...
2
1,520
Set selected item in React native
<p>I add Picker items like the following:</p> <pre><code> addLanguage() { console.log('addLanguage'); pickerValue = this.state.pickerValue; pickers = this.state.pickers; // this.state.itemValues[0] = 'fr'; itemValues = this.state.itemValues; pickers.push(&lt;View key={Ma...
2
6,334
How to install rasa x in python virtual env - Rasax installation error using pip3
<p>I am trying to install <code>rasa x</code> in my python env. But i am getting below error. </p> <p>This is the command i used:</p> <pre><code>pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple </code></pre> <pre><code>Error initializing plugin Google = keyrings.alt.Google. Traceback (most recent c...
2
1,916
multiple circle progress bars
<p>I'm using a script for creating some round progress bars. Here is some markup for creating them: </p> <pre><code>&lt;div class="loader"&gt; &lt;div class="loader-bg"&gt; &lt;div class="text"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="spiner-holder-one animate-0-25-a"&gt; &lt;div class="spiner-hold...
2
1,276
Failed while enforcing Artifactory artifact resolver
<p>Disclaimer: I can't post the full <code>pom.xml</code> file of my project here due to nondisclosure restrictions. However I extracted relevant portions to illustrate the problem that I'm running into. My organization has recently purchased Artifactory and I'm working to integrate an automated CI/CD build pipeline in...
2
6,789
ListView selection custom color
<p>I've made my own custom theme but there are a few bits that the theme didn't color such as the ListView I'm working on so I'm doing those piece by piece. I've done my homework with this and know about creating the drawable background selector XML file, but it's not working right. Further I tried some other ways to...
2
1,394
Insert data into database using ajax
<p>I am using ajax to insert data in database</p> <p>My default .aspx file is as below</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;!DOCTYPE html&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;titl...
2
2,130
Angular How to update mock data in different unit tests
<pre class="lang-js prettyprint-override"><code> describe('landing component', () =&gt; { beforeEach(() =&gt; { mockAccountService = new Mock&lt;AccountService&gt;({ getSelectedContractAccountNumber: () =&gt; { return testAccountNumber; } ...
2
1,321
Why doesn't Powershell see that it already loaded this assembly?
<p>This is a really long one, so hang tight. </p> <p>The idea is that an application, when referenced to Core.dll (see below), will create a new object of type <code>Core</code>, and in doing so, the constructor will scan the <code>C:\Problems</code> folder for any DLLs which contain a type that uses the <code>IPlugin...
2
1,330
How Get Suggestions from Solr Server in a PHP variable
<p>I've got this problem that I can't solve. Partly because I can't explain it with the right terms. I'm new to this so sorry for this clumsy question.</p> <p>Below you can see an overview of my goal.</p> <p>I'm using Magento CE 1.7.0.2 &amp; Solr 4.6.0.</p> <p><strong>Working with Spell checker in Solr</strong></p>...
2
2,226
Valgrind error: conditional jump or move depends on uninitialised value(s) - C
<p>I am trying to write a program that receives messages and reads them. Based on what those messages are it then prints out some text. As that is the part of the code that valgrind is warning me about, I left it there for you to see. As far as I read online, there is supposed to be an initialization problem but I do n...
2
1,091
NavigationDrawer selection issue in Android 2.3
<p>This is how my NavigationDrawer list item is defined.</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" style="?android:attr/spinnerDropDownItemStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" ...
2
1,265
Android NDK GLES 2.0 Nothing Drawing
<p>I am trying to Draw with GLES 2.0 through the NDK, doing everything except creating the surface in C++, but nothing is drawing on the screen...And I can't figure out why.</p> <p>I have tried/verified many different things and am still at a loss.</p> <p>my last few guesses are these:</p> <p>my textures are somehow...
2
1,082
Error handling WPF - MVVM
<p>I've read many articles on how to validate data in WPF - MVVM, but have gotten even more confused than I started. </p> <p>What I'm trying to do is simply add a new row to my db. The validation checks if the device name (the object being inserted) is over 2 characters long <strong>AND</strong> I want to check for un...
2
2,442
Left Align embedded range in Email
<p>I'm having trouble getting a range that is embedded in an email to left align. I've tried several things but the embedded portion still centers in the email. Here is my code, which ironically, works just fine in other spreadsheets. I've tried adding HTML tags, changing the function(s), all to no avail. Any help ...
2
1,293
PHP connection to MySQL database not working
<p>I am trying to create a login to database, using PHPMyAdmin with MAMP. I have made a simple login form in index.html and placed my php code in connect.php to open home.php once the correct username and password are put in. But when I input username and password (or even when I input random text) I am taken to localh...
2
1,287
Error when Loading a .pb Tensorflow Model
<p>I created a tensorflow model on a Windows 10 machine and saved it using:</p> <pre><code>model.save('myfolder') </code></pre> <p>Inside the folder <code>myfolder</code> I get:</p> <pre><code>- saved_model.pb - Variables folder - Assets folder </code></pre> <p>Now I'm trying to load the model in a Linux machine, so I'...
2
2,945