title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Why is this accept invite php script not working (discord api and curl)
<p>At the end it says: Json deserialize error: key must be a string at line 1 column 2</p> <p>I've tried a bunch of different things but they all don't work. I can't recall all of them and I'm pretty bad at this kind of stuff, so I wanted help</p> <pre class="lang-php prettyprint-override"><code>$url = 'https://disco...
2
1,122
HTML to rendered html
<p>Below is a simplified version of my app where there is a template rendered on the page and it is filled with the help of two text inputs.</p> <p>It's a "template generator" type app and I want to be able to copy the completed template as rendered on the page so that it can be pasted elsewhere. To do this normally y...
2
1,200
How to add MassAction on Order Grid in Magento2?
<p>I want to add a MassAction in Order Grid in Magento2.</p> <p>I add xml in view/adminhtml/ui_component/sales_order_grid.xml.By adding this XML MassAction is show in dropdown.But when I select the MassAction I did not get the order ids in post request.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;...
2
1,100
pandas - how to resample respecting the first date?
<p>I'm struggling to find a proper way to solve an issue with resampling using pandas, instead of using ugly hacks that could be error prone.</p> <p>Suppose I have a series like this:</p> <pre><code>dates = pd.date_range('2018-01-03', '2018-09-13') s = pd.Series(range(len(dates)), index=dates) </code></pre> <p>Now, ...
2
1,078
Windows Phone 7: web service problem
<p>From a WindowsPhone7 application I need to query a web service by sending a "category" string parameter an expecting to get a string in return. I tried to follow identically the "Weather Forecast" sample from the MSDN, but I always get en empty string. If I add some Debug.WriteLine commands I can see that the callba...
2
1,801
Parsing HTML page using bash
<p>I have a web HTML page and im trying to parse it.</p> <p>Source ::</p> <pre><code>&lt;tr class="active0"&gt;&lt;td class=ac&gt;&lt;a name="redis/172.29.219.17"&gt;&lt;/a&gt;&lt;a class=lfsb href="#redis/172.29.219.17"&gt;172.29.219.17&lt;/a&gt;&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;td&gt;-&lt;/...
2
2,506
gridview row blinking based on some conditions
<p>I have this gridview which in which I want certain rows to blink based on some conditions. I have tried javascript and jquery but nothing worked.</p> <p><a href="http://forums.asp.net/p/1375904/3287108.aspx" rel="nofollow">javasccript example</a></p> <p><a href="http://www.aspmemo.net/2012/03/gridview-rows-blink-u...
2
2,030
How do I make a responsive master-detail layout with react-router v4 as described in 'philosophy'
<p>I am trying to make a responsive Master/Detail layout using react-router v4 as described <a href="https://reacttraining.com/react-router/core/guides/philosophy/responsive-routes" rel="nofollow noreferrer">here</a>. The code it suggests is</p> <pre><code>const App = () =&gt; ( &lt;AppLayout&gt; &lt;Route pa...
2
1,719
Connection refused trying to connect spring boot application in docker
<p>I try to run spring boot application in Docker, Circle CI. Please, check how my .circleci/config.yml file looks like:</p> <pre class="lang-yaml prettyprint-override"><code>version: 2.1 jobs: test: docker: - image: maven:3.8.5-openjdk-17-slim environment: CHROMEDRIVER_VERSION: 100.0.4896.60 ...
2
5,097
Cassandra repair failing because of GC
<p>We have a 9 node cluster and are running repairs every night as recommended (1 node each night).</p> <p>We recently started having problems during the repairs, some nodes would die OutOfMemory because the GC would not collect fast enough. In the beginning it was a promotion issue (as shown by the detailed GC logs)....
2
2,597
How to pass the values to a reusable component using the @Input annotation?
<p>I want to take the user input from app.component and pass these parameters to the ReusableComponent, process that input and display the result. I have a child component in the reusable component known as &quot;mycanvas&quot;.</p> <p>In the parent app.component.html:</p> <pre class="lang-html prettyprint-override"><c...
2
1,033
AttributeError: module 'tensorflow.compat.v2.summary' has no attribute 'scalar'
<p>I have been running a u-net on oxford_iiit_pet dataset.</p> <p>I followed quite similar the code from this <a href="https://medium.com/analytics-vidhya/training-u-net-from-scratch-using-tensorflow2-0-fad541e2eaf1" rel="nofollow noreferrer">medium</a>.</p> <p><a href="https://github.com/NEGU93/cvnn/blob/master/exampl...
2
2,309
VBA script in Excel to populate the .from field from a cell in the worksheet
<p>I have sucessfully configured a VBA script based on an example from <a href="http://www.rondebruin.nl" rel="nofollow">http://www.rondebruin.nl</a> to send a copy of an active worsheet in excel as an attachment using a gmail account and CDO.</p> <p>What I would like to modify is the ability to alter the .From field ...
2
2,013
Insert additional menu elements to a specific place with typoscript
<p>Hi I like to add some additional menu items to a defined mainmenu. Here is my attempt: </p> <pre><code>[PIDinRootline = 18] lib.mainmenu.1 { ACT = 1 ACT{ after.cObject = HMENU after.cObject &lt; lib.catmenu } } [END] </code></pre> <p>well working so far, but the menu items are o...
2
1,247
Parameter for "Delete" post method has blank attributes in ASP.NET MVC
<p>I'm having an issue in my MVC application (for making basic CRUD changes to a database) where the object parameter getting passed to my "Delete" post method has blank parameters, even though the object returned by the get method is correct. As a result, when I try to delete the object from the database I get the fo...
2
3,484
Send variables by using $_GET in php mvc
<p>My route:</p> <pre><code>class Route { static function start() { $controller_name = 'add_task'; $action_name = 'index'; $routes = explode('/', $_SERVER['REQUEST_URI']); if ( !empty($routes[1]) ) { $controller_name = $routes[1]; } if ( !...
2
1,380
Can I use XSLT to parse XML into sub-files? (+ Alternative Languages/Methods)
<p>Hey all, I have highly repetitive data with a depth of 5 nodes deep (including the root) that needs to be broken apart. (I'll include a fast sample in a minute.) What I'm looking to do is parse a ~5mb XML file into smaller sub-files based on the 3rd-depth nodes. But after that, it gets more complicated.</p> <p>The ...
2
1,095
Multiple number input, jquery .each if val() greater than, add class to element
<p>I need to loop through a list of input elements of a certain class name. and based on if the value of any of those inputs with the class of "attendeeQuantityInput" is greater than 0, then add a class to an element on a page, if any of those inputs with the class of "attendeeQuantityInput" then remove the class from ...
2
2,261
Cannot create an Elastic Beanstalk application in a custom VPC using Terraform
<p>I am trying to create an Elastic Beanstalk application in a private subnet of a custom VPC using Terraform. The problem I have is that the creation hits a time-out.</p> <blockquote> <p>Error:</p> <p>Error waiting for Elastic Beanstalk Environment (e-xxxxxxxxx) to become ready: 2 errors occurred:</p> <ul> <li>2021-01...
2
2,636
Incorrect viewport size causing animations to not excute on scroll
<p><strong>Note:</strong> This has been solved. Look at the bottom of this post for the fix. </p> <p>I have this bizarre issue that I've pulling my hair out over for the past few days. Thankfully I think I've isolated it to an issue with incorrect window / document heights causing my scroll animations to never appear....
2
1,082
Parsing Google Earth XML data using VB.NET
<p>Here is a simplified version of the XML returned.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;kml xmlns="http://earth.google.com/kml/2.0"&gt; &lt;Response&gt; &lt;name&gt;1321 herbert street, Warren, MI&lt;/name&gt; &lt;Status&gt; &lt;code&g...
2
1,986
Multiple HTML elements with same ID causing errors
<p>I'm currently running into a problem where inside my HTML document, I have a carousel, and inside each slide a new button shows up, all doing the same thing. Each one of these buttons is a navbar-toggle button, which displays a navbar if it is pressed.</p> <p>I problem I'm having is that in the code I was given, it...
2
4,180
Windows NT token with ADFS to get Remote user Roles
<p>I created a ADFS windows NT enabled tokenapp Configured IIS 7 to enabled windows NT token in authentication and reply url as <a href="https://adfsweb.treyresearch.net/tokenapp" rel="nofollow">https://adfsweb.treyresearch.net/tokenapp</a></p> <p>I added this app into the adfsresource application as Windows NT token...
2
1,179
Reactjs - Submitting multiple lines from one textarea
<p>I'm trying to allow a textarea to take a list of names and display the submission of names on the page. However, I want the user to only be able to submit one name per line.</p> <p>How would one go about this? More specifically, how would one grab the line breaks and split them into, say... an array to be mapped th...
2
1,353
Get specific model of a xeon phi
<p>I'm trying to find the exact model of a Xeon Phi coprocessor i'm using. I run micpinfo and this is what i get </p> <pre><code> ***************************/opt/intel/mic/bin/micinfo*************************** MicInfo Utility Log Created Fri Jan 10 13:09:40 2014 System Info HOST OS : Linux ...
2
5,380
Bootstrap layout with cards h-100
<p>I am working with Bootstrap at the moment. I loop round &amp; create lots of these cards (one for each task in the project. The problem is, if the card has a bigger title, then each card is not the same height. I want to be able to standardize the height,</p> <p>Originally I used:</p> <pre><code>&lt;div class="car...
2
4,508
GridView show only single Row in custom adapter?
<p>I am trying to add gridview dynamically with custom adapter but it is showing only sinle row</p> <p>I have tried WRAP_CONTENT,MATCH_PARENT,FILL_PARENT for height but it is not working for me </p> <p>if i am passing static height like 1000 then it is showing is there any solution for this</p> <p>//Grid View Code (...
2
1,545
Batch Scripting output format in table format
<p>I have created batch script as below, and i am using BALT utility to send this output on email.</p> <pre><code>set length=0 FOR /f "tokens=1 delims=/" %%t IN ("%DATE%") DO SET TT=%%t FOR /f "tokens=2 delims=/" %%A IN ("%DATE%") DO SET DA=%%A FOR /f "tokens=3 delims=/" %%B IN ("%DATE%") DO SET DB=%%B FOR /f "to...
2
1,405
Need help handling multiple shared I2C MAX3107 chips on shared ARM9 GPIO interrupt (linux)
<p>Our group is working with an embedded processor (Phytec LPC3180, ARM9). We have designed a board that includes four MAX3107 uart chips on one of the LPC3180's I2C busses. In case it matters, we are running kernel 2.6.10, the latest version available for this processor (support of this product has not been very goo...
2
1,147
How to return result of HKStatisticsQuery to a variable in Swift 2?
<p><strong>UPDATED at bottom on 01/30/16 @ 7:40PM EST</strong></p> <p>So I'm trying to run a StatisticsQuery to get the total <code>DistanceRunningWalking</code> of the day stored in HealthKit and then store the results of that query in a variable, to be worked with later. The query seems to be working fine, as I've t...
2
1,527
Pass props into TabIcon with React Native Router Flux
<p>I'm using <code>react-native-router-flux</code> in my app and want to pass in paths to png images for my TabIcon components. I know I could just make a different tab icon component for each tab, but these icons would be exactly the same except for the image source and I want to find a DRY way to accomplish my goal. ...
2
1,068
How to develop site which dynamically changes og:image facebook property?
<p>Basically, I am making a website which has dynamic og:image property. I have added 100 images and changing the images by rand function in PHP. The problem I am getting is that Facebook have cached my website and everytime user shares the URL, it shows the same image every time. I want Facebook to recrawl everytime t...
2
1,632
how to draw graph in asp.net using c# without using zed graph
<p><strong>I had a an web application in which i want to show some data in graph for which i used zedgraph dll but now i want to draw graph only by using system dll's not with zed graph</strong></p> <p>zed graph code is as follows</p> <pre><code>protected void ZedGraphWeb1_RenderGraph(ZedGraph.Web.ZedGraphWeb webObje...
2
1,415
Cannot get dbms_output to work in PHP (connecting to Oracle database)
<p><strong>EDIT// Problem solved</strong> - I have re-written my code into a PL/SQL package and function, so I can now simply call this using a standard select statement. I will leave my original query below and a couple of links I found useful for anyone in a similar position.</p> <p><em>Links</em></p> <ul> <li><a h...
2
1,505
How replace the value inside a html tag?
<p>I want to replace element content with content which is definded in $tagsReplace array but have problem with preg_replace, my current ode:</p> <pre><code>$tagsReplace = array( 'header' =&gt; 'header', 'tag1' =&gt; 'this is tag1', 'tag2' =&gt; 'this is tag2', 'tag3' =&gt; 'this is tag3', 'footer'...
2
1,029
getline() function reading in whitespace before input is entered
<p>Alright, I wrote a game of hangman. The game works great, except after the user finishes the game, and enters the char value of Y to play again.</p> <p>I have traced the problem down to the getline() function at the start of my do-while loop. If I enter Y, then the do-while loop succesfully repeats, but the getline...
2
2,285
Python ConfigParser - module object is not callable in Fedora 23
<p>Trying to read an .ini db file from python to test a connection to a PostGres database</p> <p>Python Version 2.7.11</p> <p>In Fedora, I installed with</p> <h2>sudo dnf install python-configparser</h2> <p>Install 1 Package</p> <p>Total download size: 41 k Installed size: 144 k Is this ok [y/N]: y Downloading Pa...
2
1,215
Trouble swapping nodes in doubly linked list
<p>I am trying to swap two nodes in a doubly linked list using C. It is working if I pass in some values, for example the head and tail of the list, and some in between. However, on others the value of one seems to be overwritten by the other and I am thrown into a loop.</p> <p>Node/List:</p> <pre><code>struct node /...
2
1,911
Copy hyperlink to clipboard - generated string won't copy but new one will
<p>I often want to save a whole group of links at a time with the url and title formatted into a single hyperlink I'm working on a chrome extension that will copy the formatted url and title</p> <p><strong>manifest.json</strong></p> <pre class="lang-js prettyprint-override"><code>{ "name": "Copy Tabs", "version":...
2
1,065
Fix 'java.lang.NoSuchMethodError: sun.security.ssl.SSLSessionImpl'
<p>I've set up a virtual machine where I will deploy my JavaEE backend on glasssfish (payara). The deployment is not the problem, but whenever I want to access my API I get this</p> <blockquote> <p>java.lang.NoSuchMethodError: sun.security.ssl.SSLSessionImpl</p> </blockquote> <p>error in my server logs. I can acces...
2
4,542
Docker container crashes on start: java.net.NoRouteToHostException: No route to host
<p>In recent days, my Docker container (SonarQube) crashes a couple seconds after being started. It seems that it cannot connect the database container anymore. How can I reconnect them together?</p> <p>MySQL container <code>run</code> command:</p> <pre><code>docker run -d --name mysql-sonarqube-container \ -e MYSQL_...
2
5,636
Error when handling NServiceBus Subscription messages
<p>After adding logging (using log4net) to my application, it no longer handles subscription messages correctly and puts them on to the error queue. Below, some namespace names have been changed to protect the innocent.</p> <p><strong>app.config</strong></p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml v...
2
2,221
Nancy + .NET Core enable CORS not working
<p>I have the following request on the clientside:</p> <pre><code>$.get(getUrl) </code></pre> <p>I have tried the following on the backend:</p> <p><a href="https://stackoverflow.com/questions/15658627/is-it-possible-to-enable-cors-using-nancyfx">Is it possible to enable CORS using NancyFX?</a></p> <p>I have also tr...
2
1,044
Regex in SoapUi's "Contains" assertion causes the assertion to always fail?
<p>I am using SoapUi 5.5.0 to create functional tests for my REST webservice. My project can already make REST requests and display the JSON response. Now I need to make an assertion about this response. But I can't get my assertion to work the way I want to. </p> <p>For the sake of example, lets say that I want to as...
2
3,491
How to skip header when paginating through AWS Athena query results
<p>I have an Angular 6 app which requests data from AWS Lambda. The data itself stored in the Glue database and queried with AWS Athena. The AWS Glue database has the <code>skip.header.line.count=1</code> option set and when I run Athena queries in console I get a response that does not have a header. The problem occur...
2
1,501
Address State confusion
<p>I built a simple deep linking page using Jquery address and following this example:<br> <a href="http://www.asual.com/jquery/address/samples/state/" rel="nofollow">http://www.asual.com/jquery/address/samples/state/</a> </p> <p>Now in this example, a HTML5 Browser (I use Chrome 10) shows the actual displayed source...
2
1,648
Can't verify CSRF token! Angular 2 & spring security
<p>We're trying to implement a simple user login with angular 2 and spring security. But we are getting a 403 status back with the response: </p> <blockquote> <p>{"timestamp":1478525053048,"status":403,"error":"Forbidden","message":"Could not verify the provided CSRF token because your session was not found.","path"...
2
1,740
How to clip and show clipped vector geometry in OpenLayers 5.3.0
<p>I have to clip vector layer based on the main/restriction vector layer. Upon drawing, if some part of the drawn layer is outside restriction layer, clip area that is outside restriction layer.</p> <p><em>Example 1. As we can see, part of the bottom border is outside restriction (purple layer)</em></p> <p><a href="...
2
1,350
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type int). Tensorflow 1.15 runs. Tensorflow 2.x breaks
<p>System: Linux Manjaro</p> <p>The full Error is:</p> <pre><code> history = clf.fit( File &quot;/usr/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py&quot;, line 66, in _method_wrapper return method(self, *args, **kwargs) File &quot;/usr/lib/python3.8/site-packages/tensorflow/python/ke...
2
1,598
Formatting tables generated with PHP/PEAR Structures_DataGrid & HTML_Table
<p>I've been working through some examples in a book using pear for the first time... so far it seems pretty cool, but I'm having a small problem where I need to tweak the formatting of one particular column of the table generated from Structures_DataGrid &amp; HTML_Table - specifically I need it to not wrap the text i...
2
1,680
Angular2: Just update the last segment of a route
<p>I've got a route in my app in the form <code>localhost/opportunity/:id/volunteers</code>. I want to build a <code>routerLink</code> to navigate to different pages on the same level (i.e. <code>localhost/opportunity/:id/waitlist</code>). Following the options outlined in the <a href="https://angular.io/docs/ts/latest...
2
1,072
WPF Bind DependencyProperty to another DependencyProperty
<p>I have a TreeView within a UserControl, which is able to Scroll + Zoom and Drag. (Because the TreeView is really huge) Because the Scroll/Zoom/Drag UserControl is listening to</p> <ol> <li>OnScrollViewerScrollChanged </li> <li>OnMouseLeftButtonUp </li> <li>OnMouseLeftButtonUp</li> <li>OnPreviewMouseWheel </li> <li>...
2
2,211
Why Logging is Not Working for Akka Stream
<p>I am using Alpakka and have toy example below:</p> <pre><code>val system = ActorSystem("system") implicit val materializer: ActorMaterializer = ActorMaterializer.create(system) implicit val adapter: LoggingAdapter = Logging(system, "customLogger") implicit val ec: ExecutionContextExecutor = system.dispatcher val ...
2
1,038
How to resolve Angular TypeError: Cannot read property 'name' of undefined
<p>After updating my application from angular 4 to angular 8, I'm getting an error I cannot resolve. The error looks the following:</p> <pre><code>OrderOverviewComponent.html:46 ERROR TypeError: Cannot read property 'name' of undefined at Object.eval [as updateRenderer] (OrderOverviewComponent.html:46) at Object.debug...
2
2,977
Why can I emit dataChanged(), but not layoutChanged() in a PySide2 table model?
<p>I am new to Qt. Currently I am trying to learn how to update a table model from a different thread and then how to get an immediate display update for it. I read the documentation and found the <code>dataChanged()</code> and <code>layoutChanged()</code> signals. While <code>dataChanged()</code> works fine, any attem...
2
1,664
NodeJS server timeout
<p>I have an Express NodeJS instance installed on my server. API stop responding after when "I guess" is overloaded. Response is below.</p> <pre><code>POST /my/api/result - - ms - - </code></pre> <p>I tried following in <code>./bin/www</code></p> <pre><code>server.on('connection', function(socket) { console.log("A...
2
1,880
Exception in Tensorflow function used as Keras custom loss
<p>I am trying to write a Keras 2 LSTM with a custom loss function via Tensorflow:</p> <pre><code>model.compile(loss=in_top_k_loss, optimizer='rmsprop', metrics=[bin_crossent_true_only, 'binary_crossentropy', 'mean_squared_error', 'accuracy']) </code></pre> <p>My training set has examples with different sizes of the ...
2
2,456
What format does the NUnit test results XML need to be to publish back to TFS 2010 build?
<p>I have some xUnit tests running as part of a build and I need to post the results back to TFS 2010 so they show up in the build summary/log like normal tests would.</p> <p>I execute the tests with the <code>-nunit</code> argument so that the output is an NUnit xml and not a xUnit one. I'm trying to use NUnit4TeamBu...
2
1,144
Android activity and fragment transition animation
<p>I have two activities, both of them will initial a fragment within its activity layout. However, I have trouble adding animation from activity A to activity B. The transition works just fine. Here is some code snippet. </p> <p>I've tried using overridePending, which basically does nothing. Also, I tried adding cust...
2
1,358
Change content based on active Bootstrap Carousel Slide
<p>I just took the basic carousel from the bootstrap website and want to integrate it into my web application. My problem is that I want to adjust the content of my website based on the current active slide of the carousel...is that possible? </p> <p>If the first slide is active, I want to show div One, if the second ...
2
1,992
Passing PChar's between a Delphi 2007 DLL and an XE6 EXE
<p>I have a DLL written in Delphi 2007 that I can't, for various reason, convert to being compiled in XE6.</p> <p>I have written a wee test app in XE6 that calls the DLL, and that's all fine, but I need to pass string data from the DLL to the exe, and I am using a PCHAR to do this. However, consuming the PCHAR in the ...
2
1,233
show a bootstrap modal which received on axios response after clicking the get modal button
<p>here is exactly what i need 1 . when the user click the button, the method is executed to get the bootstrap modal from the api. then show to the user. NB: initially the modal html should not be in the dom it is going to be created when the button is clicked. i have accomplished this in jquery but not in vue. Some c...
2
1,824
Find and modify python nested dictionary (key, value)
<p>I have a json file that I need to update. I am converting it to a python dict (nested) to update it. Here is the input, but it could be any dept. I'm sure there is a better way to do this, but don't know.</p> <p>Ultimatley I want to be able to perfom Create/Delete action in addition to the update. </p> <hr> <h2>H...
2
2,376
Removing session variable in view
<p>Why am I getting no output from this code if bellow it I add <code>@{ Session.Remove("errors"); }</code></p> <pre><code> @if (Session["errors"] != null) { &lt;div class="alert alert-danger"&gt; &lt;ul&gt; @{ ...
2
1,139
SheetViews is null trying to freeze rows openXML
<p>trying to reference this link:</p> <p><a href="https://social.msdn.microsoft.com/Forums/office/en-US/e1c08add-b610-44c9-b60e-fa8ef6c24978/openxmlexcelc?forum=oxmlsdk" rel="nofollow noreferrer">https://social.msdn.microsoft.com/Forums/office/en-US/e1c08add-b610-44c9-b60e-fa8ef6c24978/openxmlexcelc?forum=oxmlsdk</a><...
2
1,632
Error: call revert exception (Flashloan with dydx, Uniswap and Kyber)
<p>So I am trying to set up an Ethereum <a href="https://github.com/jklepatch/eattheblocks/tree/master/profitable-flashloans/30-make-arbitrage-script-run-247" rel="nofollow noreferrer">flashloan script</a> on the Kovan test network, partly because of the great amount of funds needed to execute it on Mainnet.</p> <p>I h...
2
3,966
How to get the value of a sibling node in XSLT within a for-each loop
<p>I am trying to get the value stored in a sibling node in a for-each loop with distinct values of another sibling node:</p> <p>My XML:</p> <pre><code>&lt;LaunchedMeterClass id="584e348b-2a06-42d0-a858-b8909f579238-St-4M-Template-Standard-cF"&gt; &lt;property key="ClusterContractUUID" value="c2cebd90-9265-4cea-8...
2
1,612
WCF Authentication with Supporting Tokens over Non HTTP Transport
<p>I followed a guide, found here <a href="http://weblogs.asp.net/cibrax/archive/2008/03/26/authenticating-users-with-supporting-tokens-in-wcf-binding-extension.aspx" rel="nofollow">http://weblogs.asp.net/cibrax/archive/2008/03/26/authenticating-users-with-supporting-tokens-in-wcf-binding-extension.aspx</a> for creatin...
2
3,627
CSS/Firefox - How can I get table cell borders to show up when printing more than one page?
<p>I have an html document in which I am testing printing a table that spans a couple of pages when printed. Unfortunately, in Firefox, the cells lose their border.</p> <p>Here is my html with dummy data.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head lang="en"&gt; &lt;style type="text/css"...
2
2,295
Extract data from CSV with Regex and convert it to JSON
<p>Imagine you have a table in a CSV file with this kind of layout:</p> <pre> name,property1 [unit1],property2 [unit2] name1,4.5,2.3 name2,3.2,7.4 name3,5.5,6.1 </pre> <p>I need to convert each row to this kind of JSON structure (ie, for row 1):</p> <pre><code>{ "name1": [ { "properties": [ ...
2
3,238
How to play audio from server in android
<p>I am getting all audio file list from server to list-view by following code.</p> <pre><code>public class ServerFileList extends Activity { URL urlAudio; ListView mListView; ProgressDialog pDialog; private MediaPlayer mp = new MediaPlayer(); private List&lt;String&gt; myList = new ArrayList&lt;S...
2
2,983
Filter data by a specific id for display in ReactJS
<p>I want to select the data that matches this specific id. I have made an API call which gives me this JSON data, but I only want the data where the id is <code>eb9fa7e9-3dc9-11e6-a9f9-28e347</code>. How do I filter just this data?</p> <pre><code> [ { "food_item_id": "a095eca7-3dcf-11e6-a9f9...
2
1,435
Content Dialog textbox value retrieval
<p>In my MVVM application for showing content dialog I have implemented ISpeechDialogService to show Content Dialog, which I have injected into Main Page View Model:</p> <pre><code> public interface ISpeechDialogService { Task&lt;ContentDialogResult&gt; ShowAsync(); string GetText(); } pub...
2
1,472
ClassNotFoundException: Didn't find class "kotlin.jvm.internal.Lambda"
<p>I have convert android project as library like aar then add it as jar in Xamarin Binding library (Android). Build that solution and get dll file and add in same location Android App (Xamarin) as reference and build it. While I run it show's below error,</p> <pre><code> Process: com.companyname.TestApp1, PID: 176...
2
1,291
Background picture being cut off
<p><a href="http://mohrdevelopment.com" rel="nofollow">http://mohrdevelopment.com</a></p> <p>As you can see, i have a problem with my navigation bar. The images are being cut off (stays on line with text), and i can't figure out how to fix it.</p> <pre><code> &lt;ul class="navigation"&gt; &lt;l...
2
1,285
Detect disconnect Winsock C++
<p>I am new to c++. I understand Object Oriented Programming.</p> <p>I followed a tutorial and put together this Client/Server code. I would now like to add a message to the server when a client is disconnected.</p> <p>im using vs11</p> <p>Server:</p> <pre><code>#include "main.h" using namespace std; void main ( ...
2
1,154
Creating an Sprite Sheet with C#, does not save
<p>Okay so I'm making a spritesheet maker at the moment and I have hit a little snag.<br> I have made the code and it successfully pulls all the images into the memory stream and places them together, but when it comes to saving the program returns a <code>Generic GDI+ error</code>.<br> I have tried opening another mem...
2
2,293
App crashes after installation in iOS10
<p>After upgrading to iOS 10, my application is crashing when installing it via iTunes. It does not crash if installed directly from Xcode. Once the app is installed, as soon as I open the app it displays the splash screen and closes without giving any error.</p> <p>I am using following softwares:</p> <ul> <li>Xcode ...
2
11,822
Apache proxy does not recover session correctly by remember-me token after the session expires
<p><strong>Why dont work correctly the user session when this expires after recover remember-me cookie?</strong></p> <p>I have a peculiar error with I enable the remember-me option in Spring Security. When the session expire, I can navigate for the rest of my web pages, but the logout, and the others POST methods prod...
2
2,160
vb.net - multiplying values from datatable
<p>I'm working in vb.net and in my program i have two datatables. What i want is to multiply quantity for some IZ in the second datatable with the quantity for the same IZ from first datatable. I want to do that for every IZ.</p> <p>For example for IZ12554 it would be like 1*460=460 and 0,0025*460=1,15; for IZ10836 it...
2
1,359
Simple Groovy with Geb script
<p>I am trying to learn Geb and on my Mac I created a groovy script and tried to run it. I getting errors about grapes not being able to download some dependencies. Do I need to do something special for this to work? </p> <pre><code>@Grab(group='org.codehaus.geb', module='geb-core', version='0.7.1') @Grab(group='org.s...
2
2,099
Error while building android app
<p>Application is being configured to use Room library, meanwhile studio requested for updating build numbers of support libraries and stopped at this error.</p> <p>The log also has a warning for using java 8 as room-compiler uses only Java 7 for processing. But, that has to be fine!!</p> <p>App in not being built d...
2
3,905
Hook=componentUpdated of Vue directive not triggered
<p>I just met one issue, if one component only update its own data, it will not trigger the hook=<strong>componentUpdated</strong> of the directive at the parent component.</p> <p>As <a href="https://v2.vuejs.org/v2/guide/custom-directive.html#Hook-Functions" rel="nofollow noreferrer">Vue official Guide</a> said:</p> <...
2
1,203
Rails: How to add an object through a bootstrap modal?
<p>I'm new to rails and I have this web application that allows users to create new print Jobs Using Rails 4</p> <p>app/models/job.erb</p> <pre><code>class Job &lt; ActiveRecord::Base belongs_to :job_type end </code></pre> <p>app/models/job_type.erb</p> <pre><code>class Job &lt; ActiveRecord::Base has_many :job...
2
1,299
Tensorflow CUDA GTX 1070 import error
<p>I'm trying to install Tensorflow with CUDA support. Here are my specs:</p> <ul> <li>NVIDIA GTX 1070</li> <li>CUDA 7.5</li> <li>Cudnn v5.0</li> </ul> <p>I have installed Tensorflow via the <code>pip</code> installation -- so I'm picturing your answer being to install from source, but I want to make sure there isn't...
2
1,965
Gluon client maven plugin for JavaFX on Windows fails to compile?
<p>I've been experimenting with Gluon's client maven plugin on a Windows machine for a project of mine. I decided to try out one of their "hello world" examples, <a href="https://github.com/gluonhq/client-samples" rel="noreferrer">here.</a> I followed all of the steps on how to configure the machine.</p> <p>However, I...
2
3,092
AWS Cloudwatch GetMetricData Discrepancy between CLI and SDKs
<p>I am trying to perform a simple CloudWatch query to get some metric data. I want to get the actual metrics. Using the AWS CLI I am getting the expected behavior. However, using client SDKs (tried both Python's Boto and Java's SDKs), the same (seeming) query is not returning my metrics. </p> <p>My query criteria is...
2
1,656
How to use Dynamic URL's to create Dynamic pages in Angular JS
<p><strong>I have put the question at the bottom as the only way I could explain my problem was with an example so with out the example it might not make sense but feel free to skip down to the bottom and just read the question.</strong></p> <p>I will use this example to try give some idea of what I do understand and ...
2
1,161
Testing with Karma- Can't bind to 'routerLink' since it isn't a known property of
<p>I am new to testing with Karma/Jasmine in my Angular 6 app and could use some help with one of my most common failures. </p> <p>It's the use and configuration of 'RouterLink' in my template. I have no error running the app, but upon running tests, I receive the error:</p> <pre><code>Can't bind to 'routerLink' sinc...
2
1,187
How to validate form without entity in controller?
<p>I have a basic form to send an email : </p> <pre><code>&lt;form action="{{ path('user_send_mail') }}" method="post" enctype="multipart/form-data"&gt; &lt;input name="email_to" type="email" class="form-control" placeholder="To" required&gt; &lt;input name="email_cc" type="email" class="form-control" placeholde...
2
1,093
How to accept the license agreement when building rti-connext-dds-5.3.1 with docker build?
<p>I am building an image from a Dockerfile that needs to install the package <strong>rti-connext-dds-5.3.1</strong>. (It's one of the dependencies when <a href="https://github.com/ros2/ros2_documentation/blob/master/source/Installation/Linux-Development-Setup.rst#rti-connext-version-5-3-1-amd64-only" rel="nofollow no...
2
1,108
lighttpd + mod_fastcgi + django
<p>I am having trouble deploying my django app to a server that uses lighttpd (on which I'm root.)</p> <p>Here's my <code>lighttpd.conf</code>:</p> <pre><code>server.modules = ( # "mod_access", ...
2
3,068
AutoLayout: multiline label and fixed-size button
<p>I'm trying to replicate the following layout from the Kayak app: <a href="https://i.stack.imgur.com/pGjoQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pGjoQ.png" alt="kayak app"></a></p> <p>The layout consists of <em>UICollectionViewCell</em> with a <em>UILabel</em> and a <em>INUIAddVoiceShort...
2
1,083
gatsby-remark-prismjs is not working on html
<p>gatsby-remark-prismjs is not working on my settings.</p> <p>I'm trying to highlighting codes like javascript and swift.</p> <p>My blog contents fetched from wordpress.com</p> <p><a href="https://i.stack.imgur.com/om00K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/om00K.png" alt="enter image ...
2
2,135
Python requests login - the login page returned without an error
<p>I'm trying to login to a webpage using python requests and the result is the same login page, without any login error.</p> <p>This is the login form:</p> <pre><code>&lt;form method="post" action="login.php" id="yw0" class="well form-horizontal"&gt; &lt;div class="login"&gt; &lt;div ...
2
1,965
monodroid app not running on device
<p>visual studio 2010 and mono for android </p> <p>softwares to develop a mono droid apk. Initially it create a project click the button, it can run successfuly on </p> <p>emulator and i try to install it on android mobile (samsung galaxy y)for </p> <p>that i search the (.apk file) in my project and it will locate ...
2
1,348
converting List<Object> to string array and sending email to multiple address using java mail
<p>Hi I am trying to convert List to string array and sending multiple Attendees' email using java mail and it seemed to not work am I doing it right or not need advices here is the code thanks</p> <pre><code> @PostMapping(path = "/createBooking/{location}") public ResponseEntity&lt;String&gt; create(@PathVaria...
2
1,550
Allow users to edit their profile fields in rails 4
<p>I have a new question.</p> <p><strong>What I want to do?</strong></p> <p>I've created the profile for each player, now I want to allow users to edit their profile.</p> <p>Part of this profile takes the <code>devise</code> table, with a second table called <code>profiles</code>.</p> <p><em>Devise:</em> Captures usern...
2
1,902
Angular FormGroup invalid not correct during Cypress test
<p>I have a button that is disabled while the <code>formGroup</code> is invalid. The button becomes valid under the following condition:</p> <pre><code> const field = this.formBuilder.group({ fieldType: new FormControl("", [Validators.required]), fieldName: new FormControl("", [ Validators.required...
2
1,320
Why this code fails in PostgreSQL and how to fix it (work-around)? Is it Postgres SQL engine flaw?
<p>I've been working on text parsing task when I found strange Postgres behavior. My original code exposing strange error was written in Java with JDBC connectivity for PostgreSQL (v8.3.3 and v8.4.2 tested), here is my original post: <a href="https://stackoverflow.com/questions/2086653/is-it-an-error-of-postgresql-sql-...
2
2,477