title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Extracting Google Map routes as shape | <p>We have very simple example of transition route in Web Google Map. Consider <a href="https://www.google.com/maps/dir/40.9003893,-74.1943228/2-22+Taft+Ave,+Woodland+Park,+NJ+07424,+USA/40.898207,-74.1952972/40.8987253,-74.1968851/40.9008121,-74.196019/@40.8994414,-74.1947649,16.25z/data=!4m12!4m11!1m0!1m5!1m1!1s0x89c... | 2 | 1,209 |
Tsung: Using iterator in loop | <p>I'm trying to create load testing scenario for <code>ejabberd</code> with <code>tsung</code>.</p>
<p>I want simulate thousands of XMPP events from thousands clients. According tsung's <a href="http://tsung.erlang-projects.org/user_manual.html#htoc68" rel="nofollow">manual</a> I can create repeated actions using <co... | 2 | 1,389 |
Image Processing on Vivado HLS | <p>I'm working on video processing project. At the initial stage, I started with a simple program with importing an image and just duplicate it in the main function and pass it back. It works but the resultant image is not what I put.</p>
<p>Here are my files and attached images.</p>
<p><strong>image_filter.h</strong... | 2 | 1,648 |
Can't set image to ImageView returned by camera | <p>I want to set the image returned from camera to the CropImageView.
The library used is <a href="https://github.com/ArthurHub/Android-Image-Cropper" rel="nofollow">this</a>.</p>
<p>The image returned by gallery is properly being set.</p>
<p>But with the image returned by camera, when set with <code>setImageUri()</c... | 2 | 1,938 |
Setting up SSL for Xampp Apache on Mac OS X to address missing_subjectAltName on Chrome | <p>I'm trying to setup SSL for Apache (installed via XAMPP) on Mac OS X Yosemite.</p>
<p>Let's assume that I have a local hostname called 'my-local-host' already setup. I followed the instructions <a href="http://brianflove.com/2014/12/01/self-signed-ssl-certificate-on-mac-yosemite/" rel="nofollow noreferrer">here</a>... | 2 | 1,386 |
Debugging php imap_open function - possible networking error | <p><strong>BACKGROUND:</strong> I just migrated my project to a different server (a shared DigitalOcean one, the cheapest offer) with CentOS, and noticed that PHP's imap functions take way more on the new server, than on the old one(like 10x more).</p>
<p>The old server is a dedicated server, and a mail server is also... | 2 | 1,956 |
Mocking $mdSideNav in unit test | <p>I have a simple enough function that closes an $mdSidenav instance in my application</p>
<pre><code>function closeSideNav() {
$mdSidenav('left').close();
}
</code></pre>
<p>I'm now needing to unit test this, but am having trouble writing an expectation for the <code>close()</code> call on $mdSidenav.</p>
<p>I th... | 2 | 1,182 |
How to Disable the combobox values on selection in multiple comboboxes JQuery? | <p>I want to disable the values in combobox on selection for multiple comboboxes.
Like i have a four combobox1, combobox2, combobox3, combobox4 with values <strong>Select</strong>,1,2,3,4 and 5.
Now, if i select value '1' from combobox1, then it should be disabled from all other comboboxes. And then if i select '2' fro... | 2 | 1,391 |
Where do I put Google Maps logic in Sencha-Touch 2? Multiple markers | <p>I have a functioning Google Map running on Google Appengine.</p>
<p>I want to turn this into a mobile friendly interface by using (maybe) <a href="http://docs.sencha.com/touch/2-0/" rel="nofollow">Sencha Touch 2</a>. Maybe I'm supposed to know <a href="http://docs.sencha.com/ext-js/4-0/" rel="nofollow">Sencha EXT J... | 2 | 1,541 |
Decrypt CRC32 using static key in php (used C# class to generate CRC added) | <p>This is my class to create a CRC32 hash. Its not my class I found it on internet ofc.. But to the point I can't manage to get SSL working or AES because I have really only basic coding knowledge.
I am making launcher for my little game nothing big I dont need super strong encryption I only need to hide client queri... | 2 | 1,641 |
how to show viewbag data in html table by converting viewbag object to list in asp.net mvc | <p>im passing list data in the viewbag from the controller . while accessing the viewbag as list getting error.</p>
<pre><code>error - 'Object reference not set to an instance of an object.'
</code></pre>
<p>getting error at this line. <code>ViewBag.Total_PowerList as IEnumerable<TransformerEnergyMonitoring.Models.K... | 2 | 1,616 |
Python: binned_statistic_2d mean calculation ignoring NaNs in data | <p>I am using <code>scipy.stats.binned_statistic_2d</code> to bin irregular data onto a uniform grid by finding the mean of points within every bin.</p>
<pre><code>x,y = np.meshgrid(sort(np.random.uniform(0,1,100)),sort(np.random.uniform(0,1,100)))
z = np.sin(x*y)
statistic, xedges, yedges, binnumber = sp.stats.binne... | 2 | 1,032 |
Pymysql cur.fetchall() returns None | <p>This is my first post here and I found so many answers here I am really confident, that some can help me. Because I work with Python for only about half a year now, it maybe is a very stupid beginners question. Forgive me so far...</p>
<p>In my project I have several different functions. Two of them are listed belo... | 2 | 4,095 |
Flutter won't build appbundle after update to android 3.5.0 | <p>The thing is that I try to build a appbundle for a flutter app but it crashes i search for results about the errors but found nothing hope some one could help.</p>
<p>NOTE : The app launch and works perfectly on both IOS and Android but doesn't build on any of them I'll make a post for the Ios problem and I'll link... | 2 | 7,021 |
separate footer to three columns | <p>I am trying to make my footer divided into three columns in one row. The left will be my Copyright; Middle will be social media; right will be my contact.</p>
<p>I've been trying and reading and watching so many stuff and I'm finding it really difficult to get done. Could someone help me out please - I'll post my c... | 2 | 1,554 |
"tee" like programming api in UNIX | <p>I want to have something like this </p>
<pre><code>$> ps -ax | tee -a processes.txt
</code></pre>
<p>In a UNIX C programming environment, meaning not via shell scripts.</p>
<p>Basically is there a API so that I can tee on STDIN and/or STDOUT so that I can recording automatically anything appears on the CLI dow... | 2 | 1,260 |
Python randomising multiple choices in python | <p>What I try to do is randomise the question1 to question20 in different order and when it's randomise I can also type my answer in the question.
Every time I try to use the randomise statement it's always stuff up with error or intend error.
what the code do now is print the question in order.
all I have to do is r... | 2 | 2,993 |
Problem running basic Spring Boot application | <p>I have been working through an introductory <a href="https://spring.io/guides/gs/spring-boot/#scratch" rel="nofollow noreferrer">Spring Boot tutorial</a>.</p>
<p>I have gotten as far as running</p>
<p><code>./mvnw spring-boot:run</code></p>
<p>From the project directory.</p>
<p>Which generates the output:</p>
<... | 2 | 2,104 |
Object reference not set to an instance of an object database username validation | <p>I can not understand the logic behind the connectionString command. I am attempting to make a username registration page that checks the availability of a user name before submitting. I have followed my ASP.NET unleashed textbook to a tee, but still I get the "object reference not set" error. Do I have to name my da... | 2 | 3,473 |
What are Untyped Scala UDF and Typed Scala UDF? What are their differences? | <p>I've been using Spark 2.4 for a while and just started switching to Spark 3.0 in these last few days. I got this error after switching to Spark 3.0 for running <code>udf((x: Int) => x, IntegerType)</code>:</p>
<pre><code>Caused by: org.apache.spark.sql.AnalysisException: You're using untyped Scala UDF, which does... | 2 | 1,459 |
NullPointerException for instantiated button in action listener | <p>The following code is a snippet of a program I am getting a nullpointer exception from. When I press the "Add" button on the GUI, an error message pointing to this line:</p>
<pre><code> buttonPanel.addButton.setEnabled(false);
</code></pre>
<p>is displayed. I'm guessing that the addButton is null for some reason ... | 2 | 1,362 |
android - (HttpURLConnection) downloading image from internet | <p>I want to create a simple android app that retrieves an image from the internet
The Activity code looks like this :</p>
<pre><code>import java.io.IOException;
import java.io.InputStream;
import android.support.v7.app.ActionBarActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import a... | 2 | 1,483 |
C++ problem to write vector data to file | <p>I want to write the content of the vector v to a file. Problem is that not the content but the address will be placed inside the textfile. </p>
<p>When I write *pos inplace of &pos I get the error: <em>error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'entry'</em> </p>
... | 2 | 1,100 |
result of rpart is a root, but data shows Information Gain | <p>I have a dataset with an event rate of less than 3% (i.e. there are about 700 records with class 1 and 27000 records with class 0).</p>
<pre><code>ID V1 V2 V3 V5 V6 Target
SDataID3 161 ONE 1 FOUR 0 0
SDataID4 11 TWO 2 THREE 2 1
SDataID5 32 TWO 2 FOUR 2 ... | 2 | 2,050 |
MySQL Query performance - huge difference in time | <p>I have a query that is returning in vastly different amounts of time between 2 datasets. For one set (database A) it returns in a few seconds, for the other (database B)....well I haven't waited long enough yet, but over 10 minutes. I have dumped both of these databases to my local machine where I can reproduce the ... | 2 | 15,594 |
Laravel 5 product order relation syntax: Not unique table/alias | <p>I'm working on an applications which can be used to make pricelist orders for products.<br>
<strong>In short</strong>: a restaurant has a pricelist, which they can update by following a flow where they can insert new prices.</p>
<p>As result a price order will be generated. </p>
<p>Now what I want is that I <stron... | 2 | 1,026 |
Auto Submit form with date data from daterangepicker | <p>I have this script almost working. What I want is when the date is selected, submit the form automatically with the desired data. This script currently splits the dates and puts them in a hidden input field. It then searches the DB and displays the results. Simple, right. </p>
<p>I read all night and got this ... | 2 | 1,703 |
Solr DIH and SAXParseException Content is not allowed in prolog | <p>I'm new to Solr and trying to index the file system, using Solr's DIH. Funny thing is, it worked just fine - for a little while. Now the DIH won't initialize and I keep getting a SAXParseException: Content is not allowed in prolog. </p>
<p>Any ideas?
I'm using Solr 3.6.0 on Debian. And I checked the config file wit... | 2 | 1,791 |
Twitter Bootstrap Rails Carousel | <pre><code><div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"> </li>
<li data-target="#carousel-exa... | 2 | 1,095 |
how to bind 2 table dynamic data in bar chart using ajax call in mvc c#? | <p>I am trying to show last 7 days count in the bar charts.for that I am using bar charts and asp.net mvc c#.I have created store procedure that return 2 tables form the database. Now in this page I can able to show 1st table data.But no idea about how to show 2nd table data in the chart. Find table structure below</... | 2 | 2,378 |
SSO for PHP webapp with WSO2 identity server. Authentication Request Failed | <p>I´m trying to configure a webapp in PHP for SSO with the WSO2 Identity Server. I can configure a webapp in java and it work ok but php.</p>
<p>For PHP I use this: <a href="http://support.onelogin.com/entries/268420-saml-toolkit-for-php" rel="nofollow">http://support.onelogin.com/entries/268420-saml-toolkit-for-php<... | 2 | 4,128 |
finding if an array is a sub-sequence of another array | <p>Let us assume that I have those two <code>arrays</code>, <code>int array[15] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}</code> and <code>int s_array[15] = {1,2,3,4,5}</code></p>
<p>*note that I am aware that <code>s_array[]</code> is set to 15 but only has 5 elements</p>
<p>in the following part of my code I'd like t... | 2 | 1,712 |
I got error : UnboundLocalError: local variable 'porc' referenced before assignment | <p>I am trying to execute this code</p>
<p><strong>command3.py</strong></p>
<pre><code>import microgear.client as microgear
import os
os.system("sudo pigpiod")
import pigpio
import RPi.GPIO as GPIO
import subprocess
piMASTER = pigpio.pi()
####################### NETPIE ####################
appid = 'xxxxxxxxx... | 2 | 1,175 |
live integrated search toolbar in jqgrid | <p>I followed <a href="http://www.trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow">jqgrid demos</a> (integrated Search toolbar) but I cannot make it work like it works in the demo, In the demo as soon as the user enters a character it triggers search but in my case I need to press enter and then it searches, where a... | 2 | 5,985 |
cordova android image upload failed | <p>Having some issues with getting the cordova filetransfer to work.</p>
<p>I am reading the logs and it seems the file is getting transfered but the server is striping the extension off and writing 0 size. Using blueimp file-upload server handler. The upload handler works on my jquery scripts. I have gotten it to wor... | 2 | 1,149 |
Debug Typescript protractor tests with VSCode | <p>I have angular app with e2e tests in typescript and i want to run debug in VSCode. I went to <a href="https://github.com/angular/protractor/blob/master/docs/debugging.md" rel="nofollow noreferrer">read.me</a> to see how to run debug and it was easy. But my problem is that breakpoint in typescript tests is not stoppi... | 2 | 1,138 |
Configure Express routes using Gulp | <p>I have a <strong>server side</strong> and a <strong>client side</strong>, in the <strong>server side</strong> im using <strong>express</strong> and <strong>mongodb</strong> and in the <strong>client side</strong> im using gulp.</p>
<p>My <strong>client side</strong> use <strong><a href="http://localhost:3000/" rel=... | 2 | 1,398 |
Colouring an item based on date in grid view - c# asp.net webforms | <p>I have rows of information stored in a grid view, each containing a date. This date is historic and I would like to colour code the date if it is over a year old and also if it is between 10 months and a year old.</p>
<p>Here is the code that I have at the moment:</p>
<pre><code> foreach(GridViewRow row in grid... | 2 | 1,253 |
jbpm 5 create Process instance by bpmn file and get the task details | <p>I am getting the below Exception when created a processInstnace through a bpmn file and want to get the task once created. The below is the stack trace.</p>
<pre><code>java.lang.NoSuchMethodError: org.drools.marshalling.impl.MarshallingConfigurationImpl.getObjectMarshallingStrategyStore()Lorg/drools/marshalling/Obj... | 2 | 2,406 |
Excel VBA to duplicate and fill the default template based on number of rows | <p>I have a default template and need to populate the value in A column (Material) of the output sheet from column I of the source template. I created a macro which duplicates the number of output row based on number of parts in source template. The issue here is the part number is populated only in the first column an... | 2 | 2,300 |
Access background worker from a different class | <p>I'm separating out logic from one class to another in my Windows Form application. When all in one class, it works fine but I am moving the logic to it's own respective classes now. Having some issues getting at the backgroundWorker from a different class.</p>
<p>I have in class A</p>
<pre><code>public partial cla... | 2 | 1,167 |
LIBUSB Bulk Transfer, First URB failed, easy peasy | <p>I'm trying to update a program from USB 0.1.4 to LIBUSB, So far everything seems to be working except:</p>
<pre><code> //endp = 0x01 or 0x81 both return the same error
//static unsigned char samples[8*400];
//size=(samplelength*numberofDevices)<<1;
return(usb_bulk_read(devh,endp,samples,size,timeout));... | 2 | 1,583 |
Select a value from dropdown list with the ID and display the ID selected in gridview | <p>My problem is that I can only select the first index, but I want to select all values in the dropdown list. I tried multiple combinations of selectedvalue or selectedindexchanged, but it still not working.</p>
<pre><code><%@ Page Language="C#" Debug="true"%>
<%@ import Namespace="System.Data" %>
<%@... | 2 | 1,645 |
Sorting Integer Array (Using My Own Algorithm)- Java | <p>I'm doing an extra credit assignment for my programming class. We're doing OOP and this example is to take an array and sort it. All the sorting code will go into the add method. I have some code already, and it works sort of. As said in the title I have to create my own algorithm with my unique code. How do I go a... | 2 | 1,057 |
Tailwindcss Dropdown item flying off to edge of the screen instead of under the dropdown button | <p>So Im making an app with Rails, Vue and TailwindCss 1.0+</p>
<p>At present I'm attempting to make a dropdown menu for my products, but when I click on the dropdown button my dropdown that contains my items flys off to the edge of the screen, when it should be under my button.. </p>
<p>Im not too sure where I'm goi... | 2 | 2,329 |
Jquery ajax call getting 'error' with swagger rest api | <p>I used a swagger script to generate a rest api.</p>
<pre><code>{
"swagger": "2.0",
...
},
"host": "localhost:8080",
"basePath": "/swagger-item-jaxrs",
"schemes": [ "http" ],
"consumes": [ "application/json" ],
"produces": [ "application/json" ],
"paths": {
"/item/{cd}": {
"get": {
"description": "Returns ... | 2 | 1,228 |
Custom flask application running fine on localhost but returning 500 response to external visitors | <p><strong><em>Latest update</strong>: The problem had indeed to do with permission and user groups, today I learned why we do not simply use root for everything. Thanks to <a href="https://stackoverflow.com/users/397331/jakub-p">Jakub P.</a> for reminding me to look into the apache error logs and thanks to <a href="ht... | 2 | 1,355 |
Java - Simple networked game is extremly laggy | <p><em>I already asked this on codereview a day ago but I haven't got any responses yet, so I though I'd try to ask it here.</em></p>
<p><strong>Let me tell you what I'm trying to make:</strong></p>
<p>A window pops up asking the user if they want to run a server, or a client. Choosing server will start a server on t... | 2 | 2,824 |
Portfolio simulation using Cholesky decomposition | <p>I do a MC simulation of a portfolio with 4 assets (Bond, equity, equity, cash market)
I use monthly steps and my simulation horizon is 10 years i.e. 120 steps. My final goal is to compute the yearly expected shortfall, i.e. taking the worst 5% of the Portfolio Returns.</p>
<p>The simulation seems to be ok - at the ... | 2 | 1,394 |
Weird Hibernate issue saveOrupdate or merge (both not working) | <p>We have an Email object.</p>
<p>The email.hbm has</p>
<pre><code><bag name="emailRecipients" lazy="false" inverse="false"
cascade="save-update" fetch="select">
<key column="EMAIL_ID" />
<one-to-many class="EmailRecipient" />
</bag> ... | 2 | 1,089 |
Standalone webapp and Browser scrollbars | <p><strong>EDIT (last ! :-) :</strong> A workaround to this is putting the whole UI in an absolutePanel (thx megabyte1024).
It's not perfect since I cannot have a background color in the whole display area but it's at least much more confortable. (link to online test app is updated with this new version) and screen cap... | 2 | 2,125 |
SDL_GetTicks() Definition Missing. (SDL 2.0.3) | <p>I'm having trouble compiling a program I wrote a while ago (when I used SDL 1.2).
There are a number of definitions missing:</p>
<ul>
<li>SDL_GetTicks()</li>
<li>SDL_FillRect()</li>
<li>SDL_SetVideoMode()</li>
<li>SDL_DisplayFormatAlpha()</li>
</ul>
<p>and many many more.</p>
<p>These are the headers that I'm inc... | 2 | 3,412 |
Page Speed Insights - Size Content to Viewport? | <p>I am getting the error in Google Page Speed Insights stating:</p>
<p>"The page content is too wide for the viewport, forcing the user to scroll horizontally. Size the page content to the viewport to provide a better user experience."</p>
<p>"The page content is 378 CSS pixels wide, but the viewport is only 320 CS... | 2 | 5,180 |
WPF Visibility Binding to Converted Instance Property | <p>So I have a button. I want to set the visibility of the button according to the value of an integer property of a class. This requires a data binding and a converter.</p>
<p>The XAML code for the button is as follows:</p>
<pre><code><Window.Resources>
<local:Button1VisibilityConverter x:Key="Butto... | 2 | 1,234 |
jQuery - get height of content in absolute div | <p>There are similar questions but none answers helped.</p>
<p>I have an absolute div with some content, and I want to get the "real" height of this div (not the height of visible part). I suppose it is a sum of heights of all children of this div.</p>
<p><a href="https://jsfiddle.net/h7mamr4s/" rel="nofollow norefer... | 2 | 8,103 |
How to transform a named JsArray into a JsObject with JsZipper | <p>Let's assume either of the following two JSON snippets:</p>
<pre><code>{ "include": ["field1", "field2", "fieldN"] }
{ "exclude": ["field1", "field2", "fieldN"] }
</code></pre>
<p>I need to transform the <code>include</code> array like this...</p>
<pre><code>{ "field1": 1, "field2": 1, "fieldN": 1 }
</code></pre>... | 2 | 1,434 |
validate hidden form element with jQuery Validation (for use with woocommerce reviews) | <p>I want to validate a hidden form with the jQuery Validation plugin to work with woocommerce reviews.</p>
<p>The HTML output is:</p>
<pre><code><form>
<!-- then later -->
<div class="comment-form-rating-wrap"><p class="comment-form-rating"><label for="rating">Overall Rating</label&g... | 2 | 1,067 |
Angular 6 unit test case to validate button disable fails when using disable but not disabled querySelector attribute | <p>I am new to Angular and trying to write 2 unit test cases using Jasmine. One test for when a button is enabled and one test when the button is disabled.<br />
This is the requirement....when a user enters valid data in a textbox, the button is enabled. If the user enters invalid data in the textbox, the button is ... | 2 | 1,855 |
C# WPF AutoCompleteBox: How to bind text programmatically | <p>From XAML I am able to create and give values to the properties of AutoCompleteBox but I want to do it programmatically.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.W... | 2 | 1,547 |
Criteria: "undefined offset" | <p>i have this schema below, i have generated the classes using symfony
and created a pair of objects using the form class generated.</p>
<pre><code>moto:
marca: { type: varchar(255), required: true }
matricula: { type: integer, required: true }
</code></pre>
<p>Now i have this criteria:</p>
<pre><code> $c = ne... | 2 | 3,053 |
How to do a shallow clone using GitPython | <p>I am trying to do a shallow/partial clone of a repository using GitPython.</p>
<p>Here is the git CLI command:</p>
<pre><code>$ git clone -v --filter=tree:0 --filter=blob:none --sparse git@gitlab.com:gitlab-org/gitlab-docs.git ./Projects/
Cloning into './Projects'...
remote: Enumerating objects: 4145, done.
remote:... | 2 | 1,079 |
Flutter packages not recognised in Android Studio | <p>Flutter(1.22.5) packages are not recognized in Android Studio(Windows-10(64bit)),eventhough they are available in the <code>"C:\src\flutter\packages\flutter\lib"</code> directory.
How to resolve this?</p>
<p>Flutter path - C:\src\flutter<br />
DartSdk path - C:\src\flutter\bin\cache\dart-sdk</p>
<p>Package... | 2 | 1,034 |
Writing to TIFF: illegal byte order | <p>I have been trying to draw a huge image file from lots of smaller Images in BufferedImage-format (using one big BufferedImage takes more memory than I have) and am now trying to do this via the replacePixels-Function of the ImageWriter-class.</p>
<p>However; i do get a puzzling error which even extensive Googleing ... | 2 | 1,269 |
I am losing messages using spring-reactor, what is wrong with my setup? | <p>I thought I'd look into Pivotal's newly released reactor framework for a simple program I am writing which requires some multi-threading to complete in a timely manner.</p>
<p>I wrote the following sample project to get to know the framework and play with it to understand how it is used:</p>
<p><strong>Main.java:<... | 2 | 1,704 |
How to save Drawable after setColorFilter on Android | <p>To apply color-filter to byte array that comes from <code>takePicure()</code> method, I converted it to <code>Drawable</code>. And after calling <code>Drawable.setColorFilter()</code>, I saved it as a image file. But, color-filter doesn't apply to image file. In this case, how to save the drawable applied color-filt... | 2 | 1,158 |
How do I retrieve a UID from a ICS file being accepted in an Outlook add in? | <p>Thanks for looking.</p>
<p>I am developing an Outlook Add-in and have a need to access the UID value embedded in a .ics file when the user accepts it:</p>
<p><a href="https://i.stack.imgur.com/AAbvv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AAbvv.png" alt="enter image description here" /></a... | 2 | 1,188 |
Propel won't start | <p>I installed propel and want to test the example from <a href="http://propelorm.org/documentation/02-buildtime.html" rel="nofollow">http://propelorm.org/documentation/02-buildtime.html</a> . But when I want to generate the SQL-Code there is nothing happens.
I tried it as described with: propel.bat sql:build –verbose<... | 2 | 4,128 |
AssImp won't load OBJ files | <p>I'm using AssImp to load a model created in Blender and exported into the .obj file format. And GLFW, GLEW and GLM to render the loaded model. My problem is that right now AssImp wont even load the model and I just get the error message <code>ERROR::ASSIMP::Unable to open file "MyFile.obj"</code>.
This is the class... | 2 | 6,375 |
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile : invalid target release: 11 | <p>I am facing issue while compiling my maven project through command prompt , need help <code>Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project user-service: Fatal error compiling: invalid target release: 1.9 -> [Help 1]</code>
I am using JDK11 and inte... | 2 | 2,618 |
UserManager.SendEmailAsync doesnt send | <p>I'm trying to send an email with SmtpClient.SendMailAsync and it doesn't work although the synchronous version works (SmtpClient.Send).</p>
<p>My synchronous code :</p>
<pre><code> MailMessage msg = new MailMessage();
msg.To.Add(new MailAddress("someEmail@gmail.com", "SomeOne"));
... | 2 | 1,198 |
Static Guarantee on Key/Value Relationships in Data.Map | <p>I want to make a special smart constructor for Data.Map with a certain constraint on the types of key/value pair relationships. This is the constraint I tried to express:</p>
<pre><code>{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, DataKinds #-}
data Field = Speed | Name | ID
data Value = VFloat Floa... | 2 | 1,296 |
Using VFS to Write a File | <p>I've recently started working with WSO2 and I am encountering a problem with using the VFS to write to a file.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?><proxy xmlns="http://ws.apache.org/ns/synapse" name="PX_WriteToFile" transports="https,http,vfs" statistics="disable" trace="disable" startOnLo... | 2 | 4,457 |
Datatables error Undefined index Codeigniter | <p>I have been using datatables before but this is the first time I encountered this type of error.</p>
<p>I have errors:</p>
<pre><code>Message: Undefined index: order
Message: Undefined index: start
Message: Undefined index: length
Message: Call to a member function result_array() on boolean
Line: 253
</code></pr... | 2 | 2,780 |
how to center a google map based on user location | <p>I have this script that call posts as markers into a Google Maps:</p>
<pre><code><?php
$args = array( 'post_type' => 'braiders', 'posts_per_page' => -1 );
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ): ?>
<!-- WordPress has found matching posts -->
<div class="results-m... | 2 | 1,787 |
C# Dynamic Linq Query Multiple OR Logic | <p>I'm not a C# programmer, nor did I design the database for this, but I've been tasked with creating a Linq query that doesn't know what columns to use at compile time. Trying to be succinct, here's the gist of what I'm trying to do:</p>
<p>From the frontend, the user can select one or more groups and expect back a ... | 2 | 1,195 |
Kafka Java Client: ClassLoader doesn't find SASL/Scram Login Class | <p>Building an <strong>SPI</strong> to push events into <strong>Kafka</strong>, to get deployed as an <strong>EAR</strong> inside <strong>Keycloak 6.0.1</strong>, which uses the <strong>WildFly</strong> Server, packaged in a <strong>Docker</strong> image based on <code>jboss/keycloak:6.0.1</code>.</p>
<p>I ran into: <... | 2 | 1,321 |
ActiveRecord ::create returns record with ID = 0 | <p>I'm having an issue when creating an object with Rails (noticed it when attempting to create an instance with FactoryGirl, where the returned model has <code>id=0</code>, even though it is getting properly persisted and has the right ID in the DB. Other factories are working fine, and this one seems no different. Of... | 2 | 3,082 |
Fetching Post data from REST in Rails | <p>This is a long question so i apologize if it takes a while to grasp. I'll keep it simple as possible.</p>
<p>I'm starting to get a little desperate here but I'm so close. I've been struggling with Ruby for a while and communicating with post and net::http. So what I've got at the moment is a hash being turned into ... | 2 | 1,810 |
How can I create dynamic tab with viewpager(android)? | <p>I Want to create dynamically tabs with viewpager,but I don't know How to do this.
I will get an jsonstring from my webservice API like this:</p>
<pre><code>{"status":0,"data":[{"category":"fruit","pic":"URL","Content":"apple"},{"category":"fruit","pic":"URL","Content":"banana"},{"category":"fruit","pic":"URL","Cont... | 2 | 3,530 |
IsolatedStorageSettings WP8 | <p>I have one problem which I cannot resolve (at least I didn't found solution yet...) I wanted to add data into IsolatedStorageSettings in WP8. My goal is to check if there are settings already in there, but when I want to check I get an exception which I cannot resolve. </p>
<pre><code> private IsolatedStorageSet... | 2 | 2,702 |
Retrieving data from REST Api in Unity without lag or jitter using C# | <p>Every 5 secs I am calling the REST using C# script. But the problem is the application lags every 10 secs(InvokeRepeating) and waits for server response and then gives out the result after the lag.</p>
<p>How to overcome this problem ?? I need to access a specific row in realtime so that changes is retrieved withou... | 2 | 2,255 |
Passing the method of an abstract class as std::function | <p>I have some code like this (This is just a snippet, not completely valid code):</p>
<pre><code>class AbstractClass {
public:
AbstractClass() {}
virtual ~AbstractClass() {}
virtual void doA() { std::cout << "doA1\n"; };
virtual void doB() = 0;
};
class ImplClass : public AbstractClass {
public... | 2 | 1,518 |
Upload Image from React Native to MongoDB Atlas using Nodejs Express Multer | <p>I am trying to upload a profile image of a user from React Native App(Android). I am new to uploading image so I searched and found a package called multer. As I am using Mongodb Atlas, multer has a storage option of MemoryStorage and using MemoryStorage I tried uploading the image to Atlas.But the problem I am faci... | 2 | 1,339 |
android onclick for swipe layout in recyclerview | <p>I attached <code>simpleItemTouchCallback</code> to <code>recyclerView</code> for swiping items in the list. </p>
<pre><code> @Override
public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrently... | 2 | 1,320 |
Unable to use virtual Box on full screen | <p>First of all, I'm using Virtual Box 4.1.4 to emulate Xubuntu 14.05.5 on a windows 7 computer.</p>
<p>I have some trouble to emulate Xubuntu in full screen on my VirtualBox, I tried a lot of solution i found on the internet, but none of them seems to work on my case.
On first, i tried to install it from the guest ad... | 2 | 2,800 |
no such column: _id SQLite error Android | <p>I'm getting a no such column: _id error. YES there is a column "_id" in my journals table.</p>
<p>I'm getting the error with this code:</p>
<pre>
mDb.execSQL("UPDATE "+DATABASE_PLANTS_TABLE+" SET "+ KEY_PLANT_DAYS+
" = (SELECT COUNT(*) FROM "+DATABASE_PLANTS_TABLE+" WHERE "
+DATABASE_J... | 2 | 1,338 |
Connection timing out when connecting to an IRC server with PHP | <p>I'm trying to connect my PHP script to IRC, but it keeps timing out. I'm <em>on</em> the server, so I know it's up and running, I can't tell what the problem is.</p>
<p>Could it be an error in my code?</p>
<pre><code><?php
/**
* Configuration.
* Pretty self-explanatory
*/
$ircServer = "hub.malvager.com";
$... | 2 | 1,773 |
How to remove the background of Layout completely | <p>In my main Activity i have created a<code>FrameLayout</code>. I have added a <code>Button</code> and a <code>Background Image</code> it it. </p>
<pre><code><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="56dp"
androi... | 2 | 1,162 |
Visual Studio 2019: Error in "locals" panel during debugging - "internal error retrieving local value" | <h1>Original Question</h1>
<p>(For reproduction instruction see Update II)</p>
<p>I recently messed around with Visual Studio 2019 during a debugging session. I pinned some properties of the class "SqlCommand" as "Favorites". Since that moment I receive an error message "internal error retrievi... | 2 | 1,270 |
JQuery mobile panel | <p>I'm fairly new to jquery and I'm wanting to use the panel feature, however my code isn't really working. I copied most of it from: <a href="http://jquerymobile.com/demos/1.3.0-beta.1/docs/panels/" rel="nofollow">http://jquerymobile.com/demos/1.3.0-beta.1/docs/panels/</a> just to test and the panel is taking over the... | 2 | 2,790 |
Packing rectangles in a rectangle, generate grids coordinates | <p>Looking to generate some randoms grids of rectangles in a bigger rectangle. </p>
<p>This looks like a fairly easy problem, but it's not, seeking for advises here. </p>
<p>This is <a href="https://en.wikipedia.org/wiki/Packing_problems" rel="nofollow noreferrer">not a packing problem</a>, since the inner rectangles... | 2 | 2,992 |
Copy emails from my Sent Folder in Outlook 2010 to an Excel file | <p>I need to make a record of some emails I've sent over the last couple years, and to include who they were sent to, the date, and the body of the message. Exporting from Outlook does not carry the date, and for some reason Access won't import data from Outlook on my company computers</p>
<p>I came across this macro ... | 2 | 1,080 |
How to update an OWL ontology file in order to add a new individual with some properties? | <p>I have an ontology created in protege 4.3.0 and stored in an OWL file. I need to add some individuals to this ontology and update this file. Since these individuals are very similar to each other, I would like to take advantage of OWL API in order to add them faster than manual use of the program.</p>
<p>My aim is ... | 2 | 2,813 |
C# reading/writing over SOCKET to JAVA and having some concurrency/socket issue | <p>Rrom C#, reading/writing over SOCKET to JAVA and having some concurrency/socket issue. </p>
<p>I am trying to implement a server client application where the server is Java and the Client is C#. And they communicate over TCP/IP and exchanging some binary data between them.</p>
<p>Particularly I have a Packet class... | 2 | 4,325 |
Using this and attributes in member function trailing return types? | <p>In this <a href="https://stackoverflow.com/questions/9017139/is-it-possible-to-base-the-template-specialization-on-the-presence-or-absence-of/9018068#9018068">answer</a> I gave, it made sense to use <code>this</code> and the attribute of the class <code>_arg</code> in the trailing return type as part of the <code>de... | 2 | 1,354 |
SageMaker XGBoost hyperparameter tuning versus XGBoost python package | <p>I am trying to do hyperparameter tuning of xgboost model. I started with AWS Sagemaker Hyperparameter Tuning, with the following parameter range:</p>
<pre><code>xgb.set_hyperparameters(eval_metric='auc',
objective='binary:logistic',
early_stopping_rounds=500,
... | 2 | 1,392 |
jquery content slider | <p>I am trying to work on a content slider with effects similar to this website:<a href="http://monitter.com/" rel="nofollow noreferrer">Monitter</a></p>
<p>Unlike this website, I don't want to include any real time twitter updates. I just want the content in div's to be loaded in a similar fashion.</p>
<p>I have alrea... | 2 | 2,006 |
Matplotlib pyplot semilogy broken for specific data | <p>I am trying to display data on a semi-log scale using matplotlib.pyplot.semilogy but for some reason certain specific data will not display on a log scale.</p>
<p>Here is the minimal example:</p>
<pre><code>import numpy as np
import matplotlib.pyplot as plt
x1 = np.linspace(0, 1, 50)
y1 = np.linspace(0.1, 10, 50)... | 2 | 1,237 |
Get values from for loop in controller-model (php) | <p>I use yii framework but I have a php problem here.
I struggle to get datas from a loop which begins in my controller, continues in my model and ends in my controller.
Here is my code :</p>
<p>adminController.php</p>
<pre><code>public function actionAdmin()
{
////code generated by gii////
$model=new vbnm('searc... | 2 | 1,034 |
WSO2 Custom claim handler not being called for password grant_type | <p>I have been using WSO2IS as OIDC provider. I have implemented a custom claim handler which is working fine and being invoked when WSO2 receives grant_type "Authorization_code". The problem started when a Service Provider sent a request with <code>grant_type=password</code>. In this case, WSO2 succesfully authenticat... | 2 | 5,180 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.