text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to force g++ to create C symbol name I have a function called init in a cpp file, but when I compile it, g++ creates in the object file a symbol named _Z4initv, so when I link after with ld with the option -e init, obviously ld doesn't recognize the symbol init. Is there a way to create symbols name in C style w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42716612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angularjs : failing to generate c3 directive based charts dynamically I am trying to create c3 charts dynamically using c3 chart directives. C3 chart directive is working fine. However dynamic chart creation upon button click is not working. Can any one suggest where I am going wrong?
Please find my plunker at http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28188479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SqlDataReader.GetString and sqlnullvalueexception I am new to C#. I was executing some select queries from database tables using System.Data.SqlClient classes. I got sqlnullvalueexception while executing some select query. On googling I come to know that if the value is null in the database, SqlDataReader.GetString ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1222116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Selenium Chrome Driver opens a different page than regular Chrome Browser I'm trying to pull some information from this URL and ones like it: "https://www.rockymountainatvmc.com/tires-and-wheels/tusk-impact-complete-wheel-rear-p?s=1033997&v=1216"
My goal is to get the MSRP and other info for a specific part. To do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61358459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Envoy proxy forward to https endpoint: facing protocol error I'm trying to do this one: call public.com/api/v1/{proxy} to envoy proxy behind an ingress proxy. Envoy proxy will forward traffic to https private endpoint inside my VPC with diffrent path: https://private.com/internal/{proxy}.
But I'm still facing the is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73582704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing Value in ASP.NET Pages I am developing a web application using asp.net and C#. I have a question
Is there any way for passing values in asp pages without using QueryString or Session values or Cookies or previous page?
A: You may see: ASP.NET State Management Overview
Profile Properties
You can use: ASP.NE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13680817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Different unit for Kubernetes resource memory on pods My question is related to Kubernetes and the units of the metrics used for the HPA (autoscaling).
When I run the command
kubectl describe hpa my-autoscaler
I get (a part of more information) this:
...
Metrics: ( curre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58148095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Haskell Attoparsec infinite loop The code is based on Haskell Attoparsec, and when I use parseOnly pString "v", it gives me the right answer as Right (DontNeedTrim, "v").
While when I use the instruction parseOnly (many' pString) "v", it seems drops into the infinite loop and finally failed with the overflowed stack... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51093771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery select element outside of li by ID im looking to select the follow element by id toggleThisDiv. The markup looks like:
<li id="liCategory" runat="server">
<asp:HyperLink ID="lnkCategory" runat="server">
<span><asp:Literal ID="litCategory" runat="server" Visible="true" /></span>
<asp:Imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12689130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create a mp3 player embedded in a facebook post The Serial podcast has this cool feature where they share their webpage on their facebook page and Facebook lets the audio be played within Facebook. See this image:
I've created a blog post with all of the proper meta tags to match the relevant tags expected by face... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34362659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "The server could not update. Check your API credentials and internet connection and try again." - Google Sheets API, service account error I'm currently building a website/platform following using this: https://forensic-architecture.org/investigation/timemap-for-cartographic-platforms. It works by reading a Google ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67787033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The model item passed into the dictionary is of type ' ', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable? After executing the application I get the "The model item passed into the dictionary is of type 'ClubStarterKit.Web.ViewData.Forum.NewMessageListViewData', but this dic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11160786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Confirm dialog in Cordova I'm writing an app in javascript and html with phonegap/cordova.
I have this code in javascript:
$('#diario_delete_btn').live('tap',function(e){
var iddb = $(this).find('a').attr('rel');
confirm_diario_delete(iddb);
});
function diario_delete(iddb) {
var db = window.ope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19964552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to do this type of incrementation in PHP? I am using this category script:
<?php
include("connect.php");
$nav_query = mysql_query("SELECT * FROM `categories` ORDER BY `id`");
$tree = "";
$depth = 1;
$top_level_on = 1;
$exclude = array();
array_push($exclude, 0);
while ($nav_row = mysql_fetch_array($nav_query)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3076576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pass cookie and reload one frame from another frame I have main html page which have two frames frame1 and frame2. In frame1, a textbox & a button where the button click passes the value in textbox to a cookie. In frame2 this value passed through cookie is used. I need to refresh or reload the frame2 page as & when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13534079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker Machine error: Hyper-V PowerShell Module is not available I've checked my Hyper-V settings and PowerShell Module is enabled. I've also found this documented issue: https://github.com/docker/machine/issues/4342 but it is not the same issue since I do not have VMware PowerCLI installed. The issue was closed wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49421953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: HTTP mp4 filetransfer. IE downloads file too fast I have a web server that serves mp4 files. When I get a http request for a video that is 35mb, I use “send()” repeatedly in a loop to send 1mb each time.
Chrome and Firefox handle this well and receive no more data than needed. Only if the user has reached far enough... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59702927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Redirect a Page to Another Page for 10 Seconds Then Redirect Back Again to Original URL I want to temporarily redirect users to an ad page and then return them to their desired page again after 10 seconds.
I don't know how to do this because I don't have much knowledge of PHP or Java. So please provide me complete r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56989430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Plugin with id 'io.fabric' not found" error. after removing fabric from build.gradle in my ionic react project android version build using capacitor, i followed the steps of removing all the fabric and replacing them with crashlytics
reference: https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=andro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64803150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use the Symfony 2 Container in a legacy app Would like to integrate a legacy application with a Symfony 2 application - replacing more and more parts of the old application with Symfony components. The approach I would take is using the Symfony 2 container in the legacy application getting the services that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10170989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: virtual machine query? hi i have installed ubuntu 10.4 as guest OS on vmware and windows xp is my host.
now i want do know does vmware give a new ip address to the linux os.. if yes how do i get that ip address
A: yes it should, try running ifconfig from the console.
Hope this helps,
Jason.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/3159210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to "lock" radio buttons, checkboxes, and menus without graying them out? I have a form that I want to present in two states:
1) Normal form
2) Person can look at the form as filled out by a user but can't change anything
It's easy to handle text inputs with the readonly property, but radio buttons, checkboxes, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3269926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bootstrap Responsive - Not Working I've created a very simple landing page using Bootstrap.
As I was designing it I was working on the responsive breakpoints and in Chrome, they all looked and worked great.
Now that I've uploaded my site, I realized that the responsive isn't working. In desktop I have no issues, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43855301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is it possible to use if -> where in MySQL? I have a list of templates which user creates with some data (type of data is not important). The templates are stored in a table which have field private of enum type with values 0, 1 which means false/true.
The main idea is that the each user can create a private templa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18498451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert date formatted string to DateTime object? I need to convert a date formatted string to a datetime object so that I can use the Twig date() function on the datetime object.
Example string: '2015-06-20'
Can Twig accomplish this or perhaps could it be done with a custom Twig extension?
A: you can do this
{{ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30956572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Finding IP Address for IPhone I am working on IPhone. I want to know how to find a ip address of a iphone through USB/3G not on wifi.
I am aware of seeing IP if it is connected through WiFI.(Going through settings and looking under Wifi)
But i need IP through USB / 3G. what i did means i used personal hotspot and i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10946624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to resize a Python matplotlib.pyplot.figure already created I'm working with this custom Py visual in PowerBI. Unfortunately, Power BI has some Python code leading my code that pre-defines the image size (5.55555555555556,4.16666666666667).
The result is a small image surrounded by a lot of empty space:
Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61680367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pe:keyfilter not working I need regex for primefaces keyfilter to allow input between 0-100 for percentage.
I tried lot of expression but none seems working.
I need my inputbox not to allow typing apart from 0-100. Any suggestions
| {
"language": "en",
"url": "https://stackoverflow.com/questions/33909177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File modification time gets overwritten by background cache flushing I have code that performs following steps:
*
*open file
*write data
*set file timestamps (via SetFileInformationByHandle(FileBasicInfo))
*close file
When file is stored on certain NAS devices (and accessed via share) it's modification time en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65816670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Yii2 dropDownList get selected value I have dropDownList in my view ( data from db) :
use yii\widgets\ActiveForm;
\app\assets\HelloAsset::register($this);
$form = ActiveForm::begin();
$users=\app\models\User::find()->all();
$items=\yii\helpers\ArrayHelper::map($users,'id','username');
echo $form->field($model, 'user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38977762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: fixed-length permutations of a string I'm trying to take a seven-character string and generate all the possible 3- and 4-letter permutations of it. This seems like something that recursion would be handy for (most all permutation generators I've seen are recursive), but I keep getting stuck at how to avoid repetitio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1732601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extracting XML data reverse XSLT? I have some XML data that resides in an XML file and I am trying to get it into datatables. I have tried putting it into a Dataset. I have tried putting it in XML nodes. However, it all seems random and just all over the place and it's not working. I have tried to include a summariz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75299259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: firefox moz, Web Transitions I have the following:
.ui-dialog-body {
position: relative; /* Needed for sliding left, right */
min-height:60px;
padding: .5em 1em;
}
.ui-dialog-body.slideLeft {
left:-500px;
-webkit-transition: left .5s linear;
-webkit-transition-delay: .2s;
-moz-transition-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4589083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mapping JPA native query to DTO returns column name instead of column value I'm working on a project using JPA and Spring Boot.
I have an Entity named (for example) Model:
This class is like this:
private String model_id;
private String attr1;
private String attr2:
private String attr3;
I want to query according to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65704458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regex: How to include character of "if" condition I'm making a date extractor using regex in java. Problem is that date is 20-05-2014 and my program is extracting 0-5-14. In short, how can I get the character on which I'm checking the second character of date?
int count = 0;
String data = "HellowRold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27459138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Azure Function .NET Core 3.1 C# unit test case with nUnit I need to create a unit test cases in Azure Function .NET Core using C# and NUnit framework. Please share a good example with links.
Thanks in advance.
A: Your unit tests shouldn’t include the Function App entry point, just like they shouldn’t include Asp.Ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70367088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: AJAX success response not working Rails I have a mailer that is successfully sending using AJAX, but when the submit button is clicked, it is left depressed and no success message is displayed. Clicking the button multiple times results in multiple form submissions. The button should reset, and (from my understand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29270855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to write runnable tests of static_assert? I am writing a unit-test suite for a source code library that contains static_asserts.
I want to provide assurance these static_asserts do no more and no less than they
are desired to do, in design terms. So I would like to be able to test them.
I could of course add unc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17408824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: XSLT loaded with AJAX, contains
A: Would it help to put the alert in a CDATA tag? So
<script type="text/javascript">
<![CDATA[alert('Only in Firefox');]]>
</script>
I've started doing that for all javascript that I include in xslt templates
| {
"language": "en",
"url": "https://stackoverflow.com/questions/29869327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to give priority to stages in a Jenkins parallel pipeline? I have a Jenkins pipeline with some parallel stages:
pipeline {
stages {
stage("Parallel build") {
parallel {
stage("A") { /* takes 5 min */ }
stage("B") { /* takes 5 min */ }
stage("C") { /* takes 15 min */ }
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75323571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to update Json object value dynamically in jquery? var jsonObj = [
{
"key1": "value1",
"key2": "value2",
"key3": "value3"
},
{
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
];
I want to update all the values of all the objects. He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45318501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Git rebase commit replays vs merge commits: a concrete example I have a question about how rebasing works in git, in part because whenever I ask other devs questions about it I get vague, abstract, high level "architect-y speak" that doesn't make a whole lot of sense to me.
It sounds as if rebasing "replays" commits... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67986445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DataGridView CellPainting drawing text with ampersand displays weirdly I have implemented a CellPainting event handler that uses TextRenderer.DrawText and it has worked great up until a cell had an ampersand in it. The cell shows the ampersand correctly while editing the cell, but when editing is done and it is draw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40753405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Where am I making mistake in VHDL? So I have posted this already but I haven't got any answer so I decided to try it one more time.
The entity shall implement the following arithmetic functionality:
• Substraction I1 - I2
• Input operand 1 (I1): 12 bit, two’s complement
• Input operand 2 (I2): 8 bit, two’s complemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41127050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nginx filter module installation I am working on a nginx filter module. I could successfully install my module by following this - http://www.evanmiller.org/nginx-modules-guide.html tutorial. But it seems that all the other filter modules are not called now except the one which I have added. How can I debug this ?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19492063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to confige an abstract class with structure map is there any problem with this kinda registration via structure map??
static public class ContainerBootstrapper
{
static public void BootstrapDefaultContainer(bool test = false)
{
StructureMap.ObjectFactory.Initialize(x =>
{
x.Sca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6440917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Angular2 Component is not defined I am building up an Angular2 app, but my files aren't compiled correctly.
Found some similar issues, but no solution worked to me.
I am getting Error in console:
(index):19 Error: (SystemJS) ReleasesComponent is not defined
ReferenceError: ReleasesComponent is not defined
at eva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41515306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Html forms in html table with JSP and servlets Im coding an web app that requires me to fill a table with data of the employees of a company and users should be able to access this table and then click on a employee's name to go to their info page.
Im thinking of using forms (each clickable cell in table) to send t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19358353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I pass a variable to an event that isn't a class instance? I have an Event that I fire when someone favourites an entity on my system. This is fired using Event::fire(new AddedAsFav($entity_id));.
In that event I want to pull some info about that $entity_id. To do this I believe I need to pass the $entity_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41911327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MarkerClustererPlus and nested clusters What I mean to do is the following: Suppose you have in a certain area a number of transmitting-receiving stations (pylons) (5, for example), and two hundred customers connected wirelessly to them (40 to each on average).
I want first an icon to appear on that area showing th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40259487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: App doesn't filter correctly echo's from server I have created an app which sends and reads data from a server. It should react to the response it receives (the responses from server works correctly). The problems is that the code in the if-statement where I check this is never executed, the app always executes the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31947325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create multiple lists that meet one condition Python 3.6 I have a class City:
class City(object):
#A city has two coordinates in a graph(x,y), and a set of order
def __init__(self, name, x, y, orders):
self.name = name
self.x = x
self.y = y
self.orders = orders
I create a lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45361268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using the "existence" of a list item as an if-statement conditional with Python I have a program in Python3 where I take values and append them to 1 of two lists (I sort certain values into a certain list). Then I want to do something like this (just an example using the 1st item from the lists):
if list1[0] and lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45065447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to detect invalid command in speech recognition c#? I have a problem. I'm creating a speech recogntion program in c#. I want my program to be able to detect an incorrect command.
I tried using the try and catch but i think i got it wrong.
void Default_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27153894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to force App to re-render after mutation? I have a React app built using Next.js. I want to be able to login and then cause the app to re-render in order for it to attempt to fetch the current logged in user.
My _app.js component is wrapped with the apollo provider and has a get user Query as well:
class MyApp ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56584512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I resolve the outer promise inside a mocked function with Jest? Here is my basic setup I'm trying to test.
First, Method I'm testing:
Thing.prototype.getStuff = function(){
return new Promise((resolve, reject) => {
// Bunch of business logic...
this.getOtherStuff().then((data) => {
// Pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59148901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Jenkins Amazon Cloud slave can't checkout multibranch pipeline repo I configured ec2 cloud slave on jenkins - when my multibranch pipeline starting it's first checkout the scm
when this run on master everything works fine and the checkout success
but when it run on slave it's look it does not know the key:
In the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52717912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validation didnt work well after submit
$(function(){
$("form").validate(
{
rules:
{
username: {required: true},
email: {required: true, email: true},
},
messages:
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40935325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Opening the app from show 2 app icons on React native/android I just ejected from Expo and implemented a Deeplink the problem is when I open the link in android there are 2 apps that will open the first one is from an android manifest because I can change it a name but 2nd it I don't where it triggered or how it gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64547347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery validation plugin - numbers only, min & max length - space issue I'm using jQuery Validation (PLUGIN URL) plugin for most of my form validation:
I have following example (LIVE EXAMPLE):
FORM:
<form class="form" id="feedback-form" method="post" action="#">
<label for="phone">Contact number:</label>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7318024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Importing a MySQL schema to Xcode as a CoreData Data Model I have an existing MySQL database, I would like to import the schema into Xcode and create a Core Data data model.
Is there a way (tool, process) to import the CREATE statements so I don't have to build the models "by hand"?
As an intermediary step I could c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3924856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a AudioManager.MODE_IN_COMMUNICATION Bluetooth permission interaction? I have a very simple line of code:
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
However, recently on 4.0+ devices, I am seeing a crash due to this line saying it requires the bluetooth permission.
To be more precise, the er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21417127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NSIS Exec command with very long parameter list being cut off by the next line In my NSIS script, I have the following lines (Didn't turn the 1st line into a code block because it was too long and looked bad as 1 line):
Exec '"$BINDIR\SubscriberACD.exe" //IS//SubscriberACD --Install="$BINDIR\SubscriberACD.exe" --Des... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38728790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLite with ArrayList and ArrayAdapter Could you please tell me what's wrong with this code. It runs but results are not listed. I just want a simple SQLiteDB running test to finalize my another project. I assume that something wrong with ArrayList use.
public class MainActivity extends Activity {
String names;
Lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12845039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stripe token - why isn't data-amount included in the token I've been playing with stripe recently and while i fully understand that the token hides the clients credit card details from the server. This tutorial suggests that the server should not rely on the data-amount since it can be changed by the client
Don’t Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31478840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pass the data between pages in ionic 5 I want to pass some data between the pages in ionic version 5. Is there any possible way to do this?
I am using ionic version '5.4.16' and angular version '10.0.8'.
A: Page 1
constructor(public nav: NavController){}
pushToNextScreenWithParams(pageUrl: any, params: any) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65607106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL Query COUNT Output I am trying to get information from another SELECT inside of the same query, however I am not too sure how to get the required field I am after.
SELECT t.`id`, t.`title`, t.`author`, t.`content`, ctitle, cid, comments
FROM `tutorials` AS `t`,
(
SELECT tc.`id` as `cid`, tc.`title` as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8425578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scala program cannot find JDBC driver for Sql Server My classpath begins:
C:\Tools\Microsoft JDBC Driver 4.0 for SQL Server\JDBC-Sql\sqljdbc_40\enu\sqljdbc.jar;
My test program is:
import java.sql.DriverManager
import java.sql.Connection
object TestJDBCSqlConnect {
def main(args: Array[String]) {
val driver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37466385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems while getting custom dimensions via API from Google Analytics Goog day. When I try to get custom dimensions via API, I got error
Exception 'Google_Service_Exception' with message 'Error calling GET
https://www.googleapis.com/analytics/v3/management/accounts/~all/webproperties/~all/customDimensions:
(40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34523435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use variable inside this constant declared in angular services I have this constant webroot declared inside my angularjs v1 services.
angular.module('myApp.services', [])
.value('version', '0.1')
.constant('configuration',
{
webroot: 'http://127.0.0.1:10840'
}
])
I have a variabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42522357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R plumber Installation SSH key Error on creating droplet in Digital Ocean I am trying to deploy R plumber API on digital ocean (DO).
I am using windows 10 and following these steps to create droplets from RStudio. For SSH keys, I am using PuTTY key generator, followed step mentioned here and saved private key in c:/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60481403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JS URL regex, allow only urls and empty string I have the following regext:
var regex = /^(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;
function test() {
alert(regex.test(document.getElementById("myinput").value));
}
I want to allow url or empty string. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60814497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Algorithm to code URL is there some algorithm in C# to encode url with symbols that can correct display in web-browser?
something like Base64.
A: The Standard (RFC 3986 aka STD 66) lays it out for you. In particular, §2 and 2.1:
2. Characters
The URI syntax provides a method of encoding data, presumably for the
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17493471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Creating Conditional Script in PHP / Wordpress I'm still pretty new to PHP, and I'm having trouble getting this to work. What I want to do, is make the slide linked (if link is available). Otherwise, print the post thumbnail without the
Here's my code so far:
<?php // START SLIDER ?>
<div class="slider">
<ul class=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21999882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display image in column of grid based on value in column's renderer? I have a grid panel like:
Ext.define('Demo.view.main.content.source.Ex', {
extend: 'Ext.grid.Panel',
requires: [
'Demo.store.main.content.source.Ex',
'Demo.view.main.content.source.ExController',
],
xtype: 'a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28826867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use a script with GNU license I have a question about softwares and webapps license.
I get a php script, it published with "GNU GENERAL PUBLIC LICENSE".
Can I use this script in my webapp, and when my app is complete (I write my code and design pages), can I sell this app?? (I won't change license of that script, ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4555890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET and WordPress I have 2 websites (www.example.co.uk and www.example.net)
*
*www.example.co.uk is a WordPress brochure website (front end)
*www.example.net is built in asp.net and is hosted on Microsoft's AZURE and allows people to manage their data etc. (back end)
People are getting confused when they v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40377358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use a bookmark with javascript to alter a website css I'm not too good with colours and on a moodle course I'm tutoring I have a really difficult time spotting the difference in unread and read posts. The unread posts are highlighted but the colour is too similar to the background for me. Previously I've u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43913971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compiling tensorflow/models/rnn/translate:translate with local numpy
I am trying to run the neural machine translation demo on a gpu. The GPU example in tensorflow's getting started page works.
$ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
$ bazel-bin/tensorflow/cc/tutorials_example_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33790135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perform OpenURL action using new AdaptiveCards.Renderer.UWP package Before new nuged package with braking changes arrived, I was able to subscribe to actions and defined what app should do for OpenURL action:
renderer.Action += Renderer_Action;
..
private void Renderer_Action(AdaptiveCardRenderer sender, AdaptiveAct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46572339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ignore Case sql query I am trying to basically ignore the case sensitivity for my db2 sql select * query, so that I can populate the products to my catalogue page. Ex. If I type in my search bar 'squeege', I want the item 'Squeege' to populate, even if there is a difference in Upper/lower case. What is the best way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64813688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS 2017 - Rebuild until it works? Whenever I open a new project (usually, it's branched from TFS) and sync it locally, the first build never succeeds... i have to keep pressing rebuild, until it works... I assume this is some kind of bug related to my solution, because other smaller solutions work fine.
Details:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42867854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i make my caroutine run in every x seconds I created a caroutine, and i want it to run in every x seconds. i tried using while loop but it didn't worked for this caroutine. can anybody please help ? thanks.
IEnumerator StartFire()
{
{
Firing = true;
animator.SetBool("isFiring", tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70319713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I place external JAR references of a WAR file other than WEB-INF/lib or WL_HOME/server/lib I have 120 Java Projects exported as JAR files in D:/FC/APP_LIB folder. Now I developed a Web Service (JAX-WS), to be deployed on Weblogic 12c (12.1.2), which refers to those JAR files. I don't think it will be a goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18223571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to write asp.net to create a file in sharepoint? After giving up java script, I'm writing the asp.net to make a popup, and once the user finish wrting the content and title, it will make a .aspx file and upload to documentary library.
But how can I do that? I googled but not many materials on that!
Anyone can he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11689909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Core Data Fetch GrandChild from Parent Thank you for your help in advance.
I am able to fetch a child entity from a parent, as seen in the code below, but I can not figure out how to fetch the grandchild based on certain on child in a parent.
How do I add on to or change my existing code to get values out of a gra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9719550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I pass an array through a Helm template? I'm using Helm v3.
The issue is that I've a template which gets an input value from a values.yaml file.
I've a parameter that looks as follows:
{{ if .Values.school.students}}
students: {{ .Values.school.students}}
{{ end }}
Now, the actual value of students looks so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64911269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rails and authlogic, Not able to solve dependencies This is my Gemfile:
gem "rails", "~> 2.3.8"
gem "rake", "0.9.2"
gem 'mysql', '2.8.1'
gem 'aasm', '2.1.5'
gem "authlogic", "2.1.6"
gem "acl9", "0.12.0"
gem "formtastic", "1.2.5"
But bundle install reports:
Bundler could not find compatible versions for gem "active... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26526753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Testing fragment using FragmentScenario results in java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
I have tried to test my fragment using fragment scenario but I always get the below error
@RunWith(AndroidJUnit4::class)
class HomeFragmentTest {
@Test
fun fab() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61544932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: flex 3 - canvas background visibility issue, how to place bg on top left corner update1 please read the updated para below
update2 created a test app. figured out that the flex tries to place the bg in the center of the container (canvas). so the new question is "how to position bg image to the left top corner when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8635039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove tmp directory files of an ios app? I'm working on an app that uses the iPhone camera and after making several tests I've realised that it is storing all the captured videos on the tmp directory of the app.
The captures don`t disappear even if the phone is restarted.
Is there any way to remove all these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9196443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Why is my react stepper component is look like small? I've used material-UI stepper to make multi-step form inside of the Drawer content which also a material-UI Drawer. But when I use that stepper code it looks like the below picture.
So, where is the error?
And that stepper code would be like:
import React from '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63765416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Using statement, As vs = Is there a difference between using 'As' keyword and the '=' operator in vb.net?
Example:
Using aThing As New Thing()
...
End Using
' OR
Using aThing = New Thing()
...
End Using
A: There will be no effective difference if you have Option Infer On. If you have Option Infer Off th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43795184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Maps Storelocator with filter (attributes) i am using this tutorial:
https://developers.google.com/maps/articles/phpsqlsearch_v3?hl=de
Everything works so far, but how can i add a function to filter within the results by attributes?
Anyone here who has something for me? I can not find anything so far.
many T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16275775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compare two array's and disable a single element if the id's are equal I have two array in the state and both have id's.
if some array have the same value (In this case 8) I would like to disable all the buttons that have this equal value.
The buttons already exist, I just want to disable the ones that have the same... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58541212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cakephp 1.3: Displaying user data in paginated comments another fairly basic question I suppose, but I feel like I'm running in circles and out of ideas, haha.
I'm trying to create a commenting system with pagination (via Ajax), which has to be able to display the name, avatar, etc. of the user that wrote a particul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7861969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to wait for a function to finish it's execution in angularJS? I've a function named validityCheck() and it's returns valid if an user is valid and invalid if the user is invalid. I need to call this function from somewhere else and use the result in if-else condition.
Here's the function definition (This functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62528627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django prefetch table that is not directly related With the following models is it possible to get Category objects and prefetch OrderLine so that it can be accessed by category.orderlines.all()?
class Category(models.Model):
name = models.CharField(...)
class Product(models.Model):
category = models.Foreig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59247634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: IIS6 and .Net 4.5? In the past, the .NET framework has been independent from IIS versions, and have worked with IIS 6+.
Will IIS 6 be supported for .NET 4.5?
A: IIS 6 is part of Windows Server 2003 (and technically XP 64-bit).
The .NET Framework 4.5 System Requirements indicate that Server 2003, thus IIS 6, is not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11935534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: GCC ignores `-mcpu=arm7tdmi` flag and generates unsupported instruction I'm trying to compile a small program for arm7tdmi (i.e. armv4t), using the command arm-linux-gnueabi-gcc -march=armv4t -mcpu=arm7tdmi -nostartfiles -static test.c -o test on Debian (gcc version 10.2.1, Debian 10.2.1-6). However, GCC seems to ig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72693275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.