text
stringlengths
15
59.8k
meta
dict
Q: Composer debug dependencies I should figure out, how to debug such situations? I try to send mail throw Mailgun package. How to figure out why the class is not found? Error: Class 'Mailgun\Messages\MessageBuilder' not found in /vendor/boundstate/yii2-mailgun/Message.php:239 but IDE shows me that class exist in packa...
{ "language": "en", "url": "https://stackoverflow.com/questions/62831244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling date from list of times I have a list of time. time_list = ['7pm', '8pm', '9pm', '10pm', '11pm', '12am', '1am', '2am'] and from there a list of floats as well fl_list = ['1.0', '0.0', '0.0', '0.0', '0.0', '0.0', '11', '12.0'] Upon inserting in the database, I set the date of time 7pm-12am to date today, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/56635876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Include of non-modular header inside framework module 'AppLovinSDK' - Archive only error I get this error only when I try to archive, building for simulator or other test device works. Previously, I had this problem when trying to build for a test device, but I started over and reinstalled the pod and it worked. I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/54878219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Invalid label in mozilla firefox I've a JSP page like this with name test.jsp <%@ page language="java" contentType="text/json; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <% response.setContentType("application/x-javascript"); %> {"feed": "test"} and an html page where i use jquery for reading the json obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/3786894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Importing Json field from csv to MySQL 5.7.19-0ubuntu0.16.04.1 I have MySQL table consisting of 3 columns having type of (cookie vachar, userdata json, userprefernce json). I am trying to load the data from csv but it gives the following error : Error: Error Code: 3140 Invalid JSON text: Invalid value at position 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45606258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Makefile and Shell Script (Bash) What is the relationship between Makefile and Bash? Example in Makefile you have: CC = gcc But if you type this in the shell, you get error: ~# CC = gcc -bash: CC: command not found Understandably, because there are spaces. But it works in Makefile. Also, in Makefile you use comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/38046550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: run python script as subprocess and get the output I have a python script calculate.py with a function in it like below def mytest(): Y_pred = {} Y_pred['a'] = [1,2,3] Y_pred['b'] = [45,54,77] return Y_pred Now from python console I want to run the python script using subprocess and get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/48875596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get all edges of a cuboid (3D NumPy array) Having a 3-dimensional numpy array A I want to get all the edges (imagine this array as a cuboid). Well, A[0, 0, :] would give me one edge, A[0, -1, :] second one and A[:, -1, -1] yet another one... so all I'd have to do is get all permutations of 0, -1 and : and use them a...
{ "language": "en", "url": "https://stackoverflow.com/questions/48530710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get only git diff output in tab I want to get only output of git diff of whole repository, not just a file, in a tab, Not Split With The Commit Message! In the issues I found a: command GdiffInTab tabedit %|Gdiff But this one opens an split view with commit message, the thing I want is to show only git diff in new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54378200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Query, get only the line where a value appear 4 time I've got a table Customer (ID, Ref, LastName, FirstName). I have to bring out all lines whose reference is the same at least four times. I tried this unsuccessfully : SELECT * from MyTable Where (select count(ref) from MyTable Group By ref) >= 4 Of course it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20494641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq ToDictionary Not Defined? I have this code var contacts = dr.mktDoctorContacts .GroupBy(x => x.ContactType) .Select(zb => new { Key = zb.Key, GroupWiseContacts = zb.Select(x => x.Contact).ToList() }) .ToDictionary<string,List<string>>(y => y.Key, y => y.GroupWiseContact...
{ "language": "en", "url": "https://stackoverflow.com/questions/5104509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Scaffolding feature for winforms or wpf application I'd like to build a new winforms or wpf application, in which I'd like to use the concept of scaffolding like I saw for the Asp.net mvc5 application Introduction To Scaffolding in Visual Studio 2013 RC I need to know if this feature exists for the desktop applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/24820667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Insert value in variable I have a really easy (maybe stupid) question. I have following code to detect aruco markers with the aruco library: MarkerDetector MDetector; vector<Marker> Markers; this->TheCameraParameters.readFromXMLFile(CAMERA_PARAM_FILE); this->TheCameraParameters.resize(frame.size()); MDetector.detec...
{ "language": "en", "url": "https://stackoverflow.com/questions/48589460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic string parsing in C# I'm implementing "type-independent" method for filling DataRow with values. Intended functionality is quite straight forward - caller passes the collection of string representations of column values and DataRow that needs to be filled: private void FillDataRow(List<ColumnTypeStringRep> r...
{ "language": "en", "url": "https://stackoverflow.com/questions/2328997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DataBindingUtil plus NavHostFragment back navigation not working I had posted a question earlier regarding NavHostFragment not working on back press. The question was not answered by anyone, hence putting a couple of days effort into it, I finally managed to figure out the issue.(I am only adding new code missing in...
{ "language": "en", "url": "https://stackoverflow.com/questions/55916907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rest with spring-boot : Content Negotiation failed! No converter found for return value of type I am trying to get the content of a java POJO on the browser in JSON format using spring-boot 2.1.9 and spring REST. Very basic example! But I get the exception shown on the title of this post. When I annotate the POJO cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/58221237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Latest modified row for each item I have a sql table containing multiple rows with a memberid and lastmodified date. I need to get latest modified row for each member id. This is what I have tried in EFCore 3.1.1: var a = context.Members .Include(m => m.Histories.OrderByDescending(h => h.LastModifiedDate) .F...
{ "language": "en", "url": "https://stackoverflow.com/questions/72987573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving WPF application to Android Im not sure if this is the best place for this question so please let me know if not. I have recently created a pretty simple WPF application that has a link to a SQL Database and allows information to be added, updated and deleted. I want to port the application so I can use it on...
{ "language": "en", "url": "https://stackoverflow.com/questions/27118303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't drop foreign key (using constraint name) check column/key exists I've tried to find a solution myself but haven't had any luck. I'm using MySQL version 8.0.14 and my problem is: When trying to drop a foreign key... alter table Employee drop foreign key fk_Employee_Contact1; It fails... Error Code: 1091. Can't...
{ "language": "en", "url": "https://stackoverflow.com/questions/54371765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Webhook Request I am running a WordPress site with a WooCommerce checkout. At the checkout page I am using the webhook woocommerce_thankyou as a boarding point for my code. At this Point I am selecting some data from the new my order to send the data to another website via a webhook. I integrated the code over a...
{ "language": "en", "url": "https://stackoverflow.com/questions/59717391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Search specific words in pdf and return only pdf link where words were found (Python) I am trying to search for multiple words in many PDFs. Links to these PDFs are saved in a dataframe. The goal is for python to return a text stating "The words are located in pdf link"). Here is the code I have so far: (FYI g7 is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/69395489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change a View with a procedure This is the source of a view , i use this view as the base of a procedure named buscacancelados: SELECT NUMERO FROM dbo.CTRC WHERE (EMITENTE = 504) AND (MONTH(EMISSAODATA) = 3) AND (YEAR(EMISSAODATA) = 2013) This procedure returns the missing numbers in a set alter proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/16308153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python method to get integers from a string with limitation (in some range) Is there a module in python to get integers from string in given range (with limit/restriction) ? It can be useful to make code cleaner. def get_int_from_str(string: str, low_boundary: int = 0, high_boundary: int = 100) -> int | bool: # (or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70625715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I make links that were in the menu be on the nav bar on bigger screens? There are links that were shown on the side of the page as a menu when a button that was in the header was clicked. I want the button to be hidden and for those links to show up in the header instead. But if hide the button, the links do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72156272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to stop thinking "relationally" At work, we recently started a project using CouchDB (a document-oriented database). I've been having a hard time un-learning all of my relational db knowledge. I was wondering how some of you overcame this obstacle? How did you stop thinking relationally and start think documen...
{ "language": "en", "url": "https://stackoverflow.com/questions/1043830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Why would you use Ramda's lenses over evolve/path? Is there some functionality that lenses offer that you cannot get with path/assocPath/evolve/adjust?
{ "language": "en", "url": "https://stackoverflow.com/questions/56528914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cocos2D: Multiple actions: CCMoveTo CCAnimate I donΒ΄t understand, I absolutely cannot get this to work, I want a sequence of actions that plays an animation and moves the sprite using the CCAnimate ans CCMoveTo classes. Is there a bug or something special about these classes, cause it will not move nor animate when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16449079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Could not display data from php mysql in listview java Please help im new in java... im not able to display data in listview PHP side <? $objConnect = mysql_connect("my server","username here"," my password"); $objDB = mysql_select_db("db"); $strSQL = "SELECT * FROM image WHERE 1 "; $objQuery ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28151451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image(Absolute Positioned) Horizontally center in a Relative Positioned container I want to center an absolute positioned image horizontally in a relative positioned container. I tried to do with css. But I could't and i did in Jquery http://jsfiddle.net/CY6TP/ [This is i tried to do in Jquery] **Guys can anyone h...
{ "language": "en", "url": "https://stackoverflow.com/questions/20628676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: geom_bar: stack without adding I want a bar chart that looks stacked, but that the values are the actual values rather than being additive. I'm graphing things at ages, and ages don't "add". The data below show that the oldest animal lives to be 31 days old. However, the graph indicates a value in the 60s becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/50414221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change NavigationPage Backbutton color from DynamicResource Found this for change to change the color of the backbutton . NavigationPage.SetIconColor(this, Color.FromHex("#FFFF00")); The backgroudcolor of the page i change with DynamicResource. Invul.xaml.cs App.Current.Resources["defaultBackgroundColor"] = Prefe...
{ "language": "en", "url": "https://stackoverflow.com/questions/70113474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Join related Issue New to SQL Suppose we have two tables One has got the ID and Name column : +----+-------+ | ID | Name | +----+-------+ | 1 | Sam | | 1 | Dan | +----+-------+ and the second one has also got two columns as follow : +----+------------+ | ID | Relatives | +----+------------+ | 1 | Uncle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47865507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating data.frame of multiple random samples from a vector in R? I have the vector X and I would like to generate a data.frame of 6 integer samples of size 4. In other words, I would like to have a data.frame of 6 * 4 dimension. I tried the following the following but its throwing out lenght argument error. set.se...
{ "language": "en", "url": "https://stackoverflow.com/questions/69948643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to configure EC2 security group to permit loopback via public IP address? I have to run a program on an EC2 that reads the host's public IP address from config (which I don't appear to be able to easily change), and then connects to it, i.e. it's looping back to the instance via the public IP address. I can't fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/34614609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Airflow 2.0.2 - SnowflakeHook can't read query located in directory we're moving to airflow 2.0 and I noticed the below error, it seems SnowflakeHook can't read the query located in our 'sql' directory, this was running fine in airflow 1.x: snowflake.connector.errors.ProgrammingError: 001003 (42000): 019c5ac7-0602-...
{ "language": "en", "url": "https://stackoverflow.com/questions/67608655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Anyone know whats wrong with my code. Its not displaying anything in the console Getting the average grade and displaying the letter grade accordingly const grade = [70, 90, 50] / 3; switch (grade) { case grade < 60: console.log("F"); break; case grade >= 60 && grade < 70: console.l...
{ "language": "en", "url": "https://stackoverflow.com/questions/52261802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: mongodb-schema MongoDB Schema is used to validate if the incoming data is valid or not.
{ "language": "en", "url": "https://stackoverflow.com/questions/64003704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prettify JSON object alert I have a JSON object and when i alert it i get this: and i want to get this: function getNameById(id){ return usersArray.find(item => item.id === id).name; } var usersArray = [ {"id":"135","name":"Jenny"}, {"id":"162","name":"Kelly"} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42830381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Homebrew broken and unable to install anything ~ % brew install curl ==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.0.9 Already downloaded: /Users/currentuser/Library/Caches/Homebrew/downloads/922ce7b351cec833f9bd2641f27d8ac011005f8b1f7e1119b8271cfb4c0d3cd7--brotli-1.0.9.bottle_manifest.json Err...
{ "language": "en", "url": "https://stackoverflow.com/questions/73300645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Lost internet in Azure VNET We ware moving couple of our VMs from one subnet to another via CLI not being sure what we were doing we did something and we lost outgoing internet access on all our VMs within a VNET. Luckily we use VPN to connect to our environment and we have access to our VMs via local IP addresses. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53548566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Discord.py tasks.loop does not work and it returns no errors I've been trying to make loops in Discord.py, but I keep failing. What makes it harder is that it returns no errors. This is the code; import discord import datetime import time import threading import os import json import random import asyncio from disco...
{ "language": "en", "url": "https://stackoverflow.com/questions/61946454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to instantiate module myModule Uncaught Error: [$injector:modulerr] Failed to instantiate module myModule due to: Error: [$injector:nomod] Module 'myModule' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46138615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I avoid passing a reference to a parent object when constructing a new instance of a class? I have two classes defined as follows. First one: internal class Content { internal Content(Master master) { // code omitted } // code omitted } second one: public class Master { internal Conten...
{ "language": "en", "url": "https://stackoverflow.com/questions/11608628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: gvim Systemverilog syntax matching :is there way to match `ifdef `ifndef `else and `endif I have used standard SystemVerilog syntax packages but not able to match(with % move the cursor between) these strings. This is in the context of matchit function in Vim(https://www.vim.org/scripts/script.php?script_id=39). The...
{ "language": "en", "url": "https://stackoverflow.com/questions/66160327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C++ Builder: interface that was marshalled for a different thread In order to use a COM object from a thread, I inserted CoInitialize(NULL) into the thread Execute function and CoUninitialize() into the Terminate function. Everything works fine, except if the user aborts the thread by calling the Terminate function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33720684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Will this code send a notification on this day every month? I have this code that should send a notification to the user on the same day every month. However I'm can't simulate this, so I can't test it. I was wondering if any of you could proof check it, to ensure it does send a notification every month. Thanks stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/74950091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting a linux SDL2 program to run on a computer that does not have SDL2 installed? I recently developed a small SDL2 game. The game ran fine on my computer because I have SDL, SDL_image, SDL_mixer, and SDL_ttf installed. However, everyone who downloaded the game did not have SDL2 and the extensions installed, so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/33332053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wrap each line into span tags (IE7) I got a script right now that works all browsers GTE IE8 And i need it to work in IE7 aswell can somebody tell me what i did wrong in this script In this picture you see How it works in all other browsers and you see the dark area in IE7 is the bugged area cause the background is...
{ "language": "en", "url": "https://stackoverflow.com/questions/15924407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: django built-in support for MongoDB I'm trying to find any information if official django is going to support any noSQL DBMS, especially MongoDB. I found a fork of django 1.3 the django-nonrel (a fork of official django) and some other not very reliable projects (failures occur often, according to comments I found o...
{ "language": "en", "url": "https://stackoverflow.com/questions/16132692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: possible to run sql query without any user action? I want to know if it possible to run sql query when the other server send data to my server with post method. there is no user action. it direct send data from server to server. <?php if ($_SERVER['REQUEST_METHOD'] === 'POST') { $servername = "localhost"; $...
{ "language": "en", "url": "https://stackoverflow.com/questions/39383942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: how to replace the deprecated android.text.format class? how can i implement the code below using the GregorianCalendar. Thanks. Time dayTime = new Time(); dayTime.setToNow(); int julianStartDay = Time.getJulianDay(System.currentTimeMillis(),dayTime.gmtoff);
{ "language": "en", "url": "https://stackoverflow.com/questions/36900433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which version of Javascript Note: I know this is probably a simple and basic question but I just started to learn Javascript a couple of year ago when all these changes started taking place and it seems I learned the old version. I'm confused with Javascript. I'm trying to implement a basic MEAN stack. I'm using es6...
{ "language": "en", "url": "https://stackoverflow.com/questions/43664851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I replace substring in a file name? I'm attempting to replace the substring "Dog_1" with "Dog_2" for every file in my directory using sed. The file names look like this: Dog_1_interictal_segment_0472.csv Here is the command I'm using: sed -i '' s/Dog_1/Dog_2/g *.csv For some reason the substring isn't being r...
{ "language": "en", "url": "https://stackoverflow.com/questions/26644213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sum and multiplication of values in JTable I can not view each value on the same line. It is displayed per column. Every dealer in the total column line should display the sum of all values. I do not know how to display line by line. String[]entete= {"Revendeur/Montant","5000","3000","1500","800","600","500","400",...
{ "language": "en", "url": "https://stackoverflow.com/questions/33912942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I generate both XML and HTML reports from the Findbugs plugin in Gradle Right now I have FindBugs in my build.gradle as follows apply plugin: 'findbugs' findbugs { ignoreFailures = true } tasks.withType(FindBugs) { reports { xml.enabled = false...
{ "language": "en", "url": "https://stackoverflow.com/questions/39398755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to compare different values in two Excel files I have two Excel files 2A.xlsx and Purchase Register.xlsx 2A.xlsx looks like this: Purchase Register.xlsx look like this:: I want to have my filtered output (in new Excel file) in format like this: [ Sample filtered data][3] [3]: https://i.stack.imgur.com/1Iuhc.pn...
{ "language": "en", "url": "https://stackoverflow.com/questions/69356183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Interstitial Ads not getting displayed after every 7 swipe I am new to android, I have added facebook interstitial ads code to display ads after every 7 swipe but my code only displays Interstitial ads once. Could you please help me out how to fix this issues? Banner ads are working fine. But I am not able to troub...
{ "language": "en", "url": "https://stackoverflow.com/questions/50480507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change line properties on a plot from a different function I'm stuck with something which is probably easy to fix, but I couldn't find anybody having this same issue on the internet. I'm using matplotlib to plot some datas. def drawFigure(self): global figure figure = plt.figure() canvas = FigureCanvas(f...
{ "language": "en", "url": "https://stackoverflow.com/questions/30169756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scraping into different pages Im trying to scrap a web page, and after following some tutorials, i found how to scrap different products, and how to change the page, but not at the same time. I tryed some ways to do it, but couln't find out. This is my scraping code: const puppeteer = require('puppeteer'); const xl...
{ "language": "en", "url": "https://stackoverflow.com/questions/72095854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Function of Fullcalendar plugin dont insert correctly on mysql table Im using FullCalendar plugin to have a web calendar and show/insert events from my mysql table. It shows correctly the events from the bd but dont insert the date of the event in the correct format. (YYYY-MM-DD). Both columns of the mysql table are...
{ "language": "en", "url": "https://stackoverflow.com/questions/29064377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Typescript: Type guards not working as expected when using nested readonly property Quality can be good or bad, depending upon the type. Here type guards are working fine enum GoodBad { Good = 'Good', Bad = 'Bad' } interface IQuality { readonly type: GoodBad; } interface GoodQuality extends IQuality { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49939573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Insert text at cursor position failing on blank lines I'm using this native javascript method in GWT to insert text at the cursor position of a RichTextArea. It works sometimes but often gives me this error message: "refNode.insertData is not a function. It seems to happen whenever the cursor is on a blank line. p...
{ "language": "en", "url": "https://stackoverflow.com/questions/17112095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot start ClickOnce application from Microsoft Edge Beta (Chromium version) on one computer * *I downloaded the insider version of Microsoft Edge (Version 79.0.309.25). *Enabled ClickOnce: edge://flags/#edge-click-once *Tried to start ClickOnce Application from a browser. This has worked as expected on 4 c...
{ "language": "en", "url": "https://stackoverflow.com/questions/58932466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: count of matching rows in R below is the sample table/Data frame. The third attribute (count) will give the count of similar rows(attribute1+attribute2) ╔════╦═════════════╦═════════════╦══════════════════════════════╗ β•‘ ID β•‘ Attribute 1 β•‘ Attribute 2 β•‘ count(Attribute1+Attribute2) β•‘ ╠════╬═════════════╬═══════...
{ "language": "en", "url": "https://stackoverflow.com/questions/34633520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: anaconda - path environment variable in windows I am trying to run python from the windows command prompt (windows 10). So the result is the typical one when the path environment variable is not configured c:\windows\system32>python 'python' is not recognized as an internal or external command, operable program or...
{ "language": "en", "url": "https://stackoverflow.com/questions/34030373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Issue in finding rmse in PCA Reconstruction in python I am trying to find the root mean squared error between an original sample from Xdata and a reconstructed sample recon for different numbers of components. However when I use the code below: components = [2,6,10,20] for n in components: pca = PCA(n_compon...
{ "language": "en", "url": "https://stackoverflow.com/questions/64823789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running tests with Spring Boot So I'm trying to test Spring boot MVC app that I wrote: @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = PetClinicApplication.class) @WebAppConfiguration public class OwnerControllerTests { @Mock private OwnerService ownerService; @InjectMo...
{ "language": "en", "url": "https://stackoverflow.com/questions/38974958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# wpf multiple windows on task bar I created a C# project which have multiple windows. When I do some other stuff, some of the windows are lost focus. Then I have to bring them to front by clicking the task bar one by one. I am wondering is there are OnTaskBarClick Event on C# wpf window? Then What I need to do is...
{ "language": "en", "url": "https://stackoverflow.com/questions/48575450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass the previously assigned pointer value to a loop I've got a string pointer string* ifxPtr;, what I'm trying to do is to set this pointer to point to the user input and then loop through each character of it. string* ifxPtr; void Expression::GetInfix(string data) // This method runs first and it's setting the po...
{ "language": "en", "url": "https://stackoverflow.com/questions/36970007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Quick.db unwarn command unwarns all the warns in a member I am coding my own discord bot, and making warn system with quick.db package, and having a problem. If I warn a person 2 times, and unwarn him, It removes all the warns of the user. The code is: //I have imported discord.js and others. This is only the part o...
{ "language": "en", "url": "https://stackoverflow.com/questions/65661262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a New field too slow I want to add a new field to my index which includes more than 20m documents. I have dictionary like this Template : [Catalog_id : {Keyword: Sold Count}] Sold Counts = {1234: {Apple:50}, 3242: {Banana:20}, 3423: {Apple:23}, ...} In the index, there are many documents which share the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/72349582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding CustomBusinessHour to DateTimeIndex in vectorized manner Suppose I have a DateTimeIndex which I wish to add a CustomBusinessHour to. My CustomBusinessHour keeps indexes the same that fall between 0900 and 2000 on the same day, it moves indexes that fall between 0000 and 0900 to 0900 the same day, and moves in...
{ "language": "en", "url": "https://stackoverflow.com/questions/56770177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why do i keep getting an error 404 when fetching images from a backend folder in webpack 5 I would appreciate if someone knows the answer!! I am defining the image src from the backend using an object key for my image.Maybe this is the problem because i think i have imported properly and used the file loader in webp...
{ "language": "en", "url": "https://stackoverflow.com/questions/74135874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use "FB.Canvas.setAutoResize" with the php SDK? I want to make the scrollbars in my iFrame application disapear. So I checked the "Auto-resize" radio button under "Facebook Integration" and I understand I need to call "setAutoResize" so the canvas will grow to the height of my page. But I can't find any docum...
{ "language": "en", "url": "https://stackoverflow.com/questions/4849579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: paramiko expect timing out Thinking about making a move from Perl to Python running scripts to automate certain tasks on remote servers and devices. We need to be able to use Expect to check for certain results and get the data back. Taking a look at Paramiko-Expect and I like it, but it's timing out every time. imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/47165043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running Python script from PHP but its not working HI I am using PHP to execute python script: pdf.py import pdfkit pdfkit.from_url('https://www.google.co.in/','google.pdf'); data.php ini_set('display_errors', 1); error_reporting(E_ALL ^ E_DEPRECATED); exec("python pdf.py"); I tried executing ython file using php wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/66874231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RxJS filter and get first element - Typescript error getStep$(step): Observable<number> { return of([1,2,3]).pipe( filter((res: number) => step === res), first() ) as Observable<number>; } I expect for number. Like filter(res => res.step === step)[0] But Webstorm throws typescript's error. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/67776041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dart: How to use the dot notation, uncaught TypeError Problem I have the following code in dart, which decodes a string into a JSON object. import 'dart:convert'; void main(){ var stringValue = "{\"last_supported\": \"2.00\", \"current\": \"2.00\"}"; var newValue = json.decode(stringValue); print(newValue["l...
{ "language": "en", "url": "https://stackoverflow.com/questions/61043168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Delay adding a class for 2 seconds in hover() How do I use easing or time delay on addClass();? $("#date_1").hover( function () { $(this).addClass("door"); $(this).addClass("doorstatic", "slow"); // after 2seconds i want to add this class during the hover }, function () { $(this)...
{ "language": "en", "url": "https://stackoverflow.com/questions/8444618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can i create application in Windows for Linux platform? I have around of 4 years experience in C#.Net programming and i am developing a client server application. The server application will be insalled on CentOS and client application will be installed in Windows OS. But, i don't have much knowledge about c++ progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/21770767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Font face with Google Chrome Since some days, my Google Chrome browser doesn't show special fonts : CSS with font-face. @font-face { font-family: 'Babel Sans'; src: url('../fonts/babelsans.eot'); src: url('../fonts/babelsans.eot?#iefix') format('eot'), url('../fonts/babelsans.woff') format('woff...
{ "language": "en", "url": "https://stackoverflow.com/questions/11336103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I want to search list elements in txt file I want to search for list elements in txt file. However with this code I don't get the desired result. I have tried several solutions, but none of them really worked. def run(self): hostname = self.queue.get() with open('allhosts.txt', "r+") as file1: fileli...
{ "language": "en", "url": "https://stackoverflow.com/questions/66596633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to remove port from x-forwarded-for header in azure webapp? I have a Joomla app on azure's WebApp on Linux. I want to get the client ip in order to be able to block by ip with the Admin Tools extension. The admin tools has an option to get the client ip from the x-forwarded-for header, the problem azure is addin...
{ "language": "en", "url": "https://stackoverflow.com/questions/50889876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C Random Number Generation (pure C code, no libraries or functions) I need to generate some random numbers in C for testing and debugging the system. The system is a custom hardware (SoC) with a limited set of functions so I can only use basic mathematical operations. And no, I can't use random number generators in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9492581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MissingSchema: Invalid URL '/': No schema supplied. Perhaps you meant http:///? for l in l1: r = requests.get(l) html = r.content root = lxml.html.fromstring(html) urls = root.xpath('//div[@class="media-body"]//@href') l2.extend(urls) while running the above code this error coming. any solution?? MissingSchemaTr...
{ "language": "en", "url": "https://stackoverflow.com/questions/39756016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using git and svn I have been trying to solve this problem on my own. However I did not find a solution that really works. All my attempts ended with conflicts, many rebases, etc. etc. So, I have the following setup: Git is my main CVS for all my projects. For one of the projects I am using the wp7 silverlight toolk...
{ "language": "en", "url": "https://stackoverflow.com/questions/7434096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: var Hoisting in JavaScript Consider the following code in JavaScript- var DEFAULT_RATE=0.01; var rate=0.04; function getRate() { if(!rate) { var rate=DEFAULT_RATE; } return rate; } console.log(`Rate is`,getRate()); The output of the following code is 0.01 My takeaway from this is that vars are hoisted(an...
{ "language": "en", "url": "https://stackoverflow.com/questions/65874608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Creating AppDomain using .net Framework 4 gives OutOfMemoryException I'm trying to create an appdomain in VB / VS2015 using .net Framework 4, 64-bit, but am getting an OutOfMemoryException. domain = AppDomain.CreateDomain("mydomain") It works fine if I do it in a Windows Form Application, but I'm trying to do it in...
{ "language": "en", "url": "https://stackoverflow.com/questions/37609771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DataTable From Session Memory has No Columns Im trying to retrieve a datatable that I put into a session variable, however when i do it apears that there are no columns... I have done this before in VB.NET, I'n now using C#, and it worked perfectly, and as far as i can see there is no change in the code other than t...
{ "language": "en", "url": "https://stackoverflow.com/questions/4725914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: replacing escape character with double qoutes in c# I have the following string in a variable called, s: [{\"roleIndex\":0,\"roleID\":\"c1_r0_23\",\"roleName\":\"Chief Executive\"}, {\"roleIndex\":1,\"roleID\":\"c1_r1_154\",\"roleName\":\"Chief Operator\"}] and I'm trying to replace \" with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Merge two Pandas DataFrames based on approximate or exact matches Below is the DataFrames example I want to merge. #!/usr/bin/env python import pandas as pd countries = ['Germany', 'France', 'Indonesia'] rank_one = [1, 5, 7] capitals = ['Berlin', 'Paris', 'Jakarta'] df1 = pd.DataFrame({'country': c...
{ "language": "en", "url": "https://stackoverflow.com/questions/52484129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: undefined method `<' for nil:NilClass While creating a bubble sort program i ran into this error: test.rb:8:in `block in bubble_sort': undefined method `<' for nil:NilClass (NoMethodError) from test.rb:6:in `downto' from test.rb:6:in `bubble_sort' from test.rb:16:in `<main> does anyone know what does th...
{ "language": "en", "url": "https://stackoverflow.com/questions/40689956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to scan image taken by camera intent to update gallery in android I have this code in my app but it doesn't seem to be working. Only after restarting my phone then all the images are displayed in the gallery. No i am wondering is there a way to do this as soon as the photo is taken and then update the gallery ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27344885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: change/modify the dropdownlist text by value using jquery i have dropdownlist with the values: <select id="myddl" name="myddl"> <option value="1">One</option> <option value="2">Twooo</option> <option value="3">Three</option> </select> I need to change the text Twooo to Two using the value of the dropdownlist ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1974256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Unable to register Google Play - Developer console Are we able to be both user of a developer account and owner of a developer console ? The fact is that my personal Google address is linked to a developer console for my work and I wanted to create my own developer console to publish my personal apps. Unfortunately...
{ "language": "en", "url": "https://stackoverflow.com/questions/36536373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Bitbucket - push a new projet to my bitbucket repo I have the folder in my htdocs and I want to push it to an empty bitbucket repo. So far I've followed the instructions on bitbuket website git init git remote add origin https://[email protected]/musica.git cd /path/to/my/repo git remote add origin http...
{ "language": "en", "url": "https://stackoverflow.com/questions/28638454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to divide one row in various? I have a column data in a postgresql table that receive data like this: |A|C|F|L|T|U| The others columns are name, date Example: NAME | DATE | DATA ALYSSON | 2019-01-01 | |A|B|C| How to create a select that return: NAME | DATE | DATA ALYSSON | 2019-01-01 | A ALYSS...
{ "language": "en", "url": "https://stackoverflow.com/questions/58417408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can HTTP-header LAST-UPDATED be trusted? I have been using Rex Swain's HTTP Viewer to verify that none of the texts on a certain webpage has been changed recently. The response was: "Code last updated 21 January 2012", so as I understand it, I can't really assume that anything was actually changed on that date but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/40134830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make a fixed position element appear behind a static position element How can you make an element that has a position: fixed display behind an element with position: static? Changing z-index doesn't seem to matter since they are not absolute. A: You can use negative z-index on the fixed element. <div id="fixed">Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/16909230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: TinyMCE editor dislikes being moved around On a page I have, I need to move TinyMCE editors in the DOM tree once in a while. However, for some reason, the editor doesn't like it: it clears itself completely and becomes unusable. As far as I can see, this behavior is consistent between Safari 4 and Firefox 3.6, but n...
{ "language": "en", "url": "https://stackoverflow.com/questions/2535569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }