title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
read and write a json file in node.js
<p>okay I have this json file:</p> <pre><code>{ "joe": { "name": "joe", "lastName": "black" }, "matt": { "name": "matt", "lastName": "damon" } } </code></pre> <p>and I want to add a person with node.js:</p> <pre><code>{ "joe": { "name": "joe", ...
1
1,039
Three.js Collision and Remove the Collided Object
<p>I am creating a webgl game using three.js, now i successfully make a collision detection however i need to remove the collided object from the scene after collision how do i do that?</p> <p>Basically I follow this tutorial </p> <p><a href="http://webmaestro.fr/blog/basic-collisions-detection-with-three-js-raycaste...
1
1,327
Spring Embedded Kafka using Kafka 2.2.x
<p>The Embedded Kafka Broker for Spring does not work when upgrading Spring-Kafka 2.2.x which is required for kafka-client and kafka-stream 2.2.3. It seems to require a meta.properties file in the <em>log.dir</em> directory, and requires setting a broker.id. However, it throws an exception for a binding address. Has an...
1
1,915
How to get the last value from a model list without looping it in MVC?
<p>Here i need to get the last value from a model list in a view without looping it..Here is my controller code</p> <pre><code>public IList&lt;ProductDetailModel&gt; GetWPDetails() { ProductDetailModel Viewmodel; string funname = "GetCSpecialWPDetails"; List&...
1
1,230
Changing DefaultWebProxy causing WebRequests to time out
<p>For the project I'm working on, we have a desktop program that contacts an online server for a store. Because it's used in schools, getting the proxy setup right is tricky. What we've gone for is to allow users to specify proxy details to use if they want, otherwise it uses the ones from IE. We've also tried to bypa...
1
1,786
Pass variable from bean to primefaces page
<p>Another Primefaces Newbie here.</p> <p>I want to pass data from a bean to XHTML page for use in javascript. Let me make it clear that the primefaces XHTML page does not have components so a normal binding like "#{bean.property}" is not in my requirement.</p> <p>Is there a way to pass a bean variable to a page when...
1
1,550
Too much margin on SearchView
<p>My SearchView is showing up like this:</p> <p><a href="https://i.stack.imgur.com/QGtDZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QGtDZ.png" alt="enter image description here"></a></p> <p>As you can see there is a margin both on the <code>search_edit_frame</code> of the SearchView, and outside the S...
1
1,211
Java, Jackson, Custom deserializer with extended classes
<p>Using Jackson 2.10., I am trying to write a custom deserializer for a base class, but I have to deserialize fields with unknown field name. Then there are extended class that can also extend this serializer.</p> <p>I have tried to use the @AnyGetter, and @AnySetter to accomplish it, and it kind of does work. Now I ...
1
1,341
A file does not exist for module element having uri: EJB.jar
<p>I have recently installed IntelliJ on my machine and attempting to pull in a Module but am running into an error that looks like this:</p> <blockquote> <p>[5/2/16 9:41:08:079 EDT] 0000014e wtp W org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl openNestedArchive - module An error occurred...
1
1,261
Failed to mount component on new laravel 5.5 project
<p>me and a colleague have been having problems in new and old laravel projects when it comes to using vue js because we get the following error every time in the browser console</p> <pre><code>&gt;`[Vue warn]: Failed to mount component: template or render function not defined. found in ---&gt; &lt;Example&gt; ...
1
2,697
Read GPX using Python ElementTree.register_namespace?
<p>I have been beating my head against the wall for some time now. According to the documentation, this <i>should</i> be simple. All I want to do is read a GPX file. However, GPX files liberally use namespaces, which <i>theoretically</i> make sense. I cannot seem to get ElementTree to read them, though. Here is the cod...
1
1,786
Add a record to the database without refreshing
<p>I want to add a record dynamically. When I insert action = "add.php" for my form, the addition is accomplished by displaying a message after refreshing. I want to add this addition without refreshing dynamically.</p> <p>Also, for the ID of my games, I want that when I delete a record, for the ID to be decremented o...
1
2,444
Unhandled exception at location :Microsoft C++ exception: std::length_error at memory location
<p>There haven't really been any answers that I could understand after looking through the questions that were previously asked on this subject. My TA tried to help me with this for about an hour and couldn't figure anything out.</p> <p>First of all, this is where the error takes me when the program compiles</p> <p>...
1
1,547
Error installing package "lifecycle" (while trying to install ggplot 3.3.0, R 3.5.3)
<p>I am using <code>R: 3.5.3 on Windows</code></p> <p>I want to install <code>ggplot2</code> (current version 3.3.0). It seems that the package <code>ggplot2</code> needs another package <code>lifecycle</code>, which I cannot successfully install due to errors. I've tried to install <code>ggplot2</code> with all depen...
1
1,389
How to avoid creating the same object reference multiple times?
<p>Imagine that I have some classes that looks like this:</p> <pre><code>class Car { private Image carImage; public Car(int imageIndex) { switch (imageIndex) { case 1: carImage = generateCarImage(1); break; # and so forth } } } class Audi extends Car { private ...
1
1,246
how to resolve java.lang.reflect.InvocationTargetException struts2 with hibernate
<p><strong>how to resolve java.lang.reflect.InvocationTargetException struts2 with hibernate i used struts2 with hibernate when i call the hibenate method it displaying error please help me. this code is not working on tomcat server 7.0 when i tested it in main class its working fine</strong></p> <p>my action method c...
1
4,101
BadMethodCallException: Method App\Http\Controllers\UserController::getAuthenticatedUser does not exist
<p>When i try to Get the authenticated user data from API i get this error: BadMethodCallException: Method App\Http\Controllers\UserController::getAuthenticatedUser does not exist. in file D:\OpenServer\OSPanel\domains\Pumpkin\vendor\laravel\framework\src\Illuminate\Routing\Controller.php on line 68 Please help to fix ...
1
2,125
Frustum Culling, implementation
<p>I am currently trying to implement frustum culling (again) for my world. My world consists of chunks with the size 16x256x16 (x, y, z):</p> <pre><code>Frustum frustum = Frustum(engine.proj * engine.view); foreach(chunkc, chunk; chunks) { vec3i w_chunkc = vec3i(chunkc.x*16, chunkc.y*256, chunkc.z*16); AABB...
1
4,915
How to return input values from callModule function in shiny
<p>I am currently trying to modularize my shiny app based on <a href="http://shiny.rstudio.com/articles/modules.html" rel="noreferrer" title="this tutorial">this tutorial</a>. In my actual app, I have two <code>selectInput</code> that allow the user to select the first and the last quarter-end date, based on which some...
1
1,057
Android - How to change color in setColor
<p>I want to create a drawing app, and it works clearly but it is still far away from my goal.</p> <p>Here's my code:</p> <pre><code>public class MainActivity extends Activity { DrawingView dv; private Paint mPaint; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreat...
1
4,337
makefile and multiple file C++ template issue
<p>I've got a C++ template class split into two files using #include directive as suggested in this link --&gt; <a href="https://stackoverflow.com/questions/36039/templates-spread-across-multiple-files">Templates spread across multiple files</a></p> <p>For both files I've used the standard naming *.h and *.cpp. In the ...
1
1,135
MahApps Metro setting Window Border styles from App Resources
<p>I am trying to set Window Border styles for my MahApps Metro app. I have read the articles about how to set the different Border styles and I think I get it. However, I am trying to set the Border Style for all windows in my app to be the same (all Drop Shadow) and it doesn't seem to want to work.</p> <p>I have app...
1
1,215
connecting angularJS to plotly
<p>So I want to use angularJS to get data from a server and plot the data using Plotly. I am running a server in the background. The HTML I am using is shown below. I think it is pretty straight forward. </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Testign Plotly&lt;/title&gt; &...
1
1,588
Using Flot with multiple bars with orderbars.js and categories
<p>I am having trouble creating multiple bars with flot. There is a plugin that can be downloaded here: <a href="http://www.benjaminbuffet.com/public/js/jquery.flot.orderBars.js" rel="nofollow">http://www.benjaminbuffet.com/public/js/jquery.flot.orderBars.js</a> that makes graphs with multiple bars per x category like...
1
1,123
BASH: Convert multi lined (JSON) block into a single line string
<p>I have below JSON output written into "out" file and the content is as below.</p> <p>$ cat out</p> <pre><code>{ "columns": [ "Tests", "Errors", "Mean Test Time (ms)", "Test Time Standard Deviation (ms)", "TPS", "Peak TPS" ], "status": { "descripti...
1
1,047
Simple Drawer Navigation returning null pointer exception
<p>I'm trying to implement a drawer navigation for my app, but I can't even seem to get it started and I can't figure out why. It returns a null pointer exception at the setAdapter, but I don't understand since this is copy and past almost from android and other similar tutorials. Can anyone tell me what I'm doing wr...
1
2,321
Vue.js test:unit with test-utils and Jest : Nested component -Is it possible to mock the $emit(function) from child component?
<p>Given nested components</p> <p>the Heading.vue component {{ $t("lang.views.home.heading.btn__listen") }} play_arrow </p> <p>The nested child component AuioPlayer.vue</p> <pre><code> &lt;template&gt; &lt;d...
1
1,298
passing variables in form_open() in codeigniter
<p>Good day all. I'm new to codeigniter and I'm trying to pass a variable from one <code>view</code> page to another. But I get error and after a lot of tries still couldn't figure it out.</p> <p>This is the <code>Model</code> code:</p> <pre><code>function get_post($postID){ $this-&gt;db-&gt;select()-&gt;from('kh...
1
1,106
Parsing XML with Namespaces C#
<p>I have been working on parsing this XML data all day. It seems like my problem is namespaces. I thought a had a glimmer of hope with my last website <a href="http://www.codeproject.com/Articles/30965/Read-XML-with-Namespace-resolution-using-XLinq-XEl" rel="nofollow">http://www.codeproject.com/Articles/30965/Read-XML...
1
1,823
Merging multiple sorted arrays in C
<p>Trying to merge 8 pre-sorted arrays. I'm fairly new to C, but this is what I've come up with so far. Needless to say it doesn't work. What I can't figure out is why. I've based it off the C++ mergesort implementation <a href="http://www.algolist.net/Algorithms/Merge/Sorted_arrays">here</a> and tried to extend it to ...
1
1,470
Any way to set barrier at a distance constraint layout or adding margin to a view the side with no constraint?
<p>To set a background to a group of views in constraint layout, the idea is to create a View item and constraint it to the boundaries of the extreme views. But incase a group is only dependent on the right-side constraint, there is no way to add margin to the left side, hence the group of views to which a background i...
1
2,527
Angular 6- Dynamically change css properties for *ngFor elements on variable change of same component
<p>please see below image. I have list of p tags on canvas. Just below canvas, I have number of colours and font sizes. </p> <p><a href="https://i.stack.imgur.com/DY8y3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DY8y3.png" alt="enter image description here"></a></p> <p>Below is my scenario</p>...
1
1,653
Bundler not working: in `[]': undefined method `[]' for false:FalseClass
<p>I'm having some troubles with my Rails app after installing (and removing) Compass. <code>bundle install</code> gives me the following:</p> <pre><code>/Users/[..]/.rvm/gems/ruby-1.9.2-head@rails3beta/gems/bundler 1.0.0.beta.2/lib/bundler/settings.rb:10:in `[]': undefined method `[]' for false:FalseClass (NoMethodEr...
1
1,054
Overflow auto is not working with flex container
<p>I'm trying to make a simple chat window where the messages are anchored to the right, and bottom of the window. I want the chat window to scroll when messages overflow out of the window.</p> <p>I'm using flexbox to position the messages, and giving the window an <code>overflow-y: auto;</code>. For some reason that ...
1
1,109
Compile init.mp4 and audio.mp4 that has segment timeline
<p>I am trying to complie init.mp4 and its audio file using copy /b init.mp4 + audio.mp4 complie.mp4 </p> <p>It is compiling but, its not able to play on vlc and on ffmpeg play.</p> <p>When I checked the mpd file, I see for audio it has </p> <p></p> <pre><code> &lt;SegmentTemplate timescale="48000" me...
1
1,918
Matplotlib- Any way to use integers AND decimals in colorbar ticks?
<p><strong>The issue</strong></p> <p>I have a plot and I need the colorbar ticks to be larger since I'm adding this plot to a multi-panel plot &amp; the tick labels will be hard to read otherwise with everything so condensed. My problem is that if I make the labels bigger, they start running into each other near the e...
1
1,034
useEffect does not re-run when the params changes
<p>I have 6 links (home, world, politics, business, technology, sports) on my navbar, and I only want the &quot;section&quot; param to be one of these values. If other value of &quot;section&quot; is entered, it will show a &quot;page cannot be found&quot; message.</p> <p>All 6 links are working correctly. useEffect re...
1
1,430
How to show and hide custom error messages with jQuery Validate every time an error occurs on an input field?
<p>this is how I am trying to validate my form: HTML:</p> <pre><code>&lt;form class="am-form amSignUpF"&gt; &lt;!-- Name --&gt; &lt;div class="amSULabelCont"&gt; &lt;label for="name_f-0"&gt;Name&lt;/label&gt; &lt;/div&gt; ...
1
4,632
Android bluetooth connection with an obd2
<p>Till now my app can discover make discoverable and all these.When i press the device's name for example of my near cellphone(which i have opened the bluetooth) it appears in my listview fact that i want.After when i press it ,i have the classic error &lt;&lt; "W/BluetoothAdapter: getBluetoothService() called with no...
1
6,244
Compiling Haskell "Hello World" on Mac Snow Leopard - crt1.10.5.o not found
<p>Just trying to compile some trivial Haskell, but its not finding the c runtimes, despite the fact that <em><strong>they're right there</strong></em>: </p> <pre><code>$ cat hello_world.hs main = putStrLn "hello, world" $ ghc --make hello_world [1 of 1] Compiling Main ( hello_world.hs, hello_world.o ) Li...
1
3,948
Invalid signature. Expected signature base string, JAVA
<p>We are using this piece of code to send request on aweber via oAuth</p> <pre><code>long unixTime = System.currentTimeMillis() / 1000L; OAuthRequest request1 = new OAuthRequest(Verb.GET,"https://api.aweber.com/1.0/accounts/1111/lists/1111/subscribers", service); request1.addBodyParameter("ws.op", "create"); request1...
1
1,259
Android ScrollView troubles inside relative layout
<p>In my android app I need a layout as shown below</p> <p><img src="https://i.stack.imgur.com/H5Zz4.png" alt="enter image description here"></p> <p>A relative layout is used as the parent layout inside I use 4 relative layout to arrange the contents- header layout 1,header layout 2, content layout(objRLScrollView -...
1
3,469
PySide: How to set an SVG icon in QTreeWidget's item and change the size of the icon?
<p>I have a UI that is using SVG icons in Nuke 8. While setting icons with the SVG files works fine, I cannot seem to find a way to change the size of the icons to a larger size in Qt. I have tried setting the icon's size and then load the SVG file, setting the icon on a widget and then place the widget in the QTreeWid...
1
1,712
Angular-Strap Error: [$injector:unpr] Unknown provider: $datepickerProvider
<p>I am learning AngularJs and there are a lot of new terms or which I am beginning to understand however this one I can't seem to figure out what I am doing wrong. </p> <p>All I am trying to do is use Angular-Strap to load a datepicker on my page. <a href="http://mgcrea.github.io/angular-strap/##datepickers" rel="no...
1
2,344
Overflow or underflow in the arithmetic operation
<p>I am new to C#. I am getting this exception at the end of my program:</p> <pre><code>An unhandled exception of type 'System.ArithmeticException' occurred in mscorlib.dll Additional information: Overflow or underflow in the arithmetic operation. If there is a handler for this exception, the program may be safely c...
1
2,221
GridView with custom ImageAdapter doesn't update after dataset changes
<p>I'm implementing a gallery of images with support for multiple item selection. The main layout is a <code>GridView</code> which uses a custom <code>Adapter</code>. Every displayed item is a combination <code>ImageView</code> + <code>CheckBox</code>. If several checkboxes are checked I want to uncheck them all simply...
1
1,789
Convert hex strings to integers
<p>Visual Basic 2010: Recently in one of my projects I have been tasked with reading several data fields in hex. Each field is three characters long. So this is what I have been doing:</p> <pre><code>'Read the hex value and convert it to decimal Dim hexVal as string = "38D" Dim intVal as integer = Convert.ToInt32(hex...
1
1,360
Tensorflow CNN model always predicts same class
<p>I have been trying to develop a CNN model for image classification. I am new to tensorflow and getting help from the following books</p> <ul> <li><p>Learning.TensorFlow.A.Guide.to.Building.Deep.Learning.Systems</p></li> <li><p>TensorFlow For Machine Intelligence by Sam Abrahams</p></li> </ul> <p>For the past few w...
1
6,597
Mock GPS location issue
<p>I'm developing an APP that get user specified latitude,longitude, and altitude, then fake this GPS location on the phone, and show that I am at that location in google map. I have the required permission on manifest file and mocked location is enabled in developer settings.</p> <pre><code>LocationManager lm = (Loca...
1
4,338
Create dynamic table rows in PDF document using the pdf package
<p><strong>Background</strong> My Flutter app uses the <code>pdf/pdf.dart</code> package to create a PDF document which displays information from a Firestore database collection. The PDF document contains a table. I would like to dynamically and programatically create one row in the table for each record in that Firest...
1
7,637
Failed to exec Python script file '/home/dev/project/project/wsgi.py'.Exception occurred processing WSGI script '/home/dev/project/project/wsgi.py'
<p>I am trying to host my django website on a VPS provided by Hostinger. The server is running on Ubuntu 20.04 64bit. I got the website to run without apache2 by running the command <code>python manage.py runserver</code> <br> After I set up the apache2 server I am getting the 500 internal server error. I checked the e...
1
5,494
Trying to merge 2 tables together to look like 1
<p>I have a table that I broke out to two tables because I need to have the scrolling functionality only span the top table. The bottom table is a textarea box. What I need to do is make the bottom table blend right into the top table to looks as if its all 1 table while maintaining 2 tables. Maybe by modifying the b...
1
1,431
Insert two inputs into one column in mySQL with PHP
<p>I am a beginner to php and mySQL and I am currently using dreamweaver for the GUI to help me learn. </p> <p>I am trying to create a member registration form to register users into database. What I aim to do is to have the username be generated from the first and last name of the user. For example: First name: John...
1
1,121
Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'
<p>I am able to connect to Azure Cache for Redis with the following Spring Session configuration:</p> <pre><code>&lt;bean id="redisPassword" class="org.springframework.data.redis.connection.RedisPassword"&gt; &lt;constructor-arg index="0" value="xxxxxxxxxxxxxxxx"/&gt; &lt;/bean&gt; &lt;bean id="redisStandaloneCon...
1
1,490
AFNetworking Get full http response
<p>I am querying my server using <code>AFNetworking</code>, the latest - to date - version.</p> <p>My server side PHP is sending a PHP related error but I am unable to see what the error is ( so I can debug it) as AFNetworking is expecting a JSON.</p> <p>Could anyone tell me how could I see the full HTTP result. I'v...
1
1,724
How to structure Tensorflow model code?
<p>I am having difficulty finding how to structure my Tensorflow model code. I would like to structure it in the form of a Class for ease for future reuse. Also, my current structure is messy and the tensorboard graph output have multiple "model" inside.</p> <p>The following is what i have currently:</p> <pre><code>i...
1
1,520
org.openqa.selenium.SessionNotCreatedException
<ol> <li><p>I am getting error org.openqa.selenium.SessionNotCreatedException: once i execute the code </p> <p>package SignUp;</p> <p>import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.BeforeT<c...
1
2,330
Error evaluating expression with multiple Database in iReport
<p>I need to generate the report using iReport and I am trying to get the data from 2 different databases. I followed this <a href="http://www.packtpub.com/article/jasperreports-using-multiple-relational-databases-to-generate-report" rel="nofollow">article</a> by (Bilal Siddiqui, author of JasperReports 3.6 Development...
1
2,507
create a form edit function php
<p>I created a function to display the content of a table. This is the function:</p> <pre><code>function query_tabel ($sql){ $query = $sql; $result = mysql_query($query); $kolomen_tellen = mysql_num_fields($result); if (!$result) { die("Error Query: " . mysql_error()); } print "&lt;tabl...
1
1,167
Using NgRx (with ngrx-actions library) within an Angular 6 library
<p>I am trying to split up an Angular application with multiple modules into multiple (separate) Angular libraries (using <a href="https://github.com/angular/angular-cli/wiki/stories-create-library" rel="noreferrer">this guide</a>), so I can use these libraries within multiple Angular applications.<br> Currently the pr...
1
2,381
Compute FAST features - openCV Python
<p>I am using openCV 3.1.0 in Python 2.7.<br> I have successfully detected keypoints using the FAST detector. Now I would like to compute the features for each of these points using the FAST.compute() method.<br> However I did not manage to have this function running, it returns : </p> <pre><code> Traceback (most rec...
1
1,330
how to tell proguard not to obfuscate certain method names in my class?
<p>An external collections library that I'm using allows me to execute a where method on a list of custom objects. It needs the method/property name that I want to filter on and it takes it as a string. Because of obfuscation being done, the method doesn't seem to exist.</p> <p>I'm trying to tell proguard not to obfus...
1
1,863
Why am I getting this compile error?
<p>I need to preface this with I am not allowed to use an IDE in class, I must use TextPad to compile and run. Any help would be greatly appreciated.</p> <p>There are two files at play here, one called Account and the other called Lab4B. The assignment is to create and use the following files: Lab4B.java = source code...
1
2,954
Yii2 active form, please wait message while submitting with ajax
<p>I'm using Yii2's advanced template, and looking for a way to display a dialog with 'Please wait...' message while sending an login form to the server.</p> <p>Here is my active form code:</p> <pre><code> &lt;?php $form = ActiveForm::begin([ 'id' =&gt; $model-&gt;formName(), ...
1
1,128
Displaying a tooltip for each Combobox item when the list is opened C# WPF XAML MVVM
<p>I'm developing an application in C# MVVM My question is about adding a tooltip for each item that the ComboBox is binded to. Since there are two items only I want it to show the tooltip whenever I open the dropdown and hover my mouse over one of the items , like this: </p> <p>if I hover my mouse over the first elem...
1
1,169
Open fragment from adapter RecyclerView
<p>i have some troubles with my app. I have recyclerView with CardView. And i want to open new fragment with description of info... But it doesn't matter. </p> <p>This is my adapter</p> <pre><code>public class RVAdapter extends RecyclerView.Adapter&lt;RVAdapter.DataViewHolder&gt;{ //here private OnRecyclerViewItemCl...
1
2,993
primefaces in-cell-editing control not update data in database
<pre><code>@Named(value = "viewtable") @ManagedBean @ViewScoped public final class viewtable implements Serializable { ArrayList&lt;viewbean&gt; dlist = new ArrayList&lt;viewbean&gt;(); ArrayList&lt;Master&gt; mlist = new ArrayList&lt;Master&gt;(); public ArrayList&lt;viewbean&gt; getDlist() { re...
1
5,477
pyspark 2.3.2 : dataframe --> shift rows with 1, by a column --> on a column with dates
<p>Best</p> <p>At this moment I'm experimenting with pyspark 2.3.2.<br/> And I would like to shift a column based on a certain column (group by).</p> <p><strong>Input:</strong></p> <pre><code> id timestamp logintype start_sessie timestamp_prev 0 3 2016-02-09 09:36:57.217 INTERN True ...
1
1,589
request.auth.uid seems to always be null in Cloud Firestore rules
<p>I must be missing something really basic here... but any time I make a call to my Cloud Firestore db and I try to institute any kind of rules for security, they always fail. </p> <p>Doing something like </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class...
1
1,160
how to pass MVC model to a UI-bootstrap modal
<p>I am trying to use a Angular/bootstrap modal to edit MVC ApplicationUser scaffolded views. I have a found a few examples, they are mostly jquery. I found one that works well using jquery-ui. I want to be consistent with my modals so I need to make it work with angular-ui or plain bootstrap. I am not sure how this is...
1
2,385
Robot Framework Collections.Remove Values From List removes all values
<p>I am spliting some output into a list, then I am trying to clean the list since there are some values I do not need on the list. I want to remove any list item that is not a node or a date; however, the Remove Values From List keyword returns an empty list. Any sugestions would be greatly appreciated.</p> <pre><cod...
1
1,078
JWPlayer Javascript API for Android Webview
<p>I'm trying to get JWPlayer to return an alert when a few specific events happen from a flash player playing a local video. If you notice from the code below, onComplete, JWPlayer should return an alert, which can then be intercepted by onJsAlert from setWebChromeClient so I can do stuff with that information. Am I d...
1
1,429
Boundary Fill Algorithm in Opengl
<p>The algorithm goes into recursion. It prints out blue lines on the polygon but at a particular location (X=397,Y=98). The color doesn't get printed at the pixel and then goes into a recursion for the same pixel and its neighbors. </p> <pre><code>#include&lt;GL/gl.h&gt; #include&lt;GL/glu.h&gt; #include&lt;GL/glut.h...
1
1,211
Failed precondition: Python interpreter state is not initialized. The process may be terminated
<p>I am trying train my images. This data's size is 50.000 images.</p> <p>My images properities are:</p> <p><a href="https://i.stack.imgur.com/bkU75.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bkU75.png" alt="enter image description here" /></a></p> <p>If i should change my images properities, ho...
1
4,505
Android the fastest way to load and play sound in application
<p>I'm working on a project in which I have to load 6 different sounds in one activity and play all sound on button click.The sound file are not so big,but the problem is that maybe they will be more.So my question is which is the fastest way to load sound files in a single activity.For test purposes I used res/raw fol...
1
1,409
Magento Install script never runs
<p>I am trying to create a custom table using custom module. I have been following <a href="http://alanstorm.com/magento_setup_resources" rel="nofollow">Alan Storm's article</a> to create a custom table</p> <p>This is my folder structure</p> <pre><code>CM Tablecreation etc &gt;&gt; config.xml (has 1.6.0.0 as the ve...
1
1,755
Getting inner tag element inside an "each"
<p>I've been messing around with different forms and tables, now I need something that takes data from table tr and td field, runs a if statement on each fetched item, and outputs text inside the form, depending what was found in td fields.</p> <p>So right now I have something like this, which doesn't do anything usef...
1
1,299
fluent nhibernate mapping issue: many-to-one...could not insert: [Entity]
<p>I have a one-to-many relationship between Foo and Bar and I cannot perform an insert (I've only tried select and insert so far...select seems to be working just fine, insert fails every time).</p> <p><strong>Table Definitions:</strong></p> <pre><code>CREATE TABLE [Bar]( [Id] [int] IDENTITY(1,1) NOT NULL, [DateFiel...
1
2,746
How to change Map on Click Leaflet
<p>I have a simple code below that will show a map in leaflet and here it is</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;!-- saved from url=(0054)http://leafletjs.com/examples/quick-start-example.html --&gt; &lt;html&gt;&lt;head&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;meta ch...
1
2,776
How do I programmatically add EditTextPreferences to my PreferenceFragment?
<p>I am new to Android, so I need a little guidance on how to <strong>programmatically</strong> add <strong>EditTextPreference</strong> objects to my <strong>PreferenceFragment</strong>.</p> <p>I am pulling in a list of values from a web service. I have saved them successfully to my <strong>SharedPreferences</strong>,...
1
1,052
Retrofit 2, same name different data type JSON Parsing
<p>I am trying to parse a JSON response from a server, If there are changes to in the query sent in post method I will get first one as response, if not I will get the second one as response.</p> <p>1:</p> <pre><code>{ "status": 1, "data": { "firstname": "First Name", "lastname": "Last Name", ...
1
1,270
Loading records into Dynamics 365 through ADF
<p>I'm using the Dynamics connector in Azure Data Factory.</p> <h1>TLDR</h1> <p>Does this connector support loading child records which need a parent record key passed in? For example if I want to create a <code>contact</code> and attach it to a parent <code>account</code>, I upsert a record with a null <code>contact...
1
1,077
Django 'No such table:" for custom user profile, why?
<p>I'm tearing my hair out trying to figure out why my custom user profile view no longer works. I'm using django-allauth, and have customised my user profile by creating a model with one-to-one field to the user. However, my view is throwing the error:</p> <pre><code>OperationalError at /profile/ no such table: user...
1
1,307
marginal effects of mlogit in R
<p>I am new to R, and I don't understand yet completely the logic of its calculations...</p> <p>I cannot overcome my problem with the help from previous posts either.</p> <p>I have a data set of about 600 observations for 11 variables. I have successfully run the multinomial model on it, however I cannot achieve the ...
1
4,272
Use ng-model in href
<p>Angular is new to me. I try to make a link which contains a dynamic <code>href</code> attribute.</p> <p>So far, I read that using <code>ng-href</code> instead of <code>href</code> was a good practice. But, when I try this : </p> <pre><code>&lt;a target="_blank" data-ng-href="{{myUrl}}"&gt;Follow this URL&lt;/a&gt;...
1
1,197
How to Properly Close Raw RestClient When Using Elastic Search 5.5.0 for Optimal Performance?
<p>Am using a Spring Boot 1.5.4.RELEASE Microservice to connect to an ElasticSearch 5.5.0 instance using the low level Rest Client that ElasticSearch provides.</p> <p>pom.xml</p> <pre><code>&lt;parent&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-parent&lt;/...
1
3,133
JPA LockModeType.PESSIMISTIC_WRITE doesn't work as expected. App without keys, reads snapshot of database at locking
<p>I have two apps running identical code, querying the same Oracle database with the help of hibernate.<br> There is a table that keeps emails to be sent.<br> Both apps run a scheduler that query a column on this table for "QUEUED" string (which marks emails to be sent), create and send emails and at the end, update, ...
1
1,223
JSP and Beans: where to place class files
<p>I am new to jsp, and a have a question regarding jsp and beans.</p> <p>I created the following java file as a bean, compiled it and saved the java and the class file in <em>C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jspfiles\WEB-INF\classes</em> folder:</p> <pre><code>package test; public clas...
1
1,142
Implement Siamese Network in Keras Issue
<p>I was trying to implement a Siamese Network with Keras, I have two input data,</p> <p>X1 shape: (10000, 52) X2 shape: (10000, 600)</p> <p>Each sample in X1 is assumed similar to sample in X2. For example: X1[0] is similar to X2[0]. Thus, I used the "cosine similarity" when two inputs are merged. I was trying to us...
1
1,032
The following assertion was thrown during performLayout():
<p>I'm new to flutter and I'm following up with this <a href="https://www.udemy.com/course/flutter-dart-the-complete-flutter-app-development-course/" rel="nofollow noreferrer">Udemy</a> course but I face this error when I run the app on Android emulater on windows machine it shows the button on the whole screen </p> <...
1
7,586
How to update a List view in real-time Firebase - Android
<p>I have been having some trouble updating my Friends list(mListView) view in real time in the application, it only seems to update when it is launched. I know its a matter of an update function but i do not know what to use. </p> <p>(I'm rather new to firebase and android, and i'm still learning about them.)</p> <p...
1
1,630
MVC3 routing for any url
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/619895/how-can-i-properly-handle-404-in-asp-net-mvc">How can I properly handle 404 in ASP.NET MVC?</a> </p> </blockquote> <p>Suppose I have a site www.microsoft.com</p> <p>And I try to open the url </p> <pre>...
1
1,071
Deploying app on Docker with Tomcat and PostgreSQL
<p>I have an testApp.war which I'd like to <strong>deploy on Tomcat through docker</strong> (docker is on 10.0.2.157). My testApp will work properly only with <strong>postgres DB</strong> and specified user testUser and password testUserPasswd. I built such a structure: </p> <pre><code>. ├── db │   ├── Dockerfile │   ...
1
1,982
Vue + Laravel 5.4 + Mix - "Cannot Get /"
<p>I downloaded started with a Larvavel + Vue component called <a href="https://github.com/ratiw/vuetable-2-with-laravel-5.4" rel="noreferrer">vuetable-2</a> (very nice BTW).</p> <p>Firstly, <code>php artisan serve</code> works. Everything is fine, except that it doesn't hot deploy changes to .vue files.</p> <p>I've ...
1
1,146
LibGDX HelloWorld project crashes when run on Android emulator
<p>I've been trying to get the Hello-World project to run as part of learning LibGDX. Using the Nightly Build (libgdx-nightly-20140322). However, I have become quite frustrated because the hello-world-desktop project will work when run as a Java Application, the hello-world-html project will Run As a Web Application. B...
1
1,789
Run javascript after AJAX is finished
<p>I am using an ajax call to load mycontent.php into my modal dialog box. I am using AJAX, but the 3 javascript tags are not being included or being executed in the mycontent.php when it is in the modal window. </p> <p>I have tried the eval statement but doesn't seem to work.</p> <p>Here is my code:</p> <p>main.htm...
1
1,748
AWS LAMBDA Connect to RDS SQL database using SqlConnection
<p>How can I connect to a RDS SQL server database on a ASW Lambda function? </p> <p>This code below work fine on regular C# console app project but giving me error on AWS Lambda project once I deployed it to AWS and tried to invoke it: </p> <pre><code>public static string CS = "Data Source=host-name, 1433; Initial Ca...
1
1,398
Understanding a malloc_history dump
<p>If you have ever asked how can I debug releasing/alloc issues in objective-c, you will have came across these environment settings that can help track the problem down:</p> <ul> <li><code>NSZombieEnabled</code> - Keeps abjects around after release, so you can get pointers etc.</li> <li><code>MallocStackLogging</cod...
1
1,605
How to get Facebook Additional Permissions with android sdk 3.0 beta?
<p>I'm developing a simple Facebook app for Android using the official sdk beta 3.0.</p> <p>I would to get additional permissions for user logged (user_likes, user_interests, friends_likes, etc...) without using the LoginButton (as explained here <a href="https://developers.facebook.com/docs/howtos/androidsdk/3.0/log...
1
1,308
Passing an array of C-strings to Fortran (iso_c_binding)
<p>How can I pass an array of C strings (<code>char* cstrings[]</code>) to a Fortran subroutine?</p> <p>Question <a href="https://stackoverflow.com/questions/9686532" title="Arrays of strings in fortran-C bridges using iso_c_binding">Arrays of strings in fortran-C bridges using iso_c_binding</a> is definitely related,...
1
1,188