title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Only the last XMLHttpRequest returns data
<p>I am retrieving some files from the server and adding them to a file[] so I can read them later. However, when I read multiple images, I only get the data from the last image. The rest are null.</p> <pre><code> var files = []; var imageURLs = []; for(var i = 0; i &lt; image.length; i++){ i...
3
1,119
simple tcp echo program not working when SDL included?
<p>I have this weird problem where whenever I <code>#include "SDL/SDL.h"</code>, my windows socket program doesn't execute. It compiles but it doesn't do anything when run. When I remove the <code>#include "SDL/SDL.h"</code> header, compile and run, it starts working again??.</p> <p>I'm trying to make both SDL and my ...
3
1,376
Powershell Export CSV to XML
<p>I need to convert a csv file to XML that contains 7 columns:</p> <pre><code>network;server;instance;type;date;time;state toto;titi;APPLINT1;LOG;10/02/2021;13:00:10 - During in min : 1;Succeeded toto;titi;APPLINT1;VIDEO;12/02/2021;13:20:10 - During in min : 1;Succeeded toto;tutu;SPTPROD1;DIFF;10/02/2021;14:30:10 - Du...
3
7,228
Grant Provider OAuth state mismatch when accessing the two application modules simultaneously on same browser and user is not logged in yet
<p>I have been trying to implement Single SignOn(SSO). I have different frontend application modules which are running on different domain and they all utlize a single API server.</p> <ol> <li>SSO Server <a href="https://sso.app.com" rel="nofollow noreferrer">https://sso.app.com</a></li> <li>API Server <a href="https:/...
3
1,747
Spring Boot SOAP WebService Integration Test with BasicAuth
<p>I have a SpringBoot SOAP WebService annotated with @RolesAllowed(&quot;SOME_ROLE&quot;). The production code works correct, i.e. if I send a SOAP-Request with the header &quot;<strong>Authorization: Basic ENCODED_USERNAME_PASSWORD</strong>&quot;, service pass, if this header is not provided, then 401 comes back.</p>...
3
2,843
POST variable is not working in SESSION
<p>I want to pass the value of <code>login.php</code> POST variables <code>$user_key</code> &amp; <code>$user_id</code> to another file <code>statusdata.php</code> for which I have used session. In <code>statusdata.php</code> I want to use those session variable value in the SQL query of <code>statusdata.php</code> fil...
3
1,840
iBeacon App only working sometimes, transmitting never working on iPhone 5
<p>I am having a really weird problem here. I am trying to build an app to detect beacons. I don't have any real beacons yet so I am testing with an iPhone 5 and an iPad 3. The strange thing is that the transmitting is only working on the iPad, the iPhone doesn't work as a transmitter even though I used the same app on...
3
2,291
Inserting values into tables
<p>I have created some values and I want to insert them into the database but I find that some data are inserted and others are not, I don't know why </p> <p>Here is my code</p> <pre><code>SqlConnection con = new SqlConnection(); con.ConnectionString = "Persist Security Info=False;Integrated Security=SSPI;database=DB...
3
1,824
BeanIo nested list fixedlength marshal and unmarshal
<p>I can't figure out why nested object aren't clearly parsed from BeanIo.</p> <p>The parsing is based on &quot;fixedlength&quot;, so positional.</p> <p>Give these pojos:</p> <pre><code>@Record(minOccurs=1) @Data public class Address { @Field(length=2)//,at=1) private String prov; @Field(length=6)//at=2) pr...
3
1,193
REACT connect 4 game - attempt to reset grid over setState but results in "undefined"
<p>I am trying to create a Connect of 4 game in React as an exercise. If i want to reset the grid or for displaying player points, a reset of my grid is required rather than simply reloading the entire page. In this case, dealing with my grid via state is a logical step, but after several attempts and variations, I'm u...
3
2,258
Selecting all <td> elements using javascript and jQuery
<p>I am trying to select all <code>&lt;td&gt;</code> elements that were created through Javascript and add a click event to them. In my code, I added the click event listener to all td's at the bottom of the fillTable() function after creating the td elements, however I am receiving an error stating &quot;addEventListe...
3
7,863
FB friend-selector frame is in https and cannot interact with hosting page in http
<p>I have implemented an invite your friends feature on a site.<br> Lately it stopped working (Due to the continues pleasure of the "stable" Facebook graph API...)<br> I'm trying to wrap my head around this one with no luck.<br> I get the following error whenever I interact with the friend selector frame:</p> <blockqu...
3
2,507
Adding a list of objects to a dictionary
<p>EDIT: This issue has been resolved. I guess I'll just leave this here for any future persons who need an example.</p> <p>This code takes in an input file, parses through it, passes the file to a class, stores the objects in a dictionary, and then writes out the objects in the specified format. Have any questions? I ...
3
1,708
Running Javascript in a Cloned Form
<p>I have implemented the extend form function. I am trying to run another javascript function within a cloned form but it doesn't work.</p> <p>If that bootstrap js runs, when a user selects a radio, the radio text would change as in data-complete-text attribute.</p> <p>The script has worked like a charm when it's no...
3
1,630
How do I solve django.db.utils.IntegrityError: UNIQUE constraint failed?
<p>How do I solve django.db.utils.IntegrityError: UNIQUE constraint failed? error code is django.db.utils.IntegrityError: UNIQUE constraint failed: Movies_comment.user_id, Movies_comment.tv_or_movie_id.</p> <p>This error occurs Comment(comment=form.cleaned_data[&quot;comment&quot;],user=request.user,stars=form.cleaned_...
3
3,775
does std::vector copy/move elements when re-sizing?
<p>I was messing around with move c'tors for a learning / refresh exercise and I came across something unexpected to me. Below I have a class <code>person</code> that contains a <code>std::string m_name;</code>. I am using this as a test class for copy/move c'tors.</p> <p>Here is the code for quick reference:</p> <pre>...
3
1,771
Linear predictor from predict.coxph from coefficients only
<p>I need to calculate the linear predictor of a Cox PH model manually.</p> <p>I can get continuous and binary variables to match the output of predict.coxph (specifying 'lp') but I can't seem to figure out how to calculate it for categorical variables with more than 2 levels.</p> <p>My aim is to assess calibration o...
3
1,289
Forms authentication and authorization that uses custom database tables? Asp.net web forms(C#).
<p>Hi i am currently creating a web forms asp.net website, i am trying to add forms authentication with the following code for the login page below but i am now unable to login. I have all the appropriate code in the HTML and the web.config file and i am not receiving any errors. I may be going about the authenticatio...
3
1,201
Efficient way to move item in javascript array in a specific position
<p>I'm looking for a way to reorder an array in javascript moving elements to a specific position. </p> <p>My array is:</p> <pre><code>[ { "id": 105142, "parent": null, "created": "2015-03-20T17:21:33.013+01:00" }, { "id": 105150, "parent": null, "created": ...
3
1,224
Struts 2 on GAE : Unable to set session values inside interceptor
<p>I am writing a Struts 2 interceptor in which I check if the user is valid or not. If not valid, the user is redirected to the Login page. But before that I'm trying to retrieve the URL, which the user has accessed to come here, and put it in a session variable, so that I could redirect him back there when logging in...
3
2,132
vue app will not grow to 100% height on media query
<p>Hi all I am using my vue router for a few pages, and my main container on the page will not set the height to 100% using this media query</p> <pre><code>@media screen and (min-width: 700px) { #signinContainer { height: 100%; } #signinContainer { height: 520px; } #mainContainer{ height: 100%; } ...
3
2,667
Getting user info using JOINs in Cosmos DB
<p>The following is my <code>Company</code> object that I store in Cosmos DB. I have all the essential information about employees in <code>Employees</code> property. I also have a <code>Departments</code> property that both defines departments as well as its members.</p> <pre><code>{ &quot;id&quot;: &quot;company-a&...
3
1,288
How to remove commas between a piped strings in a csv file in a eg |Ana "ana" Ana|, |adda,adda|
<p>I am working on an ssis integration and wrote a script task in c# for automating my imports from csv file to my DBs. It works great but I need help with removing commas from strings in pipes(|aaa,aaa| or |a|,|a|) in the csv. For example "Address, city wide". I want a function that can remove that comma(,). I would ...
3
1,737
Jsoup not parsing data from table
<p>I'm trying to scrape this webpage <a href="http://www.skysports.com/football/competitions/la-liga/table.I" rel="nofollow">http://www.skysports.com/football/competitions/la-liga/table.I</a> just want the name of teams from the table. I'm using Jsoup for this purpose. Here's my code</p> <pre><code>private class LoadD...
3
1,473
Randomly generating two nodes
<p>I am creating a mobile application in Swift 3's SpriteKit. I am trying to create two rocks that a character has to dodge. I have the random generation working with -></p> <pre><code>func createTopRock(){ var topRockChoice = [SKTexture(image: #imageLiteral(resourceName: "rockDown")), SKTexture(image: #imageLiter...
3
1,306
Is the collect function of Flow a block function in Kotlin?
<p>I hope to delete records by Id list and relative files with Room.</p> <p>I find the files can be deleted and the records can't be deleted when I run Code A</p> <p>I find the records can be deleted when I run Code B.</p> <p>It seems that <code>Log.e(&quot;My&quot;,&quot;Fire&quot;)</code> is not launched in Code A. I...
3
1,163
How to create a pivot table when column is sometimes NULL
<p>I have created a t-sql that I can use via command line that builds an HTML page off of my tables. The problem is that I cannot set the ANSI WARNING to OFF because of the following error:</p> <pre><code> Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/...
3
1,504
Horizontal Not Vertical Display?
<p>I have info pulled out of a sql database ( I know mysql is deprecated, I'll be switching soon ). Anyway, the info is automatically displayed vertically. Instead, I would like it to be displayed horizontally. </p> <p>Template.php (Part of it) I have to fix the nbsp, and I do realize I have a few errors.</p> <pre><c...
3
1,484
Write cleaner code for a dynamic object definition
<p>I'm using vue and trying to achieve a dynamic axios GET query which will be generated dynamically, based on what is filled in the search form. Right now I have this method in a single file component:</p> <p>UPDATE:</p> <pre><code>&lt;template lang="pug"&gt; div form(@submit.prevent="search") ...
3
1,807
Why a state is exiting while transitioning to one of its sub-states?
<p>I am trying to implement a state machine with nested states (as linked below) using Spring Statemachine (version 2.1.3).</p> <p><a href="https://i.stack.imgur.com/c7zbl.png" rel="nofollow noreferrer">Aimed state machine</a></p> <p>In the code below, I assume <code>stateMachineDepth3</code> corresponds to that mach...
3
2,959
Add additional plot to subplot plotly python
<p>I am pulling data in from a CSV, and plotting the data. I am plotting a series of digital signals, then putting points for when they change state. <img src="https://imgur.com/vzMtNGO" alt="Current Digital Plots"></p> <p>Now I am trying to add some text markers to a couple of the plots. Similar to this: <img src="...
3
1,133
Alexa Voice Service: Login with Amazon android
<p>While trying to implement login with Amazon for Alexa Voice Service, When the user clicks on the imageButton Browser View is being displayed and it gets closed automatically.</p> <p>The Following were displayed in the log cat.</p> <pre><code>12-13 18:25:09.352: D/com.amazon.identity.auth.device.appid.APIKeyDecoder...
3
1,471
Drop Down Menu Selection Not Being Sent To Database? Null value being inserted instead
<p>The HTML:</p> <pre><code>&lt;select name="Name" id=""&gt; &lt;?php while ($row = mysql_fetch_array($result)) { ?&gt; &lt;option value="&lt;?php $row['Name']; ?&gt;"&gt;&lt;?php echo $row['Name']; ?&gt; &lt;/option&gt; &lt;?php } ?&gt; &lt;/select&gt; </code></pre> <p>The PHP:</p> <pre><code>$Name=$_POST['Nam...
3
6,392
Unable satisfy constraints when changing multiplier in constraintWithItem
<p>I'm trying to get my container view working. The problem is when changing the multiplier to something diffrent than 0.5 I get :</p> <blockquote> <p>Unable to simultaneously satisfy constraints.</p> </blockquote> <p>for example, If I change *c2 multipier to 0.4 and *c8 to 0.6 I get the above error. But if I chan...
3
1,737
Use threejs to rotate an object so that it faces a random point at regular intervals
<p>I'm trying to use threejs to rotate an object so that it faces a random point at regular intervals. The code is below.</p> <pre><code>&lt;script type=&quot;module&quot;&gt; import * as THREE from 'https://cdn.skypack.dev/three'; import {OBJLoader} from 'https://cdn.skypack.dev/three/examples/jsm/loaders/OBJ...
3
5,147
TSQL for getting a list of all product groups and the products in the groups
<p>Get a list of all product groups and the products in the groups from a MS SQL Server. A product can exist in multiple product groups.</p> <p>What i have so far, before i got lost :(</p> <pre><code>With CTE_Products As ( Select ProductGroupNo, Name, ParentProductGroupNo From [dbo].[ProductGroups] Where Pa...
3
1,482
i2c byte write function, how works this code? I can´t understand complety
<p>Can someone explain me how works this lines</p> <pre><code>template &lt;class T&gt; ...const T&amp; value)... . . . const uint8_t* p = (const uint8_t*)(const void*)&amp;value; </code></pre> <p>on this code (i2c byte write for eeprom)</p> <pre><code>template &lt;class T&gt; uint16_t writeObjectSimple(uint8_t i2cA...
3
1,136
Can I get any suggestions on how to fix this C++ program on calculating data plans?
<p>I am a coding newbie who is perplexed and confused about how to make this program work.</p> <p>Display a menu to show the different data plans. Plan 1 is $39.99 per month with 450 included minutes. Additional minutes are $0.45 per minute. Plan 2 is $59.99 per month with 900 provided minutes. Additional minutes are ...
3
1,632
Transform transitions not working when combined with width changes
<p>I'm working on this mobile menu where you can expand and collapse different categories. When doing so, a sliding animation should be performed on the expanded submenu (when expanding) or on the top-level menu (when collapsing). </p> <p>The structure of the HTML is the following:</p> <pre><code>&lt;div class="slide...
3
1,048
Subtracting many arrays
<p>I have one big array circa 50 values like this (for example I used smaller array):</p> <pre><code> Array ( [Adam Małysz] =&gt; 1 [Justyna Kowalczyk] =&gt; 2 [Janne Ahonen] =&gt; 3 [Stefan Hula] =&gt; 4 [Ole Einar Bjoerdalen] =&gt; 5 [Jakub Janda] =&gt; 6 [Mariusz Pudzianowski] =&gt; 7...
3
1,160
getOwnPropertyNames ignores __proto__ on Firefox
<p><code>__proto__</code> is a property of <code>Object.prototype</code>:</p> <pre><code>Object.prototype.hasOwnProperty('__proto__'); // true </code></pre> <p>However, getOwnPropertyNames ignores it on Firefox:</p> <pre><code>Object.getOwnPropertyNames(Object.prototype).indexOf('__proto__'); // -1 </code></pre> <p...
3
2,548
Errors saving images to database
<p>I have a OpenFileDialog which will suppose to select photo and save it to database but the problem is when I access the class when the dialog result of the openFileDialog is OK it says that <code>no such table : PhotoFile</code> when the SavePhoto function is called with following arguments:</p> <p><strong>TODO(P J...
3
1,047
Flutter - Get location from another user and show it on a map for the customer user
<p>I'm devoloping an uber like app that I need to show the &quot;driver&quot; location to the user and track it in real time, I was able to track the location but just from the user and I'm out of ideias, tried watching some videos and getting some codes but its my first flutter app. Here's the current code that I'm us...
3
2,331
how to set update and delete button for every item in listview
<p>activity_main.xml</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" and...
3
11,686
Selection Sort for strings and integers at the same time
<p>Here is the task I have been set with:</p> <p>Create a text file named Names_ages.txt with the following content:</p> <pre><code>Jones 14 Abrams 15 Smith 19 Jones 9 Alexander 22 Smith 20 Smith 17 Tippurt 42 Jones 2 Herkman 12 Jones 11 </code></pre> <p>Each line is a person’s last name followed by a space and then...
3
1,175
Identifying the index of selected XML node from JTree
<p>I have a JTree where the input XML file is mapped into it. </p> <p><strong>library_system.xml</strong> </p> <pre><code>&lt;library&gt; &lt;user&gt; &lt;name&gt;Dinesh&lt;/name&gt; &lt;book&gt; &lt;info name="java"&gt;Java: The Complete Reference, 9th Edition&lt;/info&gt; ...
3
5,201
Tensorflow Image Translator (Pix2Pix)
<p>I need some help with this TensorFlow project. I would like to reprogram something like Pix2Pix. I encountered some problems, especially when reading in images and defining the TensorFlow graph. But first I created a folder ("Source/"), in which there are many pictures of different sizes. The CNN is now to be traine...
3
1,112
Not able to connect to bluetooth devices programmatically
<p>My aim is to connect to already paired bluetooth devices. I have got all the paired devices names and I am displaying them in a listview. When I click on any of the device name from the listview it should connect to that device if its within the range.</p> <p>Whenever I try to connect to the device by calling <code...
3
4,407
F#, R provider, R package tm and (almost) Ovid example
<p>Mind that I am a beginner in F# and R (more so), so possibly point me to RTFM or otherwise ;-)</p> <p>I have started looking into some text data mining with R, and the package tm.</p> <p>I have the following script in R, which by the way are very much like the example for Ovid analysis (replace "lgtext" with "txt"...
3
1,517
mysql union all not working
<p>Using the MySQL code below along with ORDER BY is not working. I've searched and tried various version of the code (UNION, UNION ALL, with brackets, without brackets, a SELECT wrapping all the SELECT UNION ALLs then sorting that) - no luck. Any other suggestions?</p> <pre><code> (SELECT FORMAT(lt.`rets_111`,...
3
2,308
Oracle SQL CASE statement pseudo column
<p>There are 2 tables - orders &amp; config_check.</p> <pre><code>create table orders (order_created date, cus_no varchar2(20), order_num number, pay_type varchar2(30), MFC date, prod_no varchar2(15) ); ...
3
1,753
AWK print only the lines which have dot
<p>How to print only the lines which contains dot(<code>.</code>) in the 5th column and remove the colon(<code>:</code>) at the end.</p> <p>I would like to avoid repeating use of awk with <code>|</code> rather would love to have do all trick's with single <code>awk</code></p> <p><strong>This is my command ouput with <c...
3
3,221
Return number of documents based on words in a field's string
<p>How can I return the number of documents that have more than 2 elements in the "words" list with more than 3 words in "word_combination". Is there a way to count the number of words in a string? </p> <p>Example: return document if (the length of "words" > 2) AND ("words.word_combination" has more than 3 words) </p...
3
1,048
Access buttons,labels and uiimageviews from GameViewController to GameScene
<p>In my GameViewController I have the buttons labels and everything setup. Under viewDidLoad() I have set the labels and everything to <code>.hidden = true</code> and my gameOver stuff is on my GameScene file and I cannot set the buttons labels to <code>.hidden = true</code>. The button is called backToMenu and if I t...
3
1,287
How to handle alert with HtmlUnitDriver in java?
<p>I'm trying to handle alerts event with HtmlUnitDriver, but I have some problems, and I would like to understand why. Here is the java code:</p> <pre><code>HtmlUnitDriver browser = new HtmlUnitDriver(true); browser.get("http://localhost:8001/index.html"); browser.findElementById("myButton").click(); try { WebD...
3
1,243
How to get last option value between multiple selects in jQuery
<p>I am having a problem to getting last selected option value in multiple select boxes the problem is, I have 4 select boxes you can see in the below image. I want to get the last option value through jquery. </p> <p>I have tried this code but not getting the last exact value.</p> <pre><code>$('.option').find('optio...
3
2,295
Javascript CSS - Menu with time (Help)
<p>I have this menu and I want to display Categories and Language when the hover is active and they go too More.. and click it to display the other down with time so it will display beautiful..when they will click it I want to display Less.. and the less will be at the end of the dropdon meny I dont know how to do it p...
3
5,180
Error injecting com.gwtplatform.dispatch.rest.client.ActionMetadataProvider
<p>I have the following problem:</p> <pre><code>12:45:47.505 [ERROR] [cGui] Error injecting com.gwtplatform.dispatch.rest.client.ActionMetadataProvider: Unable to create or inherit binding: No @Inject or default constructor found for com.gwtplatform.dispatch.rest.client.ActionMetadataProvider Path to required node: c...
3
1,567
Trying to calculate correct returns and set a constraints on the max and min invested in each asset using 'quad_form'
<p>I am trying to hack together some code that looks like it should print our risk and returns of a portfolio, but the first return is 0.00, and that can't be right. Here's the code that I'm testing.</p> <pre><code>import pandas as pd # initialize list of lists data = [[130000, 150000, 190000, 200000], [100000, 20000...
3
1,079
Swift - Singleton without global access
<p>I want to create a Swift Singleton without global access. The pattern which I want to create is to assure that always just one instance of a class exists but this class should not be accessible over the usual global <code>MyClass.shared</code> syntax. The reason for this is that I want the class to be fully and corr...
3
1,500
Morris graph not displaying
<p>I need to do a graph for each of the bootstrap tabs created, I have four tabs from four columns in my database and each tab should show the graph for that particular column. Here is the code to retrieve and echo the tabs required </p> <pre><code> &lt;?php require_once("../include/membersite_config.php"); ...
3
3,110
Custom class objects might be null. How can I tell my initializer this?
<p>I have a class I made that I fill with some JSON data. A couple properties in the class MIGHT be null in some cases. I thought I prepared for this but when I try to access the class and one of the properties are null I get an error <code>unexpectedly found nil while unwrapping an Optional value</code>. This error...
3
1,138
How can I get the value of a key which is into a hash that is into params hash in rails?
<p>When I edit the values using a form, rails calls update method and makes the following hash. How can I get the value of <code>v_tipo_control_id</code> which is into the <code>f_controls_attributes</code>'s hash? The <code>f_controls</code> values are got using <code>fields_to</code>.</p> <pre><code> Processing by ...
3
1,742
PlatformException when using Flutter share plugin to share files
<p>I'm trying to create an image from a widget and store it to a file. Then allow the user to share the image. We are using Flutter official share plugin: <a href="https://pub.dev/packages/share" rel="nofollow noreferrer">https://pub.dev/packages/share</a></p> <p>Here is my main logic:</p> <pre><code> void _convertRep...
3
1,093
How can I access the Openshift service through ClusterIP from nodes
<p>I am trying to access a Flask server running in one Openshift pod from other.</p> <p>For that I created a service as below.</p> <pre><code>$ oc get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE my-web-app ClusterIP 172.30.216.112 &lt;none&gt; 8080/TCP 8m $ oc describe ...
3
2,123
Google Maps with dynamic markers Circular tiling issue
<p><a href="https://i.stack.imgur.com/kUAO9.png" rel="nofollow noreferrer">Map with Markers</a></p> <p><a href="https://i.stack.imgur.com/kUAO9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kUAO9.png" alt="enter image description here"></a></p> <p>I am getting this map as a result of following sc...
3
1,224
HTML table in Tooltip not showing using Bootstrap 4.3.1
<p>After trying to set up custom HTML table in a <code>tooltip box</code> for a couple of hours, I realized the <code>Bootstrap</code> version seems to solve the problem. Indeed, this is perfectly working under <code>Boostrap 4.0.0</code> but not under <code>Bootstrap 4.3.1</code>. </p> <p>Is it a bug ? or am I missin...
3
1,574
SlidingMenu onclickItems(android)
<p>I use <a href="https://github.com/jfeinstein10/SlidingMenu/blob/master/example/src/com/jeremyfeinstein/slidingmenu/example/ExampleListActivity.java" rel="nofollow">this</a> library which works fine, but i dont know how to create if i click item 1 in menu output text, if i click item 2 in menu output text 2...</p> <...
3
3,044
Bootstrap Directory Grid
<p>Good evening,</p> <p>I'm trying to write a grid that would serve as a directory of employees. It would feature a thumbnail on the left, and name and title on the right. I'd like the name and title to be vertically aligned in the middle. Aside from the vertical alignment issue, I'm also having a problem that when th...
3
1,945
uploading (multiple)image with data in same form
<p>i'm trying to make this form with pdo where you can insert a a data and multiple image in the same form and currently, this is my problem: html:</p> <pre><code>&lt;form enctype="multipart/form-data" name="postHome" action="&lt;?php echo htmlentities($_SERVER['PHP_SELF'])?&gt;" method="post"&gt; &lt;tab...
3
7,353
CSS iOS-like radio button lags on IOS
<p>I've created ios like radio button, which works fine on desktop (even on IE8, thx to ie7.js), but not on IOS devices (I have tested on iPhone 4, iPhone 5s and iPad mini).</p> <p><strong>HTML</strong></p> <pre><code>&lt;span class="inp-text ios-like"&gt; &lt;input type="checkbox" id="checkbox" name="" checked="...
3
1,596
How to reproduce a Keras model from the weights/biases?
<p>I want to use the weights and biases from a Keras ML model to make a mathematical prediction function in another program that does not have Keras installed (and cannot).</p> <p>I have a simple, MLP model that I'm using to fit data. I'm running in Python with Keras and a TensorFlow backend; for now, I'm using an inp...
3
1,206
is there any way I could get 3 copies of invoice in codeigniter?
<p>I am trying to get 3 copies of invoice printed in codeigniter. I have done a method to get pdf of my invoice. Is there any way to get 3 copies of invoice printed in normal html? I have tried it in by getting normal html by clicking on 'view' and pdf version of it when I click on 'view in pdf'</p> <p>My View:</p> <...
3
3,308
How to parse relatively organized but not delimited text using Python?
<p>I'm trying to extract data from a text file which is formatted as shown in the picture. It includes list of surgeries and what I need from each case is: patient name, start time (time1), end time (time2), procedure type, and surgeon name. Here is the raw text. obviously patient and surgeon names are replaced by real...
3
4,563
Get inserted uniqueidentifier from table B when its inserted from Table A insert trigger
<p>I wasnt sure how to open the title but let me explain what is my problem.</p> <p>I have two tables and both of them used uniqueidentifier as Id and they are auto generated by newsequentialid()</p> <p>Now, when i make an insert to table B, it runes Insert trigger and i do some specific things inside this trigger an...
3
1,488
How do I avoid circular movements when placing a cube on the camera position, but a bit behind?
<p>So this is my code:</p> <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;three.js&lt;/title&gt; &lt;meta charset="utf-8"&gt; &lt;meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=...
3
1,835
.toggle() doesn't work but adds overflow: hidden
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() { $('.post__action.post__circle.share').each(function() { $(this).click(function() { $(thi...
3
11,655
How to make a global head* for a LL to be used by all methods
<p>I was wondering how can i make a Linked list of structures with a head pointer to be used by other functions. I am making a somewhat of a personal malloc and i wanted to make a structure memBlock {.isTaken, .size, .next}</p> <p>I tried doing static outside of methods and non static as well and i am not sure what i ...
3
1,577
How does IDataErrorInfo interface provide validation values
<p>I want to fire more than one validation on the same element. I found code but I do not understand in which situation which validation fire. The xaml code is as follows:</p> <pre><code>&lt;ComboBox x:Name="CreditedParty" Style="{StaticResource FormControlStyle}" Grid.Row="3" Grid...
3
1,393
Scrapy skips image downloads
<p>I am trying to scrape image URL's from multiple pages. This is working fine and it outputs all the URL's in my command prompt. However there are only 40-70 images downloaded when I run the spider, this amount of images that should be scraped are 4000. </p> <p><div class="snippet" data-lang="js" data-hide="false" da...
3
1,056
How to make the contents of a React Material-UI Drawer run regardless of whether drawer is opened or closed?
<p>I am building a React app with a Chat feature. The chat feature sits in a <a href="https://material-ui.com/components/drawers/" rel="nofollow noreferrer">Material-UI Drawer</a> that toggles open or closed when the chat icon is clicked on. </p> <p>The issue I am running into is that the Chat app initiates each tim...
3
1,895
Point Interpolation with Metpython and Basemap
<p>I change the <a href="https://unidata.github.io/MetPy/latest/examples/gridding/Point_Interpolation.html" rel="nofollow noreferrer">script</a>, and try to show it by using basemap.</p> <pre><code># Copyright (c) 2016 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifie...
3
2,894
using class base view facing a issue of reverse not found
<p>i am using a class base d view for section.html in which i trying to implement add to cart functionality with the help of forms but after clicking add to car but it showing error</p> <p>Reverse for 'section' with no arguments not found. 1 pattern(s) tried: ['(?P&lt;subject_id&gt;[0-9]+)/Sections/$']</p> <p>here is m...
3
1,094
How do you send a full response to a web browser using C in a simple http server?
<p>Please help, I am attempting to write a basic http server in C. I have had success in producing a result but the result is not what I was going for. The browser is only rendering one character and I can't figure out why. Below is my server code as of right now. Anything you can do to help would be most appreciated. ...
3
1,284
Mahout clustering - all text vectors in single cluster - why?
<p>I've run the following example:</p> <p><a href="https://github.com/technobium/mahout-clustering/blob/master/src/main/java/com/technobium/ClusteringDemo.java#L64" rel="nofollow noreferrer">https://github.com/technobium/mahout-clustering/blob/master/src/main/java/com/technobium/ClusteringDemo.java#L64</a></p> <pre><...
3
2,886
Django Test case for deleting a post returns Https 200 instead of 302
<p>I am writing a test case for a Posts app in my Django project. I have defined views for adding a new post, listing the posts, view details of the post, edit a post and delete a post. Adding a new post redirects the page to the detailed view of that page and deleting a post redirects the page to the list view. While ...
3
1,575
WPF TreeView ItemTemplate alighments
<p>i have create my own tree-view with multi column Headers using standard wpf controls</p> <ul> <li>Dock Panel </li> <li>DataGrid , Just for creating the columns and having sorting and resizing capabilities. The height of datagrid is only 25 , we only need to show columns not data here.</li> <li>The TreeView Control ...
3
1,066
Not Able to set A parameter of a object of my class via setter when taking String From EditText But same can be done When Hardcoded string is passed
<p>CUSTOM CLASS CODE:</p> <pre><code>package com.example.accounts; public class PartyModel { private int parId; private String parName; private String parType; private String parOwner; private String parOwnerContact; public PartyModel() { } public PartyModel(int parId, String ...
3
1,302
How to get suggested contact list from for a given name
<p>I`m currently developing an android app for my university project. Idea was to develop an voice command base caller app. by now i could implement this app to get voice name and retrieve contacts from the contact list. But this only work if i only gives the correct voice input for the voice.So I planed to give sugge...
3
2,818
Unable to Insert node in Circular Singly linked list
<p>I'm not able to get the desired output in the given code. The code is about <strong>inserting nodes</strong> in the <strong>circular singly linked list</strong>. Please correct this code as per the problems stated.</p> <pre><code>class Node: def __init__(self,value): self.value = value self.next ...
3
1,585
Destructor is not called in Factory Pattern
<p>I am learning factory design pattern and this is how I have implemented in C++. CVehicle is abstract class having interface <em>createVehical</em> to create actual object of specific type. CVehicalBookingHandler is client code which will be exposed and needs not to be modified, it will also delete actual vehicle ob...
3
1,105
Code works on site, not on CodePen: Uncaught error '<'
<p>My code works on my site, but not on CodePen. When I tried copying the code from Visual Studio Code to CodePen, this error appears: Uncaught SyntaxError: Unexpected token '&lt;'</p> <p>This is the link to my codePen: <a href="https://codepen.io/sherlockieee/pen/ExPXKgJ" rel="nofollow noreferrer">https://codepen.io/s...
3
1,057
Laravel/Scrutinizer: The property username does not seem to exist on App\User. Are you sure there is no database migration missing?
<p>I have this issue from several days in Scrutinizer CI.</p> <p>I would get ride of it, but don't know how to do. This is the migration script:</p> <pre class="lang-php prettyprint-override"><code>public function up() { Schema::create('users', function (Blueprint $table) { $table-&gt;increments('id'); ...
3
1,614
Calculate port to port over sea distance
<p>I'm currently working on a calculator that calculates a lot of things and one of these things is the route from 2 given points. Now I want to extand this route calculator by adding the over sea route distance from one port to the other port. The calculator already looks for the most nearby port from the two given lo...
3
8,795
How to send python dict to C++
<ul> <li>This is my python function:</li> </ul> <pre><code>if __name__ == &quot;__main__&quot;: file = open(&quot;data_input.txt&quot;, &quot;r&quot;) contents = file.read() e = ast.literal_eval(contents) neighbour_num= 4 new_data = 300 result = np.ndarray((4,4),dtype='int32',buffer=np.zeros((4,...
3
1,069
Can't connect to Radis server in node-client using Docker
<p>I'm new to this field so, I will very much appreciate your help<br> I was trying to use <em>Redis</em> with my <em>VueJs</em> frontend project, and I installed <em>node-redis</em> npm package. Also, I'm using Docker to try to point redis image with my docker node image.<br><br> But, I had got this error at my browse...
3
3,042
Bluetooth Adapter Service remaining null
<p>I am trying to adapt code from Bluetooth BLE developer starter kit to my own app (i.e this exact same code is working well on the example app). But, I can't connect to any device, because, when I am pressing the Connect button (method onConnect), bluetooth_le_adapter is null.</p> <p>I think that the bluetooth_le_ad...
3
11,608
Mobile Angular UI Modals
<p>I'm trying to use the Mobile Angular UI to create a modal, and whenever I try to implement it as it's shown on the documentation it just shows the overlay (modal) on top of everything, and the close buttons don't function. If anyone can point me in the right direction I would appreciate it, I'm new to angular.</p> ...
3
1,051
How to catch Spring bean creation error - Injection of autowired dependency?
<p>AdminService.java</p> <pre><code> package service; import java.util.HashMap; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import dao.IAdminDAO; import dao.IMemberDAO; public interface AdminService { public...
3
3,012
OpenSSL::SSL::SSLError "certificate verify failed" when using Ruby Gem 'cryptsy-api'
<p>I'm trying to use the cryptsy-api gem, but seem to have some sort of SSL error. Here's the output in my irb session:</p> <p>First I load the api:</p> <pre><code>$ irb 2.1.2 :001 &gt; require 'cryptsy/api' =&gt; true </code></pre> <p>Then I set the two variables needed to make a connection (using fake names for t...
3
1,270