text
stringlengths
15
59.8k
meta
dict
Q: Inserting Events to google calendar from a script Anyone know the proper way to authenticate and publish directly to a calendar without relying on a currently logged in user? Several weeks ago I built a calendar that used the standard Oauth 2.0 protocol but this relied sessions stored by a user's we browser. I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11908768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Many aggregate functions in select query I'm not sure what the best way to approach this is so I figured I'd toss it to SO. I'm writing a view for an application which will display some grid data based on a few tables in our database. I know I can do this with aggregate functions in the select portion of the query,...
{ "language": "en", "url": "https://stackoverflow.com/questions/20245670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling $http AngularJS return data Here is client side in AngularJS (works fine): $scope.ajaxLogin = function(){ var fn = document.getElementById("username").value; var pw = document.getElementById("password").value; $http({ url: "myurl", method: "POST", headers: {'Content-Type...
{ "language": "en", "url": "https://stackoverflow.com/questions/28514318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change background at runtime on openscenegraph I try to add an 3d object on viewer and change background dynamically. I capture webcam using opencv VideoCapture. I did below steps : * *Open video capture and get frame *Create openscenegraph root *Add a child to root ( read from .osg file 3d object) *C...
{ "language": "en", "url": "https://stackoverflow.com/questions/30532671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Data population on asp GridView during population of data table My VB.net application has to fetch a large amount of data and populate the GridView. Now the data population is happening after getting full data to data table. I want to know is it possible to display the data in GridView when ever one row is added to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31446078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: implicit declaration of function 'time' [-Wimplicit-function-declaration]| Whenever I try to use srand function I get this warning "implicit declaration of function 'time' [-Wimplicit-function-declaration]|" and a windows error report appears when running the compiled file, I'm a novice to c programming, I found ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15458393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Standardization before or after categorical encoding? I'm working on a regression algorithm, in this case k-NearestNeighbors to predict a certain price of a product. So I have a Training set which has only one categorical feature with 4 possible values. I've dealt with it using a one-to-k categorical encoding scheme...
{ "language": "en", "url": "https://stackoverflow.com/questions/47272033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Loading several Json files from a folder in Python I'm trying to load a set of json files from a separate director, which appears to work when loading them in. jsonlist is loaded in and looks like this: ['recording0.json', 'recording1.json', 'recording2.json', 'recording3.json'] However, when I want to load in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36860729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Defining optional inputs in CoreML for recurrent network I have recently stumbled upon an article on the CoreML docs site that discusses an implementation of a recurrent model for predicting text. I am trying to replicate this, or at least something similar, and have hit a wall as to how the author was able to defin...
{ "language": "en", "url": "https://stackoverflow.com/questions/48418651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Having issues with Infragistics column resizing I have a grid and I would like to automatically resize the columns. I'm running into inconsistencies when using different parameter values for PerformAutoResize(). When passing in the values below, where the true means include column headers: PerformAutoResize(PerformA...
{ "language": "en", "url": "https://stackoverflow.com/questions/16486552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get distinct values separately in string array? i have two string array string[] oldname = ["arun","jack","tom"]; string[] newname = ["jack","hardy","arun"]; here i want compare these two string arrays to get these distinct values separately like : oldname = ["tom"]; newname = ["hardy"]; how to achieve the...
{ "language": "en", "url": "https://stackoverflow.com/questions/42218992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cannot load video or image on visual studio 2015+opencv3 I install opencv 3 on visual studio 2015 follow exactly google. First I build Opencv + Opencv_contrib + cmake use visual studio 2015. After that i install it into visual and i do exactly step by step follow tutorial in google include: 1)add path into Evironmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/51798819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I locate element by pixel (css position)? Java, Selenium public void ReorderColumns() { // Element which needs to drag. WebElement From = driver.findElement(By.cssSelector( "body > div:nth-child(3) > div > div.dynamic > div > div:nth-child(2) > div > div.dynamic.dynamic > svg")); Actions act = new Act...
{ "language": "en", "url": "https://stackoverflow.com/questions/63335463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The referenced component 'ceTe.DynamicPDF.40' could not be found in VS Source Control I am trying to debug a web app in VS Source Control. But, I am getting the error The type or namespace name 'ceTe' could not be found (are you missing a using directive or an assembly reference?) The referenced component 'ceTe.Dyn...
{ "language": "en", "url": "https://stackoverflow.com/questions/61503189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error when building java web app outside eclipse using ANT I have a java web project on which I use ANT to perform the build. If I pull code from CVS repository inside the Eclipse workspace using Eclipse tooling to pull code, and then use the build.xml ANT file to perform the build, it builds succesfully and I am ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/45969803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Native What I'm doing wrong here with constant I'm trying to implement one functional component. Here I am doing below, But I'm getting error about props. Could someone help me. import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; const TextField = () => { return ( <T...
{ "language": "en", "url": "https://stackoverflow.com/questions/51910896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Deep copy object properties (including those with private setter) to another object of the same type I have done some research and only found "superficial" methods that actually copy your properties from one object to another, such as: public static void CopyPropertiesTo<T, TU>(this T source, TU dest) { var sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/53711862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fail to post(CURL) the form to EPayment GatewayFail to post(CURL) the form to EPayment Gateway Here is a donation page . I tried to save the data to MYSQL db and curl the essential info to the EPayment Gateway(Paydollar) ,e.g. merchantId ,amount ,currCode.... If I activate the <form name="payFormCcard" action="<?ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/51033463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get a linefeed when writing files with ActionScript with Adobe Indesign Scripting I'm writing some scripts in ActionScript to automate some tasks in Adobe Indesign 2019 (part of the Creative Cloud Suite), but this applies to all scripting for all applications in Adobe Creative Cloud. I don't want to use Exten...
{ "language": "en", "url": "https://stackoverflow.com/questions/54551028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why inner class can access to a private member of another inner class? I just found out that an inner class can access another inner class's private member like this: public class TestOutter { class TestInner1 { private int mInt = 1; } class TestInner2 { public int foo(TestInner1 value) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/18093850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why does the string Remove() method allow a char as a parameter? Consider this code: var x = "tesx".Remove('x'); If I run this code, I get this exception: startIndex must be less than length of string. Why can I pass a char instead of an int to this method? Why don't I get a compilation error? Why does the compi...
{ "language": "en", "url": "https://stackoverflow.com/questions/19343958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: how to create a child in a tree view in ext.js I need to create a child in a tree view how to do that kindly help. I have tried like this but it's not working. var myLocations = new Ext.Panel({ title: 'my work', id: 'student', height: 100, autoScroll: true, iconCls: 'myPanel', // ,autoLoad: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69912902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 2019 JUCE C++ fields "undefined" in cpp file When trying to initialize or use my fields in the cpp file, I receive a compiler error that the "identifier is undefined" when I have defined them all in the header file. SynthVoice.H #pragma once #include <JuceHeader.h> #include "SynthSound.h" class Synth...
{ "language": "en", "url": "https://stackoverflow.com/questions/67641173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rendering Divs in an Index action with bootstrap I am building a Ruby on Rails app with a TradingCard model. I have an index action and corresponding view where I am trying to print out each TradingCard object. Here's basically what I've got in my controller, under my index action: @trading_cards = TradingCard.all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36816304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swift Full Text Search Recommended Solution I was wondering if there was a recommended solution/library in Swift for integrating full text search (i.e. search bar that filters on presented data as you type, autocomplete)? I am currently using Firestore as my backend. Something I've glanced on is Algolia? A: You can...
{ "language": "en", "url": "https://stackoverflow.com/questions/49667038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Call custom constructor with Dapper? I'm trying to use Dapper to interface with the ASP.NET SQL Membership Provider tables. I wrapped the SqlMembershipProvider class and added an additional method to get me the MembershipUsers given a certain criteria relating to some custom tables I have. When querying the data wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/8994933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: VB.Net Document Interface Is there a way to create a VB.Net form that has a document editor in which the user can drag and drop items from a toolbar into the document. Sort of like this https://corporate.morningstar.com/us/documents/MarketingOneSheets/AWO/ADV_AWO_OfficeReportStudio.pdf The items that would be dragge...
{ "language": "en", "url": "https://stackoverflow.com/questions/25669575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Regexp change link format On my forum I have a lot of redundant link data like: [url:30l7ypk7]http://www.box.net/shared/0p28sf6hib[/url:30l7ypk7] In regexp how can I change these to the format: <a href="http://www.box.net/shared/0p28sf6hib" rel="nofollow">http://www.box.net/shared/0p28sf6hib</a> A: string ori...
{ "language": "en", "url": "https://stackoverflow.com/questions/5628160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.ArgumentException occurred I'm getting a strange behavior. This is the code: ... private Object lockobj = new Object(); private Dictionary<String, BasicTagBean> toVerifyTags = null; public void verifyTags(List<BasicTagBean> tags) { System.Diagnostics.Debug.WriteLine("Thread ID: " + Thread.CurrentThread.M...
{ "language": "en", "url": "https://stackoverflow.com/questions/24613246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle database exceptions in .NET? I'm using Oracle through their official managed drivers for .NET (a Nuget package). My application uses the same connection to the DB from the beginning and it's used from several locations to perform queries. In some cases, there may be connection "hiccups" that cause exc...
{ "language": "en", "url": "https://stackoverflow.com/questions/36752117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why authorization content is not available in access token? I am trying to add keycloak as identity server in my Asp.net mVC application by using Owin , keycloak identity model library. I am getting all information in access token except Authorization content . What will be reason for this ? . Below I mentioned what...
{ "language": "en", "url": "https://stackoverflow.com/questions/65194852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set different expanded title and collapsed title for CollapsingToolbarLayout Currently we can set only one title using the setTitle() method. Is there a way to achieve something like this: In expanded mode: In collapsed mode: (Please ignore my poor Paint skills.)
{ "language": "en", "url": "https://stackoverflow.com/questions/32524053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Yii2 select2 update value blank *****SOLVED(Updated)****** I am using kartik select2 widget inside my form. After I insert the value when I click update the value will be blank. I did search online for some solution and this is what I come out with. Is there anything I miss or misplaced in the code? Controller: publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43930780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I persist a detached object? I have a simple editor UI for performing CRUD on a database table. Under Hibernate 5.1, the process was: * *Create a session. Read in data objects. Close session, detaching the objects. *With the detached objects, populate the UI widgets. *Allow user to add/edit/remove entrie...
{ "language": "en", "url": "https://stackoverflow.com/questions/45734475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Codeblock compiled exe link to a dll without system-path-variable (C++) I'm creating a small framework which multiple programmers is working on at the same time. We are all working on windows 7 machines with Code::Blocks, MinGW and C++. We are using OpenCV in this project. Is there a way where the dll's used in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9386326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring jpa hibernate how to map a relationship to multiple objects of the same entity I am creating an airline application using Spring boot, and there is an entity called Flight that has two attributes of the same entity: public class Flight { // more code here @ManyToOne @JoinColumn(name = "airport_i...
{ "language": "en", "url": "https://stackoverflow.com/questions/69714446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read GPIO status from server I have a raspberry PI install on a client (with windows iot OS). My question is how can I access remotely to Pin Status of RPI from another client? I installed PIGPIO to connect remotely with IP and port PiGPIO.PigsClient piClient= new PiGPIO.PigsClient("192.168.1.36", 5463); await piCli...
{ "language": "en", "url": "https://stackoverflow.com/questions/56544441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a downward force to an Instantiated prefab? I am trying to get my prefabs to just fall at some speed. Right now they get created and then gravity acts on it, so it starts off slow and then builds as it is in the air. I want it to be a constant speed from the moment it is created. I have tried doing an A...
{ "language": "en", "url": "https://stackoverflow.com/questions/37106861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Replace text within a file Hello I've tried a lot of researching but cant find what I need and haven't been able to successfully piece this together myself. Each of my users have a XML file within their profile that I would like to edit. The file contains a reference to their computer name and clientname, which are...
{ "language": "en", "url": "https://stackoverflow.com/questions/32252562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Triggering lesser reflows in JavaScript - How to edit elements in cloned element? I have this HTML structure: <p id="lorem"> <span class="part" id="n01">L</span><span class="part" id="n02">o</span><span class="part" id="n03">r</span><span class="part" id="n04">e</span><span class="part" id="n05">m</span> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/11518129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to replace inline comment a full-line comment for Fortran file I am handling several large Fortran code files and I encounter a tricky problem, which is I want to make inline comment a full-line comment. Clearly it is absurd to do it manually line by line. All characters following an exclamation mark, !, except ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52278484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resize family instance during the insertion I'm creating an addin for Revit 2014. I want to insert a parallelepiped inside a project, the parallelepiped must have the width, depth, and/or height set during the insertion. I've created a family with a cube of 1x1x1 and 3 instance parameters that automatically resizes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21913344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python: Replacing unknown number of string variables I need to define a function to go through a string and replace all replacement fields, without knowing how many there will be. I do know that the replacement fields will be named a specific way. For example, If i know that all fields will be named 'name' & 'positi...
{ "language": "en", "url": "https://stackoverflow.com/questions/52450808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: std::async blocks even with std::launch::async flag depending on whether the returned future is used or ignored Description of the problem std::async seems to block even with std::launch::async flag: #include <iostream> #include <future> #include <chrono> int main(void) { using namespace std::chrono_literals; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61788498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using clEnqueueNativeKernel in OpenCL Is there any example of using clEnqueueNativeKernel in OpenCL? In this way one can write a kernel in a c or c++ language. Do other commands remain unchanged? A: Native C++ "kernels" are essentially just functions that you want to execute within command queue to preserve order o...
{ "language": "en", "url": "https://stackoverflow.com/questions/10140494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically resolve C stdlib functions from .NET I want to resolve the addresses of functions like those from the C stdlib such as malloc at run-time from .NET code (so I can JIT machine code that calls to these addresses for my VM). I believe I should use LoadLibrary and GetProcAddress supplying the kernel32.dll bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/9930730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: flex not working in firefox 53 Bit stuck here. I am testing my site with Firefox 53. The pages are not filling the full height. I verified on Chrome and Safari and all looks well. I verified with www.caniuse.com that Firefox 53 supports Flex. Still the page does not render correctly. Here is the site http://actionma...
{ "language": "en", "url": "https://stackoverflow.com/questions/43548008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange behavior when reading and writing "float" and "double" types in C When I put 1 for example this return 1.000 (that's fine to me): #include <stdio.h> main() { float num; printf("Double: "); scanf("%f", &num); printf("%f\n", num); } So, when I put 1 at this it returns 0.000. I don't underst...
{ "language": "en", "url": "https://stackoverflow.com/questions/37971950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: INVALID_BLOB_KEY on retrieving image from Google Cloud storage using java I'm trying to use Google Cloud storage to store images that I'll be using in jsp files. I've created the bucket, uploaded an image (for testing purposes) and try to retrieve a Url to it from a java class. I keep getting the error message ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35253044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to search an encrypted attribute? I have a sensitive attribute that must be encrypted at all times except during display (not my rule and I think it's overkill, but I must follow this rule). Additionally, the secret used to encrypt/decrypt this data must not be on or accessible through the database. So currently...
{ "language": "en", "url": "https://stackoverflow.com/questions/18086060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loading kendo.timezone in to page I want to use timezone feature provided by Kendo. It is not bundled with kendo.all.js. As per documentation I have to include kendo.timezone.js into page before using timezone features. My development environment includes - fully built kendo.all.js and requirejs Now the issue is ken...
{ "language": "en", "url": "https://stackoverflow.com/questions/30372945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iOS "specialized" TableView Crash I am getting this crash report in Xcode from a little application I am currently running. When I open the crash in the project I do not get anymore information made available to me. My cellForRowAt function is below. This is my first iOS application and I am not sure what is causin...
{ "language": "en", "url": "https://stackoverflow.com/questions/50987364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Media Player not removed using MediaSource and webRTC streaming I am trying to stream multiple media files (sequentially) from one webRTC device to another using the mediasource API on the receive side. The files are received and played on the same video source element on the page but each time i stream a new file (...
{ "language": "en", "url": "https://stackoverflow.com/questions/28015426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: facebook like button won't show comment box I have created a site that includes facebook 'like' buttons (see http://www.rupertheath.com) and they work except, when you click them, no comment box appears. When I first installed the buttons, the comment box did appear but I've spent some time styling the buttons (for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14430598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a MAVLink mission commands list available? I am new to Dronekit. I was wondering if there is place where I can find a list of all the available mission commands. A: For a complete list of mission commands, see the MAV_CMD section in this list at https://pixhawk.ethz.ch. Not every flight controller that spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/29527513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: To change data adapter from jdbc to jpa I used connection from jdbc tu fill my report in jasperreport. Now I have changed tecnology to connect to my db and I use jpa with Hibernate. When I try to connect to my db from Jaspersoft Studio, I get this exception: net.sf.jasperreports.engine.JRException: java.lang.reflect...
{ "language": "en", "url": "https://stackoverflow.com/questions/30864625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a portal for this navbar (React) This is my index.html (Where the portal is supposed to lead to) <body> <noscript>You need to enable JavaScript to run this app.</noscript> <div id="navbarRoot"></div> <div id="root"></div> </body> Here is my navbar component const Navbar = () => { cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/71251306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can Cube (js metrics framework) return more than 1000 events? The Cube software (https://github.com/square/cube) allows you to retrieve events. I want to retrieve a lot of events. But it appears that I am capped at 1000. There are well over 9000 in mongodb in the collection and time range I am querying Example http ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17437811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Switching between databases Spring MongoDb I have a case, where I need to switch between the mongo databases using Spring mongodata (Version: 1.6.2). Currently, I have default database configured in db-config.xml with mongo template, and have annotated repositories; Need is to switch from one db/template to another...
{ "language": "en", "url": "https://stackoverflow.com/questions/29477668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to can I get all special character, where is not SPACE, using Regex? When I use \W in Regex, it will get all special character, but I wan not get Space. How to can I get all special character using Regex, where it is not Space, in javascript? A: You can use negated character class instead: [^\w\s] This will ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/32704146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP read UTF-8 CSV I have a PHP script that reads from a CSV file, the file is in UTF-8 format and the code below is treating it as ASCII. How can I change the code to read the file as UTF-8? if (($handle = fopen("books.csv", "r")) === FALSE) throw new Exception("Couldn't open books.csv"); while (($data = fgetcsv(...
{ "language": "en", "url": "https://stackoverflow.com/questions/42149852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: timer that calls every n milliseconds a function without .after or threading I need a timer that calls a function every n milliseconds. This should not be in a endloss loop (while true) or something like that import threading def printit(): threading.Timer(5.0, printit).start() print "Hello, World!" Or def ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30800871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BeautifulSoup is providing different results for .find and .find_all I am trying to work through an exercise in a Practical Data Analysis book where the goal is to scrape the price of gold from a website. The original code does not work and I have traced it down to what I think is a re-working of the website from t...
{ "language": "en", "url": "https://stackoverflow.com/questions/41886437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Terraform variables within variables First off - apologies - I’m extremely new (3 hours in!) to using terraform. I am looking to try and use the value of a variable inside the declaration of another variable. Below is my code - what am I doing wrong? variables.tf: variable "EnvironmentName" { type = "string" } v...
{ "language": "en", "url": "https://stackoverflow.com/questions/58841060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Why do not all started applications save the wanted information in the text files as expected? I am trying to create a batch file on a USB drive that will run an .exe, save its text to a .txt file, and then close the .exe. I am currently running into a weird problem, only 5 of the 18 .exe's are actually saving the...
{ "language": "en", "url": "https://stackoverflow.com/questions/36995755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zooming in proteced sheet Currently on my excel documents I have it coded so that when you click on these designated cells the screen view zooms into the cell, making it more readable. Now when I protect the sheet and use the cell I get the error code - Runtime Error '1004' I need to protect the sheet whilst still b...
{ "language": "en", "url": "https://stackoverflow.com/questions/73306844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DataGrid Values not updating after the Edit/Update function I am using the following code to update the data in my datagrid. But when I click update the value is updated in the database but it still shows old value in datagrid. If I refresh the page after that then datagrid shows the updated value. What could be w...
{ "language": "en", "url": "https://stackoverflow.com/questions/5416727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to extract only non-empty deques in dict where key-value pair is int - collections.deque pairs I have a dict of collection.deque objects, dqs, where the key is some integer id. I would like to create another dict that only has the entries in dqs where the deque is non-empty. Is there a quick way to do this witho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75618983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Safari Location Popup In my website i use location permission in Mozilla Firefox etc. browser it works properly. But when I open it in Safari browser it ask multiple time on every page on page refresh. Anyone help Me ?
{ "language": "en", "url": "https://stackoverflow.com/questions/72008490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bootstrap 5 ReOrdering will not work correctly past 4 columns I have setup a container that should alternate the image & text when the size is md or above. The intention is to have the images above text on small and alternate image, text, text, image etc. As soon as I exceed 4 columns the ordering does not work. Ple...
{ "language": "en", "url": "https://stackoverflow.com/questions/74971725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: textAlign: TextAlign.center, flutter not working I'm a student who is new to learning flutter. I won't align my text and buttons to the center of the screen. I use this code to align the center. also, I used separate widgets to create them as shown in the code. textAlign: TextAlign.center, it doesn't work for me. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70859659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to split a sequence in k homogeneous parts? I'd like to split a sequence into k parts, and optimize the homogeneity of these sub-parts. Example : 0 0 0 0 0 1 1 2 3 3 3 2 2 3 2 1 0 0 0 Result : 0 0 0 0 0 | 1 1 2 | 3 3 3 2 2 3 2 | 1 0 0 0 when you ask for 4 parts (k = 4) Here, the algorithm did not try to split ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39224665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby to return my entries alphabetically works for all but my first entry This is what it looks like. word = 'word' words = [] puts 'enter some words, man. ill tell em to you in alphabetical order.' puts 'when your\'re done, just press enter without typing anything before.' puts '' word = gets.chomp while ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24311724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculate posterior distribution of unknown mis-classification with PRTools in MATLAB I'm using the PRTools MATLAB library to train some classifiers, generating test data and testing the classifiers. I have the following details: * *N: Total # of test examples *k: # of mis-classification for each classifier an...
{ "language": "en", "url": "https://stackoverflow.com/questions/2908923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NoClassDefFoundError with gradle, giraph, and hadoop So, I've been looking around a lot and I haven't found a good answer to my question, and this is driving me crazy, so I figured I'd ask here and hopefully I can get help. I'm trying to do automated testing in a Giraph project using gradle. I'm a total beginner wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/24613054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Entity Framework n to n relationship add object to another object I have a Model with Clients: public class Client { [Key] public int id { get; set; } [Required] public string? Hostname { get; set; } public ICollection<Software>? Softwares { get; set; } } And a Model with Software: public clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/74361667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: List private property names of the class I need to use some subset of class properties names as values in a map to use inside of the class. In following example I've replaced map by array. The problem is that if property is marked private it's not listed in keyof list. How can I specify type of keys if I need to inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/57066049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get div content and then modify it The scenario is, I want to get a div content and then modify it in order to insert it in another div. Code below : $("#loupe").live("click",function(){ $('#divBody').empty(); $('#divTitle').empty(); var title = $(this).closest('div').find('.stepTitle').text(); var...
{ "language": "en", "url": "https://stackoverflow.com/questions/15763818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sequentially arranged and add placeholders in text file I have a text file which contains data. There are 3 columns, each column starts at a specific location and ends a specific location in the file. The first column which is (300, 301, 302, 304...) is always number based. the second column is a string, and the las...
{ "language": "en", "url": "https://stackoverflow.com/questions/53644844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically abbreviate the length string in matplotlib Is there a way to automatically reduce the length of string in matplotlib if it conflicts with neighboring texts such as in: What I'm looking for is if matplotlib detects a conflict with another text, it automatically reduce the texts in order for all the tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/57824734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Visual Studio 2013 suppress 'Class is never instantiated' I have a web api project which accepts HttpPost communications. The controller's methods always accepting a single validated object. For example: public sealed class NumbersRequest { [NumberOne] public string Number1 { get; set; } [NumberTwo] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39506938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is wrong passing a 2D array to a respective pointer argument? I've been doing some matrix calculation in C for university the other day where I had a 5x5 matrix to begin with so I hard-coded it into the source. It was a 2D array of doubles like: /** * This is the probability-matrix for reaching from any profil...
{ "language": "en", "url": "https://stackoverflow.com/questions/29666141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need help setup windows server 2008 SMTP server I am trying to setup windows server 2008 smtp server to relay emails to gmail smtp. Everything appears to be setup but it is not sending emails. Could you please help me figure out whats wrong. Below is the setup: * *Windows server 2008 with SMTP server feature inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/669754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: why can't I pass the return twice? I'm practicing python and I don't understand why I am getting this error. I tried searching it but I can't find put why. I tried to put pass_two = two(x) but it didn't work. it kept saying it was undefined. can any one correct and explain why? thanks def one(): x = 'blue' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56534893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Insert multipe rows after specific row in Excel 2003 For example, my table is like this : AAA bb cc AAA dd... How can I insert 3 empty rows just below AAA row? So that, my table becomes : AAA first empty row second empty row third empty row bb cc AAA first empty row second empty row th...
{ "language": "en", "url": "https://stackoverflow.com/questions/10931538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java project can display a new scene pretty easily, but only for certain JavaFXML files, how to fix this? Here's my code I'm struggling with (I marked the line that's giving me errors): package sample.controller; import java.io.IOException; import java.net.URL; import java.sql.ResultSet; import java.sql.SQLExceptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/66613696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error building react native app on Android Hi I´m trying to run my react native app on android but when i build it shows me this error: info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 952 file(s) to forward-jetify. Using 8 workers... info JS serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/70489427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS column bug fix or alternative Due to Chrome (and other Blink browsers) having a bug where only the first 500 columns are painted i need either a fix/hack, or an alternative solution. See bug here (there is 509 pages - not 500): https://codepen.io/anon/pen/pLxozK /* codepen link must be accompanied by code */ co...
{ "language": "en", "url": "https://stackoverflow.com/questions/49734376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP preg_replace exclude < and > I need to change this code: $output = preg_replace("#&lt;a ([^&gt;]*)&gt;([^&lt;]*)&lt;\/a&gt;#", "<a href=\"$1\">$2</a>", $output) to make from &lt;a some.url&gt;description&lt;/a&gt; to HTML code <a href="some.url">description</a>, but after i changed < and > to &lt; and &gt; it d...
{ "language": "en", "url": "https://stackoverflow.com/questions/16208905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Open a PDF file from C#.NET using Impersonate I have a folder on the server containing pdf files(Windows Server 2008 R2 Enterprise). I have to open the folder with the authorized user account and display the pdf file in the browser. The user has full control permissions on the folder and is a member of the Administr...
{ "language": "en", "url": "https://stackoverflow.com/questions/42018301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: setAttribute a href in Selenium Java I got href of an element. After that, I subString,...to make a new href and want to set it back to element. But Selenium doesn't have setAttribute method nextListByNumber = driver.findElement(By.xpath("//*[@id='paginater']//*[text()='"+2+"']")); String href = nextListByNumber.get...
{ "language": "en", "url": "https://stackoverflow.com/questions/53318832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DELETE function is deleting the logo, but I don't want it to delete the logo I have a GUI in Matlab, where I have a DELETE BUTTON, after I click on it, it as well deletes the logo in it. The code for the DELETE function: clc figure('Name', 'Vektorkardiogram'); %Return handle to figure named 'Vectorcardiogram'. h = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43212901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve array in php sent from iOS Following is my iOS code that sends NSmutable Array to PHP webservice: // Getting Server Address AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate]; NSString *serverAddress = [appDelegate getServerAddress]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17023131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF un-domain system I have developed WCF windows service using net tcp binding. Its working fine when wcf client and wcf service both on the same system. Getting error when both system are in work group not - Client and Service are on different machines please suggest what configuration i need to change . SocketId:...
{ "language": "en", "url": "https://stackoverflow.com/questions/63694431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android build failed and error message is "More than one file was found with OS independent path 'org/apache/pdfbox/debugger/real.png'" In my Android App I used pdfbox to generate PDF file. I was able to compile but when I build and try to deploy to a simulator. I got the following error message: "More than one file...
{ "language": "en", "url": "https://stackoverflow.com/questions/59318132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDb: Match value on foreign collection I have the collection USER: { "_id" : ObjectId("5d64d2bf48dd17387d77d27a"), "name" : "John", "notifications" : { "email" : false, "sms" : true } }, { "_id" : ObjectId("5da9586911e192081ee1c6be"), "name" : "Mary", "notifications" :...
{ "language": "en", "url": "https://stackoverflow.com/questions/64978968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: xml extension type and user defined I've a xml document that according to its schema definition for a certain node "level" only allows a predefined list of values (aka enumeration if not wrong). This predefined values are ok for a country, but if we change country the values might change. For this the "level" node a...
{ "language": "en", "url": "https://stackoverflow.com/questions/5409076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Differentiating Between an AJAX Call / Browser Request Is there anything in the header of an HTTP request that would allow me to differentiate between an AJAX call and a direct browser request from a given client? Are the user agent strings usually the same regardless? A: If you use Prototype, jQuery, Mootools or Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/216173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Log4j properties | Create new log file with timestamp for every run I'm quite new to log4j and have managed to create the logs for my code. But what I need is, a new file to be created for each run, rather than appending the logs to the same file. Below are the properties I'm setting (found somewhere on google). Ple...
{ "language": "en", "url": "https://stackoverflow.com/questions/44753863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to select checkbox button and NavigationLink to another view independently in SwiftUI List row I hope to make a list just like to-do list, the cell has a checkbox and Text. And I want when list cell selected, the view could be translate to detailView. Meanwhile I also could select the checkbox, but don't trigger...
{ "language": "en", "url": "https://stackoverflow.com/questions/57558874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }