text
stringlengths
15
59.8k
meta
dict
Q: Firebase push notifiaction not working when app is closed on some devices I'm trying to send push notification from my app server to my app using Google cloud Messaging the app working well on Android Emulator but some devices not getting notification here is FCMMessagingService.java public class FCMMessagingServic...
{ "language": "en", "url": "https://stackoverflow.com/questions/42599425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing objects with differing fields in a DB my situation is this: I have similar objects that differ in certain fields. Example: object1: - name:'Albert' - home:'London' - email:'albert@corp.co.uk' object2: - name:'Jennifer' - home:'Berlin' - tel:'00492212232' object3: - name:'James' - data:BIG_CHUNK_OF_BINARY_D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7993977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having trouble getting Admob test banner to display on app I'm trying to implement Google Admob into my app but the test banner isn't even displaying. I've managed to get rid of all debug error messages but still get nothing being display. Could it be hiding in the background? This code is implemented in my OnCreate...
{ "language": "en", "url": "https://stackoverflow.com/questions/61979648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: postgresql merge dump from production to test server; add only new records i want to merge dump from production to test server database, to test few things, til now i always dropped current database, and restored everything from dump, but problem is that database is rather large to do this everytime (~90gb in databa...
{ "language": "en", "url": "https://stackoverflow.com/questions/61729007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What should be the input-shape number when i am adding the input layer in my ANN, considering that I have preprocessed the data with OneHotEncoder? My dataset has categorical and numerical features. The dataset has 7 independent variables and 1 dependent variable (called as a product). The dataset looks like this: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63568689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: jQuery select first accordion in each tab I have a page that uses jQuery tabs. Each tab contains one or more jQuery accordions, which are generated dynamically, in addition to other stuff. Example: <div id="tab1" class="tab"> <div> Some stuff </div> <div class="accordion"> I am an accordi...
{ "language": "en", "url": "https://stackoverflow.com/questions/14905430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to use glyphicon images net core I am trying to migrate .NET MVC web app to .net core I did put my assets in the wwwRoot folder as such: Now the content folder includes the bootstrap. I am able to load the bootstrap.css but it is not finding the images Here is the difinition of font-face: here is my startu...
{ "language": "en", "url": "https://stackoverflow.com/questions/62970156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: 405: Method Not Allowed after update to Spring Boot 1.3.0 I have setup an Authorization- and Resourceserver which both running within the same application. The setup is running fine with spring boot 1.2.6.RELEASE and spring security oauth2 2.0.7.RELEASE. After an update to spring boot 1.3.0.RELEASE (no matter if spr...
{ "language": "en", "url": "https://stackoverflow.com/questions/33975226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Special Unicode Characters are not removed in Python 3 I have a keys list including words. When I make this command: for key in keys: print(key) I get normal output in terminal. but when I print the entire list using print(keys), I get this output: I have tried using key.replace("\u202c", ''), key.replace("\\u2...
{ "language": "en", "url": "https://stackoverflow.com/questions/45046341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: connect in qt using two different classes I want to connect a signal and a slot from two different classes in which one is using the other like this example: form.hpp class Form : public QDialog { Q_OBJECT public: explicit Form(); public slots: void onPushButton(void); }; form.cpp Form::Form() : ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51309144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Applying additional oauth scopes in an omniauth initializer I am trying to apply the coinbase wallet API with oauth to use its send functionality. I have been able to connect to the API and use its endpoints, but whenever I try to use the send functionality, I am thrown the error Invalid amount for meta[send_limit_a...
{ "language": "en", "url": "https://stackoverflow.com/questions/44687727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python assignment with AND and OR I am not much familiar with python. and I am write now looking into one code from python and it says something like this: query = url.query and ('?' + url.query) or '' can anyone help me understand what this means. I found something similar here. but I couldn't interpret the above...
{ "language": "en", "url": "https://stackoverflow.com/questions/30788837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When to use second level cache in hibernate I know how first and second level cache work in hibernate. But I would like to know 1.when will be the first cache used and when will be the second *how are the objects stored in the first and second. Do the second level maintains a copy same as first A: The 1st level...
{ "language": "en", "url": "https://stackoverflow.com/questions/38549627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Script: Auto-trigger - if a new entry flags serious issue, spreadsheet emails admin for inspection I am pretty new to scripting. Please forgive, if I've missed an obvious step. I've searched through stack overflow, and my simple problem is not clearly mentioned. We have a fleet of vans. The drivers enter issu...
{ "language": "en", "url": "https://stackoverflow.com/questions/64486851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ Event queues, variadic functions, static functions and other strange stuff after yesterday's rip-roaring thread at How to implement a simple event queue? , I decided to finally make the big leap to c++11. Just before c++14 comes out probably... Anyway, it occured to me that variadic functions are the perfect wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/26196383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can someone confirm my isolation level understanding please There are Five Isolation levels summary is mentioned below… Please correct me if I am wrong : - * *Read uncommited. In this level we can read dirty pages and chages can be done(DML statements like Insert and Update) on the rows even when records are not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30481280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Bug in VC++ 14.0 (2015) compiler? I've been running into some issues that only occurred during Release x86 mode and not during Release x64 or any Debug mode. I managed to reproduce the bug using the following code: #include <stdio.h> #include <iostream> using namespace std; struct WMatrix { float _11, _12, _13,...
{ "language": "en", "url": "https://stackoverflow.com/questions/39209578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Trying to flush database upon app reinstall - Titanium alloy Here is my code: if (!Ti.App.Properties.hasProperty('installed')) { alert('This is my first run'); //check first installed Ti.App.Properties.setBool('installed', 1); //store version number in Ti.App.Properties Ti.App.Properties.setSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/24521009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio: DLL locations for release I have a project that I am working on that references a "Common Library (DLL)". In the DevEnv it works fine, however if I build and try to organize my files it doesn't work. Basically if I have things setup like so: * *C:\Program Files\MyApp\MyApp.exe *C:\Program Files\My...
{ "language": "en", "url": "https://stackoverflow.com/questions/3561099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm a prolog newbie and I'm stuck in a program Goal: Apply a loop in the above given code so that it will ask, “Do you want to continue? (Y/ N)” and then act accordingly. (Hint: make a predicate ‘again/0’ for doing above task). go:- write('What is the name of Patient?'), read(Patient),nl, hypo(P...
{ "language": "en", "url": "https://stackoverflow.com/questions/22141279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can't get this query to work. Mysql update select another query then update UPDATE `tombaldi_2bj3de9ad`.`catalog_product_option_type_value` SET `catalog_product_option_type_value`.`option_id` = '72' WHERE `catalog_product_option_type_value`.`option_id` IN (SELECT `catalog_product_option_type_value`.`option_id` FRO...
{ "language": "en", "url": "https://stackoverflow.com/questions/22849396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run Ajax from java script function in tpl file PRESTASHOP Im working on a PrestaShop payment method and I have a tpl page with a button and a div which is hidden. On the button click, I want to execute an ajax function and show the div on success, but its not doing anything. HTML Elements: <input id="showVerifCode" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68194803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extremely simple Swift signal SIGABRT I fail to understand why my app is giving me a Thread 1: signal SIGABRT error. I basically have a text field that I only want to be numbers, do a calculation when the button is pressed an put it in the other label. I had more code around it with more boxes and buttons and sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/47837797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement input JSON validation in Grails? What is the correct way of implementing request body (JSON, XML) sent with POST or PUT method in Grails framework? In Spring there is a @Valid annotation used to annotate method's argument and a bunch of field annotations (@NotNull e.g.) and exception mapper used to...
{ "language": "en", "url": "https://stackoverflow.com/questions/23228607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Vista services: Can show form on invisible desktop? I am attempting to show a form from a service on Vista (using .NET winforms) Obviously the form would not show to the console user, as services are isolated in session 0. However the experiment is to see if it is possible to "show" an invisible form and obtain a wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/1638768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In PowerShell, how to map a list to a search string PowerShell noob question here. I have groups of servers that are listed in separate lists. Each server has an error log that I scan for certain errors. However, each group of servers has its own unique set of errors that I scan using a specific search string for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/8888579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: getParent returns wrong ViewGroup When execute code below I can verify in my LogCat that getParent returns an other ViewGroup then FrameLayout (It returns LinearLayout). Normally I would expect that getParent would return the framelayout... Does anyone know why this is occuring? java: @Override protected vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/20000814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can only scrape the base price with requests html In the product price listed below, I fail to scrape the prices of the more expensive options. Strangely, I can save a direct URL link and see the correct price when the page loads. However, when I scrape the same link with requests-html, I only get the base price of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70585079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I unit test whether the ChangeNotifier's notifyListeners was called in Flutter/Dart? I'm using the provider package in our app and I want to test my ChangeNotifier class individually to have simple unit tests checking the business logic. Apart from the values of ChangeNotifier properties, I also want to ensu...
{ "language": "en", "url": "https://stackoverflow.com/questions/59932068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: error while passing the date value in the URL I want to pass the value which is of date format through the URL to the java controller, but it's throwing javascript errors near the date. My URL is as below: var dataUrl = myAppURL+'/detailData/'+adviceNum+'/'+dateCreated +'/myDetailData.form'; Below code is how i'm g...
{ "language": "en", "url": "https://stackoverflow.com/questions/43613181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add element to own c++ template class with overloading operator+= I have to write a header file to an existing cpp with making an own template class. There is a simple add method but I have to overload the operator+= function. If I try to add the elements separately, like this: ls += lmb; ls += lmc; than it works w...
{ "language": "en", "url": "https://stackoverflow.com/questions/74837487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ngFor with ngIf <ul class="dropdown-menu" aria-labelledby="selectShop"> <li *ngFor="let s of i.shops_id"> <a *ngFor="let shop of shops"> <span *ngIf="shop._id == s">{{ shop.name }}</span> </a> </li> </ul> It's created empty a tags but I need <ul class="dropdown-menu" aria-labelle...
{ "language": "en", "url": "https://stackoverflow.com/questions/44332688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Search node/text() from (Result Tree Fragment) my templates (XSLT 1.0) <xsl:template name="doo"> <xsl:variable name="nodelist"> <root> <a size="12" number="11"> <sex>male</sex> Hulk </a> <a size="12" number="11"> <sex>...
{ "language": "en", "url": "https://stackoverflow.com/questions/16132515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: cUrl alternatives to get POST answer on a webpage I would like to get the resulting web page of a specific form submit. This form is using POST so my current goal is to be able to send POST data to an url, and to get the HTML content of the result in a variable. My problem is that i cannot use cUrl (not enabled), th...
{ "language": "en", "url": "https://stackoverflow.com/questions/11468720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Perf profiling shows wrong call-graph I am trying to profile my code. After running perf, the resulting flame graph looks like that: The 30% left follows my program calling graph. The 70% on the right are various samples, which are incorrectly detached from the left 30%, as they are always called from these 30%. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/60186790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android: Having trouble getting html from webpage I'm writing an android application that is supposed to get the html from a php page and use the parsed data from thepage. I've searched for this issue on here, and ended up using some code from an example another poster put up. Here is my code so far: HttpClient cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/4719059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regarding fltk installation I am new to c++ and overall programming. I tried reading one book by Bjarne Stroustrup he mentioned in the very first chapter to first install fltk and write the code. Should I install fltk or use online compiler. If I should install fltk then please tell how as I am unable to do so. Than...
{ "language": "en", "url": "https://stackoverflow.com/questions/74812563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update the single property from array of object using setState (with a class component)? I have an array of objects in this.state, and I am trying to update the single property from the array of objects. This is my object this.state = { persons: [ { name: "name1", age: 1 }, { name: "name2", age: 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56592472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I replace only PART of an image source on hover using jquery? <li class="active"><a href="#"><img src="images/static/personal_information.png" class="img-responsive center-block"><span>Personal<br> Information</span> </a></li> This is what i trying $(".navbar-nav li a").hover(function(){ $(this).chil...
{ "language": "en", "url": "https://stackoverflow.com/questions/44174255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I let a set retain all strings that contain my specified substring in java? I use a hashset for a dictionary. Now I would like to filter out words that do not start with my substring. So it should be something like this: String word = 'ab'; List<String> list = Arrays.asList(word); boolean result = lexiconSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/32868228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Put File Mask on tFileList Component dynamically I was wondering if you let me know how I can set file mask for tFilelist component in Talend that it recognize date automatically and it will download only data for desired date? I have tried some approach and I faced with some errors like "the method add (string) in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30928833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Material Design Lite responsive CSS not working on a Mobile/Tablets or in the Chrome DevTools emulator When experimenting with the responsive features of Google's Material Design Lite, this code hides messages as expected when resizing the browser window, but when I look at my page in Chrome DevTools device emulator...
{ "language": "en", "url": "https://stackoverflow.com/questions/33044102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flutter Gridview button functionality to new screen with Firebase I've made a Gridview using Firebase and Streambuilder and Gridview.builder. This grid displays album titles, the album cover art for each album, and the artists that make each album. I'd like for each grid tile to be able to be pressed and navigate to...
{ "language": "en", "url": "https://stackoverflow.com/questions/61023338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to get text values present within strong tag using Selenium Java While trying to print values present with in strong tag using xpath I'm getting following exception: org.openqa.selenium.NoSuchElementException: Unable to locate element: strong This is my code : WebElement eleText = driver.findElement(By.xpath...
{ "language": "en", "url": "https://stackoverflow.com/questions/75125696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File Level Tracking In Git (Files from multiple branches in same directory) Is there any script that lets one remember branch/commit seperatly for files in some directory so that one can simultaneously work on file1 on branch1 and file2 on branch2 in the same directory and have them commit appropriately. If not I'l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7784825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Are atomic operations on non-atomic types in C atomic? The C17 standard specifies a list of atomic operations. For example, an atomic read-write-modify operation on an atomic object of type A is defined in the standard as: C atomic_fetch_add(volatile A *object, M operand); But we can call atomic_fetch_add on non-at...
{ "language": "en", "url": "https://stackoverflow.com/questions/71606318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: convert ElasticSearch SearchResponse object to JsonObject I want to convert the elasticsearch search result to Json Object. I havent found any proper way to convert directly. SearchResponse response = client.prepareSearch(index).setExplain(true).execute().actionGet(); response->JSON Object. Is there any way to con...
{ "language": "en", "url": "https://stackoverflow.com/questions/46190070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Transparency between UITableViewCells I want to have transparency between UITableViewCells. Space between the cells. I user custom created cells and for setting a background i use this code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3770906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: webkit css resize doesn't work with canvas as child? Suppose the following html and css code snippet: #outer { width: 100px; height: 100px; overflow: hidden; resize: both; border: 1px solid black; } #inner { width: 100%; height: 100%; } <div id="outer"> <canvas id="inner"></canvas> </di...
{ "language": "en", "url": "https://stackoverflow.com/questions/55928982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google play services leak in Main While trying to implement ads into my app I am getting this error upon showing the ad. The only thing I've added to my app in regards to Google play services is importing into gradle and adding to my manifest. I could not find any information on initialization or any other info whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/31084397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Content negotiation: how to remove JSON as a supported format? I'm implementing a web service in ASP.NET Core 2.1 based on a specification that exclusively supports XML. Therefore, the content negotiation process must return a XML document or respond with an error. Unfortunately ASP.NET Core 2.1 supports JSON by d...
{ "language": "en", "url": "https://stackoverflow.com/questions/52507339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: WSO2 API Manager - unable to access resource properties I am not able to access resource property test1, mentioned in property section in the screenshot. I am trying to access it by using the expression. get-property('test1'). I am expecting this result in console as test1-value. But the is showing as null. Updated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45281047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send SMS from SQL Server Integration Services I am new to using SSIS and I am looking for a way to send messages using SMS. Is this possible to do? And if yes, is there a way to use a Web API in SSIS to send SMS messages? A: After i did more search i found this Question and his first answer was what i want. the sec...
{ "language": "en", "url": "https://stackoverflow.com/questions/39081510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: keyDown function not working with shift key I am trying to hold down the 'shift' key and press the 'down' key using the pyautogui module. But the pyautogui.keyDown() does not function with shift key. The py.keyDown('shift') does not seem to work. Only the py.press('down') is working without holding down the shift ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/56949628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I distinguish the users who do not exist now but exit previously? Now I have a user set involving one tweet. But some users do not exit now. I wonder how to distinguish those users from current users. A: I believe the only thing you can do in this case is to use the users/lookup or users/show endpoints to ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/53079672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: AWS Amplify Graphql query on @connection I am using AWS Amplify (with Cli and Angular 7 for front end) for Graphql/AppSync and wondering how to get all connected items when it exceeds 10 items? Let's say I have created a schema.graphql like this: type User @model { id: ID! firstname: String lastname: String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55716924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Select only specific properties from an array of objects Let's say I create object like this: updates.push({ id: this.ids[i], point: point, value: value }); Later on I want to use JSON.stringify on updates object, however I need only point and value like: updates[{point: 1, value: 12}, {poin...
{ "language": "en", "url": "https://stackoverflow.com/questions/53874548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Docker for Windows: "Operation not permitted" trying to run an executable inside a container (bind-mount only) I'm pretty sure that the last update of Docker for Windows has broken something. Here is the thing. I have a custom image named toolbox, built from alpine, with a bounch of script inside it (bind-mount the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60710103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scraping html data from a web site with * tags I am trying to to get data from this lottery website: https://www.lotterycorner.com/tx/lotto-texas/2019 The data I would like scrape is the dates and the winning numbers for 2017 to 2019. Then I would like to convert the data into a list and save to a csv file or excel...
{ "language": "en", "url": "https://stackoverflow.com/questions/58561118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Datepicker submit format In the new version of materialize the new 'datepicker' seems to have lost the option for 'formatSubmit' format: 'dd/mm/yyyy' formatSubmit: 'yyyy-mm-dd' You use to be able to display the date in the page in one format and submit it in another. Anyone have a way round this?
{ "language": "en", "url": "https://stackoverflow.com/questions/55832738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the good way to provide an authentication in FASTAPI? what is the best way to provide an authentication for API. I read about authentication, Given an approach to write user: str = Depends(get_current_user) for each every function. I don't think so this is the good way to write an authentication. Can we erit...
{ "language": "en", "url": "https://stackoverflow.com/questions/61153498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: retrieve appointment from OWA(on premises outlook web Access) using C# How to retrieve calendar meetings and appointments list from OWA(outlook web Access) using C#. without using exchange web services A: You can use Microsoft Graph Api: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_l...
{ "language": "en", "url": "https://stackoverflow.com/questions/50699844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: flask-sqlalchemy count function Consider a table named result with the following schema +----+-----+---------+ | id | tag | user_id | +----+-----+---------+ | 0 | A | 0 | | 1 | A | 0 | | 2 | B | 0 | | 3 | B | 0 | +----+-----+---------+ for user with id=0 I would like to count t...
{ "language": "en", "url": "https://stackoverflow.com/questions/42573970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Removing Title Bar on Android App So I know there are a ton of these questions, but every time I try what they say, my app does not seem to remove the title bar. I have done the style change: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name=...
{ "language": "en", "url": "https://stackoverflow.com/questions/43239101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: List of properties not changing when set In a class constructor I have a instantiate a list containing properties: public MDInstrument() : base() { // bidss = new TickData[] {Bid0}; Bids = new List<TickData> { Bid0, Bid1, Bid2, Bid3, Bid4, Bid5, Bid6, Bid7, Bid8, Bid9, Bid10, Bid0, Bid11, Bid13, Bid14, Bid15...
{ "language": "en", "url": "https://stackoverflow.com/questions/47455796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Creating POJO/beans dynamically and set values using CGLib I have a requirement to parse a text file and generate JSON document. The text file has a pattern of text which contains a key which is a name and the value is a huge text of TSV with headers. I could parse the text file and generate bean classes using the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56261526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular can't navigate to other component I'm new in Angular. I'm trying to build a simple application with a list page and a detail page. The issues are multiple: 1- the search page shows the the th twice and shows it in all pages. 2- when I try to use route link, the app doesn't load the detail page. I've spent ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/59742872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: isnull function vs IS NULL as part of a case statement in a wider sql script, I have the following: WHEN KWB.ASYCONDTYPE IN ('CIVIL','CIVIL2') AND KWB.CIVCONDGRADE is null THEN 'NO CIVIL CG' This will set the field to 'NO CIVIL CG' for 1405 records WHEN KWB.ASYCONDTYPE IN ('CIVIL','CIVIL2') AND ISNULL(KWB.CIVCONDGRA...
{ "language": "en", "url": "https://stackoverflow.com/questions/44844079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Annotated bean config doesnt see bean from XML config Im really confused. I have web-app with Spring Security. I have database.xml config with embedded database: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance...
{ "language": "en", "url": "https://stackoverflow.com/questions/35084994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not showing from folder So guys I have made a admin system which saves images to a specific folder with specific id according to rows in database. The picture is in the folder but its not showing.. MY index.php CODe: <?php include 'admin/connect.php'; $sql = "SELECT * FROM products"; $run = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44871047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL to HiveQL in Hive Hadoop I am trying to write a HiveQL query which joins two data sets by a BAN column where one datasets timestamp is 72+ hours after the other datasets timestamp. I can write this in SQL but the syntax isn't the same in HiveQL. Can anyone help? For example : SELECT * FROM Session_Step_Table, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30899985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Put something in article in random place with PHP I am trying to put random text in an article so I use explode to make every word an array: $article = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lectus urna, tempor nec dui eget, ullamcorper interdum ex. Sed velit velit, sodales non eros eu, por...
{ "language": "en", "url": "https://stackoverflow.com/questions/39478712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Infinite House of Pancakes Here's a link to the problem in question: https://code.google.com/codejam/contest/6224486/dashboard#s=p1 Okay, so I got a bit hung up on this problem. Now that the quals are over, does anyone know why this wouldn't work? I've checked against about 50 different cases and haven't been able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/29585210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to declare function in typeScript within class? How does one declare function like this in typescript within class? What I am trying to achieve is to declare all members first, and then provide implementation of the function later. I want to be able to quickly scan class to see all members. This does not work fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/43482510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unable to group data in Reducer I am trying to write a MapReduce application in which the Mapper passes a set of values to the Reducer as follows: Hello World Hello Hello World Hi Now these values are to be grouped and counted first and then some further processing is to be done. The code I wrote is: public void red...
{ "language": "en", "url": "https://stackoverflow.com/questions/14477261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AutoMapper requiring mapping members and constructor I am brand new to AutoMapper and am just trying to get my head around the best way to do things. I quickly ran into a hairy issue mapping between two simple, but realistic, object models. The first is for a service layer: public sealed class GeoLocation { publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54661190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PySpark 2.4.5 is not compatible with Python 3.8.3, how do I solve this? Code from pyspark import SparkContext,SparkConf conf=SparkConf().setMaster('local').setAppName('Test App') sc=SparkContext(conf) Error Message Traceback (most recent call last): File "C:\Users\Test\PycharmProjects\python-test\MainFil...
{ "language": "en", "url": "https://stackoverflow.com/questions/62208730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Python language support for pipes I would like to implement in python something like this: def producer(): while True: sys.stdout.write("this is my data\n") def consumer(): while True: data = sys.stdin.read() print data producer | consumer The pipe actually needs to create two proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/8680880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Kotlin with hibernate java.io.NotSerializableException I have the following classes in kotlin @Entity @Cacheable @Table(name = "fine") @EntityListeners(FineSpecificationListener::class) class FineSpecification ( @EmbeddedId val id: FineSpecificationId, @Column(name = "fine") val fine: Int, @Col...
{ "language": "en", "url": "https://stackoverflow.com/questions/57545154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Studio Preview is different from the real device I have installed an AVD for my Samsung Galaxy S7 Edge. When I look to a layout at the android studio preview it fits the screen perfect. But it looks different on the real phone. Device resolution is also at 2560x1440 What is the problem? Screen settings AVD: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48305340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove scrollbars from canvas on Firefox Firefox is adding scrollbars to the canvas even with the body set to overflow:hidden and the execution of FB.Canvas.setAutoResize();. Every other browser hides the scrollbars. When I remove all content from the page the scrollbars persist. Sample: https://apps.facebook...
{ "language": "en", "url": "https://stackoverflow.com/questions/7952814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rack middleware server crash I am trying to write simple rack middleware like this: class NewMiddleWare NEW_STRING = <<BEGIN my new content BEGIN def initialize(app) @app = app end def call(env) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30041738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display new list item onclick with ReactJS I have a problem with updating and displaying an array as list items on the click of a button. From below code, I get error message: list.map is not a function import React from "react"; export default class InputPushToList extends React.Component { constructor(props...
{ "language": "en", "url": "https://stackoverflow.com/questions/53846062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create an object before calling the save method I want to create an object in Django before calling the save method. This object will be created from a ForeignKey Value, I've changed the foreignkey field to look like an input field in order to write a value instead of selecting it. I have 2 classes in 2 different mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/4293290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access EnvironmentObject from ViewModel in SwiftUI I need to implement a not too complicated use case in SwiftUI: Login with username and password, authToken and refreshToken are come back from API, store the refreshToken in KeyChain and the authToken in AppState (which is an ObservableObject (environmentObject), co...
{ "language": "en", "url": "https://stackoverflow.com/questions/60495050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Oracle DatabaseMetadate get columns for table named USER We are using JDBC DatabaseMetadata to discover objects in the database. DatabaseMetadata.getColumns returns more verbose information -that we really need- than those from select * from table where 1 = 2. Now when I pass the table name -that is a reserved word ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32580823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate:Data is not being populated in the table I wrote a sample Hibernate program the table with columns is created when i run the program but the data isnt being populated in the table .Can someone please help me out. My model bean is : import java.util.HashSet; import java.util.Set; import javax.persistence...
{ "language": "en", "url": "https://stackoverflow.com/questions/21349751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Me, AngularJS, and its 3 different ways to specify a controller I'm confused by these three different ways to specify a controller. 1- I can have an include in the app/index.html file: <script src="scripts/controller/nav.js"></script> 2- I can have an attribute in a route: .when('/link/list/', { templateUrl...
{ "language": "en", "url": "https://stackoverflow.com/questions/25093199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Building Android Apps using Adobe AIR I am building an android application with Adobe Flash cs6 and Adobe AIR for the first time. Initially it looked good but later I faced a lot of problems. What I have till now is more of movieclip and less as3 coding. My app scales automatically according to different screen size...
{ "language": "en", "url": "https://stackoverflow.com/questions/19900737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using regular expression in Beautiful Soup scraping I have a list of URLs and I'm trying to use regex to scrap info from each URL. This is my code (well, at least the relevant part): for url in sammy_urls: soup = BeautifulSoup(urlopen(url).read()).find("div",{"id":"page"}) addy = soup.find("p","addy").em.enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/30337701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use [FindsBy] annotation so that I can resuse the element found to find its inner elements? The DOM I am working on has lots of nested elements (box inside box structure ) and I am finding it difficult to code using POM design pattern. I have used FindsBy, FindsByAll, FindsBySequence but it appears that anyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/40406811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CK Editor - Uncaught TypeError: Cannot read property 'clearCustomData' of null in Chrome I am using CK Rich Text Editor in my application. I have a modal popup and within it I have three tabs - each of these Tabs renders the same Partial View in which I have a field call Description which is what I use CK Editor on...
{ "language": "en", "url": "https://stackoverflow.com/questions/25034150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: SDK Manager Android Studio OS X How do you open SDK Manager on the latest Android Studio in OS X? It appears grayed out in the initial screen and it seems I don't have any SDK installed... A: Close all open projects so you get the opening screen. Choose Configure -> Project-Default -> Project Structure Then set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26913470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unknown field "follow_redirect" while fetching facebook ad creatives from API I'm trying to get details of an ad creative from Facebook's ad API. According to the reference, follow_redirect is a gettable field. However, when I add it to the "fields" argument, facebook throws this: { "error": { "message...
{ "language": "en", "url": "https://stackoverflow.com/questions/19161742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to reveal old versions of a row in PostgreSQL? I know that Postgres uses MVCC and stores older versions of rows on disk. I would like to access (read-only) some old, discarded versions of a concrete row. How can I do it? A: In PostgreSQL 9.1 and later, the best solution for this is https://github.com/omniti-lab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7118432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: windows7 python36: how send to gdrive using righ click context menu? Where is the code (and explainations) needed to send a file using it's path or to send a file by right cliking on it (working on windows 7 with python 36) A: I struggled with google tutorial. Here is the code (and explainations) needed to send a f...
{ "language": "en", "url": "https://stackoverflow.com/questions/43570759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upload via gettyimages api Is there any way to upload photos to gettyimages? They don't have it in the API (https://api.gettyimages.com/de/apis) A: It does not appear so. From here (emphasis mine): For 35mm digital capture, we strongly recommend use of a professional-quality digital SLR using RAW or uncompressed T...
{ "language": "en", "url": "https://stackoverflow.com/questions/14668018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hide shortcode preview in gutenberg I created a custom shortcode that renders some html / css / javascript from a template file. function jsd_waitlist_hero_shortcode() { include dirname( __FILE__ ) . '/jsd-templates/' . 'jsd-waitlist-hero.php'; return null; } add_shortcode('jsd_waitlist_hero', 'jsd_waitlist_hero...
{ "language": "en", "url": "https://stackoverflow.com/questions/55128043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i customize the week number in Python? Currently, the week number for the period of '2020-5-6' to '2020-5-19' is 20 and 21. How do I customise it so that the week number is 1 and 2 instead, and also have the subsequent periods change accordingly. My code: import pandas as pd df = pd.DataFrame({'Date':pd.dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/61676260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create a scripted field in kibana 4 that uses aggregation? Kibana 4 has a new feature to add scripted fields and write custom scripts. I wish to write a script that uses aggregations. Its easy to do simple arithmetic operations in scripted scripts but for doing aggregations I am puzzled. I am a new comer to...
{ "language": "en", "url": "https://stackoverflow.com/questions/29367032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }