title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Box2d spinning wheel with RevoluteJoint
<p>My goal is to make a wheel that slowly spins which should point where the gravity is. I'm developing this using libgdx for Android, when the device is rotated (I'm using the accelerometer) the wheel should spin.</p> <p>Here is the wheel made with the box2d-editor: <a href="https://i.stack.imgur.com/qYa0a.png" rel="n...
2
1,120
WorldWind <-> MapCache <-> MapServer
<p>I have a MapCache &lt;-> MapServer setup and running. MapCache is configured for WMS access and is used to cache tiles for specific layers provided by my MapServer. I can access the WMS capabilities and display a tile through my browser by accessing WMS trough MapCache and have verified that it is being cached. </p>...
2
4,553
AwsStringStream.h: No such file or directory
<p>I am working on the tutorial in this <a href="https://aws.amazon.com/blogs/developer/using-cmake-exports-with-the-aws-sdk-for-c/" rel="nofollow">link</a>. I have all libraries and aws-cpp-sdk are installed. I have aws folder inside /usr/local/include.</p> <pre><code>When I make the cpp file, I have error as sudo ...
2
1,127
Remove Timestamp element from Security
<p>All the geeks will say WSE is outdated.. Thats ok for me right now.. Just trying to find a solution for my problem Trying to consume a Java webservice using WSE. In the outgoing soap request has an security has additional time stamp node. My outgoing soap request looks like this </p> <pre><code> &lt;soap:Header&g...
2
3,934
Error in recieving data from TCP Client
<p>I've written an application which listens to a port and receives some packets,according to my customized protocol, the packets are either 49 byte to 1500 byte, which i can tell from data length in the packet. the way i should interpret and deal with data in 49 byte packets and bigger packets are different.</p> <p>T...
2
2,308
How do I explode multiple columns of arrays in a Spark Scala dataframe when the columns contain arrays that line up with one another?
<p>I'm having a little trouble formulating this question but I'll try to explain. I understand how to explode a single column of an array, but I have multiple array columns where the arrays line up with each other in terms of index-values. In my dataframe, exploding each column basically just does a useless cross join ...
2
1,754
Spring webflow overwrite Spring security request rules?
<p>Project use SWF 2.4.1 and SSec 4. I specified a failUrl on spring security for errors on login and a transition on webflow if evaluate expression fail. In this case SWF redirection is priority to SSec redirection. I wonder if there is some way to omit/change this behavior because I would follow spring security rules...
2
1,422
Calling WebMethods from Business Logic Layer in ASP.Net
<p>I am developing an application in ASP.Net using C#. My Application is build in Three Tier Architecture. So there is a Business Logic Layer Exists. I have written am Web Method (named getBusinessVerticals) in a class called Landing_Menus.cs which resides in Business Logic Layer (under App_Code Folder). I have to make...
2
1,051
How to hide custom workflows for a particular role?
<p>I am working with roles and permission's.i have to create an permission that hides the created custom workflow's for perticular role.when i am adding this bean file and the wizard in xml i am not able to start the workflow at all .please let me know if any other way is there. <br/><br/><br/> <b><h3>this is the bean...
2
1,093
Error: EEXIST: file already exists, mkdir C:\users\computer-name in React
<p>I'm trying to create <code>react</code> project , for that I installed <code>node</code> and <code>npm</code> following this <a href="https://reactjs.org/docs/create-a-new-react-app.html#create-react-app" rel="nofollow noreferrer">this</a> link.</p> <p>Now when I <code>run</code> the following command</p> <p><code...
2
1,027
JNI YUV_420_888 to RGBA_8888 conversion
<p>Currently I'm building an app to do real-time image processing and then display. The first step is to try displaying the original preview using Camera2 API and ANativeWindow API. I pass the y, u, v channels through JNI separately and do YUV2RGB conversion following the <a href="https://en.wikipedia.org/wiki/YUV" rel...
2
2,534
Vba doesn't recognize OLE object
<p>Hello all awesome programmers!</p> <p>Can anyone explain to me how I fix this problem? It works great in excel 2003, but in 2010 i get this error: </p> <p><img src="https://i.imgur.com/tRRn7OT.jpg" alt="Run-time error &#39;-2147024809 (80070057)&#39;"></p> <p>Can someone guide me in the right direction? What sca...
2
1,078
Expo facebook authentication method or property is not on available on web
<p>I'm trying to create a log in with facebook with Expo SDK 38 using the code for the login from the docs:</p> <pre><code>import * as Facebook from &quot;expo-facebook&quot;; export async function signInWithFacebook() { try { await Facebook.initializeAsync(&quot;688582288586140&quot;); const { type, ...
2
1,100
How to update multiple table row array in php mysql
<p>it display the record but when I save it. it doesnt work. please have a check on my array query. </p> <pre><code>&lt;form action="saveupdaterecord.php" class="form-horizontal" role="form" method="post"&gt; &lt;table&gt; &lt;tr&gt; &lt;?php $result = $db-&g...
2
1,299
Socket file transfer
<p>In this <a href="http://www.adp-gmbh.ch/blog/2004/november/15.html" rel="nofollow">code</a> if the files are sent at the first time(no matter the number files i'm sending.) the code works fine. But when I put the FileSender in a loop to send files one by one, after the first transfer, the data received on the receiv...
2
2,717
Bluetooth: Linux( in C++ ) with Android connection
<p>I am trying to connect my raspberry pi, which runs some form of debian jessie, to my android phone. I implemented the server side on the raspberry and the client side on the android phone. I already tested my android code with another app that had implemented the server side and I was able to send a couple of bytes ...
2
3,289
Why does an exception in LocalXAResourceImpl.commit() merely give a warning?
<p>In WildFly 8, I am using a distributed transaction containing an Oracle XA datasource and a custom JCA LocalTransaction resource (a connection to a file).</p> <p>Basically it works as expected - if one of the resources fails to commit, the whole transaction is rolled back and neither the database nor the file is up...
2
2,694
RFid click board with CR95HF microcontroller refuses to respond
<p>I have an Arduino with a RFid click board from Mikro Electronika. The click board has a microcontroller CR95HF microcontroller. According to the <a href="http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00025644.pdf" rel="nofollow">datasheet</a> when I send the ECHO command I shou...
2
1,237
React App Not Loading into The Packaged Electron App
<p>I'm trying to package my react app with electron 8. I've followed the instructions in this article and made the necessary changes to suit my code:</p> <p><a href="https://medium.com/@johndyer24/building-a-production-electron-create-react-app-application-with-shared-code-using-electron-builder-c1f70f0e2649" rel="nofo...
2
4,714
Variables lost on postback in asp.net
<p>I have a gridview with some data and I want to add a checkbox column which can choose multiple rows. By clicking on it I want to save an primary key of row and change css class of row.</p> <p>Using <a href="http://www.asp.net/web-forms/tutorials/data-access/enhancing-the-gridview/adding-a-gridview-column-of-checkbo...
2
1,371
Implementation of Dijkstra`s Algorithm - Stuck in an infinite loop
<p>Can someone, please, help me with my implementation? I am stuck in an infinite loop, but I don't know why. I think the problem is in the step where I look for the node with the minimum distance... I would really appreciate some help in this.</p> <pre><code>import java.util.*; public class Dijkstra { private Map&lt...
2
1,957
Input type range slider thumb display fix
<p>few days ago I've asked for help with styling <strong>input type range</strong> element. Everything works just fine except one thing. Slider thumb is not displaying correctly.</p> <p><strong>My goal is to display it like this.</strong></p> <p><a href="https://i.stack.imgur.com/shvQk.png" rel="nofollow noreferrer"><i...
2
1,504
Copying file across Azure container without using azcopy
<p>I would like to Copy a file across Azure containers without using azcopy utility. Please help with the script(Spring boot or .net example).</p> <p>I was able to upload\download file from\to local from\to container. Now wondering, how I could achieve remote to remote copy.</p> <p>Following code is working fine. All I...
2
1,633
How do I convert a hex array into a UIImage?
<p>There are several unanswered questions related to printing images dynamically with P25mi, none with accepted answers. A couple links below. </p> <p><a href="https://stackoverflow.com/questions/13838283/how-to-convert-image-to-bitmap-code-for-bluetooth-print-in-iphone">How to convert image to bitmap code for bluetoo...
2
3,930
Background Worker Thread Problem
<p>I am using background worker in my Application</p> <p>my code for this</p> <pre><code> void CreateThreadForEachServer() { DataAccess oDA = new DataAccess(); List&lt;Server&gt; allServerData = oDA.GetAllServers(); foreach (Server serverData in allServerData) { backgroundWorker = new Backg...
2
1,144
Executing same Kernel multiple times in OpenCL
<p>I want to run a kernel(same) multiple times( lets say 3 times) in parallel with OpenCL. I read similar title threads but i am still confused. I have already wrote a program that executes it once.I know i need to make changes to clEnqueueNDKernelRangeKernel( ) and i tried but failed. So kindly can someone tell me how...
2
1,615
Spring Tool Suite Server Tomcat v7.0 is failing to start at localhost
<p>I am building the web application with STS 3.7.0.RELEASE Eclipse Mars (4.5.0) I am starting my project but it is failing to start with the following console:</p> <pre><code> SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start...
2
9,630
PHP - login script
<p>I have this login script, but for some reason its not working. I checked the database, the form, and I have re-written the script in like 5 different ways; however, they all have the same problem, it does not start the session. Here is the code:</p> <pre><code>&lt;?php session_start(); //connect and select DB mys...
2
1,057
Flutter: I am unable to logout my app with google sign in library. How to do this?
<p>I have tried below google sign in example , it is working fine. But when I moved _handleSignOut() function to another screen , it is not signing out. My requirement is after login success, my homepage is visible. On the top of homepage , there is a logout button. on the click of which , I want to logout my app with ...
2
2,458
Ingress not binding to Load Balancer
<p>I have my <a href="https://support.dnsimple.com/articles/a-record/" rel="nofollow noreferrer">A record</a> on Netlify mapped to my Load Balancer IP Address on Digital Ocean, and it's able to hit the nginx server, but I'm getting a 404 when trying to access any of the apps APIs. I noticed that the status of my Ingres...
2
3,445
crm 2011 IFD is not working using OData and Javascript
<p>Firstly, our crm 2011 is on-premise. Then change to IFD(<a href="https://myservername.mycompany.com/ORGName/XRMServices/2011/Organization.svc" rel="nofollow">https://myservername.mycompany.com/ORGName/XRMServices/2011/Organization.svc</a>). when change to IFD, all OData and javascript are not working.</p> <p>In <st...
2
1,370
How to create separate seekBar class
<p>Following the instructions here: <a href="https://stackoverflow.com/questions/15011144/how-to-make-custom-seek-bar-in-android">How to make custom seek bar in android?</a> I was able to make my own custom seekbar that draws text inside the thumb. I know want to create my own seekbar class so that I can call it from m...
2
1,258
Is there a way to align three columns in a grid layout proportional to a row?
<p>I have a grid layout with 6 columns. </p> <p>For the top row i've given it colspan of 6. and for second row I've given each textView a colspan of 2. </p> <p>I hoped this would make everything proportional. However, it looks like this:</p> <p><img src="https://i.stack.imgur.com/sl5ro.png" alt="enter image descript...
2
1,281
Show Unicode characters in PostScript
<p>How do I get my PostScript program to show G clef character from <a href="https://github.com/steinbergmedia/bravura" rel="nofollow noreferrer">Bravura</a> font? According to this <a href="http://www.smufl.org/files/smufl-0.9.pdf" rel="nofollow noreferrer">SMuFL</a> document the Unicode code point for a G (treble) cl...
2
2,129
How to get Python multiprocessing pool working to write into the same log file
<p>I'm trying to write log into the same log file while running Python multiprocessing pool. But I found my main method didn't work. Can anyone hep to check my code? Thanks.</p> <p>The below main method verify_html_file_content isn't executed in multiprocessing pool. I'm trying to write logs into the same log file, an...
2
2,756
set persian language to data table
<p>I want to add sorting for persian language in my table. I use this data table</p> <p><a href="https://datatables.net" rel="nofollow noreferrer">https://datatables.net</a></p> <p>I added this plugin for sort my table</p> <p><a href="https://datatables.net/plug-ins/sorting/persian" rel="nofollow noreferrer">https:/...
2
1,650
SharePoint 2013 online can I set other column values when uploading a file using REST?
<p>The below Javascript works perfectly when i'm trying to upload a file to SharePoint 2013 online. However I have been looking unsuccessfully for a way to populate another column in the document library at the same time as my file is uploaded. For example a single line of text column with the name "doctype". Everythin...
2
1,160
UI not updating buttons when using Task.Factory.StartNew in WPF C#
<p>WPF/XAML/C# I set visibility of progress bar to visible, then hidden after a long running process. I am trying to use Task.Factory.StartNew and ContinueWith to accomplish this. This part works fine, but for some reaso, my navigation buttons that are databound to commands do not update until i actually click the sc...
2
1,156
call requires permission for Content URI in Calender
<p>I am quite new to android.I am developing one App in Which I ant to set events automatically. this is my Code ,I am referring <a href="http://developer.android.com/guide/topics/providers/calendar-provider.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/providers/calendar-provider.html</a></...
2
1,124
Login Form In Angular Using Modal [Bootstrap]
<p>I am a newbie to Angular, and I am using bootstrap for the Ui. Now I am stuck at a point. I have to create a login form in angular and I want it to be a modal. I am using a separate component for the login modal. I have a header component which has the button, and the login component with the modal body. So my main ...
2
1,902
Cannot use SendTweetWithMediaOptions in windows phone
<p>I am using TweetSharp in a Windows Phone project and no matter what I do, I can't post a tweet with media.</p> <p>I am getting the exception 195: Missing or invalid parameter.</p> <p>I read that usually this can be a cause of invalid data, like the stream that I provide is invalid.</p> <p>I have tried other way b...
2
1,114
Resizing a svg-element
<p>I want to change the dimension of a svg-Element. This is my HTML:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/start/jquery-ui.css"&gt; &lt;script type="text/javascript" src="https://ajax.g...
2
1,050
Unobtrusive validation: hide validation summary when all fields are valid
<p>Using unobtrusive validation, I cannot make summary error span disappear when all the form fields are valid.</p> <p>I prepared a single file example as the production code is part of a more complex MVC5 solution : </p> <pre><code>&lt;head&gt; &lt;script src="jquery-3.1.1.js"&gt;&lt;/script&gt; &lt;scr...
2
1,247
Trying to render web browser control using IViewObject::Draw() into HDC fails with IE8 but succeeds with IE11
<p>I have an MFC dialog window where I added a <a href="https://msdn.microsoft.com/en-us/library/aa752046(v=vs.85).aspx" rel="nofollow noreferrer">WebBrowser control</a> (that encapsulates the <code>Internet Explorer</code> engine.)</p> <p>The goal of the following code is to render the contents of the said <code>web ...
2
2,130
Exception Value: 'many' is an invalid keyword argument for this function
<p>, Exception Value: 'many' is an invalid keyword argument for this function,Exception Value: 'many' is an invalid keyword argument for this function,Exception Value: 'many' is an invalid keyword argument for this function,Exception Value: 'many' is an invalid keyword argument for this function,Exception V...
2
1,231
Scaling YUV420 Image using libyuv produces weird output
<p>Possible duplicate of <a href="https://stackoverflow.com/questions/42960251/problems-when-scaling-a-yuv-image-using-libyuv-library">This</a> question with major parts picked from <a href="https://stackoverflow.com/questions/19677747/how-to-find-out-resolution-and-count-of-frames-in-yuv-420-file">here</a>. I've tried...
2
1,698
“SMTP Error: Could not authenticate” in PHPMailer for outlook
<p>I'm using PHPMailer in a Simple Script For Send Email's Through office360, and I'm getting an "Unknown Error"</p> <p><strong>SMTP -> ERROR: Password not accepted from server: SMTP -> ERROR: RSET failed: 235 2.7.0 Authentication successful target host PS1PR06MB1083.apcprd06.prod.outlook.com SMTP Error: Could not a...
2
1,255
getView of ArrayAdapter inconsistent with image downloading
<p>I have GridView in which images are being downloaded from server, I have used lazy loading methodology for asynchronously adding images to grid.</p> <p>I can see getView method being called many times and inconsistently for positions of grid view till images are being downloaded for position.</p> <p>Now, when i sc...
2
1,159
Stop widgets from overlapping each other and add space between them
<p>I am using <code>QHBoxLayout</code> for layout. The breakdown is: pic.1 is what happens, pic.2 is what I want - widgets don't overlap and there is a gap between them. For pic.2, I created a <code>Gap</code> widget to stick between the existing widgets. But this is a cumbersome solution which implies extra maintenanc...
2
1,937
Scroll bar doesn't scroll all the way to the bottom of my table
<p>I have a table that displays data, and it scrolls to see the rest of the data within the table. The issue is that I am unable to reach the bottom of the table while scrolling. This code is existing code from the previous developers and I'm trying to understand what is stopping it from scrolling to the bottom consi...
2
2,686
Validation and synchronous commands in CQRS
<p>I like the idea of trying CQRS without event sourcing. But I'm not sure how to tackle the fact that I need to give user an instant feedback. </p> <p>This is how my current signup (simplified to understand) I use Dapper for reads and nHibernate for writes.</p> <p><strong>signupcontroller.cs</strong></p> <pre><co...
2
1,951
(Conda)Tensorflow-gpu installing
<p>My goal is to use gpu(GE FORCE GTX 850M). I have tried according to this guide(<a href="https://docs.anaconda.com/anaconda/user-guide/tasks/tensorflow/" rel="nofollow noreferrer">https://docs.anaconda.com/anaconda/user-guide/tasks/tensorflow/</a>). Tensoflow 2.8 is installed and keras also. But when I execute the te...
2
11,908
Ionic multiple "select" filter issue
<p>In my ionic project, I have 3 different filters which change my wine list items.</p> <p><a href="https://i.stack.imgur.com/pwPUw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pwPUw.jpg" alt="Filters and Wine List"></a></p> <p>Every filter works well if I use each one alone.</p> <p><a href="ht...
2
2,854
Cobol: science and fiction
<p>There are a few threads about the relevance of the Cobol programming language on this forum, e.g. <a href="https://stackoverflow.com/questions/2633159/the-unmentioned-parts-of-cobols-history">this thread</a> links to a collection of them. What I am interested in here is a frequently repeated claim based on a study b...
2
1,680
Using EXTERNAL mechanism with Cyrus SASL
<p>Does the Cyrus SASL api not support the EXTERNAL mechanism? I'm trying to use it as a client, but it returns <code>SASL_NOMECH</code> when asked.</p> <pre><code>% cat cyrus_sal_ex.c /* cyrus_sasl_ex.c: Example of using the Cyrus SASL api */ #include &lt;stdio.h&gt; /* for printf() */ #include &lt;sasl/sasl.h...
2
1,154
Flutter - Map blank in device Android
<p>I'm trying to show a map in my app made with flutter, I'm using this Widget: <a href="https://github.com/johnpryan/flutter_map" rel="nofollow noreferrer">flutter_map</a>.</p> <p>When I test my app in emulator, all works fine:</p> <p><a href="https://i.stack.imgur.com/42WF2.png" rel="nofollow noreferrer"><img src="...
2
2,287
Inverted X Axis OpenGL
<p>So I watched a little intro course on youtube to learn the basics of OpenGL and learnt things like making a triangle and a simple camera class, etc. I've wanted to try and work towards making a voxel engine so obviously the first thing that I thought to make was a simple cube that I could eventually replicate. My pr...
2
3,634
Customizing callout view for MKAnnotation in Swift
<p>I need a completely customizable callout for for <code>MKAnnotation</code>. I have subclassed <code>MKAnnotationView</code> and an <code>UIView</code>. My code:</p> <pre><code>class CustomAnnotationView: MKAnnotationView { class var reuseIdentifier:String { return "CustomAnnotationView" } priv...
2
1,265
XPages Bootstrap 3.1.1 and Font-Awesome 4.1.0 combined in a theme not working
<p>I added the files for bootstrap and font-awesome to my WebContent folder and modified the urls in the font-awesome .css file as recommended.</p> <p>Then I created a bootstrap theme, which pulls in all the required bootstrap files (.css, .js), jquery and the font-awesome .css file.</p> <p>However, when I try to use...
2
1,779
how to obfuscate google keys in Android using ProGuard
<p>I have been searching this solution everywhere but I cannot make it work yet. My google API key is stored in a string inside res folder, I have enabled proguard in my project, set the properties, later generating the APK (tried both unsigned and signed) but still being able to do reverse engineering to my generated ...
2
1,544
Play! Framework & Twitter Bootstrap Dropdown active
<p>I have a play framework application and I am using twitter bootstrap for the frontend.</p> <p>In my navigation bar I have four options shown below.</p> <pre><code> &lt;div class="nav-collapse"&gt; &lt;ul class="nav"&gt; &lt;li class="@("active".when(nav == ""))"&gt;&lt;a href="@routes.Applic...
2
2,050
Calculate 7 Day Retention with SQL
<p>Given the following tables, </p> <pre><code>users page_views +-----------------+-----------+ +----------+-----------+ | user_id |varchar| &lt;----+ | pv_id | varchar | | reg_ts |timestamp| | pv_ts ...
2
1,113
How to configure docker-compose for storing data of Elastic search out-side of docker container?
<p><strong>1: Docker-compose.yml</strong> </p> <pre><code> elk: image: elasticsearch:latest ports: - " 127.0.0.1:9200:9200" - "9300:9300" volumes: - ./Elasticsearch/data:/var/lib/elasticsearch - ./Elasticsearch/config/elasticsearch.yml:/etc/elasticsearch/conf...
2
4,305
Unable to clear viewstate
<p>Hi all I am assigning a Datatable for viewstate on certain operations like on each button I will assign a row and will bind that to datatable and assigning that datatable to viewstate. I am having a gridview which was binded with datatable that I was creating. In that I am having a delete option on deleting a row I ...
2
1,253
How to ensure hashcode() does not resolve to same value in Java?
<p>I have a hashcode implementation for a class and the hashcode implementation is consistent with what eclipse generates and also the most commonly accepted practice as discussed <a href="https://stackoverflow.com/questions/113511/hash-code-implementation">here</a></p> <p>Here is my hashcode implementation(All the Id...
2
1,252
Kivy rectangle redraw, self.pos and self.size are (0,0)
<p>I'm using a loop to create 27 label instances. These labels need to be numbered using their Label.text method - This I've achieved.</p> <p>I also need to be able to re-colour these labels (canvas rectangle) using a python function (based on other inputs). <strong>This is the bit that doesn't work</strong></p> <p>B...
2
1,589
Deserializing UTF-8 encoded XML fails when BOM is present
<p>I have a really weird issue here: I'm building an interface to a third-party system which provides XML files (with a UTF-8 encoding) over a SFTP server.</p> <p>I download those files in my C# code, and then I try to deserialize them into a C# object. For most of the files, this works quite nicely, but for some, it ...
2
1,122
AKS Standard Load Balancer TCP Reset Annotations
<p>We are upgrading our AKS cluster in order to use Standard SKU load balancers that went GA recently. See this <a href="https://azure.microsoft.com/en-us/updates/standard-load-balancers-in-azure-kubernetes-service-aks/" rel="nofollow noreferrer">Microsoft Update Notification</a>.Previously only basic SKU load balancer...
2
1,158
Crash on Xcode Run
<p>i run project that imported from Unity3D. then at XCode i try to run to my iPad.</p> <p>Apps can builded and installed but when running it crash (sometime just blank screen).</p> <p>at Xcode i got below error, but i dont understand what these error means ?</p> <pre><code>CrashReporter: initialized 2018-10-23 11:1...
2
3,763
Python win32 api drawText() and SetTextColor
<p>I have managed to mangle together a program that takes a strings over multiple lines and prints them onto a transparent background. I wanted to know if there is a way to colour individual parts of the string different colours. I know there is but my lack of understanding of win32 is really getting in my way here. Do...
2
2,183
Save a ListView scroll position when navigating from list to detail
<p>i'm using a custom ArrayAdapter to show my listView ,i click on item and navigate to detail activitivity , all it's working fine , but when i go back to my listView it's getting scrolling to top, i'm using the master detail flow generated by Android ( i just costumized the listView and detailView )</p> <p>here is m...
2
3,060
UITableView and Async loading with NSURLconnection
<p>I'm having an issue which to me looks like my JSON URL request is completing after I load my UITableView. I attempted to reload the UITableview but that either isn't working properly or didn't do the trick as some of the other questions suggested. This viewcontroller is being coming off an AppDelegate. Would appreci...
2
1,186
Next js: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined
<p>I'm using <code>next js</code> and I want to import rich text editor in my project, but when I tried to import <code>react-draft-wysiwyg</code> then show me error like this:</p> <pre><code>Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: und...
2
1,543
Entity Framework Core 2.2.3 not creating table using code-first approach vs 2017
<p>HI I am trying to learn EntityFramework Core from following tutorials <a href="http://www.entityframeworktutorial.net/code-first/what-is-code-first.aspx" rel="nofollow noreferrer">http://www.entityframeworktutorial.net/code-first/what-is-code-first.aspx</a></p> <p>So far i have created </p> <ul> <li>Domain Class</...
2
1,422
Auto Scroll to next div when user manually scroll between divs // jquery // bootstrap
<p>I created a website that consist of 5 sections horizontally, on a wide container of 500% width. I managed to successfully scroll horizontally between sections (divs) by using the following jquery:</p> <pre><code>$(function () { $("ul#nav a, ul.nav a").click(function (ev) { var anchor = $(this); ...
2
2,466
ConfirmEmailAsync() method is not working
<p>I am having issue in confirming new user email. the Confirm email link works for first 20 minutes , but after 50 minutes the link expires. I have set the token expiration time to 24 hours. Please help me in resolving this issue. I am stuck on it for last 2 days:(.My code is as follows: I am setting the token lifetim...
2
2,509
Angular Material coloring app background dynamically does not work
<p>I'm trying to achieve that the background of my app is a color defined by the currently used theme. This does not really work.</p> <p>What I've tried: <a href="https://stackoverflow.com/questions/43919927/angular-material2-theming-how-to-set-app-background">Angular Material2 theming - how to set app background?</a>...
2
1,316
Android: Canvas: trying to draw too large
<p>I am working with an application on android and , whenever I debug the splashscreen I made, this error appears:</p> <pre><code>java.lang.RuntimeException: Canvas: trying to draw too large(165019200bytes) bitmap. </code></pre> <p>However, I cannot ind where I shoul resize it because my layout seems very normal. It ...
2
4,987
C# minimax algorithm implementation returning values such as -1000, -3000, -8000, etc
<p>I am trying to implement minimax in my C# code for tictactoe. For some reason, when the depth = 1 and I debug it to check to see all of the values returned from different paths; I see crazy values like -1000, -5000, -1000, etc! How is this possible? What is happening? This is my full code,</p> <pre><code>using Sy...
2
6,064
Using semaphores to avoid race-condition
<p>I had to create a race condition program using processes and so did I. Now, I am trying to solve it using semaphores. I've got two critical sections and I am trying to secure them using the semaphore I create in <code>initStem()</code> using <code>semctl()</code>. <code>P()</code> and <code>V()</code> increment and ...
2
1,061
Create an odometer
<p>I tried to write a program here that adds one every time you click on the Step button. The problem I'm having is that every time i click Step, the digit is not incrementing at all. I think I'm supposed to put something in the actionListener block but I do not know what. Please help me... If you think something is no...
2
1,228
C++ Pass Boost::log severity level as argument to function
<p>I want to have only one function to write logs which would parse ellipsis and send result to the Boost::log, based on severity level. In header file would be defined different macros, which would select a correct severity level. There is the code:</p> <pre><code>#include &lt;boost/log/core.hpp&gt; #include &lt;boos...
2
1,087
JSTL not printing values
<p>I have the following code that is supposed to return a sorted list of m numbers between 0 and n - 1. I have verified that the list is created corrected, but the JSP is not printing anything. Can anyone help me with this? This is the method in my action class.</p> <pre><code>public static SortedSet&lt;Integer&gt;...
2
1,119
Dropdown menu in table cell via CSS only
<p>I have a horizontal navigation bar that I am trying to make in to a dropdown menu by using a list and CSS to display the list when it is hovered over. Since this is in a table I am having issues with it not displaying properly. How do I fix the CSS so that this displays properly? Browser will be IE11 and Chrome. </p...
2
1,286
How can realloc not work but malloc can?
<p>I have reached a point where realloc stops returning a pointer - I assume that there is a lack of space for the array to expand or be moved. The only problem is I really need that memory to exist or the application can't run as expected, so I decided to try malloc - expecting it not work since realloc would no work ...
2
1,230
C# .NET Core 2.1 Span<T> and Memory<T> Performance Considerations
<pre><code>using System.Buffers; const byte carriageReturn = (byte)'\r'; const int arbitrarySliceStart = 5; // using Memory&lt;T&gt; async Task&lt;int&gt; ReadAsyncWithMemory(Stream sourceStream, int bufferSize) { var buffer = ArrayPool&lt;byte&gt;.Shared.Rent(bufferSize); var bytesRead = await sourceStream.R...
2
1,492
Can't start hive, some error with hive-metastore-server
<p>I have a problem with a hive setup. I didn't set it up, so my knowledge about this system is limited... An automated update was done with the cloudera manager, an there was no backup made of the postgresql db. The metastore database is using a postgresql setup.</p> <p>As far as I understand it, there can't be a est...
2
7,435
Inheriting from Db class - Two databases connection | PHP
<p>In my app I used one database only, and I created class to provide some common methods. Now I need to implement additional database. </p> <p>So instead of creating separate Db class to do same things, I want to call that Db class with db related parameters.</p> <p>Problem is, when I try to extend Db class with a ...
2
1,705
Wordpress php how to add and save the values of a select dropdown to custom post type
<p>I have created a custom post typ ewithin wordpress called "actors"</p> <p>In this custom post type, I have added some metaboxes where the admin can add custom data about each actor.</p> <p>I need one of these metaboxes to be a select input rather than a text input, however I can't figure out how to make the value ...
2
1,710
Error using GridSearchCV but not without GridSearchCV - Python 3.6.7
<p>I am experiencing a weird bug where my code fails when using <code>GridSearchCV</code>, but not when just running <code>sklearnMLPRegressor</code> on its own.</p> <p>The following code:</p> <pre><code>from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor from sklearn.neural_network import M...
2
3,392
Error pushing to Heroku with Rails - sh: 2: Syntax error: Unterminated quoted string
<p>I'm using rails and trying to push my app to Heroku. I've made various apps before and never ran into this problem. I've spent hours searching for the cause of the problem and just cannot figure it out. I've ran bundle install, bundle update, removed Heroku .env variables, nothing helps. </p> <p>When I run <strong>...
2
10,262
Slick insert into postgreSQL
<p>I am just trying to add a row from slick to my postgreSQL Database.</p> <p>Here what I am trying to do :</p> <pre><code> val dbConfig = DatabaseConfigProvider.get[JdbcProfile](Play.current) import dbConfig.driver.api._ val query = Task += new TaskRow(5, "taskName", status = "other") println(Task.insertStatement...
2
1,657
SearchView with ViewPager adapter
<p>I have one activity with three fragments. I'm using <code>ViewPager</code> with tabs. One fragment is a <code>SearchFragment</code> with a <code>ListView</code>. It sends query to Service class and then, after the service is done it calling a custom adapter and shows the results. The problem is, that i don't know ho...
2
1,599
cytoscape.js dagre layout segment edges
<p>see below cytoscape.js vs dagre-d3.js for same set of data.</p> <ol> <li><p>cytoscape : <a href="https://jsfiddle.net/bababalcksheep/m40m5mmx/6/" rel="nofollow">https://jsfiddle.net/bababalcksheep/m40m5mmx/6/</a></p></li> <li><p>dagre-d3: <a href="http://cpettitt.github.io/project/dagre-d3/latest/demo/tcp-state-dia...
2
3,407
"SchemaRegistryException: Failed to get Kafka cluster ID" for LOCAL setup
<p>I'm downloaded the .tz (I am on MAC) for confluent version <code>7.0.0</code> from the official confluent site and was following the setup for <strong>LOCAL</strong> (1 node) and <strong>Kafka</strong>/<strong>ZooKeeper</strong> are starting fine, but the <strong>Schema Registry</strong> keeps failing (Note, I am be...
2
1,097
Formdata is empty - laravel 5.4
<p><strong>Hi Friends,</strong><br> I am trying to upload an image using ajax in laravel 5.4 </p> <p><strong>Issue</strong> :<br> Formdata is empty on server-side </p> <p><strong>CODE</strong> : </p> <p><strong>View</strong> : </p> <pre><code>&lt;form role="form" action="{{route('auth.upload')}}" method="post" ...
2
1,683
Copying a pointer of a pointer (matrix) values in C
<p>The problem is the following: I created a dynamic matrix, using pointer to pointer <code>matrix1</code></p> <p>I want to create a copy of this matrix into another, <code>matrix2</code></p> <p>I want to do that so I can mess with <code>matrix2</code> without messing with <code>matrix1</code> So I tried to do the fo...
2
1,296
Loop to create lines for graph chartjs
<p>So I make a project where we read out temperature detectors, and I need to make a line graph that shows the data.</p> <p>question: How do I make line graph so that it creates lines according to sensors that are connected.</p> <p>These are my arrays (this needs to be the Y value):</p> <p>These are the temperatures...
2
2,380
How can i run my scenario with chrome using junit4 and selenium webdriver
<p>In 2 days ago a was used this scenario and it works but know all time she didn't I don't know why, I use Selenium webdriver and junit4 so this my scenario and how i run chrome-driver with cmd and the error </p> <pre><code>package com.example.test; import java.util.concurrent.TimeUnit; import org.junit.*; import st...
2
2,666
Problems to dispatch action in React/Redux
<p>I´m pretty new to React and Redux and have some issue during my first steps with it. I tried to follow the examples in the Redux Doc´s, but it´s hard for me to understand everything, because every example is jumping between ES5 - 6 or even 7 syntax.</p> <p>However, When I try to dispatch an action I got the followi...
2
1,625