text
stringlengths
15
59.8k
meta
dict
Q: How to read and connect a csv file to a sql database I am looking for ways I can take a csv file read it line by line then take selected coluns and rows and connect them to a mysql database. I have made the following code however I am unable to connect it to insert in a sql database. How can I connect this to my db ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18650268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Electron webContents executeJavaScript : Cannot execute script on second on loadURL I am testing out Electron and specifically working with executeJavaScript. My project uses a POST request to sign into a website, then does a bit of work and loads a second URL using the same session. In this second URL, I need to ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/43554536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do i find the duplicates in java array I am trying to make it so if there are any duplicates in the array, it turns true and if there is not it turns false. But, no matter what I do the if statement always turns in into false, even if there isn't a duplicate. This has to be done as a boolean. int array[] = {10,...
{ "language": "en", "url": "https://stackoverflow.com/questions/74161293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Linking a JavaScript file to HTML file not working by any means I've tried all the posibilities as described in previous similar cases and still no results. I'm adding the link tags at the end of the of the HTML and I am calling the folder where the file is placed but still nothing. </div> <script type="text/javasc...
{ "language": "en", "url": "https://stackoverflow.com/questions/59229459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Pull List of GA4 Properties Using Google Analytics Admin API and App Script Wondering if anyone has experience exporting a list of GA accounts and properties to a spreadsheet using the new Analytics Admin API. I've used the Management API for this purpose in the past but that limits us to UA properties and I want to...
{ "language": "en", "url": "https://stackoverflow.com/questions/71772152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to count the number of occurrences of a specific value in a column in SQL without doing two SQL calls I have a table: Judges(JName char(25), LawSchool char(25)). I'm trying to retrieve the number of judges that attended Harvard and the number of Judges that attended Yale in one SQL Call. I know that I could do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/40293856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Grip control in Kinect I want to use the grip control in Kinect. I cant find sources related to grip control in Kinect sdk. Does Kinect sdk provides inbuilt support for recognizing the grip movement,or we have to write our own? Is there any open source samples available for grip control in Kinect? A: The Kinect fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/16036144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: totaljs --translate command does not find all texts for translation , despite wrapped in ‘@()’ tag I followed this documentation and executed total.js --translate command in the root directory of total.js eshop app. But many words despite wrapped in ‘@()’ tag not available for translation in the created file. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57975091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I remove -fobjc-arc flag when convert to ARC? I was wanted to convert my project to ARC which is using partial files in ARC already. They are using -fobjc-arc flags in build phases, and I did refactoring(Edit->Refactor->Convert to Objective-C ARC) but those flags are still remained in Build Phase. What I am n...
{ "language": "en", "url": "https://stackoverflow.com/questions/29312049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access parent window which contains modal from iframe which opens in that modal I have an html page named parent.html which has Bootstrap accordion. By clicking a link on accordion, it calls in another page search.html and opens the iframe on a modal. search.html has a button "finish" whose functionality is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/16067515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get open window instance from a third window I have one window (in domain-1) from there I need to open a new window (in another domain say domain-2). Now in domain-2 I need to open a same window (parent of domain-1) but need to close the already opened window (which is parent). Is it possible? Flow is like: d...
{ "language": "en", "url": "https://stackoverflow.com/questions/17608573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to adjust the advance amount to corresponding bills in CodeIgniter? I need to adjust/allocate the advance amount to the corresponding bills, if it's possible. For example: Exactly advance amount is less than of invoice amount, may be if overpaid i just want to adjust the excess amount(means Invoice amt rs. 8500/...
{ "language": "en", "url": "https://stackoverflow.com/questions/24242016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a table with Silverlight for Windows Phone 7 I'd like to create a table on WP7. This is my current approach using a ListBox with a Grid as the data template. <ListBox x:Name="ResultsList" Margin="12,0" Grid.Row="1"> <ListBox.Resources> <DataTemplate x:Key="ResultsListItem"> <Grid d:D...
{ "language": "en", "url": "https://stackoverflow.com/questions/4562104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use scalajs-bundler with client only app In another question I was advised to use ScalaJS bundler to import NPM dependencies. I would like to use some Javascript NPM packages in a simple client-only web application. There is an example called static which shows this. My changes to the example: Add into build...
{ "language": "en", "url": "https://stackoverflow.com/questions/42021880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using the Live method to bind a function to dynamically created checkboxes How do I bind the following to all future instances of checkboxes that might be added to my page dynamically. I'm not sure how to use the Live() method to do this. $('input:checkbox').imageTickBox({ tickedImage: "/Content/...
{ "language": "en", "url": "https://stackoverflow.com/questions/5899126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to structure BEM modifiers with nested elements in SASS SASS + BEM is pretty much a match made in heaven most of the time, but a common struggle of mine is understand how to best define BEM modifiers on an element that affects it's child elements while using SASS parent selectors. I have the following component...
{ "language": "en", "url": "https://stackoverflow.com/questions/44450387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to using JPQL to join two tables I made employee table and position table.Every Employees have one position.I want join two table ,but I don't know how to write code. Employee.java @Table(name = "employees") @NamedQueries({ @NamedQuery(name = "getAllEmployees", query = "SELECT e FROM Employee AS e ORDER ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64410816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compatibility View and its importance I have just finished the layout for my website, and it is working perfectly fine in all browsers (Opera, Safari, Chrome, IE 7, 8, 9, 10 (both), and several others) - but this time around, the Compatibility View button in the address bar of IE 10 is appearing. This has not happen...
{ "language": "en", "url": "https://stackoverflow.com/questions/16666088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make my jQuery accordion responsive I have created this jQuery accordion and want to make it responsive on smaller screens. I know there is a way to make this responsive using CSS media query but I am wondering if there is a better way of making it responsive using JS. I am also hoping that the tabs sit on top of ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/48819500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I filter based on dict contents in a DictField on a model using the Django-MongoDB Engine? Given the models: class Post(models.Model): datas = ListField(EmbeddedModelField('Comment'),blank=True) data = DictField() class Comment(models.Model): name = models.CharField(max_length=255) date = Da...
{ "language": "en", "url": "https://stackoverflow.com/questions/9629661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Double quotes in a string C# I'm trying to read through a file and look for this tag ,<table name="File">, i've read a bunch and everyone tells me to use @""" or \" to accept the double quotes in the middle of the string, but what it does is turns my string into this. <table name=\"File\"> and it still doesn't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34748425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Looping over with FileReader only displays last image in grid of divs I am trying to create a HTML form that allows the user to upload up to 5 images. After the user selects the images (from the filesystem using <input multiple>) I'd like to display them in 5 divs (ID'ed from #contactImage0 to #contactImage4). To a...
{ "language": "en", "url": "https://stackoverflow.com/questions/57476322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MinGW DLL project compatability with linux I've recently created a DLL project using the MinGW (4.8.1) compiler through the CodeBlocks IDE, and in the debugging output folder I have: my ".dll" ("AttribRdr.dll" in this case) file with an Export Definition File and finally a ".a" file ("libAttribRdr.a" in this case). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33962765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Download remote picture in background In my project, I need to implement an Image viewer to display pictures stored on the server on an HTML Page (thumbnail first and on click on the thumbnail display the full screen picture). Currently, the server is providing me an URL (ex: https://testsrv/getImage?id=0...
{ "language": "en", "url": "https://stackoverflow.com/questions/51521535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Turn on All ec2(+ future created ec2) 'termination protection' Using Lambda Im trying to turn on 'termination protection' for all ec2. (termination protection doesn't work to spot instance, so i want to add skip condition not to make an error for spot instance.) I saw a code like below, however the code doesn't work...
{ "language": "en", "url": "https://stackoverflow.com/questions/73481175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using `if-case` format in boolean assignment in Swift? If I have the following enum defined: enum CardRank { case number(Int) case jack case queen case king case ace } I know I can use an if-let to check if it's a number: let cardRank = CardRank.number(5) if case .number = cardRank { // is a number } el...
{ "language": "en", "url": "https://stackoverflow.com/questions/46005134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is the best way to implement this SQL query? I have a PRODUCTS table, and each product can have multiple attributes so I have an ATTRIBUTES table, and another table called ATTRIBPRODUCTS which sits in the middle. The attributes are grouped into classes (type, brand, material, colour, etc), so people might want...
{ "language": "en", "url": "https://stackoverflow.com/questions/1057944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Send requests to a website from an iOS app I was wondering if there's a way to send requests to a website, directly from an iOS app, for example, I type my username and password in two inputbox and then I just tap a "login" button on the iPhone, sending the credentials to a website. Can it be done? A: You can send ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30385208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-11" }
Q: Laravel - Redirect user after login to specific page I want to redirect the user to the edit.blade page when they login for the first time. for this I made this code, but it doesn't work and i have no idea what the problem is. Can someone help me. this is the code that I have now: // This section is the only change ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52970923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: String formula for linear models I'm trying to create a string formula with the independent variables that are significant within my linear model, though I'm finding it difficult trying to include the + at the end of each variable. I have tried: as.formula(sprintf("encounter ~ %s", names(tbest$mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/66731481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBScript, purpose of colon? What is the purpose of the colon? e. g.: Dim objConn : Set objConn = OpenConnection()` Is the colon used to combine the two statements into one line? I just want to be sure. A: Yes this is correct. In VB style languages, including VBScript, the colon is an end of statement token. It a...
{ "language": "en", "url": "https://stackoverflow.com/questions/1144914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: jasmine-expect cannot find jest, jasmine v2.x, or jasmine v1.x I'm trying unit test with jasmine-expect. However I keep getting the error: jasmine-expect cannot find jest, jasmine v2.x, or jasmine v1.x I have installed the latest version of jasmine. What am I missing? package.json { "name": "js", "version": "...
{ "language": "en", "url": "https://stackoverflow.com/questions/42155942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'failed to lookup address information' error is displayed on executing selenium test using Gecko driver on Mac OS I am having tuff time on executing Selenium test in Mac OS using Gecko driver. I am using Firefox 56. Here is the code which i have used to initialize web driver. System.setProperty("webdriver.gecko.driv...
{ "language": "en", "url": "https://stackoverflow.com/questions/46674223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TensorFlow Probability: how to do sample weighting with log_prob loss function? I'm using TensorFlow probability to train a model whose output is a tfp.distributions.Independent object for probabilistic regression. My problem is that I'm unsure how to implement sample weighting in the negative log likelihood (NLL) l...
{ "language": "en", "url": "https://stackoverflow.com/questions/69886735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: BoxFit.cover does not work with CachedNetworkImage plus PhotoView In this scenario I can not make to work the fit property with BoxFit.cover. There is always borders on screen. How can I do it? Scaffold( appBar: AppBar(), body: CachedNetworkImage( height: double.infinity, width: double.infinity, fit:...
{ "language": "en", "url": "https://stackoverflow.com/questions/64935572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Awful looking custom transition I have a problem with custom transition between controllers. I have two view controllers. First is a table view controller and initiate controller is the second one. It has a button on it's top left corner which, when it is pressed, first navigation controller is called. There should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34889531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: put part of the method which returns null in other method The method storeData works fine, but I am trying to put a part of my method in another method samePosition to minimize it, but I have the problem that some of its part returns null. I put it in the other method names samePosition with return values Integer bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/30047866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UICollectionViewCompositionLayout with auto-sizing cells containing a fixed ratio UIImageView The goal is to configure a UICollectionViewCompositionalLayout for full-width cells which contain a fixed-aspect ratio UIImageView (plus some other views underneath including variable height UILabels and UIStackViews) and h...
{ "language": "en", "url": "https://stackoverflow.com/questions/65835209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: has anyone undergone certification of PCI-DSS using general purpose HSM (and not payshield)? can we utilise a general purpose HSM for EMV related work ? like ARQC/ARPC ? PCI guidelines do not specifically prohibit general purpose HSM from being used. There are certain constraints (e.g. disallow trnslation of ISO Typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72883557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Performing a WHERE - IN query in CouchDB I would like to query for a list of particular documents with one call to CouchDB. With SQL I would do something like SELECT * FROM database.table WHERE database.table.id IN (2,4,56); What is a recipe for doing this in CouchDB by either _id or another field? A: You need to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12763430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Qt SDK download for MingW I´m looking for Qt SDK for windows that uses MingW as the compiler. Unfortunately, on the official download sites, I can only find the one that uses MSVC. Or just the library instead of the whole SDK. Can anybody tell me where I can find the version I am looking for, or explain what I shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/14454745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add into map in range loop package main import ( "fmt" ) func main() { m := make(map[int]int, 4) m[1] = 0 m[2] = 0 for k, _ := range m { i := 10 + k m[i] = 0 } fmt.Println(m) fmt.Println("len:", len(m)) } This code returns: 8 or 10 or 6 as length of map after...
{ "language": "en", "url": "https://stackoverflow.com/questions/55399243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IOS Charts Labels not centered to data points. Charts Library I am currently using IOS Charts to for a line chart. This is the link to it: Link It is horribly documented and I am having trouble centering my X-Axis labels to the plots on my chart. I have already enabled granularity and set it to 1. - This ensures t...
{ "language": "en", "url": "https://stackoverflow.com/questions/44740453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Error when trying to push code to nexus maven I have found out that in order to add my code to my nexus repo I have to use mvn deploy When ran I get this error: https://hastebin.com/wikisohuni.pas I have searhced ALL over stackoverflow and online guides, but NOTHING has worked! settings.xml: <?xml version="1.0" enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/48304461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unicorn: do I need to disconnect from database in before_fork block? There is a comment that explains why you don't need to (and shouldn't) disconnect from DB and Redis in before_fork: By disconnecting in before_fork, you are closing the connection at the parent process every time you spawn a child, which is only n...
{ "language": "en", "url": "https://stackoverflow.com/questions/29918475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Set A Methods For A Class In Vue.js you know that we can use on events for a class in JQuery. for instance $(".example").click(function(){ //the process }) I am new on Vue.js and I am working on methods in vue.js Vue use v-on attr to set a method for a element. But I dont want to define attr for all elemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/31574581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to deploy Angular cli 7 app on Azure using Visual Studio code? I created an Angular app using angular-cli(node 8.12) and build it: npm install -g @angular/cli7 ng new my-app ng build --prod //inside folder i connect my visual studio code to my azure account then i create the service app and then just right c...
{ "language": "en", "url": "https://stackoverflow.com/questions/56362684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vc++ 6.0 testing an unlicensed Activex ctrl by dlg application I am using vc++ 6.0. I Have made an unlicensed activex ctrl application from app wizard (MFC activeX ctrl wizard for generating random drawing). When I am testing this Activex by ActiveX control test container, all functions are working fine, but when I...
{ "language": "en", "url": "https://stackoverflow.com/questions/17148410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refreshing the Cursor from SQLiteCursorLoader My project uses the SQLiteCursorLoader library from commonsguy to load data from a database into a ListView. Among that data is a simple boolean (as so far as SQLite supports booleans... that is, a number that only ever is 0 or 1) that tells the state of a checkbox. If I...
{ "language": "en", "url": "https://stackoverflow.com/questions/16824750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIButton not working on the first tap I made a custom switch to turn on and off sound effects in my game Optic Combat, but for some reason the button that when tapped, animates the switch moving to a different position, is not working on the first tap. Subsequent taps work, just not the first one. In the IBAction fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/14374442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the path to global node_modules folder in Travis CI I need to pass the path for the node_modules global installation folder to the mink-zombie-driver, but I can't find anywhere in the docs what's the path for it. MinkExtension requires you to pass the node_modules folder in the configuration file for Behat.
{ "language": "en", "url": "https://stackoverflow.com/questions/39756387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Column-image hover text Hello everybody out there reading my question :) I am currently working on website with a "Masonry-lookalike" home screen. There are 4x4 images with 2 different sizes and 1 image in every column is hidden. So far it went pretty good but now I am stuck on the text-effect when hovering one of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/39047325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AS3 undefined property stageVideos I have an AS3 Mobile AIR project targeting iOS and Android. For some reason when I try to access stageVideos i.e. stage.stageVideos[0]...there is NO stageVideos property available on stage?? Very strange as I've done it before. My app is using Starling and Features UI framework, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/13000407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: regex breaks when I use a colon(:) I just started working with elastic search. By started working I mean I have to query an already running elastic database. Is there a good documentation of the regex they follow. I know about the one on their official site, but its not very helpful. The more specific problem is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/55968036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add groups to asp.net dropdownlist control? I have to implement groups in asp.net dropdownlist. eg: I have a classname as dropdownlist group and students in the class as its options. How can I implement this using JqueryUI Multiselect.
{ "language": "en", "url": "https://stackoverflow.com/questions/22657207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select-Object with output from 2 cmdlets Suppose I have the following PowerShell script: Get-WmiObject -Class Win32_Service | Select DisplayName,@{Name="PID";Expression={$_.ProcessID}} | Get-Process | Select Name,CPU This will: Line 1: Get all services on the local machine Line 2: Create a new object with the Disp...
{ "language": "en", "url": "https://stackoverflow.com/questions/18255126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to insert a existing json data into new object? I have a json data is in this form [ { id: '1', name: 'Plant Director', parentJobID: -1 }, { id: '19', name: 'Operations Director', parentJobID: 1 }, { id: '16', name: 'Financial planning and costs Manager', parentJobID: 19 }, { id: '14', name: 'Cost ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37608143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: Cannot interpret feed_dict key as Tensor, need to understand sessions and graphs I'm new to tensorflow and posting this using mobile. I actually wanted the session to alive so used the following way of coding. However, in one place I can see Placeholder node existing, but error comes up saying the node ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54865209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fragment crash: IndexOutOfBoundsException: Invalid index x, size is x after updating my database Im making an app where i download the data from an api. The data is downloaded every X minutes. When the data has been downloaded, it is stored in my DB. However, the problem i have is that whenever i update the db, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33422624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why the output of the expression --- 'a' and 'e' and 'i' and 'o' and 'u' in 'eiou' --- is true? 'a' and 'e' and 'i' and 'o' and 'u' in 'eiou' true However, 'a' and 'e' and 'i' and 'o' and 'u' in 'aeio' false what is the problem? A: if 'a' and 'e' and 'i' and 'o' and 'u' in 'eiou' is equivalent to if ('a...
{ "language": "en", "url": "https://stackoverflow.com/questions/66502553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @register.filter in my code from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload" } @register.filter#<-------- def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxinput" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2080296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a dialog with custom content like android in Zebble for Xamarin? I want to create a dialog for editing some field and I need to make custom content for dialog and get the response from it to reload the Data. So, I read all content about dialog and popup in link below http://zebble.net/docs/alerts-and-d...
{ "language": "en", "url": "https://stackoverflow.com/questions/43413299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to double click any where on web page? Actions actions = new Actions(getDriver()); actions.moveByOffset(700,700); actions.click().build().perform(); actions.moveByOffset(40,0); actions.click().build().perform(); actions.moveByOffset(0,40); actions.click().build().perform(); actions.moveByOffset(0,0); actio...
{ "language": "en", "url": "https://stackoverflow.com/questions/47978658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to detect the cases that fulfill A ∈ B, but B ∉ A I have a dataset that looks like this: It show the relationship among the dataset. 1). for col1, it means: all the variables in cy1.CSV are also in the dataset "cy1.CSV", "cy24.CSV", "cy6.CSV". 2) dov.CSV: all the variables in dov.CSV are also in the dataset "do...
{ "language": "en", "url": "https://stackoverflow.com/questions/65009819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WkHtmlToPdf Unreadable Fonts I installed wkhtmltopdf in a VPS/Centos . But it seems that it cannot find the fonts (I have all type1 and fonts-75dpi installed). In php, this is the result of exec(wkhtmltopdf http://www.google.com test.pdf); A: This is the solution for Cento6 yum install libXext libXrender fontc...
{ "language": "en", "url": "https://stackoverflow.com/questions/30738963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: App icon is not showing in CallKit UI I have configured my Provider Configuration for CallKit iOS. In which I have also set 'iconTemplateImageData' for displaying app icon in CallKit UI. But app icon is not showing. It shows a white square box. Provider Configuration Code: CXProviderConfiguration *configuratio...
{ "language": "en", "url": "https://stackoverflow.com/questions/45581940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SSIS package fails when run as scheduled job but succeeds if run stand alone I've a Master package which has the scheduling of all the Jobs to run on a daily basis. Couple of my packages are failing when deployed on the server (its a file system deployment). The SSIS packages runs fine on my development machine or i...
{ "language": "en", "url": "https://stackoverflow.com/questions/26920345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mongo join two collections and use aggregation im trying to get only those products for whom no order exists, so each product has an order id, these audit tables were linked to orders, but those orders are now deleted, i need to locate those products with no orders. I know when doing aggregates if the joining collec...
{ "language": "en", "url": "https://stackoverflow.com/questions/67808764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nginx rewrites parent rules with same key in sub-files? Accessing the /etc/nginx/nginx.conf file I have the following rule: server {} http { access_log logs/access.log main; error_log logs/error.log error; include /etc/nginx/conf.d/*.conf; In another file, called etc/nginx/conf.d/custom.conf, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/69858552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is a controller not printing to console, when everything is most certainly running properly I have a main ViewController. I then added an extension (custom keyboard), and made a KeyboardViewController. In the viewDidLoad() method, I have tons of functions that are 100% running, and working properly. If I try t p...
{ "language": "en", "url": "https://stackoverflow.com/questions/41754937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wp-admin list only parent posts When admin creates a post with five custom fields I creates 5 posts with post_parent id to main post. But these 5 posts are also showing in posts listing table which I want to hide. In /wp-admin/edit.php where wordpress shows all posts (parent & child) under All/Publish I want to show...
{ "language": "en", "url": "https://stackoverflow.com/questions/20043345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XSLT: define node id I want to output some nodes. And some of them are defined as target nodes. Some are source nodes. Input is like <?xml version="1.0" encoding="UTF-8"?> <Element type="node" id="Node-a" name="a"/> <Element type="node" id="Node-b" name="b"/> <Element type="node" id="Node-c" name="c"/> ...... First...
{ "language": "en", "url": "https://stackoverflow.com/questions/22812753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSIS powershell freezes installer I nedd to add ssl certificate to https binding in IIS inside NSIS installer. Inside powershell command works perfectly: Get-ChildItem -path cert:\LocalMachine\My | Where-Object {$_.Subject -eq 'CN=WIN2012'} | New-Item 0.0.0.0!44334 But NSIS installer freezes when reach this script....
{ "language": "en", "url": "https://stackoverflow.com/questions/39640747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Monotouch how do i implement a UITabBarController as my RootViewController I'm totally new to iOS programming using Monotouch... I'm using this code to create my navigation root view. window = new UIWindow(UIScreen.MainScreen.Bounds); UINavigationController rootNavController = new UINavigationController (); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19453273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Undefined reference to a local class I've just played with qjson library and got "undefined reference" error. This is the code: #include <qjson/qobjecthelper.h> #include <qjson/serializer.h> class Person: public QObject { Q_OBJECT Q_PROPERTY(QString name READ name WRITE setName) Q_PROPERTY(Gender gend...
{ "language": "en", "url": "https://stackoverflow.com/questions/3717839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Struts 2 redirect to another jsp I use struts 2 in my java web project. I want to redirect Action success to another jsp but it's not working. Here is my code: public class ConfigurerDureeStockageAction extends ActionSupport implements ServletRequestAware{ private final static Logger logger = Logger.getLogger(Config...
{ "language": "en", "url": "https://stackoverflow.com/questions/12492785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible for a proxy server to forge it's certificate SSL Pinning? If a client receives a server's certificate typically during handshake, why can't a man in the middle attack proxy client just use the same certificate that will be sent from an authentic server? Certificates are meant to be public, if I'm not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32931224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Joint query across 2 models (has_many) Hi I need help and all insight appreciated. I have two models Auctions and Bids and I want to retrieve the All auctions current_user won, the ones s/he has been outbid on and the ones s/he's winning Here are the two models: class Auction < ActiveRecord::Base extend FriendlyId...
{ "language": "en", "url": "https://stackoverflow.com/questions/34143556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Poi-ooxml-schema source or jar for document only I am doing the document conversion using the poi. For that i am using poi-ooxml-schemas-3.9.jar which is contains sheet and powerpoint classes and beans. I want separate the document classes and bean. There is no source for poi-ooxml-schemas-3.9 so that I can't separa...
{ "language": "en", "url": "https://stackoverflow.com/questions/18628795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Url based wildcard redirect with exempted url I'm no PHP expert. Just want to know if this is possible. I'm trying to exempt a url from a php wildcard redirect but I am not able to add the exemption. I used php case switch Here's my current code. $uri = $_SERVER['REQUEST_URI']; switch($uri) { case '/admin': ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57675546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memory Leak in QWebEngineView I am trying to make a window with a QWebEngineView, and delete the QWebEngineView after the window closes. However, the QWebEngineView never seems to get deleted, and keeps running any QUrl I have loaded (e.g. a YouTube video). In my program, I have a QMainWindow with a Line Edit and a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42463581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: passing argument to DialogFragment I need to pass some variables to DialogFragment, so I can perform an action. Eclipse suggests that I should use Fragment#setArguments(Bundle) But I don't know how to use this function. How can I use it to pass variables to my dialog? A: So there is two ways to pass values from fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/15459209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "134" }
Q: Records don't load into edit page after update query I'm stumped on this one... I'm using the following code to load a record into a form for editing. The record loads fine into the fields etc. I click submit and the record doesn't reload. If I use edit_link.php?link_pk=50 in the url, the record doesn't load. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/14679538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Even if a state has been changed, but the view has not been rendered again in React / Next.js Even if a state has been changed, but the view has not been rendered again in React / Next.js. Here is my code and console.log result. As a prerequisite, I think I understand the behavior of useState, useEffect, Promise, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/70811783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't add CefSharp to my toolbox I'm currently trying to add CefSharp to my tools so that I can drag and drop a webbrowser onto my form. I installed CefSharp via NuGet in Visual Studio 2013. I then right-clicked the tools section and selected "Choose Items" In the ".NET Framework Components" I selected browse and c...
{ "language": "en", "url": "https://stackoverflow.com/questions/29999542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detect speaker/headset using AudioUnit on Mac OS X Using AudioUnit and kAudioUnitSubType_HALOutput how do I detect if the output is Speaker or Headset? A: bool usingInternalSpeakers() { AudioDeviceID defaultDevice = 0; UInt32 defaultSize = sizeof(AudioDeviceID); const AudioObjectPropertyAddress default...
{ "language": "en", "url": "https://stackoverflow.com/questions/15728513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternative to onActivityResult for startUpdateFlowForResult What is the alternative to get callback for startUpdateFlowForResult in InAppUpdates instead of onActivityResult since it is deprecated? A: We have to wait for Google Play team to migrate away from the deprecated APIs. You can follow this issue on Google'...
{ "language": "en", "url": "https://stackoverflow.com/questions/69739094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Access POST vars - Java EE Servlet How can i access my POST vars in my servlet ? I tried String login = (String) request.getAttribute("login"); String password = (String) request.getAttribute("password"); My HTML form <form action="login" class="form-group" method="POST" style="width: 300px;"> Nom d'utilisateur...
{ "language": "en", "url": "https://stackoverflow.com/questions/22183655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accordion in Asp.Net MVC using html, css and JS Trying to implement an accordion in my application. The accordion itself displays correctly but upon clicking the '+' to open up the description, this is where nothing happens. When user clicks on each '+' , the tab should open to display the corresponding description....
{ "language": "en", "url": "https://stackoverflow.com/questions/49894190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PageViewController crashes on rotation Hi I have a pageViewcontroller with some viewcontrollers inside. There ara blank controllers with one label inside Problem is that it crashes when I try to rotate it Here is the code class FAPageViewController: UIPageViewController , UIPageViewControllerDataSource, UIPageViewCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/35969610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Comparing two columns of CSV files I have a csv file with two columns. first column contains 2676 entries of host names and second column has 964 entries of host names.I want to compare these columns and print the data which is there in column 2 but not in column 1 Here is the code import re from csv import DictRead...
{ "language": "en", "url": "https://stackoverflow.com/questions/42617864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image is not drawing on canvas (HTML5) I am trying to draw an image on a canvas, in HTML5. For some reason, the image simply isn't drawn onto the canvas, and there are no errors in the console. Here is my code: <!DOCTYPE html> <html> <body> <img id="image" src="Images/player.png"></img> <canvas i...
{ "language": "en", "url": "https://stackoverflow.com/questions/59443295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring Boot fully reactive Kafka processing Is there any fully reactive, production ready Kafka support within Spring Boot ecosystem? By fully reactive I mean respecting backpressure / polling, concurrent message processing (flatMap) and handles possible failures (out of order processing errors). I did my research a...
{ "language": "en", "url": "https://stackoverflow.com/questions/58457368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find longest subarray whose sum divisible by 3 with O(N) Complexity i have big question here , if you can see below the code you will see code with O(N) complexity. im only try to decrease it to O(N^2), Im treid to do it with O(N) but without any secces . private static int f (int[]a, int low, int high) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41890051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to ignore only certain error codes for entire files in Flake8? I'm editing a Django settings file that looks similar to the following: # flake8: noqa from lucy.settings.base import * from lucy.settings.staging_production import * # This ensures that errors from staging are tagged accordingly in Airbr...
{ "language": "en", "url": "https://stackoverflow.com/questions/50918965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to allow web requests when using VCR / WebMock? I'm currently using RSpec2, Cucumber and VCR (via WebMock), and everything's working great. With VCR normally all requests are recorded and then replayed against the recorded cassettes. Now I want to allow real web requests in some scenarios: * *In Cucumber, I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/6875701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: c# : How to Monitor Print job Using winspool_drv Recently I am making a system monitoring tool. For that I need a class to monitor print job. Such as when a print started, is it successful or not, how many pages. I know that I can do it using winspool.drv. But dont how. I've searched extensively but having no luck. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3645120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parsing XML from a website to a String array in Android please help me Hello I am in the process of making an Android app that pulls some data from a Wiki, at first I was planning on finding a way to parse the HTML, but from something that someone pointed out to me is that XML would be much easier to work with. Now...
{ "language": "en", "url": "https://stackoverflow.com/questions/10767184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTTP Event Collector not working with Azure DevOps I have created a free account on splunk to test sending data to it. I am using HTTP Event Collector to send data. When I try to execute my PowerShell script on my local computer, everything is fine, but when I copy the code and I try to execute this on Azure DevOps ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73933246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting VARCHAR to Date using TO_DATE I have a set of data where the col is VARCHAR() but I need it to be in DATE format. I was trying to do it as follows: CREATE OR REPLACE TABLE df_new AS SELECT col1 AS NAME col2 AS first_name col3 AS last_name ,TO_DATE(col4, 'yyyymmdd') AS date FROM df_old but I am getti...
{ "language": "en", "url": "https://stackoverflow.com/questions/56246908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }