title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Formview insert not working if autopostback=true. asp.net
<p>I have a page with a <code>dropdownlist</code> that has a <code>selectedIndexChanged</code> event attached. So, for each option in the <code>dropdownlist</code>, there is a <code>usercontrol</code> that contains a form relevant to that section. (each user control is in a panel, and the <code>selectedIndexChanged</...
2
11,787
Ansible: applying role templates hierarchically
<p>I'm planning to use Ansible to manage a fairly large set of Linux servers with a lot of variation among them.</p> <p>The hosts will be grouped into roles with a hierarchy between them, there's a <code>common</code> role, on which every other depends, child-roles which depend on on <code>common</code>, and there may...
2
1,383
Can't bind to 'ngIF' since it isn't a known property of 'ion-item'
<p>I need to use *ngIF inside the code of my ionic4 project, found some answers but none works as none is targeting <code>ionic 4</code> and <code>angular 7</code>.</p> <p>and I tried to import the <code>imports: [CommonModule]</code> part but it didn't work at all.</p> <p>Here is the code am using in <code>.html</co...
2
2,701
Error:Execution failed for task ':app:dexDebug'... using android studio
<p>I am using this library <a href="https://github.com/mikepenz/MaterialDrawer" rel="nofollow">https://github.com/mikepenz/MaterialDrawer</a></p> <p>when I try run my project I get the following error:</p> <p><strong>Error:</strong></p> <blockquote> <p>Error:Execution failed for task ':app:dexDebug'. com.android...
2
1,202
bitwarden_rs not working behind traefik v2.2 (Bad Gateway)
<p>So I'm trying to add bitwarden_rs to my docker network but seems to fail hard.</p> <p>I also have a nextcloud docker container running behind traefik (nextcloud.mydomain.com) which is working fine. But adding bitwarden with his own subdomain (bitwarden.mydomain.com) to traefik doesn't want to start working. I'm alwa...
2
2,354
popup window on web map
<p>i have displayed my map on web by using arcgis javascript api sample. in the sample it display a popup window but on my side it does not. now i want to add popup window. i want when user click on the different type of soil a popup window will open and display the attributes of the layers</p> <p><div class="snippet"...
2
2,235
Can't find the JSON parsing error that the logcat is complaining about
<p>I'm was trying a tutorial to get data to android from a MySQL database that you can find here: <a href="http://www.helloandroid.com/tutorials/connecting-mysql-database" rel="nofollow">http://www.helloandroid.com/tutorials/connecting-mysql-database</a></p> <p>So this is the table from where I'm trying to fetch data:...
2
2,509
Trying to include OpenSSL headers in Visual Studio 2012: error LNK2019: unresolved external symbol
<p>I know this problem is pretty common. In fact, I searched a lot about the problem but I can't find any solution which fits my case. I'm working in a C++ Visual Studio 2012 project which uses openssl libraries. This is a minimum sample code.</p> <pre><code>#include &lt;iostream&gt; #include &lt;stdio.h&gt; //OpenSSL...
2
1,034
ViewStub reinflates last view inflated on first pass of onCreate
<p>I have a bug with my activity.</p> <p>I have three view stubs in my linear layout like so - </p> <pre><code>&lt;ViewStub android:id="@+id/index_1" android:layout="@layout/index_edittext" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;ViewStub android:id="@+id/index_2" an...
2
1,326
How can I get the user name who posted the post (laravel 5.8)
<p>I'm try to get the user name who create the post witch is <em><strong>(Problem model)</strong></em>, I do not know what is wrong I have try <a href="https://laravel.com/docs/5.8/eloquent-relationships#eager-loading" rel="nofollow noreferrer">Eager Loading</a> in laravel documentation and I have check these <a href="...
2
2,375
Gradle and IntelliJ with mixed Java/Scala project and SDK 1.6
<p>I am getting started with Gradle on a polyglot java/scala project. The java modules are legacy modules built using JDK 1.6 so I decided to have my build environment use the older JDK.</p> <p>This has a very practical rationale. Code such as the following:</p> <pre><code>class X{ private int i; &lt;T extends X&...
2
1,243
How to load load google's api.js file in to my vue project
<p>I am trying to integrate google calendar in to my vue project. I am following <a href="https://forum.vuejs.org/t/how-to-integrate-google-calendar/31218/7" rel="nofollow noreferrer">https://forum.vuejs.org/t/how-to-integrate-google-calendar/31218/7</a> this and there I found this example <a href="https://jsfiddle.ne...
2
2,288
How to create a multi-option Style Switcher using jQuery?
<p>I need to create a multi-option Style Switcher for my WordPress theme, but I can't get anything working (see code below). By multi-option I mean this: The user should be able to select a custom color, pattern and font independently of each other (a simple css link swap-out won't do). All this is far beyond my curren...
2
2,636
Update database Tables based on list of Checkbox selection in MVC Edit View
<p>I am new to MVC. I have a Edit view which has some fields related to Page Menu like Name, Url etc. In the same view i have List of page roles(Admin, Customer etc) displayed as Checkboxes. In the Edit Get Request, some checkboxes are displayed selected based on the database values for that particular Page Menu.</p> ...
2
5,388
Is there a way in VB.NET to have buttons and menu bars that are built in the code show up in the design view?
<p>Is there a way in VB.NET to make components like buttons and menus bars show in design view of you added them in programmatically?</p> <p>I now in Java i you add a button in the code it will show in design view if you switch back and forth. Can this be done in VB.NET.</p> <p>Code:</p> <pre><code>Imports System.IO...
2
3,015
nullPointerException with button onclick listener
<p>i'm having nullPointerException issue that i can't resolve. could someone help please?</p> <pre><code>my code: package gsb.com; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.widget.TextView; the main class public class ActivitePrincipale extends Activity { ...
2
7,851
Connect Java Mission Control to Wildfly 16
<p>I try to connect Java Mission Control (JMC) with <a href="https://en.m.wikipedia.org/wiki/WildFly" rel="noreferrer">Wildfly</a> 16. Application server lays on Docker. </p> <p>I successfully connected to wildfly via jconsole, to manage it I followed steps described <a href="https://www.perftactique.com/2017/03/11/ho...
2
1,443
HTML Form Basics for PayPal Payments Standard custom fields
<p>I'm trying to put a PayPal form on my website but I would also like to put custom fields on it. </p> <p>I mean, I would like to receive the details that maybe are different from the PayPal details. </p> <p>Maybe someone does a payment but wants to use a PayPal account with a different email, so I would like to kno...
2
2,082
How do I make text in a Bitmap scale properly on different screen densities in Android?
<p>I'm pretty new to android programming, but I've had some people program a widget for me, but they've done things a little differently than what I would've wanted... They set up all of the text in the widget to be displayed as bitmap instead of a textview. This doesn't give me the control I would like though. Let me ...
2
1,114
Spyder permission error
<p>I created virtual environment test and installed spyder in that environment activated and tested </p> <pre><code>source activate test conda info -e # conda environments: # bin /home/myname/anaconda3/envs/bin conda-meta /home/myname/anaconda3/envs/conda-meta include ...
2
1,067
32-bit shellcode executes in assembly but not in c on 64-bit os even with -m32
<p>I'm working on a tcp-bind shellcode for a 32-bit system. The code is sitting on a 32-bit ubuntu and the host os is 64 Bit Windows 10 (do they even make 32 bit windows 10?)</p> <p>The shellcode is a tcp-bind. It executes fine as its own standalone executable but when the code is converted to hex and is put into a c ...
2
1,345
Spring MVC login functionality not working. Always redirecting to login page
<p>I was trying Spring MVC login functionality in one of my sample application. But, it always redirects to login page.</p> <p>Below is my code: <strong>application-security.xml</strong></p> <pre class="lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans:beans xmlns="http://ww...
2
2,804
How to make a description box "fit" inside an image width HTML
<p>So i have an image, I have a text box with a transparent background that is overlaid on the image (FYI it contains the price of the item and if it is onsale). I would like the text box to "fit" the width of the image it is over. Currently the text is wider than the image. I've tried adjusting the width but that only...
2
1,037
java invalidKeyException
<p>Hi all i get this error when i am trying to copy and paste a ssh2 public key that i have generated.</p> <p>here is the full stack trace of the error:</p> <pre><code>java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: invalid key format at sun.security.rsa.RSAKeyFactory.engineGenerate...
2
1,652
Unexpected value 'MdlModule' imported by the module 'AppModule'
<p>Just started experiencing this error after moving from angular2 Rc.5 to Final. I don't know what might be causing it, but i think its from the angular2-mdl package. Would be happy if someone can help me out.</p> <p>Here is the complete error message:</p> <pre><code>Uncaught Error: Unexpected value 'MdlModule' impo...
2
1,073
ListView items sort/reorder and saving changes?
<p>I have a <code>ListView</code> and I can reorder items, but every time I exit from the app and start it again the order goes back to default. I'd appreciate if someone can give me answer and maybe a little snippet of how I can do that.</p> <p>Example: I have two items and two links. Google and Yahoo. I use drag and...
2
1,141
flask_moment current time refresh in browser not updating
<p>Following basic setup with python3.4, jinja2, flask_moment (0.5.1), Flask(0.10.1) integration. I am trying out the capability to simply understand the workings. The example is nonsensical but I want to get browser to display:</p> <ul> <li>firstly, the actual time in real time ("The local time is ...") continually...
2
1,119
Not getting id of cloned div element in jQuery
<p>I have a div element whose id attribute is "<em>selectAll</em>". Using jQuery's <em>.clone()</em> method I am cloning that element and changing its <em>id</em> attribute to a new one using jQuery's <em>.prop()</em> method. This procedure of cloning that element and changing its id to a new one is done many times dep...
2
1,278
c# convert ObservableCollection to another type
<p>I have the following problem that has got me stuck. In the below example I'm creating class A and class B and inheriting class A from class B. I then create an <code>ObservableCollection&lt;A&gt;</code> to hold a collection of people. What I then wish to do is expand class A to include the properties in class B and ...
2
1,296
Make a fluid animation
<p>I have 16 images that represent someone throwing a ball. I want to make a fluid animation with these images. With 20 images/s the eye thinks it's a movement and not a succession of images. So I want to display 1 image every 50ms</p> <pre><code>public void fire() { final ImageView image3 = (ImageView) gameactivity.f...
2
2,061
Why will this R package not install and how can I fix it?
<p>I would like to include a Fortran subroutine in an R package. I have always only built packages using devtools and roxygen (so my knowledge may be pretty limited). I am getting an error that prevents me from the package getting installed after it has been built about it not being a Win32 application...</p> <p>I am ...
2
1,823
external-ip remains pending on controller-service after installation of Nginx Ingress Controller on AWS EKS
<p>I'm following the quickstart guide <a href="https://kubernetes.github.io/ingress-nginx/deploy/#aws" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/deploy/#aws</a> to install it on an aws eks cluster. The cluster runs in a private subnet and will receive traffic via a cloudflare argo tunnel.</p...
2
1,501
Eclipse compiling java but with errors in the log
<p>I am using eclipse and i keep getting this error. I have deleted .metadata folder multiple times to get it working. Is there something I am missing? I have cleaned the project but with no luck I can see class files being updated but after iis reset nothing changes on my web page.</p> <pre><code>!SESSION 2017-08-28 ...
2
1,765
Most common words in txt File
<p>I've made a program that outputs you the most common word in txt file. And does anybody know how to optimize it that it would work for bigger files and faster.</p> <p>The output image: <a href="http://i.stack.imgur.com/fVBh0.png" rel="nofollow">http://i.stack.imgur.com/fVBh0.png</a></p> <p>Here is the code.</p> <...
2
2,053
OpenCV digits merging into surrounding boxes
<p>I've got a bunch of dates i'm trying to OCR using tesseract. However, a lot of the digits in the dates merge with the lines in the date boxes as so:</p> <hr> <p><img src="https://i.stack.imgur.com/7Ac56.jpg" alt="Digits intersecting boxes"> <img src="https://i.stack.imgur.com/nYuPm.jpg" alt="Digits intersecting bo...
2
2,320
cannot automatically connect USB modem using udev under debian linux
<p>On my linux box (uname -a Linux gate 3.2.0-0.bpo.2-amd64 #1 SMP Fri Jun 29 20:42:29 UTC 2012 x86_64 GNU/Linux) I've got USB modem WeTelecom WM-D300 that has "zeroCD" option. ZeroCD USB id for it is 22de:6803, and modem device has 22de:6801 usb id. I've created usb_modeswitch rule for it and tested that this rule is ...
2
2,456
Custom UITableViewCell elements not appearing ONLY on iPad
<p>I ran into the followin issue when running my application on an iPad. The UI elements of my custom first row UITableViewCell were not appearing. I'm allocing and positioning these elements manually so the issue is not related to using the wrong xib. I've uploaded the result of running the exact same code on an <a hr...
2
4,343
How build headless example browser from chromium source?
<p>I'm trying build headless example as C++ library from chromium srource </p> <pre><code>https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md#usage-as-a-c_library </code></pre> <pre><code>G:\chromium\src\headless&gt;gn gen --args=is_debug=true --root=../ ../out/test Done. Made 10741 targets from...
2
1,513
Will Excel VBA interact with web page generated with PHP?
<p>7/18/14 Okay -- most recent discovery. For some reason the code works on the server side page when the code is run on a computer with a different version of IE (IE 10 vs IE 8), so I would logically conclude that it's a compatibility issue with the new IE version, right? Or is that wrong? If it is, is there any known...
2
1,574
JavaFX - ScrollPane in Dialog alternating height
<p>i have a problem with JavaFX.<br/><br/> I want to put a ScrollPane in a Dialog and give the Scrollpane a max-height, no min-height or pref-height because it can be shorter.<br/><br/> Here is a simple example to demonstrate my problem.<br/> The Main class:</p> <pre><code>package application; import javafx.applicati...
2
1,102
Parameterized delete confirmation Modal .NET Core 2.1
<p>I'm little bit new in web development. I have an application with many Index sites which display list with elements. These elements are deletable with a HtmlAction. I want to make a generic? modal which appear when the user has clicked the button. This modal request a confirmation from user to delete the selected el...
2
1,385
Bandwidth calculation (Internet data transfer)
<p>I have used the following code to get bandwidth</p> <p>It works but i have following doubts</p> <p>1.I need Total Internet Data transferred in MB, how do i convert?, total data transferred (download+upload) varies with other bandwidth monitoring applications. how do i get exact data transferred?</p> <p>2.I need t...
2
3,157
In Gradle, how to set unique system property before each execution of JUnit test class?
<p>In the gradle script below, <code>maxParallelForks</code> and <code>forkEvery</code> will start a new process with a new JVM per Junit test class. <strong>Is there a way to give each test process/JVM/Junit class its own unique system property?</strong></p> <p>I tried an experiment where I passed a UUID value as a s...
2
3,593
Explorer doesn't release IDataObject when doing a drag/drop
<p>I'm implementing drag-and-drop in my application. I'm having a problem with Windows Explorer not releasing my IDataObject after a drag-and-drop operation. To isolate the problem, I've implemented a very simple drag-and-drop source that should compile in most any Win32 compiler. The data object contains no data; a...
2
2,662
Native crash at /system/lib/libc.so on Android 4.4+
<p>I'm receiving this error on Android Kitkat 4.4+ devices (mostly Samsung devices):</p> <pre><code>Build fingerprint: 'samsung/konawifiue/konawifi:4.4.2/KOT49H/N5110UEU2CNE2:user/release-keys' Revision: '8' pid: 2692, tid: 2755, name: com.hello.george &gt;&gt;&gt;com.hello.george &lt;&lt;&lt; signal 6 (SIGABRT), code...
2
1,623
Browser back button doesn't trigger reload after using Angular's $location.path() update
<p><strong>Situation:</strong></p> <p>On one of the views of my AngularJS app I have two pagination buttons that use $http to request the next and previous data. I'm using <code>ng-click="getNext(url)"</code> rather than an anchor tag with <code>href="#/items/:itemId"</code>. The reason I'm doing this is so that I can...
2
1,094
Save mysql query result into a PHP array
<p>Here is the situation: </p> <p>I have this array in PHP, which is intended to keep the data from the result of a query: </p> <pre><code>$returnData = array( 'ID' =&gt; '', 'NAME' =&gt; '', 'DESCRIPTION' =&gt; '', 'STATUS' =&gt; '', 'STATUS_DESCR...
2
1,284
Orika mapping nested sublist
<p>Consider the below example.</p> <p>Group.java(GroupDTO.java also has the same properties)</p> <pre><code>import java.util.List; public class Group { public Group(List&lt;Person&gt; persons) { this.persons = persons; } private List&lt;Person&gt; persons; public List&lt;Person&gt; getPerso...
2
1,823
Solve run time errors
<p>I am implementing a bar code scanner in Android using PhoneGap, but when I execute the program it displays a number of runtime errors (shown below).</p> <p>Does anyone know how to solve this problem?</p> <pre><code>02-03 18:26:35.351: ERROR/AndroidRuntime(876): FATAL EXCEPTION: main 02-03 18:26:35.351: ERROR/Andro...
2
2,356
setText on EditText Fails with NullPointerException
<p>I have the following function that is called after a menu item is clicked. Basically I have some string which I try to set to a TextView located inside an <code>AlertDialog</code>.</p> <pre><code>public void createAboutDialog() { View layout = mContext.getSystemService(LAYOUT_INFLATER_SERVICE).inflate(R.layout....
2
1,877
Image returned from REST API always displays broken
<p>I am building a content management system for an art portfolio app, with React. The client will POST to the API which uses Mongoose to insert into a MongoDB. The API then queries the DB for the newly inserted image, and returns it to the client. </p> <p>Here's my code to connect to MongoDB using Mongoose:</p> <pre...
2
1,224
Arduino RC-522 RFID reader - comparing values in a byte array
<p>I'm using the following code to successfully read IDs from MIFARE cards to the serial monitor.</p> <pre><code> #include &lt;SPI.h&gt; #include &lt;MFRC522.h&gt; #include &lt;Wire.h&gt; #include &lt;LiquidCrystal_I2C.h&gt; int readflag; byte readCard[4]; #define SS_PIN 10 #define RST_PIN 9 MFRC522...
2
1,106
Access Object attributes in C++
<p>I am relatively new to C++ programming and I have done a code which is not performing as expected.</p> <p>The code is a bit long [pasted at end for reference] but I will just point to my concern in the code:</p> <p>I define an object of a class inside a while loop:</p> <p>...</p> <pre><code>objVec[obj_i] = new C...
2
4,908
Static linking OpenSSL and cURL with Autotools and MinGW
<p>I'm trying to build a statically linked OpenSSL + LibCurl console application with CodeBlocks. However, I can't get it to work. I keep getting these errors:</p> <pre><code>||=== Build: Debug in Filer (compiler: GNU GCC Compiler) ===| C:\MinGW\msys\1.0\local\lib\libcurl.a(libcurl_la-openssl.o)|| undefined reference ...
2
1,217
Boost Spirit X3 cannot compile repeat directive with variable factor
<p>I am trying to use the Boost Spirit X3 directive <strong>repeat</strong> with a repetition factor that is variable. The basic idea is that of a header + payload, where the header specifies the size of the payload. A simple example β€œ3 1 2 3” is interpreted as header = 3, data= {1, 2, 3} (3 integers).</p> <p>I could ...
2
1,179
Can I project an optional reference of an entity into an optional reference of the projection's result type?
<p>Say, I have two entities:</p> <pre><code>public class Customer { public int Id { get; set; } public int SalesLevel { get; set; } public string Name { get; set; } public string City { get; set; } } public class Order { public int Id { get; set; } public DateTime DueDate { get; set; } pub...
2
2,302
How to change a xaml button property using it's string name from c# in UWP?
<p>Relative noob here coming from Python trying to build a UWP app in c# and XAML.</p> <p><strong>The short version:</strong> How do I refer to a button using its string 'Name' to change its color. It seems that if I have given it a name I should be able to refer to it by its name, something like:</p> <pre><code>"nav...
2
1,211
With Microsoft Xml Parser MSXML2 how to retrieve value of an attribute using XPath?
<p>This is another go at the question how to get the value of an attribute. I know that there are restrictions when using Microsoft's MSXML2 SelectNodes and SelectSingleNode methods in that they must return a node set. </p> <p>I had thought that using text() at the end of an expression did not return a node set but ...
2
2,210
Discord bot showing offline, ReferenceError in bot.js
<p>Edit: I forgot to put the source for the code I used, here it is: <a href="https://medium.com/davao-js/tutorial-creating-a-simple-discord-bot-9465a2764dc0" rel="nofollow noreferrer">https://medium.com/davao-js/tutorial-creating-a-simple-discord-bot-9465a2764dc0</a></p> <p>I have been attempting to program a discord...
2
1,052
Selenium docker crashes on Windows (unknown error: DevToolsActivePort file doesn't exist)
<p>Summary: works on the mac but not on windows. Please note: This is not a duplicate of other similar issues, I have researched this for more than a day on SO and elsewhere.</p> <p>I built a super simple script which executes 2 dockers containers: one with chrome browser, chromedriver and the other with the test. It r...
2
2,526
MVC Restful routing and returning Views
<p>My question is very similar to this one <a href="https://stackoverflow.com/questions/6723531/mvc-rest-and-returning-views">MVC Rest and returning views</a> but the answer isn't working for me. I have implemented Restful Routing in my MVC application using (<a href="http://restfulrouting.com/" rel="nofollow noreferre...
2
1,537
JavaFX Css Context Menu not working
<p>I am creating a software using JavaFX with a context menu that I want to apply css to. Apparently the css is not showing. I would like to know why this is not working and I would like to know if it is a error in the api or an error made by me.</p> <pre><code>/* * BlockEdit, a general purpose software to edit Minec...
2
1,816
Update amount and total fields based on values entered in yii2
<p>I am working on an invoice in yii2. The invoice has <code>items</code> added dynamically using the <code>wbraganca\dynamicform\DynamicFormWidget</code>. These items each has <code>quantity</code> and <code>price</code> inputs, and an <code>amount</code> updated automatically based on the values of <code>quantity</co...
2
5,576
Drawing transparent subsurfaces (windows) in PyOpenGL?
<p>I have a simple PyOpenGL program that draws a cube. I am attempting to draw a transparent subsurface (window) on the front face of the cube. I can get both surfaces to show up, but not in the way that represents a window.</p> <p>Here is my code for drawing the cube:</p> <pre><code> # Draws the six faces of a cu...
2
1,420
"you don't have permission to edit anything" on custom AdminSite if user is not superuser
<p>I wan't to have multiple AdminSite on my Django project and I don't want to give every user the superuser role just to see and edit the models of the application.</p> <p>Here is the layout of my project:</p> <pre><code>&gt; djangoApp &gt; djangoApp - settings.py - etc... &gt; AAA - ...
2
1,792
Failing to deploy a aiogram python bot in webhook mode
<p>I have tried this script which is similar to <a href="https://github.com/aiogram/aiogram/blob/dev-2.x/examples/webhook_example.py" rel="nofollow noreferrer">aiogram official example</a> for webhook deployment.</p> <pre class="lang-py prettyprint-override"><code>import os import logging from aiogram import Bot, Disp...
2
3,852
How to give Word2Vec vector to classifier in python?
<p>my code in python is for multi-label classifying; using TF-IDF vectorizer for a bunch of tweets. i just put the corresponding part of the code below. my vocab is a 14182 words lexicon and the train_array.shape is (6838,14182). also the train_labels.shape is (6838, 11):</p> <pre><code>#Vectorizing vector_maker = Tfi...
2
1,533
Titanium Appcelerator iPhone App - App crashes when the table view is scrolled close to 1000th record and slows down when it starts scrolling
<p>We have a sample app that loads 10 records each from the db and shows in a table vioew. The next ten records are taken when the scroll reaches the bottom (like the sample of dynamic scroll view in kitchen sink and following the same sample code). However the app scrolling becomes slower and slower when the no of rec...
2
1,702
java.lang.IllegalArgumentException: The given id must not be null
<p>When I try to go login page I get this error: java.lang.IllegalArgumentException: The given id must not be null!</p> <p>Login in HomeController</p> <pre><code> @RequestMapping(value = "/login", method = RequestMethod.POST) public String login() { if (SecurityContextHolder.getContext().getAuthenticat...
2
8,615
How do I insert this code into a hexo markdown?
<p>I can't get this piece of code inserted into Hexo <code>.md</code> markdown page. </p> <pre><code>&lt;div class="container"&gt; &lt;h1&gt;Works&lt;/h1&gt; &lt;ul class="row-fluid block-grid-4"&gt; {{#each model as |w index|}} &lt;li&gt; &lt;h5&gt;{{w.title}}&lt;/h5&gt; &lt;p&gt;Owner: {{w.owne...
2
1,663
client-side javascript-jquery pagination with previous and next feature
<p>I have created a simple JavaScript-jQuery pagination its working fine but the next and previous function i don't know to create that function to display next and previous items. </p> <p>Assuming we have fixed container that contains multiple div items with fixed with and height. the container have 33 items but will...
2
2,184
Are the elements of an array saved continuously in memory?
<p>I am following a programming paradigm tutorial and doing some memory related exercises. I just extracted two questions (please forget about what the codes look like, sorry it is bad code but I just want to learn the pointer stuff from it). The original codes make lsearch as generic as possible so it uses all pointer...
2
1,119
Error: Could not find the correct Provider<NavBloc> above this BlocBuilder<NavBloc, NavState> Widget
<p>Now I am using <a href="https://bloclibrary.dev/#/" rel="nofollow noreferrer">bloc</a> as my flutter state manager,I define the bloc state manage file follow the <a href="https://bloclibrary.dev/#/flutterlogintutorial?id=home-page" rel="nofollow noreferrer">docs</a>. When I am using the bloc like this:</p> <pre><cod...
2
2,257
Unable to run C# test unit project using batch command from jenkins
<p>I am doing automation using selenium and c#. Everything is running file when I run from visual studio but getting issue in file path then run via jenkins.</p> <p><strong>Batch command I am trying :</strong></p> <pre><code>"nuget.exe" restore UnitTestProject1.sln "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSB...
2
1,344
In Springboot Unit test, MockMvc returns 403 Forbidden
<p>In Springboot unit Test always return 403 error,I've tried a variety of different configurations using AutoConfigureMockMvc with secure false and excluding security auto configuration getting 403 errror. Can anyone help me on this.</p> <p>Here is my Security Implementation</p> <pre><code>@Configuration @EnableWebSec...
2
1,898
Laravel 4: Error: Popover requires tooltip.js
<p>I am using <a href="https://github.com/andrew13/Laravel-4-Bootstrap-Starter-Site" rel="nofollow noreferrer">Laravel-4-Bootstrap-Starter-Site</a>. I have this issue loading javascript files: <strong>Error: Popover requires tooltip.js</strong> It seems that is not causing majors problems but I am losing functionality...
2
1,863
Performance of delegate and method group
<p>I was investigating the performance hit of creating <code>Cachedependency</code> objects, so I wrote a very simple test program as follows:</p> <pre><code>using System; using System.Collections.Generic; using System.Diagnostics; using System.Web.Caching; namespace Test { internal class Program { pri...
2
2,227
The dates to be highlighted in the Kendo calender only works on alert
<p>I have seen many question about 'JavaScript works only on alert', but the answers are specific to those question only. I am using Kendo Calender and want to highlight specific dates from the value in the database. The below code works fine only when an alert is written.Kindly help: </p> <pre><code> var duedates = [...
2
1,200
Symfony2 password reset without overriding FOSUser
<p>I am trying to build a form that resets user password. I am using FOSUserBundle to manage users, but I don't want to override FOSUser resetting controller due to some architecture reasons</p> <p>So I decided to build my own type and controller to reset password</p> <p>PasswordResettingType.php </p> <pre><code>pub...
2
1,156
Typescript type safety in conditional union type switch typing
<p>I have a simple function taking a union type and a <code>boolean</code> as parameters and cannot manage to have it be typed by Typescript.</p> <p>I have this code (<a href="https://www.typescriptlang.org/play/#src=type%20A%20%3D%20&#39;a&#39;%20%7C%20&#39;A&#39;%3B%0D%0A%0D%0Afunction%20g(a%3A%20A)%3A%20string%20%7...
2
2,197
Cocoapods - Code object is not signed at all
<p>I'm trying to build an OS X target that imports the Dropbox framework and am getting this error:</p> <pre><code>CodeSign /Users/jessebunch/Library/Developer/Xcode/DerivedData/TestApp-bxjgcsgqofvdyidodqalwworvmat/Build/Products/Debug/TestApp.app cd /Users/jessebunch/Projects/testapp/Example export CODESIGN_A...
2
1,177
request.getUserPrincipal().getName() causing error 500
<p>Following is my code which seems ok to me but it's giving error <strong><em>HTTP Status 500</em></strong> while running.</p> <pre><code> protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter...
2
1,644
GLIBC_2.2.5 not defined in file libpthread.so.0 with link time reference
<p>I'm creating a C# app which I have build or as they call it &quot;published&quot; for linux-x64 following this XML in the csproj:</p> <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt; &lt;PropertyGroup&gt; &lt;OutputType&gt;Exe&lt;/OutputType&gt; &lt;Configuration&gt;release&lt;/Configuration&g...
2
1,122
AngularJS - ngMap custom marker clusterer map + infowindow
<p>I've been struggling to get this working for quite some time now. So, here is what I'm trying to achieve.</p> <ol> <li>Map with cluster.</li> <li>cluster markers should be custom.</li> <li>On click of marker opens a customized infowindow.</li> </ol> <p><strong>Things that I've managed to do are:</strong> </p> <ol...
2
2,274
Mongodb Sorting Desc for _id field very slow
<p>I have a mongodb database which has 30 million Dictionary and Each day of month has 1 million rows so all of document count 30x1=30 Million, database just has data for 1 month and i want to list and sort desc records of between 2018-07-01 and 2018-07-03 so i have 2 million rows between of that two days My each colle...
2
1,567
Python: Faster way to insert rows into a DataFrame at specific locations?
<p>I've got a DataFrame of ~40,000 rows. The DataFrame looks roughly like:</p> <pre><code> Unix Time UTC Val. 1 Val. 2 Val. 3 1 1518544176.927486 2018-02-13 17:49:36.927486 5.00 0.25 2.00 2 1518544176.929897 2018-02-13 17:49:36.929897 4.50 1.00 3.0...
2
1,615
Spring Batch - Create Two Datasources and how to customized to use other properties
<p>I need quick guidance to create two relational datasources in Spring Boot Batch project. One is Oracle as a Source DB and Other is Postgres Target DB. Spring Boot V2.2.5.RELEADE</p> <p><strong>Spring Boot Version 2.2.5.RELEASE</strong></p> <p>Here I want to customized both datasources to use all properties mentioned...
2
1,193
onTouchListener not working at all
<p>Hello im trying to use OnTouchListener.</p> <p>My problem is that it doest seems to work.</p> <p>I dotn get any logs called.</p> <p>This is my code:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceSta...
2
1,945
there was an error running the selected code generator: Unable to retrieve MetaData for xxx.Goal.. being caused by a foreign key to application user
<p>I am pretty new to asp.net MVC 5 and entityframework 6 I keep getting the above error when I try to create a controller with views</p> <p>Here is my model I am trying to create a view for:</p> <pre><code>public class Goal { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] pub...
2
1,251
NullPointerException in HibernateDaoSupport.getSession()
<p>I'm using <strong>Wicket-1.5.x</strong>, <strong>Spring-3.2</strong>, and <strong>Hibernate-3.6</strong>. My application successfully starts and reads from the database, however when I try to actually load a page I get the exception pasted below.</p> <p>Why can't it find the session? From what I can tell its not ...
2
6,243
Background gradients not working with Bootstrap navbar-fixed-top
<p>Background gradients are not working with Bootstrap 3.0 <code>navbar-fixed-top</code> or <code>bottom</code>, just default.</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-css lang-css prettyprint-override"><cod...
2
2,292
Logins don't match. Please include at least one valid login for this identity or identity pool
<p>I am trying to put login credentials like access token of auth0 login to amazon cognito and then try to upload a profile picture in my app. I am getting error from amazon like:</p> <pre><code>Logins don't match. Please include at least one valid login for this identity or identity pool. (Service: AmazonCognitoIdent...
2
4,853
Spring MVC returning 406 to controller test
<p>I have the following project tree:</p> <pre><code>β”œβ”€β”€ app β”‚Β Β  β”œβ”€β”€ build.gradle β”‚Β Β  └── src β”‚Β Β  β”œβ”€β”€ main β”‚Β Β  β”‚Β Β  β”œβ”€β”€ java β”‚Β Β  β”‚Β Β  β”‚Β Β  └── child β”‚Β Β  β”‚Β Β  β”‚Β Β  └── app β”‚Β Β  β”‚Β Β  β”‚Β Β  └── Application.java β”‚Β Β  β”‚Β Β  └── resources β”‚Β Β  β”‚Β Β  └── application-default.yaml β”‚Β Β  └── test ...
2
1,890
Telerik Tabstrip (Tabs on demand ) is not working properly
<p>My Partial View contains this code: </p> <pre><code> @( Html.Telerik().TabStrip() .Name("MeasurementScheme") .Items(tab =&gt; { tab.Add() .Text("Weight Measure") .LoadContentFrom("IndexWeight", "MeasurementScheme") .Selected(true)...
2
4,681
why cant i delete gfs.files with an ObjectId?
<p>This has been getting me all day. I can find the actual file with it's _id using gfs.exist(), but then when i run to the next line of code i get an error everytime and the mongoose connection crashes. This seems so simple yet nothing has worked so far. </p> <p>my code:</p> <pre><code>/** * Created by foolishklown...
2
2,189
Registering codecs for MongoDB using Micronaut
<p>I'm in the process of creating a new application using Micronaut and MongoDB. I have to a bit of stalemate regarding some of my db objects.</p> <p>I have an object that contains an enum field which I need to convert over to a value that can be saved (I'm planning to persist it as a string).</p> <p>From what I unde...
2
1,028
Android Camera preview rotated 90degree and stretched in certain devices
<p>I have been working on a piece of code to preview and capture photo inside my fragment. I have made this by following <a href="https://www.airpair.com/android/android-camera-surface-view-fragment" rel="nofollow noreferrer">Airpair</a> guides on camera.</p> <p>Problem is: Android Camera preview is rotated by 90degre...
2
6,359
NullPointerException thrown when Mocking a service method call (from an internal forEach loop), what is the correct way to implement this mock?
<p>I have a very basic Spring Boot application.<br> It consists of a <code>Controller</code> a <code>Service</code> and a <code>Repository</code>.<br> I want to test the <code>Controller</code> which basically just calls the <code>Service</code>, which in turn calls the <code>Repository</code>.<br> I'm trying to mock t...
2
3,827
Make HttpClient consume "garbage" before next request
<p>I am using Apache HttpClient 4.5.1 to send some requests to our server. To improve performance I'd like to reuse the same HttpClient instance for all those requests. The requests (mostly) happen in sequential order, so there is no multi-threading involved.</p> <p>Unfortunately some of the servers endpoints are faul...
2
4,457
android.permission.BIND_TELECOM_CONNECTION_SERVICE permission denied
<p>I want to implement &quot;android.telephony&quot; library for Voip dialer app. So according to this <a href="https://developer.android.com/reference/android/telecom/ConnectionService" rel="nofollow noreferrer">https://developer.android.com/reference/android/telecom/ConnectionService</a> I am trying to register Phone...
2
5,451