text stringlengths 15 59.8k | meta dict |
|---|---|
Q: PowerShell How to use -and in Where-Object I want to filter a command result using two conditions. Here are my commands
$list=Get-PnpDevice | Sort-Object -Property Name | Where-Object -Property ConfigurationFlags -NotLike '*DISABLED*' | ft Name, InstanceId -AutoSize
and the next filter is
$list=Get-PnpDevice | So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56297144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pay with paypal and recurring using billing agreement API I just want to understand that how can I redirect user to PayPal account ==> login ==> agreed to payment teand based on selection I can call my Billing Agreement Rest API.
Do I need to setUp My Own UI to process payment ?
A: The most important thing here is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48515848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sending email with delayed job within Rails_admin causes an error I have a custom collection action in Rails Admin as follows:
require 'rails_admin/config/actions'
require 'rails_admin/config/actions/base'
module RailsAdminSendNewsletter
end
module RailsAdmin
module Config
module Actions
class SendNewsl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14831316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone SDK have a different title on the tab bar and the navigation bar I have a simple question (maybe not a simple answer). Currently I have an iPhone app and I tab bar and navigation set up on it. When I set the self.title it puts it in both the tab bar and the navigation bar. I was wondering if there was a way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7394864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Event not working on templated dojo widget My widget makes the form but the event that is suposed to happen doesn't. When the button is clicked it is supposed to grab the value in the input box then put it into URL that is being requested then paste that page into the results div.
EDIT NOTE: Found out that if I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31834948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to automatically generate java classes from Neo4j graph database In my application, we choosen Neo4j as database. We have designed the database with all the required nodes and relationships. We are trying to integrate the in our springboot java program with reactive neo4j repository. Now we are plan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63242304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android onLoadCompleteListener how to implement? I have a custom class called "Sound" with SoundPool, I want to implement the loading complete listener so that my activity can play an intro sound and display the "start" button once loading is complete.
How would I go about implementing the listener and then testing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3908756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compare two arrays in PowerShell I try to compare two arrays, but it won't work.
#System.Data.DataSet -> $Dataset.Tables.Identifier
#System.Xml.XmlElement -> $xmlarray
#$Arraytemp = $xmlarray | Where {$Dataset.Tables.Identifier -NotContains $xmlarray.myid}
$Arraytemp = $xmlarray | Where {$Dataset.Tables.Identifier ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51918604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: less css mixin with parametric A as default for parametric B I'm currently working with LESS CSS and tried to create a mixin that mimics the default css behavior of shorthand parameters.
in css you often declare i.e.
margin: 5px 5px 10px;
and it's read as
margin: 5px 5px 10px 5px;
I tried the same with a border-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10451617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to directly search string in PDF using any programming language Is it possible to search for a particular string in PDF using any programming language without converting it to a text or doc file. I want to search for a string directly without converting it, I tried to convert it to text and then search for the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5827370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to collapse a data table by its ID I am fairly new to r, and I am working with a large data set. I made an example of what my problem is below (data set is tab delineated). Basically I want to collapse all data by its ID number so that all of its attributes are contained in 1 cell instead of many cells.
The ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48513045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Sorting a list in OCaml Here is the code on sorting any given list:
let rec sort lst =
match lst with
[] -> []
| head :: tail -> insert head (sort tail)
and insert elt lst =
match lst with
[] -> [elt]
| head :: tail -> if elt <= head then elt :: lst else head :: insert elt tail;;
[Source: Cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2756489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I open a html file, after a php file is run? I am a complete beginner in web development in regards to php. Right not I am using:
<form action="phpfile.php">
<input type="submit" value="click on me!">
</form>
To open up my php file, which is a simple echo "hello world!" (for testing purposes) T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40429460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reference a lambda from inside it? I am trying to get height of a view in onCreate method but I couldn't find any way to remove OnGlobalLayoutListener.
In Java (working):
containerLayout.getViewTreeObserver.addOnGlobalLayoutListener(new OnGlobalLayoutListener() {
@Override
public void onGlobalLayo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33898748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Argument to KnockoutJS function is returning the viewModel when not defined Still continuing to understand KO here. I have an argument to one of the KO methods,it works when I pass it an explicit value but when I call the function with no args it does not give
<button data-bind="click:LaterCall">click</button>
fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21415644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: get all rows from orignal Dataframe which is having number or alpha number in particular column? I have Dataframe Like this in df_init
column1
0 hi all, i am fine
1 How are you ? 123 a45
2 123444234324!!! (This is also string)
3 sdsfds sdfsdf 233423
5 adsfd xcvbb cb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54474875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Short echo repurposed in newer versions of PHP? I have heard from several people that <?= has been re-purposed / replaced in newer versions of PHP, but am unable to find supporting documentation to this change, or to what version(s) it effects. Has short echo been replaced or re-purposed and is there supporting docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30850899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pandas: Adding column with calculations from other columns I have a csv with measurements:
YY-MO-DD HH-MI-SS_SSS | x | y
2015-12-07 20:51:06:608 | 2 | 4
2015-12-07 20:51:07:609 | 3 | 4
and I want to add another column with the square ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36517311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Map in Fragment: incompatible types cannot be converted to Fragment I checked several solutions on StackOverflow but nothing fitted my special problem.
I have several Fragments and I want a google map activity in one of those.
So I prepared the layout and created a new google map Activity with the necessary name.
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45259802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nodejs application healthcheck best practice I'm looking into setting up a healthcheck mechanism for nodejs microservices running via container orchestrations. From a nodejs/express point of view, what is considered best practice to ensure that the service is indeed running on a given port on a given container? Eg. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48885862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Next.js refreshes indefinitely when query params are present I'm running a pretty basic Next.js app on local (next dev) and whenever a route has query parameters, it loads an reloads in an infinite loop. I've removed all calls to router.push, router.replace, and window.location but to no avail. When there are no que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75164906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does read_edgelist from networkx not accept arrays/lists as weights? I am using Python and the networkx package to read an edgelist from file in order to build a graph.
My edgelist looks something like this:
[(0, 114, {'pts': array([[ 1, 822],
[ 1, 821],
[ 2, 820],
[ 3, 819]], dtype=int1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64318230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Noda Time Date Comparison I am new to Noda Time and I basically want to compare if a date has expired or not. In my case I have an object with the date it was created, represented by a LocalDate and the amount of months it's valid as an int, so I wanted to do a simple:
if ( Now > (dateCreated + validMonths) ) expir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28218324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DataFrame column data to series I have the following DataFrame that contains some rainfall data. I want to reformat this so that I get a Series with 24 entries indexed with 'Month-Year' so that it will be easier to plot this as a line.
JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC
Year ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46744512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How recursively find files with Unicode names in C++? I found and modify solution from here:
#include <iostream>
#include <windows.h>
#include <vector>
#include <fstream>
using namespace std;
//wofstream out;
void FindFile(const std::wstring &directory)
{
std::wcout << endl << endl << endl << "FindFile(" << d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43329565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to use angular lazy loading without a routes file I am using angular lazy loading for my modules.
For example I load the modules like this as recommended by AG8
const routes: Routes = [
{path: 'home', component: HomeComponent, data: {title: 'Home', animation: 'Home'}},
{path: 'services', loadChi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58630933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery menu breaking on fast clicking/ scrolling over I have this jquery code below, but the problem is that if I scroll over and out of the trigger element quickly and through the menu, then it breaks, progressively showing less elements each time until nothing is shown. Can I add a timer or easing to stop this bre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15598718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python, simple calculation User types an integer number (smaller than 100, bigger than 0)
If user types 0, the program ends. In case of numbers that are 100 or bigger, or that are -1 or smaller, it shows INVALID, and prompts user to keep entering number.
a = int(input('Enter a number: '))
total =0
keep = True
whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46901509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend Framework - Issue with delete from database code In my Application_Model_DbTable_User, I have the following function:
public function deleteUser($username)
{
$this->delete('username = ' . (string) $username);
}
This function is being called from my AdminController, with this three lines of code.
$uname = $... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11631826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Winapi detect button hovering I've got a C++ project in which I'm using the Winapi to develop a window with a button and I want to change the text of the button when it's being hovered. For example, changing "Click me" to "Click me NOW!", when hovered. I've tried searching but I've not found any good ways to do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45018958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can angular be exposed as webservice API? I want to expose angular as web service, is that possible?
In other words, can a backend calls angular, using typescript language?
A: NO, it's not possible. Angular is a FRONT-END framework
A: Strictly speaking, It is not recommended but I would say it is possible.
Basical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62623829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replacting XML node text using PowerShell I am having my XML document as follows
<Batch>
<Alter>
<ObjectDefinition>
<DataSources>
<DataSource>
<ConnectionString>Provider=SQLNCLI11.1;Data Source=ABC;Integrated Security=SSPI;Initial Catalog =TesDB1</ConnectionString>
<Connecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39888180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access VBA Return 0 in grouping even if there is no match I have employees table in access db with days on which they have worked on:
Table A
employee_id | date_wrk | Project | Worked
-----------------------------------------
1 10 |01.01.2015|Project1 | 1
2 10 |12.01.2015|Project1 | 0,5
3 10 |01... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32179020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AWS CodePipeline: source action has insufficient permissions for CodeStar connection I'm setting up a CodePipeline, and I created an action to fetch the source from GitHub.
This requires to set up a connection, which I did, and things look fine also on GitHub's side.
However, if I release a change to the pipeline, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64298865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to parse cell format data from a .xlsx file using xlrd I am relatively new to python and I am trying to read information from an excel sheet to generate a graph. So far I am using the most current version of the xlrd library (0.9.4) in a nested for loop to grab the value from each cell. However, I am unsure how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34801157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to bulk insert data in Djnago without providing fields to model How to bulk insert data with only providing dictionary key and not worry about manually providing fields and type of fields in models.py
What I have to do right now:
models.py
from django.db import models
# Create your models here.
class Info(mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71504037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: gcm canonical id should be updated or not I am working on an android project which uses gcm. I came to know that if we uninstall the appfrom device and reinstalled most of the time the device gets new registration id.Then if we do not delete the old one from application server and update, The messages will be sendin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23710404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I am making a paint application using kotlin. I wanted to erase my last path using an undo button. How can I do that? I was trying to make a paint app through which users can paint and draw for fun.
I wanted to erase a drawing partially by using the undo button in my app. The floating action button I have used erase... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70325024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pythonic Way To Warn Developers For Broken Code Is there a pythonic way to throw an exception to other developers to warn them about using a piece of code with bugs in it?
For example:
def times_two(x):
raise BrokenException("Attn.This code is unreliable. Only works on positive numbers")
x = abs(x) * 2
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54754982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NHibernate - counters with concurrency and second-level-caching I'm new to NHibernate and am having difficulties setting it up for my current website. This website will run on multiple webservers with one database server, and this leaves me facing some concurrency issues.
The website will have an estimated 50.000 us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4246051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: delete specific rows from a flat file How to delete specific rows from a flat file on the basis of first 4 characters of a row? For example; delete the rows starting with '1000'. (After deleting these rows, the file will remain there with other rows that start with '2000', '3000', and so on.
Or, how to write the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30043171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deleting top 100 records from database via NHibernate using linq Is there a way to delete top 1000 records from database via NHibernate using ling , something similar like Take(100) when u are fetching data?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/64800541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access VBA Checkbox error 2447 Ok, I'm getting the error 2447 when trying to create a new record in my database. Here is the code that is have.
'This checks the record each time a record is changed to see if it needs to display the text boxes
Private Sub Form_Current()
If Me.SigCheck = 1 then <--This is where I'm g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19054138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get reference to commits in git Lets have a git master branch and at some moment lets fork branch for release (release branch will be called R1). Sometimes I need to push commit to both of them(master and R1). Usually I work on master branch, when I'm done I test it, cherry-pick to R1, test it there and push ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52622631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C implicit conversion? Can someone explain to me how
printf("%d", -2<2u?1:-1);
prints out '-1'. I assume there is some kind of implicit conversion going on but I can't seem to grasp it.
A: -2 is getting converted to unsigned integer. This will be equal to UINT_MAX - 1, which is definitely greater than 2. Hence, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35362286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Simple loop on windows7 creates memory leak? I am unsure about this, but this question might be related to Memory leak in batch for loop?.
I have the following trivial batch script:
@echo off
:label
cmd.exe /c cls
echo hello
goto label
When this script runs on a Windows7 32-bit installation, it behaves well. But wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11302232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coping text from textarea to div in jQuery I'd like to copy text from textarea to div using this code but there are line breaks missing.
$("#some-div").text($("#some-textarea").val().replace('/\n/g', '<br />'));
What's going wrong?
Thanks
A: The text function will set text, not HTML.
You need replace the newlines ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4969782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CRC16 modbus calculation returns wrong value for long data packets I'm connecting to a device through a serial port. The device appends a CRC16 tag to the end of the data packet in big-endian mode. In software side, the code to check CRC is something like this:
bool Protocol::checkCRC(const QByteArray &buf) {
if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36918735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Echart vs 5: I cannot get Sliders in three containers combined to work as one I have succeeded in making three charts (containers) above each other in ECHARTS v5 and all works fine. However, I need all three sliders to work as one. Meaning that if I change one slider the other two must do exactly the same so the x-A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71664510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: on session end event I have a Symfony2 project, where at the beginning of each session, I create a folder on the server where the user can manipulate and place his files.
I want to be able to delete the user's folder, when he closes his browser
(or any other related event, maybe check for a session timeout?).
How ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9533800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Find the name of the employees with a particular letter I'm having the schemas like:
Employee (Empno, Empname, City)
Project (Pno, Pname)
Part (Partno, Partname, Color)
Use (Pno, Partno)
Works (Empno, Pno)
From these schemas I had created a sample tables:
The goal is to find the names of the projects where no emplo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71025814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Appinvite_styles.xml:5: error When including Google Play Services library to eclipse I need to add an ad to my application. So I need to include Google Play Services library to my project. I have installed lastest version of Google Play Services (r29) and added to my projects as libProject. But when I add this servi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34371867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: A global nextjs middleware without need for import in all the routes TLDR;
a middleware to nextjs like express where I only define it once and it'll automatically applies to all of my routes
I want a middleware style like we have in express I'll define a middleware inside the server.js(entry file) and the middleware... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68666416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling LUIS speech recognition service I'm trying to build simple app using LUIS service. I use project oxford version 1.0.0.6 SpeechRecognitionServiceFactory.CreateDataClientWithIntent to create a data client, but confused with it's interface. My understanding is that LUIS accepts only text queries, but above clie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44771410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: force input element's width to size to its content/value I'm trying to unstyle an input element so that its text looks like plain/inline-text, and I've reset pretty much every css property it can have, but I can't get the input's width to adjust/shrink to its content (input { width:auto; min-width:0; } does not work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14904219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: RegEx expression not alerting properly in JS Okay, so when the user enters his/her full name in the field, I want a greeting to say, "Nice to meet you, (split name). I want to take the value of the input, take the innerHTML, split it, then take the first part ([0]), and alert it!
Ignore the if/else stuff :P
HTML
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17564090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: phpStorm remote debug goes to server_ip/index page all the time, what is wrong? I am trying to setup remote debug in a remote project under phpStorm 10.0.2 and I can't. Any time I set a breakpoints and hit Shift+F9 or Alt+Shift+F9 browser opens this URL: http://remote_host_ip/index.php and I don't know why. xDebug i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34440457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android : getting only the last item in the listview multiple times i am trying to get the items in the listview using json from server, for this i have made my custom adapter. but if there are 6 items on the server it displays the last item 6 times in the list view and i have given a checkbox infront of every item ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11516364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multiplying modified colums to form new column I want a query like:
select tp.package_rate, sum(sell) as sold_quantity , select(tp.package_rate * sold_quantity ) as sell_amount from tbl_ticket_package tp where tp.event_id=1001
here the system firing error while doing the multiplication as
sold_quantity is invalid ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36944253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Text-decoration: none not working Totally baffled! I've tried rewriting the text-decoration: none line several different ways. I also managed to re-size the text by targeting it but the text-decoration: none code will not take.
Help much appreciated.
Code
.widget
{
height: 320px;
width: 220px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11419998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: How to fix CA Dispose objects before losing scope? CA throw the following message:
CA2000 Dispose objects before losing scope.
In method 'GetMatchingJobsDeferred(BackgroundJobSearchParameters)',
object '<>g__initLocal0' is not disposed along all exception paths.
Call System.IDisposable.Dispose on object '<>g__initLo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33892783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can't get web page source from url in Swift I'm currently using SwiftHTTP for getting source of url address. I am using 'get method' for getting source code of url address which is
do {
let opt = try HTTP.GET(self.my_url_address!)
opt.start { response in
if let err = response... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45288316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set control (windows control) position to some other control relative postion I want to set control position relative to other control so when i make one control hide then other control move up like this.
Ex.
Label1
Label2
Label3
When i hide Label2 so output will be
Label1
Label3
A: You can use FlowLayou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5429528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keeping variable names when exporting Pyomo into a .mps file So, i'm currently working with a pyomo model with multiple instances that are being solved in parallel. Issue is, solving them takes pyomo quite a long time (like 2 to 3 secs, even though the solving part by gurobi takes about 0.08s). I've found out that, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64342685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Operator overloading From language design point of view , What type of practice is supporting operator overloading?
What are the pros & cons (if any) ?
A: Pros: you can end up with code which is simpler to read. Few people would argue that:
BigDecimal a = x.add(y).divide(z).plus(m.times(n));
is as easy to read as
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3183678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Would 2 consecutive .load calls in jquery execute async? In a script like the following, would the load functions be called in asynchronously or one after another?
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("#TheLink").click(){
$("#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2062241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: The syntax of my rename command is incorrect When trying to rename a file in a command prompt, I am getting the error:
The syntax of the command is incorrect.
Here's my command:
rename "%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs" "%userprofile%\AppData\LocalLow\Sun\Java\Deployment\se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48447486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Access value of Struct data I need to access value in a struct defined as mydata:struct<1:array<int>>.
I tried accessing using mydata.1 but it is not a valid syntax.
Sample data {1=[154873, 155630, 157698, 157945, 159058, 163148]}
A: Simply quote the 1 with double quotes:
SELECT mydata."1" FROM my_table
A: This c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64018625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disable -Wreturn-type checking I am trying to compile Model 5.0 under OS X 10.8.3
I am getting a lot of warnings and errors while compiling. Several of those error are something like
xwin.c:31523:2: error: non-void function 'scrfrg' should return a value
[-Wreturn-type]
return;
What flag in C/C++ chec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16303232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Spark createdataframe cannot infer schema - default data types? I am creating a spark dataframe in databricks using createdataframe and getting the error:
'Some of types cannot be determined after inferring'
I know I can specify the schema, but that does not help if I am creating the dataframe each time with source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69650086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add RSS feed to a section of a View in Codeigniter I am completely new to Codeigniter and am trying to add an RSS feed to a section of my Home view as follows. I have asked this question already but I wasn't clear in how I presented my code so I have submitted it again. I have researched this on multiple forums espe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21261791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cordova APP - Is it possible to show camera feed in a container? I am using ionicFramework with Cordova to build an App. My requirement is to show (front) camera feed inside my app (say at top right corner of the app).
Unfortunately "cordovaCapture" is not working for me. "navigator.camera" just opens camera view, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31128943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's a functional replacement for if-then statements? I've been learning F# and functional programming and trying to do things the functional way. However, when it comes to rewriting some code I'd already written in C# I get stuck at simple if-then statements (ones that only do something, not return a value). I kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9298419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Google Spreadsheet Script Trigger: This app is blocked I am trying to create a trigger for a script in google spreadsheet and upon trying to save the trigger I am getting the following error:
This app is blocked This app tried to access sensitive info in your
Google Account. To keep your account safe, Google block... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66333420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call method on a child React.Component from a parent React.FunctionalComponent? How can I call a method on a child component from a parent component? I'm not sure it matters but my parent component is a functional component and the child is a class component. I'm hoping that the switch to function components ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56964896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to access a variable from another script in another gameobject through GetComponent? I've searched around and I just can't get this to work. I think I just don't know the proper syntax, or just doesn't quite grasp the context.
I have a BombDrop script that holds a public int. I got this to work with public stati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26551575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: C# Access to the path is denied... Client.Download(filelink, path) I've a problem with my code:
when I try to download a file from dropbox, and put it in my Roaming folder something goes wrong, here's the error Log:
System.Net.WebException: An exception occurred during a WebClient request. ---> System.U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12730441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSMutableArray not responding to removeObjectAtIndex: I think i've run into a confused state where i'm doing something fundamentally wrong, but i cannot understand what and why this is happening.
Picture 1: A property of a My class. A NSMutableArray.
Picture2: The code block i want to execute, i want to remove th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13342169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sqlite Database Error: The FMDatabase is not open. I'm getting this Error "The FMDatabase is not open". Even after i open my database first before executing query. Here's the code of instance of database which i'm using to open database.
var instance = ModelManager()
class ModelManager: NSObject {
var database: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46292229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scrolling divs not scrolling to bottom of content I have 2 scrolling divs (outlined in red) that will not scroll to the their respective bottoms. I can't seem to seem to figure out what to tweak to fix it.
The thick outlined box is a simulated browser window.
http://jsfiddle.net/jsk55rfb/4/
HTML
<div class="contain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26261899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to remove space between numbers in ASP.Net using RegEx I need to remove the space between the numbers using RegEx means I want to make a formated number from the input like {lhs: \"1000 U.S. dollars\",rhs: \"58 740.6015 Indian rupees\",error: \"\",icc: true} I tried the following expression Regex regex = new Reg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17187534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error using Play Framework debug command I try to launch my play project in debug mode with the play debug command, and it display me an error I can't resolve, despite of Google research... I found many topics about it, but no solution worked for me. Tried to change debug port, run as administrator, disable firewall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27232386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deploy WAR to TomEE server I built my JavaEE project & got my-service.war file. I want to deploy it to TomEE server.
I have successfully installed TomEE (I can start & stop TomEE server successfully).
I copy my-service.war to
<TomEE_Home>/webapps/
Then, I start TomeEE server.
I open my browser, and put URL http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38972721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Saving activity into pdf file I need to save Activity content into .pdf file. Something like a screenshot. I can save individual views of a activity into file using this code:
PdfDocument document = new PdfDocument();
PdfDocument.PageInfo pageInfo = new PdfDocument.PageInfo.Builder(600,300, 1).create();
PdfDocument.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37046302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Web Start return value - workaround I know that returning a value from a JWSapp to the "calling" page cannot be done.
However, I use this JWSapp to get user ID from its biometric information.
The idea is that when you try to login, a button allows to launch the JWSapp that will deal with the biometric tasks and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37682860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storyboard vs. iOS Simulator WYSIWYG This is my problem:
Left side: iOS Simulator Right side: Storyboard / Interface Builder
Any ideas? Thanks
... UI Elements placed in IB appears shifted up in Simulator
Maybe a better solution than this ... I have two xibs with the exact same look, one is shifted up,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10163347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Missing MySQL DLL? I've recreated the Northwind Spring/NHibernate example that comes with Spring.NET, but with MySQL rather than SQLServer. I've almost got it working I think, but I'm getting this when I try to use Hibernate to load something from the database
A first chance exception of type 'System.IO.FileNotFound... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7451219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I set a System.env variable in Android Studio? In my build.gradle file in Android Studio using NDK, I have the following code. The app builds if I run it from the terminal with "./gradlew --assembleDebug" since I have set the path for ANDROID_NDK_HOME to /Users/chenige/Desktop/android-ndk-r9, but it will not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23714697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatic Views how to set unique id's? I am creating in my app bunch of programmatic Views. As it appeared to be they all by default have the same id=-1. In order to work with them I need to generate unique id's.
I have tried several approaches - random number generation and based on current time, but anyway th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6790623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Php, Symfony 1.4,doctrine I want to convert this mysql syntax into a doctrine 1.2 syntax. I want to show dates with zero values and print some errors on it. Also, is PHP foreach loop relevant for this for the templates/views?
SELECT calendar.datefield AS DATE,
IFNULL(SUM(orders.quantity),0) AS total_sales
FRO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24257997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting InvalidOperationException: Incorrect Content-Type: text/plain exception when processing file through Web API Core I am having an API.Net Core Web API app that has a POST method that accepts and processes a PDF file.
However, when I try to test in POSTMAN (Selecting POST, selecting Binary, choosing a file) I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58327856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a running total grouped by a statement evaluation Using this article I have implemented a query that determines packing intervals for user events:
http://www.itprotoday.com/microsoft-sql-server/new-solution-packing-intervals-problem
I've ended up with following output:
However, the bit I can't fathom out i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47551114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOS - UILocalNotification - can schedule only up to 64 slots at a given time Overview
*
*I have an iOS app which sends local notifications at specific dates.
*I just learned that I can only schedule 64 notifications at a given time.
*There are cases when I can't schedule notifications as the 64 slots are fill... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10576570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sampling and removing random elements from a list I have written a method which randomly samples a part of a list. The code is as follows:
private List<String> selectImages(List<String> images, Random rand, int num) {
List<String> copy = new LinkedList<String>(images);
Collections.shuffle(copy,rand);
ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46693619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: to compare two text files and output the difference in other file .txt I want to compare two text files and output the difference in other result.txt.
I use this command in command prompt:
findstr /vixg:Z:\misc\test1.txt Z:\misc\misc\test2.txt > Z:\misc\misc\result.txt
But I have the file result.txt is the same of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42654699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: db connection deadlock We have a web application that has been running well for several years. The web application was using mysql, spring-1.2.6, and ibatis.
After replacing spring-1.2.6 with spring-3.2.0, we started to notice a problem that multiple concurrent requests to a particular page always hang for some reas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15993698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to type cast a literal in C I have a small sample function:
#define VALUE 0
int test(unsigned char x) {
if (x>=VALUE)
return 0;
else
return 1;
}
My compiler warns me that the comparison (x>=VALUE) is true in all cases, which is right, because x is an unsigned character and VALUE is defined with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1362420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to remove the word "Data" at the top of Excel Pivot Table generated by C# with Interop.Excel? I have the following example raw data table:
And hope to make the following Pivot Table using C# and the Microsoft.Office.Interop.Excel library:
I have written the following code to generate both the original table an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64200225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Formik component changing an uncontrolled input of type text to be controlled I am using Formik with an array, where the items are being passed from a parent and retrieved like this:
updateState (){
this.state.choices = this.props.choices
this.state.questionId = this.props.questionId
}
render() {
thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53217463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: can't see properties of viewcontoller I want to change the value of a label in my default view controller from a different class.
*
*So I start a simple 'Single View Application' iOS project (Xcode5)
*This automatically generates a ViewController for me (which I
understand is the root view controller)
*I now a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20609973",
"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.