text
stringlengths
15
59.8k
meta
dict
Q: Dribble is producing empty output files I need to create an output file for a program in lisp, but I cannot get dribble to properly record my output. I'm using lispbox and my buffer looks like this when I try to use dribble: (dribble "output.txt") "output.txt" ... Calls to functions I defined ... I've tried entering...
{ "language": "en", "url": "https://stackoverflow.com/questions/12591432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: react-typeahead - invariant violation: addComponentAsRefTo(...) issue Node v0.12.2 React v0.13.2 Npm v2.7.4 Using the standard typeahead input causes the following error: Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref...
{ "language": "en", "url": "https://stackoverflow.com/questions/30108848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use data returned from subprocess.call without returning the entire output? def is_akamaized(url): stripped_http_url = url[8:] clean_host = stripped_http_url.rsplit('/')[0] nslookup_data = subprocess.call(["nslookup", clean_host], stdout=subprocess.PIPE) if nslookup_data.find('akamaiedge'): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35946800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add data with image in response I want to send userid with image in response. I am using httpServletResponse class for that. This is my code. I am adding data in header and image in regular body..But I want data with image in body.I dont want to add in header. Is this possible? bytes = objUserMaster.getProfil...
{ "language": "en", "url": "https://stackoverflow.com/questions/20738403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to save PDF file directly into the file without using UIActivityViewController or UIDocumentInteractionController iOS? I need to save a PDF document from URL into the device. Is it possible to save the PDF and access it from device file manager without using UIActivityViewController or UIDocumentInter...
{ "language": "en", "url": "https://stackoverflow.com/questions/53652067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: InvalidPipelineOperator MongoError: Unrecognized expression '$replaceAll' I am running following code in MongoDB: db.response_graphs.aggregate( [ { $match : { "Response_measure" : "MasksMandatory" } }, { $project : { date...
{ "language": "en", "url": "https://stackoverflow.com/questions/63982187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to differentiate usage and inheritance in a layered architecture? I'm trying to validate the following dependencies: Source In this picture, red relationships are forbidden, green relationships are allowed: * *no class in the adapter package can inherit from a class in the port package; *any class in the ada...
{ "language": "en", "url": "https://stackoverflow.com/questions/70567456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blueprism get all files contained in a root folder I have a root folder with multiple sub folders and those sub folders could have more sub folders and so on and so forth. I want to run an action and pass it the base folder and get all files that are contained in there (Even in sub folders). The Get files action onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/70033450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the Path for Call_History.db in iOS 6. Is it same as that of iOS5? I am new at iPhone development. I want to access iOS6 call_history. My code work for iOS5 but not work for iOS6. please help me to solve this problem. Many Thanks. A: You cannot access the call log using the SDK and approved APIs. There are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19654495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python: Loop not giving desired result So I'm trying to write a code that simulates a predator and prey situation where it starts off with a low population of predators and high population of prey. Over time the predator population grows while the prey population shrinks until the prey population is too little to su...
{ "language": "en", "url": "https://stackoverflow.com/questions/40791807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing unit tests with QTestLib this is my first step into the world on unit-testing so please be patient. I'm writing a Qt 4.8.1 C++ program and as test framework I'm using the integrated QTestLib. I should test a class that inhrerits from a base one and that loads a certain XML file to read and parse it later wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/12030534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Property list in a Model property couldn't be mapped while trying to migrate I'm setting up a migration in an MVC5 that has a Model that's called "Order" with 3 properties, one of them is a class of PizzaModel. PizzaModel has the code below, what I'm trying to do is to enable multiple instances of pizzas in a single...
{ "language": "en", "url": "https://stackoverflow.com/questions/57344222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flutter : stack & Ink overlay I am using a Stack to recreate this effect : But for some reason, using the Ink widget to be able to get the gradient effect, this is what I have : This is my code : Stack( children: [ SizedBox( height: 100....
{ "language": "en", "url": "https://stackoverflow.com/questions/63493092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: There is a way to use not operator in regex when ^ inside bracket is not an option? I went through dozen of already answered Q without finding one that can help me. I have a string like this: aaa.{foo}-{bar} dftgyh {foo-bar}{bar} .? {.!} -! a}aaa{ and I want to obtain a string like this: aaa{foo}-{bar}dftgyh{foo-ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/25828554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: My table won't show the border i defined in css I'm trying to edit the borders of my table in css but the border's won't show. Here's the code : .midden { text-align: center; } .lijstje { list-style: inside; text-align: left; padding-left: 40%; } .naamkolom { background-color: lightgreen; fon...
{ "language": "nl", "url": "https://stackoverflow.com/questions/32487012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PIG Group by avoid Bag This is a basic PIG question. I have my data something like this 10 | Dog 15 | Cow 20 | Dog 15 | Elephant 15 | Dog 25 | Elephant I want to find the average weight of each animal and have the output as this : Dog | 12.5 Elephant | 20 Cow | 15 I am able to use GROUP by and get the result, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/46700084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to get data from child form into selected Parent DataGridView Cell I have been stumped on a programming issue. When I right click on a cell of a DataGridView object, a context menu will show. From that context menu, a user can click an option. That option will show a form. When the user is finished, the resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/24808329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why when I merge 2 pdf files with `gs` (ghostscript) the identify command cannot get the page count? This my gs command than merges 2 one-page pdf file: gs -dNOPAUSE -dSAFER -sDEVICE=pdfwrite -sOUTPUTFILE=/tmp/blahblahblah.pdf -dBATCH page1.pdf page2.pdf And this is the output: GPL Ghostscript 8.70 (2009-07-31) Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/40818839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to block ip Ranges using http modules? How to block Ip ranges using http modules with c# . I have a simple solution but its for single Ip and How can I read IPs from xml file in http modules so that if an IP is there in that file it will be blocked .Here is my code public class MyHandler :IHttpModule { publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/10358813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disable other checkboxes in a GroupBox when two are checked Private Sub AllBoxes_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged, CheckBox2.CheckedChanged, CheckBox3.CheckedChanged, CheckBox4.CheckedChanged, CheckBox5.CheckedChanged, CheckBox6.CheckedChang...
{ "language": "en", "url": "https://stackoverflow.com/questions/42454862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Cannot access XML Document using simplexml_load_file() I NEED HELP! I'm trying to generate XML document from my website database in hosting provider and accessing it from my home PC, right now I'm doing it in localhost environment. I use these codes and I got error message in browser. Please take a look at my codes...
{ "language": "en", "url": "https://stackoverflow.com/questions/22752522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Referencing the current jQuery object in a chain? At DevDays in SF last year (before jQuery 1.4 was released), I thought they mentioned an upcoming feature in 1.4 that would allow you to reference the current jQuery object while in a chain. I've read through all of the 1.4 improvements and wasn't able to find it. Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/2647597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Image Upload Fails I'm trying to upload an image from my phone to a server. So I get the image uri and create a NameValuePair with it. I then use the following Android code to get a connection and upload the pic. This was taken from previous stackoverflow question(I would link but can't find it even with Goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7309222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RPN stacking method not working with converted string arrays I'm trying to make a program that processes a line of rpn expression through a stack method. The input is a string array that is converted from a string input. String[] collect = "8 6 + 2 /"; //the String line; //the inputed line collect = line.split(" ");...
{ "language": "en", "url": "https://stackoverflow.com/questions/70252174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Paypal recurring payment IPN usage I successfully create a listener and it is working well if I am using the IPN simulator. However, when I am doing the payment request in the process of payment, I set the same listener url for the notify_url, nothing happens even the process working properly. How can I know if some...
{ "language": "en", "url": "https://stackoverflow.com/questions/16235962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: How can I find the heading of the road using Google Maps API? I wrote a program in python that takes in a starting point and end point and then uses google maps API to create a gif of the route using google street view. Everything works perfectly I just can't find a way to get the bearing/heading of the car....
{ "language": "en", "url": "https://stackoverflow.com/questions/45390991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android lint custom check UCallExpression type of method receiver I'm writing custom lint check to ban some methods. So if someone calls banned method foo on instance of class A, lint should report error. I achieved this for static methods like this (inside visitCallExpression(UCallExpression): node.receiver as URef...
{ "language": "en", "url": "https://stackoverflow.com/questions/53847469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sphinxsearch-0.9 in mediawiki-1.32.0 error 2019/01/14 12:04:51 [error] 21549#21549: *3558 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class SphinxMWSearch contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (SearchDatabase::doSearchTextInDB, SearchDataba...
{ "language": "en", "url": "https://stackoverflow.com/questions/54195774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android App actions issues when English Articles are used as a part of speech We have implemented android shortcuts. Testing of App actions on physical devices was fine, except for an issue with English Articles. When English Articles appear as a part of a statement, the statement is not recognized as an action, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/73200296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: htaccess redirect .PDF for Prevent Direct Access but visible in internal viewer I'm developing with a small web-based project with WordPress which contains a lot of PDF files. What I'm looking for is to close the direct access to PDF files, like in https://sciami.com/scm-content/uploads/2018/06/myfile.pdf and redire...
{ "language": "en", "url": "https://stackoverflow.com/questions/51994257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter custom post types by Post Object Custom Field I have post types named "tour" and "country". "tour" post type has some custom fields and type of one of them is Post Object and filtered by Post Type "country". Now I want to show tours filtered by a specific country, for example: $located_tours = get_posts(array...
{ "language": "en", "url": "https://stackoverflow.com/questions/36809196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel Controller beforeFilter not working as expected My controllers constructor looks like function __construct(MessageRepository $message) { $this->beforeFilter('canViewThisMessage', array('only', 'show')); $this->message = $message; $this->pagesize = 8; $this->pageTitle = 'messages'; } and I ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/26127991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: html5shiv.js and respond.js without Bootstrap 3 <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"...
{ "language": "en", "url": "https://stackoverflow.com/questions/34074418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setColorFilter not working with resource color If I use setColorFilter like this, it works and paint my image with the chosen color: int color = Color.parseColor("#FF0000"); viewHolder.Icon.setColorFilter(color); But if I try to use a resource color, it does nothing: viewHolder.Icon.setColorFilter(R.color.colorPri...
{ "language": "en", "url": "https://stackoverflow.com/questions/33577151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Joss eap 6.4 upgrade to 7.2 :javax.persistence.spi.PersistenceProvider: Provider org.eclipse.persistence.jpa.PersistenceProvider not a subtype Jboss eap 6.4 upgrade to 7.2 deploy ear error {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"WLS_DOM_SPS.ear\".FIRST_MODULE_USE" => "WFLYSRV0153: Failed to proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/60862948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook SDK (Require "Like" for access) I only want people that like'd our Facebook page to access a specific section of the site. But i'm relatively new with the Facebook SDK. Is there a way to check whether someone liked our page? If not possible with SDK are there other reliable ways to do so? A: Like-gating is...
{ "language": "en", "url": "https://stackoverflow.com/questions/30936120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to produce and consume JSON messages between Django services using Redis as a message queue? I am trying to find a way to enable communication between two Django services using Redis as a message queue. One service would produces JSON data, publish it to the queue and the other one would consume the message. Som...
{ "language": "en", "url": "https://stackoverflow.com/questions/68880693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: xsl 1.0 Group by with comma separated items I have a XML similar to this <profiles> <profile> <customer>customer a </customer> <collateral> <summary>summary a</summary> <related> <solutions>sol1,sol2</solutions> </related> <collateral> </profile> <profile> <customer>customer b </customer> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7896730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to unload dynamic text once its loaded in Actionscript 3? I'm enlisting your help on how to unload text that dynamically loaded through a text file in Actionscript 3.0. I have managed to load the data to my stage, but I want that when the user hits the back button to go home, the data vanishes. At th...
{ "language": "en", "url": "https://stackoverflow.com/questions/32925889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can Tensorflow/Deep Learning be used for Gradient Boosted Trees, Logistic regression? Tensorflow and deep learning has mostly been used for Image Processing (Classification, Identification), NLP, Voice and text processing. I have used Spark MLLIB and Mahout in the past? Tensorflow has examples of Deep Neural Network...
{ "language": "en", "url": "https://stackoverflow.com/questions/45498952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Join one array with multiple index php How to join 2 arrays with multiple index into 1 array ? I have array like this Array ( [0] => Array ( [wd[wd5][amount]] => 1.00 [wd[wd5][address]] => 1BitcoinAddress [wd[wd5][currency]] => BTC ) [1] => Array ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46567674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I sync my maven artifacts to jcenter? I have deploy my fist version to the maven central repository. Now I want sync this to JCenter / Bintray. Is this possible and how can I do this? A: Yes, all you need to do is just download your artifacts from JCenter. On a related note, I'd suggest doing it the other w...
{ "language": "en", "url": "https://stackoverflow.com/questions/30415303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ICE Faces fileInput file path and file name properties I'd like to utilize an ICE Faces fileInput control to fill in the file path & file name for the input to an input field on a web page based on file that the user selects. How can I capture these properties without actually performing any file transfer operations...
{ "language": "en", "url": "https://stackoverflow.com/questions/9361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to download a file from a VDI (citrix workspace) Artifactory through Python I have a question regarding VDI, Artifactory, and Python. I wanted to download an artifact that I have tested inside the VDI with the command: curl https://artifactory-aaaa.company.com/artifactory/artifacts/browse/tree/General/thedirecto...
{ "language": "en", "url": "https://stackoverflow.com/questions/70923881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data selection/Row selection I have a scenario where I have to write a SQL query where I consider only the negative values for selected date. how to achieve the output what i want is to convert all non negative numbers to zero for a particular date. In this case 2021. A: You seem to be looking for a conditional ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62053347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP batch extract DB row BLOBs to files We are in the midst of a data migration , and the project needs from one particular table BLOB data saved to files, and sent to the vendor, due to their structure I am able to achieve this one at a time, but needed to create a batch process, as there are 50,000 rows/potential ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6387098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Efficient way to get median in a unindexed table I am trying to find median salary in this table. Is there an aggregate function like AVG() to find a median in an unindexed table efficiently? Thanks. id | Salary ----------- 1 300 2 250 7 180 8 150 9 150 10 160 11 180 15 140 A: There is no MED...
{ "language": "en", "url": "https://stackoverflow.com/questions/64930655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Analytics API - Integration With Symfony2 I am trying to gain access to Google Analytics API through OAuth2. What i did: * *Open developers console > APIs and Auth > Credentials *Create a new Client ID *Generate p12 key *Copy the key on the server *Open google analytics page > admin > Account > User Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/29490459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Merge two directories keeping larger files Consider for example mkdir dir1 mkdir dir2 cd dir1 echo "This file contains something" > a touch b echo "This file contains something" > c echo "This file contains something" > d touch e cd ../dir2 touch a echo "This file contains something" > b echo "This file contains s...
{ "language": "en", "url": "https://stackoverflow.com/questions/40370154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to instruct user to capture a clear or better image of a document.? I am working on an app where user needs to click an image of a document and upload and server will do the further processing of doing OCR and extracting specific data from it. OCR and data extraction completely depends on the im...
{ "language": "en", "url": "https://stackoverflow.com/questions/45791594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I change the data type in an HDF5 file from MATLAB? I have a HDF5 datafile that has an array of int32 data values. I wish to change the data stored in that array to different values which are of a different format (double). for example I can query the data type with the following: finf=h5info('file.hdf5'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17994790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Plotting multiple probability distributions in a single graph in R I tried to plot probability distributions from different sources in a single plot. I used the following codes. require(ggplot2) require(ggfortify) p<- ggdistribution(dbeta, seq(0,1,0.01), shape1 = 1.777409 , shape2 = 2.7947, fill ='blue') p<- ggdistr...
{ "language": "en", "url": "https://stackoverflow.com/questions/74240982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error: Can't set headers after they are sent Node.js and ExpressJS I am using Node.js and ExpressJS to save a mongoose model. I am getting the error of Error: Can't set headers after they are sent. I think it has to do with the line res.redirect("/dashboard/it/model"); conflicting with setRedirect({auth: '/login'}),...
{ "language": "en", "url": "https://stackoverflow.com/questions/46778762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sqlite3.Binary gives TypeError: buffer object expected I have a list which I extracted from a txt file as follows: authors = re.match('#@(.*)', line) if authors: authors_list = authors.group(1).split(",") Now I need to insert these into my database, which should be done as follows: for a in authors_list: c.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/29613718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: react conditional component rendering I'm currently trying to create a React component to upload and crop an image using Croppie library. I've found this code sample import "croppie/croppie.css" import { Button, Grid } from "@material-ui/core" import * as React from "react" import Croppie from "croppie" export func...
{ "language": "en", "url": "https://stackoverflow.com/questions/67413783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: clean-webpack-plugin only accepts an options object I'm getting Error: clean-webpack-plugin only accepts an options object. See: https://github.com/johnagan/clean-webpack-plugin#options-and-defaults- My Webpack.config.js file looks like this: const path = require('path'); const webpack = require('webpack'); co...
{ "language": "en", "url": "https://stackoverflow.com/questions/55190450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Some more advanced recursion I've been looking around for awhile now, and I haven't found anything that helped me. I have to write a program that uses one method (the main method) to read in the size of/and elements of an array. Then I must write a recursive method titled "forwardsEqualBackwards" which returns true ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13620830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Simplify and summarize data table in R One of my data set is as follows name alias (list of alias) x c("R","V","Q") y "Z" q c("A", "R", "M") w c("C","A","R") I would like to first simplify the table as follows name alias x "R" x "V" x "Q" y "Z" q "A" q "R" q "M" w "C" w "A" w "R" and l...
{ "language": "en", "url": "https://stackoverflow.com/questions/27031776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert NSDictionary to custom object I have a json object: @interface Order : NSObject @property (nonatomic, retain) NSString *OrderId; @property (nonatomic, retain) NSString *Title; @property (nonatomic, retain) NSString *Weight; - (NSMutableDictionary *)toNSDictionary; ... - (NSMutableDictionary *)toNS...
{ "language": "en", "url": "https://stackoverflow.com/questions/21329793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How am I supposed to use the -audiodev option in QEMU? There is a thread Fwd: How am I supposed to use the -audiodev option?, but unfortunately it does not contain an answer. I use QEMU on Windows, and when I run my image in QEMU qemu-system-arm.exe , I get: dsound: Could not initialize DirectSound dsound: Reason: N...
{ "language": "en", "url": "https://stackoverflow.com/questions/75317906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to replace a sentence with space on the basis of a pattern if it occurs in the middle of a sentence Suppose I have a line like this: aaaa ---- bbbb I want to erase the ----bbbb part, but I want to keep the aaaa part as it is in the file. How can I do it? A: Using sed: s='aaaa ---- bbbb' echo "$s"|sed 's/--* bb...
{ "language": "en", "url": "https://stackoverflow.com/questions/22602632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use API Key in Google Speech grpc Java library How do I use an API Key in Google Speech grpc Java or any other library. For HTTP request I am able to see that we can append key=API_KEY as mentioned in https://cloud.google.com/docs/authentication/api-keys. But for the given libraries (https://cloud.google.com/...
{ "language": "en", "url": "https://stackoverflow.com/questions/46112170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check size(variable) of all string in List using Java Stream I have a list of strings (given below), each string required to be in a specific size(Variable). for e.g. {"abc","xyz","def"} this list elements has a fixed size of 3 and i would like to check if this size is not exceed to X=3 or 4. Requirement is to retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/62535954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: html2canvas is not working in Safari browser: Taking Screenshot I just want to take a screenshot of any HTML element ( "container" div in my case ). it works fine in Chrome and Firefox browsers but not in Safari. Following is how I am doing it: <!doctype HTML> <HTML> <head> <script type="text/javascript" src="as...
{ "language": "en", "url": "https://stackoverflow.com/questions/70800095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make multiple tkinter buttons to press together while as user presses any one of them? how to make multiple tkinter buttons to press together while as user presses any one of them? To be clear i want multiple tkinter buttons look like pressed at the same time user presses any one of them . i tried this: from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69440204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Receiving "error: conflicting types for 'function'" I am creating a program to convert from binary, decimal, hex, and oct to any one of those options. For hex, I need a way to format values greater than 9 into one of A, B, C, D, E, F. Since this will be repeated in several functions, I decided to make the followin...
{ "language": "en", "url": "https://stackoverflow.com/questions/12992505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using sed inside php script is causing unexpected T_STRING error I'm adding a line to my php script: exec('sed -i 1i'MAILTO=""' /var/spool/cron/' '.$clientName.'); But it shows me an error: PHP Parse error: syntax error, unexpected T_STRING in /home/admin/myproject.pl/newclient/main.php on line 368 Parse error: s...
{ "language": "en", "url": "https://stackoverflow.com/questions/9743989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to center align a number in a diamond? I'm trying to center align this 1 in the diamond, but I can't figure out how to. Is this even possible? Please help... .num { width: 0; height: 0; border: 15px solid transparent; border-bottom-color: pink; position: relative; top: -15px; text-alig...
{ "language": "en", "url": "https://stackoverflow.com/questions/68577859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Am I able to complement a virtual function of subclasses? i have a question. Lets say i have this virtual function in main class: virtual void h_w() { cout << "Hello, wolrd!" << endl; } And Im doing with the same function that: void h_w() { cout << "Today is: " << math.rand(); << endl; } Am I allowed to do that? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/41452414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Is there a way to work with arrays and use Protege I am trying to perform the functions on arrays such as inverse of and transpose on matrices and use it along with Protege so as to calculate the forces and deflections using reasoner. We can perform the calculations using SWRL rules in ontology but it does not suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/44526428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Associating ViewPager with navigation tabs Is there any way to associate each fragment in the ViewPager with a certain navigation tab? So when we flip right/left ,the right tab will be highlighted. Thank you. A: Use TabLayout from the Material Design support library. See the "Tabs" paragraph in the blog post that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31140863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keep XML namespaces after split or grep I have a huge xml-file (several GB) which I can split with xml_split or I can extract the relevant subbnode with xml_grep. I run out of RAM if I try to read the whole XML. But when I try to parse one of the splitted files, or the grep:ed file, I get the error "Namespace prefix...
{ "language": "en", "url": "https://stackoverflow.com/questions/22708031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I remove the JSON-LD schema that Yoast adds to my WordPress site? I would like to remove the JSON-LD schema that Yoast applies to my WordPress site so that I can add my own. I have already added my own, and Google Structured Data Testing says that it is OK, but basically I have 3 separate JSON-LD schemas instea...
{ "language": "en", "url": "https://stackoverflow.com/questions/38619924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JQuery not rendering HTML I am using $.get() in my ASP.NET MVC 3 application to get a response from database asynchronously. I get the response returning correctly and based on the response I generate my HTML in a string variable and finally append it to a div already on my markup page. In debug mode it shows me the...
{ "language": "en", "url": "https://stackoverflow.com/questions/6449748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The Intercept of a categorical multiple regression R is not the mean value? Let's say I have 2 (categorical) variables and one continuous: library(tidyverse) set.seed(123) ds <- data.frame( depression=rnorm(90,10,2), schooling_dummy=c(0,1,2), sex_dummy=c(0,1) ) When I regress depression on sex (0 or 1), the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/48621624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I count the words and expressions in a text? I want to count how much times some given words or phrases appears in a text, but I want use some string similarity algorithms. Every word or expression has an value, so I will set the relevancy of the text according to the number of words found, etc. I guess that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/6848869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Not able to serve media files in django I am trying to create an online music player. I was trying to play a song in django. But it was not able to play since it was not able to detect the audio file. I have set up the media in django as I read on the internet but it's not working. Here is the screenshot of my proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/40386006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Joomla ZOO item counter I'm using joomla 3, zoo component. In the backend of the system i have this code to display numbers of items in the every zoo application installed: <?php echo $application->getItemCount(); ?> What i need is to edit this code to display only numbers of items that are "published". I'm not sur...
{ "language": "en", "url": "https://stackoverflow.com/questions/25761764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What extension for underlining html in visual studio code editor? I need something like this (i have in bracket editor) but I don't know its come from which extension. A: There is a extension for that. Simply search for "highlight-matching-tag" in the extension tab or download it here: https://marketplace.visuals...
{ "language": "en", "url": "https://stackoverflow.com/questions/47964749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a new metastore? I want to configure Unity Catalog and one step is creating a metastore in the region where I create databricks workspace (I am on Azure). I created a workspace with a premium pricing tier and I am the admin. Following the documentation, I should go to the Data tab to create metastore. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75483215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ProductName hides System.Windows.Forms.Control.ProductName I have a property ProductName in my Form. I am getting warning while compiling the code. FormInventory.ProductName hides inherited member 'System.Windows.Forms.Control.ProductName'. Use the new keyword if hiding was intended. below is my code public partial ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11733253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: vector in C++ can only read the last element I add several element to the vector, but when I visit them, they are all the one which is added at last. I can't understand. here is my code: while(true){ cin>>shape; if(shape=='X') break; if(shape=='C'){ cin>>x>>y>>r; Circle c(x,y,r); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40848059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Is ~~ a short-circuit operator? From the Smart matching in detail section in perlsyn: The smart match operator short-circuits whenever possible. Does ~~ have anything in common with short circuit operators (&&, ||, etc.) ? A: The meaning of short-circuiting here is that evaluation will stop as soon as the boole...
{ "language": "en", "url": "https://stackoverflow.com/questions/5909430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Site doesn't scroll smoothly (HTML + CSS) I'm creating a site using HTML and CSS for a school project (there's no JS involved). I use a Smooth Scrolling addon on Google Chrome, but the page doesn't scroll smoothly like every other page on the Internet does. Instead, it scrolls in blocky chunks down the page. JSFiddl...
{ "language": "en", "url": "https://stackoverflow.com/questions/25759264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run separate nodejs file from PhantomJS / CasperJS I'm trying to execute a nodejs script from CasperJS. This should be possible from the PhantomJS childprocess library. But it doesn't seem to be working for me. It's not giving any errors, but it's not executing the node script either. Because that script sends out a...
{ "language": "en", "url": "https://stackoverflow.com/questions/32186199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Map Projection is not working as expected when zoom level is not the same I want to show the user location on top of the drawer that I have in my app instead of center of the map since the drawer covers part of the map : fun centerMap(height: Int, drawerHeight: Int) { LocationDataProvider.location?.let { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74178336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - Failed to Open Stream Error (no such file or directory) I have following directory structure for the project: Home.php simply includes either of the two views i.e. login or invoice depending upon the session variables. if (!isset($_SESSION['username'])) { include 'views/login.php'; } else ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31386167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yajra laravel datatables oracle disable escaping string How to disable escaping string in yajra/laravel-datatables-oracle? version: "dev-master" http://take.ms/hKGEI A: I found the answer to your question. After updating yajra/laravel-datatables-orakle package to version 7.* - All columns escaped by default to prot...
{ "language": "en", "url": "https://stackoverflow.com/questions/41888450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Software PDR - how to explain the code by PDR ( preliminary design review) with clock/diagram I am trying to write PDR for the first time. I have the follwoing important blocks/parts which I want to demonstrate in the PDR by blocks or diagarm (e.g UML). * *A job's queue which I add a new job (estimation job). *T...
{ "language": "en", "url": "https://stackoverflow.com/questions/36691536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Openpyxl - I can't set cell format and sum values correctly in time format (h:mm) openpyxl version 3.0.7, python version 3.8.8 I’m trying to format cells as hours:minutes. From reading the openpyxl doc’s re formatting numbers: https://openpyxl.readthedocs.io/en/stable/_modules/openpyxl/styles/numbers.html FORMAT_DAT...
{ "language": "en", "url": "https://stackoverflow.com/questions/68739858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I include formulas in a struct somehow? I am trying to create a struct which uses a formula to automatically create data in one of the struct fields when the other two values are entered. For example, I want to create a 2D rectangular room with Length and Width which are values that are entered. I would then lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/58577649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring AOP - proxying object returned from method In this example: public class ConnectionPool { public java.sql.Connection getConnection() { ... } } @Bean @Scope("singleton") public ConnectionPool connectionPool(...) throws Exception { return new ConnectionPoolImpl(...); } I want to monitor calls to...
{ "language": "en", "url": "https://stackoverflow.com/questions/43983439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Classify each case in dataframe with significant groups (or clusters) in stratified data I am needing to cluster (perhaps k-means) a dependent variable (Value) considering stratification by two independents (Country; Year); and at the end classify each df case (example top, middle and bottom). df structure: df <- st...
{ "language": "en", "url": "https://stackoverflow.com/questions/73534229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ignoring leading whitespace when manipulating standard one-dimensional arrays We have to read from a file in this case called small.txt. The contents of the file look like the following: NOT 11010011 AND 10010010 11001110 OR 10011001 11100101 CONVERT 10010110 LSHIFT 11001101 3 WRONG 01010100...
{ "language": "en", "url": "https://stackoverflow.com/questions/13353821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JNI Global reference to PacketWriter in smack library, how to identify the cause JNI Global referece? I am using smack library to connect to Facebook XMPP server. In my local enviroment debug mode, memory leak sometimes happened. I have: * *checked the heap dump, *found that JNI Global reference always referred...
{ "language": "en", "url": "https://stackoverflow.com/questions/13707491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails/ruby "and return false" syntax I've seen this code in a rails tutorial I'm doing def access_denied redirect_to login_path, :notice => "Please log in to continue" and return false end Before learning rails, I did a large amount of ruby research and none of the books I read covered this "and return false" syn...
{ "language": "en", "url": "https://stackoverflow.com/questions/8825396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is there a way to compare four sets of lists and retrieve the exact value? I have a small large problem. Basically, I have some sets of lists that I need to compare and extract the value from it. brand = ["brand_1", "brand_2"] search_type = [4, 10] brand_search = ["brand_1", "brand_2","brand_3"] value_search = ["va...
{ "language": "en", "url": "https://stackoverflow.com/questions/73410600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I compare a char array from a class with another char array using the overload == operator? I have a class called Airplane with a private data member thats a char array. // char array variable in my class char* name{nullptr}; my goal is to compare for equality this variable and an input variable of type cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/63145955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hiding/Reshowing jQuery Dialogues I'm trying to open a jQuery dialog using AJAX. The content of the dialog is loaded from a querystring and contains server controls inside a form tag. I have a GridView where a link in each row spawns the dialog. The first time, the dialog loads fine, but subsequently I need to open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7207058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Providing a common interface to SVN and CVS SVN and CVS are two very different systems that aim to address the same basic issue - source control. They both work in distinct ways, so it's probably difficult to deal with them exactly the same. What I'm wondering is, would it be conceivable to develop a programming lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/313082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }