title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
WebSocket connection to 'ws://localhost:3434/' failed: Connection closed before receiving a handshake response | <p>When using the cmd to run the node server.js and launch the localhost:3434 in the web browser I am getting the error:</p>
<p>in Chrome: </p>
<blockquote>
<p>Connection closed before receiving a handshake response.</p>
</blockquote>
<p>in firefox:</p>
<blockquote>
<p>Firefox can't establish a connection to t... | 0 | 4,652 |
FreeMarker template error: The following has evaluated to null or missing | BUT NOT TRUE | <p>The error I'm facing is so weird. Everything looks fine, but I get this error when the browser sends the GET request to the server. What I'm trying to do is actually catching the HTTP parameters, save them in an object saved in an ArrayList sending to a Freemarker template. </p>
<p>Could you please help me? Thanks ... | 0 | 2,289 |
Reading multiple files from S3 in Spark by date period | <h1>Description</h1>
<p>I have an application, which sends data to AWS Kinesis Firehose and this writes the data into my S3 bucket. Firehose uses "yyyy/MM/dd/HH" format to write the files.</p>
<p>Like in this sample S3 path:</p>
<pre><code>s3://mybucket/2016/07/29/12
</code></pre>
<p>Now I have a Spark application ... | 0 | 1,236 |
How to change part of an url in php? | <p>I am new to PHP and I am trying to work on this one problem where the middle of a URL changes.</p>
<p>For instance using this fake URL,</p>
<pre><code>$url = 'http://www.bobsplace.com/events/georgetown/12354544233123';
</code></pre>
<p>I need to be able to substitute "georgetown" out with a random variable. </p>... | 0 | 1,263 |
Memory warning and crash (ARC) - how to identify why it's happening? | <p>I've started to use the ARC recently and since then I blame it for every single memory problem. :) Perhaps, you could help me better understand what I'm doing wrong.</p>
<p>My current project is about CoreGraphics a lot - charts drawing, views filled with thumbnails and so on. I believe there would be no problem wh... | 0 | 1,466 |
How do I create a join using a 'greater than' and a 'group by'? | <p>I have a table containing a series of names, events and dates. I've created a new field '<code>evt5_date</code>' which is related to a specific event (<code>evt5</code>). </p>
<p>Each name can have several events the timing of each is recorded in <code>evt_date</code> field.
Two events <code>evt1</code> and <code>e... | 0 | 1,591 |
Crashlytics thread crashed only on iOS13 built with Xcode11 | <p>My app is crashed only on iOS13 with the following call stack:</p>
<pre><code>#57. Crashed: com.twitter.crashlytics.ios.exception
0 myapp 0x105d6d494 CLSProcessRecordAllThreads + 376 (CLSProcess.c:376)
1 myapp 0x105d6d87c CLSProcessRecordAllThreads + 407 (CLSProce... | 0 | 2,508 |
Jboss 7.0 Fails to start in Red Hat | <p>Hi, i'm trying to run Jboss EAP 7.0.0 in Red Hat Enterprise Linux 7, the installation goes well until i need to start the service.</p>
<pre><code> sudo service jboss-eap-rhel start
Redirecting to /bin/systemctl start jboss-eap-rhel.service
Job for jboss-eap-rhel.service failed. See 'systemctl status jboss-eap-rhe... | 0 | 1,389 |
Specialization with Constraints | <p>I'm having problems getting GHC to specialize a function with a class constraint. I have a minimal example of my problem here: <a href="http://lpaste.net/98464" rel="nofollow noreferrer">Foo.hs</a> and <a href="http://lpaste.net/98342" rel="nofollow noreferrer">Main.hs</a>. The two files compile (GHC 7.6.2, <code>g... | 0 | 1,714 |
Selenium - org.openqa.selenium.WebDriverException: f.QueryInterface is not a function | <pre><code>@Test
public void myDriver() throws IOException, InterruptedException {
FirefoxDriver myD = new FirefoxDriver();
String vkw, vxpath, vtestdata;
long iWait = 1000000000;
String[][] xTC, xTS;
xTC = readxl("C:\\Selenium\\KDF.xls", "Test case");
xTS = readxl("C:\\Selenium\\KDF.xls", "... | 0 | 2,435 |
Vue.js: Including same instance of component multiple times in page | <p>What I am trying to accomplish:
I have some filters that display on a page to filter the products that display on the page. In mobile, I want to hide these filters behind a button that, once pressed, will show the filters in a slide out menu from the side.</p>
<p>While I can duplicate the same components on the pag... | 0 | 1,927 |
Stylesheet not working in Chrome/Safari but can work in Internet Explorer | <p><strong>TL;DR</strong></p>
<p>I've read through many questions on Stack Overflow on this issue and I've tried to follow the given advice. Still, my CSS stylesheet will not work in Chrome/Safari but it <em>can</em> work in Internet Explorer.</p>
<p>The only odd thing that I can see about my scenario is my server is... | 0 | 1,361 |
TCPDF Memory Issue Allowed memory size of 134217728 bytes exhausted | <p>I am using TCPDF for downloading PDF. For smaller records, it is working fine.But for large data ie 1000 records, it is showing the following error,</p>
<pre><code>Fatal error: Maximum execution time of 30 seconds exceeded
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes)
... | 0 | 5,158 |
where is DbContextTransaction in .Net Core | <p>I need to use <code>DbContextTransaction</code> in a class on a .Net Standard library, I haven't been able to find the corresponding nuget package, I am porting this <a href="https://github.com/mehdime/DbContextScope/tree/master/Mehdime.Entity" rel="noreferrer">https://github.com/mehdime/DbContextScope/tree/master/M... | 0 | 5,483 |
K-fold cross-validation using cv.lm() | <p>I am new to R and trying to do K-fold cross validation using cv.lm()
Refer: <a href="http://www.statmethods.net/stats/regression.html" rel="nofollow">http://www.statmethods.net/stats/regression.html</a></p>
<p>I am getting error indicating the length of my variable are different. Infact during my verification using... | 0 | 1,367 |
ResultSet to Excel (*.xlsx) Table Using Apache POI | <p>I am trying to write <strong>ResultSet to Excel (*.xlsx) Table</strong> using Apache Poi.</p>
<p><strong>Invalid Table Object Error in Office Excel</strong></p>
<p>However, even though it writes the Excel file without any error, when I try to open it in Office Excel 2013, it shows an error and removes the table ob... | 0 | 5,553 |
How to use a JWT Refresh Token to generate a new Access Token | <p>I'm using Node.js and Express to deal with JWT Auth. First of all, every time a user is created and verified, I'm storing a <code>refresh token</code> inside <code>User</code> collection:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
... | 0 | 1,198 |
R - exclamation mark before variable, but no subsequent =, == or similar | <p>The code for the Holt-Winters function in R contains the following if clause: </p>
<pre><code>if (!is.null(gamma) && is.logical(gamma) && !gamma)
</code></pre>
<p>Obviously the first means "if NOT gamma is Null". I am a bit confused by the meaning of the third - it looks like this reads, "if NOT g... | 0 | 3,684 |
AttributeError: 'module' object has no attribute 'Spider' | <p>I just started to learn scrapy. So I followed the <a href="http://doc.scrapy.org/en/latest/intro/tutorial.html" rel="nofollow">scrapy documentation</a>. I just written the first spider mentioned in that site.</p>
<pre><code>import scrapy
class DmozSpider(scrapy.Spider):
name = "dmoz"
allowed_domains = ["dm... | 0 | 1,039 |
Set "List / Grid" default view mode in catalog.xml for category view | <p>I'm trying to do my category view display products in list or grid mode as default.</p>
<pre><code><reference name="content">
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
<block type="catalog/product_list" name="product_list"... | 0 | 1,466 |
How to remove u'' from python script result? | <p>I'm trying to write parsing script using python/scrapy. How can I remove [] and u' from strings in result file?</p>
<p>Now I have text like this:</p>
<pre><code>from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.utils.markup import remove_tags
from googleparser.items imp... | 0 | 1,418 |
ASP.NET MVC File Upload Error - "The input is not a valid Base-64 string" | <p>I'm trying to add a file upload control to my ASP.NET MVC 2 form but after I select a jpg and click Save, it gives the following error:</p>
<p><strong>The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding ch... | 0 | 1,703 |
How to use a client certificate to authenticate and authorize in a Web API | <p>I am trying to use a client certificate to authenticate and authorize devices using a Web API and developed a simple proof of concept to work through issues with the potential solution. I am running into an issue where the client certificate is not being received by the web application. A number of people of repor... | 0 | 3,038 |
How to parse an application/json object into a String | <p>I am programmatically navigating to a site that returns application/json format. I can't seem to read the json returned in the HttpURLConnection. I am using Jackson to demarshall the JSON into the java object. The code is:</p>
<pre><code>InputStreamReader isr = new InputStreamReader(connection.getInputStream());
Bu... | 0 | 1,178 |
How do I set initial state in Vuex 2? | <p>I am using Vue.js 2.0 and Vuex 2.0 for a small app. I am initializing the store in the 'created' life-cycle hook on the root Vue instance by calling an action that retrieves the initial state from an API....like so in my <strong>Root Component</strong>:</p>
<pre class="lang-js prettyprint-override"><code>const app =... | 0 | 2,633 |
Proper way to autowire a Hibernate Session in a Spring Transaction JUnit test | <p>This question is similar to a previous <a href="https://stackoverflow.com/questions/734614/spring-hibernate-junit-no-hibernate-session-bound-to-thread">one</a>. I am trying to <code>@Autowire</code> a Hibernate Session in one of my Spring-JUnit-Transactional tests but I am getting this exception:</p>
<p><code>java.... | 0 | 1,587 |
Uploading Folder with images to github | <p>As the title states I was uploading my project to github ( <a href="https://github.com/siddhartha-ramesh/FilmReview.git" rel="nofollow">https://github.com/siddhartha-ramesh/FilmReview.git</a> ), but I am stuck here. I cant upload a directory called img to github can anyone help me how to do that. I am not using any ... | 0 | 1,315 |
Count multiple rows in SQL Server Query | <p>I have this table called Online_Transaction and i want to show all the types of transactions and how many where made of each type (completed,rejected,pending for authorization) in a specific month. I have this query until now but I get repeated results any ideas?</p>
<pre><code>SELECT DISTINCT
TRANSACTION_TYPE_... | 0 | 2,658 |
Spring Boot 2.0 Quartz - Use non-primary datasource | <p>I used Quartz as scheduler in my application. Trying to use Spring boot 2.0 features. I have 2 different data sources in the configuration. One for application and another one for scheduler. How can I use non-primary data source (schedulerDataSource in this case) as data source for Quartz? Please help.</p>
<p><stro... | 0 | 2,969 |
Using ctypes in python to access a C# dll's methods | <p>I would like to implement C# code in a critical part of my python program to make it faster. It says (on Python documentation and <a href="http://www.knowledgetantra.com/component/content/article/2-python/1-call-dll-function-in-python.html]" rel="noreferrer">this site</a>) that you can load a Dynamic Link Library (a... | 0 | 1,552 |
Programmatically get height of navigation bar | <p>I know that the presence of the more view controller (navigation bar) pushes down the UIView by its height. I also know that this height = 44px. I have also discovered that this push down maintains the <code>[self.view].frame.origin.y = 0</code>.</p>
<p>So how do I determine the height of this navigation bar, oth... | 0 | 1,367 |
ORA-06550: line 1, column 7 (PL/SQL: Statement ignored) Error | <p>I am getting following error for the stored procedure and not able to understand the issue (must be from db side) While googling, I found similar issues but couldn't get the solution. Can any one help me please find the error in PROCEDURE ??</p>
<p>Error :- </p>
<pre><code>18:58:50,281 ERROR [STDERR] java.sql.SQLE... | 0 | 3,968 |
Compare XML fragments & return differences | <p>I have an audit list full of serialized objects, and I'd like to compare them and return a list of the differences. By 'compare' I mean I want to return where the text for an element has changed, or where a node has been added (so its not in Xml1, but it is in Xml2- it won't happen the other way around)</p>
<p>Samp... | 0 | 1,286 |
How to get selected value from ng-autocomplete directive to controller | <p>I am using a directive for auto complete / auto suggest in angular Js taken from <a href="http://demo.jankuri.com/ngAutocomplete/" rel="nofollow">http://demo.jankuri.com/ngAutocomplete/</a>. It is working fine getting the data from server and filtering it. But I am facing problem into select and use that select item... | 0 | 2,840 |
ngRx state update and Effects execution order | <p>I have my own opinion on this question, but it's better to double check and know for sure. Thanks for paying attention and trying to help. Here it is:</p>
<p>Imagine that we're dispatching an action which triggers some state changes and also has some Effects attached to it. So our code has to do 2 things - change s... | 0 | 1,304 |
Spring, Log4j within web application | <p>I'm trying to use log4j</p>
<p>my log4j.propreties:</p>
<pre><code>log4j.rootLogger=DEBUG, out
log4j.logger.org.springframework=INFO
log4j.logger.org.apache.activemq=INFO
log4j.logger.org.apache.activemq.spring=WARN
log4j.logger.org.apache.servicemix=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAp... | 0 | 4,138 |
How do I show text in android system status bar | <p>I'm trying to develop an app for Android Nougat and I want to show some info/text in the status bar generating from a android service routine. So my problem is, I don't know how to show the text in the status bar.</p>
<p>I added a sample image to show what exactly do I mean (red circle).
I know it is possible, bec... | 0 | 2,042 |
Why RestTemplate GET response is in JSON when should be in XML? | <p>I struggled with an extrange spring behavior using RestTemplate (org.springframework.web.client.RestTemplate) without success.</p>
<p>I use in my hole application below code and always receive an XML response, which I parse and evaluate its result.</p>
<pre><code>String apiResponse = getRestTemplate().postForObjec... | 0 | 1,130 |
Uncaught SyntaxError: Unexpected reserved word | <p>I have this code in JQUERY:</p>
<pre><code>var large='<div class="vip" style ="background:url(./uploads/deal/"+data[a].id+"_1.jpg);">
<span class ="coundtown" value ='+data[a].deal_time_off+' style ="display:none;"></span>
<script> $(document).ready(function(){ $('+data[... | 0 | 1,231 |
How can I set CG_CONTEXT_SHOW_BACKTRACE environmental variable? | <p>I have three buttons in my view. After setting the cornerRadus in the viewDidLoad() : <code>button.layer.cornerRadius = 20</code> I get the following error message in the log:</p>
<pre><code> <Error>: CGContextSaveGState: invalid context 0x0.
If you want to see the backtrace, please set
CG_CONTEXT_SHOW_BACK... | 0 | 4,358 |
ssl: auth method ssl requires a password | <p>While trying to connect to a windows VM through Ansible I get this issue:</p>
<pre><code>TASK [setup] *******************************************************************
<10.xx.xx.xx> ESTABLISH WINRM CONNECTION FOR USER: winad-admin on PORT 5986 TO 10.xx.xx.xx
fatal: [10.xx.xx.xx]: UNREACHABLE! => {"change... | 0 | 4,315 |
Codeigniter, password or username incorrect message (database validation) | <p>Issue 1) I have set up a registration/login area and validated everything (including empty fields) and hit a wall when displaying an error message if the username and/or password are incorrect. At the moment, i can get an error message to display if the fields are left blank but on submit the page redirects to the '... | 0 | 1,071 |
request.GetResponse gives always a Timeout | <p>I made a Function for a program, which does work when the Request Type is <code>GET</code>, if it is <code>POST</code>, it always produces a Timeout Exception(and the timeout of 50s wasnt reached) on the Line <code>HttpWebResponse response = (HttpWebResponse)request.GetResponse();</code>
<br>I tried many things, but... | 0 | 1,461 |
C# SMTP fails to authenticate on Outlook.com, port 587. "The server response was: 5.7.1 Client was not authenticated" | <p>I'm attempting to send automated emails (genuinely required business reason - not spam!). Code similar to that below used to work with another mail service provider but the customer has moved to "outlook.com" and they're now getting:</p>
<pre><code> The SMTP server requires a secure connection or the c... | 0 | 3,434 |
Simple DataTable initialization with Ajax and PHP | <p>I'm just having some trouble initializing a DataTable using Ajax and PHP. According to the inspector the error is:</p>
<pre><code>Uncaught TypeError: Cannot read property 'length' of undefined jquery.dataTables.js:2649
(anonymous function) jquery.dataTables.js:2649
oSettings.jqXHR.$.ajax.success jquery.dataTables.j... | 0 | 1,589 |
Space between menu and drop down menu | <p>I'd like for the drop down menu to show below the border line in the main menu area instead of showing up right underneath the 'menu' title/button. I can change the positioning so that it is lower but then there is dead space in between that makes it impossible to mouse over the drop down menu.</p>
<p>I don't want ... | 0 | 1,639 |
Multiple Radio Buttons on One Line - Bootstrap 4 | <p>I tried the code from the docs (<a href="https://v4-alpha.getbootstrap.com/components/forms/#form-controls" rel="noreferrer">https://v4-alpha.getbootstrap.com/components/forms/#form-controls</a>) and found how to implement this:</p>
<p><a href="https://i.stack.imgur.com/ryId5.png" rel="noreferrer"><img src="https:/... | 0 | 2,360 |
"php_connect_nonb() failed: Operation now in progress (115)" with TLS/SSL-encrypted FTP connection in PHP - Unencypted connection works | <p>I'm trying to use an automatic backup script for cPanel accounts of my server.<br />
I have mounted an FTP server in one local machine with FileZilla Server.
I can connect and transfer files successfully with FileZilla client, a Plesk server, and lftp...<br />
The passive mode is enabled.</p>
<p>For some unknown rea... | 0 | 1,861 |
ASP.NET 5 Identity - custom SignInManager | <p>I have a MVC 6 project (vNext) and I am playing around with the ASP.NET Identity. In my case I don't want to use the build-in stuff which uses the EF (SignInManager, UserManager, UserStore). I have an external database and I just want to make a username/password lookup and return a valid cookie.
So I started writin... | 0 | 1,680 |
Please, set "CHROME_BIN" env variable inside docker npm test | <p>'npm run test' works completely fine on the server or on my local but its failing on my docker machine. I am bit new to this docker world so I am just confused about whats going wrong here.
I was getting the error: </p>
<pre><code>Post stage
[32m15 07 2018 18:41:35.164:INFO [karma]: [39mKarma v1.2.0 server started ... | 0 | 1,371 |
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed | <p>I built an application and deployed locally ... and it was working perfectly. I deployed it on a remote server and started getting the exception mentioned in the subject line. It's not because of any firewall issues.</p>
<p>I changed my <code>hibernate.xml</code> to connect via my IP address rather then localhost a... | 0 | 3,818 |
React - “localStorage is not defined” error showing | <p>I am trying to make my website SEO friendly with meta tags.
I am implementing server-side rendering in my application. After this, I am getting the following error:</p>
<blockquote>
<p>ReferenceError: localStorage is not defined.</p>
</blockquote>
<p>Please help how to resolve it.</p>
<p>My <code>package.json</... | 0 | 1,624 |
Android: remove left margin from actionbar's custom layout | <p>I am using a custom actionbar view, and as you can see in the screenshot below, there is a blank gray space in the actionbar. I want to remove it.</p>
<p><img src="https://i.stack.imgur.com/PzunE.png" alt="enter image description here"></p>
<p>What have I done:</p>
<blockquote>
<p><strong>res/values-v11/styles.... | 0 | 1,456 |
WebSocketServer MSDN Example | <p>I wrote a simple WebSocketServer, which I found out on the MSDN web-site. But it doesn't work. Can you explain me how I should to run this simple project, because I launch it but nothing happened.</p>
<p>Server</p>
<pre><code>namespace WebSocketServer
{
class Program
{
static void Main(string[] args)
{
... | 0 | 1,506 |
Sonar coverage report for PowerMockito | <p>I'm using PowerMockito and @PrepareForTest annotation for my test class. When I do this, Sonar says none of the branches have been covered. However, my other test classes that don't use PowerMockito works well. here is my pom looks like</p>
<pre><code><dependency>
<groupId>org.powermock</... | 0 | 1,263 |
Permission denied error when trying to install pip in Mac OS X Lion | <p>I'm trying to install pip on a Mac (OS X Lion). It doesn't seem to work. I use sudo and prompted for password.</p>
<pre><code>$ sudo curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
% Total % Received % Xferd Average Speed Time Time Time Current
... | 0 | 10,554 |
JNI- java.lang.UnsatisfiedLinkError: Native method not found | <p>I'm developing an Android project using OpenCV. Some of the methods do not have Java version, so I have to use NDK to use them in my project.</p>
<p>This is my first time using NDK, so after searching for some examples, I wrote my code, run it on my device, and received error message below:</p>
<pre><code>07-04 10... | 0 | 1,907 |
How do I override the equals operator == for an interface in C#? | <p>I have defined the following interface:</p>
<pre><code>public interface IHaveAProblem
{
string Issue { get; set; }
}
</code></pre>
<p>And here is the implementation of <code>IHaveAProblem</code>:</p>
<pre><code>public class SomeProblem : IHaveAProblem
{
public string Issue { get; set; }
public override ... | 0 | 1,183 |
GWT Popup and UIBinder: Panel or DialogBox? | <p>I have a requirement where, when a button is clicked, the user should be prompted with a popup/dialog box to enter some additional details such as last name, DOB, etc.I tried to play with <code>window.confirm()</code> but I think this does not serve my purpose. Can some help me how this can be achieved in GWT throug... | 0 | 1,563 |
How to insert value of UUID? | <p>I'm using anorm 2.4 in play framework 2.3 backed postgresql 9.4</p>
<p>Give a model like this:</p>
<pre><code>case class EmailQueue(id:UUID,
send_from:String,
send_to:String,
subject:String,
body:String,
created_date:Date,
... | 0 | 1,060 |
error: [Errno 98] Address already in use | <p>I'm creating a simple flaskapp which I'm going to deploy on heroku, first time deploying a python app on heroku, with that said i'm new to gunicorn. </p>
<p>Addtitional notes: Using a virtual environment. </p>
<p>Version of flask Flask==0.10.1</p>
<p>gunicorn==19.3.0</p>
<p>Using 'python run.py' <strong>works</s... | 0 | 2,568 |
Filling itab value from another itab | <p>I have an internal table <code>itab</code> which has some rows that one component of the rows <code>matnr</code> is empty. I want to check the <code>palet</code> column of the internal table and get <code>matnr</code> according to <code>palet</code> from the <code>zlldet</code> table, and then change the <code>matnr... | 0 | 2,491 |
AXIS 2: Transport error: 404 Error: Not Found - Help Understanding What it Truly Means | <p>My group runs an older version of the JBoss Application Server (4.2.3) as our Java application server (please, don't ask why). JBoss contains a "native" web services stack that we have been using for several years to consume a web service from a vendor. Unfortunately, the "native" web services stack does not suppo... | 0 | 4,396 |
Spring/Java error: namespace element 'annotation-config' ... on JDK 1.5 and higher | <p>I have Spring/Java App that is compiled with <strong>Compiler compliance level 1.5</strong>.</p>
<p>I have a new Linux setup where I downloaded <strong>Apache Tomcat 8.0.8</strong>.</p>
<p>I downloaded <strong>JDK 8u5</strong>.</p>
<p>I set the path in bash as follows:</p>
<pre><code>PATH=$PATH:$HOME/jdk1.8.0_05... | 0 | 2,647 |
Bootstrap-Datetimepicker Not working | <p>I have been looking at this for 2 days, and cant figure out what I am doing wrong.</p>
<p>Here is a fiddle with my project. <a href="http://jsfiddle.net/dagger2002/RR4hw/">http://jsfiddle.net/dagger2002/RR4hw/</a></p>
<p>Here is the HTML</p>
<pre><code> <div class="container">
<div class="col-sm-6... | 0 | 2,991 |
Making sharding simple with Django | <p>I have a <a href="https://www.djangoproject.com/" rel="noreferrer">Django</a> project based on multiple <a href="http://www.postgresql.org/" rel="noreferrer">PostgreSQL</a> servers.</p>
<p>I want users to be <a href="http://en.wikipedia.org/wiki/Shard_%28database_architecture%29" rel="noreferrer">sharded</a> across... | 0 | 1,302 |
multiple get observable requests in a for loop Angular2 Django | <p>I am trying to perform several get requests using Angular2 in Django/python.</p>
<p>I am able perform an API request and get a list of users to find the id of the current user. I then perform a <code>.flatMap</code> operation to perform a second request to get a list of all comments. I compare the userId to the lis... | 0 | 1,469 |
Uninstall all the packages installed using pip by a user on macOS High Sierra | <p>By mistake I installed packages in the global environment using pip. I was wondering if its a good idea to uninstall the already existing Python on the OS using the instructions provided <a href="https://stackoverflow.com/questions/3819449/how-to-uninstall-python-2-7-on-a-mac-os-x-10-6-4">here</a>, and re-install i... | 0 | 1,077 |
Failed to set local answer sdp: Called in wrong state: kStable | <p>for a couple of days I'm now stuck with trying to get my webRTC client to work and I can't figure out what I'm doing wrong.
I'm trying to create multi peer webrtc client and am testing both sides with Chrome.
When the callee receives the call and create the Answer, I get the following error:</p>
<pre><code>Failed t... | 0 | 3,419 |
Image overlay using :after pseudo-element | <p>I'm trying to overlay a transparent image over another via the after property. It's not even showing up using this method. I wanna use a base64 encoded image if at all possible. I tried with a regular non-encoded image too. No dice. Anyone have any thoughts?</p>
<p>My HTML:</p>
<pre><code><div class="image-cont... | 0 | 9,779 |
Error creating bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#1' | <p>I'm trying to create a web-app, using Maven and Intellij Idea. Tests work fine as installing in .war-file. But when I try to refer to my rest with jetty, I have lots of error cases:</p>
<blockquote>
<p>Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapte... | 0 | 6,362 |
Trying to create an Eraser Paint for canvas | <p>I am creating a drawing app that utilizes the DrawingSurfaceView class below. In that class i have a Paint Called eraserPaint that the user can toggle on and off.. When on that paint is suppose to eraser what ever is in its path. but instead its just drawing a black line..</p>
<p>When i save out the canvas as a ... | 0 | 4,898 |
React Native invalid podfile "No such file or directory - ./node_modules/.bin/react-native." | <p>In my react native project react-native@60.5 in the iOS dir I get this issue when running a pod install</p>
<pre><code>[!] Invalid `Podfile` file: No such file or directory - ./node_modules/.bin/react-native.
# from /Users/username/appname/ios/Podfile:44
# -------------------------------------------
#
>... | 0 | 2,429 |
KryoException: Buffer overflow with very small input | <p>I've got a trivial spark program. I've trimmed the input down to one file with one line in it. So I'm confident this isn't traditional memory pressure.</p>
<pre><code>Exception in thread "main" com.esotericsoftware.kryo.KryoException: Buffer overflow. Available: 32749568, required: 34359296
at com.esotericsoftw... | 0 | 1,880 |
Can't download MinGW from Sourceforge | <p>I wanted download MinGW C and C++ gnu compiler from Sourceforge using mingw-get-inst-20120421.exe. It gives me an option to download pre-packaged repository or latest one. When I am behind Kaspersky AV firewall latest one fails. Pre- one fails in any case. In any case they don't install gcc.exe at all. This is the... | 0 | 1,926 |
The Role Manager feature has not been enabled. MVC 4 | <p>I have that error when i update my database in package manager console here's my configuration class and web config
The Role Manager feature has not been enabled.
please help me</p>
<p>MY CONFIGURATION CLASS</p>
<pre><code> namespace TechFactorsLMSV2.Migrations
{
using System;
using System.Data.Entity;
using ... | 0 | 2,239 |
c1xx : fatal error C1083: Cannot open source file - with some Chinese or Javanese | <p>I am getting the following compilation errors:**</p>
<p>4>c1xx : fatal error C1083: Cannot open source file: '䀀∀䤀渀挀氀甀搀攀倀愀琀栀猀䘀漀爀䴀甀氀琀椀刀愀挀欀䌀漀爀攀䰀椀戀⸀琀砀琀∀': No such file or directory<br>
4> ∀䐀㨀尀瀀㐀挀氀椀攀渀琀尀倀爀漀䄀甀搀椀漀尀搀攀瘀开瘀猀㈀尀倀爀漀䄀甀搀椀漀尀堀倀氀愀琀昀漀爀洀尀䄀瀀瀀猀ⴀ䌀漀洀洀漀渀尀䌀漀搀攀尀吀栀爀攀愀搀猀尀圀䌀䔀爀爀愀渀搀䴀愀渀愀最攀爀⸀挀瀀瀀∀<br>
4>c1xx : fatal error C1083: Can... | 0 | 1,590 |
Get all ancestors of current node | <p>I want to get all ancestors of current node:</p>
<p><img src="https://i.stack.imgur.com/ls5co.gif"></p>
<p>XML:</p>
<pre><code><root>
<item title="a">
<item title="b">
<item title="c"></item> <!--CURRENT-->
<item title="d">&l... | 0 | 1,421 |
How to Drawing Text with Outline onto Images? | <p>I have been searching and looking for Drawing text with outline onto images? </p>
<p>Here my code</p>
<pre><code> private static void tulisnamafile(string imagepath, string textnya)
{
Image image = Image.FromStream(new MemoryStream(File.ReadAllBytes(imagepath)));
Bitmap newImage = new Bitma... | 0 | 2,338 |
PHP: "file_get_contents()" returning NULL from content-verified URL | <p>I'm betting that it'll end up being something simple ... but I can use a hand in spotting it.</p>
<p><strong>Problem:</strong><br>
When I try to get the contents of a specific local URL via <code>file_get_contents()</code>, it comes back as an empty string '' (length=0).</p>
<p><strong>What I've tried:</strong></p... | 0 | 1,144 |
How do I add a toolbar to a region with ExtJS | <p>I have a border layout in ExtJS, </p>
<p>The north region contains some HTML, but also needs to contain <a href="http://tomelders.com/public/toobar2.png" rel="nofollow noreferrer">a toolbar like this...</a></p>
<p>So i've managed to get the border layout set up, added the html to the North Region of the layout, bu... | 0 | 5,856 |
java.lang.IllegalStateException: No value for key [org.hibernate.impl.SessionFactoryImpl] with AOP | <p>I'm having an error each time I update an entity using Hibernate.
Here's my story:</p>
<p>I have a service with an annotation @Transactional and is calling a DAO.update method.</p>
<pre><code>@Service
@Transactional
public class FooServiceImpl implements FooService {
@Inject
private FooDAO fooDAO;
@Ov... | 0 | 1,446 |
Selenium UnreachableBrowserException - "Could not start a new session" in SoapUI Groovy TestStep | <p>I use SoapUI Pro 5.1.2 on Win7 x32, and try to connect to Selenium Webdriver in Groovy TestStep.</p>
<p>For this purpose I added <code>selenium-standalone-server.jar</code> v2.45.0 in <code>$SOAP_HOME$\bin\ext</code> folder.</p>
<p>My Groovy TestStep code:</p>
<pre><code>import org.openqa.selenium.WebDriver
impor... | 0 | 1,980 |
Looking for a good and free reverse geocoding API | <p>I am familiar with two reverse geocoding APIs - Google Maps and foursquare. Both have problems. Consider lat,lng = 35.699,139.707 (Tokyo).</p>
<p><strong>Foursquare:</strong></p>
<pre><code>GET https://api.foursquare.com/v2/venues/search?ll=35.699,139.707&oauth_token=5TJR4WQZSOW0ZWTE4ENMXKO3Y415252GITEMRPQIVPM... | 0 | 15,009 |
How do I properly update models with Bookshelf.js? | <p>I'm sure I am missing something but I find the Bookshelf API to be relentlessly confusing for me. Here's what I am trying to do:</p>
<ul>
<li>I have a model called <code>Radio</code> with an application-assigned string primary key named <code>serial</code> and, for the purpose of this example, two fields named <cod... | 0 | 1,695 |
how to deal with keras: erro:slice index 0 of dimension 0 out of bounds | <p>I use keras(tensorflow backend) to build my lstm network,this is my code:</p>
<pre class="lang-python prettyprint-override"><code>from keras.models import Sequential,Model
from keras.layers import LSTM,Conv1D,Dense,MaxPooling1D,GlobalMaxPooling1D,Input,Concatenate
from keras.optimizers import Adam
x_input = Inpu... | 0 | 4,031 |
Error in render function: "TypeError: Cannot read property of undefined" in Vue | <p>I am using Laravel and vue-router.</p>
<pre><code><template>
<div class="content__inner">
<div class="forums">
<!-- Heading -->
<div class="forums__heading" :style="'border-bottom:2px solid #' + board.category.color">
<div class="... | 0 | 1,373 |
Flash-AS3: Calling a function in a Class from another Class (Part 2) via DispatchEvent | <p>Hey this question is in reply to <a href="https://stackoverflow.com/users/87002/joel-hooks">Joel Hooks</a>'s comment on an older question of mine (<a href="https://stackoverflow.com/questions/1638537/how-to-call-a-function-in-a-class-from-another-class/1640146#1640146">How to call a function in a Class from another ... | 0 | 1,397 |
Use node-imap to retrieve emails | <p>Here is a module <code>retrieve_email.js</code> which connects to my gmail account and download the <code>UNSEEN</code> emails after a date. The code is pretty much copied from the example of the <code>[imap</code> module]<a href="https://github.com/mscdex/node-imap" rel="noreferrer">1</a>. </p>
<pre><code>const I... | 0 | 1,421 |
Unable to preventDefault inside passive event listener due to target being treated as passive? Why this error upon scrolling? | <p>I am using chrome latest version. My application throws error:</p>
<pre><code>Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
</code></pre>
<p>It hinders it ability to properly scroll i.e. jerky scroll. I trie... | 0 | 10,106 |
Cannot dlopen some GPU libraries. Skipping registering GPU devices | <p>Tensorflow is only using the CPU and wont use the GPU. I assume its because it expects Cuda 10.0 and it finds 10.2. </p>
<p>I had installed 10.2 but have purged it and installed 10.0.</p>
<p>Im running Ubuntu 19.10, AMD Ryzen 2700 Cpu, RTX 2080 S.
I have installed the 440 Nvidia driver, It says cuda version 10.2 w... | 0 | 4,064 |
KnpMenuBundle and dynamic route parameter | <p>i use knpmenubundle for my website and here is my problem :
i've a list of user listed by this route : /admin/users
and the menu is like this :</p>
<pre><code>User (is opened)
list (is active)
add new
</code></pre>
<p>in the list view, the item "<strong>list</strong>" in the menu is active like i want
in t... | 0 | 1,345 |
Converting RGB to CMYK , Using ICC Profile | <p>I'm about to converting RGB color to CMYK for printing purpose.
scale of this conversion is Adobe Photoshop <code>( Image -> Mode -> CMYK color )</code></p>
<p>I tried 2 solution , but none of them return the right value :</p>
<h2>Solution 1 - Using .NET Framework</h2>
<p>At first , I followed by these ste... | 0 | 1,296 |
How to convert a string to uint32_t | <p>I have a program which reads the contents of a file line by line, stores each line into a vector of strings, and then prints the contents of the vector. </p>
<p>After reading the file data into the vector of strings, I am attempting to convert each line from <code>string</code> into <code>uint32</code>. Each line o... | 0 | 1,237 |
Browser Memory Usage Comparison: inline onClick vs. using JQuery .bind() | <p>I have ~400 elements on a page that have click events tied to them (4 different types of buttons with 100 instances of each, each type's click events performing the same function but with different parameters). </p>
<p>I need to minimize any impacts on performance that this may have. What kind of performance hit ... | 0 | 1,039 |
ESLint error while trying to deploy firebase functions | <p>I tried deploying a firebase functions but it keeps failing due to some issue with ESLint. I have also tried googling the answer but everything I am seeing is all Greek to me.</p>
<p>I have also stumbled on <a href="https://stackoverflow.com/questions/47852169/error-trying-to-deploy-to-firebase-due-to-functions">th... | 0 | 2,308 |
Keras model.fit() giving out TypeError: 'NoneType' object is not callable | <p>I am trying to experiment with Keras to implement Siamese Network to implement one-shot face recognition model. But I am running into an error incomprehensible to me, some help is requested.</p>
<p>The model which I am using is an encoder model which takes in <code>(299,299,3)</code> images (anchor image, positive i... | 0 | 2,155 |
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> | <p>I've installed gunicorn inside my virtualenv.</p>
<p>From this directory:</p>
<pre><code>manage.py
/onbytes/wsgi.py
</code></pre>
<p>I run the following:</p>
<pre><code>gunicorn onbytes.wsgi:application
</code></pre>
<p>And I get the following error:</p>
<pre><code>Traceback (most recent call last):
File "/h... | 0 | 1,534 |
Print and pexpect logging | <p>I have a bit of a code that uses <code>pexpect</code> to control a process and some prints in the code. The main goal (in this question) is to have the <code>pexpect</code> output and prints logged into some log file. The problem I ran into is that the <code>pexpect</code> lines (data sent and received) is mingled w... | 0 | 1,049 |
Is there a unique filter in angular 2? | <p>I have a json as follows:</p>
<pre><code>[{
"_id": "58a58ea23744cd46918914ef",
"entityId": "ce7200c1-3430-47ce-ab81-7d0622cb8cae",
"name": "Portugal",
"description": "Portugal",
"type": "country",
"category": "common",
"subcategory": "common",
"parent": {
"_id": "58a8486ca4890027348a8966"
},
... | 0 | 1,795 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.