title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Read data from a serial device using Python and save it to PostgreSQL using a Raspberry Pi
<p>Im trying read data from a smartmeter that has FTDI chip. Wrote a simple Python serial program to pass the commands to meter and the meter replies back. the data from meter is then converted to float and stored in dictionary.</p> <p>now i want to store the dictionary to DB, <strong>here is the code to put data in t...
2
1,075
Stripe Subscription object from Invoice object is null
<p>I'm parsing event webhooks, and for the <code>invoice.payment_succeeded</code> event I need to get the <code>Invoice</code> object, the <code>Subscription</code> object, and the <code>Plan</code> object: </p> <pre class="lang-java prettyprint-override"><code> if (event.getType().equals("invoice.paymen...
2
1,580
How to import variable (sensor input) & update it from one python script to another?
<p>I'm currently setting up a some sensors with my raspberry pi in python. Total python newbie here. </p> <p>Each sensor has it's own script to read the sensor and there is another script that drives an LCD display and displays the imported variable from the sensor script. </p> <p>I've gotten so far with working scr...
2
1,425
Using the Back Button on WebView
<p>I cant figure out why the application keeps crashing once i press the back button on my phone. Im trying to use the back button to go back a page while on the WebView</p> <p>This is my code:</p> <pre><code>package com.***.****; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; i...
2
1,312
Get WM_INPUT from Unity window
<h1>About</h1> <p>I am trying to build a custom mouse input for Unity that gets the data directly from the HID. I do this because I want to try if there is any difference (when using my own custom mouse input) to the Unity API that gives me raw mouse input.</p> <p>Also I need to say that everything I am doing right n...
2
1,307
Signing PDF - memory consumption
<p>I tried some utilities for digital PDF signing based on iText v1 or v2 and found out that it seems whole PDF is loaded into memory (for 60M PDF process can take up to 300-400MB of memory).</p> <p>Can recent iText versions sign PDF without load it into memory?</p> <h2>Updates</h2> <p>I tested Bruno's example with ...
2
1,322
Spray Akka Json Unmarshalling
<p>I've a problem about unmarshalling objects to Json via using spray - akka.</p> <p>When i'd like to use actors that returns Future[List[Person]] , it doesn't work.</p> <p>If i use dao object directly, it works.</p> <p>Here are my codes:</p> <p><strong>PersonDao.scala</strong></p> <pre><code>import scala.concurre...
2
1,973
form_widget submit doesn't work
<p>I'm trying to customize my form created with formBuilder.</p> <p>My form is working well when i display it with <code>{{ form(comment) }}</code> but doesn't work anymore with <code>{{ form_widget(comment.MYMETHOD) }}</code></p> <p>I display my form like this :</p> <pre><code>&lt;form class="commentForm"&gt; &...
2
1,140
Embarcadero RAD Delphi 10.3.3, cannot compile my app with Box2D library for 64-bits Android
<p>Cannot compile my App for Android 64-bit with Delphi 10.3.3. My App is using Box2D library. While compile I get following errors:</p> <pre><code>[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\android-ndk-r17b\toolchains\aarch64-linux-android-4.9\prebuilt\windows\aarch64-linux-android\bin\ld.exe: can...
2
2,024
C# TIFF Bit Wise Check
<p>I am trying to determine if a 1BPP indexed TIFF image is using a white pixel or black pixel. To check if my code was correct , I made the application draw the same image it proccessed onto a new image. This is when I noticed some problems and I have beem beating my head trying to figure it out.</p> <p>I am pretty s...
2
1,812
Images not resizing correctly - JQuery Backstretch
<p>I am trying to edit a WordPress template that I purchased. The slideshow images, the centerpiece of the homepage, are not resizing properly when the browser window is resized. The height also seems to be fixed at a very small height and no matter what CSS changes I make, it doesn't seem to change anything. The devel...
2
2,778
502 Bad Gateway - Nginx - Unicorn suddenly stopped working, Nginx logs empty
<p><strong>BIG EDIT WITH THE ANSWER</strong> </p> <p><strong>If your Nginx application throws you a "502 Bad Gateway", check inside your Nginx conf files <code>/etc/nginx/conf.d/*</code>, probably you might have the same domain declared twice in different <code>.conf</code> files. Nginx error logs WON'T show you anyth...
2
1,590
Android: How/where to put gesture code into IME?
<p>I'm new to Android but I'm trying to create an IME that allows for gesture-character recognition. I can already do simple apps that perform gesture recognition but am not sure where to hook in the gesture views/obj with an IME. Here is a starting skeleton of what I have for the IME so far. I would like to use <co...
2
1,692
PSSetSamplers doens't work (The Pixel Shader unit expects a Sampler)
<p>I'm very new at directx11, and I wanted to add texture to a shader I'm using. (until now, I hadn't used any texture yet in directx11)</p> <p>But sampling doesn't seem to work (it's always float4(0,0,0,0)), and I get the warning: "D3D11 WARNING: ID3D11DeviceContext::DrawIndexed: The Pixel Shader unit expects a Sampl...
2
1,105
deb package fails while postinst bash script executing
<p>Im making a bash script for nagios custom plugins &amp; configuration i use equivs for its simplicity</p> <p>here'is my control file.</p> <p>in Files: section , i tell files to copy themselves to their right path.</p> <pre><code>Files: check_cpu_loadx /usr/lib/nagios/plugins check_ipmi_sensors /usr/lib/nagios/pl...
2
1,466
ngSubmit is not triggering function in controller
<p>I am relatively very new to AngularJS and javascript Please be merciful while answering.</p> <p>I am trying to create one sample application where I want to nest controllers. MainController which will always be there acting as parent container which will render menu and user name on top if user is logged in. For n...
2
1,114
Search images by color in Python
<p>We have a database with more than 250,000 images and we'd like to search these by color - similar to how Google's search by color works. So, we'd define 12 different colors: from black over red, green and blue to white. If the user selects for example red, we'd like to return all images that contain well visible "re...
2
1,068
xcode 7 could not build module 'X'
<p>I updated to xcode 7 beta, but when I wanna try to install app onto my iphone not simulator, I got over 250+ errors, a lot of them says</p> <pre><code>/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/sys/cdefs.h:707:2: Unsupported architecture /A...
2
1,688
How to Keep Data fields When Recaptcha is Invalid
<p>My php contact form is working fine and I just need help on <strong>how to keep the data fields when recaptcha is incorrect or invalid.</strong> Where do I need to ad more script to accomplish this? Thank you very much for any answers. I am still new at php. This is ALL IN ONE PAGE Called: CONTACTFORM.php</p> <pre>...
2
2,243
freeze_support bug in using scikit-learn in the Anaconda python distro?
<p>I just want to be sure this is not about my code but it needs to be fixed in the relevant Python package. (By the way, does this look like something I can manually patch even before the vendor ships an update?) I was using scikit-learn-0.15b1 which called these. Thanks!</p> <pre><code>Traceback (most recent call la...
2
1,680
what is the good function php to deal with ffmpeg and progress bar
<p>I ask about ffmpeg and progressbar </p> <p>I used exec function with ffmpeg and output the result to txt file </p> <p>and using some of code I found here to </p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html lang="es"&gt; &...
2
3,349
How to get rid of this "points" between my lines when I am drawing?
<p>is there an easy way to not draw this points in my lines?<br> I don't know why this points are there because i never release my finger from screen during drawing of a line. <img src="https://i.stack.imgur.com/m8Xpn.png" alt="enter image description here"></p> <p>I got the code from a drawing example.</p> <pre><cod...
2
1,745
Array Sorting Performance
<p>This is a pretty simple, straightforward problem, but, of course, I've managed to do something wrong. First, I generated 5 different arrays of 10 random numbers--from 1 to 10, 1 to 100, up to 1 to 100,000. Then I took each array and performed 5 different types of sorts (for a total of 25), calculating the time it ...
2
1,290
why getting error as Failed to start component [StandardEngine[Catalina]?
<p>I am first time doing simple project with struts.here is my code,</p> <p><strong>ActionExapmle :</strong></p> <pre><code>package com.demo; import com.opensymphony.xwork2.Action; public class ActionExample implements Action { @Override public String execute() { return SUCCESS; } } </code>...
2
3,668
Knex:Error Pool2 - error: password authentication failed for user "username" (Not using UNIX account)
<p>The problem occurs with the following command:</p> <p><code>knex --knexfile config/db/knexfile.js migrate:latest</code></p> <p>I get the following error:</p> <pre><code>Knex:warning - Pool2 - Error: Pool was destroyed Knex:Error Pool2 - error: password authentication failed for user "dennis" Knex:Error Pool2 - er...
2
1,459
How to sign an saml 2.0 assertion using the openssl (.PCKS8) file
<p>Hi i need some infomation on saml 2.0 Authn Request . I want to sign my authn request with a openssl created *.pkcs8 file. I can do with a keystore file using java keytool . But I want to achieve the same using *.PKCS8 file generateing using the openssl. I have been struggling with this for some time . I am able to ...
2
1,609
VBA Validation - multiple date validations on one cell
<p>I am trying to validate a date entered in a cell but I am running into a problem. The scenario is I have a named range of cells (column headers) that hold dates as on a calendar view. The user then enters a start and end date and I want to validate: 1) the start date is within the dates in the named range 2) the s...
2
1,590
adal.js doesn't refresh token properly
<p>I'm working on a Vue.js SPA. The site is running on one host, web.xxxx.com, while the api is running on another, api.xxxx.com. API calls are secured, and we use ADAL to login, logout, and to provide the logged in user's token to the API. In Vue, we set up an interceptor as follows (<code>getToken</code> is a wrapper...
2
1,225
problem with downloading with yt-dlp, getting time out error
<p>i tried to download from youtube with yt-dlp, and got an error: i've made sure i have yt-dlp installed and i also removed and installed it again ,</p> <pre><code>sudo pacman -Qi yt-dlp Version : 2021.12.27-1 </code></pre> <p>and im using windscribe vpn too,</p> <p>the error is:</p> <pre><code> yt-dlp -F h...
2
1,890
Jquery Ajax method working with multiple json object but not with single json object
<p>when I am sending json object array my jquery ajax method is able to parse content and show data in listview of jquery , but when I have only one single object my same jquery ajax method is not able to parse data.</p> <p>here my json object array:</p> <pre><code>{"menuService":[{"idmenu":"0","itemCatagory":"Main C...
2
1,168
CSRF - Axios is removing headers
<p>I am using Axios module for Nuxt.js. </p> <p>I do have problem with <code>CSRF</code> token. Whenever I log in into the app, I cannot send any <code>POST</code> request. The response is always <code>403</code>.</p> <p><strong><em>Axios configuration:</em></strong></p> <p><strong>Inside <code>nuxt.config.js</code>...
2
1,200
DOMContentLoaded not firing after navigation but fires on page reload when using javascript_pack_tag
<p>I'm working with a Rails 6 rc1 project with React and Webpacker.</p> <p>I'm currently using <code>javascript_pack_tag</code> to render React components in my Rails app. I'm trying not to use a gem like <code>react-rails</code> just to keep things simple.</p> <p>Today I found a weird behavior where my React compone...
2
1,201
get html page after script execution via php
<p>I did a lot of search... tried some methods.. There is <a href="http://sosyal.hurriyet.com.tr/yazar/niobe_141/seni-unutmuyoruz-pasam_40011882" rel="nofollow noreferrer">webpage</a> that html contents come after script execution.</p> <p>I used phantomJS with different method.</p> <p>1-) <em><strong>Checking with doc...
2
1,045
Issue with AdamOptimizer
<p>I'm using a simple network and i'm trying to use <strong>AdamOptimizer</strong> to <strong>minimize the loss in a Q learning contexte</strong>.</p> <p>Here the code :</p> <pre><code>### DATASET IMPORT from DataSet import * ### NETWORK state_size = STATE_SIZE stack_size = STACK_SIZE action_size = ACT...
2
1,524
Handle json jquery ajax response 2 arrays
<p>I am not that good at ajax, javascript and so on.</p> <p>I echoed from my PHP file 2 JSON arrays:</p> <pre><code>{key":"R\/EPspiig3jNffjjE6YWTsB+rsdlCjqnm1LExC\/vJXE=","nonce":"1aab51c5d8b23b7c110ae3f2a2d440bf0797750c85bd1602e8d57c357f34dab9"} </code></pre> <p>and</p> <pre><code>{"error":1,"message":"\u05d4\u05d...
2
1,092
Illegal Function, Spotify Tech Puzzle
<p>I am trying to solve the Spotify Puzzle 'Bilateral' found here: <a href="http://www.spotify.com/us/jobs/tech/bilateral-projects/" rel="nofollow">http://www.spotify.com/us/jobs/tech/bilateral-projects/</a></p> <p>I have run a bunch of tests on my program and I seem to get the correct output, however upon submitting ...
2
2,077
Get an array of specific data from order items in WooCommerce 3
<p>I need the following response in a json:</p> <pre class="lang-php prettyprint-override"><code> $output = array( 'storeCode' =&gt; '123456', 'firstName' =&gt; $fname, 'lastName' =&gt; $lname, 'dateOfBirth' =&gt; '1983-04-01', 'mobilePhone' =&gt; $mobile, 'email' =&g...
2
1,094
Jetty websocket client: Not Valid UTF8
<p>Any advice on how to fix this problem would be much appreciated.</p> <p>I am using the jetty websocket (9.2.6.v20141205) client to connect via apache2 proxy_wstunnel to tomcat7 websocket server.</p> <p>I get the following error intermittently:</p> <pre><code>org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception:...
2
10,665
React Datepicker won't shrink to parent container
<p>I'm having a difficult time getting <a href="https://www.npmjs.com/package/react-datepicker" rel="nofollow noreferrer">react-datepicker</a> to shrink to its parent container within my code. I have found suggestions on giving it a new stylesheet <a href="https://github.com/Hacker0x01/react-datepicker/issues/624#issue...
2
1,503
Layout issues trying to get ListView to show fixed number of items
<p>In a UWP Project I have a <code>ListView</code> that is bound to an <code>ObservableCollection&lt;T&gt;</code> of <code>Person</code> objects. I use a <code>DataTemplate</code> to display the <code>Person</code> object within the <code>ListView</code>. The collection (people) can only contain up to a certain number ...
2
2,372
Cupy error - disk quota exceeded [Minimal example included]
<p>Executing the following minimal example in cupy. </p> <pre><code>import cupy, cupyx x = cupy.array([1., 2., 3.]) y = cupy.arange(10) print(cupyx.get_runtime_info()) </code></pre> <p>in the following manner</p> <pre><code>(venv) user@ailx216:/work/sandbox$ CUDA_PATH=/usr/local/cuda-9.1 python cupy_test.py </code>...
2
1,326
Put a Linearlayout under the ListView
<p>I'm facing problem to put a linearlayout under the listview like what is shown in this image link:</p> <p><a href="https://i.stack.imgur.com/o3mAAm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o3mAAm.png" alt="enter image description here"></a></p> <p>I want the layout with the Add icon and t...
2
1,252
Zxing Library java.lang.ExceptionInInitializerError
<p>I am using ZXing library I have imported 'android' project from ZXing folder downloaded from code.google.com and make it library , also core.jar file is addded to the library. while I run the app it forces to close, </p> <p><strong>LogCat</strong></p> <pre><code>10-26 15:16:58.495: E/AndroidRuntime(21673): FATA...
2
1,896
Generate random alphanumeric string with condition in C#
<p>According to following code , I need to generate a string in different cases based on the method input. My issue is where I wanna generate <strong>9A9A</strong> (at least 1 number and 1 letter) or <strong>9A9A9A</strong> (at least 2 numbers and 2 letters). In most cases, this conditions is not met.</p> <pre><code>p...
2
1,547
How can i print to thermal bluetooth printer?
<p>I develop a mobile point of sale with flutter, but I don't know how to print the receipt on a Bluetooth thermal printer</p> <p>I currently develop a plugin for it but it doesn't work yet</p> <pre><code>protected void printBill() { if(btsocket == null){ btsocket = DeviceList.getSocket(); ...
2
1,052
PHP PDO Declare name as variable
<p>So In my project I'm trying to declare a variable so it will display their full name if logged in. I'm assuming it would be a query to fetch the data from the table but I'm unsure on how to have it make sure it get's that certain user's name and not the first name on the table</p> <p>Here's my registration code.</p...
2
1,941
How to Change Brightness of Image?
<p>i have made an application that loads image from specific directory, loads all images in stack, when i am clicking on next button next image loads. i have also added JSlider that change Brightness of Loaded Image but it doesn't work. i don't know why but i am not getting exact problem.</p> <p>my code :</p> <pre cl...
2
3,419
JSON invalid according to jQuery but not JSONlint
<p>I have a .NET web service returning the following JSON:</p> <pre><code>{"command":"getqcardjson","valuesets":[{"datatable":"eaa65990-8f88-45e0-966b-610858ad4cb6","values":[{"Id":"eaa65990-8f88-45e0-966b-610858ad4cb6","InternalName":"Alpha Profile","TableName":"Alpha Profile","OnMainMenu":"","DefaultDataSourceId":"b...
2
3,556
Is there a way parse log messages using rsyslog config and transform them to structured messages?
<p>I am trying to parse log messages and transform them to structured messages using rsyslog. Is there a way support such operation with rsyslog config? I have not yet explored the option to write custom parser or message modification plugin for this. </p> <p>I found <a href="https://www.rsyslog.com/doc/v8-stable/conf...
2
1,395
Deploying Ionic2 on Heroku
<p>I am trying to deploy my ionic2 app on Heroku. I looked at these sites:</p> <ul> <li><a href="http://blog.ionic.io/one-mean-ionic-2-todo-app-on-heroku-part-1/" rel="nofollow noreferrer">http://blog.ionic.io/one-mean-ionic-2-todo-app-on-heroku-part-1/</a></li> <li><a href="https://www.joshmorony.com/building-a-revie...
2
1,173
OpenWeatherMap API forecast for only days
<p>The problem is when I fetch the URL to get the JSON file of the forecast, it gives me an array of <code>40</code> objects (Forecast every 3 hours for 5 days) now I want to display only everyday forecast and not every 3 hours forecast.</p> <p>How can I do it with JavaScript?</p> <p>The array:</p> <pre><code>{…} ​ cit...
2
2,119
How to use model input in loss function?
<p>I am trying to use a custom loss-function which depends on some arguments that the model does not have.</p> <p>The model has two inputs (<code>mel_specs</code> and <code>pred_inp</code>) and expects a <code>labels</code> tensor for training:</p> <pre class="lang-py prettyprint-override"><code>def to_keras_example(ex...
2
1,507
Infinite Loop with ReportViewer and Global.System.Diagnostics.DebuggerNonUserCodeAttribute
<p>I've written a simple webForm that contains 1 textbox and a ReportViewer (created by Reoprt Wizard). I'm receiving no errors when attempting to execute the report, but the report never stops loading. I've double checked the .rdlc file (by previewing the .xsd file and it displays the expected data. So, I set up a ...
2
3,079
react setstate not working when pushing elements to array
<p>I am trying to push elements to an array of objects in the component state (in react.js), i am calling the method Array.concat wich returns a new array. </p> <pre><code>pushDeck(id, name) { var newDeck = [{ id: id, name: name }]; console.log("new path should be: ", this.state.path.concat(newDeck)); ...
2
2,690
How do I get the error line number in my Android application?
<p>Currently when my application has an error I get a stack trace that I don't recognize at all (doesn't contain any of the classes I defined), so debugging requires always adding at least 1 break point to then trace execution through my code.</p> <p>How can I set up Eclipse so that when an error happens I get the lin...
2
1,636
asp.net open xml to download .xlsx file
<p>I'm trying to supply a .xlsx file from a grid, I think most of the hard work is done. I'm picking up a template file and filling it with data. </p> <p>I' getting an error 'file not found' on Response.WriteFile.</p> <p>by the looks of the example (linked below) this should just be the intended file name, but I imag...
2
2,569
parLapply within R6 classes
<p>I'm looking to use <code>parLapply()</code> on windows within an <code>R6</code> object and noticed (that in at least some cases) that I do not need to export the R6 functions or data to the nodes. </p> <p>Here is an example where I can access private methods within <code>parLapply()</code>:</p> <pre><code>require...
2
1,879
Fullcalendar AJAX call fired multiple times without reloading page
<p>When I click a day in month view, a modal will pop-up. </p> <p>Inside that modal is a button for adding a new event. When I click that, another modal will pop-up for the Add Event form.</p> <p>The problem is when I frequently open/close the first modal and try to add an event after that without reloading the page,...
2
2,286
TypeError: create_superuser() missing 2 required positional arguments: 'first_name' and 'last_name'
<p>I've checked other questions with same problem and tried solving with the solutions but none helped. I neither see 'First Name' nor 'Last Name' input while creating a super user in the terminal I've been following this tutorial '<a href="https://www.youtube.com/watch?v=HshbjK1vDtY&amp;t=3422s" rel="nofollow noreferr...
2
1,839
How can i correctly set a decaying learning rate callback passing it a custom function in xgboost?
<p>I have this function to set up a descending learning rate:</p> <pre><code>def learning_rate_005_decay_power_099(current_iter): base_learning_rate = 0.05 lr = base_learning_rate * np.power(.99, current_iter) return lr if lr &gt; 1e-3 else 1e-3 </code></pre> <p>Now i want to pass it to the <code>callbac...
2
1,701
different child layout for each Group header in ExpandableListview android
<p>I have used <code>ExpandableListview</code> in which every <code>Group</code> has same <code>child layout</code>.</p> <p>Now there is a situation , in which every <code>Group</code> has different child layout (some has <code>checkbox</code>, some has <code>imageview</code>, some has <code>textview</code>) dependin...
2
1,806
Load data in grid using jquery
<p>I am using jqwidgets. There is a nice grid widget in there what i want to use. To use the grid i use the demo code:</p> <pre><code> $(document).ready(function () { var theme = getTheme(); var url = "../sampledata/data.php"; // prepare the data var source = { dat...
2
1,053
ReflectionTypeLoadException exception in Asp.Net Core in-memory TestServer
<p>I create a <code>IWebHostBuilder</code> like so:</p> <pre><code>public IWebHostBuilder GetWebHostBuilder() { return new WebHostBuilder().UseContentRoot(_contentRoot) .ConfigureServices(InitializeServiceCollection) .UseEnvironment(_en...
2
1,239
Pushing Rails App to Heroku - "fatal: Could not parse object"
<p>I am a Noob trying to push my first app from onemonthrails.com up to heroku. I have been trying to solve this issue on stackoverflow and other sites. I cannot seem to come up with an answer. I tried deleting the gem-file then recreating before I pushed it up, diddn't work. </p> <p>Also, I started with a heroku app ...
2
2,888
How to log into router with HttpWebRequest?
<p>I'm trying to figure out how to successfully log into a DSL-Router (Model: Speedport w504v Type A). I wrote a function usinig HttpWebRequest and HttpWebResponse. So far this function is not finished and is only for finding out the right login process.</p> <pre><code>Public Function DoRequest(ByVal url As String, By...
2
1,216
Nightwatch selenium geckodriver - browser not opening
<p>I'm trying to run nightwatch tests in firefox. I have my config file set up like this:</p> <pre><code>module.exports = { "page_objects_path": "./page_objects", "selenium": { "start_process": true, "server_path": "../bin/selenium.jar", "host": "127.0.0.1", "port": 4444, "cli_args": { ...
2
1,623
How to show toast according to user input?
<p>I'm new to Android Development. I'm making an app in which if the user enters a positive value less than 10, a toast should appear Red in color. If he has entered a positive value greater than 10, a toast should appear green in color. I've written the following code with no compilation errors but my app crashes at r...
2
2,205
show google maps in android v2 app crashes on open activity, inflate exception binary file number #2
<p>I am trying to open google maps to show some locations. I am following <a href="http://mobisys.in/blog/2012/12/google-rolls-out-android-maps-api-v2/" rel="nofollow">http://mobisys.in/blog/2012/12/google-rolls-out-android-maps-api-v2/</a> link for this, but its not opening maps its crashing and says inflate exceptio...
2
2,037
Reflection and NullPointerException with static fields/methods?
<p>I am trying to use reflection to access a method and variable that I do not want inherited by an object. I receive a null pointer exception with these <em>static</em> variables, and I cannot notice anything I have missed. I would appreciate help in resolving the exception :) </p> <p>Am I missing any lines, or not u...
2
1,531
DataGrid work with WrapPanel as ItemsPanel
<p>How can i implement the a vertical <code>WrapPanel</code> as a <code>DataGrid</code>'s <code>ItemsPanel</code>? The <code>DataGrid</code> will, instead of expanding in height , break horizontally into another column (with header and all). My Problem is similar to the <strong>Example 2</strong> on this thread <a hre...
2
1,177
Configuring Hibernate Search with EntityManager
<p>I want to add Hibernate Search to my project, I write sample code like this to test it.</p> <pre><code> EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("pu"); EntityManager em = entityManagerFactory.createEntityManager(); FullTextEntityManager fullTextSession = Search.getFullTe...
2
1,767
How do I paginate specific blog posts on Prismic and Nuxt?
<p>I am trying to paginate specific posts on my blog page with two <code>&lt;a&gt;</code> tags.</p> <p>According to the <a href="https://user-guides.prismic.io/en/articles/1401183-connect-to-a-custom-api" rel="nofollow noreferrer">Prismic Pagination API</a>, accomplishing that would be as easy as passing the parameter...
2
1,283
How to scroll this panel of radio buttons
<p>I am new to swing. I might use a layout manager one day, but please just advise on how I can add a vertical scroll bar to my <code>Frame</code>. I have taken an unorthodox approach, I realize, but I'm learning. I am totally stumped, having read the API. How I would go about adding a vertical scroll bar to the follow...
2
5,052
After the Ruby interpreter segfaults, is it possible to get the Ruby backtrace from the corefile?
<p><strong>Note:</strong> I'm using a segfault that I encountered whilst using the libxml-ruby gem to illustrate the question, but I've since fixed my problem with said gem. What this question is really about is viewing the Ruby backtrace (i.e. the same thing the interpreter prints when Ruby code fails to handle an exc...
2
7,567
WPF PasswordBox label visibility
<p>I have created a passwordbox user control for a login screen. I was trying to use a watermark approach, but most of the examples I saw failed when I tried to use them. I switched to just being able to manipulate the label's visibility through c# code.</p> <pre><code>&lt;Style x:Key="{x:Type PasswordBox}" x:N...
2
2,447
Go HTTP Server Performance Issue
<p>I am writing an event collector http server which would be under heavy load. Hence in the http handler I am just deserialising the event and then running the actual processing outside of the http request-response cycle in a goroutine. </p> <p>With this, I see that if I am hitting the server at 400 requests per seco...
2
1,878
toastr notifcation not appearing mvc 4
<p>Hi I'm new to MVC and I've been trying to build upon a tutorial i've been following by trying to get a toastr message to appear when I successfully edit something in my mvc app. I think I have everything done correctly, but yet the notification isn't popping. </p> <pre><code> bundles.Add(new StyleBundle("~/Conte...
2
1,351
Concatenation of multiple entries in one row
<p>I am trying to concatenate a list of attributes for same products which are in different rows.</p> <p>For example:<br /> Column A (fruit_name) has fruit names and Column B (fruit_colors) has colors.<br /> I want fruit color on the same row as the fruit.</p> <pre><code>|**fruit_name** | **fruit_colors** | |---------...
2
1,073
Spark Submit command is returning a missing application resource
<p>To start things off I created a jar file using this <a href="https://stackoverflow.com/questions/1082580/how-to-build-jars-from-intellij-properly">How to build jars from IntelliJ properly?</a>.</p> <p>My Jar files path is</p> <pre><code>out/artifacts/sparkProgram_jar/sparkProgram.jar </code></pre> <p>My spark progra...
2
1,200
Https 403 Forbidden Error In Flutter Dart API Integration PayFAST
<p>I am trying to integrate Payfast api with my app. In WebView I can pass requested data to given https address properly but when ıt came to https request side errors occur. Simply I passed the same data to same path. What is the problem, your help is really appreciated. Thanks for now</p> <p><a href="https://develope...
2
1,287
UINavigationBar transition between color and transparent - bug [iOS 11]
<p>I've discovered a weird behavior on iOS 11 when I push <code>UIViewController</code> and change the <code>UINavigationBar</code> color to transparent. Important thing is that I'm using <code>largeTitles</code>.</p> <ol> <li><p>I want to change red color of the navigation bar to transparent and this works fine.</p><...
2
1,660
Wordpress - Multiple loops on a page
<p>I have got multiple loops on a page. First loop gets the posts from <code>update</code> post type, second loop gets a page link, third one gets <code>post</code> post type, again fourth one gets a specific page link and then there is the last loop that fetches the current page data. i.e. I have got something like th...
2
1,841
Play 2 - Zentask Java Tutorial - jUnit ebean test failure
<blockquote> <blockquote> <p><strong>Solution: you dont need IDE for testing, just run "play test" in the console</strong></p> </blockquote> </blockquote> <p>Good Evening! I just started to get into Play Framework, I worked with jUnit before and also used testing in rails and lift. But here I think there is a ...
2
1,102
Unable to read 64 bit registry key on Windows 7
<p>I'm having an issue with the following bit of code that attempts to read a registry key but fails. The specific error is: "<em>System.NullReferenceException: Object reference not set to an instance of an object</em>." The code I'm using is below:</p> <pre><code>using System; using System.Collections.Generic; using ...
2
1,502
Hive - handling NULL input values in Python UDF
<p>while writing <code>hive</code> <code>UDF</code>s in python, how to handle the <code>NULL</code> input values?.</p> <p>Example setup to reproduce the error:</p> <p>Hive table:</p> <pre><code>CREATE external table udfTest( fname STRING, age INT ) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' LOCATION '&lt;locatio...
2
1,284
neovim is transparent but the auto copplete window is pink.how to make it semi transparent (black) too?
<p>i use parrot security as my daily distro. its mate terminal is transparent so is vim .but i wanted to get auto complete and used some plugins.auto complete window appears to be in pink which looks really ugly in semi transparent black background.i changed the theme and it was fixed but so was gone vim transparency ...
2
4,583
Estimator with numpy array input_fn
<p>I am creating an estimator with numpy array to feed to model with using <code>tf.estimator.inputs.numpy_input_fn</code>. Like the following:</p> <pre><code>def input_fun(data): x, y = data x, y = np.reshape(x, (batch_size, -1, 1)), \ np.reshape(y, (batch_size, -1, 1)) return tf.estimator.in...
2
1,957
Python Telegram Bot: InlineKeyboardButton and waiting for user input
<p>I'm trying to make a telegram bot that will interface with an IoT system i'm developing. Actually i'm stuck in programming the python telegram bot; her's my problem: inside the bot's chat the user is able recall the InlineKeyboardButtons to turn on/off a light or set a timer. When the user choose &quot;timer&quot; b...
2
4,762
How to control z-index when using perspective and transform?
<p>I've read a lot of pages talking about z-index and how transform and perspective destroys his context. I understand why my code isn't working what I don't know is how to make it work (or at least use and alternative).</p> <p>As you can see on the image, the select menu is being covered by the card below.</p> <p><a...
2
1,189
JPA getSingleResult - EntityNotfound Exception
<p>Hi I am trying to fetch a java entity through JPA getSingleResult but its throwing an exception I could not find in the <a href="http://docs.oracle.com/javaee/6/api/javax/persistence/Query.html#getSingleResult()" rel="nofollow">API specs</a></p> <p>Method:</p> <pre><code>public static Object getSingleResultOrNull(...
2
3,069
Android watchdog sent SIGKILL to system_server, but why did the log say "Fatal signal 6"?
<p>In the log, Watchdog killed system_server by sending <code>SIGKILL</code>, but how did the log say "<code>Fatal signal 6</code> (<code>SIGABRT</code>)"? I know that a process terminates after receiving <code>SIGKILL</code>, why did it receive <code>SIGABRT</code> then? Can anyone explain it to me? Many thanks.</p> ...
2
2,399
Change Height of Div After Ajax Call
<p>PROBLEM: I have a dynamic form that is using JQuery steps to make it a wizard. Right now, there is a step where a drop down box selection triggers an AJAX call that then adds form fields to the form. I need the height of the div that this field is in to become longer based off of the amount of fields added. </p>...
2
2,321
Can't get Zabbix to email alerts
<p>I've recently spun up a new Zabbix 3.0 instance on Ubuntu 16.04 using Php 7.0 and I am running into a lot of issues trying to get it to e-mail the Zabbix administrators. We are trying to use Amazon SES to send out the e-mails. For our setup, we have a usename &amp; password that was generated by SES we are using por...
2
1,230
Plugin for CKeditor to add multiple styles
<p><a href="https://stackoverflow.com/questions/7676144/ckeditor-format-class">Codewaggle's answer</a> here got me started and I also have looked at <a href="https://stackoverflow.com/questions/12787891/ckeditor-plugin-to-set-classes">Reinmar's answer</a>, but I can't quite put this together. </p> <p>I want to create ...
2
1,523
Getting rest api data into bootstrap Vue table and pagination
<p>I am using the Itunes rest api to get data into my application, I am having problem getting the data into the table, the rest api structure is as follows:</p> <pre><code>{resultCount: 4, results: Array(4)} </code></pre> <p>So far I have tried the following:</p> <pre><code>&lt;div class="overflow-auto"&gt; ...
2
2,377
Scrollview is not scrolling in new androidx project
<p>I have added a scrollview in my new android studio project which is running on androidx support library but the problem is scrollview and nested scrollview is not at all scrolling in the activity where as it used to scroll in old projects. What is the problem? Please help. I have tried all the possible causes from m...
2
2,286
The name 'ViewBag' 'Scripts' 'Styles' does not exist in the current context .net MVC5.2.2
<p>So I am trying to run a project which I'm making with my team. We are all using VS2013 and the project is supposed to be in MVC 5.2.2</p> <p>The project runs smoothly on other pcs and when I try to copy the project via USB and then I even succeed running it for the first time and the page loads but after some time ...
2
3,539
JPA 2.0, How can I fix the following 2 errors
<p>I'm actually learning JPA2.0 and I'm stuck with the following errors, consider than I'm using eclipse as IDE.</p> <pre><code>Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.ejb.AbstractEntityManagerImpl.conv...
2
1,428
NullPointerException when sending ISO8583 request
<p>I am trying to send an ISO8583 request to a terminal using the following code:</p> <pre><code>try { XMLParser packager = new XMLParser(this.xmlFile); final ISOMsg isoMsg = new ISOMsg(); isoMsg.setPackager(packager); isoMsg.setMTI("0800"); isoMsg.set(3, "xxxxxx"); is...
2
1,264
React material-ui Datepicker and timepicker dont show
<p>I've been starting to use material-ui was looking into using DatePicker and TimePicker. I don't know if it's a bug or that i did something wrong, but after searching everywhere i'm not able to make those 2 components works. They simply don't show, nothing happens when i click on them and when i tab itdoesn't focus t...
2
2,380