text
stringlengths
15
59.8k
meta
dict
Q: Visual Studio will not recognize addTagHelper in razor file I've used @addTagHelper in previous projects in the _ViewImports for MVC and not had a problem, but now its saying that the name 'addTagHelper' does not exist in current context. This is in a WCF Service Application using MVC. Any ideas? A: @Bsharp Sadly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49801811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to intellisense alias module path in VSCode I would like VSCode to IntelliSense the module path so I can access it by click. For example, after configurating jsconfig.json I'm able to access ./src/styled/index by importing its global path. But I couldn't figure out how to make it work with an alias @styles // VS...
{ "language": "en", "url": "https://stackoverflow.com/questions/58249053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Loop through an XML object with SimpleXML I am trying to use SimpleXML in PHP to loop through a XML object - the object format is below:- I get the following error when I try to get the element tags by name - can anyone explain what I am doing wrong? Call to undefined method SimpleXMLElement::getElementsByTagName() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19561657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How should one make a class with dependencies unit testable without bloat? So I have a class (part of a library) that facilitates two-way TCP communication. Part of that is accepting incoming connections. My implementation consists of using a TCPListener object and a multithreaded method to accept connections. To ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/44992101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add tap gesture on each segment of a Piechart using UIGraphicsGetCurrentContext arc I am trying to create a Piechart using UIGraphicsGetCurrentContext for drawing, I want to add tap gesture on the piechart to recognize if the tap point inside each segment. Please find the code below for drawing Piechart and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/50307641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: std::stoul not throwing std::out_of_range Consider following code: #include <iostream> #include <cstring> #include <cerrno> int main() { unsigned long num = strtoul("0xFFFFFFFFFFFF11223344556677889900AABBCCDDEEFF", NULL, 16); std::cout << std::strerror(errno) << "\n"; unsigned long num2 = std::stoul("0x...
{ "language": "en", "url": "https://stackoverflow.com/questions/56649437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I change the text of a label after clicking a button using GtkAda I have this code which has 1 label and 3 buttons. What I want is to change the text of the label if I press a certain button. If I click the first button the label text will change to "Hello" and if I click the second button the label text will...
{ "language": "en", "url": "https://stackoverflow.com/questions/66953035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python - write headers to csv Currently i am writing query in python which export data from oracle dbo to .csv file. I am not sure how to write headers within file. try: connection = cx_Oracle.connect('user','pass','tns_name') cursor = connection.cursor() print "connected" try: query = """s...
{ "language": "en", "url": "https://stackoverflow.com/questions/32536873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: reply to call back query in telepot I have created inline keyboard and am trying to answer the callback query with a message. The terminal is recieving the query but i do not know the correct syntax for replying to it with messages and ultimately photos and other things. I sometimes get a telegram error 400. After g...
{ "language": "en", "url": "https://stackoverflow.com/questions/66424794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: R Tidy method for creating factor variable based on multiple conditions I have a dataset like this: Gender<-c("Male","Female","Male","Male","Female") PlaceA<-c("","","","1600","") PlaceB<-c("","200","211","326","") PlaceC<-c("1111","2222","","","45") PlaceD<-c("1000","","","1600","210") DF<-tibble(Gender,PlaceA,Plac...
{ "language": "en", "url": "https://stackoverflow.com/questions/62521731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple Verifications on Mysql ExpressJS NodeJS I'm new in NodeJS and i'm working on ExpressJS in an API for use it with angular2 I have the next problem: I need do checks in db (mysql) before make an insert and can handle the errors correctly... my ugly code is: http://pastebin.com/iuBMhUeb And it doesn't work, be...
{ "language": "en", "url": "https://stackoverflow.com/questions/40557698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FastAPI DB dependency get_repo as a generic fucntion I am trying to find out if it is possible to use the FastAPI dependency injection commonly used to get repository instances as a generic callable, rather than having to get every repo independently in the router and then passing them through to services used later...
{ "language": "en", "url": "https://stackoverflow.com/questions/74627871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php ews, get sent items more info I use jamesiarmes/php-ews to connect with Exchange server to get an email list. $ews = new ExchangeWebServices('[host]', '[username]', '[password]'); $request = new EWSType_FindItemType(); $request->ItemShape = new EWSType_ItemResponseShapeType(); $request->ItemShape->BaseShape =...
{ "language": "en", "url": "https://stackoverflow.com/questions/24549111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I terminate Javascript execution, á la exit/die/fatal assertion, etc.? I have a loop in Javascript, I want to run console.log() in a specific iteration, and then terminate. What is the best method to go about doing this? I'm wanting something like Perl's die Dumper \@foo; A: You can throw an exception: thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/5250037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS 2015 TACO - build broke on Xcode 8 / iOS 10 Here are the issues I encountered and fixed: * *Code signing: downloaded the xcode8.js hook and added the following to build.json, per http://www.dpogue.ca/articles/cordova-xcode8.html: "ios": { "debug": { "developmentTeam": "VZ4B5XSP9U" }, "relea...
{ "language": "en", "url": "https://stackoverflow.com/questions/40091788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Time limit exceeded error when doing left shift with boost::multiprecision cpp_int I am trying the following: #include <boost/multiprecision/cpp_int.hpp> #include <iostream> int main() { using namespace boost::multiprecision; cpp_int v = 1; unsigned int a = 4294967295; std::cout << (v << a) << std::end...
{ "language": "en", "url": "https://stackoverflow.com/questions/62334346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash: Why is my read command not ending after pressing return? I have a bash script that I need to run when I'm building and running a docker container. When I run the script independently, it runs fine. The read command ends after I hit return. However, when I put in the docker run command to run the script through...
{ "language": "en", "url": "https://stackoverflow.com/questions/56930908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to empty recycling bin in batch I need a code to empty the recycling bin without conformation I have tried the simple del $Recycle.Bin but it says access denied even when elevated does any one know a code I could use. A: This emptied my bin without any confirmation. @ECHO OFF start /b /wait powershell.exe -comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/21110143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: State Manager not persisting/retrieving data NiFi 1.1.1 I am trying to persist a byte [] using the ​State Manager. private byte[] lsnUsedDuringLastLoad; @Override public void onTrigger(final ProcessContext context, final ProcessSession session) throws ProcessException { ... ... ... ​final StateMa...
{ "language": "en", "url": "https://stackoverflow.com/questions/42902718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add scripts and styles for EXACT page in Wordpress admin panel I am well aware of the WP hooks admin_print_scripts-$mypage, admin_print_styles-$mypage but they seem to trigger only for pages registered with $mypage = add_management_page( ... ), add_options_page(), etc. It's quite clear you won't be able to us...
{ "language": "en", "url": "https://stackoverflow.com/questions/4077136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sparql Transaction I want to insert multiple objects into a triplestore like Jena fuseki or virtuoso. In my case, the subject equal to a primary key. It is similar to a relational database. How can I make sure that the subject is only present once or is already in use? Can an ASK be combined with an insert in Spar...
{ "language": "en", "url": "https://stackoverflow.com/questions/54581081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I turn a directory of images into video? (node.js) I'm trying to create a screen recording video by using a module to create multiple images and then somehow use these images to export to an mp4. However I don't know how to turn the directory of images into a video. Can anyone help with this? Here is what I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44914274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set operations in batch files I have two files and want to check whether one 'contains' the other in a batch script. By 'contains' I mean that the SET of lines in the first file contains the SET of lines in the second file. For example this file: a b c d e f g contains this file: a b d g but does not contain this...
{ "language": "en", "url": "https://stackoverflow.com/questions/26231298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Quantile R unused argument error I want to use the quantile function, the example shown under "help" x <- rnorm(1001) quantile(x <- rnorm(1001)) # Extremes & Quartiles by default quantile(x, probs = c(0.1, 0.5, 1, 2, 5, 10, 50, NA)/100) I get the following error: Error in quantile(x, probs = c(0.1, 0.5, 1, 2, 5, 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/25854477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I return from a mobile application to a web page? We have a groovy web app for mobile devices. Now we want to "do some stuff" locally that can't be done in a browser, and return the result to the web app. On Android, this page describes how to launch an activity from an intent url, but forgets to tell me how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33777418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort part of javascript object I have a javascript object as below. I have to sort data under AddressTotal only checking in below sequence. 1. if any element has "Prime":true then put it at first under AddressTotal. 2. If no "Prime":true , then sort descending order on "Createdate". Please note it's fine about "Cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/51816931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ios - iPad emulator seems to have height that is too much I followed the advice of this question: Converting Storyboard from iPhone to iPad and it worked, but my iPad screens seem to be too tall...maybe about 150% too tall. And the user has to scroll down to see the UITabBar. Would anyone happen to know why that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11993630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to make the bot respond to a message that has one of the elements in an Array I am trying to make my Bot I am currently developing able to respond to a message, Which i really did it. However I want the bot to respond to one of the elements/strings in an Array, so i don't have to repeatedly write (mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/64004262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Celery-Django, Start and stop reminder emails for survey I'm trying to implement a recurring daily reminder email task into my program that begins at a specific date/time and is stopped only when the customer completes the required action. Is this something that is possible with Celery and Django? I've already foun...
{ "language": "en", "url": "https://stackoverflow.com/questions/59093700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AppleScript Count and Remove Characters in Excel I am having issues with my applescript that removes any filename that is greater than 13 characters long. I have a list of filenames in column B and I only need the ones that are 13 characters, nothing more than. I am looking for the script to delete the row of anythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/43768776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connect to NexusDB using Go or PHP Im trying to access an applications nexusDB records/tables I cant find much information on this online, is it possible with Golang or PHP7 and if so is there any documentation on doing so. A: A PHP driver (windows only) exists for NexusDB, currently it supports up to PHP v5.x. PHP...
{ "language": "en", "url": "https://stackoverflow.com/questions/60064338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel in docker: cannot run migrations - access denied for root user I'm trying to contenairize my laravel application (not using their default docker config sail for reasons not in the scope of this question). The containers (app, server and db) seem to be built and run correctly, but when I try to run the databa...
{ "language": "en", "url": "https://stackoverflow.com/questions/74511916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrofit2/OkHttp3: REST webservice does not specify characterset I am accessing a webservice that are not able to specify content-type nor character set for the content I consume. Is there a way, using retrofit2 (or okhttp3 client interceptors), to add information about this so that received content can be processed...
{ "language": "en", "url": "https://stackoverflow.com/questions/42427499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to listen for requests and maintain "dialog" in asp.net OK, I'm quite new to web developing and this is a bit difficult to define abstractly so I'll say exactly what I'm trying to do: I have an asp.net website running on my server. I want to have other websites to have a button which redirects to a specific URL....
{ "language": "en", "url": "https://stackoverflow.com/questions/4671849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using sql to determine if the user has liked a post Use-case. We have users posts and likes tables. I am a user with id 4 who wants to get a list of posts and for each individual post I'd like to know if I liked it already or not. I know this is sounds like a trivial problem, but I can't figure out a simple solution...
{ "language": "en", "url": "https://stackoverflow.com/questions/71414831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Paginated array would not show I'm rather new to Ruby on Rails so would appreciate some help Roles have Users in my application. When showing a role I would like to render a paginated list of user names (and as a further refactor - links to users). Currently my HAML template is as follows ... %ul.assigned-users ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34052040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reason for sending callback functions as argument Callback function is a special kind of function that (pointer to function) is passed to caller function as argument. Callback function is used in event-driven scenarios i.e., callback function is called by caller function if and only if particular event happens. My d...
{ "language": "en", "url": "https://stackoverflow.com/questions/49234092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLAlchemy ORM select multiple entities from subquery I need to query multiple entities, something like session.query(Entity1, Entity2), only from a subquery rather than directly from the tables. The docs have something about selecting one entity from a subquery but I can't find how to select more than one, either i...
{ "language": "en", "url": "https://stackoverflow.com/questions/14511633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Create DOUBLE PRECISION column from VARCHAR that is 99% numbers... (but includes some strings) I use Postgresql. I have a varchar column RAW_RET, mostly of numbers, and I'm trying to make a new column RET which is DOUBLE PRECISION. The problem is that a few rows of RAW_RET contain text, (Eg. character 'B' instead of...
{ "language": "en", "url": "https://stackoverflow.com/questions/33685697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python, mongo + spider monkey Ok, so this isn't exactly a question that I expect a full answer for but here goes... I am currently using a python driver to fire data at a mongo instance and all it well in the world. Now I want to be able to pull data from mongo and evaluate each record in the collection. Now I need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2285083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unnecessary repaint of following siblings I'm using react-transitive-number to achieve transitive animation of number changes [demo page] The problem is - if you look this page in Chrome devtools, "Paint Flashing" in Rendering tab you may see that every transition cause following siblings to repaint. Why this mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/41243786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gradle: try to skp sonarqube results in error I have a gradle script that uses Sonarqube plugin (org.sonarqube). If I let the publish task depends on it, it works fine. The problem is to run sonarqube only if a condition is true. So I tried (as described in gradle documentation) all of these three statements: sonarq...
{ "language": "en", "url": "https://stackoverflow.com/questions/36333343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert multiple lines into a file using shell script I want to insert multiple lines into a .json file after a specific pattern using shell script. Also need to consider to insert on the nth occurrence. Let us consider my input file contents are: input.txt: [ { "a": "a", "b": "b" }, { "c": "c", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71244184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# csproj file "Choose" element for assembly HintPaths Is it possible to use the Choose/When/Otherwise elements on a reference hintpath? Something like this: <ItemGroup> <Reference Include="SharedLib..."> <SpecificVersion>False</SpecificVersion> <Choose> <When Condition="Exists('..\..\SharedLib\bin\Debug')"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36480093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS Code %USERNAME% Wild Card in JSON Settings In the Windows Command Prompt, I can enter: cd \Users\%USERNAME% And it takes me to my user's home directory, e.g.: C:\User\MyName. But in Visual Studio Code's JSON settings, the following doesn't resolve: { "jshint.config": "C:\\Users\\%USERNAME%\\JSHint.json", } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63591046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: adding a number to a variable I am trying to get the contents of a txt file "usernum.txt", get the contents, add one to that number, and replace the current number with the new one. Here is what I have so far #!/bin/sh ID=0 cat ''$pwd'usernum.txt' >> $ID count1=1 IDB=$(($ID+$count1)) rm "usernum.txt" touch "usernum...
{ "language": "en", "url": "https://stackoverflow.com/questions/12508059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove a dataframe from a list of dataframes conditionally I have a list of dataframes from which I would like to remove the dataframes that have a particular value in a specific column. Code library(tidyverse) combi <- function(a=c(1,2,3), b=c(2,3,4,5)){ return(expand.grid(a,b)) } df <- pmap(list(a=c(1,2,3)), c...
{ "language": "en", "url": "https://stackoverflow.com/questions/62813254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to setup and run openpaas release version in ubuntu I am trying to setup openpaas: [https://github.com/linagora/openpaas-esn ] development on ubuntu system. i am unable to setup. before seting up locally , i tried running with docker(as in http://docs.open-paas.org/getting-started/linux/ ) it works fine.i need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/55654482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swift: Implementing Find-or-Create Efficiently So I set up some data from an API to create a managed object, How do I determine whether the managed object already exists (in my example, every object has a unique id), and create it if it does not. // set up core data var appDel:AppDelegate = UIApplication.sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/29996727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: django how to check if a user is already exists on this app without making too much query? Assume these as django models: class Question(): question = charfield() choice = charfield(choices = answer_choice) class Answer(): question = models.foreignkey(Question, related_name = 'answers') answerer =...
{ "language": "en", "url": "https://stackoverflow.com/questions/14048118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: retrieving data from play-scala server We want to use REACT in a scala-play project. We'll, also, use AXIOS to send request from REACT (web browser) to the server. The question is, how could be a great way to create services on the play-scala server to respond to the requests coming from the web browser which could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42907927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why does a insertion/extraction operator's overloaded function need ostream/istream argument? Consider the following code with overloaded insertion & extraction operators. #include <iostream> using namespace std; class CTest { string d_name; public: friend ostream & operator<<(ostream & out, CTest & test);...
{ "language": "en", "url": "https://stackoverflow.com/questions/46723073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Word 2010 Interop: Show the "Save As" dialog I need a way to always show the save as dialog when the user performs a certain action on a Word document. Currently, the dialog only shows when an unsaved document is saving. These documents I am working on have already been saved in one location with a particular name...
{ "language": "en", "url": "https://stackoverflow.com/questions/15710235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why animation can be reusable after change display why animation can be reusable after im changing elemets display property with js can some one explain i couldnt find any answer for this can someone explain me this my codes downbelow ` <style> * { margin: 0; padding: 0; box-sizing...
{ "language": "en", "url": "https://stackoverflow.com/questions/74666969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Capturing an image From Camera Returns Empty Data While Capturing image in android app intent return null each time. Please see below the code which I am using. I have tried multiple ways to get the permission as well as intent set but still I am unable to get data. Action For Camera private void takePhotoF...
{ "language": "en", "url": "https://stackoverflow.com/questions/53113646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the data from previous month in sql query I have a data of all the cost for each month. For example, I have table of cost for each month +--------+--------+-----+--------+--------+ | Jan | Feb | Mar | Apr | May | +--------+--------+-----+--------+--------+ | 899.20 | 0 | 0 | 0 | 899.20 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65632932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to mass / bulk PutObjectAcl in Amazon S3? I am looking for a way to update several objects ACL in one (of few request) to the AWS API. My web application contains several sensitive objects stored in AWS S3. This object have a default ACL to "private". I sometimes need to update several objects ACL to "public-rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/68291539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Catch a html tag value with javascript I have a div tag like <div id="123" reference="r045"> Now I wanna save the value of the reference. I tried it with var reference = document.getElementbyName("reference"); Didnt work. Any ideas? Thanks :) A: getElementbyName gets an element by its name. The reference attribu...
{ "language": "en", "url": "https://stackoverflow.com/questions/51967555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Fill drop down list on selection of another drop down list I am using MVC and I am still new with MVC. Can anyone tell me if you can fill a drop down list with data on selection of another drop down list. I want to use Jquery to avoid postbacks and therefore making the page smoother. A: Model: namespace MvcAppl...
{ "language": "en", "url": "https://stackoverflow.com/questions/17013644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Macro to copy values only from one sheet to another I've this VBA code Sheets("log").Range("A125:f1000").Copy _ Sheets("data").Cells(Rows.Count, "A").End(xlUp).Offset(1) and it copies perfectly from sheet log to data. The only problem I'm facing is that it copies formulas with it as well whereas I only want value...
{ "language": "en", "url": "https://stackoverflow.com/questions/17565456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing chef data bags I need to test chef recipe. This is using a data bag. kitchen is using chef_zero in order to provision the machine. So, it's not able to get my data bag hosted on server. Then it's telling me that my data bag is not available. How could I get a data bag available on test kitchen? I've created ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42667098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Having Problems Dynamically Displaying a Nested List Using Core Data Hereafter is the Problem I'm Dealing with: * *I am permanently storing information using iOS Core Data *I would like to (dynamically) display the information stored in core data in a UITableView (as later described) *I am considering the use of...
{ "language": "en", "url": "https://stackoverflow.com/questions/53689363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to crop a selected picture in Outlook mail body with VBA I need VBA Code for crop picture in outlook mail body Does anyone have code please share with me A: After a 5 minute search on Google I found the following link https://www.experts-exchange.com/questions/27768384/Outlook-macro-to-resize-picture-s.html to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47269205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: setting up XmlConfigurator Common Logging with log4net I have been looking at creating a common logging library for the company I work for, based on a blog by Daniel Cazzulino. so we can switch one out for another without to much disruption. The first library I looked to use is log4net, but I cannot work out how or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14602488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: mySQLdb import error I am following this guide: How do I connect to a MySQL Database in Python? running jupyter notebook. I am running windws 10 operating system and I have installed MySQLdb from this link https://sourceforge.net/projects/mysql-python/files/ "MySQL for python" I have MySQL Workbench installed. When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43847868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compare two columns in separate spreadsheets and if the columns match, output related data in from one spreadsheet to the other Had a search and sadly couldn't find a related question Im trying to compare two columns in separate spreadsheets and if the columns match, output related data in from one spreadshee...
{ "language": "en", "url": "https://stackoverflow.com/questions/31165136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS S3 - How to stop images from force downloading instead of displaying. I am currently trying to load images from my website to AWS S3. I have the functionality working where it uploads the image to the server but when i try to view the images they download instead of displaying. I read there is a way to set the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/37903053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WPF - When TextBox inside DateTemplate is focused change datatemplate child property I have a listview with a Border wrapping a textbox (and other elements not shown in sample code). I want when the textbox is keyboard focused to change a property of the border that wraps it. <ListView ItemsSource="{Binding activeLi...
{ "language": "en", "url": "https://stackoverflow.com/questions/41907274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate str() function using Criteria API How can I use HQL str() function which is using for converting numeric value to readable string with Criteria API? A: I think, you won't need str() function with Criteria API, since you can first convert numerics into Strings with API functions like: Integer.toString() th...
{ "language": "en", "url": "https://stackoverflow.com/questions/9195277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the row values as column in SQL I have below table,and need to get row values as an output. This is a part of a view in Oracle Database. I need to get the output using SQL as below.name,address,regionare taking from another table by referringID . Looking for much simple way since full query have more than 15 c...
{ "language": "en", "url": "https://stackoverflow.com/questions/49747010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Creating Custom IconFactory in Gtkmm I have a small application, where I want to create some buttons, toolbars, etc. but I do not want to use a pre-existing GTK icon theme, I want to create my own. So I looked for tutorials and whatnot, but as it turned out, it was not very well discussed online. So I tried to do so...
{ "language": "en", "url": "https://stackoverflow.com/questions/12956081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Options to securely authenticate mobile access using OAuth2 We're currently in the process of implementing OAuth2 to secure our new API and not sure how to securely provide required functionality. We need to allow the following from a mobile device: Immediately after downloading the app the user is able to take a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/8389134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to hide/unhide desktop icons in Python? Is it possible to hide/unhide icons on your desktop with Python? I know a way of doing it by editing registry but changes take place after you log off and log back on. If you have any suggestion, I'd appreciate your help.
{ "language": "en", "url": "https://stackoverflow.com/questions/68758276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Golang: what's the point of interfaces when you have multiple inheritence I'm a Java programmer, learning to program in Go. So far I really like the language. A LOT more than Java. But there's one thing I'm a bit confused about. Java has interfaces because classes can inherit only from one class. Since Go allows mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/18048541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to prevent JSX comment from adding a 'children' element, potentially breaking types? Let's say I have a third party library like this: declare var SomeComponentFromLibrary: React.FC<{ children?: React.ReactElement }>; Where children is defined to be a React.ReactElement, and I can't change that f...
{ "language": "en", "url": "https://stackoverflow.com/questions/64667775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PhpStorm make grouping like Xcode Can I make a grouping my php pages like Xcode group in PhpStorm ? Is there any suggestion ? There are two types of folders in Xcode: groups and folder references. You can use groups to organize files in your project without affecting their structure on the actual file system. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/38990260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check Box makes Label Visible I have three Combo Boxes - When they are selected i would like it to check the tick box. if the check box is ticked the Text box will then become Enabled, i currently have it set as disabled. my question is how would i set the check box to be true when the three Combos are selected. a...
{ "language": "en", "url": "https://stackoverflow.com/questions/51635473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: put random image on uibutton I'm new to Objetive-C and need some help, I have an Array with 22 UIImage's and 4 UIButtons on the view. I want to take an image from the array with ObjectAtIndex:somecounter and place this image randomly in one of the 4 UIButton's, than I want to take another 3 UIImages from the Array (...
{ "language": "en", "url": "https://stackoverflow.com/questions/9016422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Correct handling of exception: "getParameters failed (empty parameters)" I have a camera app in the Google Play store with Google Analytics installed. I keep getting the following crash report: getParameters failed (empty parameters) My question is: What is the correct way to handle this? Looking into the Android...
{ "language": "en", "url": "https://stackoverflow.com/questions/14941625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Can't write data into Excel-Sheet using openpyxl Workbook I'm trying to write to specific cells in a Excel-Sheet using openpyxl Workbook. At first I couldn't write to cells that already had data in them and now I can't write at all (or I'm just going crazy). Here's my code: wb = load_workbook("..\\..\\Decision T...
{ "language": "en", "url": "https://stackoverflow.com/questions/56657204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How Scroll RecyclerView With MediaPlayer I have recyclerview in activity and mediaplayer. I want when play mediaplayer and when seekbar change position my recycleview scroll with him.befor i do for scrollbar and rigth work.but i can not do for recycler . Please help me!? recyclerView = (RecyclerView) findViewById(R....
{ "language": "en", "url": "https://stackoverflow.com/questions/44150530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculate position of projector I am projecting a rectangle on a table with a beamer and I want to calculate the absolute position of the beamer in the space from the destortion of this rectangle. I know the absolute position (in 3D) of all the corners of the rectangle that is projected on the table. I dont know how...
{ "language": "en", "url": "https://stackoverflow.com/questions/13961352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Animation/transition for Shiny conditionalPanel Shiny conditionalPanels just abruptly appear then disappear. Is there any way to make them slide or fade or otherwise gently transition? A: Here is a way to fade the element when it is shown: js <- " $(document).ready(function(){ $('#plotContainer').on('show', funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/62972563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java List I have the following method: public static List<Integer> gradingStudents(List<Integer> grades) { for(int i = 0; i < grades.size(); i++){ if(grades.get(i) < 40) continue; else if(grades.get(i) % 5 < 3) grades.get(i) = grades.get(i) + (Math.abs(grades.get(i)%5-5));...
{ "language": "en", "url": "https://stackoverflow.com/questions/65591638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: pandas str.replace is not working properly I want to replace specific Strings within another String in my .csv file. While import pandas df = pandas.read_csv("file.csv", sep=";",encoding='iso-8859-1') df['Column'] = df['Column'].str.replace('Corona', '') is correctly removing the word Corona from Coronavirus, df['C...
{ "language": "en", "url": "https://stackoverflow.com/questions/65719102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When I store a bytearray with more than 100,000 index into the sqlite, I can only get 20 index of it while I select it from the table Here's what happen: When I convert a bitmap into a bytearray, the bytearray stores more than 100,000 index, but when I use the SELECT function to get the bytearray, the bytearray hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/34260615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SL5 In Browser WebBrowser Control error "Trying to revoke a drop target that has not been registered" when re-navigating to another PDF Finally bit the bullet and replaced my hack for displaying PDF content inside a silverlight app with a proper SL5 Trusted In-Browser WebBrowser that navigates to a .pdf. When i tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/10265104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using a delayed variable value to as a length value in a substring I am extracting note sets from a log file. The line number of the header to a set in the file is found via FIND /V /N The note set is delimited with a line containing only "@@@" I use findstr to return this line which returns as 'xxx:@@@', e.g. '14:@...
{ "language": "en", "url": "https://stackoverflow.com/questions/59703305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Download multiple files with gevent I am trying to download a list of files in parallel, making use of [gevent][1] My code is a slight modification of the code suggested here monkey.patch_all() def download_xbrl_files(download_folder, yq, list_of_xbrl_urls): def download_and_save_file(url, yr, qtr): if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23823257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an alternative to .toggle() that will let me control on/off? I am developing a portfolio website and I want to be able to tag items in the page that displays work so you can toggle visibility. I have it set up with .toggle() right now, which works, except that if I want to use multiple tags, it throws off o...
{ "language": "en", "url": "https://stackoverflow.com/questions/27260947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AS3 safe downloaded file directly to specified folder May be some body have FLA file which download file to folder (without dialog of save file). Just Click to - DOWNLOAD -> file save to folder /update on swf located. (without any confirmation of filename or filder location) var fileName:String = "upgrade.zip...
{ "language": "en", "url": "https://stackoverflow.com/questions/29263001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accordion and Dialog components for Material Design Lite Are there any accordion and modal dialog components available and actually work that are compatible with my environment of: Google's Material Design Lite version 1.06 Facebook's ReactJS 0.14.2 Microsoft's TypeScript and Visual Studio 2015 (for typescript bundl...
{ "language": "en", "url": "https://stackoverflow.com/questions/34998630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: visual studio backward compatibility Hi there I have build a project with visual studio 2010 but I now need to open it using an older version vs2008. Is this possible by just changing the target framework to .net 3.5? A: In my experience, VS2008 can open VS2010 project files if there aren't VS2010-specific bits in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2780464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Doctype for html email Which DOCTYPE is the right one for HTML email? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> A: There is...
{ "language": "en", "url": "https://stackoverflow.com/questions/34319889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How does the method know what array need to be checked? If I have 2 classes that extend from this container class, one that can only alter the list container and the other that can only alter the set container. How would the isEmpty() method be able to know which container to check? This is a lab for class so I'm no...
{ "language": "en", "url": "https://stackoverflow.com/questions/71355631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simple Tkinter program - window vanishes after clicking button - maintop problem? Coders, I guess I have a newbie question: my windows disappears when I click on a button. If I put in root.mainloop() as last line in the buttonClicked-function, then the program is fine - but it looks not right...what is wrong here? i...
{ "language": "en", "url": "https://stackoverflow.com/questions/71056814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Capistrano: Override shared_dir variable First off, very new to Capistrano, so excuse my newbness. I am deploying a CodeIgniter application of which I have a data folder that lives outside the current web directory that I am trying to symlink to. This is what I have used to create the symlink set :shared_dir, %w(/va...
{ "language": "en", "url": "https://stackoverflow.com/questions/29710825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swift convert string to date output wrong date I want to convert dateStartString = “28/02/2018” in to Date and compare that converted date with today date. when i convert dateStartString the converted date is "2018-02-27 18:30:00 UTC".why its output is wrong date? here is my code var dateStartString = "28/02/2018...
{ "language": "en", "url": "https://stackoverflow.com/questions/49023814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to bypass onCompleted I use BehaviorSubject to make a stream of events from different sources. Being simplified, It look like that: BehaviorSubject subject = BehaviorSubject.create(); Observable<Integer> src1 = Observable.just(1, 2, 3); Observable<Integer> src2 = Observable.just(4, 5, 6); Observable<Integer> src...
{ "language": "en", "url": "https://stackoverflow.com/questions/43427288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC4 403 forbidden error with siteminder We have a MVC4 application running on a windows server 2008 with iis 7.5. everything was running fine until out SSO team installed siteminder for single sign on. Now the application after the SSO redirect is giving a 403 forbidden error. Any Suggestions? Here's what is happ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32960063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }