title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
CAS between two different servers
<p>I have installed a CAS server with a public domain and it works correctly.</p> <p>Now I want to use my other public domain with different services with CAS authentication but, after login in CAS, when I redirect to these services, PHPCas tell me "Authentication failed, you were not authenticated"</p> <p>I have bee...
2
3,107
pthread_join() causing segmentation fault
<p>I'm working on understanding threads and have run up against this segmentation fault that I can't seem to correct. I have narrowed down the error to the <code>pthread_join()</code> function, but can't seem to go any further. My understanding is that the for loop needs to be the same as the one for the <code>pthrea...
2
1,586
How to select WPF TreeViewItem which has been populated using XmlDataProvider?
<p>I have a WPF <code>TreeView</code> which has been populated from an XML file at runtime. I click on a button and a <code>FileDialog</code> box appears and then I select an XML file. Then the XML file is loaded in the <code>TreeView</code>. I have used a <code>XmlDataProvider</code> and some <code>HierarchicalDataTem...
2
2,386
Reading windows logs using jna
<h1>I am getting an exception while reading windows logs using jna</h1> <p>Following is the program, I am using to read the logs. I took this program from another post.</p> <pre><code>import java.io.IOException; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.util.Arrays; import com.sun.jna.*; impo...
2
2,919
How to highlight regions of plot with gnuplot
<p>I'd appreciate if somebody can help with this question. I am working with a radar (or spiderweb) plot with gnuplot 5.0.0:</p> <p><img src="https://i.stack.imgur.com/wC9B1.jpg" alt="enter image description here"></p> <p>The scale and range in all axes is the same. The numbers at and beyond 1 have a special meaning...
2
1,523
bootstrap-select - label and dropdown select box align vertical, not horizontal
<p>I've read and read, and tried tons of stuff, and I'm about to pull out what remains of my hair and could use some advice or another set of eyes:</p> <p>Using bootstrap 3.3.7, and I have a dropdown box which is working and the styling is fine, <strong>but the label <em>AND</em> the dropdown appear next to one anothe...
2
2,535
Webpack project is not running after npm start on the server in development mode
<p>Hi i am trying to deploy my code(Angular.js +webpack_node.js) to the development server from local environment and have written following code. BUt it seems to not work and npm run deploy is giving me lot of warning and on reloading the dns the page is empty.</p> <h2>Package.JSON</h2> <pre><code>{ "name": "opgad...
2
1,882
Using javascript to get values from radio buttons
<p>I'm attempting to setup a small web app using Flask and MySQL which takes information from radio buttons on a page and sends it into a DB. I am very new to webdev, so I'm still stuck on actually getting the information from the buttons.</p> <p>This is the HTML for my radio buttons (stripped of indents):</p> <pre>...
2
1,411
spring security gives the error while redirecting to logout.jsp
<p>I have the </p> <blockquote> <p>ERR_TOO_MANY_REDIRECTS</p> </blockquote> <p>exception while redirecting to logout.jsp page. I think I give this exception because of wrong spring security config file but I don`t know where is it. If somebody know, how to fix it, than please tell me. What does it mean? My code:</p...
2
4,555
How to solve this error "object has no attribute"
<blockquote> <p>error: self.START.clicked.connect(self.StartClicked)</p> <blockquote> <p>AttributeError: 'code' object has no attribute 'StartClicked'</p> </blockquote> </blockquote> <p>Here is my code. I don't know where I am wrong in this code can you please check it and correct me where I am wrong.</p>...
2
2,347
DatePicker disable national days + 48h + weekend
<p>I know, the title isn't really specific, but I have a problem with <code>DatePicker</code>. I try to disable the national days, weekend and 48 hours after today. For the moment I did this :</p> <ul> <li>Hide today + 48hours, I use <code>minDate: 3</code></li> <li>Hide weekend</li> <li>Hide national days, they are s...
2
1,689
Application sometimes crashes after language resource change
<p>Problem: application crashes with <code>StackOverflowError</code></p> <pre><code>ViewRoot.draw(boolean) line: 1374 ViewRoot.performTraversals() line: 1114 ViewRoot.handleMessage(Message) line: 1633 ViewRoot(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 </code></pre> <p>I have a <code>T...
2
1,593
Rspec controller error? expecting <"index"> but rendering with <""> or it's working?
<p>I'm new with rspec test and maybe there are something that I dont undertand.</p> <p>if can any help me, I really appreciate some help. </p> <p>File Structure:</p> <pre><code>app/models/booking.rb app/models/user.rb app/models/role.rb app/models/ability.rb app/controllers/bookings_controller.rb app/views/book...
2
1,146
Using named pipes, how to write messages client receives in its form one by one?
<p>I have a Windows service and a client listening with the following funcionality:</p> <p>Win service:</p> <ol> <li>Creates named pipe</li> <li>Creates client process</li> <li>Waits for connection</li> <li>Writes to client process</li> <li>Reads from client</li> <li>Writes to client process</li> <li>Reads from clien...
2
2,117
Datepicker start by default with next available month
<p>I have a calendar that allows booking and selecting dates, but I need to disable specific weekdays, specific months, in some cases third friday or second tuesday. So I have this functions and variables. But now I realized that the calendar always start with the actual month. </p> <p>In the cases that the actual mon...
2
1,149
Avoid mysql deadlock on simple update query
<p>Im getting mysql deadlock error on this simple update query :</p> <pre><code>UPDATE messages SET seen = 1 WHERE fromId=10 AND toId=20 AND seen = 0 </code></pre> <p>This query is for flag received messages as seen when users open their chat with another user.</p> <p>latest deadlock log obtained from innodb status ...
2
1,512
Laravel, jQuery File upload error - "Call to a member function store() on array"
<p>I use this library to upload files <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow noreferrer">https://github.com/blueimp/jQuery-File-Upload</a></p> <p>When I try to upload a file I get an error: <code>"Call to a member function store() on array"</code> It seems like there's an issue with <cod...
2
2,002
java.lang.NullPointerException cannot solve
<p>My Emulator shows a message that the application stopped unexpectedly. I can't find out the error in my code.</p> <p>This is my main class named <code>Database2Activity</code>:</p> <pre><code>package data.base; import com.example.phone_no.DBhelper; import android.app.Activity; import android.os.Bundle; import an...
2
2,456
Insert values with if condition with mysqli
<p>I am trying to make register member page. If a new member insert an email which has been already exist, then there will be a notification saying that the email is exist. But if the email has not been exist, the values they insert in the form will be send to database. </p> <p>I don't know what is wrong with my code ...
2
1,770
Ubuntu, JavaFX, A fatal error has been detected by the Java Runtime Environment
<p>I have installed ubuntu 14.04.02 x64, oracle jdk 1.8.4 and I try to run JavaFX8 project but I get this message in eclipse(not every time however):</p> <pre><code># # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f69a19a4f78, pid=7035, tid=140090187572992 # # JRE ve...
2
7,977
EF4 code-first: defining object relationships, foreign keys
<p><strong>&lt; RANT_MODE &gt;</strong></p> <p><em>EF code-first approach is meant to save lots of time but for the time being I've only seen toy examples and spent hours trying to understand how I can make it generate the db I want. But still hoping that Eureka moment :-)</em></p> <p><strong>&lt; RANT_MODE /&gt;</stro...
2
1,163
Displaying xml nodes dynamically and applying style to specific nodes using recursion
<p>Below is my xml file.</p> <pre><code>&lt;xml&gt; &lt;top&gt; &lt;main&gt; &lt;firstname&gt;John&lt;/firstname&gt; &lt;lastname&gt;John&lt;/lastname&gt; &lt;table&gt;&lt;/table&gt; &lt;chapter&gt; &lt;firstname&gt;Alex&lt;/firstname&gt; &lt;lastname&gt;Robert&lt;/lastname&gt; &l...
2
1,408
Getting error on selecting a value from a drop down select
<p>I want to fetch a selected value from a drop down 'select' list of 'form' in a jsp page into a variable defined in the action class of the form, where 'select' drop down list is itself fetched dynamically from a column 'name' of database table 'Category' with the list 'categoryList' which is defined in some another ...
2
2,841
How to send message in WebSocket
<p>I took a simple WebSocket server, where web-client sent message (Hello Wordld) and after the server respond to client and sent Hello World"". But I want to get a data from server and after client will print date on web -page. What I did wrong? Can you help me</p> <pre><code>namespace WebSocket { class Program { ...
2
2,496
Scikit learn: Applying Mean Shift on a multi-dimensional dataset
<p>I have a dataset which has 14 different features/columns and 4328 rows, values of which I have then processed and converted into a NumPy array of shape (4328, 14). I have then applied Mean Shift on this NumPy array to train my model, which segregates the data points into 29 different clusters. </p> <p>Cluster centr...
2
5,622
how can using shared preferences string values in surface view class in Android
<p>i am implementing one game application in this application i am using shared preferences in preferences Activity </p> <pre><code>spinnerTheme.setOnItemSelectedListener(new OnItemSelectedListener(){ SharedPreferences prefs1 = getSharedPreferences("TipCalcPreferenceDatabase", 0); Editor e = prefs1.edit(); ...
2
1,069
Handling a VB6 event in C# - why does it only work sometimes?
<p>I have a VB6 application implemented as an ActiveX exe. I also have a C# application that interacts with the VB6 app via COM.</p> <p>This all works fine except in one scenario.</p> <p>If the VB6 app is kicked off from the C# app, everything is fine. If, however, the VB6 app is already running stand-alone, then al...
2
1,268
sbt compile: several "object is not a member of package views.html" errors
<p>I'm trying to build a Scala project based on the framework Play using the sbt. When I try to launch "sbt compile" from my terminal I get several compilation errors like the following one:</p> <pre><code>[error] &lt;project.dir&gt;/app/controllers/Application.scala:229: object database is not a member of package vi...
2
1,578
Google app script export CSV from google spreadsheet date format
<p>I am using a Google app script to export from spreadsheet to CSV. In my spreadsheet, I have columns with date format: DD/MM/YYYY But in the CSV the date becomes like that: </p> <pre><code>Fri Mar 20 2020 00:00:00 GMT+0300 (heure normale d’Afrique de l’Est) </code></pre> <p>Instead of DD/MM/YYYY</p> <p>Any help wi...
2
1,040
Smooks XML-XML transformation with multiple insertion points
<p>I am trying to transform an xml from one format to another using smooks. The source xml looks like what is shown below:</p> <pre><code>&lt;page&gt; &lt;responsedata&gt; &lt;header&gt; ... &lt;ref_no&gt;xyz&lt;/ref_no&gt; &lt;/header&gt; &lt;detail&gt; &lt;acc_no&g...
2
1,081
Switching from AFNetworking to RestKit
<p>I started developing my application using AFNetworking. Everything went OK till I want to use core data. I know there is an additional class (AFIncrementalStore) for that. But because I'm new to IOS-development and there is not a lot of information about that. I decided to switch to RestKit because here is a lot mor...
2
1,168
How to detect if the user has the mobile application from a website and open the app
<p>My website is not mobile responsive, but i have a mobile app for both <strong>Android</strong> and <strong>iOS</strong>. When people visit my website using one of these two platforms, I would like to direct them to my mobile app.</p> <p>If they already have my mobile app, I would like it to auto open that app, oth...
2
1,291
Codeigniter Calendar : Adding Specific Data to A Cell
<p>Here is my problem,</p> <p>I need to show all the people with birthdays with the selected month, I already got on how to put the data on the specific, table cells, the only problem is that the data is also appearing on other tables cells which it is not intended. On the figure below <code>Ori Hendricks</code> must ...
2
1,591
How To Handle Tasks and variables in router File in Joomla
<p>I have Browse the web and prepare a router file for my component com_listing by using instruction on following link</p> <p><a href="http://forum.joomla.org/viewtopic.php?t=611587" rel="nofollow">http://forum.joomla.org/viewtopic.php?t=611587</a></p> <p>Here is my code of router file</p> <pre><code>function listin...
2
1,278
Row selection and pagination - Vue
<p>Using vue, I display my database in a table. My table contains a lot of rows. Therefore, I use pagination. Using the select function, I can select multiple rows and store them in an array.</p> <p>The problem:</p> <ul> <li>I select some rows in my table. The data from the row is stored in my array called selected....
2
3,126
My app get killed (Fatal signal 11)
<p>My android app sometimes gets totally killed and after searching through Logcat I got the following:</p> <pre><code>03-31 13:45:50.512: E/dalvikvm(14458): VM aborting 03-31 13:45:50.512: A/libc(14458): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 14458 (omation.isolace) 03-31 13:45:50.512: D/AEE/AED(131...
2
12,640
Android: Issue with updating the table field
<p>I am wonder about how to update the table.</p> <p>I have use below two method to update the Table.</p> <p>Which one is right one and Whats wrong in it ? As i got the Exception while use both.</p> <p>Code:</p> <pre><code>//First One For Update public boolean setFavouriteBook(String id){ String query = "update...
2
1,346
Change limit for “Mysql Row size too large”
<blockquote> <p>Row size too large (&gt; 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.</p> </blockquote> <p>The following Error occurs while importing the SQL file [Error while importing the SQL file]</p> <p><img src="https://i.stack.imgur.com/fkK...
2
1,716
pygame both audial and visual sine wave
<p>Here is a function from my program, it called when a key is pressed. What is supposed to happen is the key is pressed and a corresponding note is played, and a sine wave appears on the screen also. The sound plays fine, so I won't post any more code for the sound, but it is just the visual side of things that don't ...
2
1,069
ASP.Net Membership Error CREATE DATABASE failed. Some file names listed could not be created. Check related errors
<p>I am trying to add AP.Net membership to my database. I have had success with this in the past so I have some idea of what I am doing. My project is a VB.Net website with Framework 4.5.2. I used asp_regsql.exe in framework 4 to add the schema to my db. I created the following web.config entries (per MSDN articles):</...
2
1,207
Filterable select dropdown (HTML, CSS, JS) - Code directly copied from Codepen not working
<p>I found a nice filterable select dropdown on Codepen, copied the code, and tried to get it working on my computer.</p> <p>While the layout looks fine, filtering does not work locally.</p> <p>Unfortunately, I have absolutely no idea why. Any help is appreciated.</p> <p><strong>Working original Codepen:</strong></p...
2
4,481
Matlab control+enter key on figure
<p>I want to capture when the user holds down the control key and presses the enter key on a figure window. Note: This is the default keys for "Evaluate Current Section" in the editor.</p> <p>See example code below:</p> <pre><code>function test f = figure; f.KeyPressFcn = @myKeyPressFcn; end function myKeyPres...
2
1,027
redirect function setted to refresh doesn't work correctly
<p>I'm building a jquery mobile site and using codeigniter.I build a login and main page.I used <code>redirect</code> function but setted it to refresh, doesn't allow to load correctly main page. Setted it to 'location' load the main page correctly but the URL remain that of login page even if I login correctly and sho...
2
1,659
Maven Multi Module Project breaking compile-time class resolution
<p>I've been previously managing a 3-module project as 3 seperate maven projects. As this project has been moving forward, I decided I ought to take advantage of the dependency management of maven2 to streamline integration between these 3 evolving modules.</p> <p>I defined a super-project that deploys as POM. Some sh...
2
1,783
WPF DataGrid Multithreading Crash
<p>I have a View with a <code>DataGrid</code> in it. A ViewModel as <code>DataContext</code> where i can access a <code>DataTable</code> in a background object. The background object has to work with the <code>DataTable</code> and keep it updated. The user has also be allowed to make changes to that <code>DataTable</co...
2
4,212
ng build --prod works local but fails on remote server after adding Modal from ngx-bootstrap
<p>Basically the tittle: I run <code>ng build --prod</code> on my machine and it works fine, but when I run it on the server it fails. This started happening after I imported the Modal from ngx-bootstrap. My server is running Debian 9 and my computer is running Windows 10. I have no ideia what could it be and apparentl...
2
3,258
How do I get Authentication cookies in all subsequent HTTP Request headers to a WCF service?
<p>I am having troubles getting authentication cookies placed into the HTTP Request Headers of a client Windows Service consuming a WCF Service hosted in IIS that is using ‘Sessions’. The client app uses Forms Authentication to gain access to the WCF Service. After a successful Authentication, I capture the HTTP Resp...
2
1,144
Javascript onclick Button Display Form Fields
<p>I have created a form using Javascript and HTML and what I would like to achieve is when the user clicks "Add Item" button after filling out the default form fields a second row beneath the first form fields gets displayed with the same exact form fields displayed in the first one. Essentially allowing the user to a...
2
1,423
Blur effect fixed to right edge of div with overflow-x:scroll content
<p>I'm want to create a blur over the right edge of visible content of a div with overflow-x:scroll</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.scroll { display:flex;...
2
1,534
Dropdown filter is not working in with Row Group table in PrimeNG controls
<p>In my angular project, I have installed PrimeNG controls version 11.4.4. I have used Table control to create tabular data to show the rows in the group with collapsible style.</p> <p>Now I have added a textbox and dropdown control right before the header row to filter the table data. But the problem is with Row Grou...
2
2,921
How to create a variable hyperlink in an R Shiny App
<p>In my shiny app, I'm trying to create a hyperlink that opens an html file, created from an R Markdown file, to a certain section based on the current tab of the app the user is on.</p> <p>Here's an excerpt from the ui and server code I'm using.</p> <pre><code>ui &lt;- fluidPage(title = "App Title", ...
2
1,041
Maven surefire. Adding timestamp to folder with reports
<p>I'm sure that such a question is already somewhere in internet, but I can't find it so..</p> <p>I use maven-surefire-plugin. It generates surefire-reports folder with reports in it. I want to have different folders for each run. I'm trying to add timestamp in report name like this:</p> <p>Pom part:</p> <pre><code...
2
1,057
How to set values of checkboxes generated dynamically
<p>Good morning,i have a table inside a form, the table is populated dynamically from an array list and for each row in that table i have a checkbox and its the first column in the table the second column in the table is an id, i want to set the value attribute of the checkbox with the text in the cell behind it(the id...
2
1,454
Require.js not working in Phonegap app when data-main attribute omitted
<p>Im developing a Phonegap app with Require.js. In my index.html, I had:</p> <pre><code>&lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt; </code></pre> <p></p> <pre><code>&lt;script type="text/javascript" src="js/app/index.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; app...
2
3,378
mapview error in knitr R markdown document
<p>I've been playing around with the <strong>mapview</strong> package which has recently been loaded onto <a href="https://cran.r-project.org/package=mapview" rel="nofollow">CRAN</a>. I've been playing with the demo code and trying to embed it into a <strong>knitr</strong> <strong>markdown</strong> document. Unfortunat...
2
1,059
Autosuggestion combobox with retrieve the values from mysql database
<p>Am using the following java program for Autosuggestion combobox with retrieve the values from mysql database.the Auto Suggestion working properly.If i type 'A' in the combobox means the list will show the all names starting with 'A'.i add the label in that form.If i select the one name in combo box means the corresp...
2
5,707
Android GoogleSignIn: Multiple accounts at the same time + deferred sign-in upon failure
<p>I'm coding an app which makes use of Firebase Authentication to authenticate with my backend server.</p> <p>I'm offering Google Sign-In and Email/Password based authentication. Email/Password is trivial.</p> <p>This is my flow for using Google Sign-In:</p> <p>1) I create a <strong><code>mGoogleApiClient</code></s...
2
1,598
Magento 2 Rest api to create order not adding shipping address
<p>I am trying to create an order using magento 2 rest api.But the shipping address is not adding with order details.Because of no shipping address the order is in incomplete format</p> <pre><code>http://127.0.0.1/netmeds_mage/rest/V1/orders/create Method : PUT </code></pre> <p>This is the json request : </p> <blo...
2
1,203
Sending file over UDP divided into fragments
<p>I have been dealing with sending file which is divided into fragments set by user on input. Problem is, I am getting error: </p> <p><code>rec_list[fragIndex - 1] = data</code> <code>IndexError: list assignment index out of range</code></p> <p>I am also sending single string messages like in a chat and it works nor...
2
1,577
In cardview with radiogroup in list some radio buttons are already checked
<p>I had created cardview with radio group in android here i am making student attendence taker system ,i had already made backend part and student list is coming correctly and showing in cards but problem is at time of present, or absent marking of student , i had used radiogroup with 4 radio button in each card . But...
2
6,352
JSON data parsing in Django AJAX POST Request
<p>I'm getting below error whenever I send a JSON object via AJAX post request in Django.</p> <pre><code>json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) </code></pre> <p><strong>Code in html:</strong></p> <pre><code> $("#submit").click(function(){ var finalData{}; final...
2
1,281
Error while implementing ARIMA in Python on Quandl Data
<pre><code>df = quandl.get('NSE/TATAMOTORS', start_date='2000-01-01', end_date='2018-05-10') df=df.drop(['Last','Total Trade Quantity','Turnover (Lacs)'], axis=1) df.head(10) </code></pre> <p>OUTPUT - </p> <pre><code> Open High Low Close Date 2003-12-26 435.80 440.50...
2
1,792
Check value of textbox is blank or not when form submit using yii framework
<p>I am new in yii framework.I am doing a search search operation using yii framework.My requirement is to check textbox value is null or not in the controller.I can print the textbox value in a variable '$experience'.but i cant check it is blank or not.controler name Sitecontroller.php,view search.php and model job.ph...
2
1,337
How to return RSA key in jwks_uri endpoint for OpenID Connect Discovery
<p>Working on the discovery part of an OpenID Connect provider, I'm a bit confused about how to properly return my <em>public</em> <em>keys</em>. My problem is specifically with the <code>modulus (n)</code> and the <code>exponent (e)</code> values.</p> <p>The initial values of both are:</p> <pre><code>n = 12469297194...
2
1,034
Hierarchial Datagrids in WPF
<p>I have a hierarchical Data grid.</p> <pre><code>&lt;DataGrid Name="dgList" ItemsSource="{Binding List1}" Grid.Row="0" Margin="0,0,0,0" CanUserAddRows="False" AutoGenerateColumns="False" IsReadOnly="True" &gt; &lt;DataGrid.Columns&gt; &lt;DataGridTextColumn Header="S...
2
1,142
Get Cached data storage programmatically
<p>I want to get cached data size at "Internal storage" in "settings", like this:</p> <p><img src="https://i.stack.imgur.com/BqLO3.jpg" alt="Cache Data size"></p> <p>I tried to get all application cache by invoking <strong>getPackageSizeInfo</strong> using Java Reflection. Yes it did got all cached size of apps, but ...
2
4,485
node.js - setInterval & setTimeout incrementally repeating command
<p>I'm trying to help a friend setup a bot for <code>Picarto.tv</code>, we have the bot <a href="https://github.com/Wolvan/PicartoChatBot" rel="nofollow">LINK</a> and there's no default <code>plugin</code> there for repeating messages, so I tried to make a very crude (seriously, it's terrible. I'm not a developer.) <co...
2
1,128
How to use the "__ProviderArchitecture" flag of IWbemContext in c?
<p>I've been trying to follow the following <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa393067%28v=vs.85%29.aspx" rel="nofollow">MSDN tutorial</a> to query the 64 bit registry provider from a 32 bit application.</p> <p>Sadly, the examples are all written in VB, and I'm stuck with something.</p> ...
2
1,233
How to position options of select box
<p>I have a select box below a header. Header is fixed header at the top of the page. When I click on it and when first option is selected it shows nicely.(could not add more link as I do not have much reputation)</p> <p>Lets say I selected second option. Now when I click on the select box to change option the top par...
2
1,862
Android socket client - can't send messages
<p>First off, I'm a complete newbie to Android, Java and posting on Stacks Overflow so apologies if I'm doing anything wrong!</p> <p>I'm trying to create a simple app for a project that utilises sockets. I want to set up a client on an Android device that sends commands to a server running on a PC. I've written my ser...
2
3,192
How do I pass JSON data between controller in Swift 3.0?
<p>I have these JSON data:</p> <pre><code>{"login":"ET001","email":"email@try.com"} </code></pre> <p>In Swift 3.0, I created two files which are LoginVC and ViewController.</p> <p>ViewController can only be accessed after LoginVC verified the credentials. So far I managed to make the login access the ViewController ...
2
1,559
TypeError: argument must be a string or number on column with strings that are numbers
<p>I have a dataset with categories. In column 4 I have 2 values( two and four which are strings). Do you know why I get the error and how to fix it?TypeError: argument must be a string or number</p> <pre><code>Traceback (most recent call last): File &quot;C:..&quot;.py&quot;, line 112, in _encode res = _encode_...
2
1,048
Multiplying large matrices with dask
<p>I am working on a project which basically boils down to solving the matrix equation</p> <pre><code>A.dot(x) = d </code></pre> <p>where <code>A</code> is a matrix with dimensions roughly 10 000 000 by 2000 (I would like to increase this in both directions eventually). </p> <p><code>A</code> obviously does not fit ...
2
1,194
How can I communicate between plugins?
<p>I have a plugin system where I use <code>MarshalByRefObject</code> to create isolated domains per plugin, so users can reload their new versions, as they see fit without having to turn off the main application.</p> <p>Now I have the need to allow a plugin to view which plugins are currently running and perhaps start...
2
1,281
UnsatisfiedLinkError: No implementation found for void mono.android.text.TextWatcherImplementor
<p>I'm working on <strong>Xamarin.Android</strong> project and after having updated all libraries to the newest and on Release version I have such an exception:</p> <pre><code>07-26 09:17:08.681 9603-9603/? E/AndroidRuntime: FATAL EXCEPTION: main Process: xx.xx.xx, PID: xxxx java.lang.UnsatisfiedLinkError: No implemen...
2
1,479
C++ Segmentation fault on linux
<p>Sorry that I am new to c++ and linux, I haven't seen Segmentation fault before. I can successfully compile the file but it just outputs Segmentation fault.</p> <p>I tried to google Segmentation fault but still no clue on how to fix my code.</p> <p>Hope someone can rescue me and tell me what's wrong <strong>by spec...
2
1,363
Attempt to invoke virtual method 'Bundle.getParcelableArrayList(java.lang.String)' on a null object reference
<p>I have MainActivity managing two fragments.from one i am choosing song and from another i am playing it. But when i am trying to run it i am getting runtimeException.</p> <p>Code for fragment current_song.java :</p> <pre><code>package com.example.mandar.mediaplayer; import android.content.Context; import android....
2
9,949
Unable to send variable from flash(parent) to loaded flex swf(child)?
<p>Hai am trying to load the variables from parent(flash) to child(flash).Its working fine,.</p> <p><strong>parent swf:</strong>(flash)</p> <pre><code>var parentMessage:String = "Hello"; var swf:MovieClip; var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded); l.load(new URLRequ...
2
1,154
MVVM IValueConverter Convert method getting empty string argument when expecting a float
<p>This may get a tad long, but here goes. I have created a small, wizard-style sample app using the MVVM pattern (basically a dumbed-down version of the code in my "real" app). In this app, the main window moves from through a List&lt;..> of view models, with each view model displaying its associated view. I have 2...
2
3,038
Task Module call from Ms Teams in Bot Framework
<p>I am looking to open a task module (Pop up - iframe with audio/video) in my bot that is connected to Teams channel. I am having issues following the sample code provided on the GitHub page.</p> <p>I have tried to follow the sample and incorporate to my code by did not succeed. </p> <p>In my bot.cs file I am creat...
2
1,222
NSAttributedString from HTML on main thread behaves as if multithreading
<p>I'm converting some HTML to an <code>NSAttributedString</code> on the main thread (the way Apple tells you to). It takes some time and then it continues executing the rest of the block.</p> <p>Now, if another block is queued to run in the <strong>main</strong> thread too (e.g. after getting a response from an HTTP ...
2
1,313
Why does Java swing timer lead to less animation stutter than sleep?
<p>I have two almost identical classes: AnimationFrame1 and AnimationFrame2. Both of these classes display a blue ball moving back and forth horizontally across a 500 x 500 window. The two classes are identical save for the runAnimation() and createAndShowGUI() methods. In its runAnimation() method, AnimationFrame1 ...
2
2,758
memory leak with size of arraylist
<p>I have this in one activity :</p> <pre><code>public void onCreate(Bundle savedInstanceState) { time=(EditText) findViewById(R.id.time); ... public void mass_func(){ ... double ttime=Double.parseDouble(time.getText().toString().trim()); double res=mass*(Math.pow(0.5,ttime/half_time)); ...
2
11,204
Create a fully static Libcurl library
<p>First I'll explain the big picture :</p> <p>I am creating an application where I separated most of the features in different libraries. One of them contains some classes that use curl. I actually use Ubuntu 64 bit to develop and test it, but my production environment is a NAS with an ARM processor. I intend to, lat...
2
1,064
Unable to pass array of integers to asp.net webapi from angular 7 application
<p>I am trying to pass an array of integer values to the server webapi endpoint via my angular 7 application getDocumentUploadDetailsByIds method. For some reason the endpoint is receiving null value. I have tried several ways but the parameter of the endpoint is null. Could somebody tell me where I am going wrong</p> ...
2
1,800
Generic type parameters inference in method chaining
<p>After reading <a href="https://stackoverflow.com/questions/43869399/initialize-an-immutablemap-with-explicit-types">this question</a>, I've started to think about generic methods <strong>in Java 8</strong>. Specifically, what happens with generic type parameters when methods are chained. </p> <p>For this question, ...
2
1,590
how to extract keys and values from a list of object in asp.net core c#
<p>I passed an array of object key-value pairs from the frontend to the controller. refer here for clarification <a href="https://stackoverflow.com/questions/67870420/how-to-pass-array-of-objects-to-asp-net-core-controller-via-ajax/67871285#67871285">Pass array of objects to asp.net core controller via ajax</a></p> <p>...
2
1,040
Configuration hibernate jpa and spring mvc (entityManager is always null)
<p>Good morning , I'm still new with hibernate jpa and spring this is my first projet I make and every time i try to execute it I got npe. This is my code</p> <p>applicationContext.xml</p> <p> http://www.springframework.org/schema/beans/spring-beans.xsd<br> <a href="http://www.springframework.org/schema/tx" r...
2
1,741
How to load PHP dynamically generated XML in FLASH
<p><em>Question Updated for Bounty</em></p> <p>In Flash I need to load a dynamically generated XML file, which is created using PHP.</p> <p>I'm using the [Bulk-loader library][1] for all my loading.</p> <p>Currently my Flash can only load a manually created XML file, what I need Flash to do is to load a PHP generate...
2
2,350
org.wso2.andes.kernel.AndesException: Unable to initialise application registry - Issue of WSO2 AM with Java 8
<p>I am trying to setup the <strong>WSO2 API Manager</strong> in <strong>window 10 with JDK 1.8</strong>. While trying to start the server, I'm getting below error.</p> <p>I followed the link: <a href="https://docs.wso2.com/display/AM210/Running+the+Product" rel="nofollow noreferrer">https://docs.wso2.com/display/AM21...
2
3,326
Context initialization failed when running Tomcat server in a Spring MVC application
<p>I get a <code>context initialization failed</code> error when I run the Tomcat server in my spring mvc application.</p> <p>The strange thing is that I still have the output of the program and it's working correctly with no error, but I don't understand why I have this error when I first run the server.</p> <p><str...
2
8,488
Backbone collection length always set to one with nested views
<p>When the view is loaded, the collection length always return 1 while there is currently 3 members shows up in the parse function. I wondered if the problem was the nested item view, but it seems to behave the same without ! I don't understand why the self.push(member) does not add the model to the collection ! Bit s...
2
1,157
Find and merge all package.json files into one using jq in bash?
<p>How can I find all <code>package.json</code> files and merge them into one file using <code>jq</code> within Bash? The following snippet is as far as I have gotten, however it <strong>appends</strong> the files:</p> <pre><code>find ../../projects -maxdepth 4 -type f -name "package.json" \ -exec cat {} + | jq -s ...
2
1,075
NSTextAttachment with text flowing around it
<p>I have a TextKit based editor with support to adding images. I want to show each image on separate lines. </p> <p>My code looks like this (Thank you TextEdit), in my subclass of NSTextStorage</p> <pre><code>- (void)addImageAssets:(NSArray *)allAssets atRange:(NSRange)range; { NSMutableAttributedString *attach...
2
1,028
NamedPipe interprocess between c++ and Java application
<p>I need start a named pipe server from c++ side and get a java application to read from the pipe. </p> <p>For the C++ side which creates the pipe, I followed the example from MSDN: <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa365603(v=vs.85).aspx" rel="nofollow">https://msdn.microsoft.com/en-u...
2
2,793
How do I save the sort order of a jQueryUI Sortable list into localStorage
<p>I am using the jQueryUI Sortable function for an unordered list. I would like to save the sorted order into the localstorage. What is the best way to do this? I was thinking ajax but I'm not sure quite how to do that.</p> <p>Here is my source code so far.</p> <pre><code>&lt;ul id="wrapper"&gt; &lt;li class="...
2
1,086
JButton action listener issue. Slider values being displayed in fields
<p>So I have a program that is due tomorrow and I have held out as long as I can trying to figure out what is wrong with my code. First and biggest issue that has had me stumped for quiet a while is my reset buttons action listener. It just wont compile properly and says value not found? I commented it out so I could a...
2
1,894
Running multiple cassandra instances on one machine
<p>This is my second attempt at setting up a 3-node Cassandra cluster on my machine. I'm not able to start the first instance. During startup I get</p> <pre><code>Exception encountered during startup org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/user1/TestCluster/node1/dsc-cassandra...
2
1,869
Run Pocketsphinx and Google TTS together
<p>I want to start a new activity that recognizes speech from the beginning and could read incoming message right after the activity started. </p> <p>This code is the code that merged from default. It runs well in default condition. But I want to remove the button as the trigger and use voice instead to trigger furthe...
2
4,627
How to deal with stale state values inside of a useEffect closure?
<p>The following example is of a Timer component that has a button (to start the timer), and two tags that display the number of elapsed seconds, and the number of elapsed seconds times 2.</p> <p>However, it does not work (<a href="https://codesandbox.io/s/vibrant-panini-wj1h6?file=/src/App.js" rel="nofollow noreferre...
2
2,154