text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Proper approach of listening solidity events in NestJS I am developing dApp. I am using NestJS and I have written contracts in solidity.
There are few events emitted from solidity. I need to listen to those events in NestJS.
My code to listen to solidity events is
contract.on('EventName', async(val, event)=>{
// do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73017467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing ant command line options to an exec'd ant process? I'm using ant to build a mixture of Java and C++ (JNI) code that makes up a client project here. I've recently switched the C++ part of the build to using ant with cpptasks to build the C++ code instead of having ant invoke the various versions of Visual Stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1454208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Apps Script Function generating an extra blank row I have an Apps Script function that manipulates rows of data in a sheet by first repositioning them and then transposing column data into rows. Everything works well except that I end up with an extra blank row between each block of 48 rows of data.see sheet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63124005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Predict probablilities from glm models after purrr::map with a new dataset I am replacing r for loop with purrr::map, and predicting probabilities with a new dataset.
Using for-loop, I have been able to obtain predicted probabilities for different subgroups with a new dataset. I am trying to reproduce the same an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56896309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linq Retrieve Entities using a Navigational Property Linq and EF.
I'm pretty new so I have some problem to retrieve entities using a Navigational Property (CmsContents).
I can return as an List but not as an IEnumerable.
*
*Could you tell me what is wrong in my code?
*Also do you know a better approach to retrie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6914562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modify working AddHandler to match files only in the CURRENT directory, NOT child directories The following works fine for allowing PHP to be executed on two XML files:
<FilesMatch ^(opensearch|sitemap)\.xml$>
AddHandler application/x-httpd-php5 .xml
</FilesMatch>
However unfortunately this rule would allow this to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61097306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Angular FormBuild email validation fails on the init (the value is an object) In my Angular v5.1.2 project I'm using FormBuilder to create simple form:
this.userDetailsForm = this.formBuilder.group({
id: [{value: this.user.userid || '', disabled: true}, [Validators.required]],
email: [{value: this.user.email || ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48252534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to import the google map timeline Json data into a DataFrame I got my commuting report from google map timeline and it is in json format. I use these codes:
with open('Location History.json', encoding='utf-8') as data_file:
data = json.loads(data_file.read())
pd.DataFrame(data)
the dataframe has only one 'l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45517568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FileNotFound Exception MediaPlayer android I have a1.ogg in the res/raw file
try {
mp = MediaPlayer.create(this, R.raw.a1);
} catch (Exception e)
{ Log.e("msg",e.getMessage()); }
Give me java.io.FileNotFoundException
The same file in wav format work
A: Try this:
MediaPlayer mp = new MediaPlayer();
mp.s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6161415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: EMC VNXe3200 LUN cli command I'm using the below command to view the LUN configuration in VNXe1600.
/stor/prov/luns/lun show -detail.
And i'm trying the same command in VNXe3200 but, nothing is display.
/metrics/metric show This command is used to list all performance command supported by VNXe.
Is there any Unisphe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43225245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Boot: Prevent Jackson from "reformatting" XMLGregorianCalendar upon JSON serialization My Spring boot application queries an external SOAP service. Having generated the classes from its WSDL/XSDs this is what a class looks like.
As you can see, the dateOfBirth is of type XMLGregorianCalendar. The SOAP respons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65330525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Listview Item Remove I want to remove the item in setOnItemLongClickListener, deletion isn't working. Can anyone see what the problem is in the code ?
Adapter
public abstract class myArrayAdapter<T> extends ArrayAdapter<T> {
protected List<T> items = new ArrayList<>();
protected int resource;
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41429016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inheritance - Sharing info between child and parent controllers Context
I have a custom Event Entity which has several child Entities: Problem and Maintenance (and few others but those two should be enough to describe the problem) entity classes inherit from Event entity class.
The addAction(), seeAction() and modif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21991678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Datepicker change event fires multiple times on manual entry I have a datepicker, that has onSelect property that will execute a "change" function on the datepicker input field. The "Change" event runs a function to fill a select list. This works so long as I choose the datepicker, but if I manually enter in a date ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9926809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detect mouse speed using jQuery I want to detect mouse speed, for example the event will be fired only if the detected number is greater than 5
I found one example which I think is something similar: http://www.loganfranken.com/blog/49/capturing-cursor-speed/
but i am not able to make it see the number which is insi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19416948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best practice to authenticate synchronized realm Trying to find any guidance on how to best authenticate to a synchronized realm and making sure not to use any reference to it before.
Let's assume there is no need for a user to login, but e.g. a tableview that is being populated by binding it to a realm.objects quer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39914191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use a list to create a table in html? I am writing a django app with bootstrap and I have a table with a head in one of my pages like the one below:
<table class="table table-striped table-sm table-bordered table-fixed table">
<thead class="thead-inverse table_head">
<tr class="table_head_row">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48684573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to validate the length of character is equals to 5 using express-validator? I am planning to make partnerid field character length as 5 which means user will get error message if he enters less than 5 character or more than 5 characters which will include alpha-numeric character.
How can we do it using express-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50405183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Added new website to IIS8 and still goes to Default Website Setting up a new server - 2012 with IIS8. I added a new web site to IIS8. I set the IP address and the hostname.
Yet when I browse to the site, it goes to the Default Website instead. I stopped the Default web site and I get a 404. I tried restarting IIS as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18708659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Higher validation accuracy, than training accurracy using Tensorflow and Keras I'm trying to use deep learning to predict income from 15 self reported attributes from a dating site.
We're getting rather odd results, where our validation data is getting better accuracy and lower loss, than our training data. And this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43979449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: Data returns array instead of an object Its probably some stupid mistake but tell me what am i doing wrong?
I made it in 2 ways.
*
*In the first solution i send the data from my VsCode to the database and then retrieve it.
*In the second solution i just send parsed json file as a resposne directly from VsCode fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75022686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Neo4j not performing for undirected relationship I've been working with neo4j 4.1 for a while now and whilst I feel that the graph structure should be a good fit for my problem, I can't get it to perform in any reasonable time.
I'll detail the model and problem below, but I'm wondering whether (a) graphs are just no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65717194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert a context diff to unified diff format I have received a patch in the context diff format, and I need to apply it in Git. As far as I know, Git can only apply patches that are in the unified diff format.
Is there any way to convert a context diff into unified diff format so that I can then git apply the modif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50166072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Add the data after the header row in google sheets I am successfully able to retrieve data from an API and paste the data to the sheet. This works well.
Code.gs
const sheet = SpreadsheetApp.getActiveSheet();
const headers = Object.keys(data.data[0]);
const values = [headers, ...data.data.map(o => headers.map(h => o[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68014817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Async Service or MVC Async controller thread usage? Can anyone explain when to use async controller versus an async wcf service? As in thread usage etc?
My async controller looks like this
public class EventController : AsyncController
{
[HttpPost]
public void RecordAsync(EventData eventData)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11198404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Integrating Bootstrap Carousel Indicators with ACF Plugin I am using the advanced custom fields Wordpress plugin to create various slides for a slider. To display the slider I am using Bootstraps Carousel.
The body of the slider if functioning fine. I don't, however, know how to loop through, count the slides and pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46996997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing value to Function through variables in R I have the following dataframe
library(dplyr)
vec1 = 1:10 vec2 = 11:20
df = data.frame(col1 = vec1, col2 = vec2)
x <- df %>% summarize(mu = mean(col1, na.rm=TRUE)) x
New instead of directly using the col1 in mean function, I want to first save the col1 into a vari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67244274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript/PHP - reCaptcha styles are broken I'm using reCaptcha in this form I build, but for some reason, it loses it's styling...
Does anyone have a clue why?
The form: -link no longer needed-
The code for the form:
<td align="center" colspan="2">
<script type="text/javascript">/*<![CDATA[*/ var RecaptchaOpti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8368465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ravendb memory leak on query I'm having a hard problem solving an issue with RavenDB.
At my work we have a process to trying to identify potential duplicates in our database on a specified collection (let's call it users collection).
That means, I'm iterating through the collection and for each document there is a q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47546798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Versioning git repo inside other git repo I am working on developing a little piece of software that works with git repositories, and I would like to be able to write some tests. In order to do so, I created a test-repo folder inside my project that itself is a git repository. In my tests I reference that repository... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14634347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Insert data into blog in WordPress by Json link I want to update my post by JSON link, I have got all post data by this link.
http://xyz/wp-json/custom/v1/all-posts.
how can I setup cron jobs for auto-update.
A: $slices = json_decode(file_get_contents('http://27.109.19.234/decoraidnew/wp-json/custom/v1/all-posts'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53720547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some tips for troubleshooting builds of complicated software? Sometimes I want to build Python or GCC from scratch just for fun, but I can't parse the errors I get, or don't understand statements like "libtool link error # XYZ". What are some tricks that unix/systems gurus use to compile software of this si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2657151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue using kernel linked list in user space I have a linked list like this. The problem i am facing is i have initialized the list head and then i am doing malloc for that struct object.
What i need is i want to make struct nsds_st *r as head of linked list and other nodes after it.
#ifndef __LIST_H
#define __L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32658260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get the IDs of all the controls of Office 2010 ribbon and interact with ribbon shortcut from custom Add-ins I want to get all the controls list in the powerpoint 2010 ribbon like the one in the powerpoint option -> customize ribbon-> all commands.
Furthermore, I want to interact with ribbon shortcut from custom Add-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12639337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to print the nodes in bst whose grandparent is a multiple of five? I'm sorry that was my first time for asking question in stackoverflow. I just read the faq and knew I disobeyed the rules. I was not just coping and pasting the questions. I use an in-order traverse method to do the recursion and check whether th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13637946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Copy & Paste plain text within HTML I have a small templating webapp, where the authors can add placeholders within their richttext editor. To prevent errors I want to provide a list of valid placeholders which then can be copied and pasted. My problem here is the way I can restrict what get's copied.
I tried two ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26468445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Performance Issue with QClipboard Class I have an instance of QClipboard and I want to shift data to it whenever user clicks somewhere in the Application. It seems like there are sometimes performance issues with QClipboard which causes the application to freeze because data gets put on OS clipboard of linux.
QClip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67212286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IBM dashDB sql statement for "insert row if not already existing" I am currently working with the IBM dashDB and I need to know the sql statement for inserting a new row if this row does not already exist based to certain criteria. So, something like this:
INSERT INTO tablexyz (Col1, Col2, Col3) VALUES (val1, val2, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40312650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular 8: value used in comonent.html is not the value in the component.ts (azure app service) I got a really strange behavior in one of my angular app.
In a component.html, I want to display "UAT" and color the angular mat markups with a bright orange when in UAT, otherwise it should be blue and no mention of of U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60227802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Socket implementation is showing problem in react js On implementing the socket.io-client in my project it is showing an error and the connection status is false.
This is the code of socket.
socket = io('url', {
transports: ['websocket']
})
console.log(socket)
and I am using the socket version
"socket.io-cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73003253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How and when to call the base class constructor in C# How and when to call the base class constructor in C#
A: It's usually a good practice to call the base class constructor from your subclass constructor to ensure that the base class initializes itself before your subclass. You use the base keyword to call the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5335488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Avoid Segfault in C++ code if user redefines initialize() in Ruby with Rice One problem I am struggling with while writing a C++ extension for Ruby is to make it really safe even if the user does silly things. He should get exceptions then, but never a SegFault. A concrete problem is the following: My C++ class has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12496817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Python class returning multiple instances I'm musing over the design of a class. Currently, I have a list comprehension over a list of data that instantiates an instance of the class on each member of the list, thus returning me a list of instances of my class.
Would it be better, or indeed possible, to have instead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21203515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are sparse matrices typically stored in column major order or row major order? A little background: I'm interested in doing some research on sparse matrix*vector multiplication.
I've been looking through this database of sparse matrices:
The University of Florida Sparse Matrix Collection
I noticed that there are 3 f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37309771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VBA Dynamically Filter Multi-Column Table Using Column of Product Numbers I am trying to figure out how to filter a data table of products as I type a product # into an Active X Control listbox.
I named the data table (found in the Design tab which is visible upon having focus on the table) 'Item' and linked an emp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48970216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to allow one jPOS ISOField to contain Control character? I am using w3c dom object that represnet an XML file to create the jPOS ISOMessage object.
(loop over the dom object ans set ISOMessage Fields)
The Question is:
In the resulting ISOMessage Object, How to allow one ISOField to contain Control character?
No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1412245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php json_encode fails without error PHP Version: 5.6.15RC1
Compiler: MSVC11 (Visual C++ 2012)
Architecture:x86
I am having problem json_encode ing a multi dimensional php array.
The main problem is that no error is generated (json_last_error=0).
The array is indexed by a string and testing each of these indexes sep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33419117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to redirect users to IE when content using Active X controls is opened with Edge? Based on this link: Edge redirecting to IE (at Reddit), there is apparently a way to show a special purpose page displaying:
This website needs Internet Explorer This website uses technology that will work best in Internet Explore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32571929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resize view and change layout of controls based on subview In my viewcontroller I have created a container view and some other controls.
Based on some conditional logic the appropriate subview (xib) is created and added to the container view in ViewDidLoad()
I am trying to work out a how to make the container view c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47268746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set a security context for java HttpUrlConnection? I am testing HTTP endpoints with HttpUrlConnection:
HttpURLConnection httpCon = (HttpURLConnection) new URL(url).openConnection();
httpCon.setDoOutput(true);
httpCon.setRequestMethod(httpMethod);
httpCon.setRequestProperty("Content-Type", "application/jso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73908225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to customize the bottom bar in react native? I am using a bottom bar in react native. How do I change the background color and make the active bar highlighted with a line at bottom as shown in the image?
Code -
export const InternalStacks = TabNavigator({
Home: { screen: HomeStack },
Graph: { screen:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50363418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Items not getting placed in the grid Need help with figuring out why items are not getting placed in the grid on this test page: https://codepen.io/srikat-the-vuer/pen/KLdOXN?editors=1100.
They are appearing in a single column.
@import url("https://fonts.googleapis.com/css?family=Roboto:400,400i,700");
.grid {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56051640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to have display: inline-block and width:100% at the same time I am not a CSS professional. So I only know some basics of it. My task is to have 100% body width and at the same time it should not wrap the contents when browser window resizes.
To achieve this I added display: inline-block to my body tag's CSS s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13377392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to update html after promise result I wonder to know the best way of binding result of a promise which is as an injection to html tag using angular 2(I use ionic 2)...
As you know the main problem with async coding is loosing reference to the current object. It seems I should pass current object as a pramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43387183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Geofencing in background Question on start: how I can add/remove geofences without app opening?
When user switch off location all geofences are removed. When geofencing was introduced I was testing it and I was able to add/remove geofences in background by handling "android.location.PROVIDERS_CHANGED" broadcast, sti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58608969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compare columns in different pandas dataframes I have two dataframes, one with daily info starting in 1990 and one with daily info starting in 2000. Both dataframes contain information ending in 2016.
df1:
Date A B C
1990-01-01 3.0 40.0 70.0
1990-01-02 20.0 50.0 80.0
1990-01-03 30.0 6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52119585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Making a daemon for a jailbroken iOS
I have been looking for a way to launch daemons on the iPhone and I created a little test application with Xcode by learning from the ants application's source code, which taught me that I should use launchctl But unfortunately it is not working.
I have installed my application ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5109059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Jquery appears undefined in the middle of a working script This is really curious to me and I would like to know your opinion about possible causes for this behaviour. I have a long script in javascript (jQuery) in a Wordpress. At certain point (line 500 more or less) the console outputs the following error:
TypeErr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34864205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is cat printing only the first and last line of file? I have a txt file with an #header. If I use cat the output is only the first and the last lines despite the file being a few hundred lines long. What is going on?
EDIT
A minimal example is pretty much what you imagine:
file.txt is
#header 2.0
2.0
2.1
2.2
...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54290113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R - how to append a data set to a list? How can I append a data set into a list in R? I have this below and keeps crashing or freezing my computer when I have this line listData <- append(listData, data1),
# Empty list for storing listData later.
listData <- list()
# Prepare SQL query1.
dataQuery <- "SELECT * ...."... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30422776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: update @HostBinding Angular 4 Animation I am trying to get animation between routes working in an Angular 4 project - but need to be able to alter the direction of the animation (translateX) based on the way the user is navigating through the app.
I have discovered that the only way to keep both the entering and exi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43384107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to compile java in 1.6 or older version without changing the classpath and path? We only need to use command line to execute the same How to compile java in 1.6 or older version without changing the classpath and path? We only need to use command line to execute the same.
like :
javac var -1.6 Hello.java
java He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37506795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Improve parsing speed of delimited configuration block I have a quite large configuration file that consists of blocks delimited by
#start <some-name> ... #end <some-name> were some-name has to be the same for the block. The block can appear multiple times but is never contained within itself. Only some other blocks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38662521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Garbage Collection in R process running inside docker I have a process where we currently large amount of data per day, perform a map-reduce level of functions and use only the output of the function. We currently run a code sequence that looks like the below
lapply(start_times, function(start_time){
<get_data>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59385510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I'm trying to wrap a Stack widget on Flutter into an Expanded widget. How could I make the Stack fit in the Expanded with 0 margin?
I'm trying to wrap a Stack widget on Flutter into an Expanded widget. It looks like the Expanded widget forces the stack to be positioned with a default margin. So, How could I make th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65865782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows service is communicating with other servers only for few minutes after restarting it I have windows service application which should be communicating with other server. Problem is that it works for a while after I restart the windows service but after some time it stops working (response.StatusCode = 0).
var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67720239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vega-lite geojson: only identity projection works, otherwise only shows last feature I'm trying to visualise the World Bank Official Boundaries:World Boundaries GeoJSON - Low Resolution data from https://datacatalog.worldbank.org/dataset/world-bank-official-boundaries with vega-lite.
However, it looks like only the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68248497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing Color Space from RGB to HSV after segmentation (OpenCv Python) I am segmenting an image and then converting it into HSV format. But after converting it into HSV and separating out each of the channels, the granularity of the segmented region is lost. Following is the segmentation code.
import cv2
from os im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44257117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems with TableView inside of ScrollView I followed the helpful comments by you people and have currently gotten this far: I have a single TableView with a header cell. The problem now is that I am only able to display one set of data and the TableView will not currently scroll (Maybe because of only one set of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41799327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to hold a http request without failing until response coming in Angular This is my http API request this.dashboardServiceHandler.getTxnInfo([], params). API returns a response like after 2 min.In here i am trying to hold my request until reponse coming.But in network tab it shows pending for a long time and it f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61521294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: running Flask jQuery example under Apache proxy I can successfully run the Flask jQuery example (as referred near bottom of Flask's "AJAX with jQuery" page.) It runs on the flask development server, and is accessible at http://localhost:5000.
How do I proxy the page so that I can access the same app under http://lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17435759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Colab GPU session disconnects within 10-15 mins I'm trying to run this notebook which causes GPU session to disconnect within 10-15 minutes. I tried with different accounts, and I get the same results. If I try to reconnect, I get You cannot currently connect to a GPU due to usage limits in Colab despite not even us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68720168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Empty underscore template in browserify I use Browserify to load a Backbone View.
The view is rendering some html templates with underscore.
The "tmpl2" method is generating an empty string when i load the template markup from the html template script. Are there any issues between browserify and underscore or why it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31840620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Shared memory and comunication between programs I read this: python singleton into multiprocessing but I didn't find the solution of my problem. I have to run the same program (not process) many times in one time. Programs work in the same electronic devices. I must synchronized this programs. Only one program can u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3289040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Translate and Scale on Y-Axis? I am taking an online course learning CSS and we are just covering CSS animations. I am trying to practice some of the things I learned (just basic transforms for now) by creating a small animation of a man walking towards the screen down a pathway.
Basically, I want to both transl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47299038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: RewriteCond with the famous !-f and !-d conditions is not working I have .htaccess file with the following directives:
RewriteEngine on
RewriteBase /amit/public/
RewriteCond ${REQUEST_FILENAME} !-f [OR]
RewriteCond ${REQUEST_FILENAME} !-d [OR]
RewriteCond ${REQUEST_FILENAME} !-s [OR]
RewriteCond ${REQUEST_FILENAME}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51279265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does Facebook do it? Checking the file type?
Possible Duplicate:
How to check file types of uploaded files in PHP?
Creating a text file and rename it to anything.jpg and try uploading it on facebook, facebook detects that the file is not an image and says Please select an image file or something like that. Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14672724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Table with div layers I have a table inside a div 1.
Then after that div 1 added another div 2 with position:relative; top:-250; so that div 2 layer will be right on top of the table.
But now below the table there is a big space before anything on the page can resume displaying (I guess the second div 2 would have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3844201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R: Plot multiple time series in a loop.Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ I'm trying to plot many time series from a database with 134 columns, one ts per colum and after that, save it in a .jpg file. I'm using a loop. I notice that the ploblem could be the plot() function.
So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58783946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP function to extract a field value from a database I'm trying to get a value of a mysql database using a php function.
I have a database like this:
NAME | EMAIL | PASSWORD | OTHER
-------------------------------------------------------
example | [email protected] | password | other
------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36549728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to continue the code on the next line in VBA I would like to type the mathematical forumla in VBA code which many lines. I would like to split it into many lines. How do I do it?
For example:
U_matrix(i, j, n + 1) = k * b_xyt(xi, yi, tn) / (4 * hx * hy) * U_matrix(i + 1, j + 1, n) + (k * (a_xyt(xi, yi, tn) / hx ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22854386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How can I implement model revisions in Laravel? This question is for my pastebin app written in PHP.
I did a bit of a research, although I wasn't able to find a solution that matches my needs. I have a table with this structure:
+-----------+------------------+------+-----+---------+----------------+
| Field | T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18502697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why Python.h of python 3.2 must be included as first together with Qt4 I have a qt application and I want to implement python interpreter into it so that I can extend it with python scripts. While this works fine for regular C++ application, including Python.h even for most simple, empty Qt4 project always result in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20300201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best SCM practices for live databases I've been building out an SCM environment (that has to be PCI compliant, but that's tangential to this issue).
I've got to the point where I want to automate database updates, but I'm not 100% sure that's the best way forward.
Say I want to add a field to a DB table. Easy enough... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1392024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to remove previous text from a calculation? I have recently started learning Kivy and made a calculator app but I can't figure out how to remove the previous text from a calculation when a button is pressed for the next calculation and the text only gets removed when clear is used.
Here is the code https://githu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72669380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make Android TestRunner wait until activity finishes I am closing an Activity at the end of a testcase, so that it is null at the beginning of the next testcase:
public void test1() throws Exception {
//activity is calling the RegisterActivity in onCreate
activity = getActivity();
// register ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19811919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Call DLL C++ functions form C# without block the form controls I have an interesting study case for you :)
I have a problema with a wrapper integration. I made a Dll in write in C++. CLR Windows. This Dll is called form a C# application (for a the), till here all rigth.
The C# aplications is form a thrid part and I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31756959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to open another activity from Interface method I write an application in Kotlin language on the platform Firebase. And after authentication, I need to open another activity from Interface.
While checking I get the error in this line:
startActivity(Intent(applicationContext, AnotherActivity::class.java))
Attemp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64229314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display ImageView below TextView in LinearLayout I'm writing a sports app and I want to place the text exactly under the picture, but I can't get it aligned. If there is a large text somewhere, then the picture is not in the middle. how to make sure that the text is always exactly under the picture, or the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69196309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xslt 2.0 format-number repeating pattern with alternate group-separator I'm trying to understand why XSLT 2.0 is repeating the following pattern when I attempt to provide an alternate grouping-separator to the format-number function like so:
<xsl:decimal-format grouping-separator="-" name="hyphenFormatting"/>
<xs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48770905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add “selected” Class to the Menu Item - MVC I fallow this tutorial (link) how to add "selected" class to the menu in MVC, in other words this tutorial shows how to create navigator menu in MVC, when you click on nav button it stays selected.
But when I write this code in begining
using <span class="skimlinks-unlin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23261691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cin inside switch statement, makes my program stuck In my program it should be an option to ask a user for input, and then save input string into the file. My problem is, - when I put cin in any of it forms, inside Switch, program will stuck circling indefinitely, right after i press enter after finish typing new te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73402578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Android equivalent of iOS's beginIgnoringInteractionEvents This SO answer suggest to iterate through the childviews and disable them. It doesn't smell right to me (performance wise)
What's the best approach to disable ALL touch events in the application prevent the user from interacting with the application (during ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26501184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling full trust assembly from a low trust assembly with AllowPartiallyTrustedCallers 'proxy' assembly If you have a third party assembly that requires full trust for say a logging operation (This assembly does not have AllowPartiallyTrustedCallers).
You use this assembly through a custom assembly with AllowParti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10406366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not sure how to pass data from frontend app to backend I need to send data from the 'change' variable below to the backend flask route. Here's how my react app is-
import React, {useState, useEffect} from "react";
import ReactQuill from "react-quill";
import { Card, CardBody, Form, FormInput } from "shards-react";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67854582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Find distinct values group by another field mongodb I have collection with documents like this :
{
"_id" : ObjectId("5c0685fd6afbd73b80f45338"),
"page_id" : "1234",
"category_list" : [
"football",
"sport"
],
"time_broadcast" : "09:13"
}
{
"_id" : ObjectId("5c0685fd6afbd735... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53830076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: uWSGI: disable logs for given urls I need to disable uWSGI logs just for one url. I played around uWSGI config but didn't find anything that can helps(maybe route directive, but it didn't give me required result).
Do you have any ideas about it?
A: Use its internal routing framework with the donotlog action:
route... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25679166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to parse a CSV with multiple key-value pairs? I have a CSV in this format:
"Account Name","Full Name","Customer System Name","Sales Rep"
"0x7a69","Mike Smith","0x7a69","Tim Greaves"
"0x7a69","John Taylor","0x7a69","Brian Anthony"
"Apple","Steve Jobs","apple","Anthony Michael"
"Apple","Steve Jobs","apple","Brian ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43876810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Giving a different object name for the content of the returned list of purrr::map2() I'm trying to conduct a certain a calculation using purrr::map2() taking two different arguments.
purrr::map2(
.x = c(1, 3),
.y = c(10, 20),
function(.x, .y)rnorm(1, .x, .y)
)
purrr::map2() returns a list, but I want to assig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64572192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PRTweenOperation timingFunction member not found in Swift I'm trying to use the PRTween library in a Swift iPhone app.
Original example code from GitHub:
PRTweenPeriod *period = [PRTweenPeriod periodWithStartValue:100 endValue:200 duration:3];
PRTweenOperation *operation = [[PRTweenOperation new] autorelease];
opera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24541746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.