title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
I can't save data to a Mongodb database MEAN Stack application
<p>so when I created a collection for user LOGIN/LOGOUT it worked perfectly fine I was able to get user data in and out of the database using Express app, mongoose and, but when I tried to create another collection it created the collection but doesn't save the data to MongoDB </p> <p>this is the component to save my ...
3
1,034
Conky Issues: previous wallpaper or application background, double text, old conky text overlap
<p><a href="https://i.stack.imgur.com/SaWhI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SaWhI.jpg" alt="enter image description here"></a></p> <p>I am using Ubuntu 18.04, having multiple issues with my Conky setup.</p> <p><b>First</b>, I use Variety, changing wallpaper application. Now Conky ta...
3
2,680
UIButtons not sticking to UIView edges
<p>Hi and thanks in advance. I'm attempting to bind two UIButtons to a <code>UIViewController</code>'s <code>view</code> like so:</p> <p>First by declaring them:</p> <pre><code>fileprivate var deleteButton: UIButton = UIButton(type: .system) fileprivate var addButton: UIButton = UIButton(type: .system) </code></pre> ...
3
1,614
How to determine the optimal configuration for batch inputs in tensorflow?
<p>Please first see the following code snippets: </p> <pre><code>def inputs(filenames, batch_size, num_epochs, shuffle=True): with tf.name_scope('input'): filename_queue = tf.train.string_input_producer(filenames, shuffle=shuffle, ...
3
1,024
Android MapActivity leak in my Activity's Context related to mNetworkHandler
<p>I'm having difficulties tracking down the cause of a leak from my use of MapActivity. I have been using the Eclipse Memory Analysis tool for the past few months to track down various memory leaks within our application, but I can't seem to find a how-to that explains the usage of MapActivity and how to clean up the ...
3
2,436
Error 500 jsf.js link in spring webflow + myfaces app
<p>I develop spring and myfaces app and it produces nonaccessible link to jsf.js. Generated page contains link which points to dispatcher servlet:</p> <pre><code>&lt;script type="text/javascript" src="/myapp/app/javax.faces.resource/jsf.js?ln=javax.faces&amp;amp;stage=Development"&gt;&lt;/script`&gt; </code></pre> <p...
3
1,207
while loop to compare files with each other
<p>I achived result from for loop as below. Only thing to avoid is to compare same files.</p> <pre><code> $ for (( i = 0; i &lt;= 9; i++ )) ### Outer for loop ### &gt; do &gt; &gt; for (( j = 0 ; j &lt;= 9; j++ )) ### Inner for loop ### &gt; do &gt; echo &quot;awk -f cmp.awk SPM_CC&quot;$j&quot...
3
5,072
How To Mock redux-promise-listener Middleware And final-form
<p>I setup <code>react-redux-promise-listener</code> <a href="https://github.com/erikras/react-redux-promise-listener" rel="nofollow noreferrer">(repo)</a> for <code>react-final-form</code> via <a href="https://medium.com/@erikras/getting-a-promise-from-redux-actions-d92787894368" rel="nofollow noreferrer">author instr...
3
2,694
How to pass a PHP id to create two bootstrap button diffrent id's and use its for jquery functin?
<pre><code>&lt;?php include_once('config.php'); $sql="SELECT * FROM events"; $result = mysqli_query($con,$sql); if(!$result) { echo "no record found"; } else { ...
3
1,452
C# gridview column order reset
<p>I am trying to dynamically reorder gridview columns based on the needs of a user for a web application. </p> <p>Say for example the default table starts with the columns A B C D ... W X Y Z.</p> <p>The user brings up another table but it must have the order C D E F... Y Z A B.</p> <p>The current implementation I ...
3
1,308
CycleJS makeHTTPDriver _add is not a function
<p>Just getting started with CycleJs and I've hit a wall with this error. </p> <p>Basically, I'm running the <a href="https://github.com/cyclejs/cyclejs/tree/master/examples/isomorphic" rel="nofollow noreferrer">isomorphic example</a> and adding on HTTP Driver so I can send requests</p> <p>server.js</p> <pre><code>f...
3
2,106
iOS AFJSONRequestOperation returns empty results
<p>I am trying to retrieve data using from a JSON request using AFJSONRequestOperation. On success I am able to successfully retrieve the data but unable to complete the request and forward the data further for processing.</p> <p>Following is my code</p> <pre><code>-(void) retrieveBrandList:(void (^)(NSArray *brandLi...
3
1,220
mysql on docker: Can't start server : Bind on unix socket: Invalid argument
<p>I have docker compose yaml:</p> <pre><code>version: &quot;3.8&quot; services: mysql: image: mysql/mysql-server:8.0.27 container_name: javanotifications_mysql volumes: - ./persistence/mysql_db:/var/lib/mysql </code></pre> <p>and after running</p> <pre><code>docker compose up </code></pre> <p>I got...
3
1,641
CakePHP 3.x DB mapping, BelongsToMany vs HasMany+HasOne
<p>I have three tables in DB: (1) <em>offers</em>, (2) <em>offer_rows</em>, (3) <em>products</em>.</p> <p><em>offer_rows</em> will always point to a <em>offer</em>, and possibly (but not always) to a <em>product</em>. <em>offer_rows</em> has also other fields such as price etc.</p> <p>Same with (My)SQL:</p> <pre><co...
3
1,175
MVVM and DI with nested controls
<p>I've been using MVVM for WPF quite a while now but I've always been doing it this way:</p> <p><strong>ExampleView.xaml.cs</strong> (namespace: Example.Views)</p> <pre><code>public partial class ExampleView { public ExampleView() { InitializeComponent(); var viewModel = new ExampleViewModel...
3
2,394
why is this OCMock verify failing?
<p>Not sure if I'm using OCMocks correctly, or if it's because I'm using the cocoapods version and not the .lib file.</p> <p>Here's the test(s)</p> <pre><code>#import "MWViewControllerTests.h" #import "MWViewController.h" #import "OCMockObject.h" #import "MWGoogleTrends.h" #import "OCMockRecorder.h" @implementation ...
3
1,079
React POST Request (MERN Stack)
<p>I am having trouble posting form data to MongoDB when testing on my local development environment. The endpoint that I am trying to post to is https://localhost:5000/users/add and I have been able to successfully post data to MongoDB using a REST API client and have also verified that my frontend is hooked up to my ...
3
5,066
Xamarin Http Requests only work on iOS Simulator
<p>I am using <code>system.net.http</code> to build a web service layer for my app. I started building this on an iphone simulator (as I develop for iOS first) and everything is working. I checked in my code and then started testing on other devices and nothing works... I get the same exception on a physical iOS device...
3
1,118
Code wont work in browser but works in snippet tool
<p>I can get my code to work in the snippet tool, but once I try to run this in my own browser when I click on the $12 button, no alert will show up. Also, how can I get the alert to grab the header name so it displays "You have selected 1 gram of Skywalker". </p> <p>The only buttons I have working so far are 12 and 3...
3
6,017
How to make card style menu in android
<p>I want to add card style in my app like this</p> <p><a href="https://i.stack.imgur.com/OMzV9.png" rel="nofollow"><img src="https://i.stack.imgur.com/OMzV9.png" alt="enter image description here"></a></p> <p>i use in my app mysql database so i need to make like this cards and put my data from database in it now i u...
3
1,078
Symfony2 Collection of Choises
<p>I'm making my first Symfony web app. Now after creating a couple of forms I found some problem creating a form with a collection of choises.</p> <p>Creating a collection of TextTypes is very easy and is working in a couple of my forms. Now when I create a collections of ChoiseTypes it does not show anything on the ...
3
2,126
Why does my code make ID null
<p>I have a program that gets values from a database through a stored procedure. What it does is gets the values, downloads an image and then uploads it to a server. and after upload the run another stored procedure just to update the table to the new url.</p> <p>Now it uploads a few images correct then all of a sudde...
3
2,454
SQL - How to combine 3 dates from 3 different tables (BigQuery)
<p>Need to have one view for each agent, and want to aggregate all dates to include all metrics</p> <p><strong>Basic Information:-</strong></p> <ul> <li><p>In the <strong>productivity</strong> table carries the information like as follows:</p> <pre><code> | Handled_DATE | Agent_Email | Handled | Missed ...
3
1,448
Add empty row if the condition is false
<p>Given the dataframe below:</p> <pre><code> Row|Address_StoreHours_Phone_RemoveHrTag| +---+------------------------------------+ | 1| Ph 148-01 Metro P...| | 2| Store Hours: 7:00...| | 3| &lt;hr class=&quot;dashed&quot;/&gt;| | 4| Ground Floor Vict...| |...
3
1,683
How to open another python file from tkinter in a specific condition(like user wins)
<p>According to my advisor, she wants me to give a more fancy window when the user wins. I asked whether there is a way to play gif on stack overflow before, and there is a way according to some people. Now I have finished writing the script for the gif which is going to play (actually I referred that from a website be...
3
1,146
Putting the value of a variable from class to the variable of my form
<p>I have a class names <code>intersection_regular_island</code> and I created a new instance of it in <code>form1</code>. I wanted to re-declare a certain variable in that class so I tried this code</p> <pre><code>Public Class form1 Dim a As New intersection_regular_island Dim penToUse As Pen = a.leftA_pen ...
3
1,528
Linux - Extract core utilization for a single process to a file
<p>I am trying to figure out how to extract the cpu core utilization for a SINGLE process in linux and parse it. I know that I can get the overall core utilization via top and then press "1". I am already able to parse that. However, now I want to do the same thing for a single process. I tried it with ps and calculati...
3
1,197
Limit clicks on button based on user role
<p>I have a restricted page with entries for only-members in WordPress, and on this page there is a &quot;View more&quot; button for each entry. I'm looking for a solution, to limit clicks for that specific button depending on which user role the user has assigned. The button has its own class &quot;.se-mere-knap&quot;...
3
2,005
autokriging and SpatialPixel grid file
<p>I am trying to use autoKrige in automap package. My data looks like</p> <pre><code>head(LL12) Location Longitude Latitude percent 1 L1 16.48476 -28.60737 1.0000000 2 L3 16.90045 -29.24154 1.0000000 3 L4 16.99268 -28.44906 0.6363636 4 L5 17.06871 -29.67825 1.0000000 5 L6 17.09...
3
1,067
How to create foreach loop value dynamically table mpdf?
<p>I am beginner PHP developer. I'm using mPDF library and I'm trying to write a code which will create multiple table value showing. The problem is that always only the first value only showing.</p> <p>I can't figure out how to solve this. Would someone lead me on the right path? My logic is:</p> <ul> <li>I have one...
3
6,864
Fluent NHibernate Many to Many insert issue
<p>I have UserModel and RoleModel. I thinked thay may be in many to many relationship 'cause Users can have more than one role and a role can has more than one User. I make it Many to many but when i try insert a user i'm getting error like:</p> <blockquote> <p>INSERT statement FOREIGN KEY constraint "FK6209393F7EB4...
3
2,076
Adding zoom in/out and crop for photo
<p>I am trying to add capability to zoom in/out and crop a profile image before saving change but I am not sure how to go about this. Here below are my relevant codes:</p> <pre><code>- (void)viewDidLoad { ... NSString *urlString = [User sharedUser].avatar; NSURLRequest *imageRequest = [NSURLRequest reque...
3
1,451
Android Activity to test Backlight
<p>I am trying to make a simple blank app that tests the backlight of the phone. The activity works, it turns the brightness up to 255. However the app never shuts down, when I add onDestroy() at the end it crashes. It also throws exceptions anywhere the Settings.System... is called but does not crash. I would also...
3
1,153
CView as tab on CMFCTabCtrl, does not draw invalidated area (on dragging)
<p>I have a <code>CWinAppEx</code> MDI application, VS2017. The <code>ChiledFrame</code> is covered with (I altered the names for this question) <code>CMyView</code>:</p> <pre><code>pDocTemplate = new CMultiDocTemplate( IDR_MYTYPE, RUNTIME_CLASS(CMyDoc), ...
3
1,230
AngularJs nexted view
<p>Hi I am going to start a project. In tablet page contains list of items on left side and item detail on right side as shown in below image.<img src="https://i.stack.imgur.com/Mjcma.png" alt="enter image description here"></p> <p>In mobile It shows list of items on one page and detail of activity on another page, li...
3
1,082
How to send tile and toast push notification at a time in windows phone using php code?
<p>I am developing for Windows Phone 8. I need to send toast and tile push notification at a time using PHP. I can receive toast or tile notification successfully but I need to combine these notifications. Can anyone tell me how to solve this issue?</p> <p>My code is given below</p> <pre><code>&lt;?php class Win...
3
1,259
getting value from a list
<p>I have a xml that looks like this:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;feed xmlns="http://www.w3.org/2005/Atom" version="1.0" xml:lang="en"&gt; &lt;title type="text"&gt;Google Hot Trends&lt;/title&gt; &lt;subtitle type="text"&gt;What are people searching for on Google today?&lt;/sub...
3
2,504
HOW TO FIX Mongoose 5.11.8 model.find() ERROR Operation `thanks-leaderboards.find()` buffering timed out after 10000ms
<p>How to solve model.find() function produces &quot;buffering timed out after ... ms&quot;? I'm using mongoose v 5.11.8, npm v6.14.8 and mongodb v3.6.3</p> <p>Here's the code.</p> <p>thanks-leaderboard.js</p> <pre><code>const thanksLeaderboardSchema = require('../../schemas/thanks-leaderboard-schema.js') const thanksS...
3
1,510
Conditional [required] attribute in Angular 9 form - ExpressionChangedAfterItHasBeenCheckedError
<p>I have a radio button like so:</p> <pre><code>&lt;div class=&quot;col-sm-6 col-md-4&quot;&gt; &lt;div class=&quot;form-group&quot; [ngClass]=&quot;{ 'is-invalid': saCitizen.invalid }&quot;&gt; &lt;label for=&quot;saCitizen&quot;&gt; Do you have South African citizenship?: &lt;/label&...
3
1,363
issues with setting up javafx package controllers
<p>I am trying to organize my project , but when I try to load my controller , and I got <code>java.lang.reflect.InvocationTargetException</code> but I have the right path. how can I fix this?</p> <pre><code>&lt;AnchorPane id="AnchorPane" prefHeight="570.0" prefWidth="784.0" styleClass="root" xmlns:fx="http://javafx.c...
3
2,060
one to many relationship in app engine is not working properly when used in android client
<p>I am trying to use one to many and many to one relationship in modelling the relationship of student and teacher. When I try to persist teacher with students in android app, teacher and students are persisted but I get the following error. And then when I try to list all students I get the same error. Error log on a...
3
5,772
non-broadcastable output operand with shape (30,1) doesn't match the broadcast shape (30,30)
<p>implement a new function to calculate the new objective function and gradients</p> <p>Got following error for the Stochastic Gradient descent. I don't know what seems to be the problem as my matrix is already 30 by 1</p> <pre><code>def stochastic_objective_gradient(w, xi, yi, lam): d = xi.shape[0] yx = yi * ...
3
1,197
How can I show my modal outside my sidenav? I'm using :host. Angular
<p>I have a :host with hostlistener() in my navmenu-component.ts. I made this so I can have a sidemenu which slides out of my sidenavbar when i press a button.</p> <p>I want to call a modal to edit something. So I have made a modal in the navmenu-component.html. Whenever I call my modal it shows in the collapsable menu...
3
7,935
Can't find error to not being able to compile into device
<p>I coded some scripts using some assets from the store and when i'm trying to compile the program to the Android phone i'm getting errors on compilation.</p> <p>I changed SDK versions from 26 to 25, tried running the build on Graddle, Internal and Using Legacy SDK Tools, re built the entire project, updated assets, ...
3
5,734
Couldn't find World with 'id'=
<p>I have a World parent object and a State child object. I'm trying to create a new State object and rails isn't finding the world id. I'm trying to link to the new state form from the world show page, and the url shows <code>.../worlds/1/states/new</code> so why is this not picking up on the parent id? The error is s...
3
2,656
Parallax effect is laggy an jumps
<p>Ok. Im trying to make a parallax website that works on every browser. I have achieved the effect on all browsers but it is laggy and jumpy in some browsers. Is there any way to make it smooth?</p> <p>Here is my code</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"...
3
3,181
how to append data one by one in html table using jquery
<p>my problem is when i insert a new data it append on the same <code>&lt;td&gt;</code> of the <code>&lt;table&gt;</code>, i want to append data in a new block , so that the data/item is displayed one by one just like snapdeal ex:-<a href="http://www.snapdeal.com/search?keyword=micromax&amp;santizedKeyword=&amp;catId=&...
3
3,168
DismissViewController sometimes causes the program to freeze or crash
<p>I have the following MonoTouch program:</p> <pre><code>using System.Drawing; using MonoTouch.Foundation; using MonoTouch.UIKit; using System; namespace Experiment { // This is just for the example, I use a singleton in my app to do this. public class AppSettings { public static bool IsLoggedIn ...
3
1,320
How would I stop an random colour randomise from picking the same colour twice
<pre><code>&lt;script&gt; function randomColour(){ var colour=[]; colour[0]= '#edf2fb'; colour[1]= '#d7e3fc'; colour[3]= '#c1d3fe'; colour[4]= '#d1d1d1'; colour[5]= '#e1dbd6'; colour[6]= '#e2e2e2'; colour[7]= '#f9f6f2'; colour[8]='#ffc09f'; ...
3
1,352
Eliminate duplicates based on 2 dates in a dataframe
<p>I have this sample dataframe:</p> <pre><code>df &lt;- data.frame(ID = c(&quot;5&quot;,&quot;5&quot;,&quot;5&quot;,&quot;5&quot;,&quot;5&quot;,&quot;5&quot; ,&quot;5&quot; ,&quot;5&quot;,&quot;5&quot;,&quot;5&quot;,&quot;5&quot;,&quot;14&quot;,&quot;14&quot;,&quot;14&quot;,&quot;14&quot; ,&quot;14&quot;,&quot;14&q...
3
1,637
How can I use the Kivy Filechooser to display server's files (remote computer)?
<p>I'm creating a client server program with the idea of a shared files cloud. I want to add a screen which is displaying the server side files (to create a specific folder on the server which is the "cloud" and display it on the client's side, the client should be able to edit files, add files and open files).</p> <p...
3
2,468
How to have a delete flow in Mule Application?
<p>I just came to know about this Mule ESB and started playing with it. I checked few youtube videos and trying a basic flow which will just 1. delete a file or folder, 2. copy a file from source to destination, 3. move a file from source to destination, 4. logs a message, but unfortunately none is working. It Says my ...
3
10,871
Make this code run for several excel files
<p>So I want to run this script for several excel files, so instead of df3, I will import several excel files, and merge all the results into a dataframe.</p> <p>Here is the main code example</p> <pre><code> import pandas as pd d = {'City': ['Tokyo','Tokyo','Lisbon','Tokyo','Tokyo','Lisbon','Lisbon','Lisbon','Tokyo','...
3
1,853
Android error String can't be converted to JSONArray
<p>This is my main activity. I cannot login as it says java.lang.String cannot be converted to JSONArray. What could be the error? I cannot resolve it.</p> <p>This is my main activity.java :</p> <pre><code>ppublic class MainActivity extends AppCompatActivity { private EditText email, password; private Button btn_logi...
3
2,962
C# display specific item in listview
<p>I'm doing an assignment involve searching in a listview. I have a textbox and a listview that bind to a list&lt;>. And I want to display the item in the listview which is similar to what I type in the textbox, or at least scroll to it. Here is my code: XAML code:</p> <pre><code>&lt;Page xmlns="http://schemas.micros...
3
1,495
Why does Rust's documentation for methods use a separate builder struct as an example?
<p>I was going through the <a href="https://doc.rust-lang.org/book/method-syntax.html" rel="nofollow">struct and method docs</a> and was wondering why the docs use this example:</p> <pre><code>struct Circle { x: f64, y: f64, radius: f64, } impl Circle { fn area(&amp;self) -&gt; f64 { std::f64:...
3
1,149
AVCaptureDevice Low Light Boost Does Not work
<p>The low light boost property of AVCaptureDevice is not enabling when it should. I am testing this on an iPhone 5 with iOS 6. Here's the code:</p> <pre><code> // finds a device that supports the video media type AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; NSArr...
3
1,126
How to use datalist input with Formik?
<p>I am trying to use datalist in a formik form with ReactJS. I am trying to show a list of array dynamically in datalist option in formik form. So, I have done as below:</p> <pre><code>&lt;Formik initialValues={initialValues} validationSchema={AddEmployeeFormValidationSchema} onSubmit={props.handleSubmitMethod} &gt; {...
3
1,115
How to use an Actor based source with an Akka Graph?
<p>I'm attempting to send data via an actor to a runnable graph that contains a fan out.</p> <p>I define the source as :</p> <pre><code>final Source&lt;Integer, ActorRef&gt; integerSource = Source.actorRef( elem -&gt; { if (elem == Done.done()) return Optional.of(CompletionSt...
3
2,312
ASP.NET: How to avoid situation that dynamically created button event refreshes the page instead of doing relevant code
<p>(<strong>Original text updated!</strong>)</p> <p>I am slowly getting into ASP.NET, currently trying to make a small webforms app for a hackathon.</p> <p>The page that I am having problems with is supposed to show a list of companies to which person can apply.</p> <p>Since the list of those companies can change, comp...
3
2,308
Exception while dispatching incoming RPC call java.lang.NoSuchMethodError: com.google.gwt.user.server.rpc.RPCRequest
<p>I have GWT page with Hibernate and MySQL setup already. I'm running it in SuperDev mode and here is the error I get after compiling the page:</p> <pre><code> [WARN] Exception while dispatching incoming RPC call java.lang.NoSuchMethodError: com.google.gwt.user.server.rpc.RPCRequest.&lt;init&gt;(Ljava/lang/reflect/M...
3
2,478
Kubernetes kube-dns Pause container in crashloop with Error adding network: failed to Statfs \"/proc/54226/ns/net\":
<p>I have a Kubernetes onebox deployment with the following (containerized) components, all running as <code>--net=host</code>, with kubelet running as a privileged Docker container with the kubernetes flag <code>--allow-privileged</code> set to true.</p> <pre><code>gcr.io/google_containers/hyperkube-amd64:v1.7.9 "/...
3
2,584
Iterate through deeply nested object to generate html optgroup/options
<p>I am trying to get the keys of my object and create an optgroup if it contains children and then make children options of the optgroup. If a child is also a object than i want to nest another optgroup within parent optgroup. Below is my object myTypes</p> <pre><code>let myTypes = { women: { tops: ...
3
5,355
Apache commons command line execute method is returning exit code -1 when running in tomcat application and throwing ExecuteException
<p>Using Aapche commons CommandLine library, i am trying to execute an openssl command in a web application running in tomcat in SLES OS. below is the code snippet -</p> <pre><code> CommandLine cmd = new CommandLine(&quot;/usr/bin/openssl&quot;) .addArgument(&quot;genrsa&quot;) .addA...
3
1,097
Strapi. Server wasn't able to start properly
<p>I created new tables in the admin panel, but soon the project closed and there were a lot of errors in the console - [</p> <pre><code>2022-08-09 10:17:22.950] debug: ⛔️ Server wasn't able to start properly. [2022-08-09 10:17:22.951] error: CREATE TABLE `_knex_temp_alter937` (`id` varchar(255) PRIMARY KEY AUTOINCREME...
3
1,177
How to animate sliding on an image slider
<p>I wrote this code for a image slider but i don't know how to make a sliding animation when swapping throw photos</p> <p>So, if anyone can help I would be grateful.</p> <p>html :-</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot;&gt; &lt;meta name=&q...
3
1,059
Run maven project-info-reports:dependencies with a pom.xml
<p>I want to include my dependencies.html into a warfile in a multi module project. When i run mvn project-info-reports:dependencies the folder site gets created with the dependencies.html file in it. Is there a way to do this with a pom.xml file? Things that did not work have been:</p> <pre><code>&lt;build&gt; &lt;...
3
1,467
How to parse into records?
<p>I have a asked a question before, which I learned from. I discovered that the implementation resulted in a list of strings rather than a list of records. The file I am parsing has records that looks like;</p> <blockquote> <p>sp|P30375|1A01_GORGO Class I histocompatibility antigen Gogo-A*0101 alpha chain OS=Gorill...
3
1,341
Finding a non related child element from a $this click event
<p>I have a jquery code that when the user clicks on the menu button (Example: Donation button) it changes the article section of the page (Not related directly as a child to the menu section) pulling new information with javascript. The DOM does not show this new information so when I try to apply a CSS class, it does...
3
1,199
Why isn't ul using full nav's height?
<p>I'm having some problems creating a header. <a href="https://imgur.com/a/qxnzusq" rel="nofollow noreferrer">Here</a>, my ul is not using the full height of the nav, but the nav IS using the full height of the header. I want to fix this in order to center vertically the text. Thank you.</p> <p>(edit) When I use <code...
3
1,064
Get icon of installed apps on WebOS TV LG
<p>I'm making a sample about remote on LG TV using webOS with ConnectSDK. I can remote with some basic command, get the list of installed apps on the TV. The data of each item like this:</p> <pre><code>[&quot;type&quot;: native, &quot;handlesRelaunch&quot;: 0, &quot;uiRevision&quot;: 2, &quot;deeplinkingParams&quot;: {...
3
1,143
How best to expose properties of a native Android control in a control derived from a Xamarin forms view
<p>Fair warning: I am new to Android, Xamarin Forms and MVVM (though I am a seasoned desktop Windows application developer). And though I have used SO as a valuable resource for years, this is my first posted question. So I know I have a lot to learn, and I would appreciate any feedback.</p> <p>For my project, I need a...
3
1,742
When I run "vagrant up" on Windows 10 then I get errors
<p>I use Vagrant 1.9.2 and PHP 7.1.3</p> <pre><code>C:\Users\LUONG HUNG\Code&gt;vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==&gt; default: Box 'base' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: &gt;= 0 C:/HashiCorp/Va...
3
4,486
C# Unexpected performance results for different methods of parsing byte[] as hex string
<p>I have created 3 different methods for converting a <code>byte[]</code> into a hex string using the following format: <code>{ 0xx2, ... }</code> (<a href="https://dotnetfiddle.net/UOHHXo" rel="nofollow noreferrer">Working Demo</a>)</p> <pre><code>using System; using System.Diagnostics; using System.Text; public cl...
3
2,375
Xamarin.iOS SIGSEGV when trying to discover services of a connected BLE peripheral
<p>I'm making a BLE cross-platform app in Xamarin, but fail to discover services of a connected peripheral.</p> <p>Here's the stripped down code from the shared-project, just to be able to reproduce this issue;</p> <pre><code>internal class BleTransport { //Private stuff private CBCentralManager Central = nul...
3
5,891
Android external online database
<p>i have an online database in phpMyAdmin. At this time I can query him and I can get the result in a TextView but i want to get the value of each cell, how do I?</p> <p>This is an example</p> <pre><code>[{"Monday":"","Tuesday":"","Wednesday":"","Thursday":"","Friday":"","Saturday":"","Sunday":"","id":"","info":""},...
3
1,126
VB.NET ActiveDocument.Hyperlink Command failed when adding hyperlinks
<p>When i try to add an hyperlink to the activedocument I get the exception &quot;Command failed&quot; every single time. I added <code>word.ActiveDocument.Hyperlinks.Add(Anchor:=word.Selection, Address:=&quot;www.google.com&quot;, TextToDisplay:=&quot;TEST&quot;)</code> to add an hyperlink to the existing document wi...
3
1,434
How to increment the value of a variable in a loop for insert sql statement using pyodbc
<p>I'm attempting to pull employee timecard data from an API and subsequently insert it into a sql database. I want the code to look at the data, isolate the punches in and out for a specific date and then insert them into the sql database. The only catch is that the database requires a sequence number "SEQ_NO" to in...
3
3,939
FilteredRowSet filters not applying cumulatively
<p>I am trying to filter data from my database, which consists of NHL game statistics. I want to create a FilteredRowSet which holds all of the games between two specific teams. I have filters to do so, but the filters will not apply cumulatively. When I apply the second filter, it cancels out the first one. </p> <...
3
2,023
Dask: Where do SSHCluster workers log to? (KilledWorker exception)
<p>I wrote a little starter script for dask <code>SSHCluster</code> and <code>LocalCluster</code> which works great (see below). </p> <p>But when I let it run and a worker crashes with the </p> <p><code>KilledWorker: ("('from-delayed-pandas_read_text-read-block-head-1-1-from-delayed-f0f78ffea007aeeccc7a9e04880d0195',...
3
1,768
Authentication in ASP.NET MVC
<p>I begin with ASP.NET and I have a problem with authentication.</p> <p>This is the code:</p> <p>web.config </p> <pre class="lang-xml prettyprint-override"><code>&lt;system.web&gt; &lt;authentication mode="Forms"&gt; &lt;forms loginUrl="~/users/login" timeout="3000" /&gt; &lt;/authentication&gt; &lt;comp...
3
1,029
Running Spring Hibernate Project in Tomcat as Standalone and Embedded Tomcat in STS IDE
<p>I have an issue when i run my application as a standalone web application using Tomcat. </p> <p>I use spring , struts 2 and hibernate . </p> <p>The weird part is when i run the application from the embedded tomcat in my STS IDE it is running fine.</p> <p>In both scenarios the web application runs fine but certain...
3
5,898
Need help in the following to reduce the execution time
<p>This is just a part of the code, it takes around 5 min for each iteration ( for a single el) to execute. </p> <p>The length of fieldvalues is in the order of 1e6. I believe that multiple appends are eating away the time, Is there any alternative way for this ?</p> <pre><code> PK2=[] ...
3
1,042
How to pass a generic interface to a method where it is reified?
<p>I have a generic interface</p> <pre><code>public interface MyInterface&lt;T&gt; { T method(T input); } </code></pre> <p>and a couple of implementations of it, via ordinary classes like</p> <pre><code>public class MyClass&lt;T&gt; implements MyInterface&lt;T&gt; { @Override public T method(T input) { ...
3
1,279
retrieve repeateritem via jquery
<p>I want to retrieve the repeateritem via jquery to my saveorder function on codebehind</p> <p>This is my jquery code:</p> <pre><code> function saveOrder(controlid) { var id = controlid.name.replace(&quot;$btnSave&quot;, &quot;&quot;); console.log(id) $.ajax({ type: &quot;POST&quot;...
3
2,012
Compiler trying to instantiate std::vector<double const> for no obvious reason
<p>This one has me baffled.</p> <p>Here's the sample code in its entirety:</p> <hr> <pre><code>#include &lt;vector&gt; struct Unit {}; template &lt;typename DataType&gt; class Vector : public std::vector&lt;DataType&gt; { public: typedef std::vector&lt;DataType&gt; base_t; Vector() = default; explici...
3
2,058
Fill a table with elements from another table
<p>I've a problem with my java project. I have two text files to insert in postgresql with the jdbc driver. the two files are of this type: 1) snp (rsid, chr, boolean value) 2) locus (rsid, mrna, gene, class)</p> <p>I have to get two tables of this type: 1)Snp (id serial, rsid varchar, chr varchar, has_sig boolean) 2)...
3
1,940
Multiple Directive Resource Contention Error in Angular
<p>I have such definition of my custom directive: </p> <pre><code>crmModule.directive("some", [function() { return { restrict: "E", replace: true, scope: { itemModel: "=model" }, templateUrl: "/Static/CRMpages/user-details-templates/preview-template.html", link: function (scope, element...
3
1,806
HelpNDoc online help not showing correct buttons and correct contents functionality
<p>When I visit this URL using Firefox on my PC:</p> <p><a href="http://help-msa.publictalksoftware.co.uk/msa-options-calendars.html" rel="nofollow noreferrer">http://help-msa.publictalksoftware.co.uk/msa-options-calendars.html</a></p> <p><a href="https://i.stack.imgur.com/ipJCD.jpg" rel="nofollow noreferrer"><img sr...
3
1,107
Confused with logic of login flow in AWS Developer Authenticated Identities
<p>I believe that I have an incorrect flow for implementing Developer Authenticated Identities and I keep hearing and doing different things on the web. So I thought I'd present my entire flow and hear what the correct way of doing this was and present some questions and errors at the bottom. </p> <p>Initially, I have...
3
4,411
how to oauth twitter with Twitter4J api
<p>I want to authenticate twitter with Twitter4j api but it gives following error:</p> <pre><code> 09-13 12:12:09.223: WARN/System.err(677): oauth.signpost.exception.OAuthNotAuthorizedException: Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures di...
3
2,134
Problem to generate nested ul lists using PHP
<p>I am working on a front-end web app where a nested unordered list would be used for the jQuery plugin mcdropdown.</p> <p>Here is the data structure from PHP: a nested array of arrays :</p> <pre><code>Array ( [0] =&gt; Array ( [fullpath] =&gt; ../foil/alphanumeric/ [depth] =&gt; ...
3
1,312
React all comment options appear by one click
<p>i have this code where I'm looping <code>post</code> array to extract <code>comments</code></p> <pre><code> const [commentOptions, setCommentOptions] = useState(false); return( ... {post.comments.map((comment) =&gt; ( &lt;div className=&quot;comments&quot; key={comment._id}&gt; ...
3
1,049
Django: store variables in database and pass them between different modules
<p>In my model I'm trying to calculate my user age and create for them an id code and I want this information to be saved in my database, but &quot;age&quot; and &quot;id_code&quot; fields are missing in my database. If I change the name of the function age and id variable are not computed at all.</p> <pre><code>**acco...
3
1,890
Issue with include option in clang++
<p>I'm trying to compile a program with an "API" of my own. Let's say that my project's structure is:</p> <pre><code>main.cc ... api/ include/ *.h lib/ libsdl2ecs.a </code></pre> <p>I know that compilers (or at least gcc and clang) have options to add directories to the include and lib paths (...
3
5,357
html template to pdf with images
<p>I am using django and trying to render invoice pdf, pdf is generating successfully but images are not in pdf.</p> <p>Actually I want to add barcode image, so I dynamically generated a <code>.svg</code> file, but don't know how to put it into pdf.</p> <p>Here is what I am doing ..</p> <pre><code>from io import Byt...
3
11,025
R - Quantstrat Issue with prefer and getPrice
<p>Currently working on a strategy in quantstrat using Quandl futures data. However, when I try to applyStrategy() after adding indicators, signals and order rules, I receive the following error message, <code>Error in getPrice(mktdata, prefer = prefer) : object 'prefer' not found</code>. <code>applyIndicators()</code>...
3
1,132
Making falling objects come at random angles in AS3
<p>I am making a missile defense type of game and am trying to get the missiles to fall at random angles. I also need the bullet image to turn at the angle I am shooting at. I am very unfamiliar with angles in AS3 so I need some help.</p> <p>Code: <pre><code> import spark.components.Image; ...
3
2,976
Can't seem to get GetRelativeRotation() to work in Unreal C++
<p>According to the unreal documentation, GetRelativeRotation is a member variable of USceneComponent. However, when I run my code, it tells me that it's not. I have tried switching my Camera to a UCameraComponent(as it was originally before I checked the documenation) and still no luck. Any ideas? heres the code for t...
3
1,346
How to access Camunda Cloud from inside corporate network
<p>I’m building a PoC with Zeebe</p> <p>I was able to run from my local pc the Java client at <a href="https://github.com/camunda-cloud/camunda-cloud-get-started" rel="nofollow noreferrer">https://github.com/camunda-cloud/camunda-cloud-get-started</a></p> <p>Now, when I try to run it from my corporate PC, I’m getting t...
3
2,214