title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Typesafe Activator 0.3.0 Failed to bind to: /127.0.0.1:8888
<p>I'm trying to use typesafe-platform and when I run command <strong>activator ui</strong> I get this Exception:</p> <blockquote> <p>C:\activator-0.3.0>activator ui Found previous process id: 7552 Play server process ID is 3828 [info] play - Application started (Prod) Oops, cannot start the server.</p> </bl...
1
1,361
Not able to get rid of famous DataStreamer Exception: org.apache.hadoop.ipc.RemoteException: error
<p>I am running hadoop cluster with Ubuntu host as master-slave and virtual machine running on it as another slave(2 node cluster).</p> <p>It seems the solution to the problem which is supposed to be resolved at <a href="https://stackoverflow.com/questions/10097246/no-data-nodes-are-started">No data nodes are started<...
1
2,552
ionic 3 : Failed to load resource: net::ERR_FILE_NOT_FOUND logo.png
<p>I'm building ionic 3 app, I have simple login page work perfectly in web mode but when I run it on android the logo doesn't appear.</p> <p><a href="https://i.stack.imgur.com/jr26X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jr26X.png" alt="enter image description here"></a> </p> <p><a href="...
1
1,035
CSS - Horizontal scroll not working
<p>I'm developing a content slider and have the container width at 640px. I have content that is overflowing the width but horizontal scroll is not working in Firefox, Chrome, or IE. </p> <p>Live: <a href="http://jsfiddle.net/fjw5x/1/" rel="nofollow">http://jsfiddle.net/fjw5x/1/</a></p> <p>HTML</p> <pre><code>&lt;d...
1
2,334
How to enter the zero in front of numbers in excel?
<p>I have an application written in C# which extracts the data from Datagridview to excel. My problem is when I have a number like 010498 when I export to excel become 10498, without the zero (0) at the beginning. I want there to be zero (0). Is there any possible solution, either writing code in C # within the applica...
1
1,953
Recursive Type Mapping in Typescript
<p>I'm trying to extract a type mapping from an object containing native type validation function so for example, if I have the object</p> <pre><code>const test = { Test: { Test1: { Test2: SimpleStringValidator //return type is string or undefined but input can be anything }, } } </code></pre> <p>I w...
1
2,412
Removing the hard coded value to app.config file
<p>I have developed a form that takes from user the user id and password and display the list of databases available in the local server.Now I have done it in hard coded format...like this</p> <pre><code>public void BindDBDropDown() { //Create the connection object SqlConnection sConnection = new SqlConnection...
1
1,741
java.lang.IllegalArgumentException: Component javax.faces.component.html.HtmlDataTable is no org.apache.myfaces.custom.datalist.HtmlDataList
<p>In my JSF application I am using data table &amp; data list from tomhawk`s implementation as well as but sometimes I get following exception. This happens only when I am using Chrome browser only. </p> <pre><code>java.lang.IllegalArgumentException: Component javax.faces.component.html.HtmlDataTable is no org.ap...
1
1,845
How can I bind visibility of a datagrid column on a custom wpf control?
<p>I've spent the morning looking at related posts, NONE of them I've found address the exact issue I'm experiencing, although I've learned a bit more along the way.</p> <p>(Using MVVM with user controls in WPF)</p> <p>Scenario: I need to create a re-usable control which is a datagrid that shows two or three columns ...
1
1,230
How to handle multiple callbacks in ASP.Net 4.0 C#? Example
<p>I have to handle two callbacks in one page one on button event and other on List.</p> <p>When button 'showDate' is clicked it display Time and when button 'btnlookup' is clicked it show the respective value of listbox item.. below is my code HTML &amp; .cs file</p> <pre><code>&lt;head runat="server"&gt; &lt;t...
1
1,586
Webpack problems importing font-awesome library
<p>I'm building a React application that will require font-awesome CSS to be imported, but I'm getting an error saying that the module cannot parse the woff2 files. </p> <p>Below is my code:</p> <pre><code>import React from 'react'; import ReactDOM from 'react-dom'; require('css!../node_modules/bootstrap/dist/css/bo...
1
1,597
classic BPF on Linux: filter does not work
<p>I'm trying to test classic BPF for packet filtering by attaching it to raw socket. I want to catch TCP packets with first byte of source port == 8 (tcpdump 'tcp[1:1] = 0x50'), but I see no incoming packets on the socket. Without filter my code works OK.</p> <p>Here is the code example:</p> <pre><code>#include&lt;s...
1
3,288
Groovy HTTP ResponseParseException not found
<p>I am trying to make simple <code>GET</code> request using groovy HTTP request. I am expecting JSON response in this form: </p> <pre><code>{Records:[]} </code></pre> <p>So far I have done this in my code:</p> <pre><code>def getCountries(def cookies) { if (!cookies) { println("cookies list is empty!") ...
1
5,990
jqGrid fetched json but has empty rows and no data
<blockquote> <p>JSON As generated by Spring 3 MVC @ResponseBody</p> </blockquote> <pre><code>{ "total": "1", "page": "1", "records": "2", "rows": [ { "id": "1", "cell": { "accountId": 1, "userId": 1, "transactionId": 6,...
1
2,000
How to do Bulk-insert from Huge JSON File (460 MB) in CouchDB
<p>I need to do bulk-insert of document in my CouchDB database. I'm trying to follow the manual here: <a href="http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API" rel="nofollow">http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API</a></p> <p>Here is my script:</p> <pre><code>~$ DB="http://localhost:5984/employe...
1
1,804
How can I create hashable trait objects / trait objects with generic method parameters?
<p>I have some structs that implement both <code>Hash</code> and <code>MyTrait</code>. I'm using them as <code>&amp;MyTrait</code> trait objects.</p> <p>Now I want <code>&amp;MyTrait</code> to also implement <code>Hash</code>. I've tried a few things:</p> <ul> <li><p>Naively, <code>trait MyTrait: Hash {}</code>:</p> ...
1
1,252
OPTIMIZE FOR UNKNOWN when doing a UNION
<p>So I have a few really slow queries in SP's I need to speed up, I have been using OPTIMIZE FOR UNKNOWN and seeing some dramatic increases in performance. I still have one query that really is slow and I want to apply this but it contains a UNION of 2 SQL Queries, so my question is do I apply the OPTIMIZE FOR UNKNOW...
1
2,623
Serial Comm Connection on Linux
<p>I have a <a href="http://www.trossenrobotics.com/p/REDBEE-Wireless-rfid-reader.aspx" rel="nofollow" title="RedBee RFID Reader">RedBee RFID Reader</a>. Its user documentation is only for windows, and I am on ArchLinux. The only time I have ever done serial communication over a USB port was for an <a href="http://ardu...
1
1,920
unexpected 's' in response of restful service
<p>i am trying to learn restful services and as part of that i am designing a sample request and response page...see i am getting everything right except the following resource called:</p> <pre><code>&lt;i&gt; package com.tutorialspoint; import java.io.BufferedReader; import java.io.IOException; import java.io.Inpu...
1
1,870
Reading custom config sections returns "Invalid Key Value"
<p>I'm having difficulties reading an app.config using the ConfigurationManager. I have a custom section, which uses a ConfigurationElementCollection.</p> <p>My (cut-down) XML:</p> <pre><code>&lt;configuration&gt; &lt;configSections&gt; &lt;sectionGroup name ="CustomerMatching"&gt; &lt;sectio...
1
1,502
Querying association tables in Sequelize
<p>I have two tables (<code>users</code> and <code>games</code>) joined by an association table (<code>game_players</code>), creating a many-to-many relationship:</p> <pre><code>models.Game.belongsToMany(models.User, { through: models.GamePlayer, as: 'players' }); models.User.belongsToMany(models.Game, { through: mode...
1
1,737
c++ error identifier not found for function?
<p>this is my first steps in C++ , and I'm trying to run a function I need to use </p> <p>but I get this error :</p> <blockquote> <p>Severity Code Description Project File Line Suppression State Error C3861 'findAndRotateBlankNumbers': identifier not found ConsoleApplication2 c:\users\source\repos\c...
1
2,339
How to access data sent in ajax call in views.py python django
<p>Below is the code I am using in my html to send an array of userids(numbers). On click of the checkboxes I am sending the array (checkIds):-</p> <pre><code>var checkIds = [] $(document).on("click","#group_save",function(){ $("#candidate-data tr").each(function(index,rowhtml){ ...
1
1,044
Erlang dependencies issue while installing RabbitMq on Ubuntu
<p>I am trying to install rabbitmq on my ubuntu version 16.04.5 machine.</p> <p>I followed multiple ways to install but getting some dependencies issues every time.</p> <p>I followed</p> <p><a href="https://tecadmin.net/install-erlang-on-ubuntu/" rel="nofollow noreferrer">https://tecadmin.net/install-erlang-on-ubunt...
1
1,925
IE 10 Missing border segments while printing table elements
<p>So I've been dealing with an issue with printing table elements in IE 10 only, where portions of the border will be missing/cutoff. The weird part is that looks to be only the first row of the tbody, and only the first and last cells of that row are affected.</p> <p>Here some of the things I have found so far:</p> ...
1
1,123
Multiple signup, registration forms using django-allauth
<p>The application I am working on needs a separate login for 2 different type of users. We need "clients" and "business" owners to be able to register.</p> <p>For the "business" owner all that I need to do is set the boolean <code>user.is_business</code> to <code>True</code></p> <p>I have used <code>ACCOUNT_SIGNUP_F...
1
1,080
How can I mock an autowired service to symfony controller in phpunit functional tests?
<h1>Non-problematic context</h1> <p>Let's say in Symfony 3.3 we have a default controller that paints "Hello, world!":</p> <pre><code>class DefaultController extends Controller { public function indexAction() : Response { return new Response( 'Hello, world!' ); } } </code></pre> <p>If I want to t...
1
1,290
ImportError: No module named typing
<p>I'm trying to create a <a href="https://gist.github.com/simonw/4835a22c79a8d3c29dd155c716b19e16" rel="nofollow noreferrer">python2 virtualenv</a>, so I try <code>pip install virtualenv</code> and get</p> <pre><code>Traceback (most recent call last): File &quot;/usr/local/bin/pip&quot;, line 11, in &lt;module&gt; ...
1
1,083
Read MS Excel file using PHPExcel and transform data to build some senteces
<p>I need some help here since I don't get the idea. I'm reading a XLS file using PHPExcel as follow:</p> <pre><code>include 'Classes/PHPExcel/IOFactory.php'; $inputFileName = 'precios.xls'; // Read your Excel workbook try { $inputFileType = PHPExcel_IOFactory::identify($inputFileName); $objReader = PHPExce...
1
1,678
Pandas: Create a tuple column from multiple columns
<p>I have the following data frame <code>my_df</code>:</p> <pre><code>Person event time --------------------------------- John A 2017-10-11 John B 2017-10-12 John C 2017-10-14 John D 2017-10-15 Ann X 2017-09-01 Ann ...
1
1,336
Android Geofence cannot call IntentService and cannot work inside BroadcastReceiver
<p>I have problem when I'm trying to use geofence with my app. I have succeed to register geofence but I have never get the notification.</p> <p>First I follow the example that provide in <a href="http://developer.android.com/training/location/geofencing.html" rel="nofollow noreferrer">http://developer.android.com/tra...
1
3,037
highlighting exact phrases with solr
<p>I am using solrj as client for indexing documents on the solr server I am new to solr, And I am having problem with the highlighting in solr. Highlighting exact phrases with solr does not work.</p> <p>For example if the keyword is: "dulce hogar" it returns:</p> <pre><code>&lt;i&gt; dulce &lt;/i&gt; &lt;i&gt; hoga...
1
1,792
How to get jqGrid to dismiss add dialog after submit
<p>I have a jqGrid that uses inline editing for editing a single row and uses the icons on the <code>navGrid</code> to handle Add and Delete. It is working just fine, except that after clicking on the Submit button from the Add Dialog, the row is added, but the dialog does not close. I have placed the <code>closeAfte...
1
1,262
Violation of PRIMARY KEY constraint Cannot insert duplicate key in object
<p>I have a problem I am using lazy loading and <code>virtual</code>, but when using this it generates the following error</p> <blockquote> <p>Violation of PRIMARY KEY constraint Cannot insert duplicate key in object</p> </blockquote> <p>How can I solve it?</p> <p>These are my classes:</p> <pre><code>public class Produ...
1
1,248
Why isn't startDownloadingUbiquitousItemAtURL:fileURL: starting a download of the item?
<p>I'm using an <code>NSMetadataQuery</code> to check for files in iCloud. Inside the <code>NSMetadataQueryDidFinishGatheringNotification</code> handler, if the item isn't downloaded or downloading I start downloading it using <code>startDownloadingUbiquitousItemAtURL:fileURL:</code> - but recently, after using the ap...
1
1,710
Custom JRE with JavaFX 11
<p>I'm Using JDK11 and JavaFX11.</p> <p>I created a custom JRE for my sample FX module program using Jlink, but when I try to run with the custom JRE, it renders errors as below:</p> <p>This is how I created my custom JRE (no errors):</p> <pre><code>jlink --module-path ..\jmods;%PATH_TO_FX% --add-modules java.base,java...
1
2,437
Getting final urls of shortened urls (like bit.ly) using php
<p><em>[Updated At Bottom]</em><br /> Hi everyone. </p> <p><strong>Start With Short URLs:</strong><br /> Imagine that you've got a collection of 5 short urls (like <a href="http://bit.ly" rel="nofollow">http://bit.ly</a>) in a php array, like this:</p> <pre><code>$shortUrlArray = array("http://bit.ly/123", "http://bi...
1
1,681
Prevent form from submitting when certain fields are empty
<p>I would appreciate your help on this one. I tried to use code from other questions, but unfortunately it doesn't work.</p> <p>I am trying to prevent a form from submitting and show an alert ("Select dates so continue")if two specific fields are empty. In this case "<strong>checkin</strong>" &amp; "<strong>checkout<...
1
1,574
How to delete the Cognito user in Node.js?
<p>How to delete user account from * cognito * in nodejs.</p> <p>I'm trying to delete the user from <em>cognito</em> it is not working for me.</p> <p><strong>AWS config</strong></p> <p><code>const AWS = require('aws-sdk'); const cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider(); </code></p> ...
1
1,197
can't find referenced method 'android.app.RemoteInput[] getRemoteInputs()' in class android.app.Notification$Action
<p>I am kind of stuck from past 1 week from this issue. I am trying to export my android app for final release but it gives following errror while exporting.</p> <pre><code>Proguard returned with error code 1. See console [2014-08-26 19:55:11 - ] Note: there were 1281 duplicate class definitions. [2014-08-26 19:55:11 ...
1
1,504
how come event.target.value is only capturing the first letter in string input
<p>Once I started passing props from parent to child to child I have been getting this problem where the <code>getQuestion</code> function only gets me the first letter typed, In addition in the input field nothing shows up. </p> <p>Before when my code was just Parent to child it worked.</p> <p>I want to know what ex...
1
4,818
Npm run watch doesn't work with laravel : sh: cross-env: command not found
<p>I want to execute "npm run watch" in my laravel project but it doesn't work. There is the error message</p> <blockquote> <p>@ watch /Applications/MAMP/htdocs/test-tech/laravel5 npm run development -- --watch</p> <p>@ development /Applications/MAMP/htdocs/test-tech/laravel5 cross-env NODE_ENV=development ...
1
1,450
How do I create a dynamic table with rows and columns using the windows 7 platform
<p>I am making a app for roller derby that will get information such as bouts , team names and stats. The information is stored in the JSON format. When I eventually get and parse the data i want to arrange in in a format similar to this: Team1 Team2 Venue Date Result. The amount of rows should be the length of each...
1
2,086
Problem to display a pdf from my JSF Portlet of Liferay
<p>I use liferay 5.2 with jsf-portlet.</p> <p>From the page I want to press a button to generate one PDF. In managedbean i build pdf and I want to show it in response.</p> <p>In a <code>ByteArrayOutputStream</code> named <code>outputStream</code> i have my pdf built with JasperReport.</p> <p>I write:</p> <pre><code...
1
2,415
XSLT Count total number of rows in a Table
<p>I'm working with XML that contains HTML Table with rowspan. I need to get the total amount of cols and rows of this table, I need to work this with xslt to do a transformation. I'm trying to do something like this :</p> <pre><code>&lt;xsl:value of select="count(./tr) - count(./tr/td/@rowspan &gt; 1 and ./tr/td =1)...
1
1,081
Elastic Search “master_not_discovered_exception” centos
<p>After deleting /var/lib/elasticseach: <a href="https://stackoverflow.com/questions/64723654/elasticsearch-service-fail-after-deleting-var-lib-elasticsearch/64725081#64725081">Corrected here</a></p> <p>I had to delete it because I had some error when trying to search from an index and some stackoverflow answer stated...
1
1,899
ASP.NET Core 2.1 Identity: Role-based authorization -> Access Denied
<p>I'm using ASP.NET Core 2.1 with the new Identity framwork from .NET. The regular <code>Authorization</code> attribute works as long as no role specific role is requested.</p> <p>Do I need some extending / customized policies to use roles? Below is a minimized sample of my code: </p> <p>Startup.cs</p> <pre><code>...
1
1,209
HibernateException: save is not valid without active transaction
<p>So I thoroughly went through <a href="https://stackoverflow.com/questions/11311075/get-is-not-valid-without-active-transaction">Get is not valid without active transaction</a> and know I don't have the problem of not autowiring the SessionFactory and have followed best practices but still am encountering this excep...
1
4,084
Click event not working inside frame layout
<pre><code>public class GameView extends AppCompatActivity { @InjectView(R.id.back_btn_game_view) Button backBtnGameView; public static Context context; public static TextView matchNameView; public static String currentState = ""; private AssetsPropertyReader assetsPropertyReader; private ...
1
3,490
Webpack / babel-loader producing many errors in new project
<p>I have a .jsx file that produces no errors during the webpack build process in one project. When I drop it in another project, with a different webpack config, it now produces a ton of errors, most of which seem like nit-picky syntax errors that should no way affect whether the file is able to run correctly.</p> <p...
1
10,321
Sharepoint Client Object Model The property or field has not been initialized
<p>I have a C# program that manages Sharepoint lists using the Sharepoint Client Object Model. Occasionally we will have server issues which will prevent the program from accessing the sharepoint server. I am using a helper class to run the ExecuteQuery method and have exception handling to continue to execute until t...
1
1,269
split routes into separate package in Golang and MongoDB
<p>I'm new to Golang, i have been created an api in Golang and MongoDB. After a hard struggle successfully separate the controller and model packages ,Now i want to define routes in a separate package of routers and access them in main package same like controllers and models.I'm using gorilla/mux package for routing.A...
1
2,136
How does Excel's FREQUENCY function work?
<p>With the following function:</p> <pre><code>=FREQUENCY(C2:C724,D2:D37) </code></pre> <p>The second parameter is the <code>BIN</code></p> <p>What I don't understand is why Excel would increment the <code>BIN</code> for the rest of your values. The BIN does not change! It stays the same bin. Yet when I paste the fo...
1
3,981
Moving Inline CSS to External Style Sheet
<p>I'm doing modifications to a tumblr layout that has inline css code in it. What I plan on doing with the tumblr is creating a time-sensitive css switch using a little javascript code that will switch the themes between day and night. This requires me to have an external stylesheet so that the script can switch betwe...
1
9,870
Android Auto Backup: Transport rejected package
<p>I am trying to test <a href="https://developer.android.com/guide/topics/data/autobackup.html" rel="noreferrer">Android auto backup</a>. I am on a 7.1 device and the app manifest contains: <code>android:fullBackupOnly="true"</code>. When I issue a <code>adb shell bmgr backupnow &lt;package&gt;</code> command (for SO ...
1
1,522
Cant insert rows into UITableView - Swift 3
<p>I have the following code which causes the app to crash with the error:</p> <pre><code>*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert row 0 into section 0, but there are only 0 rows in section 0 after the update' </code></pre> <p>I have tried multiple s...
1
1,625
Elasticsearch 6.0.1 NoSuchFieldError: LUCENE_6_0_0
<p>I am using elasticsearch 6.0.1 and on BulkRequest request = new BulkRequest(); I am getting the below error. I have checked online, mostly people said that this happens if I have different versions of lucene jars in the classpath.</p> <pre><code>java.lang.NoSuchFieldError: LUCENE_6_0_0 at org.elasticsearch.Version...
1
2,964
Angular ui modal with controller in separate js file
<p>I am trying to make a modal which can be instantiated from multiple places in the app. from the example given here: <a href="http://angular-ui.github.io/bootstrap/#/modal" rel="noreferrer">Angular directives for Bootstrap</a> the modal controller is in the same file as the controller who instantiates the modal. I wa...
1
1,094
How can I install fastapi properly?
<p>I want to install fastapi using pip in VsCode using</p> <pre class="lang-none prettyprint-override"><code>pip install fastapi[all] </code></pre> <p>but I am getting this huge error. What am I doing wrong?</p> <pre class="lang-none prettyprint-override"><code>ERROR: Command errored out with exit status 1: comman...
1
1,706
TypeError: include.model.getTableName is not a function
<p>He thought there was a problem in the relationships between the tables. Each user can have at most one internship application. However, when I want to access users from these applications, I encounter the <code>TypeError: include.model.getTableName is not a function </code> problem, I still haven't solved it. I ha...
1
1,172
How to align components side by side in tailwind
<p>Hello I need to create an interface with tailwind css and vue. I have a filter container and a search bar which should be in different files but should show side by side. I have written the code below and at app.vue I have added a div only for search bar and filter container but still they don't show side by side. F...
1
1,513
IndexError: bytearray index out of range? Python
<p>I tried to send commands through Pymavlink #233</p> <p>But as I input the data. The data is in binary.</p> <p>It comes with this error. Does anyone know what the following error means?</p> <pre><code>return MAVLink_message.pack(self, mav, 35, struct.pack(’&lt;BB180B’, self.flags, self.len, self.data[0], self.data[1]...
1
1,473
Google Maps Javascript API V3 getting 404 not found on mobile/native App
<p>I can get Google Maps to show up in a browser with no problem. When I package my application up with phonegap build it does not work. In my remote debugging session it says that </p> <pre><code>https://maps.googleapis.com/maps/api/js?key=My_Key_Goes_Here Failed to load resource: the server responded with a status ...
1
1,251
How do I generate the correct TOTP with Node with correct Headers and SHA512 hashed Token?
<p>A recent school project I was assigned has a coding challenge we have to complete. The challenge has multiple parts, and the final part is uploading to a private GitHub repo and submitting a completion request by making a POST request under certain conditions.</p> <p>I have successfully completed the other parts of...
1
1,686
onNotificationOpened and getInitialNotification not getting triggered react-native-firebase
<p>I have used <strong>react-native-firebase</strong> in my react native project[android platform] to show the app notification. With this library i am able to show the notification when the app is in the foreground/background/closed state.</p> <p>According to the react native firebase documentation the <strong>onNoti...
1
2,464
Not able to open sonar server on the web browser
<p>I am using open suse 12.2.I downloaded sonar 3.4 and configured it.From terminal,I started the sonar server.But when I try to open it from the browser,I am getting an error 503.Following is the contents of my log.</p> <pre><code>STATUS | wrapper | 2013/01/03 16:55:52 | TERM trapped. Shutting down. INFO | jvm 1 ...
1
11,270
Read contents from xml file and store in an array
<p>I'm working with xml for the first time and I have some problems in storing the contents of the xml file in an array. I'm using libxml2 for parsing the xml file and I'm able to get the data and able to print it. The code is given below:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;string.h&gt; #include &lt...
1
1,228
Android: Send Multiple sms on one click
<p>I am developing a sms sending application. the code is running fine. I am able to send sms from my application For that i am using following code as :</p> <pre><code>private void sendSMS(String phoneNumber, String message, final int k){ String SENT = "SMS_SENT"; String DELIVERED = "SMS_DELIVERED"; I...
1
1,305
Prevent sequelize to insert timestamp
<p>There are many similar questions, but I already tried most of suggested solutions without luck.</p> <p>I already have database(mysql) so I skipped model definition and used sequelize-auto (programmatic). The first issue came with deprecated dependencies (sequelize-auto use sequelize v3). </p> <p>Model generated fr...
1
1,957
problem with `glob` function in perl
<p>I want to get a list of all the files whose name looks like : <code>$res_dir/$line/$fub_name*.istf</code></p> <p>meaning: in directory <code>$dir</code> in sub directory <code>$line</code> a file that starts with <code>$name</code> and ends with <code>.istf</code>.</p> <p>each sub directory contains only 1 such fi...
1
1,434
Spring Boot Application gets stuck on “Hikari-Pool-1 - Starting…”
<p>I'm trying to run Spring Boot application connected to PostgreSQL database, but it just gets stuck and nothing goes on. HikariPool-1 - Starting... appears in logs and then nothing happens. And I deploy my Postgres DB as a docker image but when I try to restart the database, it stucks also and can't restart. And th...
1
5,070
what scale to use for representing years only on x axis in d3 js
<p>I have been developing an area chart for year(x axis) vs Revenue (y axis) in D3 Js.The data is as:</p> <pre><code>localData=[ {"Revenue":"4.5","Year":"2011"}, {"Revenue":"5.5","Year":"2010"}, {"Revenue":"7.0","Year":"2012"}, {"Revenue":"6.5","Year":"2013"} ] </code></pre> <p>...
1
1,483
MVC 3 Authorize custom roles
<p>I am new MVC 3 user and I am trying to make admin through SQL database. First of all, I have Customer entity and admin can be defined through admin field which is boolean type in Customer entity. I want to make to access admin only in Product page, not normal customer. And I want to make [Authorize(Roles="admin")]...
1
1,387
How to add groupBy().count() to the source DataFrame?
<p>I have the following dataframe:</p> <pre><code>+---------------+--------------+--------------+-----+ | column0| column1| column2|label| +---------------+--------------+--------------+-----+ |05:49:56.604899|10.0.0.2.54880| 10.0.0.3.5001| 2| |05:49:56.604908| 10.0.0.3.5001|10.0.0.2.54880| 2|...
1
1,248
TitlePageIndicator: Title text not appearing or hidden on top of activity layout.(Viewpager,Xml)
<p><strong>ViewPagerFragment.java</strong></p> <pre><code>package nsixty.crew.app; import java.util.List; import java.util.Vector; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4...
1
4,110
Highlight.js custom language definition
<p>I'm trying to create language definition for <strong>highlight.js</strong>. But it doesn't work. I've got an example.</p> <p>In this example i'm trying to create custom <em>"aaa"</em> language, which is the same as JSON. <code>registerLanguage</code> function receives same function as a default JSON highlight funct...
1
1,298
How detect a mouse click in webview2 (c#/vb.net)
<p>I try to get the events click of html element. With a WebBrowser I used :</p> <pre><code>instance = Nothing instance = WebBrowser1.Document AddHandler instance.Click, AddressOf Document_Click </code></pre> <p>But with Webview2 I don't find the good practice. I must inject a javascript code ? ...
1
1,232
move div down below fixed header
<p>i have searched about and can't seem to find the answer I am looking for.</p> <p>I want to know how to move my div down below my fixed header. </p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>@import url(http...
1
1,261
Can't send email via SMTP because "550 - Relay Not permitted"
<p>I'm using CakePHP to send automated emails to clients. It's been working great, but it seems some recipients aren't receiving our emails. So I decided to use the SMTP option for sending emails, and route emails through our email provider at Media Temple. However, when trying to send email from a Media Temple account...
1
1,226
Behat/Mink/Selenium2 element is not visible
<p>I'm writing my tests with behat and I'm facing a problem when I try to call fillField on a input inside a bootstrap modal. When I send fillField in this input selenium throws an exception saying: </p> <pre><code>Element is not currently visible and so may not be interacted with </code></pre> <p>I've created a sele...
1
1,112
HackerRank Angular Basic Test Weather App
<p>I am taking the <a href="https://www.hackerrank.com/skills-verification/angular_basic" rel="nofollow noreferrer">HackerRank Angular Basic Skills Test</a> and trying to make a <a href="https://hrcdn.net/s3_pub/istreet-assets/aiYyB8bIMufQ00lpPduPbQ/weather-component.gif" rel="nofollow noreferrer">weather app</a></p> <...
1
2,418
Spring Jpa Data Repository save (update) with LinkedEntity for ManyToMany relationship
<p>There are 2 entities (lets say Rule and Label) with many-to-many relationship using linked entity <a href="http://docs.jboss.org/hibernate/orm/5.3/userguide/html_single/Hibernate_User_Guide.html#associations-many-to-many-bidirectional-with-link-entity." rel="nofollow noreferrer">as per hibernate reference documentat...
1
1,375
Django 1.8.1 : A server error occurred. Please contact the administrator
<p>I was working with django-1.8.1 and everything was good but when I tried again to run my server with command bellow, I get some errors :</p> <p>command : <code>python manage.py runserver</code></p> <p>errors appeared in command-line :</p> <pre><code>&gt; Traceback (most recent call last): File "C:\Python34\lib\...
1
2,258
how do I avoid this unwanted behaviour with Delphi's TSplitter and panels?
<p>Included is a small project demonstrating my problem. I have a <code>TPageControl</code> aligned to the main form. On each of two tabsheets I have panels client aligned. On each of those panels I have 2 subpanels and a splitter. The LH panel and splitter is aligned left, the RH panel client-aligned.</p> <p>Basi...
1
1,948
Facebook Graph API: Find graph object from post URL
<p>Given the URL of a public Facebook post, how can one find the post object in the FB Graph API? (secondarily, why are so many user feeds empty or nearly empty when accessed through the API?)</p> <p>We would like to be able to <a href="https://developers.facebook.com/docs/graph-api/reference/v2.2/object/comments">com...
1
2,336
Date Picker not working on bootstrap 4 webpage
<p>Datepicker and timepicker are not working along with jquery-3.2.1.slim.min.js popper.min.js and while removing it modal and bootstrap carousel are not working How to resolve this issue?</p> <p>Header files</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div cla...
1
1,028
Downloading email attachments in java
<p>The following code should download any attachments from mail if there are any . Gmali , pop3 , javax.mail ... Any ides how to do this , maybe for specific sender of a mail , or check that mail if there is a specifick word in the title or something like that ? </p> <pre><code>package emailattachmentsdownloader; impo...
1
2,992
Implement onClick Listener in Custom BaseAdapter
<p>I have a list view of ticket items with multiple columns. I'm trying to figure out how to implement an onclick listener with what I've written.</p> <p>Fragment_OpenTickets.java:</p> <pre><code>public class Fragment_OpenTickets extends Fragment { ArrayList&lt;HashMap&lt;String, String&gt;&gt; ticketList = new Arr...
1
1,399
Differentiating an AVRO union type
<p>I'm consuming Avro serialized messages from Kafka using the "automatic" deserializer like:</p> <pre><code>props.put( ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, "io.confluent.kafka.serializers.KafkaAvroDeserializer" ); props.put("schema.registry.url", "https://example.com"); </code></pre> <p>This works...
1
1,165
Storybook Knobs not updating
<p>I have setup storybook for my react project, and i have 2 stories. One that is a simple button and a larger component. I use knobs for both, it works fine of the simple button but it dose not update the larger component (The withInfo addon actaully shows the correct updated information from knobs, but the component ...
1
3,857
How to hide Drawer item in react-navigation 5x?
<p>I'm trying to create a Drawer navigation in my app using react-navigation, but I'm having difficult to hide one item. What I want: create some screens (to navigate inside app), but NOT display those screens in Drawer. I'm using this doc: (<a href="https://reactnavigation.org/docs/nesting-navigators/#navigator-specif...
1
1,299
Eloquent groupBy make "SQLSTATE[42000]" with valid SQL query in Laravel 5.3
<p>I have a strange problem with Eloquent which I'm trying to do the following:</p> <pre><code>$this-&gt;node = \DB::table('permission') -&gt;select('permission.id', 'object.name as object_name', 'permission.created_at', 'object...
1
1,478
import SVG as React Components with webpack 5
<p>I want to use SVG as a React Component in my app. I'm using: react 17.0.2, Webpack 5.57.1, @svgr/webpack 6.2.1.</p> <p>I followed the steps on adding svgr in webpack.config file as in svgr documents <a href="https://react-svgr.com/docs/webpack/" rel="nofollow noreferrer">svgr-doc</a> but there is an Error in the con...
1
3,111
WebDriverError: invalid session id
<p>I am trying to containerize the automation tests to run in docker environment. When the build runs on the automation code, it creates an docker image and updates in DTR. I have a separate jenkins pipeline which runs the automation commands in the docker image and uploads the results in the workspace. All of this set...
1
1,038
Save image view as a jpeg image in sdcard
<pre><code>public class MapDemoActivity extends Activity { Button capture; ImageView image; int cameracode=100; Bitmap bm; Boolean result; FileOutputStream fos; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super....
1
1,049
a4j:commandButton is not working. No action is taking place on click
<p>I am learning RichFaces. Added a4j:commandButton to .xhtml. Below is my .xhtml code,</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets...
1
2,297
How to stop HAProxy from stripping auth header
<p>So I'm having an issue with HAProxy stripping the authorization header from from my call when redirecting to a separate URL. Specifically, I want to hit an AWS lambda, based on the URL path. </p> <p>subdomain.domain/mo/api should be routed to the lambda, and it is based on this configuration, but I receive this res...
1
1,738
jooq-codegen-maven plugin and JDK9 compilation error
<p>I just upgraded my project form JDK8 to JDK9. I use JOOQ library version 3.9.5. I now see this error when I compile.</p> <pre><code>[ERROR] Failed to execute goal org.jooq:jooq-codegen-maven:3.9.5:generate (default) on project myproject-db-model: Execution default of goal org.jooq:jooq-codegen-maven:3.9.5:generate ...
1
12,537
OpenJPA:This configuration disallows runtime optimization,but the listed types were not enhanced at build time or at class load time with a javaagent
<p>So, after a lot of searching (in vain) I've decided to post this. So, I'm developing this web application using Open JPA (2.2.0). Executing the application throws the following error:</p> <p>Console printout :</p> <pre><code>&lt;openjpa-2.3.0-r422266:1540826 nonfatal user error&gt; org.apache.openjpa.persistence.A...
1
1,634
VB Script To Loop Excel Data by Row
<p>I am working on a VB script that grabs data from Excel and inputs it into a screen within an IBM 3270 mainframe. With the code below, I am able to open the excel workbook and copy the data by cell and then input the value from the cell chosen into the 3270 screen using subEnterData and subMovecursor procedures that...
1
1,647