title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to send response from zuul pre type filter?
<p>I am using Netflix zuul as api gateway. In a pre type Authentication filter, I am validating jwt tokens. If the token is expired or invalid, the request is not forwarded to underlying services. The filter should block the request and send a response to the client. The http response status code should be 403. But whe...
3
1,338
How to load a list into a ComboBox DataGrid and display selected value from another list?
<p><strong>Goal</strong></p> <p>I am aiming to achieve the following:</p> <ul> <li>Load Person List to DataGrid ✔️</li> <li>Load Positions List to DataGrid column into a ComboBox ✔️</li> <li>Set the Person's Position value to Position's ComboBox ❌</li> </ul> <p><strong>Visual Output</strong></p> <p><a href="https://i.s...
3
1,449
docker springboot only connects on postgres 5432 via docker-compose
<p>Using docker to connect springboot to postgres via docker-compose. Using port 5432 on postgres works fine, if i try an port other than that it fails</p> <p><strong>working code</strong></p> <p>spring</p> <pre><code>spring.datasource.url=jdbc:postgresql://db:5432/wwc spring.datasource.username=wwc spring.datasour...
3
1,089
Retrieving a delegate type using custom types from an assembly that is currently being built
<p>I am trying to make a compiler in F# using the API provided in System.Reflection.Emit. I am running into a problem when I try to create functions (delegates) for the types in the assembly that I am currently building. Example translating the following Java (a slightly modified version of Java) class:</p> <pre><code>...
3
1,085
Not able to search through mockData
<p>Hi i am working on an react project. in that project i am able to categorize the books through mock data that i created but not able to search through that mock data list</p> <p>the error is {(TypeError: _this5.props.onSearch is not a function) which is in SearchBooksInput component}</p> <p>1)below is my app.js fi...
3
2,385
Multiple instances of the same android compound component
<p>I have a custom EditText component (compound component, based on LinearLayout) and I am using multiple instances in the same Activity. The custom component works as expected, however, when I rotate the ui, the text that was entered in the second component is suddenly copied to the first component. Otherwise, both c...
3
3,369
How to add new field for save and retrieve image from sql database
<p>I read <a href="http://androidhub4you.blogspot.com/2012/09/hello-friends-today-i-am-going-to-share.html" rel="nofollow">this tutorial</a> and edit this and add new field Image of type Blob but i m confuse how to do this i try but not solving please help me how i do this? how to add image in database what is wrong in...
3
7,474
Need a ajax pagination in codeigniter
<p>I am having a view in codeigniter where i have used codeigniter pagination method. I need to load the pagination via ajax so that my page will not change..</p> <p>Currently my url is like this for first page. <a href="http://192.168.1.60/dream1/testimonial" rel="nofollow">http://192.168.1.60/dream1/testimonial</a><...
3
5,714
When when i append text to the text file then some of the text is mess lines empty and some lines not start from the beginning of the line?
<p>This is the code:</p> <pre><code>private void PostMessage() { WritePostedAlready = new StreamWriter(@"c:\Temp\WritePostedAlready.txt",true); for (int i = 0; i &lt; ScrollLabel._lines.Length; i++) { for (int x = 0; x &lt; WordsList.words.Length; x++) ...
3
3,070
FutureBuilder snapshot.data getting set to null before the http call
<p>I am trying to modify the List fetched during the future call and not call the future function again, so assigned a variable to <code>future</code> option of <code>FutureBuilder</code> and called the actual function in the <code>initState()</code>, but now the build function is rendering straight the <code>snapshot....
3
1,079
Show modal by item ID in ASP.NET WebForms
<p>I'm using repeaters to display a list of items retrieved from the database. I would like to support basic CRUD operations on such items via a simple modal dialog box.</p> <p>I have tried using <code>onitemcommand</code> to manipulate each item, I tried using labels to get id, I have also tried using <code>OnClick</...
3
4,993
Reading timeseries from multiple csv files in a folder: MATLAB
<p>I have a bunch of csv files in a folder in following format, I want to extract complete time series from each (the numeric part from line #17), identify duplicate record and merge them in a ascending order according to year and date. Specific csv file is accessible via google drive link below </p> <pre><code> w...
3
1,249
PHP Script stop running on Shared Host
<p>I really tried to find an answer in each question here and on google and I couldn't find any.</p> <p>My php code just stop running in the middle of the code and at different times every time I run the code. I don't think it's a problem with CURL function, because the code stops sometimes before or after the CURL fun...
3
4,131
FOSBundle views not overridden by custom views in Symfony 2.5
<p>There is some weird mismatch between the FosBundle views implementation on my local environment a the DEV one. Both systems share the exact same configuration files and environment variable and are using the same branch. Everything is pulled and pushed on both and the <code>.gitignore</code> content is the same.</p>...
3
1,303
A method doesn't work when I use Button.setText(" ") inside it
<p>I have an android app that consists of two classes JSONTransmitter class and MainActivity class the goal of this app is to post and get response from a php file and display this response on a widget.</p> <p>I have a small problem on onResponse method of MainActivity class-when I use button.setText("") it doesn't w...
3
2,728
how to efficienlty do dataframe shift with a jump
<p>I have 60 log files that I am analysis. From those files I created the dataframe <code>state_n_ev_mat</code>. Its size is <strong><code>[2083656 rows x 8 columns]</code></strong>. Below you can see the first 50 rows of <code>state_n_ev_mat</code>.</p> <p>Where, <code>block</code> identifies each file, <code>ts</cod...
3
2,328
How to remove spaces between two tds in a single table
<p>I am working in a html table where i have multiple tds there so my problem is that i want to reduce the space between the tds ,using css how to do that? Here i my code </p> <pre><code>&lt;table id="employementInfo"&gt; &lt;tr&gt; &lt;th colspan="3" id="currentEmploymentHeading"&gt; ...
3
8,598
How to show reign of area using SurfaceView and SurfaceHolder?
<p>I would like to know if there is a way to show only a reign of area of the camera that shown on a SurfaceView.</p> <p>I've got an image like that (microscopic image)<img src="https://i.stack.imgur.com/phCKi.png" alt="Full Image"></p> <p>and I want to show image like that(Cropped and <strong>Stretched</strong>): <...
3
1,207
Highcharts Bar Chart not printing correctly
<p>I have a bar chart using Highcharts. On the screen it looks like this: </p> <p><img src="https://i.stack.imgur.com/Wkthy.png" alt="enter image description here"></p> <p>But when I go to print it looks like this: <img src="https://i.stack.imgur.com/EOw1b.png" alt="enter image description here"></p> <p>So basically...
3
1,728
Logstash not performing task
<p>I want some data in a postgresql database to be indexed to an elasticsearch index. To do so I decided to use Logstash. I installed Logstash and JDBC.</p> <p>I perform the following config:</p> <pre><code> jdbc { jdbc_connection_string =&gt; &quot;jdbc:postgresql://localhost:5432/product_data&quot; ...
3
1,639
Flexible return type for std::function, when the std::function is an argument of a virtual function
<p>My question is related to the question <a href="https://stackoverflow.com/questions/5871722/how-to-achieve-virtual-template-function-in-c">here</a>, but in the context of <code>std::function</code>.</p> <p>I have a virtual function that needs to take a <code>std::function</code> as an argument. However, I want the u...
3
1,073
How to "make friends" TestContainers Webdriver Containers and ParameterizedTest (JUnit5)
<p>I have a problem with running @ParameterizedTest via TestContainers. @Test running via TestContainers, but as soon as I change to @ParameterizedTest, then everything starts running on my local Сhrome instance. In TestContainers's documentation I didn't find some information about @ParameterizedTest.</p> <p>This is w...
3
1,261
Apache client closes connection too long (in 1 second)
<p>I have simmilar issue as this described in <a href="https://stackoverflow.com/questions/68929051/wiremock-sometimes-it-throws-software-caused-connection-abort-recv-failed">Wiremock - sometimes it throws &quot;Software caused connection abort: recv failed&quot;</a></p> <p>that's why I have added header <code>connecti...
3
1,287
Azure search service index pointing multiple document db collections
<p>How to load data from two separate collections of azure cosmos db to a single azure search index? I need a solution to join the data from two collections in a way similar to inner joining concept of SQL and load that data to azure search service.</p> <p>I have two collections in azure cosmos db. One for product and...
3
1,160
Logic for finding qibla direction using accelerometer and magnetic field sensors
<p>I am trying to implement the logic for finding the qibla direction.</p> <p>I used <code>Sensor.TYPE_ORIENTATION</code> and copied the code from <a href="https://stackoverflow.com/questions/41036933/universal-logic-for-finding-qibla-direction">here</a></p> <pre class="lang-java prettyprint-override"><code>mSensorMana...
3
1,104
RSS Feed - While parsing closing tag exception occurs
<p>I am using rome-1.5.jar for parsing RSS Feed. But when it parse some rss feed it gives an error of closing meta tag. </p> <p>RSS Feed link : <a href="http://www.nytimes.com/services/xml/rss/index.html" rel="nofollow">NewYork Times RSS Feed Link</a></p> <p>here is the code</p> <pre><code> public static SyndFeed ge...
3
2,235
Show a thumbnail image in gallery but download the original
<p>I have a gallery of images that are loaded dynamically from the database. The original images weigh approximately 3Mb each, so I am making a Thumbnail of each one so I can optimize my web page. Thanks to the thumbnail, the images now weigh approximately between 300kb and 500kb.</p> <p>The images when I get them from...
3
1,728
How to convert a collection of hashtables to a table within a file?
<p>We're trying to write an <code>array</code> of ordered <code>hashtables</code> to a file. While doing this we would like to to be aligned properly in a table format. A bit similar to <code>Format-Table</code> but differently presented.</p> <p>The code below works fine for the first case but not for the second one. I...
3
1,580
How to count events over time and group by conditions based on datetimes with Dataframes in R
<p>I am being faced with the challenge of building a table by doing some data wrangling with two different datasets.</p> <p>DataSet A: Has the information of purchases in a clothing store with the variables: name of client, date of purchase, agent and product purchased during a period of time t.</p> <pre><code>df1 &lt;...
3
1,357
How to build a modern, synchronized ObservableCollection?
<p>After reading <a href="https://thomaslevesque.com/2009/04/17/wpf-binding-to-an-asynchronous-collection/" rel="nofollow noreferrer">several</a> <a href="http://10rem.net/blog/2012/01/20/wpf-45-cross-thread-collection-synchronization-redux" rel="nofollow noreferrer">tutorials</a>, <a href="https://www.codeproject.com/...
3
3,837
How to read characteristic from BLE device until it have results?
<p>I'm building an app that should to connect with a BLE device. This device, storage the information that retreive from its sensors in a queque.</p> <p>It is possibile that at the time X, the queque of this device have 100 items value.</p> <p>Now my Android application must to connect of it, and download the data of...
3
4,423
Building a custom JSON serializer that isn't invoked by default
<p>I'm using Newtownsoft JSON.Net and want to add custom attributes, then have a JSONConverter that deals with these custom attributes. Currently the way to do this is <code>[JsonConverter(typeof(CustomJsonConverter))]</code>. But I don't want this converter to always be called, only when I pass it into <code>JsonConve...
3
1,424
XMLSerialization Variable
<p>I have an object named DocInvoicing representing an Invoice, this object has 2 Taxpayers related, one is an Issuer TaxPayer and the other is a Receiver TaxPayer each of this TaxPayers are basically the same object, every Taxpayer has 1 billto address and a list of shipto addresses, but when I am serializing it to XM...
3
3,128
jQuery + HTML5 Sortable: Buggy and flickering when I do drag and drop
<p>Here's my JS Fiddle: <a href="http://jsfiddle.net/s3ZpF/2/" rel="nofollow">http://jsfiddle.net/s3ZpF/2/</a></p> <p>When I grab any of the <code>&lt;li</code>>...</li>`s from the left and try to drag it to the middle right one and leave my mouse over it without letting go of my mouse, it flickers constantly. It also...
3
1,894
Cascading DropDownList doesn't populate automatically while performing Edit function
<p>When I try to edit my product profile list it shows all the fields but in cascading drop down list doesn't show the list which I selected while creating my product,those fields doesn't populate accurately. On view you can also see jQuery code.<br> I am new in Mvc and this is the second time asking same question coul...
3
5,943
Retrieving column and row indices for non-zero values from a list of xts
<p>I have data that looks like:</p> <pre><code> [[1]] KRW.LOW.1 2014-08-08 NA 2014-08-11 -1 2014-08-12 -1 2014-08-13 -1 2014-08-14 -1 [[2]] MYR.LOW.1 2014-08-08 NA 2014-08-11 -1 2014-08-12 -1 2014-08-13 0 2014-08-14 0 </code></pre> <p>These are s...
3
4,908
while streaming video file, file is getting locked by another process using PushStreamContent..how to solve it
<p>I am trying to stream video file . when i open the same video file in another tab of browser , i get the message "file is being used by another process" . if I use FileShare.ReadWrite in file.open method then error goes away but video doesn't play in browser . can someone pl. help . </p> <pre><code>public HttpRespo...
3
1,146
C++ Visual Studio 2010 - Using Threads, Deque And Handlers
<p>I'm trying to use multiple threads in an application that reads out of a large file.</p> <p>I want to read from the file in the main thread and put each line into a deque called <code>countedAddresses</code>. The I want multiple threads to pick lines out of <code>countedAddresses</code> and pull all of the email ad...
3
2,129
Image above video tag html
<p>I want to make a television in my website and I need to center a image above a video <a href="https://i.stack.imgur.com/W7UwP.png" rel="nofollow noreferrer">like this</a>.</p> <p>This is the html code :</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="s...
3
1,264
how to calculate the derivate value of Multi-input models in keras by with tensorflow backend
<p><a href="https://i.stack.imgur.com/t8wJ4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t8wJ4.png" alt="here is my nueral network. Use LSTM output as dense layer input. "></a></p> <p>My question is: I want to calculate the derivation of "time input" and "dense_input". Before asking question, <a...
3
1,189
Using Multiple Custom Preferences Messes Up, Layout, Preference Titles And Shared Preference Values
<p>I'd created a custom preference view, that is working perfectly when using a single instance of it in my preference screen, however when inserting multiple instances of it, everything became a mess. Some instances takes the title of other ones, when clicking on lets say <code>view1</code> then <code>view2</code> foc...
3
8,299
Hide Boostrap table row if date in td is before (older than) today's date?
<p>I know it is possible to do this using html and javaScript / jQuery but my knowledge of javaScript is minimal so I was really hoping for someone here to help me with a solution.</p> <p>How can I hide a row in a table if the date in the row (td) is older than the present date?</p> <p>In searching previous questions...
3
1,082
Deserialize XML into Entitylist using C# from XMLdocument
<p>Refer the below XML File with multiple event nodes into parent events tag</p> <pre><code>&lt;events&gt; &lt;event eventid="ahjy67kl" sessionid="1"&gt; &lt;eventtitle&gt; &lt;![CDATA[ phoneEventchad_1 ]]&gt; &lt;/eventtitle&gt; &lt;eventabstract/&gt; &lt;timezone&gt;IND&lt;/timezone&gt; &lt;eventtimedate&gt;Wed, 24 ...
3
1,993
Updating Access 2010 Table from Excel VBA Only updates only one record
<p>Having quite a time trying to update an access table from excel. I am using ADOB Connection and looping through spreadsheet that has the updates. This can be anywhere from 200 records to 1000 + records. </p> <p>When running the following code It will only update one record in the access table despite showing it ...
3
1,289
How to parse column of table that contain json array to table in asp.net core c#
<p>I have a problem. I have a column in my table that contains a JSON array, and I need to get this value and display it as a table in a cshtml view</p> <p>I created a method that returns JSON of this value.</p> <pre><code>public ActionResult GetComposant(String fam) { var ComposantInfo = ((_context.Fds.Whe...
3
1,508
'ReadTimeoutError' followed by 'No matching distribution found for X' when trying to download packages using pip
<h2>Update - problem partially solved, see bottom of question</h2> <p>So, I've been over every post of this sort, but none had supplied me with a solution for my condition.</p> <p>I've just formatted my laptop and installed ubuntu 20.4 LTS. then, I established a pyenv layout and downloaded python3.6.0/3.6.4/3.7.0/3.8.0...
3
1,822
Android java, Side drawer menu is showing up whenever the app is launched and the app is getting crashed on closing the menu
<p>java.lang.IllegalArgumentException: No drawer view found with gravity LEFT</p> <p>at com.example.books.MainActivity.onOptionsItemSelected(MainActivity.java:245)</p> <p>The terminal shows that the error is with the onOptionsItemSelected function</p> <p>I have referred many StackOverflow posts regarding errors with si...
3
13,184
Need help refining code to run a for loop to summarize economic variables from a csv file?
<p>I have a csv file with a time series of two economic variables (housing starts and Unemployment). I have a list of calculations and a summary (text) that is written with the output of the calculations (basically summarizing in a paragraph format what the trends are of the data). I would like feedback on how i get I ...
3
1,100
Tableview category refinement
<p>I have a large amount of data in firebase that I am displaying on a tableview. The data is of different businesses nearby and I want to add a feature to filter/sort the data by business type(food, travel, shopping, ect..). I added a tab bar with a segmented control to work as the filter/sort feature. When the user s...
3
3,049
How to convert this PHP array ina working price calculation?
<p>Here comes the tricky part<br> In a rent application, I have arrays like this (of course array size and values may vary):</p> <pre><code>$dates = array(); // each "pipe" | is an item for visual help $dates['2013-07-15'] = 2; // || $dates['2013-07-16'] = 2; // || $dates['2013-07-17'] = 5; // ||||| $dates['2013-07-18...
3
1,421
Extract a new object by matching a common property between an IQueryable<T> and a Dictionary<String, String>
<p>I have an scenario where I need to generate a new <code>List&lt;my_custom_object&gt;</code> by extracting, on the basis of a common column, matched properties between an <code>IQueryable&lt;T&gt;</code> and a <code>Dictionary&lt;String, String&gt;</code>.</p> <p>Here is my Dictionary:</p> <pre><code>DirectoryProfi...
3
1,184
Using Spring Boot 1.2 YAML configuration
<p>I have an application with Spring Boot 1.2 and I need to use YAML configuration. I tried following settings:</p> <p><strong>pom.xml</strong></p> <pre><code>&lt;parent&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt; &lt;version&gt...
3
1,036
Should I hard code IAM credentials for CloudWatch logging within client apps?
<p>I have an IAM User that has programmatic access to the CloudWatch Log APIs via access / secret keys. I'm using the following policy to restrict it's access to just a specific <code>LogGroup</code>.</p> <pre><code>{ &quot;Version&quot;: &quot;2012-10-17&quot;, &quot;Statement&quot;: [ { &q...
3
1,205
Why am I getting nosuchfileextension error in apache spark?
<p>[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/r5ePs.jpg</p> <p>I am running a code in cluster with 2 executors and 1 master node &quot;Standalone cluster&quot;. When I try to execute the jar file with <code>spark-submit</code> I get the following error &quot;refer to the image&quot;. But, in...
3
2,187
How to make ajax request for dependent drop down
<p>I am new to programming and learning django. I am struggling to understand how to make ajax request to fetch data to create dependent dropdown lists. I have looked around on various google searches and stackoverflow but I get more confused looking at them. Hence, I could not move forward with fetching the dependent ...
3
2,085
Why is the following code only running here?
<p>With the following code I have the problem that it only runs here properly . The problem can be seen in the <code>radio button</code> selection, which ageht what was selected where.</p> <p>Interestingly, this does not work on <a href="https://jsfiddle.net/uwrt8zad/" rel="nofollow noreferrer">Fiddle</a> and on my p...
3
2,846
How to manually built ndk-build (shared library) in existing android studio project
<p>I have an existing android studio project. I have made shared library named <em>libtst.so</em> using ndk with proper jni functions. I have put the library in the following directory<br> "src/main/jniLibs/armeabi-v7a/libtst.so"</p> <p>But while running the project <strong>System.loadLibrary("tst");</strong> cannot w...
3
1,458
Problems setting rowId while using jquery datatables
<p><strong>Background Information.</strong> </p> <p>I have a jquery datatable which is working fine... except for the fact that after my page / table renders... it's missing a row id. I need each row to look something like this: </p> <pre><code> &lt;tr id=10100... &gt; ... &lt;/tr&gt; </code></pre> <p><strong>Code</...
3
1,503
Ant needs junit.jar on travis server
<p>When I run <code>ant test</code> everything is cool, but when Travis runs the same command I get </p> <p>$ ant test</p> <blockquote> <p>Buildfile: /home/travis/build/AwesomeTeamPlayer/event-receiver/build.xml </p> <p>compile:</p> <pre><code>[mkdir] Created dir: /home/travis/build/AwesomeTeamPlayer/event-...
3
2,577
Attempting to open Xamarin layout designer freezes Visual Studio with no errors
<p>Before I get into the question: I am using visual studio 2015 Community with Xamarin. I have tried the following to rectify this problem: </p> <ul> <li>Complete VS uninstall and reinstall (along with all components of Xamarin and Android SDK.) </li> <li>Rolled back various updates to Xamarin (including the most...
3
1,794
Responsive sticky footer menu hover effect
<p>how can I create menu like on the picture? <img src="https://i.stack.imgur.com/zDd5x.png" alt="Image of footer menu"></p> <p><strong>Requirements:</strong></p> <ul> <li>Built using Bootstrap columns, <strong>must be responsive</strong></li> <li>In <strong>normal state</strong>, only Option and icon (green square) ...
3
1,048
additionalSafeAreaInsets is not accounted for during view controller dismissal, using custom UIViewControllerTransitioningDelegate
<p>So, straight to the problem:</p> <p>I've created a custom <strong>UIViewControllerTransitioningDelegate</strong> that I use to animate a view from one view controller, to full-screen in another view controller. Im doing this by creating <strong>UIViewControllerAnimatedTransitioning</strong>-objects that animate the ...
3
3,923
sql connection errors - prevent me from 'SELECT' data from mysql
<p>i'm trying 12 hours now to SELECT data from my DB but i can't.</p> <p>INSERT works fine. just SELECT not working.</p> <p>When i run connect() function i'm get lot of errors:</p> <pre><code> public void connect() { String dbUrl = "jdbc:mysql://*****.heliohost.org:3306/*****"; try { ...
3
1,137
I cannot start sessions for different user roles and restrict folders for logged out users
<p>I am using a login script and I am trying to get my head around sessions with not much luck.</p> <p>When the user logs in I want them redirecting to the relevant folder, here is my login script</p> <pre><code> if (isset($_POST['btnLogOn'])) { $email = !empty($_POST['email']) ? trim($_POST['email']) : ...
3
1,198
Properties not changing on the DOM after a GET request
<p>I am working on a component to render user details. The details are fetched from an API request and properties are updated but these changes are not reflected on the DOM.</p> <p>The company I work for is still using Polymer 1.2 and I am having difficulty finding and understanding the documentation. Do I need to mak...
3
1,259
How to stop my Hamburger menu from jumping me to the top of my page on click.
<p>When I click my hamburger icon, my menu appears but it also jumps me to the top of the page. I would like to stay where I am at on the page. My header is fixed and the page seems to begin scrolling before the menu even shows. Is this possible to be fixed without using any javascript. If I have to am fine with it.</p...
3
1,321
Ploting using Ggplot different rows with different formats
<p>I use this data to run my quantile regression code:</p> <pre><code> x= c(-0.0179316822180174, -0.00641604898349779, 0.0118829440361971, -0.00821159118344772, -0.0171607214317729, 0.0162441460856755, 0.00963105000906578, 0.00394937550015284, -0.0373589167442337, -0.00470636563065663, 0.0236590...
3
3,138
Why the proguard script is unable to `keep` the custom-view class I use in layout XML
<p>I am sharing my configurations one by one.</p> <p>From my Gradle files:</p> <pre><code> ext.kotlin_version = '1.3.31' dependencies { classpath 'com.android.tools.build:gradle:3.4.2' classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot; classpath 'android.arch.naviga...
3
1,407
iphone using NSXML parser how to parse the attributes
<p>I want to know how to parse the attributes in below xml file</p> <pre><code>&lt;ROOT_ELEMENT&gt;&lt;RESPONSE READ_TAG="LEVEL_LIST" RESULT="" TEXT=""/&gt;&lt;USER USER_NAME="newadmin01" TOKEN_ID="0.766003221016982" FULL_NAME="newadmin01, newadmin01"/&gt;&lt;DATETIME UNFORMATTED_TEXT="Aug 10 2011 12:25PM" FORMATTED_T...
3
1,476
Laravel - How to pluck a nested collection?
<p>Ok, so i'm building a table that records time entries for each month of the year. I have a variable called $group_months, if I dump the data I get this:</p> <pre><code>Collection {#189 ▼ #items: array:4 [▼ "Comp Time Used" =&gt; Collection {#294 ▼ #items: array:3 [▼ 10 =&gt; "12:00:00" 1...
3
4,729
How to Authenticate with facebook and twitter to the firebase in flutter?
<p>I'm trying to authenticate with faceboook and twitter , &amp; done with setUp part of <a href="https://developers.facebook.com/" rel="nofollow noreferrer">facebook Developr console</a> and implemented facebook login method to dart code but why there is occurring an error at <code>facebookLogin.logInWithReadPermissi...
3
3,070
Downloading a file with Winhttp/VBA partially successful
<p>I'm stuck with a near success on automating a download process. I'm using fiddler &amp; taking the values &amp; hard coding them for now til it works. The website is secure &amp; i get the cookies OK. However when testing the download i am getting a file of 239K but it won't open. Windows tells me it might be corrup...
3
1,643
When do I need to use/have a makefile?
<p>I am trying to learn how to code on a Raspberry PI. I am coming from coding using Windows and VS Code. Now I am using Linux Mint 19.1 and ssh to access Raspbian 4.14.</p> <p>The problem is that, after a long battle with downloading the library that I am trying to use, after installing a compiler, creating a file, a...
3
1,752
TaskConfigurer does not considering schema name for datasource
<p>I have 2 data source. For one data source, I want to use custom schema name. For this reason, I am setting my data source url like <code>spring.datasource.url=jdbc:postgresql://192.168.33.10/analytics?currentSchema=bahmni_mart_scdf</code>. But it's creating all the tables in <strong>public</strong> schema, instead o...
3
1,299
Conditional selection of columns in MySQL
<p>I have a special case where I need to get the username and user image that is the "opposite" of the given user_id. What I mean is, if you have a user id of 10, and you want to get messages that are relevant to that user, then I want the username and user image that is the opposite of the user with user_id of 10. So ...
3
2,685
State Redux is not mapped to props
<p>I am struggling with mapping state to props in React Redux. I want to fetch the data from Rest API, at the end my store should have 2 arrays of probands and slides, but I don't really get it, why my slides array is empty. Here are my files:</p> <ol> <li>TestComponentRedux.js</li> </ol> <pre><code>import React, { Com...
3
2,062
Connecting 5 tables but excluding values from the 5th
<h3>Data tables</h3> <p>I got 5 tables with certain values:</p> <ol> <li>Table: <code>tbl_1</code></li> </ol> <pre><code>+-------+-------+ | nm_id | name | +-------+-------+ | 1 | name1 | | 2 | name2 | | 3 | name3 | +-------+-------+ </code></pre> <ol start="2"> <li>Table: <code>tbl_2</code></li> </ol>...
3
1,753
Adding and deleting two collections with react functional components
<p>I want to add two collections with one action. First one is file using multer and gridfs-stream and second is just literal with properties based on file. That what I achieved: <a href="https://i.stack.imgur.com/6Q6fY.png" rel="nofollow noreferrer">1)literal based on file</a> and <a href="https://i.stack.imgur.com/Z...
3
2,809
xmlNodeList not limited to selected nodes, and not providing correct parent node
<p>I have source XML which has two child nodes of the root node. I pass each of those child nodes to a function as an [xml.xmlNodeList]. In that function, when I look at the count of the child nodes it is correct, 1 in the first call, passing the initialization node, and 2 in the second call using the processing node. ...
3
1,929
Fastest way to create array from pandas dataframe with multiple values (~500 000)
<p>I have a dataframe containing a column <code>vector</code> with around 500 000 rows of array vector. What I'm trying to do is unloading the content of this column into a 2 dimension array but I don't know the fastest way to do it.</p> <p>This is the format of the array I'm trying to obtain (<code>[1, 2], [3, 4]</co...
3
1,327
Ionic React - Navigate to a page when an FCM notification is tapped
<p>I am implementing FCM notifications in an Ionic React application. I am having trouble navigating to another page to display the notification details.</p> <p>I have created a <code>FCMService</code> class in my react App, and initialising this in the <code>index.ts</code> file.</p> <p>// FCMService.ts</p> <pre><code...
3
1,996
SOAP get content type error in AFNetworking
<p>I am working with SOAP web service and i get Content-Type error, I try to change type "application/soap+xml; charset=utf-8", "text/xml; charset=utf-8" but the same error occur.</p> <pre><code>NSString *soapMessage = [NSString stringWithFormat:@"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;" ...
3
1,165
Difference between WEKA instance predictions and confusion matrix results?
<p>I am not new to data mining, so am completely stumped with the WEKA results. Was hoping for some help. Thanks in advance!</p> <p>I have a data set of numeric vectors that have a binary classification (S,H). I train a NaiveBayes model (although the method really doesn't matter) in leave one out cross-validation. The...
3
5,430
sprockets failed to prepare assets for nginx
<p>I want to let <code>nginx</code> serve the static files for cache task.</p> <p>But I got <code>No such file or directory</code> from nginx error log.</p> <p>It seems the css files included in <code>root-c452663d516929cd4bb4c1cd521971eb.css</code> could not be served.</p> <p>How could I fix the bug</p> <h1>produc...
3
1,749
Argument of type 'MonoTypeOperatorFunction<T>' is not assignable to parameter of type 'OperatorFunction<T | undefined, T>'
<p>I am trying to make Generic Firestore Service. Here is my script,</p> <pre><code>doc$(id: string): Observable&lt;T&gt; { return this.firestore.doc&lt;T&gt;(`${this.basePath}/${id}`).valueChanges().pipe( tap(r =&gt; { if (!environment.production) { console.groupCollapsed(`Firestore Streaming [${this.baseP...
3
3,294
Remove Intial Nesting in JSON array with PHP
<p>I have this JSON array starting with the nesting string &quot;ELEVEURS&quot; and I want to have it removed and should get the output as below. Could someone solve this please!</p> <p><strong>INPUT</strong></p> <pre><code> $json='{ &quot;ELEVEURS&quot; : [{ &quot;CHEPTEL&quot;:&quot;12001116&quot;, ...
3
2,048
Typescript discriminated union based on array membership
<p>Is it possible to have something like this?</p> <pre><code>{ roles: contains &quot;admin&quot;, admin_details: string } &amp;&amp; { roles: contains &quot;vendor&quot;, vendor_details: string } </code></pre> <p>?</p> <p>I figure probably not. What would be the cleanest way to get this sort of behavior, w...
3
1,912
jQuery using 'this' to select siblings of it's parent` for slider next prev button
<p>I have a problem implementing Tiny Slider prev and next button on a single page but with multiple instances and it lays on each of jQuery ui-tabs content (tab-pane).</p> <p>so, The tabs is not a problem, but each tab wrapped the container for slider with tns-outer class so the .slide-nav element that lies just next...
3
1,201
Autoscaling using cloudformation
<p>I have come up with an template but it shows an error <code>Template format error: [/Resources/MyServerGroup] resource definition is malformed</code> I have tried solving it but unable to. Please do review the template also I am new to this there might be some mistakes. I have taken help from this link <a href="http...
3
2,809
Inherited print on screen in subclasses: ostream flow from the parent class
<p>My apologies for the bad title, I'm self-taught c++ newbie.</p> <p>I'd coding the usual example of a Company class along with Employess class and Person class.</p> <p>Basically my code should create a company, add employees to that and print the full list of employees.</p> <p>Here's a short version of what I did....
3
1,372
CollectionView Custom Cell Does Not Update Correctly When SearchController is Active
<p>I have a collectionview with a searchcontroller and a custom cell. When I make an edit in the cell while the search is not active everything gets updated with no problem. But when the searchcontroller is active my edits does not get reloaded correctly. Here are some of my codes. </p> <pre><code>func collectionView(...
3
2,039
How can you generically map a DbDataReader to a Castle.Windsor resolved type?
<p>This is confusing me, so this question will probably be confusing.</p> <p>I have a an application that uses implementations of an IJob interface to accomplish different tasks. </p> <pre><code>public interface IJob { int Id { get; set; } string Name { get; set; } void Run(); } </code></pre> <p>I am using the...
3
1,197
No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html in asp.net mvc webapi
<p>I'm creating an ASP.NET MVC web application using Web API and ASP.NET MVC together. I get this error:</p> <blockquote> <p>No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html</p> </blockquote> <p>studentController (mvcproject)</p> <pre><code>namesp...
3
2,205
Sending pre-defined messages over TCP Sockets
<p>My question is about sending data from C# to C++ and the other way around.</p> <p>I have a "Server" and it is waiting for TCP connections from the "Clients". For the Server I am using C#/.NET and the Client is written in C++ with no extra libraries or dependencies (I want to keep it that way).</p> <p>On the Server...
3
1,045
Miracle in JS. One function with different result
<p>It's a Miracle! Help me to understand it.</p> <p>I have the some html code in my php file:</p> <pre><code>&lt;form action="" method="post" name="r_form" &gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt; Name: &lt;/td&gt; &lt;td&gt; &lt;input type="text" name="r_name" id = "rname" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; ...
3
1,210
Build groups from a directed graph dictionary
<p>Given a dictionary of a directed graph, representing nested groups and their members, return all the users for a given group.</p> <p>example-</p> <pre><code>Hashmap- key|Values Group1- [ Group3, Group5, User8, User2] Group2 -[ Group1, User9] Group3 -[ Group4, User5] Group4 -[ User1, User3] Group5 -[ User4, User7...
3
1,047
Can not render Strings from my Array (stored in Root-Component) to a child component
<p>I want to create a todo list in which the tasks are dynamically output from an array with different objects.</p> <p>somewhere i must have a bug in the probs. i can't get the data from the array up to aufgabenTask.vue component. Anyway the are not output.</p> <p>Attached is a photo of the error message in devtools fr...
3
1,788
Key error when dividind one row by another in Pandas
<p>I'm trying to perform some calculations across a complex data set and struggling to get the right approach. In simple terms, what I would like to do is divide a value in one row, by a value in another row. A sample of what I mean is as follows;</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr>...
3
1,662
Creating THREE pickerViews for converting the units
<p>Here is the main screen of the app :</p> <p><a href="https://i.stack.imgur.com/fK2AJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fK2AJ.png" alt="enter image description here"></a></p> <p>I have successfully linked these pickerView to each other, then I have tried to assign the calculation in...
3
2,573
Creating an indoor map using GridLayout
<p>I am looking to implement an indoor mapping application similar to Google Indoors but for a private building with a floor plan. So far I have managed to implement a location tracking for the user and compass to point in the direction the user is facing. The main segment which I wish to now include is to create a pol...
3
1,065