title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Problems getting a bare metal ARM app to boot
<p>I am trying to use LLVM to generate code for baremetal ARM Cortex M4 development. The creation of the IR is going well and LLVM is generating (in my oppinion) correct ARM Thumb ASM.</p> <p>I have purchased an Arm dev kit to do some testing: an Atmel SAM4L-EK <a href="http://www.atmel.com/tools/SAM4L-EK.aspx">http:/...
2
1,250
dygraph: synchronization example
<p>I’m a bioengineer and I have to admit I have no experience with js. I’m using Dygraph to create a few graphs and I need to synchronize the zoom on them, so I check the example ‘synchronization’ in the gallery. It says I have to source extras/synchronizer.js on your page. When I click on it I end up in a page saying:...
2
1,829
Update Flot plot with 2 series in realtime
<p>I'm working on displaying 2 time series of values using jquery and flot. I'm using them for a small period of time and for now I'm sticking to the examples. Basically I adapted several examples to extract from MySQL database the series using a PHP script that I include in the JQuery script. All works fine this far. ...
2
1,065
OpenGL 3.2 Texturing Issue
<p>I'm working on a 2D engine in C++ at the moment.</p> <p>I've run into a problem which I seem to believe I've come up against once before, but have since forgotten how I fixed it.</p> <p>The engine is cross platform ( Win, OSX, Linux ) and to accomplish this I am using GLFW as a base.</p> <p>When doing the normal ...
2
1,438
If i use glTranslatex instead of glTranslatef, i don't see anything !
<p>i am writting a little program in OpenGL ES for Android (api 3) that show a white triangle upon a black screen. But what was my astonishment when i noticed that changing a call to glTranslatef to glTranslatex (in onDrawFrame() method) made my triangle invisible ! Could anybody explain me what is happening.</p> <p>H...
2
1,034
pagination is not working after rewrite url of custom post type
<p>I have try this function to rewrite url of custom post. Here is my code for url rewrite,</p> <pre><code>add_filter('post_type_link', 'brand_permalink', 1, 3); function brand_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, '%campaign-responses-category%') === FALSE) return $permalink; $po...
2
1,504
How add cells in UITableView on button click?
<p>I have a <code>UITableView</code>.It has two custom prototype cells.Now one cell is fixed it will be just remain one in tableview but another cell will be added to tableview again &amp; again on button click.</p> <p>below is code for the tableview methods:</p> <pre><code>func numberOfSections(in tableView: UITable...
2
1,111
Image stretched when set as background in the Relative layout
<p>I am capturing image from camera and sending it to the server .I am displaying the captured image in the background of <code>RelativeLayout</code> using the following code:</p> <pre><code>private void previewMedia(boolean isImage) { // Checking whether captured media is image or video if (isImage) { ...
2
6,830
Execute a function every certain time without counting the time of execution of the function
<p>I need execute since an specific time a function every certain interval of time. </p> <p>For example if the begining time is 00:00:00 and the the interval is 5 seconds then I need that the times of execution of this function are:</p> <pre><code>00:00:00 00:00:05 00:00:10 00:00:15 ... 23:59:55 </code></pre> <p>As...
2
2,292
How do i solve Permission error while startup
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.asish.gorai"&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt; &lt;uses-permissio...
2
8,327
Getting IP into env variable via DNS in kubernetes
<p>I'm trying to get my head around K8s coming from <code>docker compose</code>. I would like to setup my first pod with two containers which I pushed to a registry. Following question:</p> <p>How do I get the IP via DNS into a environment variable, so that registrator can connect to consul? See container registrtor i...
2
1,095
AJAX response with undefined/object document
<ol> <li><p>My first question is I have this script that do a form exchange with my server. The server is able to read the form and send a response. When I try to print the response the below is show what I received.</p> <p>$('#myform').html(response); //there will be no response alert(response)//it always return me w...
2
1,097
When loading a JSON body receiving error: "expecting ',' delimiter: line 1 column 18 (char 17)"?
<pre><code>import json a_json = '{&quot;some_body&quot;:&quot; [{&quot;someId&quot;:&quot;189353945391&quot;,&quot;EId&quot;:&quot;09358039485&quot;,&quot;someUID&quot;:10,&quot;LegalId&quot;:&quot;T743&quot;,&quot;cDate&quot;:&quot;202452&quot;,&quot;rAmount&quot;:{&quot;aPa&quot;:{&quot;am&quot;:1500,&quot;currId&qu...
2
1,318
How to Debug Extended Functions in XSLT Using Saxon?
<p>I have been reading through programming blogs about how to use Extended Functions with XSLT and Saxon, and can't seem to reference external Java functions in the XSLT successfully. I am getting the following error whenever I run the transform:</p> <pre><code>Cannot find a matching 0-argument function named {come.a...
2
1,341
Load HDF file into list of Python Dask DataFrames
<p>I have a HDF5 file that I would like to load into a list of Dask DataFrames. I have set this up using a loop following an abbreviated version of the Dask <a href="http://dask.pydata.org/en/latest/examples/delayed-custom.html#data-processing-pipelines" rel="nofollow noreferrer">pipeline approach</a>. Here is the code...
2
1,147
Save a MPAndroidChart chart to an Image without displaying it on an activity
<p>I want to generate a PDF, but first I need to create an image from a <strong>LineChart</strong> (MPAndroidChart library) without displaying it in an activity.</p> <p>I've followed this tutorial <a href="http://android-crap.blogspot.com/2013/02/create-bitmap-from-layoutview.html" rel="nofollow noreferrer">http://and...
2
1,184
UICollectionView Update Animated
<p>I got a UICollectionView and a rest api. I fetch my data and save it to arrays with entity objects I created. I've got entity objects which represent a user, a connection between two users and notifications (so the user can grand a connection between users).</p> <p>I present all my data inside a UICollectionView, w...
2
2,118
how to display a hidden table when submit button is clicked and data is inserted in database table in php?
<p>I have one from through which I am entering project name and sheet name which will be saved in project table. Based on this I am inserting empty values on another table 'Data'. I am using editable table to update these empty values in database. I want to hide this table till project name and sheet name is submitted ...
2
1,036
java.lang.NoSuchMethodError: javax.ws.rs.core.HttpHeaders.getHeaderString
<p>I have the following server error in wildfly-11.0.0.Final:</p> <pre><code>ERROR [io.undertow.request] (default task-14) UT005023: Exception handling request to /cos/services/service0/communication/getLinkedComponentsExample: java.lang.NoSuchMethodError: javax.ws.rs.core.HttpHeaders.getHeaderString(Ljava/lang/String...
2
10,041
How can I run my application on linux with rpm-maven-plugin?
<p>I would like to use rpm-maven-plugin to package my maven project to rpm file. After maven install (<code>mvn clean install</code>) the rpm is created in <code>target/rpm/rpm-build/RPMS/noarch/</code>. How can I start the application? If I try to install rpm with <code>yum localinstall {name}.rpm</code> I get a hint ...
2
3,612
SQL state 37000 in SQLExecDirect
<p>here is my error`</p> <blockquote> <p><b>Warning</b>: odbc_exec(): SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Sintaxis incorrecta cerca de '123'., SQL state 37000 in SQLExecDirect in <b>C:\xampp\htdocs\Estadias\api\MODELS\connection_sql_server.php</b> on line <b>19</b><br /> Error [Microsoft][OD...
2
1,385
Recursive web crawling with Scrapy
<p>I started programming in Python. As my first project I want to create web crawler using Scrapy - Python module. I come across problem with which I have been struggling since 2 days and can't find solution for it. Any help with it would be appreciated.</p> <p>I would like to crawl and scrap data about price of cars ...
2
1,795
Move Image Taken With Camera Leaves Broken Link Unitl SD Card Remount
<p>I have an application in which I can use the device's camera to take a picture. What I would like to do is to start the ACTION_IMAGE_CAPTURE intent without assigning an EXTRA_OUTPUT, and then move the file that is created in the default location to my own custom location using file.renameTo. My code is something lik...
2
1,376
Using variables to create N triples in python
<p>I am currently trying to use variables to create a graph of N triples, I am not having any trouble assigning the variables, but i keep getting an error message. Here is the code:</p> <pre><code>from rdflib import Namespace, URIRef, Graph from StringIO import StringIO xmlns = "http://www.example.org/lexicon#" rdf ...
2
1,443
Split one large, denormalized table into a normalized database
<p>I have a large (5 million row, 300+ column) csv file I need to import into a staging table in SQL Server, then run a script to split each row up and insert data into the relevant tables in a normalized db. The format of the source table looks something like this:</p> <p><code>(fName, lName, licenseNumber1, licenseI...
2
1,151
Jquery ui tab hidden div appearing on main tab
<p>I'm not sure exactly how to describe/ask this so I'll give it my best shot. I am using add tab functionality in jquery's tabs. On the first tab I have a jqgrid which I use to select items to open in a new tab. When an item is selected the new tab is created successfully, but a div is added below the jqgrid which ...
2
1,138
How to include layout to SonataAdminBundle tab with use sonata_type_admin
<p>I use Symfony2 with SonataAdminBundle, and I have a problem where I add a Tab with sonata_type_admin Entity edit. If I go to Entity edit page - all right, but if I add field in OneToOne relationship on tab layout not loaded and all in one style. </p> <p>Reading documentation not help me, I don't found this decision...
2
2,823
CF7 Dynamically change form data
<p>I am trying to extend the CF7 plugin through their form tag filter to meet my needs, however I have run into a weird case. I have the following function (In my Theme Functions file) that somewhat works:</p> <pre><code>function custom_shortcode_handler( $tag, $unused ) { $formidable_array = get_related_vars(arra...
2
1,627
UI AlertView - Storyboard
<p>I have two view controllers for login and registering in my app. I have created UIAlertViews to prompt the user when they haven't completed the field or there are problems with their details. However, when pressing ok on an AlertView, the app takes them to the next screen in storyboard despite any problems with thei...
2
1,460
Dynamically Generate Form Row With Select Populated From Database
<p>Here's my dilema. In Laravel, I'm passing <code>inspections</code> to the view like so:</p> <pre><code>$inspections = Inspection::where("status", "!=", "started")-&gt;get(); return View::make('process')-&gt;with("inspections", $inspections); </code></pre> <p>Inspections contains a list of all the Inspections that ...
2
2,125
SPRING MVC: Form Backed Bean Properties not declared as form fields in jsp are set to null
<p>I was learning spring mvc. I developed a screen where on login the personal data of a user will show up.On the same screen there will be update button to update the personal data.</p> <p>My problem is that in the personaldata.jsp , the user properties like username, password which are not mentioned as form fields a...
2
14,415
Integrate Dash into Flask
<p>I am trying to integrate a Dash app into an existing Flask program with Flask-Login. If I add <code>server=server</code> to the Dash instance every route (even ones that don't exist!!!), except the specified routes in run (ie. /home, /login), take me to the Dash app.</p> <p>Example:</p> <p>localhost:500/ - Takes m...
2
1,096
Uncaught SyntaxError: Unexpected token ILLEGAL in javascript
<p>I'm trying to create line,column and pie chart in a grid with the Highcharts charting API. But i'm getting an error "Uncaught SyntaxError: Unexpected token ILLEGAL". Scratching my head from hours. Referred link : <a href="http://www.highcharts.com/demo/com" rel="nofollow">http://www.highcharts.com/demo/com</a> </p>...
2
1,560
Can't install RMagick 2.13.2
<p>I am having an issue on OS X Maverick when trying to install the rmagick gem. Following are some details</p> <p>ImageMagic details</p> <pre><code>mairs-MacBook-Pro:social-login-in-rails umair$ convert --version Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-07-06 http://www.imagemagick.org Copyright: Copyright (C) 1...
2
1,139
Can I add a Color Picker to Django Forms
<p>I tried using the django-colorfield module which works great for the admin page but I cannot get it to render the widget in the actual forms. Below is what I have tried so far and all I get on the form is a CharField with the default value as text. I am open to every and any suggestions but I do not want to use the ...
2
2,578
Cannot access window close function in Desktop Application using node js
<p>I am developing a windows desktop application using node.js and backbone.js. I want to perform an action when the user closes the app by clicking on the close button on the title bar or right clicking on the application from windows taskbar.</p> <p>My app.js looks like this,</p> <pre><code> var app = module.expor...
2
1,171
Detect UIImageView click in UITableViewCell
<p>I have to make a call to specific number when imageview is clicked in tableviewcell.The number to which call is made is displayed in a label beside the imageview.But I couldn't get which cell is clicked.Always its referring to the last cell.</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cel...
2
1,254
rake says "cannot load such file -- spec"
<p>I am using:</p> <ul> <li>Ubuntu 12.10</li> <li>Rails 3.2.12</li> <li>ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]</li> <li>rake rake-10.0.4</li> </ul> <p>When I run <code>rake db:create</code> I get this error message:</p> <pre><code>rake aborted! cannot load such file -- spec /var/lib/gems/1.9.1/gem...
2
1,106
How to type-constrain the entries of a Raku function's array argument?
<p>I am trying to define a subroutine in <code>Raku</code> whose argument is, say, an <a href="https://docs.raku.org/routine/Array" rel="noreferrer">Array</a> of <a href="https://docs.raku.org/type/Int" rel="noreferrer">Int</a>s (imposing that as a constraint, i.e. rejecting arguments that are <em>not</em> <code>Array<...
2
1,198
Null check operator used on a null value when using Named routes
<p>I am getting this error after I switched to <code>named routes</code> where my app was working properly when using <code>MaterialPageRoute</code>:</p> <p><strong>main.dart:</strong></p> <pre><code>void main() { WidgetsFlutterBinding.ensureInitialized(); runApp( MultiProvider( providers: [ Chang...
2
1,089
Why AlarmManager executes Async Http Request twice?
<p>UPDATE: I've found my "twice" problem reason. I started "runAlarm()" twice. So the code below works okay. It sends Async HTTP request periodically. You should add to manifest this line:</p> <pre><code>&lt;receiver android:process=":remote" android:name="Alarm"&gt;&lt;/receiver&gt; </code></pre> <p>ORIGINAL QUE...
2
1,512
How do I call a method that returns a Task<T> From an ASP.Net MVC4 Controller Method?
<p><strong>TL;DR:</strong> I would like to know how I can get the return value from a method that returns <code>Task&lt;T&gt;</code> when invoked from an <strong>ASP.Net MVC4</strong> Controller's <code>ActionResult</code> method. Code snippets below.</p> <p><strong>Question Details:</strong><br/> I'm using the <a hre...
2
1,681
How to use flexbox to position 3 buttons horizontally?
<p>I have 3 buttons that I'm trying to position in a line together (e.g. prev btn, middle btn, next btn) where now I just have it displayed as one button on top of the other 2. I can't change the html just the css fyi</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> ...
2
2,034
Failure delivering result ResultInfo{who=null In taking photo with Camera
<p>I Saw another questions about this problem but non of them helped.</p> <p>In my app there two different ways for adding an image and displaying it inside an imageview. 1. Gallery - 2. Camera.</p> <p>gallery way is working just fine.</p> <p>But in Camera way (which I'm doing it with native android Camera) I have a...
2
2,136
Create a Multipart Request from multiple HTTP responses
<p>I have to create a multipart/form-data HTTP request where the file will be received from one request, some additional form data values from different requests. Example:</p> <p>1) HTTP listener receives the file as attachment <br/>2) Sends HTTP requests to 3 or more REST APIs, and stores values into property variab...
2
1,173
Hibernate Search- Index not created
<p>i am currently writing my final dissertation in university with the topic of integrating search functionalities into an existing web application and want to use Hibernate Search.</p> <p>But i am struggling with the indexing of entities in the already existing application. It seems like the indexing is not working, ...
2
2,369
React-Native-FBSDK login doesn't return email
<p>I'm trying to use the default &lt;'LoginButton ... > for login in the app through Facebook login, but I can't manage to get the user's email.</p> <p>This is my button:</p> <pre><code>&lt;LoginButton publishPermissions={["email"]} onLoginFinished={ (error, result) =&gt; { if (error) { alert...
2
1,422
open a popup when a condition true
<p>I want to open a popup when 'if' condition true otherwise it opens normally.</p> <p>But the code that I used, open the popup whether the condition is true or false.</p> <p>so, help me guys and give ur views</p> <p>script that I use.</p> <pre><code>&lt;script&gt; $(document).ready(function() { var id =...
2
1,082
ASP.NET MVC 5 prevent value changes
<p>When I update my website, it hints me this problem "{"The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.\r\nThe statement has been terminated."}"</p> <p>The screenshot is list below, there is a value named RecordDate, it has value, but I will not change anything about...
2
1,292
Knockout - Accessing length of array "bound to" from inside template
<p>I have different objects/view models that holds similar data but in different properties.</p> <p>Think of it as an object holding 2 lists; </p> <ul> <li>List of "Something"</li> <li>List of "Groups"</li> </ul> <p>where a group also contains a list of "Something", similar to this</p> <pre><code>function group(d) ...
2
1,306
Last rows in inner table don't expand in Fixed Data Table
<p>I use <a href="http://schrodinger.github.io/fixed-data-table-2/example-expanded-rows.html" rel="nofollow noreferrer">expanded rows</a> in fixed-data-table-2 component. I have 3 levels on inner tables:</p> <p><a href="https://i.stack.imgur.com/U3n7t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/...
2
8,023
DB2 restore command fails on Windows 10
<p>Installed DB2 Express C v10.5 and also v11.1 on Windows 10 PC.</p> <p>Database backup is successful but Restore ends with error with both versions.</p> <p>I also tried the same using Data Studio 4.1.2, but here also backup is successful but restore command is stuck.</p> <p>Backup and restore script from Data Stud...
2
1,030
Typescript class variable return undefined inside Firebase function
<p>I come from a python/golang background and now I diving into ionic2. I wonder if I doing something stupid, or there is an issue, which at my current knowledge of the stack, I cannot tell where its from. Maybe I only need a way to reference the outer scope of this function. Well, I am looping through my user collecti...
2
1,336
REST API - Single vs Bulk POST / PATCH (SQL INSERT / UPDATE)
<p>I know that this question has been asked a bunch of times, but I they don't address the database SQL part, and don't have a suitable example.</p> <p><strong>The goal is to insert or update an invoice in a database, more specifically insert or update the items in the invoice, using a REST API.</strong></p> <hr> <h...
2
1,606
Android activity transition from bottom to top and top to bottom black background issue
<p>MainActivity with the navigation drawer, tabLayout and viewPager with three fragments. </p> <p>Click on the fragment button, needs to invoke another activity. It needs the transition from "bottom to top" and when it back to main activity, it needs "top to bottom" transition.</p> <p>This is the main activity UI. </...
2
1,249
Why isn't the toggle button my responsive WordPress nav working?
<p>I've implemented a responsive navigation on a custom WordPress 4.x build I am working on. When I test the nav on its own in a regular HTML doc, it works fine. On the WordPress site, however, it doesn't work. The toggle button that displays the nav on the mobile isn't toggling.</p> <p>Here's a jsfiddle of the workin...
2
2,504
Slow movement using paintComponent method
<p>I decided to re-write my game using Swing's painting technique paintComponent() method(someone on SO actually told me to use this method). I decided to use JPanel as the game's base instead of Canvas. My previous written game uses a Canvas but the game could not show up on my 64 bit desktop but could show up on my 3...
2
1,409
How to update the users balance when a user makes a transaction?
<p>I am stock trying to write the code that make possible for users to update a balance every time they make a transaction. </p> <p>This is a simple bartering application: The user can either offer products for sale or buy products from other users. The user pays with a kind of virtual money (units). When a user click...
2
2,749
How to make scrollable sidebar fixed in TailwindCSS
<p>I came across the BetterDev sidebar in which, if we add content to it, the sidebar also scrolls. Is there a way to make that sidebar fixed and not scrollable? I tried sticky, corrected with top-0 and left-0, but it didn't work.</p> <ul> <li><a href="https://i.stack.imgur.com/N1TwN.png" rel="nofollow noreferrer">Imag...
2
1,963
Compile Linux kernel module (lincan)
<p>I use Ubuntu 10.10 - 2.6.35.23-generic</p> <p>I want to compile the lincan-module (http://sourceforge.net/projects/ocera/), but it doesn't work like I want... That's my first compilation of a kernel module. I did this:</p> <p>First unzipped the lincan-sources to my home directory. Then excecuted "make" with this o...
2
2,052
SQL XML Parsing Stored Procedure running manually, not running via SQL Server Agent
<p>The stored Procedure is running manually but will not run using SQL Server agent. </p> <p><strong>I get the following error</strong></p> <blockquote> <p>Executed as user: XXX. XML parsing: line 9, character 9, unexpected end of input [SQLSTATE 42000] (Error 9400). The step failed.</p> </blockquote> <p>The st...
2
1,762
Cannot pass textarea input to PHP variable
<p>To begin, I'm working with 3 languages. HTML, Javascript and PHP. I'm unable to pass user inputted textarea text to a PHP variable which would be used as a message in an email that would be sent out. What I believe to be the problem is that my textarea is actually in a modal window and for some reason I think that i...
2
1,215
Click event firing twice or more after history.back() Phonegap
<p>I have two html pages in phonegap. <code>index.html</code> and <code>second.html.</code> I put all my script in head section. In <code>index.html</code> page I put all my Jquery and Ajax codes. Here are some code snippets that I use to change page.</p> <p><strong>Index.html</strong></p> <pre><code> &lt;!DOCTYP...
2
2,338
Django rest serialization - Passing JSON to Javascript
<p>Disclaimer - Django noob, especially REST Framework. I'm trying to create an app that for this purposes passes JSON to the template. I figured Django Rest would be ideal.</p> <p>I have set up a user profile so the user can select various attributes (works fine), and now want to pass a JSON of all the user's selecti...
2
1,143
Json.Net Compact Framework deserialize performance
<p>I am testing the latest build of <a href="http://james.newtonking.com/projects/json-net.aspx" rel="nofollow">Json.Net</a> and I am serializing a collection on the server and passing the string over using a WCF proxy.</p> <p>The server call takes less than a second to return the data but on the PDA client side the d...
2
1,688
how to create an All-In-One docker image using sbt-docker and sbt-assembly
<p>I am using sbt-assembly to get fat jars and using sbt-docker to create and push docker images. My project is multi-module which has multiple web services, UI, database etc. Since my base docker image is big (800M), I want to create a docker image containing all the fat jars, so that I can easily test in cloud using ...
2
1,076
After sending HTTP request to server sometimes I get status 302 (redirect)
<p>I try to send <code>POST</code> request to some server with json parameters and I wait json response.</p> <p>From Android it works fine but from Linux I get status <code>302</code> redirect. I really don't know where is my problem.</p> <p>Here is command from linux:</p> <blockquote> <p>curl -i -X POST --data...
2
1,640
SqlBulkCopy fails trying to copy a row with large content in an XML column
<p>I am trying to copy a record from one SQL Server table to another. Both tables have the same structure, one of the columns is of type xml. Source table has a large xml content in of the rows, about 2.5Mb.</p> <p>I saved the content of the xml column into a file, see map.zip attached or download it from <a href="ht...
2
1,576
Bazel build error with Cuda on Windows 10, how resolve it?
<p>I'm trying to compile a Tensorflow core, with CUDA support (I need cc 8.6 for GeForce3090) on Windows 10 64bit via Bazel by this instruction: <a href="https://www.tensorflow.org/install/source_windows" rel="nofollow noreferrer">https://www.tensorflow.org/install/source_windows</a></p> <p>I use this build string: ba...
2
4,025
How to insert/update a row using EF?
<p>What is the correct way to insert/update a row using Entity Framework?</p> <p>I know this 3 methods:</p> <p>1 - using <code>Attach</code></p> <pre><code>var newSale = _context.ST_Sales.FirstOrDefault(x =&gt; x.SaleId == saleId); newSale.Hours = 2; _context.ST_Sales.Attach(newSale); _context.ObjectStateManager.Cha...
2
1,544
Express can't reach route
<p>I have the following file: (<code>auth.js</code>)</p> <pre><code>module.exports = function (express, mongoose, router) { router.route('/setup') .get(function (req, res) { var salt = bcrypt.genSaltSync(10); var hashed = bcrypt.hashSync(req.query.password, salt); // c...
2
1,201
Outlook 2016 Signature and Active Directory
<p>I have this script which creates an outlook signature and looks over to Active Directory for date (DisplayName, Telephone, and Title).</p> <p>I have this line of code to copy a .docx file to appdata and save it in html, rtf, and txt. </p> <pre><code>#Save new message signature Write-Output "Saving signatures" #Sa...
2
1,269
Plain C++ Code 10 times faster than inline assembler. Why?
<p>These two code snippets do the same thing: Adding two float arrays together and storing the result back into them.</p> <p>Inline Assembler:</p> <pre><code>void vecAdd_SSE(float* v1, float* v2) { _asm { mov esi, v1 mov edi, v2 movups xmm0, [esi] movups xmm1, [edi] addps ...
2
2,438
livy throwing error in batchmode Error: Only local python files are supported: Parsed arguments
<p>I tried executing <strong>livy</strong> in batch mode by submiting a python file but it doesnt work, i tried 2 ways -</p> <ol> <li>Run the <strong>py</strong> file from local file system &amp; also</li> <li>run it on hdfs by copying it there ... but its not working... </li> </ol> <p>please help</p> <pre><code>hdu...
2
2,135
Submit button not working in Wordpress
<p>This form works, but not in Wordpress. I am new to Wordpress so I am not sure what to do. I created 4 files:</p> <ul> <li>page where I created the form</li> <li>contact.php</li> <li>validator.js</li> <li>contact.js</li> </ul> <p>Here is the code for the form:</p> <pre><code>&lt;form class="form-horizontal" id="co...
2
1,871
Retina Images in HTML Email Signature Outlook 2016
<p>I am trying to add company logo to signature in outlook but users on iPhone the logo is a blurry. I found an article where it ask to use 2x image as resolution but that did not work as outlook resized image before sending.</p> <p>The logo in files folder is 268 x 56px but when sent to user 134 x 28px, i found when ...
2
1,556
How do you combine multiple Observables and get the results of all in a single subscribe
<p>I am making multiple calls to a RESTful service. Each call gets me a results. For example, it returns objects similar to the following:</p> <pre><code>{ results: { name: "Joe", age: 10, } } </code></pre> <p>I am making 5 different calls to the service with different request param...
2
1,191
How can I make my card view littile circular in react native
<pre><code>// </code></pre> <p>In below code I am trying to make on ui according to my ux design . But One problem i am facing is not able to make card like same in ux , in ux its someting circular ,but in my code its not coming. It tried with border radius also . Please suggest where I am wrong <a href="https://i.sta...
2
1,859
nginx and ssl certificate
<p>I would like to provide a ssl support of my site under Nginx.<br> First, I have tried to use self-signed certificate but As you know The browser complains that </p> <blockquote> <p>This Connection is Untrusted</p> </blockquote> <p>Second, I tried to order a free certificate from well-known Certificate Authority ...
2
1,493
Scrapy crawled pages, but scraped 0 items
<p>I am fairly new to Python, Scrapy and this board, so please bear with me, as I try to illustrate my problem.</p> <p>My goal is to collect the names (and possibly prices) of all available hotels in Berlin on booking.com for a specific date (see for example the predefined start_url) with the help of Scrapy.</p> <p>I...
2
1,089
Trying to get a Python client talk to a Java Server using thrift's TFileTransport and TFileProcessor
<p>I am trying to wrap a Java class to be called from Python using thrift's TFileTransport. I tried using two protocols TJSON and TBinary but I keep getting this exception</p> <pre><code>org.apache.thrift.transport.TTransportException: FileTransport error: bad event size at org.apache.thrift.transport.TFileTranspo...
2
1,946
Xamarin forms duplicate object (deep copy)
<p>I try to use Xamarin Forms (with PCL project). My scope is to make an app to consume public service (exposed via web services). I try to use <a href="https://developer.xamarin.com/samples/xamarin-forms/WebServices/TodoASMX/" rel="nofollow noreferrer">TODOASMX Example</a> of Xamarin website. The problem is the code:...
2
1,306
Unreliable response from java.net.http.HttpClient call using Java 11 and Spring Boot
<p>I'm writing a back-end application in Spring Boot that calls another API from a third party.</p> <p>I'm having a problem with this particular call, which retrieves a token object containing a bearer token, which then I use in their other endpoints. The retrieved token sometimes works, most of the time it doesn't, wh...
2
1,624
plotly colorbar and colorscale for multiple traces
<p>I'm trying to plot the data for various months, with different traces representing a year for data in a timeseries like <code>dataframe</code>. My desired output is an interactive version of the graph below, given a long <code>data.frame</code>. (data and code given below)</p> <p><a href="https://i.stack.imgur.com/...
2
2,007
VBA Populate array from another array
<p>I am trying to get a Final array populated with unique keys with values from an existing 2 dimensional array using the following code: The final array has 3 dimensions for Data, I want the array to look like this:</p> <p>Finalarray(0): {a, 1, 4, 8} .... Finalarray(4): {e, Empty, Empty, 12}</p> <p>My code initialis...
2
1,048
ffmpeg mp4 x264 encoding -> playback causes "pending" in both Chrome and IE causing 10+ seconds delay
<p>After encoding a video to mp4(x264 with aac); I have the following weird behaviour in both crome and IE:</p> <p>Im serving the content from https with spdy enables.</p> <p>It takes up to 30 seconds before the video is actually played, in the mean time i cannot reload the page it shows up as "pending". (even after...
2
5,594
Reverse-proxying: Flask app with Bokeh server on Nginx
<p>I have created a website with Flask that is serving a Bokeh app on a Digital Ocean VPN. Everything worked fine until I secured the server with Let's Encrypt following <a href="https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04" rel="nofollow noreferrer">this tutor...
2
2,593
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'short_description' in 'field list'
<p>I recieved error while i tried php artisan db:seed</p> <blockquote> <p>Illuminate\Database\QueryException</p> <p>SQLSTATE[42S22]: Column not found: 1054 Unknown column 'short_description' in 'field list' (SQL: insert into <code>categories</code> (<code>name</code>, <code>slug</code>, <code>short_description</code>, ...
2
2,821
Add KeyListener to Jframe issue
<p>I have a jframe of which I have made in Netbeans, this jframe is being "launched" by another java class, but for the current question that doesn't matter. What matters is the fact that I can't seem to figure out how to add my key listener to this jframe of mine. I have implemented the key listener, added the require...
2
1,157
What prevents the usage of a function argument as hidden pointer?
<p>I try to understand the implication of <a href="https://stackoverflow.com/questions/18133812/where-is-the-x86-64-system-v-abi-documented">System V AMD64 - ABI's</a> <a href="https://en.wikipedia.org/wiki/X86_calling_conventions#System_V_AMD64_ABI" rel="nofollow noreferrer">calling convention</a> and looking at the f...
2
1,459
Android expandable pull down bar - SlidingDrawer like
<p>I am trying to achieve sth. that the image below describes best. I tried SlidingDrawer, even WrappingSlidingDrawer proposed by somebody here on SO. But my problems with SlidingDrawer are (1) it occupies a constant height, and I want it to 'shift' the listview below. (2) It expands from down - up and I want it to e...
2
1,219
Program runs very slow on a Oracle database server of Linux 64-bit
<p>I have a program which takes in average 30 minutes to run on general 64-bit Linux machines. But it takes 150 minutes to run on a 64-bit Linux machine where a Oracle database running.</p> <p>vmstat shows the program need in average 6GB memory and bi=0 on general machines. But it uses no more than 2GB memory on Oracl...
2
21,015
How to write condition for subquery alias if having null value
<p>Here is my query,</p> <pre><code>SELECT `h`.`hotel_id`, ( SELECT COUNT(room_id) FROM `abserve_hotel_rooms` AS `rm` WHERE `rm`.`adults_count` &gt;= "1" AND `rm`.`room_count` &gt;= "1" AND "Available" = IF( check_in_time = '2016-03-15', 'Unavailable', ( IF( '2016-...
2
1,221
Updating rows that are added dynamically using ajax
<p>I hope I can explain my issue clearly. </p> <p>I am running a function to get values from a database using ajax, and adding each result as a row in a table. This is so the user can delete or edit any row they want. I'm adding IDs dynamically to the columns and also the edit and delete buttons which are generated. S...
2
1,925
Mounting volume issue through KubernetesPodOperator in GKE airflow
<p>My DAG is getting stuck in running state with a log message "had an event of type Pending" in stack driver. My DAG works fine without volume mount but looks like there is an issue with volume mount. Can you please someone help here?</p> <p>I am trying to mount "/data/storage" path to "/storage" location in containe...
2
1,237
Javascript forcing csv file reload (amcharts)
<p>I am using apache on a raspberry pi to host a page for viewing on an internal network. The page consists of an amcharts graph displaying data from a csv file. The csv file updates every minute. Is there a way of forcing the graph to update? </p> <p>I've already tried the following methods: Using the meta tag in the...
2
1,252
upgrade weblogic to 12.2.1.3.0 and java from 1.7 to 1.8 - exception WELD-001408 unsatisfied dependencies
<p>I upgraded weblogic to version 12.2.1.3.0 (Before was 12.1.2). I tried to deploy the application on weblogic server (at the beginning with JAVA 7) and I received the exception:</p> <pre><code> weblogic.management.DeploymentException: CDI deployment failure:WELD-001409: Ambiguous dependencies for type Manager with q...
2
2,265
Copy strings from multiple lineEdit slots as variable to one textEdit slot in PyQt4
<p>To be more crystal clear, here how the things might work.</p> <p>In python, to create a variable, simply we use </p> <pre><code>var1 = raw_input('your name?') </code></pre> <p>So that when using </p> <pre><code>print 'your name is ' +var1 </code></pre> <p>It will print the string stored in var1.</p> <p>The qu...
2
1,654
Swipe to refresh is not working if LazyGridView has no child in compose
<p>I'm using <code>SwipeRefresh</code> view in compose (from <a href="https://google.github.io/accompanist/swiperefresh/" rel="noreferrer">accompanist</a>). I have <code>LazyVerticalGrid</code> inside it, and grid populates paging data from network. If there's no content in paging data, i'm showing empty state view. Wh...
2
1,325
Error: The non-abstract class 'InternalSelectableMathState' is missing implementations for these members - Flutter 2.8.1
<p>Here I am upgrading my Flutter 2.5 to 2.8. When I tried to run my previous existing project, I found this error. But in 2.5 it works everything perfectly.</p> <p>I am trying this from StackOverflow: <a href="https://stackoverflow.com/questions/70334900/error-the-non-abstract-class-internalselectablemathstate/7033519...
2
1,925