text
stringlengths
15
59.8k
meta
dict
Q: Draggable elements hang in IE I've got a bug from testers when they double clicked on element or something like then dragged it to the bottom of page,even if draggable element has containment set,mouse goes down than the element. After that you can release mouse click and draggable element hang on mouse pointer. Onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/23362094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to override a specific keyword color in VS CODE theme (Material Theme)? I'm trying to override specific keywords (import, export, try, catch, await, return etc) of a VS Code "Material Theme"... There's a way to overwrite all the keywords like so "editor.tokenColorCustomizations": { "[Material Them...
{ "language": "en", "url": "https://stackoverflow.com/questions/57663522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String to DateTime conversion in .NET compact Framework I am using .NET compact Framework, more precisely using Windows mobile 6.0 and was trying to convert a string to datetime but seems it is not supported. Any help would be appreciated. Dim provider AS CultureInfo = New CultureInfo("en-US") Dim dt AS DateTime = C...
{ "language": "en", "url": "https://stackoverflow.com/questions/36336470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cassandra nodetool rebuild_index stuck in 100% in nodetool compactionstats, how to refresh it and to force complection? I have a DC/OS cluster running Cassandra framework, three masters and six workers, after a framework crash due to registry issues, the Cassandra nodes are not synced with the data, in order to sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/64591002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting of an array using merge sort I have implemented for merge sort in c , although the code seems to be correct the code does not give me the sorted array rather returns the same array that is given to it, that means my merge function in not working #include<stdio.h> #include<stdlib.h> void re_sort(int arr[],...
{ "language": "en", "url": "https://stackoverflow.com/questions/26403686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error:Cause: org.gradle.api.internal.ExtensibleDynamicObject I am trying to use NDK in Android Studio, but an error occurs: Error:Cause: org.gradle.api.internal.ExtensibleDynamicObject My Android Studio version is 2.2 preview 1, and Gradle version is 2.10. gradle-experimental version is 0.7.0 I have tryed this Gradl...
{ "language": "en", "url": "https://stackoverflow.com/questions/37968781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Babel doesn't ingore files outside the directory Here is my directory structure: root/ └── nodejs_project/ β”œβ”€β”€ node_modules/ β”œβ”€β”€ src/ β”œβ”€β”€ babel.config.json β”œβ”€β”€ package.json └── package-lock.json └── another_project/ └── folder1/ └── static/ └── folder2/ └── static/ Here i...
{ "language": "en", "url": "https://stackoverflow.com/questions/69597611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google sheets calculations for dates before 1900 - A possible solution I am trying to do calculations without scripts. A solution can be to sum a far in the future date (31/12/9999) +1 and use that value to do calculations Cell A1 = 1/2/1872 -> -10.194,00 Cell A2 = 31/12/9999 -> 2.958.465,00 Cell A3 = A1-A2+1 -> 2.9...
{ "language": "en", "url": "https://stackoverflow.com/questions/74004375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Edit existing google form item (question) using google Apps Script I have a Google script to construct a google form. The script fills the form using a Spreadsheet which contains the questions and corresponding options. The question displayed in the form needs to be updated at regular intervals. I hope to upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/33309046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Java program for Adding Digits Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it. but my function returns 11 ? what is wrong with my logic? Help !! public class Solution { public int addDigits(int num) { int result=doSum(num); return result; } publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32710911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading data from SQL Server to Elasticsearch Looking for suggesting on loading data from SQL Server into Elasticsearch or any other data store. The goal is to have transactional data available in real time for Reporting. We currently use a 3rd party tool, in addition to SSRS, for data analytics. The data transfer i...
{ "language": "en", "url": "https://stackoverflow.com/questions/65976619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Managing string resources in Qt I have a string that I need at various points in my program. I know that Qt can manage image resources, but I need similar functionality for a couple of strings. Currently I'm using a string resource class, which is a sloppy solution. class StringRes { public: static const QString...
{ "language": "en", "url": "https://stackoverflow.com/questions/11266776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AKS Storage Class network acl I'm trying to create a storage class in AKS that needs to have the public access disabled and the specific vnet and subnet allowed. Basically using service endpoint. I can create the storage account with specific params like storage type, but the other settings dont apply. kind: Storage...
{ "language": "en", "url": "https://stackoverflow.com/questions/74744022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compile sqlite with ICU? I downloaded sqlite from http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz How can I compile sqlite with icu ? A: Whether you build the amalgamation with icu enabled or just icu extension depends on what you want to do with icu. If you need an icu tokenizer (to do fts) you need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/6578600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Qt 5.2.0 ftp and QNetworkAccessManager I need to be able to create directories on my ftp server. I know that there's no QFtp in the 5.2.1 qt, so how do I mkdir with QNetworkAccessManager? A: QNetworkAccessManager doesn't support that A: Although it is recommended to use QNetworkAccessManager as much as possible, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22250898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: @Destroy Annotation with Page Scoped Beans I have a page scoped Seam component and it has a no-parameter void method annotated with @Destroy as is shown below. My problem is that destroy method is never called even if the browser page is changed (i.e. page scope ended). @Name("myPageBean") @Scope(ScopeType.PAGE) pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/5652696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery selector - select new elements too after append/load within variable I have: $elements = $('.elements'); $element = $('.element'); function appendText(element){ element.append('<em> appended text</em>'); } appendText($element); $('button').on('click', function(){ $elements.append('<span class=...
{ "language": "en", "url": "https://stackoverflow.com/questions/23802428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how active two keyboard events esimultanialy I'm trying to execute two javascript functions: <body onkeydown="movimentation()"> <script> function movimentation(){ var key=event.key; if(key==='8'){ up2(); console.log("the key pressioned is " + k...
{ "language": "en", "url": "https://stackoverflow.com/questions/65229069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I translate only one object of the scene in an OpenGL? I have a wall pattern DrawWall and an airplane DrawAirplane in my OpenGL game. How can I push and pop the current matrix and translate only the wall in the scene? I expect the airplane to be fixed. private: void DrawWall(){ glPushMatrix(); glBe...
{ "language": "en", "url": "https://stackoverflow.com/questions/17179665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I create a Mono project compatible winforms app using dotnet? I'd like to create a winforms app on windows using the dotnet command line which is compatible with the Mono project running on Linux. In my particular case th framework should be .NET framework 4.7.2. If I use Visual Studio I can create a winform...
{ "language": "en", "url": "https://stackoverflow.com/questions/69658637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerShell / PowerShell ISE - How to enter a tab indentation in the command window? In PowerShell at the command line, how do I enter a tab indentation for multiple line commands? Obviously, [tab] or [shift] + [tab] does not work, otherwise I would not ask this question. A: Using PSReadline (built-in to PS 5.1 or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49905495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Worker process cannot be executed in a Java Tomcat server deployed to Heroku I have 1 web and 1 worker process communicating with each other using CloudAMQP library consisting of 2 channels/queues (1 channel is to send a simple message from web, and the other channel is to receive a message from worker). Since I'm d...
{ "language": "en", "url": "https://stackoverflow.com/questions/40345594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenGLES 2.0 app not working on tablet while working on smartphones - Black screen I have developped a small openGLES2.0 app which is compatible from android version 8 to 17. It basically renders a sphere model with simple texturing in an empty scene. I also keep track of device sensors like accelerometer. All is wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/17799079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Run Django Celery Periodically I have the task file tasks.py @shared_task def add(x, y): print(x + y) return x + y and celery.py from __future__ import absolute_import, unicode_literals import os from celery import Celery from celery.schedules import crontab # setting the Django settings module. os.enviro...
{ "language": "en", "url": "https://stackoverflow.com/questions/71935826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: deserialize EOF Exception, Serialize may write file improperly package thegreatestrpgevermade; import java.util.HashMap; import java.lang.reflect.*; import javax.swing.JPanel; import javax.swing.JFrame; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/34982396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: performSegue after completion handler ANSWER BELOW Im facing a little issue that you may help me with. the app Im working on allows you to request for content based on your location. the first ViewController is somewhat a form that grab your location / a specified location + some other information to target specific...
{ "language": "en", "url": "https://stackoverflow.com/questions/26996822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Makefile gtkmm; collect2.exe: error: ld returned 1 exit status I'm pretty sure the problem lays somewhere in my makefile, as when I make the program, the error in the title points me to line 12, the linker command. I've tinkered around for it with a while but can't seem to get anything to work. The following is my...
{ "language": "en", "url": "https://stackoverflow.com/questions/41579419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iBook page flip transition I'm trying recreate iBook like transition for pages in landscape mode for an pdf reader app. I only need the animation, not the, touch handling like iBook app; the user with a simple swipe turn the page. I have tried different sample code, including Leaves, but I can't find anything simple...
{ "language": "en", "url": "https://stackoverflow.com/questions/5805038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Display own places on custom Google Map I'd like to create a map of a space system from a computer game. I understand that you can use the Google Maps API to render your own map with custom tiles and placemarks etc (which I've done successfully), but I'd really like to be able to see hierarchical place names in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11759230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read JSON list and load it a dataframe My input JSON file has list of objects as below: [ { "name": "Hariharan", "place": "Chennai", "items": [ {"item_name":"This is a book shelf", "item_level": 1}, {"item_name":"Introduction", "item_level": 1}, {"ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/74793091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove text and link from e-mail I have auto generated receipts coming to my e-mail (Outlook) that I have built rules to forward to different CSR's based text in the body of the e-mail. There is an "unsubscribe" option and occasionally either our CSR's or their clients are clicking on which removes me from getting t...
{ "language": "en", "url": "https://stackoverflow.com/questions/39088799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I set Crontab for a specific hour? I'd like to set my Cron job to work at specific hour. Particularly, I'd like to set it at 1PM and 7PM every day of the year. How can I do? I wrote two line like those below: 0 13 * * * /usr/bin/php path/myphp.php 0 19 * * * /usr/bin/php path/myphp.php but nothing works fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/18670906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP key => value array find prev and next entry I have an array with key => value and I want to receive the previous and next entry for a given array key. Example: $array = array( 'one' => 'first', 'two' => 'second', 'three' => '3rd', 'four' => '4th' ) When I have the given key 'two' I want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5376424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WPF ListBoxItem Visibility and ScrollBar I was hoping to collapse certain ListBoxItems based on a property of their data context. I came up with the following (trimmed for brevity) <ListBox ItemsSource="{Binding SourceColumns}"> <ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6655968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: keycode for exclamation mark with adb shell input How can I enter a "!" via adb? I can't find the keycode anywhere and it isn't coming across with I use adb shell input text ! adb shell input keycode <???> A: you need to escape the following characters: ( ) < > | ; & * \ ~ " ' 'escaping' means putting a backslash ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18468260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FileNotFoundError when using django.test.client.post I had some django test code that used to work in python 2 but started throwing some errors in python3. Here's a snippet: def test_filter(self): c1 = dt.Client() c1.login(username='user1', password='pass') f = open('data/tiny.txt', 'rb') test_file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46569172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python regex with newlines doesn't match I have a file which contains Line1 Line2 Line3 Line4 and in a Python program I am searching for Line1 Line2 Line3 The program is import re file = open("blah.log","r") file_contents = file.read() pattern='''Line1 Line2 Line3''' matchObj = re.search(pattern, file_conten...
{ "language": "en", "url": "https://stackoverflow.com/questions/53617360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swagger Codegen: Inheritance and Composition not working as expected I have the following short YAML: # Transaction Request object with minimal information that we need Parent: required: - a - b - c properties: a: type: number format: double b: type: string c: type: string # Full t...
{ "language": "en", "url": "https://stackoverflow.com/questions/39578692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: List content being ignored I have a list of calendar events. The html looks like this: <li data-id="1"> <a href="#calendar-item/1"> <div class="calendar" style=""> <div class="calendar-header"></div> <div class="calendar-month">Dec</div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20398894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deadlock found when trying to get lock I am facing this exception very often. 2015-Jan-06 14:24:59.167 (SEVERE) deadlock found when trying to get lock [0] System.Exception Message = deadlock found when trying to get lock Source = Data.ResultAccumulator My application is a VB.Net application and I am usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/27795862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make one component of two different but similar by passing a value? I have a menu that routes clicking to a named outlet presenting submenus. Each submenu is a separate component. After a clean-up I noticed that the only difference between those submenus is a single index to pick captions and urls from. Natur...
{ "language": "en", "url": "https://stackoverflow.com/questions/45802386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set the name for each ParallelFor iteration in KFP v2 on Vertex AI I am currently using kfp.dsl.ParallelFor to train 300 models. It looks something like this: ... models_to_train_op = get_models() with dsl.ParallelFor(models_to_train_op.outputs["data"], parallelism=100) as item: prepare_data_op = prepare_data(it...
{ "language": "en", "url": "https://stackoverflow.com/questions/73052584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Open a second winform asynchronously but still behave as a child to the parent form? I am creating an application and I would like to implement a progress window that appears when a lengthy process is taking place. I've created a standard windows form project to which I've created my app using the default form. I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/2435752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: R Hadoop counting I'm new in R, and i've a problem with MapReduce rmr2. I've a file to read of this kind, where in each row, there is a date and some words (A,B,C..) : 2016-05-10, A, B, C, A, R, E, F, E 2016-05-18, A, B, F, E, E 2016-06-01, A, B, K, T, T, E, G, E, A, N 2016-06-03, A, B, K, T, T, E, F, E, L, T and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/45020540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to display an array of images to the canvas in HTML5? As the title states, I'm trying to put a series of images into an array and then draw them onto the canvas in HTML5, I'm getting no errors but nothing is showing up. I'm new to HTML5 so am having a bit of trouble. Here's what I have: var canvas = doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/49239352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple subnets in a GCP network Subnets are regional resource, while network are global resource. I am doing a Google LAB and I am facing up this doubt. There is this kind of network: networkA with subnet-a and subnet-b both in region us-central1 How is it possible? A: I can see no issue with such configuration. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64803008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update property in angular? I am trying to update property after some time .but it is not reflecting on view why ? Here is my code: https://stackblitz.com/edit/angular-grjd1u?file=src%2Fapp%2Fhello.component.ts ngOnInit(){ this.ls = "dddd" setTimeout(function(){ this.name ="helllllll" }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50614496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Text Wrapping differences in IE7, IE8, and FF When I have this <table> below, the text wraps as needed in FF and IE8, but when I run this in compatibility mode or IE7 the text does not wrap and the width of the previous is basically ignored. Any way to get around this? Here is a simplified example. <table> <t...
{ "language": "en", "url": "https://stackoverflow.com/questions/2595241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ARM template link to refactor template values Summary: We have Below mentioned release pipelines 1. Release1 -This pipeline will create resources like Application insights, App service plan, Key vault. (ARM files -azuredeploy.json and azuredeployparameters.json) 2. Release2 Pipeline: This pipeline will create resour...
{ "language": "en", "url": "https://stackoverflow.com/questions/61005544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mercurial to Manage Existing Website? Getting ready to launch a website/project that was in beta testing. I want to switch it over to version control (Mercurial since I'm familiar with it). Problem is, I am not sure how to go about doing it since the code on the website is already up and in-use and how to deal with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10936897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "How to fix `remove default alphabetical ordering of SerializeJSON() ` I'm trying to add the serialized data in a request to third party API which needs a specific order of the data to be maintained, but SerializeJSON orders in alphabetical order which breaks the format required by the third party API. Could someone...
{ "language": "en", "url": "https://stackoverflow.com/questions/55738639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: appending child div to each div with for loop I want to append child div to each given parent divs. The child div supposed to be decorated by calling decorateDiv(). For example, after the appendChildren is executed, following divs should take the following form (assuming decor...
{ "language": "en", "url": "https://stackoverflow.com/questions/29605980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SyCL ComputeCpp: issues with the matrix_multiply SDK example I just managed to install successfully the SyCL ComputeCpp + OpenCL (from CUDA) and running cmake to generate the samples VS2019 sln, successfully. I've tried to run the matrix_multiply example ONLY, for now. It ran successfully using the Intel FPGA emulat...
{ "language": "en", "url": "https://stackoverflow.com/questions/74402774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use 2 xpaths to send keys (elements from a dictionary) via loop on Python? Selenium related I'm trying to automate a process on this page, and I'm stuck at the part where I need to take the keys and values from a dictionary called current_dictionary and paste them into the Type and Name textboxes, here's the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70892498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between a Kubernetes Controller and a Kubernetes Operator? As I understand the purpose of the Kubernetes Controller is to make sure that current state is equal to the desired state. Nevertheless, Kubernetes Operator does the same job. The list of controller in the Control-plane: * *Deployme...
{ "language": "en", "url": "https://stackoverflow.com/questions/47848258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "126" }
Q: How to get underlying event in Esper I have created a listener implementing UpdateListener interface, which is attached to an Event (Example - TestEvent). Now every time this event is raised, I want to get the underlying event for TestEvent and print that. Example: Statement 1 - on ParentEvent1 insert into TestEve...
{ "language": "en", "url": "https://stackoverflow.com/questions/44428146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mongodb aggregate sort by groupped fields MongoDB 4.0. This is the data set (sales-aggregate-test.js): use Test123; const HOW_MANY_PRODUCTS = 1000 const HOW_MANY_SALES_PER_PRODUCT = 50 for(let i = 0; i < HOW_MANY_PRODUCTS; i++) { const productNumber = (i + 10001) const productId = '5bd9d139d96b8fce000' + produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53088484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript Blockly.FieldDropdown parameters I'm doing a project with blockly which is a javascript library, i can't understand what type of parameters does the menuGenerator variable of the Blockly.FieldDropdown function accept. Here you can see the bit of code interested: /** * Class for an editable dropdown field....
{ "language": "en", "url": "https://stackoverflow.com/questions/50080076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to perform text search on datagrid? May I know, how can I perform search on this default DataGrid? While added the value on it. <DataGrid Name="table" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" IsTextSearchEnabled="True" Background="White"> <DataGrid.Columns> <DataGr...
{ "language": "en", "url": "https://stackoverflow.com/questions/19107271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SocketIO transferring data in bursts rather than continuously I have a program where the backend is written in Python, the frontend is written in React/Electron and I use websockets, specifically Socket.IO to communicate between the two (I use Flask-SocketIO in the backend). I'd like to continuously transfer small ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59272679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check user is locked in LDAP? I need to verify if the user account in the LDAP is locked I am using below code const int ADS_UF_LOCKOUT = 0x00000010; DirectoryEntry entry = new DirectoryEntry (_path, domainAndUsername, pwd); if (((int)entry.Properties["useraccountcontrol"].Value & ADS_UF_LOCKOUT) == 1) { return...
{ "language": "en", "url": "https://stackoverflow.com/questions/17271864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting Escape presses on open select lists in Firefox? I am writing an interface where when Escape is pressed it triggers the cancel button, if there is one. But I do not want to interfere with the standard logic that if a select drop down list is open that Escape will close the list. If a select element just h...
{ "language": "en", "url": "https://stackoverflow.com/questions/35083585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php mysql building a search query at ten tables + different columns I am trying to develop a search page for a website, but cannot come up with a single query. Here is a list of those ten tables and their fields * *tmp_auction_auto id order category manufacturer model price price_type location year run run_type d...
{ "language": "en", "url": "https://stackoverflow.com/questions/13878691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WSO2, convert an empty SOAP response to an empty JSON I have a EI 6.6.0 service that could return empty response, but they have to be JSONs, and in case there is an empty response TID: [-1234] [] [2021-08-26 09:03:16,819] INFO {org.apache.synapse.mediators.builtin.LogMediator} - To: http://www.w3.org/2005/08/addres...
{ "language": "en", "url": "https://stackoverflow.com/questions/68935765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exclude column from export in jQuery Datatables I'm using jQuery datatable 1.10.11 and it's export button functionality as described here: I want to skip last column from being export into excel file as this column has edit/delete buttons in it. My columns are generated dynamically so I can't use following method: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36763832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Emu8086 shorten compile time I've written a 1100 lines Assembly code with Macros in emu8086 (without Macros it would be around 2700 lines) and compiling this program takes arround 2 minutes. It gives me 8 passes. I'd like to ask, whether it is possible to cut down on compile time?
{ "language": "en", "url": "https://stackoverflow.com/questions/47529523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: an iterator that constructs a new object on dereference I have a Visual Studio 2013 C++11 project where I'm trying to define an iterator. I want that iterator to dereference to an object, but internally it actually iterates over some internal data the object requires for construction. class my_obj { public: my_o...
{ "language": "en", "url": "https://stackoverflow.com/questions/23115388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Looping through multiple excel files in python using pandas I know this type of question is asked all the time. But I am having trouble figuring out the best way to do this. I wrote a script that reformats a single excel file using pandas. It works great. Now I want to loop through multiple excel files, preform the...
{ "language": "en", "url": "https://stackoverflow.com/questions/37397037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete spaces of grep search result? I managed to find a pattern using Gnu grep 2.5.4 (OS is Windows 7) What grep returns looks like: Word1 ( 1.22 ) Word2 ( -111.999 ) Word3 ( 123 ) So between end of the word and the bracket '(' always a various number of spaces is there. Can I use g...
{ "language": "en", "url": "https://stackoverflow.com/questions/46242506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Copying Excel formulas with Delphi 7 My team leader wants me to check if this is possible. Our app has a grid (we use TAdvStringGrid from tmssoftware) that displays some values. Our users then copy and paste to Excel. (2010) Now they want the values to update automatically when they play with Excel. In other words, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3512863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access parameters of JQuery object within onload I'm having some trouble changing some legacy code. I have little to no experience with JQuery, I do with JavaScript. The code is like the following: (function($) { $.imgLoader= { isDebug: true, img: null, someText: null, /* exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/46846254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: submit form with files attached I have form, with ajax, that contains a textarea and upload file field. I can submit only one of them. How can I fix that? I want to send "info" + "filesData" to the server. Please advise. AJAX : $(function() { $("#submit").click(function() { var file_data = $('#files').prop(...
{ "language": "en", "url": "https://stackoverflow.com/questions/31365664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python2: Writing to stdin of interactive process, using Popen.communicate(), without trailing newline I am trying to write what I thought would be a simple utility script to call a different command, but Popen.communicate() seems to append a newline. I imagine this is to terminate input, and it works with a basic sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/53705093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to extend a C# ASP.NET class if DLL may or may not be available? Ok, think along the lines of a plugin. I have my own dll and it has it's own functionality. If a third-party dll is present, I'm extending a class inside from that dll. Everything works great except if the third party DLL is missing. This is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16016908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sort Algritham Used SNOWFLAKE database I am trying to understand the kind of sorting algorithm used by ORDER BY Clause in SNOWFLAKE SQl. When we put order by on columns . It sort data based ASC or DESC with NULL AS FIRST OR LAST. Is it Merge Sort ? or any other hybrid sort technique A: This is mentioned in the docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/63480185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: angularjs undefined main module when minifying using typescript I am trying to minify and uglify my angularjs + typescript app using grunt-minified. Currently I am getting an error that my main module for the app is not available when I minify. I know why this is occuring due variable names no longer matching the na...
{ "language": "en", "url": "https://stackoverflow.com/questions/27697770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does PHP header(); work for him and not me INTRO: FIRST: I Know about How to fix "Headers already sent" error in PHP My question isn't about why it doesn't work. I know why it doesn't work, there is output before header();. My question is why it works for a guy in a YT video, that I am learning from, when he has...
{ "language": "en", "url": "https://stackoverflow.com/questions/52381172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do drag and drop a page from the application to the desktop/ Explorer How to do drag and drop a page from the application to the desktop/ Explorer in win32. My application is document management system. Please help me how to get the handle of the desktop/explorer window or any other window outside of the appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/32711001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mail is not sending in php I have followed one tutorial to send mail from php. public function send_credentials($beneficiary_user){ $this->load->library(β€˜email’); $email_config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => '465', 'smt...
{ "language": "en", "url": "https://stackoverflow.com/questions/21656790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ng-table not show the filter when this fields are from the fields that are nested First, I'm working with ng-table. The problem is that isn't showing the filter when this fields are from the fields that are nested. I wanna to filter by field name of user or field title of event. this is my json field: [ { "id"...
{ "language": "en", "url": "https://stackoverflow.com/questions/38340788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: seize and release transporters in any logic [Model] https://i.stack.imgur.com/xRIhB.jpg I am trying to model a batches loaded by 2 cranes (service block) on a transporters fleet. then transporters move to unloading area by another 2 cranes (for now represented in flow chat as a delay2 block ). the problem i am faci...
{ "language": "en", "url": "https://stackoverflow.com/questions/74886709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I verify the ID token with Firebase and Django Rest? I just can't wrap my head around how the authentication is done if I use Firebase auth and I wish to connect it to my django rest backend. I use the getIdTokenResult provided by firebase as such: async login() { this.error = null; t...
{ "language": "en", "url": "https://stackoverflow.com/questions/65370776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to update text box with new values and check the count using selenium web driver I am facing this issue, that i have to count if the number of values in text box field has exceeded 5 or not. In case it has not i can enter values, and if yes then i cant enter anymore. The screenshot of screen and html is attached...
{ "language": "en", "url": "https://stackoverflow.com/questions/51589360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Changing font family for a paragraph in latex rmarkdown does anyone know how to change of font family in the middle of a rmarkdown document? I am currently using the following code but it resets the given text to computer modern, it is like it just never finds any other font. please help --- title: '' output: pdf_...
{ "language": "en", "url": "https://stackoverflow.com/questions/67806430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript object setting values to object but not updating to firebase There is a node named reader ranks having 14 ranks, when i am trying to calculate points with static code it works fine for me here is some code for that rank_r = getReaderRank(parseFloat(oldPointsOfReder)); userDataReaderRef.update(rank_r); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59764333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why use terminal to start jar and idea to start are inconsistent Using idea to start the springboot program cannot get the value of the automatic configuration class For example, the following code,PassConfig.getKey() is null: private static final String encryptionFormat = String.format("to_base64(aes_encrypt(?,'%s'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75406662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between PHP includes and Java Import Declarations In PHP, we have: <?php include 'external_file.php'; ?> Whereas in Java, you have imports: import javax.servlet.http.HttpServlet; It is to my understanding that PHP includes simply dump the contents of the external file into the file that contains the in...
{ "language": "en", "url": "https://stackoverflow.com/questions/11401906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CSS transition dropdown menu on hover - absolute positioning left (_s wordpress theme) I have a drop down menu that I would like to transition using css. The drop down is displayed on hover using absolute positioning left:-999em and left:100% and I would like it to gently ease in and out on hover. Amoungst other thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/25851605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: fatal error: 'clang-c/Index.h' file not found on OSX 10.9.4 I was trying to install clang_complete on OSX 10.9.4. However while running make I get the following error: [ 66%] Building CXX object CMakeFiles/clic_add.dir/clic_add.cpp.o /Users/bharat/Desktop/clang_indexer/clic_add.cpp:5:10: fatal error: 'clang-c/Index....
{ "language": "en", "url": "https://stackoverflow.com/questions/25373692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add/use colon ":" in the YML value? How to add/use colon : in the YML value? spring: application: name: app profiles: active: DEV config: import: configserver: The above example configserver: give error A: Double quotes "" works spring: application: name: app profiles: active: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69061394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using classes in different .ts files in jasmine I am writting simple test in jasmine framework. I have following files stored in one folder: * *maintest.ts *helper.ts *Workflow1.ts *Workflow2.ts Workflow files have content as following (example): import {element, by, browser, protractor} from "protractor"; imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/47750953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Whats the difference and how to generate these two encodings? I am working with these two encoding type of strings: %ueb08%u8b09%u3c40%u5756%u5ebe%u3440%u408d \x26\x04\x9e\x8e\xf9\xd0 To generate the first type I found this function: function encoder(s) { $res = strtoupper(bin2hex($s)); $g = round(strlen($r...
{ "language": "en", "url": "https://stackoverflow.com/questions/6220778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert php mail() function to smtp I make a simple contact form for WordPress using ajax and php mail() but my maximum mail is going to spam folder. what is wrong with my code? or any other solution ? like SMTP. <?php $errorMSG = ""; // NAME if (empty($_POST["name"])) { $errorMSG = "Name is required "; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/52577207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iterate efficiently on large OneToMany – ManyToOne associations I have two entities User and Period, they have a ManyToMany association: a user belongs to many periods, and a period has multiple users. This association uses a UserPeriod entity. class Period { /** * @ORM\OneToMany(targetEntity="UserPeriod", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32543535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Java type is unknown in js side Please help point out what the problem might be in the code below. I have this javascript code (in a file '/arithmetic.js') which I'm testing using GraalVM's Context in java function sum(num, b) { return num.add(b) } function diff(num, b) { return num.sub(b) } The java side ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65998591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Configure asp.net site with ASP.NET Ajax Control Toolkit I have an application that has been converted from VS2005 2.0 framework to VS2008 3.5 framework. I am attempting to add the ability to use the AjaxControlToolkit DLL [AjaxControlToolkit-Framework3.5SP1-DllOnly.zip] download only within my project. I have follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/447369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sansation Light bug in Firefox I am using the Sansation Light fonts in my web site and in Firefox, I ve noticed the undesirable effect that the sequences ff, fi, fl render as a square instead. Any ideas how to fix it? A: Disable ligatures to make them show properly. Worked for me. -moz-font-feature-settings: "liga...
{ "language": "en", "url": "https://stackoverflow.com/questions/15523766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't change modules buildVariant I have a project with a main app and 3 modules. They depend on each other like app (android application) | --- module1 (android library) | --- module2 (android library) | --- module3 (android library) I'm using AS 3.0 with BuildTo...
{ "language": "en", "url": "https://stackoverflow.com/questions/44913945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Array Index Out Of Bounds Exception Basic When I Compile this program it has no errors, But when I run it I get an Out Of Bounds Error. Any Help? Thanks! The Exact Error Is As Follows : Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at javaapplication.JavaApplication.main(JavaApplicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/48313660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Move file but rename if existing in python I am trying to move my files in Windows. Currently the files are in a folder under drive C: but I want to move them to a location in D:. I am using shutil.move function but that function overwrites the file if it is existing. I want to keep a copy of the file in the destina...
{ "language": "en", "url": "https://stackoverflow.com/questions/63323275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }