title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
WCF – SSL – Client authentication - Can’t implement it on Windows 7, while I can on Windows XP
<p>I’m trying to make a wcf client and server (self hosted) with ssl (transport security) both ways - server certificate and client certificate.</p> <p>In windows XP everything works, but in Windows 7 it failed with client certificate. If the server is on winXp, and the client is on win7 – it’ll work, the opposite – ...
1
2,327
v-navigation-drawer and v-app-bar don't work as intended
<p>I have made a simple app bar and navigation drawer page. But my <code>v-navigation-drawer</code> component doesn't seem to be placed under my <code>v-app-bar</code> component. The official <a href="https://vuetifyjs.com/en/components/application/" rel="noreferrer">vuetify documentation</a> on the <code>v-app</code>...
1
1,395
pass multiple textbox box values to controller in CodeIgniter
<p>I want to send multiple textbox values to CodeIgniter .. I dont know why this code is not working .. </p> <p>here is my view </p> <pre><code> &lt;th&gt;Items:&lt;/th&gt; &lt;th&gt;Price:&lt;/th&gt; &lt;th&gt;quantity:&lt;/th&gt; &lt;th&gt;total:&lt;/th&gt; &lt;/tr&gt; &lt;?php for ($i = 0; $i &lt; 5; $i++...
1
1,323
Why is my text not wrapping in my table cell?
<p>I have created a parent table with two columns and within each column I have 6 child tables (3 in each) so I looks like a newsletter.</p> <p>What I want is for the child table to extend down as I fill them with X amount of text but it's not working. I have set my child table widths and have set the CSS to <code>tab...
1
2,407
Android Message.sendToTarget() working without getTarget() set
<p>I have the following piece of code to work with but I just did not understand how this works, to start off refer the following link</p> <p><a href="http://developer.android.com/reference/android/os/Message.html#sendToTarget%28%29" rel="nofollow">http://developer.android.com/reference/android/os/Message.html#sendToT...
1
1,247
How to enable $expand and $select on ODataQueryOptions?
<p>The issue started <a href="https://stackoverflow.com/questions/21647830/is-it-possible-to-use-odataqueryoptions-with-dtos/21685416?noredirect=1#comment32784822_21685416">here</a>, where I am unable to call <code>$select</code> or <code>$expand</code> on <code>results</code>.</p> <p>Given: </p> <pre><code> ...
1
6,035
Symfony getData event subscriber is null
<p>I know this question has been asked already a couple of times, but there hasn't been an answer that actually helped me solving my problem.</p> <p>I've got three EventSubscribers for three Dropdowns who are dependent on each other.</p> <p>So in my FormType I say:</p> <pre><code> public function buildForm(FormBuil...
1
1,324
Delphi: How to implement QueryInterface of IUnknown?
<p>In Delphi, <code>IUnknown</code> is declared as:</p> <pre><code>function QueryInterface(const IID: TGUID; out Obj): HResult; stdcall; </code></pre> <p><strong>Note:</strong> The output parameter is untyped</p> <p>In my <code>TInterfacedObject</code> descendant i need to handle <code>QueryInterface</code>, so i ca...
1
1,475
How to implement DIV for this table structure
<p><img src="https://i.stack.imgur.com/Dfu6f.jpg" alt="enter image description here"></p> <p>I am trying to replicate this table structure by using div.</p> <pre><code>&lt;asp:Table ID="tblAnnualReportServiceForm" runat="server" Width="100%" CellSpacing="1" CellPadding="5"&gt; &lt;asp:TableRow &gt; &lt;as...
1
1,218
Drawing arc and rectangle in CALayer in Objective-C
<p>I am having a issue to present to user an arc and then rectangle in the same CALayer. I success to draw both but only is displayed the rectangle when the arc is a the same or draw above of rect coords.</p> <p>Any idea what I missing?</p> <pre><code>-(void)drawLayer:(CALayer *)layer inContext:(CGContextRef)p_contex...
1
1,065
Uncaught (in promise) TypeError: X is not a function
<p>I'm trying to build a vue app that searches through Spotify's API to find tracks. But I have a problem, it's saying :</p> <blockquote> <p>Uncaught (in promise) TypeError: searchTracks is not a function</p> </blockquote> <p>Whenever I called the searchTracks function. I looked for a solution but I can't seem to find ...
1
1,378
Kafka broker crash every day - OOM killer
<p>I have a cluster of 3 kafka brokers Version 0.10.2.1. Each broker has it's own host 2 cpu / 16G RAM, In addition we are using docker to wrap the broker process.</p> <p>The problems is as follows: Almost every day at the same time we see all of our kafka clients failed for 10 minutes. At the beginning I thought it...
1
1,868
prevent postback form anchor click -> when we have onserverclick attribute
<p>my aspx (html) code is like below : </p> <p>this is first button (something that should act like a normal button , i used anchor because of some nice css job) : </p> <pre><code> &lt;p id="PaymentParag"&gt; &lt;a id="PaymentLink" onclick="SubmitForm();" name="PaymentLink" runat=...
1
1,294
jersey-spring and jenkins - strange error reading zip file /jersey-core-1.8.jar
<p>We have a REST server that we want to build in jenkins. Locally everything's builds fine but when I tell jenkins to build the project it gives me</p> <pre><code>[INFO] Copying 1 resource [WARNING] POM for 'com.sun.jersey:jersey-core:pom:1.8:compile' is invalid. Its dependencies (if any) will NOT be available to the...
1
6,079
How to verify signature & decrypt a ; Encrypted & Signed content
<p>I have a bouncy castle code that encrypts and sign a message(listed below) ; now I need to find the code for opposite end ; Verify the signature &amp; decrypt the message. My search to find a solution for the past 2 days has been futile, as I could only find example for either verifying the signature (or) for decryp...
1
2,967
Execution strategy 'SqlServerRetryingExecutionStrategy' does not support user-initiated transactions
<p>I have an ASP.NET Core 5 MVC web application, working with Entity Framework Core 5.</p> <p>We implement web components, like Grid or Spreadsheet (we work with Telerik). When I do some changes in the component, and then try to save the changes, the component calls my <code>ApplicationDbContext.SaveChanges</code>. And...
1
2,852
Node.js - save xlsx to disk
<p>I am using Node.js and <a href="https://github.com/SheetJS/js-xlsx" rel="nofollow">js-xlsx</a> for generating new Excel files. When a new file is generated I want it to be saved to local disk.</p> <p>This code is used generating and downloading a new Excel file, how can it be stored to disk instead?</p> <pre><code...
1
1,128
Custom Control ClassNotFoundException in Scene Builder
<p>I have created a new control by extending an existing one, and I would like to use this new control in my JavaFX scenes. I would like to be able to edit my scenes using Scene Builder, but after adding the new control to the FXML file, I am encountering a <code>ClassNotFoundException</code> when opening Scene Builder...
1
1,083
How to move marker when lat long changes in Google map android?
<p>in my android application I am receiving the latitude and longitude from <code>JSON</code> and I have pointed it in Google map using marker but I want to move the marker when the latitude and longitude changes like <code>GPS</code> tracking?? Please help me here is my source code,.........</p> <pre><code> @Override...
1
2,481
can't remove stagewebview
<p><strong>[UPDATE]</strong> I Finally fixed it, by putting the <code>StageWebView</code> instance into a <code>MovieClip</code> instance like this:</p> <pre><code> package eu.lafactoria.PF { import flash.display.Bitmap; import flash.display.MovieClip; import flash.geom.Rectangle; ...
1
1,224
autoweaving AspectJ fails during unit tests in IntelliJ
<p>We have a series of unit tests and they were passing fine prior to me trying to add some aspects for dependency injection and logging duration of methods being called in our rest end points. </p> <p>In the unit tests prior to the tests failing, we get two odd errors: </p> <pre><code>[AppClassLoader@14dad5dc] erro...
1
1,257
Object assignment in Vue.js method
<p>I have a Vue component in which I select a specific value from an array of objects then attempt to copy some fields from that value into Vue data</p> <pre><code> &lt;div class="container"&gt; &lt;h4&gt;Add Item&lt;/h4&gt; &lt;form @submit.prevent="addItem(item.Code)"&gt; &lt;div class="row"&gt; ...
1
1,175
jsf and twitter bootstrap modal
<p>I have a datatable and I would like the user to click on a row and reveal more info about that row in a twitter modal. The datatable works fine but the modal will not pop up when i click. I followed instructions to call the pop up function manually but it does not work.</p> <p>The data table and modal definitions:<...
1
1,326
Password hashing not working in php mysql
<p>I am trying to use password hashing using phpmysql. The issue is password_verify does not seem to work for me so far. Say, my password during registration is '123456789'. I stored it in database using</p> <pre><code> password_hash('123456789', PASSWORD_BCRYPT, array('cost' =&gt; 12)); </code></pre> <p>And then ...
1
1,193
Efficient way to trim() space characters off all Properties in a JavaScript Object as they are being set?
<p>This is a stripped down demo with the very basic needed to replicate what I need to do.</p> <p>In my JavaScript application I have a <strong>Click event</strong> on <strong>Project Task Records</strong>.</p> <p>When a Task is clicked on, I populate a JavaScript Object with data from the DOM related to the clicked ...
1
1,262
UnicodeDecodeError: 'ascii' codec can't decode byte 0x96 in position 10: ordinal not in range(128)
<p>How can I get data from a UTF-8-encoded MySQL database without getting the UnicodeDecodeError? I'm making a website using Python and HTML templates. Here's the code I used to get stuff from the database, which seemed to work fine before I switched the database's encoding to UTF-8:</p> <pre><code>@app.route("/songs"...
1
1,337
Android AsyncTask Can't create handler inside thread that has not called Looper.prepare()?
<p>Why i am getting this error when i use this code in the <code>asynctask</code> even i am using <code>runOnUiThread()</code> this is the code i am using ( i am using fragments ).</p> <pre><code>private class GmailXMPP_AfterLogin extends AsyncTask&lt;AfterLogging, Void, Void&gt; { private ProgressDialog _dialog...
1
2,442
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints
<p>my error is simple but for me it is hard to fix it because my knowledge is not good . which is when i Enter the record by clicking the Addbutton of AddStudent record then the record that i deleted like record StudentID = 1, FirstName =Raju ,LastName=Abbasi </p> <p>After Delete it again and press save Change even Af...
1
5,266
OpenGL ES 2.0: Object rotation problem
<p>I know the following question have been asked many times on different forums, but after viewing different solutions, it still did not fix my problem, or maybe I did not get what they mean<br> I am trying to model a pyramid using OpenGL ES 2.0 on the iPhone.<br> I would like to allow the user to rotate this pyramid u...
1
1,445
browser.tabs.sendMessage(): Error: Receiving end does not exist
<p>I trying to run example code given on the <a href="https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/sendMessage" rel="nofollow noreferrer"><code>tabs.sendMessage()</code> MDN page</a>. So my code is:</p> <p><em>manifest.json</em>:</p> <pre class="lang-json prettyprint-override"><code>{ "manif...
1
2,760
Firebase "no auth token for request" Error
<p>I'm trying to download a file from Firebase. I've done all the requirements to set up the cloud Storage from Firebase and made my cloud storage open :</p> <pre><code>rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write; } } } </code></pre> ...
1
1,058
Aggregating one column based on the distinct value of another column
<p>This scenario is based upon a schema in <a href="https://stackoverflow.com/questions/4562543/join-tables-and-sum-columns-for-each-distinct-row-with-some-rows-are-considered-a">another question</a> and I'm not interested in any discussion about the validity of the schema!</p> <p>I'm interested to know if there are a...
1
1,040
How to get controls in InsertItemTemplate to show in a GridView
<p>I consider myself at intermediate level with the GridView. So far my understanding of it has come pretty easy to me, that is until I think I need to use the InsertItemTemplate. I could use the Footer to do my "add new" record but I have 19 fields I need the user to enter data into, I want to put it all into one colu...
1
6,402
Excel VBA - Compile Error - Object Required
<p>This is my first post to this wonderful forum . I am new to VBA and have been writing my first meaningful macro beside doing some practice while learning. </p> <p>While the WIP code is reproduced below, let me give you a background. </p> <p>Have a a sheet to calculation investment maturity based on various inputs...
1
1,411
c3p0 Deadlock detection - thread running too frequently
<p>We are using Hibernate and c3p0 connection pooling library. So far, this combination worked great until recently when we decided to increase the maxPoolSize to 1000 and do a lot of stress testing of our application. The peak load of our application is causing the DB to respond very slowly and as a consequence the De...
1
1,598
Login system using ArrayList
<p>I am trying to create a login system using a user class I created and storing multiple users in an ArrayList. Then in order to make sure what the user enters into the various fields is the same as what the specific "user" is, there is a loop at the bottom that compares the two. The method at the bottom either return...
1
3,735
Java JUnit Parameterized error
<p>I am creating a Java application based on JRE 6. I use JUnit 4 to generate parameterized tests. I am receiving this error:</p> <pre>The annotation @Parameterized.Parameters must define the attribute value</pre> <p>on the line containing the annotation:</p> <pre><code>@Parameterized.Parameters </code></pre> <p>Be...
1
1,093
Iphone NSXMLParser NSCFString memory leak
<p>I am building an app that parses an rss feed. In the app there are two different types of feeds with different names for the elements in the feed, so I have created an NSXMLParser NSObject that takes the name of the elements of each feed before parsing. Here is my code:</p> <p>NewsFeedParser.h</p> <pre> #import ...
1
2,398
PHP how to prevent page redirection after mail send?
<p>I've got 2 seperate file with same code. contact.html and contact.php I used contact.html for ajax call to load content inside, and contact.php for sending a mail. But I don't want to people redirect to contact.php cause page is crashed. (you can also try to fill the forms and see my problem) What I want to; Is it p...
1
1,615
Vue CLI 3 + Typescript + TSLint and Vue 2.5.17
<p>Recently, I've decided to play around with Vue 2.5.17 and TypeScript. Everything works fine, even compiles just fine and works, however:</p> <ol> <li>Imports of <strong>.vue</strong> files in WebStorm 2018.2 always result in the <em><strong>Cannot find module @/path-to-the-module</strong></em></li> <li>Typescript al...
1
1,879
MongoDB updateOne with upsert not inserting document
<p>I have a nodejs Discord bot that is trying to update/insert a document in a mongodb (v4.2.2). I've done this many times, but for some reason, this particular function is just not working and I cannot find my error. </p> <pre><code>quit: async function ( memberId ) { console.log (memberId) //checks out let ...
1
2,958
Oracle ASCII Character Set - .Net Extensions
<p>I am trying to extract data out an Oracle table. The column is defined as char(40) and contains extended ASCII values. Currently in SQL*Plus, the extended characters are displaying as an "upside-down" question mark. I need to be able to extract the ASCII characters that have a decimal value > 128 and display in the ...
1
2,306
MVC3 C# Export to Excel
<p>I am trying to export data from database to excel 2007 file. </p> <p>I just want to change the header of html file to excel 2007 file. </p> <p>I format the data into a table and change the header to this:</p> <pre><code>Response.AddHeader("Content-Disposition", "attachment;filename= filename.xlsx"); Response.Cont...
1
1,138
Undefined symbols for architecture armv7s:
<p>So I am trying to implement this into my current project:</p> <p><a href="https://github.com/mobitar/MBAlertView" rel="noreferrer">https://github.com/mobitar/MBAlertView</a></p> <p>Wenn I try to use this in my app I get this error:</p> <blockquote> <p>Ld /Users/florianschaal/Library/Developer/Xcode/DerivedDat...
1
1,542
How to dynamically load a native shared libraries (.so) for NativeActivity on Android N?
<p>I want to load custom <code>.so</code> dynamic for the <code>NaticityActivity</code>, but get error when <code>NativeActivity.onCreate()</code> call <code>classLoader.findLibrary("UE4");</code></p> <p>this is party of <code>NativeActivity.onCreate()</code></p> <pre><code> BaseDexClassLoader classLoader = (Base...
1
1,355
Tabbar view for my flutter app is not working
<p>This is my code. Changing tabbar view contents is not changing the contents.</p> <p>I've tried changing the children of tabbar view to text but still no effect</p> <pre><code>import 'package:flutter/material.dart'; void main() =&gt; runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget buil...
1
1,579
Code Behind calling a JavaScript function on a button click - C#
<p>I have a Js function which calls the bootstrap modal popup. I'm calling this Js function from code behind on a button click. The problem is when I click on the button it is showing the modal popup, but when I navigate to another page(When I click on another button,It navigates to a google document reader) and come b...
1
1,295
org.springframework.beans.factory.UnsatisfiedDependencyException , No qualifying bean of type [edu.sample.service.ItemService]
<p>It is spring boot application. i am getting below exception.how resolve it please help me My Controller class is </p> <pre><code>import edu.sample.model.Item; import edu.sample.service.ItemService; @ComponentScan(basePackages = "edu.*") @RestController public class ItemController { @Autowired @Qualif...
1
1,037
Release image from process form PictureBox
<p>I having trouble with error "System.IO.IOException: The process cannot access the file 'I:\User\Image\BarCodes\QTY.png' because it is being used by another process.at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)"</p> <p>I know this error is caused because some other program of the same progra...
1
1,636
React Native pass data into modal
<p>I'm still new in react native and programming, and i am trying to pass items from my flat list into a modal. What i'm about to pass is the icon, status, and description. How am i supposed to do that?</p> <p>this is my flatlist <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fal...
1
1,509
Deserialize the soap xml response in a .netcore app
<p>I have to call a soap service from a C# .net core app and get the results in a class that I can use to do some logic. I did the soap request and the remote call works fine, but now I have to deserialize the xml soap response into a class. Here's an example of the response:</p> <pre><code>&lt;SOAP-ENV:Envelope SOAP-...
1
1,807
Multiple NsfetchedResultsController on a UItableView
<p>I'm having difficulty implementing 2 <code>nsfetchedresultsController</code> in a <code>tableView</code>. I wanted a fetchedresultsController in each section of the table (2 sections), something like this:<br></p> <p><strong>Wishlist</strong><br></p> <ul> <li>product</li> <li>product2</li> </ul> <p><strong>Bought...
1
2,411
TextInputLayout Hint doesn't float up after updating Google Support Library
<p>I recently updated my support library to <code>com.android.support:appcompat-v7:25.1.0</code> after which if I add a text to <code>EditText</code> via xml file the <code>TextInputLayout</code> hint doesn't float up.</p> <p>I also had a look at <a href="https://stackoverflow.com/questions/31544089/textinputlayout-an...
1
1,262
Why i am not able to call adapter method from my activity
<p>I have defined a method <strong>removeItem</strong> in my Adapter class and i am trying to call that method from my activity but it doesn't recognize my method when i use the dot operator with my adapter class reference. Please help me out here.</p> <pre><code>public class RecyclerViewCalendarAdapter extends Recycl...
1
1,791
Android Location return null after Enabling GPS in dialog
<p>When I enter a screen, I check for if GPS is turned on, if not, the dialog to enable GPS is shown. When user clicks Yes, onActivityResult -> GPS is turned on and I try to get the location but this always returns null</p> <p>When I enter the screen with GPS already on, location is retrieved properly. I have been str...
1
4,567
How can I better query multiple domains in Active Directory using C#?
<p>I am attempting to expand a LDAP / AD search from only searching in the currently logged in domain to searching all domains in the AD. The method takes in the string with the query and returns and return an LDAPInformation object. </p> <p>While I am asking, is there any better way to search for the name than in thi...
1
1,617
How to override Datagrid cell style in XAML?
<p>I have a style defined in app.xaml as below:</p> <pre><code>&lt;Style TargetType="DataGridCell"&gt; &lt;Setter Property= "BorderThickness" Value="1"/&gt; &lt;Style.Triggers&gt; &lt;Trigger Property="IsSelected" Value="True"&gt; &lt;Setter Property="Template"&g...
1
1,279
Retrieving buffer/packet/payload sizes for USB serial write transfer in userspace Linux C code
<p>Apologies in advance I won't be able to accept an answer here immediately - just thought I'd like to jot this down, while I have the problem...</p> <p>In brief: I can observe three different buffer sizes, when I initiate a write to an usb-serial port using user-space C code under Linux - and the problem is, I would...
1
3,863
Jersey - Spring 3 autowiring (NoClassDefFoundError: EnvironmentAware)
<p>I'm trying to implement a proyect using Spring 3.1.2.RELEASE with Jersey 1.13 on a Tomcat 7 server. My problem is that when I tried to autowire a service into the rest implementation, the service bean turned <code>null</code> everytime.</p> <p>I found a suggestion, to set this in the <code>web.xml</code></p> <pre>...
1
7,790
Two immutable lists - how to make triple equality work?
<p>Let's say we have an immutable object that is created using Facebook's great <a href="https://facebook.github.io/immutable-js/" rel="noreferrer">Immutable.js</a>. I want to compare two lists that were produced using <code>.map</code> or <code>.filter</code> out of single source and make sure they are equal. It seems...
1
1,086
Qt: Change application QMenuBar contents on Mac OS X
<p>My application uses a QTabWidget for multiple 'pages', where the top-level menu changes depending on what page the user is on.</p> <p>My issue is that attempting to re-create the contents of the menu bar results in major display issues. It works as expected with the first and third style (haven't tested second, but...
1
1,227
C++: Is It Possible to End a Non-Void Function Without a Return?
<p>This is a fairly general question, but long story short, I'm trying to figure out a way to break out of a function without using return. I've got a function built from a template, so my compiler doesn't like me using "return;" to terminate early as I've seen suggested before. Here is a condensed version of what I'm ...
1
3,417
How do I insert queue elements into a vector?
<p>I have </p> <pre><code>typedef std::queue&lt;MyObject*&gt; InputQueue; std::vector&lt;InputQueue&gt; inp_queue; </code></pre> <p>Now what I want to do is define at runtime say 5 queues and place data on those queues like</p> <pre><code>inp_queue[1].push(new MyObject()); </code></pre> <p>etc.</p> <p>I got it to ...
1
1,362
Downloading on Android - FileNotFoundException but file exists
<p>I tried to download a file from a server in Android but all I get is a FileNotFoundException.</p> <p>My download method works fine for all files I give it, but not on this one specific url. The url it is not working on looks like this: <a href="http://server.com/download.aspx?action=geta&amp;sid=12345&amp;file=some...
1
1,403
Android with Room - How to set a foreign key nullable
<p>I'm using Room in my Android app. One table (stock_move) contains several Foreign keys. In some case, I need to insert a stock_move without a FK (locationDestId). In this case, SQLite raise an error:</p> <blockquote> <p>io.reactivex.exceptions.OnErrorNotImplementedException: foreign key constraint failed (code 19...
1
1,025
Maintain state of useFieldArray react-hook-form
<p>I built a multistep form using <em><strong>react-hook-form</strong></em> with a dynamic fields array using useFieldArray.</p> <p>Documentation: <a href="https://react-hook-form.com/api/usefieldarray/" rel="nofollow noreferrer">useFieldArray documentation</a></p> <p>Here is the full working code link: <a href="https:...
1
4,114
Can't resolve 'ngx-bootstrap/component-loader/component-loader.factory'
<p>I'm getting this error when I tried <code>ng build --prod</code> with Angular 7.2.9</p> <pre><code>Module not found: Error: Can't resolve 'ngx-bootstrap/dropdown/bs-dropdown.config' in 'C:\Users\fvale\myproject\src\app' ERROR in ./src/app/app.module.ngfactory.js Module not found: Error: Can't resolve 'ngx-bootstrap...
1
1,716
Magento: Custom product attribute to select a CMS page
<p>I want to add a new product attribute that renders a drop-down list with all CMS pages as its options. I created an extension and wanted to add this attribute via the install script. but after running this, Magento corrupted the eav_entity_type table...</p> <p><strong>What I tried so far:</strong></p> <p>mysql4-in...
1
1,352
Element 'RadGrid' is not a known element
<p>I'm trying to use the Telerik RadGrid, but I'm getting the following warning:</p> <blockquote> <p>"Element 'RadGrid' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing."</p> </blockquote> <p>Here are some things that I've already checked...
1
1,059
JobScheduler posting Jobs twice (not expected)
<p>I am writing a tutorial on JobScheduler and I find a strange behavior. I ask for 3 differents jobs to be scheduled in 1 second (.setOverrideDeadline(1000)) but they are all submitted and ran twice... So here the code:</p> <pre><code>public class MyApplication extends Application { private static final int JOB_I...
1
2,884
MySQL not booting with new my.cnf file from Percona Tools
<p>I have been trying some optimizations of the mysql database on the server. I went through the wizard at Percona tools and took the my.cnf they gave me. Everytime I go to restart the mysql with that file it doesn't work. I already changed the locations of the socket and pid to match the old one. Here's what I hav...
1
2,867
Invert text color on mouse hover
<p>I'd like to invert a black text while hovering it with a custom -black- cursor. This GIF demonstrates the effect:</p> <p><img src="https://i.stack.imgur.com/kEMjB.gif" alt=""> </p> <p>Couldn't wrap my head around to make this work with CSS &amp; JS. Some combination with mix-blend-modes, clipping masks, pseudo ele...
1
3,574
Python- sqlalchemy.exc.ArgumentError:could not assemble any primary key columns for mapped table
<p>I'm using Flask + Alembic + Sqlalchemy. I want to create two table and use it. First, i run alembic script :</p> <pre><code>"""add table insurace_bands and insurace_discounts Revision ID: 39ba7ec3428 Revises: 18468fbedbac Create Date: 2015-05-12 09:10:05.175513 """ # revision identifiers, used by Alembic. revisi...
1
1,321
How to overcome maximum call stack size exceeded in typescript, nodejs & angular
<p>I've been working at debugging this for days now! I'm trying to pull the database values from Firebase Real Time database. But the below snippet</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html pret...
1
1,295
How To Implement Google reCAPTCHA With Redux Form
<p>I have a contact page on which I have a contact form defined like this:</p> <pre><code>import React from "react"; import { Field, reduxForm } from "redux-form"; import Recaptcha from "react-recaptcha"; const required = value =&gt; (value ? undefined : "This field is required."); const email = value =&gt; value &am...
1
1,642
Error 500 - Wrapper cannot find servlet class Tomcat6
<p>I'm really going crazy in these days, I'm trying to develop a servlet, but I really can't understand why this one doesn't work.</p> <p>Here's the code:</p> <pre><code>import java.io.IOException; import javax.servlet.ServletException; import java.io.BufferedReader; import java.io.PrintWriter; import javax.servlet...
1
1,066
Invoke a controller's function using a form button on PHP/CodeIgniter
<p>I'm trying to do a small proyect in PHP using CodeIgniter and NetBeans. I have this HTML view:</p> <pre><code>&lt;div class="section section_with_padding" id="users"&gt; &lt;h1&gt;Users Access&lt;/h1&gt; &lt;div class="half left"&gt; &lt;h4&gt;Log In&lt;/h4&gt; &lt;p&gt;Log...
1
1,707
PHP - Set a Namespace in SoapClient
<p>I'm having issues with a SOAP call, and I believe it is related to a namespace. I'm getting incorrect responses back from the server I'm sending to, and it appears to be thanks to an incorrect SOAP Envelope and namespace.</p> <pre><code>152 protected function callWithSOAP($xml) { 153 154 try { ...
1
2,035
Setting the zoom level in MapKit Xcode
<p>How can I set the zoom level of my Google MapKit in SDK? Like for example, I live in New York, and I've set up 4 coordinate positions in my ProjectName-info.plist (URL Types > Item 0 > URL Schemes > Item 0), then I've set up my code in my UIViewController subclass file:</p> <pre><code>#import "GoogleMap.h" #import ...
1
1,376
CSS Automatically Resize Grid Item
<p>I'm trying to learn CSS to some extent. I had following code where when resizing logo and table style would overflow table. </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; .grid-container { display: grid; grid-template-columns: au...
1
3,198
Inside bootstrap modal scroll to specific element is not working
<p>I have used boostrap modal.in that we need to use scroll to specific element. i tried by using below code.but doesn't works</p> <pre><code> $('#centralModalLg').on('show.bs.modal', function() { $( "#elementId" ).scrollTop(0); }); </code></pre> <p><strong>Updated:</strong></p> <p>when i open modal wind...
1
8,129
Connecting to Azure SQL from App Service using AAD identity
<p>An on-premise web application (.net 4.6.1) which uses Windows Authentication for its users and then AD Integrated Authentication to connect to a MS SQL database is been migrated to Azure.</p> <p>Ideally, the existing security mechanism of granting permissions to AD users on database objects and let the DB be securi...
1
1,354
ExcelJS writeFile not working: Uncaught TypeError: fs.createWriteStream is not a function
<p>I'm trying to export a formatted excel file using ExcelJS and the writeFile method simply isn't working. I get the following exception when I call the function:</p> <p><code>Uncaught TypeError: fs.createWriteStream is not a function</code></p> <p>My javascript is bundled using browserify.js. Here's my source code:...
1
1,451
How to save image into your local folder using Angular.js and PHP
<p>I need to store image in my local folder using Angular.js and PHP. Here is my code:</p> <pre><code>&lt;div class="col-md-6 bannerimagefile" ng-controller="imgController"&gt; &lt;form name="form"&gt; &lt;label for="bannerimage" accesskey="B"&gt; &lt;span class="required"&gt;*&lt;/span&gt; Ba...
1
1,084
The meta-data tag does not have right value
<p>I am newer in android , I am trying to use Google Maps in my application using google play services getting errors.</p> <p>MapViewActivty:</p> <pre><code>public class MapsViewActivity extends FragmentActivity { // Google Map private GoogleMap googleMap; @Override protected void onCreate(Bundle savedInstanceState)...
1
2,554
React table row selection
<p>I've followed below link and tried to construct a table grid which includes row selection.</p> <p><a href="https://codesandbox.io/embed/github/tannerlinsley/react-table/tree/master/examples/row-selection" rel="nofollow noreferrer">https://codesandbox.io/embed/github/tannerlinsley/react-table/tree/master/examples/ro...
1
4,906
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)?
<p>test.py : </p> <pre><code>from hello import Put put_response = Put.put_device_save() rest_api_response = json.loads(put_response)['Device']['Name']['Value'] socket_resp = json.loads(SocketIO.ssc('{"device":{"name":":null}}', "123.456.57.186"))['device']['name'] </code></pre> <p>hello.py</...
1
2,025
How to prevent from C++ to recompile all files in Android NDK?
<p><strong>Hello,</strong></p> <p>I'm using the Android Studio with NDK and JNI in a project with a large amount of C++ files. When I make changes in a single C++ file <strong>it won't apply in the code unless I rebuild the whole project</strong> and refresh the entire C++ files so they have to recompile. The compilat...
1
2,046
Json deserialize output show in View using ASP.NET MVC and Json.Net
<p>I am trying to deserialize json object to show output via ViewBag using ASP.NET MVC.I am using the following .Json file for my project-</p> <pre><code>{ "poi":[ { "Name": "Berlin", "Shorttext": "Berlin is the capital of Germany and one of the 16 states of ...
1
1,704
How to Pass a List of Objects from activity A to activity B in Kotlin?
<p>I have 2 Activities, I want to pass an arraylist of an Object and show it on a ListView</p> <blockquote> <p>Activity A:</p> </blockquote> <pre><code> btnGuardar.setOnClickListener{ if(edtNombre.text.toString().equals("") || edtApellido.text.toString().equals("") || ...
1
1,065
How to rotate 3D Scatterplot
<p>Below is a code that works using the scatterplot3d() function to run a 3D scatterplot of height vs weight vs volume where points are a Class value between 1-6. The angle is currently at 45 degrees and I know I can tilt the plot by changing the angle. What code do I use to rotate the plot to the left or right so that...
1
1,130
Stuck on Java program that tallies grades and shows results
<p>I'm taking a beginners course in Java and they asked us to: </p> <ul> <li><p>Write a program to tally the number of A's, B's, C's, D's and F's based upon a list of scores entered by a user.</p></li> <li><p>After all the scores are entered, the program must display a horizontal bar graph of the number tallied for ea...
1
1,843
Gitlab webhook get error: 500 Internal Server Error - URI::InvalidURIError
<p>With Gitlab <em>(10.6.2)</em> and Jenkins installed on local machine, and trying to auto build via gitlab's webhook, according to <a href="https://github.com/jenkinsci/gitlab-plugin/wiki/Setup-Example" rel="nofollow noreferrer">https://github.com/jenkinsci/gitlab-plugin/wiki/Setup-Example</a></p> <p>But, when test ...
1
1,046
Webpack config issue
<p>Hi i'm a super newbie about webpack but i spent something like 4 hours researching to fix my problem so I decided to post my issue here. That's what my prompt diplay when i launch "webpack" command.</p> <blockquote> <p>WARNING in ./~/ajv/lib/async.js 96:20 Critical dependency: the request of a dependency is an ...
1
11,151
Jquery Jsonp: Request failed: parsererror in Internet Explorer 9 and below
<p>I am using JSONP to make cross domain requests. The script works perfectly in Firefox and Chrome, but in IE 9 and below I get the following error:</p> <pre><code>Request failed: parsererror Error: jQuery1720027601653975035778_1348794800150 was not called </code></pre> <p>I've tried setting the dataType from <code>...
1
2,217
How do you get the drag drop drop target object?
<p>I'm hoping the title wasn't too confusing, wasn't entirely sure how to describe it. Anyway!</p> <p>I have a treeview with hierarchicalDataTemplates, as shown here;</p> <pre><code>&lt;TreeView.Resources&gt; &lt;HierarchicalDataTemplate DataType="{x:Type WPFFM:AssetCategoryViewModel}" ItemsSource="{B...
1
1,447
How to add vertical and horizontal line around Flutter grid view?
<p>I am new to flutter and currently I'm working on an Online game app. In main page I have implemented image slider and grid view that show category of Games.I want to add vertical and horizontal line around the grid view like image attached, I have tried to add Divider but result is not same what I want.</p> <p>I wa...
1
1,499
Define a Spring RestController via Java configuration
<p>Is it possible to Define a Spring RestController (<code>@RestController</code> annotated class) <em>solely</em> in the Java Configuration (the class with <code>@Configuration</code> annotated in the method marked with <code>@Bean</code>)?</p> <p>I have an application managed by spring boot (the version doesn't matt...
1
1,092
Displaying a list of paired bluetooth devices in a popup dialog - setAdapter null pointer exception
<p>I'm trying to create a simple app that displays a list of paired bluetooth devices in a dialog box when a "Connect" item in the action bar is clicked. Here is the XML of the dialog I'm inflating:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bt_l...
1
1,291
How to get user's GPS coordinates by clicking a button
<p>i want to make application like this :</p> <p>User clicks the button The application show the user's coordinates (Latitude and Longitude)</p> <p>i'm following the steps <a href="http://developer.android.com/guide/topics/location/obtaining-user-location.html#Updates" rel="nofollow">here</a></p> <pre><code>// Acqui...
1
1,242