title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Raspberry Pi 3 B+ BLE Scanning Fails After Upgrade (Using Stretch) | <p>BLE scanning using a known working Python example fails on a brand new Raspberry Pi 3 B+ (metal can CPU) after doing an apt-get update/upgrade. To recreate, using NOOBS 2.8.2, set up the Pi and do apt-get update and upgrade, accepting all the suggested changes. Then use <a href="https://github.com/switchdoclabs/iBea... | 1 | 3,877 |
SSL error when connecting to remote SQL server using Java (netbeans) | <p>i asked this question before but got no answers, i think mainly because it was a mess, i'll state the facts and put some quotes from the code under</p>
<ul>
<li>im using VMWare, and have one Windows Server 2003 with SQL Server 2005 on it, with a SQL Login, and it has a DNS Service running</li>
<li>i also have a win... | 1 | 1,485 |
How to format numbers into indian currency (in datatable) using javascript/jquery | <p>i have a data table which is rendring on the basis of json data i am secussfully rendring the datatable but the problem is i have to format amount into indian currency like for 27227004 i want it to be 2,72,22,004</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
... | 1 | 3,239 |
onItemClick setting text to the AutoCompleteTextView | <p>I have added a onTextChangedListener to my autocomplete textview and populate it using an async task</p>
<pre><code>mAutoComplete.addTextChangedListener(new TextWatcher() {
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
}
public void onTextChanged(CharSequen... | 1 | 1,356 |
CakePHP login method read session if exists for redirect | <p>I have disabled <code>autoRedirect</code> so I can do some extra jazz in the login method of my users controller and use a Session to send them back to where they came from.</p>
<pre><code>class UsersController extends AppController
{
var $name = 'Users';
var $components = array('Session');
function b... | 1 | 1,189 |
Octave fminsearch: Problems with minimization and options | <p>I am trying to use Octave's fminsearch function, which I have used in MATLAB before. The function seems not sufficiently documented (for me at least), and I have no idea how to set to options such that it would actually minimize.</p>
<p>I tried fitting a very simple exponential function using the code at the end of... | 1 | 1,112 |
Problem loading custom JPanel in Netbeans. Can't use Design view | <p>So I have been creating an application using Netbeans. For a while everything was fine then one minute I could Design my view, then the next I couldn't. The error says</p>
<blockquote>
<p>Error in loading component:
[JFrame]->jSplitPanel1->scatterPlotView1
Cannot create instance of
homework3.ScatterPlotVi... | 1 | 1,738 |
How to correctly load Flask app module in uWSGI? | <p>[EDIT]</p>
<p>I managed to load the flask app module by starting uwsgi from within the project folder. I now have a problem with nginx not having permission to the socket file though (scroll down to the end of the question). If anybody can help with that..?</p>
<p>[/EDIT]</p>
<p>Following <a href="http://vladikk.... | 1 | 1,225 |
JSON to Java Objects, best practice for modeling the json stream | <p>I have a JSON stream being generated by a server side C++ program that is currently in development. I've been given a sample of the resulting JSON and I am concerned that I will have to parse the json by hand, that I won't be able to use normal class mapping provided by tools such as GSON or Jackson.</p>
<p>Please ... | 1 | 1,564 |
MEF Composition Error, Export doesn't work as it should | <p>this is my form which should display the result from my imported class: </p>
<pre><code>public partial class Form1 : Form
{
[Import(typeof(ITests))]
public ITests Template;
public string texter;
public Form1()
{
InitializeComponent();
texter = Environment.GetFolderPath(Environm... | 1 | 1,323 |
Segmentation fault -- How! | <pre><code>int Sequence::scoreDegeneracy()
{
cout << "Score Degeneracy" << name << seqLen << endl;
int f = 0;
if (degenComputed == false)
{
char _2foldTest = '*';
char _4foldTest = '*';
int aaseqLen = seqLen/3;
int i = 0;
for (i; i < aa... | 1 | 9,651 |
Error reading file: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory) | <p>I need to pick a image from my gallery and put on my baasbox server.
To do this,I need a InputStream of my image.</p>
<p>BaasBox Docs report this:</p>
<pre><code> InputStream data = ...; // input stream to upload
BaasFile file = new BaasFile();
file.upload(data, new BaasHandler<BaasFile>() {
@O... | 1 | 1,699 |
Setting request Header in server before Authentication Happens in Keycloak | <p>I'm using keycloak header based authentication to secure a REST API.
There I want set a request header field (basically keycloak Autharization Header) before authication happes.</p>
<p>Another appocach for this is exlained here : <a href="https://stackoverflow.com/questions/51387730/how-to-get-javax-servlet-filter-... | 1 | 1,718 |
python yaml error on odoo11 stock module installation. yaml.constructor.ConstructorError: could not determine a constructor for the tag '!python' | <p>I have setup a <code>odoo11</code> database and trying to install stock module but it will generate python yaml error. </p>
<p>Error logs: </p>
<pre><code>2019-04-09 12:21:06,147 15820 INFO sicpa_db odoo.modules.loading: loading stock/views/stock_template.xml
2019-04-09 12:21:06,391 15820 INFO sicpa_db odoo.module... | 1 | 1,276 |
Why does ring's resource-response respond with application/octet-stream content type? | <p>I am trying to figure out why Ring's <code>resource-response</code> is choosing to respond with an <code>application/octet-stream</code> content type. I recently updated some sample code, that I've been learning from, so that it uses the newer <code>ring-defaults</code>. Prior to using <code>ring-defaults</code>, th... | 1 | 1,197 |
How to use ImageLoader class in SimpleAdapter to show ImageView from ImageUrl? | <p>I have the following class to parse JSON and display name and other details too which i dont mention here in listview.<br>
<strong>ShowViewActivity.java</strong></p>
<pre><code>public class ShowViewActivity extends ListActivity {
private static String url = "http://example.com/myfile.php";
private static final Str... | 1 | 3,994 |
Save data from NodeMCU to PHP MySQL | <p>I am currently working for my final project, but I have a problem. I want to send my sensor data to MySQL database using XAMPP and phpMyAdmin. I have been using NodeMCU for the WiFi connection. But I am unable to send the value.</p>
<p>Here is the full code of my work.</p>
<pre><code>#include <ESP8266HTTPClient... | 1 | 1,094 |
How do I automatically upload the image I took to a cloud storage like Google Drive or Dropbox | <p>I'm a total newbie in Android programming and I was wondering if it's possible for me to automatically upload the image that I took using the camera app that i develop to a cloud storage like the Google Drive or Dropbox. I am able to get the image saved to an internal SD Card currently. Here's what I have so far:<... | 1 | 2,001 |
Discord.js reminder command that works after bot reset | <p>I have a reminder command on my bot, but I'd like for it to store reminders in case my bot resets. I don't know how I'd go about doing this. Can anyone help me?</p>
<p>This is my command:</p>
<pre class="lang-js prettyprint-override"><code> const ms = require('ms');
module.exports = {
name: "... | 1 | 1,239 |
Detect installed certificate in my android device | <p>I am installing a certificate in my application when application starts. I have gone through few of the links as below and successfully install the certificate.</p>
<ul>
<li><p><a href="http://nelenkov.blogspot.in/2011/12/ics-trust-store-implementation.html" rel="nofollow noreferrer">http://nelenkov.blogspot.in/201... | 1 | 1,249 |
Convert string to long in java | <p>I am working with a spring boot project and I am trying to create a route in the controller that works with a dynamic number of parameters. The route looks like this:</p>
<pre><code>@RequestMapping(value = "/addItem", method = RequestMethod.POST)
public String addItem(ModelMap model, @RequestParam Map&... | 1 | 2,283 |
Jinja 2 - Value from list | <p>When I'm posting <code>object['userinfo']</code> to Jinja2 HTML, it renders this info.</p>
<pre><code>[{
'enemies':[
],
'url':'URL',
'friends':[
{
'area':2,
'same_interest':6
}
]
}]
</code></pre>
<p>So if I'm getting <code>object['userinfo'][0]</... | 1 | 1,243 |
Sencha Touch 2 list is invisible in container | <p>I'm trying to write simple view with list on container but i have some problems.
First of all, the List is not visible when I'm trying to do it like this:</p>
<pre><code> Ext.define('App.view.News', {
extend: 'Ext.Container',
</code></pre>
<p>but when it's written like this:</p>
<pre><code>Ext.define('App.vi... | 1 | 1,325 |
Generate Android apk from Sencha Touch using Sencha Cmd5 , No error , No output | <p>I have tried to generate <strong>android apk from my sencha touch project</strong> using <strong>sencha cmd 4.0</strong> , </p>
<p>unfortunately I had faced the error <strong>stbuild exited with non zero error code:3</strong> , Since I did not get any meaning about this error code giving by stbuild in their sencha'... | 1 | 1,229 |
WPF ComboBox binding not working as expected | <p>I want my WPF ComboBox's ItemsSource property to be bound to MyListObject's MyList property. The problem is that when I update the MyList property in code, the WPF ComboBox is not reflecting the update. I am raising the PropertyChanged event after I perform the update, and I thought WPF was supposed to automatical... | 1 | 1,263 |
UI5 Mock Server with Local Data: "rootUri" Not Working | <p>I'm currently following the <a href="https://sapui5.hana.ondemand.com/#/topic/3da5f4be63264db99f2e5b04c5e853db" rel="nofollow noreferrer">UI5 tutorial</a> and am stuck on <a href="https://openui5.hana.ondemand.com/#/topic/bae9d90d2e9c4206889368f04edab508" rel="nofollow noreferrer">step 27</a>: Mock Server Configurat... | 1 | 3,680 |
How can I change Jacksons Configuration when using Spring Data REST? | <p>I'm trying to configure Jackson to show JSR 310 instants in ISO 8601 format.</p>
<pre><code>@Configuration
class Jackson {
@Bean
static ObjectMapper objectMapper() {
ObjectMapper objectMapper = new ObjectMapper().findAndRegisterModules();
objectMapper.disable( SerializationFeature.WRITE_DAT... | 1 | 2,960 |
How can I get a leaflet.js instance using only a DOM object? | <p>I'm right now building a custom Knockout.js binding to handle drawing of polygons. In this case the Knockout API only gives me a reference to a DOM object to access whatever it is I need to update. However, it looks like by design leaflet.js wants the user to store the map instance in their implementation. I don't h... | 1 | 1,089 |
Android NestedScrollView doesn't work in layout with viewpager | <p>This is my layout:
<a href="https://i.stack.imgur.com/ScVbR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ScVbR.png" alt="enter image description here"></a></p>
<p>I want to be able to scroll upper parth of the layout (with name, image, textviews for followers/following...) when I scroll recycl... | 1 | 6,646 |
Remove top padding on bootstrap navbar | <p>I am attempting to remove the padding on the top of the navbar image.</p>
<p>I have tried playing around with the padding numbers and cannot seem to get it.</p>
<p>I can get the padding to be removed but then the positioning of the rest of the elements is moved all around. </p>
<pre><code><style>
.navba... | 1 | 1,058 |
PHP - SOAP response to JSON | <p>I am trying to parse SOAP response to JSON. So far I have this code:</p>
<pre><code>$data = '<?xml version="1.0" encoding="utf-8"?>';
$data .= '<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soa... | 1 | 2,003 |
Null reference exception when generating a url with UrlHelper.Action method | <p>For some reason, when certain bots visit the site, generating a url with the <code>UrlHelper.Action</code> method raises a null exception from <code>System.Web.HttpServerVarsCollection.Get</code>. I've done some debugging and the call stack originiates with an attempt to get the 'HTTP_X_ORIGINAL_URL' from the <code>... | 1 | 1,997 |
log4j file not trace nothing in JBOSS 7.1.1 | <p>I create an spring application with log4j in JBoss 7.1.1.FINAL this is my configuration of log4j:</p>
<pre><code># Log4j level and names.
log4j.rootLogger=INFO, stdout, fileAppender
# Log4j relative path.
dir=${myWebapp-instance-root}
file=WEB-INF/logs/app.log
target=${dir}/${file}
# Used only for development.
log4... | 1 | 1,691 |
How do I install XML::Xerces? | <p>Please see Part 2 which list latest errors while installing module <a href="https://stackoverflow.com/questions/1589560/update2-errors-installing-xmlxercers-module-from-cpan">continued post</a>.</p>
<p>Normally when I try to install XML::Xerces CPAN module using standard cpan> install XML::Xercers than I get follow... | 1 | 2,116 |
why is my rating bar not changing on user touch? | <p>I have tried to add a rating bar to my activity</p>
<p>but I cannot add or remove stars on user's touch.</p>
<p>what should i add?</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android... | 1 | 1,068 |
Get user and validate JWT token in vert.x | <p>I have set up a keycloak server and I am developing an API which will be out on the internet. The API will receive calls by third parties (clients). These clients will first call the keycloak server with a clientId and a secret in order to get the token and then they will call my API with this token. </p>
<p>I need... | 1 | 1,573 |
CORS problem with XMLHttpRequest from localhost to REST service with FireFox | <p>Now when I am opening a development page on my localhost using IIS server and trying to make a <code>XMLHttpRequest</code> to a REST service on another server usin FireFox, I got this error: </p>
<blockquote>
<p>Cross-Origin Request Blocked: The Same Origin Policy disallows reading
the remote resource at
<a h... | 1 | 1,028 |
Parse SQL to extract column and table names using python | <p>I want to write a code that will extract table and column names from a query that does not have JOIN keyword. Instead, the cartesian join (,) is used as below:</p>
<pre><code>SELECT suppliers.supplier_name, subquery1.total_amt
FROM suppliers
,
(SELECT supplier_id, SUM(orders.amount) AS total_amt
FROM orders
GROUP B... | 1 | 1,598 |
Reading from Arduino serial port using RS232 connection and C code | <p>I have an Arduino Uno running the following code:</p>
<pre><code>byte data;
void setup(){
Serial.begin(9600);
}
void loop(){
data = 0xAA;
Serial.write(data);
delay(1000);
}
</code></pre>
<p>It's really simple, just writing the value of 0xAA to the Serial TX pin every second.</p>
<p>I've connected the ... | 1 | 1,106 |
how can i take the derivative of the softmax output in back-prop | <p>So I am new to ML and trying to make a simple "library" so I can learn more about neural networks.</p>
<p>My question:
According to my understanding I have to take the derivative of each layer according to their activation function so I can calculate their deltas and adjust their weights etc...</p>
<p>For ReLU, si... | 1 | 1,198 |
GCM android Error receiving broadcast Intent { act=DISPLAY.MESSAGE flg=0x10 (has extras) | <p>I have troubles when I start the app and register device in Gcm</p>
<p>Any idea how to fix it?</p>
<p>The rest is working fine, I receive the notification and correctly. </p>
<pre><code>private final BroadcastReceiver mHandleMessageReceiver = new BroadcastReceiver() {
@Override
public void onRece... | 1 | 1,098 |
OpenXml Sdk - Copy Sections of docx into another docx | <p>I am trying the following code. It takes a fileName (docx file with many sections) and I try to iterate through each section getting the section name. The problem is that I end up with unreadable docx files. It does not error, but I think I am doing something wrong with getting the elements in the section.</p>
<... | 1 | 1,863 |
Dynamodb local setup on M1 apple silicon mac | <p>I did a local setup of dynamodb using <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html" rel="noreferrer">https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html</a></p>
<p>I am able to start the instan... | 1 | 1,480 |
Can someone help me with hangman? | <p>I'm using python 2.7.1 to make a hangman game. I am trying to let the user choose whether to replay before the game finishes. I am trying to use a variable <code>keep_playing</code>, but it doesn't work.
Also, in <code>guesses=word_len * ['_']</code>, I want to have a space between the underscores because, if they s... | 1 | 1,881 |
Extjs 5.0 grid paging with static data | <p>Pagination is not working for my grid. Could somebody please let me know why. Am making use of static data which is got by reading the xml from controller. I want to display 10 records per page.</p>
<p>Model.js</p>
<pre><code>Ext.define('Mymodel.model.settingModel', {
extend: 'Ext.data.Model'
});
</code></... | 1 | 1,044 |
Primefaces roweditor in same column with other buttons | <p>I have datatable in which I use roweditor. Everything works fine but I need to add few more buttons in column in which I have pencil button for editing. That "other" button is always below pencil. I've tried <code><p:panelgrid columns="3"...</code> but when I did that row edithing wasn't possible. I suppose that... | 1 | 2,327 |
Angular binding object with array from component to view with ngModels | <p>I tried to bind my model on my view, but I have a problem when I submit my form : I don't have an array, but many property.</p>
<p>component :</p>
<pre><code>export class QuizFormAddQuestionComponent implements OnInit {
public question: Question;
constructor() {
this.question = new Question();
... | 1 | 3,383 |
Android simplexml.jar proguard problem | <p>I just try to parse a simple xml documention by simple-xml-2.6.jar.I put this jar into a folder named lib then add it in libraries .Then i attempt to skip this jar so code in the proguard.cfg just like below:</p>
<pre><code>-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontprev... | 1 | 1,584 |
Mac Rmagick won't install with Xcode 4.2 | <p>I just got a new macbook pro and trying to setup my dev environment.
I downloaded xcode 4.2 from the app store and installed it, after this i installed homebrew and RVM.
ImageMagick, readline, ruby 1.9.3-head all installed perfectly until i ran bundle update which tried to install rmagick.</p>
<p>After a long long ... | 1 | 1,276 |
Failed to execute maven-surefire-plugin but only with circleci | <p>I have quite weird problem with surefire plugin because even though I've added surefire plugin to my spring boot projectwhen I try to run this robust project which happen to be composed of parent module and two other with help of intellij. then tests are passed and everything seem to be ok but when I try to run this... | 1 | 5,284 |
Info Window of Google Map v3 with Bootstrap 3 and jQuery not working perfectly in Google Chrome | <p>I am trying to create a info window with some click events.</p>
<p>But it is not working perfectly.</p>
<p>What I have done in jQuery to do my code is-</p>
<pre><code>var infowindow = new google.maps.InfoWindow();
var contentString = '<div class="panel panel-default" lat="'+locations[i][1]+'" lon="'+locat... | 1 | 3,589 |
PySimpleGUI Freezes | <p>I wrote a code for a hack in a game cold Boxing Simulator 2 in python 3.8.1 with PySimpleGui 4.15.1, and if I try to Click the start/stop button, the gui Freezes but the script connected with the Start/Stop button still runs. But if i change the script connected to the Start/Stop button To something like Print('Chic... | 1 | 1,640 |
Render VNode to html string | <p>I'm developing a Vue server-side templating engine, and part of the package includes a head management system.</p>
<p>I'm developing a Server-Side Renderer for Vue and for the SSR's head management to work, it needs a way to render <code>VNode</code>s to text.</p>
<p><strong>My Question:</strong>
how can I render ... | 1 | 1,321 |
ReactJS: TypeError: theme.spacing is not a function | <p>I am building a 'ReactJS' application and came across the following error:</p>
<blockquote>
<pre><code>TypeError: theme.spacing is not a function
(anonymous function)
E:/Projects/PortfolioSite/React-Portfolio-Website/react-portfolio-website/src/components/Navbar.js:39
36 | avatar:{
37 | display: &quo... | 1 | 1,952 |
Arabic turn to strange Question marks | <p>After typing in Arabic in the form I press an insert button to insert the fields in the db. But characters turn to strange question marks like :<code>"?????"</code>. That doesn't happen with numbers or English characters.</p>
<p>How to type Arabic and still have it in the db as Arabic, not as <code>"?????"</code>?<... | 1 | 1,065 |
Flutter - FCM Remote/Silent Notification (app in background) | <p>I have a Flutter app that needs to receive FCM push messages (silent/background data message). I am not using Flutter's plugin for Firebase Cloud Messaging, as it does not support background mode currently. So I have integrated FCM IOS sdk into the project as per the Firebase documentation for IOS.</p>
<p>I can rece... | 1 | 1,757 |
Constructor Injection and when to use a Service Locator | <p>I'm struggling to understand parts of StructureMap's usage.
In particular, in the documentation a statement is made regarding a common anti-pattern, the use of StructureMap as a Service Locator only instead of constructor injection (code samples straight from Structuremap documentation):</p>
<pre><code> public Ship... | 1 | 1,152 |
Json dump for key, pair in Python | <p>I have below file which is the result of a json dump. </p>
<pre><code>"fdd6a102-359c-4527-8469-4ef01a9c0076": "[\n {\n \"resource_status\": \"CREATE_COMPLETE\", \n \"resource_name\": \"i4_instance_internal_port\", \n \"resource_type\": \"OS::Neutron::Port\", \n \"physical_resource_id\": \"5db1d412-9a43... | 1 | 1,563 |
how to insert new value into max heap and apply max_delete to heap | <p><em>Problem 1</em></p>
<pre><code> 98
/ \
/ \
67 89
/ \ / \
/ \ / \
38 42 54 89
/ \
/ \
17 25
</code></pre>
<p>i want to insert 97 ... | 1 | 1,169 |
Improving exception handling of Netmiko script to SSH into Cicso devices | <p>I'm trying to improve the exception handling of a netmiko script that successfully runs commands on Cisco devices listed in a text file and saves a list of the ones that expecience a connection timeout to a .txt file. When I SSH into Switch-A manually, I get the "connection closed" error. A manual attempt ... | 1 | 1,544 |
How does check_ajax_referer() really work? | <p><a href="http://www.prelovac.com/vladimir/improving-security-in-wordpress-plugins-using-nonces" rel="noreferrer">Smart Wordpress people say</a> that plugin developers should employ a nonce in each AJAX request that is sent from a page back to the wordpress blog (admin-ajax.php). </p>
<p>This is done by (1) generat... | 1 | 1,073 |
cordova.exec error Class not found | <p>I'm attempting to write a plugin for phonegap that will access native Java that I have written. The only problem is that when I call cordova.exec, the failure callback message is "Class not found". I'm assuming this means that it can't find the java file, but I don't know why. </p>
<p>Here is my code.
Javascript:... | 1 | 1,252 |
Condition Variable with a while loop in thread in C++ | <p>I'm trying to figure out how to use <code>std::condition_variable</code> in C++ implementing a "strange" producer and consumer program in which I had set a limit to the <code>count</code> variable.</p>
<p>The main thread ("producer") increments the count and must wait for this to return to zero to issue a new incre... | 1 | 1,372 |
how to add a pin marker on image view in android | <p>i am working on a project where i need to add pins on image view as shown in below image.
how could we do this.</p>
<p><img src="https://i.stack.imgur.com/Z5Ymr.png" alt="example image"></p>
<p>i successfully created a zoomable image view using</p>
<p><strong>TouchImageview.java</strong></p>
<pre><code> class To... | 1 | 4,205 |
My server was hacked a encoded code was injected. i was not able to know what was the purpose of this code ? Please anybody help me | <p>my php files were hacked and some one injected some encoded text in my files. Can any body help my to understand what this code is actually doing. i am not able to decode this.</p>
<p>here is that encoded code piece.</p>
<pre><code>/*versio:3.01*/$II11=110426;if (!function_exists('I11lIl1I')){$GLOBALS['II11'] = '!... | 1 | 2,889 |
"The node /hbase is not in ZooKeeper" when running commands in Hbase shell | <p>I'm trying to install HBase v1.1.2 (with Hadoop v2.7.2) in standalone mode, and am following the <a href="https://hbase.apache.org/book.html#quickstart" rel="nofollow noreferrer">Apache HBase docs</a> as closely as I can, however the configuration seems a bit tricky. Not sure if it's related to the fact that I ins... | 1 | 4,295 |
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path on Ubuntu 14.04 Jamod Serial | <p>I'm trying to establish connection with device connected in COM1 port using Jamod serial master code. The following is my code:</p>
<pre><code>SerialConnection connection = null;
public void connection() {
ModbusCoupler.getReference().setUnitID(1);
SerialParameters params = new SerialParameters();
param... | 1 | 5,435 |
ERROR: java.io.IOException: Table Namespace Manager not ready yet, try again later | <p>I'm using HDP2 platform. While working with HBase.I'm trying to create table in hbase. Below is command i'm using.</p>
<p>hbase(main):002:0> create 'test','cf1','cf2'</p>
<p>But It gives me below error</p>
<pre><code>ERROR: java.io.IOException: Table Namespace Manager not ready yet, try again later
at org... | 1 | 2,085 |
Lazy Loading/Initialization design pattern without any ORM | <p>I use Spring JDBC to load the data from a DB into the business model entity. My DAO interfaces are implemented by the classes that extend the JdbcDaoSupport class, which are responsible to creating the entity using the RowMapper classes.
Then I have a facade class, which holds all the DAO interfaces and acts as a ga... | 1 | 1,068 |
java.security.NoSuchAlgorithmException: RIPEMD160 MessageDigest not available | <p>We have a project where it initializes various algorithms while starting the an saml application. While starting, it throws the below error (please check the log) of not getting RIPEMD160,HMACRIPEMD160 and RIPEMD160withRSA. I tried to dig in for RIPEMD160 and found that the RIPEMD160 is mapped to the URL "<a href="h... | 1 | 9,231 |
Unfortunately, (app) has stopped - error message in AVD/Eclipse on a new/default application | <p>I recently installed the ADT/Eclipse bundle on Windows 7 (64 bit). Whenever I try to run an application on the emulator it just says "Unfortunately, app has stopped". I've searched this error and read through loads of fixes on this site and others, but all of them seemed to be having trouble with a particular bit of... | 1 | 1,337 |
How to pass values from Fragment to Activity | <p>I am new in Android Development. I am trying to pass values from fragment to activity, but after so many tries I am unable to get the answer...</p>
<p>This is my Fragment :</p>
<pre class="lang-java prettyprint-override"><code>public OtpGentation(int OTP)
{
this.OTP =OTP;
}
public OtpGentation(String number1, ... | 1 | 1,313 |
Prefill React Form with values | <p>I would like to create edit Form in react for Post, so my workflow is this fetch post, setState of the form, and show it... Im trying to make this in functional component since its easy for me to use graphql there</p>
<pre><code>import React, { useState } from 'react';
import gql from 'graphql-tag';
import { useQue... | 1 | 1,198 |
Java Selenium error "java.lang.IllegalArgumentException: Argument is of an illegal type: com.sun.proxy.$Proxy20" | <p>I have element in PageObjects class that I want to click by JavascriptExecuter in Functions class</p>
<p>PageObject class:</p>
<pre><code>package com.objects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
public class PageObject {
protected WebDriver driver;
publi... | 1 | 2,215 |
Writing a GSM modem driver? | <p>I've been working on an application which uses a GSM modem for one of two things; check its status using the built in HTTP stack by sending a GET request to the server, or sending data to the server (using UDP). I have tried several different methods to keep this as reliable as possible, and I'm finally ready to as... | 1 | 1,361 |
Hadoop distcp error | <p>I am trying to a Hadoop Distcp between two kerberos enabled hadoop clusters (version - Hadoop 2.0.0-cdh4.3.0)</p>
<p>When I use the command "hadoop distcp hdfs:cluster1:8020/user/test.txt hdfs://cluster2:8020/user" in the destination cluster, it works fine. But when I exec the command in the source cluster, I am ge... | 1 | 2,341 |
How to record bluetooth headset audio? | <p>I want to record audio from bluetooth headset. I search this and i find sources in this site about that. For example; <em><a href="https://stackoverflow.com/questions/4026002/how-to-record-sound-using-bluetooth-headset">How to record sound using bluetooth headset</a>
<a href="https://stackoverflow.com/questions/6616... | 1 | 2,341 |
Android generated LoginActivity error(Incorrect password) | <p>I am using the Android generated login activity and it keeps giving me incorrect password error even though my password is correct. I have checked my code several times but i can't find any errors. It just doesn't start my Home activity and reports the error. Can someone please check my code and correct me if i am d... | 1 | 2,848 |
angular 4 binding images cannot read property of undefined | <p>I have an Angular 4.0 component, and its relative HTML with an NgFor cicle who creates a card element for each "book object" retrieved from my api (developed with django rest framework).</p>
<p><strong>BROWSER.HTML</strong></p>
<pre><code><div *ngFor="let book of books" class="col s12 m2">
<div clas... | 1 | 1,827 |
Android Getting user location latitude and longitude using the GoogleApiClient | <p>I am working on getting the user's latitude and longitude using the GoogleApiClient and this is what I have done so far. I followed the Udacity tutorial on Google Maps to do this. I have done exactly as it showed on Udacity but my latitude and longitude are not displaying like it does for the instrutor.</p>
<p>Ther... | 1 | 1,779 |
undefined reference to main in code blocks | <p>A bit of the backstory: I first used Eclipse but it had trouble resolving namespace std so I switched to code::blocks and now I'm having this problem.</p>
<p>Everything went through debugging just fine except for one error: In function '_start': undefined reference to 'main' (.text+0x20). However, I have the main()... | 1 | 1,415 |
increase performances of CPU-intensive PHP scripts | <p>I have a PHP script which takes hours (maybe days) to execute. It is quite simple but very CPU-intensive, most of the execution time is spent into (I can tell after having profiled the script):</p>
<ol>
<li><p><code>$array = explode(',', $a[$i]);</code>
where <code>$a[$i]</code> is a very long string which represen... | 1 | 1,357 |
HOG Feature extraction | <p>I want to extract HOG features of Line images of Arabic Handwriting. The code is as follows. So , I want help regarding how to input the image and how to output the features . Can anyone please help me regarding this.</p>
<pre><code>import numpy as np
from scipy import sqrt, pi, arctan2, cos, sin
from scipy.ndimage... | 1 | 2,239 |
List view with simple cursor adapter items checked are un-checked during scroll | <p>I have problem that I couldn't find answer on SO - all problems solved on SO where about too much different issue and didn't work.
Problem is -<br>
<strong>1. Clicked rows in ListView (after click they are marked with blue coolor background, and checked box) loose their marks of beeing clicked (checked checkbox and ... | 1 | 7,648 |
How to source Terraform module hosted within Azure DevOps Repo via ssh | <p>Looking for the correct/working way to source a Terraform module that is hosted within a private Azure DevOps git repo via SSH (see <a href="https://www.terraform.io/docs/language/modules/sources.html#generic-git-repository" rel="nofollow noreferrer">TF Docs on Git repo sourcing via ssh</a>).</p>
<p>It's undesirable... | 1 | 2,016 |
android i got an exception for SQLiteDatabase | <p>Following is the exception </p>
<pre><code>08-28 01:38:41.164: E/StrictMode(1308): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
08-28 01:38:41.164: E/StrictMode(1308): java.lang.Throwable: Explicit termination method 'close' no... | 1 | 1,562 |
How do you close a window from another class in JavaFX? | <p>I have been having an issue trying to close a Login window from another Controller class. The Login window is opened in Main.java but the fxml file is controlled by LoginController.java. I have tried to extend the Main.java class to close the stage, but this isn't working. I have tried to make pass through methods a... | 1 | 1,463 |
uWSGI installation exception on Amazon Linux EC2 instance | <p>I'm a newbie trying to set a server for my first phone-App on Amazon EC2 with nginx, django, uWSGI and mySQL.</p>
<p>I'm following those tutorials (actually the second is based on the first one):</p>
<p><a href="http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html" rel="noreferrer">http://uw... | 1 | 1,467 |
Install Xdebug for PHP 5.6 on OSX with Homebrew | <p>The homebrew/php tap was <a href="https://github.com/Homebrew/homebrew-php/issues/4721" rel="noreferrer">recently deprecated</a>. This deprecation included versioned formulae for php installations (e.g., <code>php56</code>) as well as installation of individual extensions (e.g., <code>php56-xdebug</code>).</p>
<p>I... | 1 | 1,442 |
Jenkins Build Pipeline fileLoad in library files not working | <p>I'm using the <a href="https://github.com/jenkinsci/workflow-remote-loader-plugin" rel="nofollow">Workflow Remote Loader</a> plugin's <code>fileLoad</code> function to load dependencies for my build script. In my main file, I have the following:</p>
<p>build-app.groovy</p>
<pre><code>def java
def util
node {
... | 1 | 1,818 |
Send/Receive Email with Google OAuth 2 and ASP.Net MVC | <p>I have used the following in a class:</p>
<pre><code>public class AppFlowMetaData : FlowMetadata
{
private static readonly IAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer
{
ClientSecrets = new ClientSecrets
{
ClientId = "n... | 1 | 1,102 |
Apache CXF could not send message to third party webservice connection timeout but works from soapUI when Authorization header is added | <p>Apache CXF could not send message to third party webservice and throws away connection timeout, but it works from soapUI when Authorization header is added. </p>
<p>we have applied few solutions provided in other similar questions, but didn't work.
- Added Authorization element to the client with encrypted usernam... | 1 | 2,434 |
I need to print a QGraphicsScene to actual (inch/mm) scale | <p>I am trying to print the contents of a <code>QGraphicsScene</code>. The target printer could be anything - from the normal printers to custom size special printers. It must print things at actual size (inches, mm....).<br>
In the <code>QGraphicsScene</code> I am using the assumption of 72 ppi.</p>
<p>I assumed that... | 1 | 1,582 |
Is android bug in load "layout-ldltr" layout against "layout-ldrtl" after orientation changed? | <p>In my project I have to create both <code>layout-ldltr</code> and <code>layout-ldrtl</code> layouts for <code>Right-To-Left</code> and <code>Left-To-Right</code> languages.</p>
<p>I launch application for Right-To-Left language, and every thing is good.
But when orientation changed, android load <code>layout-ldltr<... | 1 | 1,060 |
asp.net core 2.0 bind model with decimal value | <p>I've been looking for a solution to this case for hours, and I did not find anything that worked out for me.</p>
<p>Here we use the comma for decimal separator, and when I send a value like "15,50", in my controller I get the value of the model as "1550", and it only makes sense if I send "15.50".</p>
<p>I covered... | 1 | 1,348 |
Display output result in another page in PHP | <p>I have a Tour Search application where user can search for available tours based on three different parameters- Region, Country and Duration. Currently the code which I am using is showing the Output Result in the same page. I want the output result to show in a different page.</p>
<p><img src="https://s29.postimg.... | 1 | 2,368 |
Meteor app deployed to Digital Ocean stuck at 100% CPU and OOM | <p>I have a Meteor (0.8.0) app deployed using Meteor Up to Digital Ocean that's been stuck at 100% CPU, only to crash with out of memory, and start up again at 100% CPU. It's been stuck like this for the past 24 hours. The weird part is nobody is using the server and meteor.log isn't showing much clues. I've got MongoH... | 1 | 2,900 |
rake db:create error with mysql2 gem (Couldn't create database for {"adapter"=>"mysql2") | <p>I'm trying to get rails 4 up and running together with ruby 2.0 on my debian 7 box and I'm having issues connecting to a mysql database with mysql2 gem.</p>
<p>I have used the commands below to set up the everything around:</p>
<pre>
\curl -L https://get.rvm.io | bash -s stable
rvm install ruby
rvm use ruby --d... | 1 | 7,319 |
How to download a large file from Google Cloud Storage using Java with checksum control | <p>I want to download large files from Google Cloud Storage using the google provided Java library <a href="http://googlecloudplatform.github.io/google-cloud-java/0.8.0/apidocs/index.html" rel="nofollow noreferrer">com.google.cloud.storage</a>. I have working code, but I still have one question and one major concern:</... | 1 | 1,180 |
JProgressBar not triggering propertyChange on setProgress | <p>I've read many different articles about JProgressBar...including the dodgy code found over at Java; <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/progress.html" rel="nofollow" title="here">here.</a></p>
<p>Most indicate you need a SwingWorker to get things happening properly, which makes perfec... | 1 | 1,175 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.