title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How To Count Checked CheckBox Inside ItemsControl | <p>I create multiple checkbox using <code>ItemsControl</code> in my WPF. But I need to make a limit by 20 for checkbox that can be checked/ticked by user. How do I can check the checked checkbox? </p>
<p>I tried to research this as much as I can, and even binding checkbox to multiple command, but none of it is working... | 2 | 1,781 |
Android app won't return result from VB.NET WCF Service | <p>here is my WCF server code (VB.NET)...</p>
<p><strong>Service1.svc</strong></p>
<pre><code>Public Class Service1
Implements IService1
Public Sub New()
End Sub
Public Function GetText() As String Implements IService1.GetText
Return String.Format("YO MTV ROCKS!")
End Function
Public Function GetData(ByVal val... | 2 | 1,770 |
Issues with Installing Spacy Library | <p>I am trying my hands on SPACY library for NLP and facing issues while installing. Following are the steps taken:</p>
<pre><code>!pip3 install spacy
!python -m spacy download en_core_web_sm
</code></pre>
<p>I am getting following errors.</p>
<p>What needs to be done to fix it?</p>
<pre class="lang-none prettyprint-o... | 2 | 3,015 |
F SDK 4.0.0: GraphRequest from facebook returns null | <p>I have the following code and what I want to obtain is <strong>user's friends names, user's friends profile pictures and user's friends facebook id</strong>:</p>
<pre><code>public void testFunction(final com.facebook.AccessToken access_token){
GraphRequest request = GraphRequest.newMeRequest(
access... | 2 | 2,083 |
How to link libraries on eclipse in this situation? | <p>I have a c++ project can be complied well by using cmake.</p>
<p>But when I go to eclipse, there are some problems.</p>
<pre><code>Description Resource Path Location Type
undefined reference to `FcMatrixRotate' test_new line 0, external location: fl_font.cxx C/C++ Problem
undefined reference to `F... | 2 | 3,340 |
How can i insert into scraped data into mysql? | <p>//Here is the full script.
I need to send the returned array results to mysql. I have tried many variations on mySQL insert functions but mysql will still not populate with the data. The table in mysql has the column names 'date','home','score','away'. I am using xamp as a localhost, with database name:'brazil', ta... | 2 | 2,999 |
NullPointerException in BoxLayout | <p>Does anybody have an idea how I could start debugging this error in Java Swing?</p>
<pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:282)
at java.awt.Container.preferredSize(Container.java:1599)
at java.awt.Conta... | 2 | 1,677 |
Tkinter Canvas : Scale on moving object | <p>I do not know if my question is a stupid one or a tricky one.</p>
<p>So, using Tkinter and Canvas, I succeed to implement a scrolling/zooming function that work perfectly, thanks to this post <a href="https://stackoverflow.com/questions/25787523/move-and-zoom-a-tkinter-canvas-with-mouse">Move and zoom a tkinter can... | 2 | 2,427 |
ZeroMQ always sends and gets 1 byte (using the cppzmq bindings) | <p>The following server and client codes are slightly modified versions of <a href="http://zguide.zeromq.org/page:all" rel="nofollow noreferrer">the official tutorial</a>. My interpretation of their outputs is that whatever they send or receive are always 1 byte. How can this happen?</p>
<p>server.cpp:</p>
<pre><cod... | 2 | 1,056 |
Arduino client + PHP cURL server executing command twice | <p>I have this project I'm doing for work in which I command several Arduino (Arduino core + ENC28J60 Ethernet + x4 Relay actuator) modules from a single PHP server to activate a relay on any of the Arduino modules. The server has a list of all the events and executes them as the time is right for each one. What's wron... | 2 | 10,419 |
How do I connect my sample kafka producer application to a remote kafka server? | <p><a href="https://www.javainuse.com/spring/spring-boot-apache-kafka-hello-world" rel="nofollow noreferrer">https://www.javainuse.com/spring/spring-boot-apache-kafka-hello-world</a></p>
<p>I followed this example to build a simple Kafka producer for some testing. However, my Kafka instance is not local and is managed ... | 2 | 1,666 |
JTable sorter not working | <p>I have a very simple JTable that I want to sort in ascending order by column 0. The code is very simple. But it is not able to sort the rows properly. I can not figure out what is wrong. Following is my code:</p>
<pre><code>package test;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JScrollP... | 2 | 1,062 |
C#/Mono - Issue with memory mapped file | <p>EDIT: I've update mono (had to compile from source using <a href="http://neildanson.wordpress.com/2013/12/10/building-mono-on-a-raspberry-pi-hard-float/" rel="nofollow">these instructions</a>) to version 3.2.7. I am no longer getting an error complaining about the capacity overload argument, now I am getting the er... | 2 | 1,642 |
Multiple Images in Header Div | <p>I am looking to have the logo aligned in the center and social media buttons aligned on the right in the header. How do I achieve? I've been able to get it aligned with my nav bar but that's not what I'm looking for. Any help would be appreciated. </p>
<p><strong>HTML</strong></p>
<pre><code><body>
<d... | 2 | 1,755 |
ICP produces alignments with high Fitness values | <p>I am learning how to use ICP with PCL. As such I wrote a function that reads a series of .pcd files from a given folder.</p>
<pre><code>//Reads all PCD files in a folder. Specify the path without the last '/' and the number on the last and first file: xxx.pcb.
//Returns null if something goes wrong. Otherwise retur... | 2 | 2,134 |
Mocking HTTP interceptors in Nest JS | <p>I have a core module that provides an authentication interceptor in Nest js.
Here is the core module.</p>
<pre><code>@Module({
imports: [
providers: [{
provide: APP_INTERCEPTOR,
useClass: LoggerInterceptor
}
]
})
export class ConfModule {
}
</code></pre>
<p>This conf module is been im... | 2 | 1,275 |
Network link on Google Maps | <p>I have created a Google map in an HTML page with a KMZ overlay and it displays properly. I have then tried to use a network link to display the KML file in order to have it refresh periodically, since the data in the KML file content can change. This however does not work.</p>
<p>The part of the HTML code for the G... | 2 | 1,293 |
NumberPicker - currentValue not Bold | <p>I am using the NumberPicker package (<a href="https://pub.dartlang.org/packages/numberpicker" rel="nofollow noreferrer">https://pub.dartlang.org/packages/numberpicker</a>) inside of a function that is mapped to a class. It works, however the currentValue selected is not bold. There is clearly an issue with how I am ... | 2 | 1,110 |
Windows Impersonation failed | <p>I am using following code to implement impersonation for the particular windows account,which is failing.Please help.</p>
<pre><code>using System.Security.Principal;
using System.Runtime.InteropServices;
public partial class Source_AddNewProduct : System.Web.UI.Page
{
[DllImport("advapi32.dll", SetLastError = true... | 2 | 3,642 |
Openlayers tiles not loading on a tabed web page | <p>If I have three tabs on a page and the openlayer map is on the second page which is not current by default.
The map tiles does not load when I click on the second tab. the map tiles load only when I resize the web document window. this is happening on all the browsers. below is the code for your reference.
<a href="... | 2 | 1,695 |
Is it possible to dynamically set the "featured" collection on a shopify store? | <p>I would like to be able to display two different collections in the featured products section on a shopify store. I would like to do this to avoid displaying a featured product that is the same as the product being viewed. I see that on the customize theme page it is possible to chose which collection to be displaye... | 2 | 1,256 |
android custom listview with gallery images | <p>I'm trying to add all the images contained in a folder in my custom listview, where I show a thumbnail of the photo and a little description.
I've found a lot of examples showing images from URL or drawable folder in Android Studio, but nothing working for me that loads a picture located in /storage/emulated/0/DCIM/... | 2 | 5,085 |
Yahoo Answers API + php Scraper | <p>I have found a <a href="http://hungrycoder.xenexbd.com/scripts/php-scripts-2/searching-and-retrieving-yahoo-answers-in-php.html" rel="nofollow">php script</a> that would in theorie match my needs, however I cant get it to work and I was wondering if maybe the script is outdated or if I am doing something wrong.</p>
... | 2 | 3,202 |
Powershell script to monitor DFSR backlog | <p>Not a question. Just sharing. Apologies if this is wrong venue and/or method, but I've taken a lot from these forums and just wanted to give a little bit back in case anyone else like is trying to learn PS and do something even basically useful in PS. Apologies, but I had to run the script through a redactor. An... | 2 | 4,633 |
Jenkins Linux file access or group issue | <p>I'm facing a strange file access issue.</p>
<p>Linux system is RedHat 5.5</p>
<p>On this machine, when I log in as the given user: deploy_user, I can see that I have valid access to /path/to/the/folder/subfolder/file.txt </p>
<p><strong>ls -l /path/to/the/folder</strong> shows (this means upto this path I can see... | 2 | 1,168 |
How to dynamic create custom controls | <p>I am trying to add a customized mymenubutton, the menu's items are based on another dropdown's selected value, which returns a json array with bunch items. </p>
<p>So I use the example <a href="http://fiddle.tinymce.com/gaaaab" rel="nofollow">http://fiddle.tinymce.com/gaaaab</a> which could create mymenubutton for ... | 2 | 1,094 |
SpringBoot 2.0 : Securing a REST API with Spring Security Oauth2 | <p>I have a REST API, which I need to secure using Spring Security and OAuth2.
I'm following this tutorial which describes the required. </p>
<p><a href="https://github.com/TechPrimers/spring-security-oauth-example" rel="nofollow noreferrer">https://github.com/TechPrimers/spring-security-oauth-example</a></p>
<p><a h... | 2 | 4,553 |
Rotating a sprite from a sprite sheet onto a html5 canvas, using arrows keys. (2d html5 canvas) | <p>Let me try to explain what I have now, and what I am trying to add to it.
Right now I have a canvas, 500x899 following a sprite(player), onto a background image(map) that's 5000x3750. Both are on the same sprite sheet.
Right now if the arrow keys are pressed, the Player sprite moves in that direction along the Map w... | 2 | 6,909 |
C# appending values to string[] doesn't work | <p>So I'm trying to append values to a list (in Json []), that's empty or has items in it. So I check wether the list in the object has items in it or not, if the item doesn't exist, then it creates a new item, if it exists, it rewrites it's value. Here is the code:</p>
<pre><code>if (e.Key == Key.Enter)
{
// When... | 2 | 1,527 |
node.js export variables across files | <p>I'm relatively new to web development, brand new to node.js. </p>
<p>I'm trying to use express to make a site that updates an api with the <a href="https://github.com/sgentle/chef-node" rel="nofollow">chef-node api</a> client, using <a href="http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/" rel="nofoll... | 2 | 1,506 |
Is Datamapper's dm_mysql_adapter gem supported on windows? | <p>I am wanting to play some more with Ruby and currently seem to have a grasp of sinatra, but would also like to now pull in data from a relational database. I tend to use Mysql for test apps and tried installing the gems but I keep getting an exception when it tries to compile the native do_mysql gem which it is reli... | 2 | 1,133 |
Pass Variable from Python to C | <p>I have Python Script embedded in C which I run in a thread. I need to pass the variable 'a' from the Python-Class 'Detect Motion' to my C program continuously. (Not as a return value)
I know I could do this with a fifo or something like that, but is there a way to pass it directly to C, maybe by calling a C function... | 2 | 1,177 |
Trying to loop through a pandas dataframe and display specific values in a column | <p>So I'm trying to code a stroop task by looping through a preexisting .csv file. To do this I read the stimuli.csv file into a dataframe. </p>
<p>The .csv file is organized like this: </p>
<pre><code> Colours Congruent Word
0 red 0 blue
1 red 1 red
2 red 0 green
3 ... | 2 | 1,115 |
Android Studio Bug Says new Is Unresolved Reference | <p>I am trying to make an app for my friends and this error wont go away. I need to finish the app before march 6th and am not going to make it if i don't fix this error and finish the rest. Also, If there is a way to make nav_view into not a specific nav_ but every nav_ there is. So i can jump from nav_donate to nav_p... | 2 | 2,318 |
How to set screen resolution without having a monitor connected? | <p>In my company, we sometimes use surface automation to automate our processes. That means, that the program is searching for images on the screen and is clicking them, for example:</p>
<p>We're developing using a screen resolution of <code>2560 x 1440</code>. We have many computers working there for us - and not all... | 2 | 2,322 |
Add radio button selection to database via ajax? | <p>When I test my form it adds data successfully to my database table but the radio button selection is always "Ungrouped" which is the first radio button in the group. I tried giving them separate id's, but in my ajax.js file my function uses this:</p>
<pre><code>var group = encodeURI(document.getElementById('group')... | 2 | 2,181 |
Cannot destroy an object in Rails | <p>I cannot use the destroy method on an object using Rails 3.2.6
This is my code. @checkin finds an object, I checked.</p>
<pre><code>@checkin = Checkin.where("user_id = ? AND event_id = ?", current_user.id, params[:event_id])
if @checkin.destroy
render :json => {:results => @checkin}
else
... | 2 | 1,174 |
malloc and pointer in a struct | <p>I have the following C code:</p>
<pre><code>typedef struct DListNode_ {
void *data;
struct DListNode_ *prev;
struct DListNode_ *next;
} DListNode;
typedef struct DList_ {
int size;
DListNode *tail;
DListNode *head;
} DList;
void insert(DList * list, DListNode * element, int data) {
... | 2 | 1,643 |
Android audio/video Streaming is not working for Wowza server | <p>I want to implement video streaming using the Wowza server. So, is there any tutorial that how Wowza works for Android devices? </p>
<p>Videos are stored at server side. So, to fetch video using URL and play it on Android. I tried some examples, but I got error, "Sorry, this video can not be played". I am using URL... | 2 | 1,903 |
Angular 2 + Karma + karma-jspm + karma-coverage + typescript report phantomJS failure | <p>I've been fighting the last few days with getting coverage reports working and I've hit an issue I haven't been able to resolve. The stack trace I'm receiving, with a couple of lines of surrounding debug code, is</p>
<pre><code>15 07 2016 14:41:53.413:DEBUG [middleware:source-files]: Requesting /jspm_packages/npm/p... | 2 | 4,273 |
Google extension how to click a button on the web page? | <p>I create an extension
file <strong>github.js</strong></p>
<pre><code>jQuery(document).ready(function($) {
console.log('github.js');
// btn btn-primary shelf-cta
var button = $('.btn.btn-primary.shelf-cta');
console.log('button.html() = ', button.html());
button.click();
});
</code></pre>
<p>file popup.ht... | 2 | 1,108 |
How to select dropdown menu item which is defined under <span> tag using Selenium WebDriver and C# | <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 prettyprint-override"><code><div class="span3">
<div>
LSP Account<br>
<span tit... | 2 | 1,949 |
Adding a Button to VUE datatables | <p>I looking to add a button to each row in a datatable component in VUE 2</p>
<p>Currently data is feeding from axios request as per below</p>
<pre><code>axios.get('workers/viewall').then(response => this.workerslist = response.data);
</code></pre>
<p>Added a prop in the Datatable.vue to give customButtons = Tru... | 2 | 1,567 |
ReactNative : redux-form validating inputs immediately | <p>I am trying to use <code>redux-form</code> with <code>react-native</code>. I tried to do something what I did when I used <code>redux-form</code>s for web apps. I am trying to validate the form using <code>redux-form</code>, but I am immediately seeing validations instead of it triggering <code>onBlur</code> or when... | 2 | 1,556 |
Error "Please fix the version conflict either by updating the version of the google-services plugin | <p>I tried use Firebase Cloud Messaging in my app and i get this error:</p>
<pre><code>Error:Execution failed for task ':app:processDebugGoogleServices'.
</code></pre>
<blockquote>
<p>Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version i... | 2 | 1,178 |
Adding a single repeating node to target schema using BizTalk mapper | <p>I'm currently working on a BizTalk project and I encountered a problem which I'm sure should be solvable within a mapping. However, I don't seem to be able to figure out how. Hopefully someone can help me out.</p>
<p>The situation is as follows: in both the source and the target schema, there's a repeating node wit... | 2 | 1,034 |
Insert csrf token for file upload | <p>How to insert csrf token in <a href="https://github.com/LPology/Simple-Ajax-Uploader" rel="nofollow">LPology/Simple-Ajax-Uploader</a>?</p>
<p>I tried with <code>customHeaders</code> but without success.
Although, <code>$("input[name='csrfmiddlewaretoken']").val()</code> gives <code>qEN1kNfYYkAasfqBn3AigICJmz4MIlei<... | 2 | 1,180 |
Kinesis Firehose Client putRecord throwing UnknownOperationException | <p>I am fetching my data from some source and now want to give it to Kinesis Firehose delivery stream. I am getting "Status Code: 400; Error Code: UnknownOperationException" at amazonKinesisFirehoseClient.putRecord(putRecordRequest);</p>
<p>My code</p>
<pre><code>while (data != null) {
PutRecordRequest putRecor... | 2 | 1,302 |
system.io.ports using rtsenabled receiving wrong packet | <p>i am writing a method which sends a particular packet and gets an answer back from an electronic device. I am using system.io.ports with <code>rtsEnabled = true</code>.</p>
<p>The problem is that when entering the application the received packet is altered. I am monitoring what is being received using eltima and t... | 2 | 1,187 |
cURL PHP hangs just after receive headers | <p>Using PHP i have been able to connect to and process successful purchases with the paypal sandbox endpoint:</p>
<pre><code>https://api-3t.sandbox.paypal.com/nvp
</code></pre>
<p>However when i tried to move this application live, i hit a few problems.
Firstly, the sandbox account uses a signiture, and the live acc... | 2 | 1,286 |
Can I use AR object as hash key or should I use object_id instead | <p>Because of Ruby awesomeness it is possible to use any object as key</p>
<pre><code>document = Document.find 1
o = Hash.new
o[1] = true
o[:coool] = 'it is'
o[document] = true
# an it works
o[document]
#=> true
</code></pre>
<p>but just because it is possible doesn't mean is good practice</p>
<p>However I have sit... | 2 | 1,215 |
C#.net MVC Passing parameter to load data from DB | <p>I wanted to pass a value I got from my <strong>angular</strong> <strong>checkboxes</strong> .. ( number that has been checked) to query a certain data from my db.
Take a look on my connection query ..</p>
<pre><code>private static string m_sConnectionString = ConfigurationManager.ConnectionStrings["NomsConnection"]... | 2 | 4,711 |
Laravel 5 Blade Not Working on CentOS 7 | <blockquote>
<p>I tried to install a fresh laravel project on CentOS 7 running
Apache/PHP 5.6/MariaDB.</p>
</blockquote>
<p>on <code>/var/www</code> :</p>
<pre><code>composer create-project laravel/laravel devil
chmod -R 777 devil/storage
chmod -R 777 devil/vendor
</code></pre>
<blockquote>
<p>When I tried to ... | 2 | 1,166 |
How to add message after submitting form? PHP, Wordpress | <p>I trying to make a feature, where the user recieves a message saying "Your changes have been saved" after the user has pressed "save changes". When the form is being submittet the page is just refreshed and not redirected to any other page.</p>
<p>I have tried several things but nothing seems to work. I am good at ... | 2 | 1,399 |
extjs tabpanel... stretch contents to fill screen vertically? | <p>In my extjs 6.0.0.640, in my panel, I have a tab panel.. inside tab panel I have 2 grids. How do I stretch the grids vertically to fit inside the tab panel? basically stretching the height to fill vertically?</p>
<p>PROJECT CODE</p>
<pre><code>Ext.define('ExtApplication4.view.performance.Performance', {
extend: ... | 2 | 1,405 |
Router not working when adding vitejs v2 to Vue v3 | <p>An app that has been using <code>webpack</code> for the dev server should now use <code>vite</code>. Everything seems to be working fine (and fast) with the exception of routes. These are simply ignored and only the content of <code>App.vue</code> is rendered.</p>
<p>This is <code>package.json</code>:</p>
<pre class... | 2 | 1,537 |
Shared Template Must Be Marked with templateShareable:true Error | <p>I am creating an application with SAPUI5 (I am new with this library) and I run to the following strange error:</p>
<blockquote>
<p>A shared template must be marked with templateShareable:true in the binding info -</p>
</blockquote>
<p>Codewise, the cause is to be found in <code>cartelleDisponibili: cartelleObta... | 2 | 1,024 |
How to Create Class Label for Mosaic Augmentation in Image Classification? | <p>To create a class label in <code>CutMix</code> or <code>MixUp</code> type augmentation, we can use <code>beta</code> such as <code>np.random.beta</code> or <code>scipy.stats.beta</code> and do as follows for two labels:</p>
<pre><code>label = label_one*beta + (1-beta)*label_two
</code></pre>
<p>But what if we've <st... | 2 | 2,002 |
How to reduce number of injected dependencies on controller | <p>I am using MVC3, Entity Framework v4.3 Code First, and SimpleInjector. I have several simple classes that look like this:</p>
<pre><code>public class SomeThing
{
public int Id { get; set; }
public string Name { get; set; }
}
</code></pre>
<p>I have another entity that looks like this:</p>
<pre><code>publi... | 2 | 1,043 |
Amazon MWS: getting error 99019 for XML productFeeds (SubmitFeed of type _POST_PRODUCT_DATA_) | <p>When I try to add a product (via a SubmitFeed of type "_POST_PRODUCT_DATA_") to the Amazon Market via the Amazon MWS API I get the following error:</p>
<blockquote>
<p>[Marketplace : Amazon.de] A valid value is required in either the
"quantity" or "fulfillment_center_id" field.</p>
</blockquote>
<p>But there i... | 2 | 1,229 |
WebSocket server get client certificate onOpen | <p>I have a simple <code>ServerEndpoint</code> running on WildFly 10, which is configured as <code>wss</code> with mutual TLS, so client certificate required. I have no problems in connecting to endpoint, so the mutual authentication is correctly done, but I can't access client certificate in <code>onOpen</code> method... | 2 | 3,805 |
browserify/karma/angular.js "TypeError: Cannot read property '$injector' of null" when second test uses "angular.mock.inject", "currentSpec" is null | <p>I have an Angular.js app and am experimenting with using it with Browserify. The app works, but I want to run tests too, I have two jasmine tests that I run with karma. I user browserify to give me access to angular.js and angular-mocks.js and other test fixtures within the tests.</p>
<p>Versions are:-</p>
<pre><c... | 2 | 2,354 |
The method findViewById(int) is undefined for the type using AsyncTask for Jsoup Parser | <p>I'm attempting to query a url using jsoup and I'm getting the following error: The method findViewById(int) is undefined for the type</p>
<p>Any suggestions? (I'm really not sure what I'm doing wrong at this point or how the issue can be corrected) </p>
<p>Using example:</p>
<p><a href="https://stackoverflow.com/... | 2 | 1,040 |
How to fix "TypeError: Cannot set property 'approved' of null"? | <p>So my code was all working fine, until on one of my application controllers I added some code, and now it's throwing me this error when I try to POST the data: </p>
<pre><code>(node:10928) UnhandledPromiseRejectionWarning: TypeError: Cannot set
property 'approved' of null
at store (C:\Users\sadkevin\Desktop\Pro... | 2 | 1,337 |
Dual monitor help needed [AutoHotkey] | <p>I'm having trouble getting my script to work on multiple monitors, having searched and found some posts regarding the use of multiple monitors I''m still not sure where I am going wrong and how to fix it.</p>
<p>I am currently using a laptop with an external monitor connected, but I will be sharing this with collea... | 2 | 1,310 |
WCF Service Datetime parse error on different clients | <p>I have an issue regarding consumption of a WCF service:</p>
<p>Interface:</p>
<pre><code>[OperationContract]
[WebInvoke(Method = "POST",
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json,
UriTemplate = "list_LogUser")]
DTO.Responses.List_LogUser list_LogUser(DTO.Requests.To... | 2 | 1,488 |
"vobjtovarid4: error #F: I could not find the requsted var (or dimvar) in the file!" | <p>I am trying to get specific variables out of a NETcdf file using ncdf4 and the ncvar_get() function. When I open the file and print() it I can see the available variables but when I try get them out I get </p>
<blockquote>
<p>"vobjtovarid4: error #F: I could not find the requsted var (or dimvar)
in the file!"</... | 2 | 1,138 |
Updating data not working. No error but the data do not change | <p>I'm stuck for whole day because thinking about the update data problem. There was no error, when click update, it's successful but the data not updating.
Here is my index.php</p>
<pre><code><html>
<head>
<title>Daftar Mahasiswa</title>
</head>
<body>
<?php
$sambung = mysql_con... | 2 | 2,231 |
WPF Draw custom shapes in canvas | <p>I have an array of lines and all the line are connected, forming a custom shape from it. Also i need to fill it with a color.
A line contains something like this:</p>
<pre><code>"StartX":800.0,
"StartY":600.0,
"EndX":0.0,
"EndY":800.0,
"Radius":800.0
</code></pre>
<p>I saw that you can build a polygon from points ... | 2 | 2,528 |
How to load automatically SSH keys with passphrases in SSH agent | <p>I have one SSH key per git repository. I have repositories in Bitbucket and on Gitlab. I'm under <strong>Ubuntu 18.04 LTS</strong>. If i use those keys with <code>ssh-add</code> it works but i don't want to <code>ssh-add</code> all my keys and their passphrases each time. I want to do it one time at Ubuntu start at ... | 2 | 1,361 |
Keep parent menu item highlighted, after entering into the child menu web link | <p>I want to implement a navigation menu on my website. I need to highlight a parent list item after click on its child menu item. This is Working, if it is a single file. I include it in all files. My problem of the below code is, when I click on a child menu item, its parent menu item is highlighted till the loading ... | 2 | 2,270 |
Kotlin UnrecognizedPropertyException with Jackson's ObjectMapper.readValue() | <p>Hi I'm trying out Kotlin, and normally I would be able to use the ObjectMapper in Java. What I'm trying to do is store some KeyBind Array that contains data on a keybind and what it should to e.g. pressing the combination CTRL+SHIFT+X should "EXIT" but in Kotlin I seem to get:</p>
<pre><code>com.fasterxml.jackson.d... | 2 | 3,297 |
Rstudio in anaconda environment: how should I install R packages? | <p>I create a new environment with anaconda and install Rstudio. My question is: how should I install R packages now? Should I use Rstudio --> install, or go through conda install... from the terminal?
I just tried to install the desolve package through Rstudio and got the following error.
Thank you so much.
Riccard... | 2 | 1,326 |
Struggling with CoordinatorLayout anchor | <p>I have went through every question on Stack Overflow to place a view at the intersection of two layouts (ultimate question: <a href="https://stackoverflow.com/questions/24459352/how-can-i-add-the-new-floating-action-button-between-two-widgets-layouts?noredirect=1&lq=1">How can I add the new "Floating Action... | 2 | 1,601 |
Maven Failed to Execute Goal org.apache.maven.plugins:maven-surefire-plugin2.22.2 And maven-compiler | <p>I get some errors when I try to run the maven test in Intellij. When I try to run the test from maven I get the following maven-sunfire error :
<b>"Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin".</b> I updated my pom.xml file to different maven-sunfire-plugin versions...</p>
<p>Also when I u... | 2 | 1,902 |
iOS: file name in email attachment | <p>I can send a .csv file as an attachment from my app, but I'd like to shorten the name file for that attachment, because there will be a pile of csv files delivered to the recipient.</p>
<p>Piece of code:</p>
<pre><code>...
if (dorsalesPorTramoYcontrol && dorsalesPorTramoYcontrol.count )
... | 2 | 2,113 |
how to fix uipageviewcontroller exc_bad_access if page turn is not completed? | <p>I'm getting an exc_bad_access in my app and I can't figure out how to fix it.
I just upgraded to Xcode 4.5 and I'm targeting IOS 5.0. This is also my first time using UIPageViewController. I prefer to use storyboard as much as possible. </p>
<p>What I'm trying to do is recreate a golf course flip book that contain... | 2 | 6,557 |
Adding Autocomplete and TagEditor Jquery to MVC | <p>I'm looking to combine the AutoComplete and TagEditor features together, drawing the data to be used from a database. This is going to go on to populate a new entry as an string, but for now I'm just focusing on getting the features working.</p>
<p>So far, I've tried a couple of different approaches, from both the... | 2 | 2,317 |
Correct way of converting nested XML to Java object | <p>I am trying to convert the following XML string <strong>(1)</strong> to a Java Object. </p>
<p>I am trying to follow this tutorial : <a href="https://www.javatpoint.com/jaxb-unmarshalling-example" rel="nofollow noreferrer">https://www.javatpoint.com/jaxb-unmarshalling-example</a> but not able to do it correctly. I ... | 2 | 3,010 |
How to avoid duplicate record on listview update in VB.NET | <p>i have no problem when inserting records if it has a duplicate, but not on updating a record, and i really have no idea what to do here.</p>
<p>here's my code:</p>
<pre><code>Imports MySql.Data.MySqlClient
Public Class Form3
Public id As Integer
Public sConnection As New MySqlConnection
Private Sub Form3_Load(ByVa... | 2 | 2,531 |
Sorting IP addresses in Java | <p>I have read on this site inlcuding: <a href="https://stackoverflow.com/questions/5894818/how-to-sort-arraylistlong-in-java-in-decreasing-order">link1</a> and <a href="https://stackoverflow.com/questions/1694751/java-array-sort-descending">link2</a> amongst others how to sort IP addresses (String representation of th... | 2 | 1,121 |
Swift (OpenStack Storage) Installation | <p>I have tried install Swift by <a href="http://docs.openstack.org/developer/swift/development_saio.html" rel="nofollow">this instruction</a></p>
<p>And when I try install swift from sources (after git clone) I get error from python installer:</p>
<pre><code>Traceback (most recent call last):
File "setup.py", line 2... | 2 | 1,245 |
Getting client-side CORS to work when provider rejects pre-flight requests due to missing authorization header | <p>I am developing an Angular app that'll be consuming SalesForce API's (a.k.a. a SalesForce "Connected App"). Authentication occurs via oAuth/OpenID and works well. However, the app cannot currently access the SalesForce API endpoints succesfully, because:</p>
<ol>
<li>It's a server-less app and REST calls are made c... | 2 | 1,428 |
how to build a predicate/expression/rule/action engine | <p>Okay so first off, sorry for the TL;DR... </p>
<p>2nd, some context about what I want to achieve.</p>
<p>I have a script that processes a given file and generates a new file based on a defined set of rules. Each row in the file has a value and the script evaluates the value and generates other values based on that... | 2 | 3,061 |
Postgres - Multiple joins is causing my query to return incorrect data | <p>I have three tables in my database. Their schema is basically:</p>
<pre><code>books:
id | book_title
books_tags:
id | book_id | tag_id
books_votes:
id | book_id | vote
</code></pre>
<p>The idea is to be able to search for books and filter by given tags (716 and 101, in this case). The <code>total_votes</code> is... | 2 | 1,092 |
How to inject an EJB from another ejb file in a same application? | <p>I am learning JavaEE 7 recently. I have a problem when I try to inject an ejb from a separate jar file.</p>
<p>My code is like </p>
<pre><code>@Stateless
public class HelloService {
public String hello(String name) {
return "Hello " + name;
}
}
</code></pre>
<p>The HelloService is in independed ... | 2 | 2,774 |
Preview image and canvas | <p>The code below allows to click on a canvas with a background image and draw a point. I would like to give the change to the user to change the default image, so I have added an input file element. So go to the snippet and follow this steps:</p>
<ul>
<li>Step 1: click on the first default image "Ziiweb". The coordin... | 2 | 1,454 |
Calling Java Method from Javascript in Android Project - PhoneGap | <p>I have the following Java Class</p>
<pre><code>package com.phonegap.plugins.video;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import org.json.JSONArray;
import org.json.JSONException;
import and... | 2 | 2,019 |
PageKeyedDataSource loadAfter called continuously | <p>I have a PageKeyedDataSource that continuously calls the loadAfter, and all the items are added in the Recyclerview multiple times. From the API side a null <code>lastEvaluatedKey</code> means give me the first page which kinda makes sense on why it keeps calling to get the first page but A. Shouldn't it stop if the... | 2 | 1,876 |
Kendo Grid Serverside Paging, Incorrect Parameter Map values | <p>I'm trying to use the Dynamic Linq Helper libraries from Kendo. The parameter map function on the grid does not have the correct parameters to send to the controller.</p>
<p>The parameterMap options have:
{"take":10,"skip":0,"page":1,"pageSize":10}</p>
<p>but according to the example, it should have take, skip, so... | 2 | 1,932 |
Typo3 menu with font awesome icons | <p>I use typoscript (new to it) to handle the menu bar for my site and I want to use fontawesome icons next to the menu entries.</p>
<p>This is what the model look like:</p>
<p><a href="https://i.stack.imgur.com/H4B3m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H4B3m.png" alt="enter image descr... | 2 | 4,114 |
Remove QLabel dynamically | <p>I am working to create a GUI with Qt and C++.</p>
<p>I have create dynamically some couples of buddies (<code>QLabel</code> + <code>QSpinBox</code>) in order to refresh the number of errors that my program makes in the last thousand round to my loop.</p>
<p>My code to create this:</p>
<pre><code>if((num_fotos % 1... | 2 | 1,494 |
ionic 2 check-box value | <p>I am referring <a href="https://stackoverflow.com/questions/42437889/ionic-2-read-checkbox-value">Ionic 2 read checkbox value</a> code in the same manner as described in answer. But I am getting error message in console that:</p>
<pre><code> Cannot read property 'indexOf' of undefined
</code></pre>
<p>Below is my ... | 2 | 1,027 |
MaxMind GeoIP Reader Dispose Issue - UnauthorizedAccessException on mmdb file following Reader.Dispose() | <p>I am using the MaxMind.Db.Reader class to access the GeoLite2-City.mmdb file and I am having file access issues performing certain actions on the file after calling dispose on the reader.</p>
<p>The simplest way to reproduce this issue is to have a console application, similar to the MaxMind.Db.Benchmark project, w... | 2 | 1,101 |
Access Violation | <p>Greetings everyone, going to need some help in clearing this exception.</p>
<p>I get the following when debugging my compiled program in Microsoft Visual C++ 6.0:</p>
<pre><code>Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information f... | 2 | 3,608 |
LWJGL: gluLookAt that returns Matrix4f in opengl 3+? | <p>I'm trying to write a little game with third-person-camera and I'm just wondering about gluLookAt function. It works with Opengl 1.1, but I'm using 3.2 one so I need something that can return Matrix4f to me, but I didn't find anything on the Internet except some code in C++ and I found it <strong>extremely</strong> ... | 2 | 1,402 |
jaxb - many to many relationship | <p><strong>EDIT:</strong></p>
<p>I messed around some time now and came to the following XML result:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<List>
<client name="Robert">
<fileNames name="anleitung.pdf"/>
<fileNames name="fernseher.jpg"/>... | 2 | 1,984 |
Django South: How to create rules for a Custom Field? | <p>I've create a custom field "Private FileField". I'm not able to get it to work with django-south.</p>
<p>My understanding of South field rules is based on
<a href="http://south.aeracode.org/docs/tutorial/part4.html#tutorial-part-4" rel="nofollow noreferrer">http://south.aeracode.org/docs/tutorial/part4.html#tutoria... | 2 | 1,064 |
How to install Highlight.js to Rails 7 with importmap? | <p>I created a simple Rails 7 application with Post, Comment models using Tailwindcss.</p>
<p>And I have a problem with importing the highlight.js library to render syntax code in Trix editor.</p>
<p>This is config/importmap.rb:</p>
<pre><code># Pin npm packages by running ./bin/importmap
pin "application", ... | 2 | 1,297 |
MVC Testing Spring Boot Mocking Keycloak Token | <p>I'm trying to do a MVC-Unittest for my with keycloak secured API.</p>
<p>Using <a href="https://github.com/ch4mpy/spring-addons" rel="nofollow noreferrer">https://github.com/ch4mpy/spring-addons</a>, and according to the example the test should work just fine.</p>
<p>test:</p>
<pre class="lang-java prettyprint-overr... | 2 | 1,492 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.