text
stringlengths
15
59.8k
meta
dict
Q: how to make Angular service only module scooped if its not a lazy loaded module So i m trying to make a module have a service which is module scoped. I have implemented a shared module which i would like to have it with a utils service only singleton to its components. other modules can only have instances of the ut...
{ "language": "en", "url": "https://stackoverflow.com/questions/75422471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need JDK to work with Eclipse Helios and Tomcat 7.0.33? I want to develop dynamic web applications. For this I am using Eclipse Helios and Tomcat 7.0.33. I have the JRE installed on my machine and I have provided the location of the JRE in the JAVA_HOME path. But when I am running any servlet, I get the error...
{ "language": "en", "url": "https://stackoverflow.com/questions/13601478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating mapkit's showsUserLocation pin ripple animation Has any one successfully created user location pin that has a ripple like effect that 4.x (or higher) mapkit gives when we use mkMakkit.showUserLoaction = YES; If any one has done it please guide me how to do it or past sample code that does that effect. The u...
{ "language": "en", "url": "https://stackoverflow.com/questions/3869005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to parse nested function calls using Pyparsing? I'm developing a css parser but cannot figure out how to parse nested function calls like alpha(rgb(1, 2, 3), 0.5). Here is my code: # -*- coding: utf-8 -*- from pyparsing import * #, Word, alphas, OneOrMore, countedArray, And, srange, hexnums, Combine, cStyleCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/23331004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Gson not loading in properly - Null object reference I'm trying to load in a local file into my Android application using Gson. Loading in the file works just fine. Here is what the Json looks like: {"heroes" : [ { "hero": { "name": "Hanzo", "role": "Offense", "abilities": { "primary"...
{ "language": "en", "url": "https://stackoverflow.com/questions/37619895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to delete an existing embed in DiscordJS (v12) I'm working on a small private Discord bot (mainly for learning) I've been working on a feature where the bot sends a message, the user sends a response and the bot will delete the initial embed and follow up with another embed. (creating a chain of embedded message...
{ "language": "en", "url": "https://stackoverflow.com/questions/64791771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache: Can't open .php files I want to start learning PHP, so I installed Apache2, MySQL and PHP5 on my Ubuntu 10.10 today. For some reason, when I try to open a file other than index.html from the default directory /var/www/, I either get a 404 error or I get a prompt to download the php file. I googl'd all over a...
{ "language": "en", "url": "https://stackoverflow.com/questions/4297513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update profile picture for existing model instance? I'm trying to update a user's profile photo after they've already created their account. I'm using an abstract user model connected to a model called Person. For additional context, I have my application connected to AWS to deploy to Heroku. I have a form, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57454660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: node.js redis smembers synchronously I wonder if it's possible to implement synchronous retrieval of smembers of redis with node_redis. _.each(seeds, function(subseed, key, list){ client.smembers(subseed, function (err, replies) { retrieved = retrieved.concat(replies) }) }) client.quit(); console.lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/25580690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Recursive python script found = 0 def new(string): global found if found > len(string): return 0 fish = string.find('x',found,len(string)) found = fish + 1 return new(string) + 1 text = 'onxonxoinxoinoxn' final_text = text + 'x' print new(final_text) So I'm new to recursion and i k...
{ "language": "en", "url": "https://stackoverflow.com/questions/32391740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Pandas pivot table: Aggregate function by count of a particular string I am trying to analyse a DataFrame which contains the Date as the index, and Name and Message as columns. df.head() returns: Name Message Date 2020-01-01 Tom ‎ image omitted 2020-01-01 Michael ‎im...
{ "language": "en", "url": "https://stackoverflow.com/questions/61574046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why it's not possible to reach nested type, declared in interface, through inheriting type in C#? Let's say we have a situation like this: // Declare `Nested` struct inside class and interface class Base { public struct Nested {} } interface IBase { public struct Nested {} } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65126739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery '.each' and attaching '.click' event I am not a programer but I enjoy building prototypes. All of my experience comes from actionScript2. Here is my question. To simplify my code I would like to figure out how to attach '.click' events to div's that are already existing in the HTML body. <body> <div id="dog-s...
{ "language": "en", "url": "https://stackoverflow.com/questions/18966222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Spread function in R with multiple fields which constitute the key Im working to transform my table in this way so i can join it on another table. Here is a sample of what my initial table looks like: df1 <- data.frame(ID = c(1,1,1,2,2,2,3,3,3), date=c('2021-11-01', '2021-11-01', '2021-11-02','2021...
{ "language": "en", "url": "https://stackoverflow.com/questions/70057192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: exit() doesn't work anymore (Python 3.10? New Pycharm version? Windows 11?) I used to close the console automatically when there was an error with: exit() However, I reinstalled everything on my new laptop (worth noting it's windows 11 maybe ?), exit() doesn't work anymore and returns : To exit the PyDev Console, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/70745571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: oracle sql - missing dates from range I've created the following script ... SELECT gr.RESERVATION_NO, gr.TITLE, gr.CATNR, gl.DUEDATE, gr.CRE_USR, gl.QTY, gl.WORK_CENTER_NO, gl.TEC_CRITERIA, gr.RESERVE_QTY, gl.PLANT, studate.dt FROM GPS_RESERVATION gr, (Select first_date + Level-1 dt F...
{ "language": "en", "url": "https://stackoverflow.com/questions/26614897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I build my gradle project using the Dockerfile I'm reading about dockerization of Spring Boot applications and all (or almost all) tutorials are based on some simple Dockerfile like FROM openjdk:8-jdk-alpine ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} app.jar ENTRYPOINT ["java","-jar","/app.jar"] It usually w...
{ "language": "en", "url": "https://stackoverflow.com/questions/73484983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PluginManager::get was unable to fetch or create an instance for getObjectManager So my problem is to use Doctrine 2 with Zend Framework 2. I installed Doctrine correctly and when I tried to use it in the controller I get this error : C:\wamp2\www\zf2\vendor\zendframework\zendframework\library\Zend\ServiceManager\Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/21833231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pig Changing Schema to required type I'm a new Pig user. I have an existing schema which I want to modify. My source data is as follows with 6 columns: Name Type Date Region Op Value ----------------------------------------------------- john ab 20130106 D X 20 john ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15324747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: From Cider, in Emacs, is there a way to restart Figwheel to detect new dependencies? I added a new dependency to my Clojurescript app, and I want to know if I can run a function, maybe something like (restart-figwheel) to restart Figwheel. I read you have to restart Figwheel to detect new dependencies. A: At this t...
{ "language": "en", "url": "https://stackoverflow.com/questions/42849591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get destination point? I am trying to navigation application on Mapbox with Unity. I want to get destination point from the user. I mean that user will write to where it wants to go and i will plot the road on the map according to destination point. I tried reload map scrip, but it is just geolocate the map....
{ "language": "en", "url": "https://stackoverflow.com/questions/55004248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "File not found" error when I click a button This is an application for my website and I don't quite understand what is wrong with it. I have had colleagues looking at it and we can't quite figure out where the error is. This is supposed to be a game of guess the number, where a random number is generated and the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/55660162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: NetworkAvailability check returns false yet the phone is online I have am having some issues with getting consistent results when checking if the network is available or not. I use this code snippet inside a class AppPreferences to check the availability of a network. /** * @return the networkAvailable */ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3283828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Yii2: can't create sql command using innerJoin I am not that good at SQL but i do as much as i can for the little knowledge i have.. I have made a single a flat SQL string with the help from a friend that gathers data from a table using a relative table from an initial data from the first table, the SQL was made lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/33513417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Automatic OpenAPI generation in Spring with multipart requests I have a problem with the OpenAPI generator in a spring boot application generating the definition of a REST endpoint that accepts a multipart request. When I am explicitly defining the parts like shown below. It generates an OpenAPI definition that is w...
{ "language": "en", "url": "https://stackoverflow.com/questions/70439574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible/sensible to split ASP.Net Core 2 (.NET Framework) Web Api into Class Library and Hosting projects? I'm trying to port an existing WCF Web API (targeting .NET Framework 4.6.1) to ASP.Net Core 2 using Visual Studio 2017 (v15.4.5) and am having trouble figuring out good/common/supported ways to organize ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47595244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Generating a new PDF using an existing PDF Document I'm trying to generate a new PDF document using an existing document as a base on a UWP application. I want to import the pages from the existing document, create annotations with information received from the application level and create a new PDF document combini...
{ "language": "en", "url": "https://stackoverflow.com/questions/72113385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically selecting imageViews from ArrayList or HashMap I have a Farkle game that I am trying to create a "Computer" player for and I am having a tough time trying to get this to work. Game Play: 1's & 5's are always scorable, Straight 1-6, 3-of-a-kind, 4-of-a-kind, 5-of-a-kind & 6-of-a-kind are scorable. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30412289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laravel 5.2 -> 5.3 Infinite Redirect Loop after upgrade I have upgraded from Laravel 5.2 to 5.3. All URI now lead to an infinite (ERR_TOO_MANY_REDIRECTS) redirection loop at /auth/login. I tried to remove my middleware one after the other to try to find the problem. I even commented out the whole Http\Kernel and rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/41250758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to take mac address of iBeacon in Ionic Framework for the app build on android platform I am trying to build an application for android devices with ionic framework to scan the ibeacons in an environment with the help of https://www.thepolyglotdeveloper.com/2015/09/support-ibeacons-in-your-ionic-framework-mobile...
{ "language": "en", "url": "https://stackoverflow.com/questions/62405678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Send Image to server using File input type I have a screen where I am capturing video from camera, taking a snap. I also have a file input and I want to set this option to the captured image from the camera, i.e..snap. I do not want to store the snap as a cookie and later retrieve it, as it will later make the users...
{ "language": "en", "url": "https://stackoverflow.com/questions/25204621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Select specif row data (numeric) from list of 5 (dimnames) in a $ : chr row in multiple tables Hy everybody. I'm kind of stuck with simple code. In fact I have this output: roc_value , , MAXENT.Phillips, RUN1, PA1 Testing.data Cutoff Sensitivity Specificity KAPPA 0.558 484.0 63.713 90...
{ "language": "en", "url": "https://stackoverflow.com/questions/54651009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript link to another javascript i want create an program using javascript, but i want my file be more organize, is there some way that i can implement the concept of include or require of php. example: javascript file that only contains function let say function.js, then another javascript file main.js. is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/27605367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Google Directions API Polyline not added to map I have a problem using the Google Directions API. I'm getting the JSON string and parsing it, getting the overview_polylines string NSString *allPolylines = [NSString stringWithFormat:[[[routes objectAtIndex:0] objectForKey:@"overview_polyline"] objectForKey:@"points"]...
{ "language": "en", "url": "https://stackoverflow.com/questions/10809373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: autossh pid is not equal to the one in pidfile when using start-stop-daemon I am trying to create a service on my Debian Wheezy system. When trying to use start-stop-daemon to run autossh, the pid contained into the pidfile does not match with the autossh process. $ AUTOSSH_PIDFILE=/var/run/padstunnel.pid $ sudo sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/34094792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What data structure should I use to keep track of recently used items? I need something like a bounded queue where I can only insert say 10 elements. A new element should override the last inserted element. There should be only n distinct elements I am looking for suggestions in Java by the way. A: ITYM an impleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/685811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: React unit testing Leaflet I have problem with unit testing Map component. My class component: componentDidMount() { const { zoom, data, center } = this.props; const { activeButton } = this.state; if (data[activeButton] != null) { this.map = map('map', { center: data[activeButton].points ? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52192422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Service is not running when OS is upgraded from Windows 8.1 to Windows 10 We have upgraded windows from 8.1 to 10. Now in Windows 10 services installed by us are not running. The same services are running properly if we install these services on Windows 8.1. ON windows 10, we tried below things which didn't solve t...
{ "language": "en", "url": "https://stackoverflow.com/questions/36035082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: "CORS: No 'Access-Control-Allow-Origin' header is present ", but it is present I'm trying to log in or register in my Angular app, but whenever I access to the php file which does the HTTP calls to the DB regarding users (authentication.php), I get three errors: * *Access to XMLHttpRequest at 'http://localhost/aut...
{ "language": "en", "url": "https://stackoverflow.com/questions/66291989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VHDL - Error comparing std_logic_vector with declared constant unsigned? The unsigned has been cast to std_logic_vector I am trying to create a Seven Segment Display controller in Vivado 2020.2 using VHDL 2008. The entity needs to be parametrizable by system clock rate and time to display each digit in the display (...
{ "language": "en", "url": "https://stackoverflow.com/questions/69807166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which is better to use for Google Assistant? Actions SDK or JSON request response I have built multiple actions on Google Assistant using the JSON request and response V2 but I have heard that using Actions SDK for building actions specifically for Google Assistant should be preferred. I am confused whether to use A...
{ "language": "en", "url": "https://stackoverflow.com/questions/51745709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retain color of Switch when disabeld I am using a Switch in xamarin forms. When I toggle, the color is Pink when true and grey when false. When I disable the switch as I do not want the user to toggle. then the color change to Grey. How can i retain the color of the Switch. When it is disable and it is true it shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/44738802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing error: Unexpected token, expected "," in react.js I write This code in react.js function Sidebar() { const [rooms, setRooms] = useState( [] ); useEffect(() => { db.collection("rooms").onSnapshot((snapshot) => setRooms( snapshot.docs.map((d...
{ "language": "en", "url": "https://stackoverflow.com/questions/63661383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL How to select distinct value from multiple fields In the database(of tutor profiles), each tutor can teach up to 3 subjects, hence I've created 3 fields--Subject1,Subject2 & Subject3-- for each tutor. In my case, I would like to retrieve each specific subject within the 3 fields and add them to my combo box in m...
{ "language": "en", "url": "https://stackoverflow.com/questions/29031891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to “flatten” or “collapse” a 1D mysql table into 2D? I have a table like this: id - name - value 1 - shoes - 21 1 - gloves - 5 2 - shoes - 23 2 - gloves - 3 I want it to be converted to a table like this: id - shoes - gloves 1 - 21 - 5 2 - 23 - 3 Is it possible to do it with on...
{ "language": "en", "url": "https://stackoverflow.com/questions/52721209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C function with pointer of points wrapping I have a method define in C/C++ DLL that takes 2 args void SetLines(char** args,int argCount); I need to call it from Python, what is the proper way to do so. from ctypes import * path="test.dll" lib = cdll.LoadLibrary(path) Lines=["line 2","line 2"] lib.SetLines(Lines,len...
{ "language": "en", "url": "https://stackoverflow.com/questions/30365831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I properly ask (or search google) for help aggregating objects from different db models? I'm trying to list objects from two different mongoDB database models on the same index page. Right now I have them split on two different index pages because I didn't think this through ahead of time. The problem is I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/68293719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overriding the Copy-Paste capability under Windows OS? I'm pretty sure that's a very difficult task. Did anyone out there know how we can overrides the copy-paste capability under Windows OS? (Overriding for the complete environment... patching the Windows OS itself.) Ex : Trim the copied text after copying it. Than...
{ "language": "en", "url": "https://stackoverflow.com/questions/5735626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any solution to know when specific application was maximized and viewed? (windows 11) I need track some historical logs of events when specific software as maximized and closed. On this case I need the informations about when and how long a .doc file was viewed. example: 2022-12-12 08:35:59 - Maximized for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75048564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Defender flag some JSON output file from Trivy as Backdoor:PHP/Remoteshell.V I'm working on a project where I parse some YAML configuration files in Java, then forge a command to send to a processbuilder which calls Trivy, performs the required scans and then print out two files, one in JSON and one in HTML....
{ "language": "en", "url": "https://stackoverflow.com/questions/71996655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I convert a 12-bit integer to a hexadecimal string in C#? I want to convert a number between 0 and 4096 ( 12-bits ) to its 3 character hexadecimal string representation in C#. Example: 2748 to "ABC" A: try 2748.ToString("X") A: If you want exactly 3 characters and are sure the number is in range, use: i...
{ "language": "en", "url": "https://stackoverflow.com/questions/142813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why Toast.makeText and not new Toast This is may be a noob question, but I was wondering why do we have to use a static method (makeText) to create a Toast and not a constructor. Why do we have to use this: makeText(Context context, CharSequence text, int duration) instead of this: new Toast(Context context, CharSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/11718171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Elasticsearch get documents where a property is not empty If I want to return all the documents which have an empty property (IMG) I can do something like that: GET something/_search/? { "query": { "term": {"IMG": ""} } } It works because IMG is a keyword. If I want the exact inverse, which means get all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/52333658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to check date of birth is keyed in i would like to know how to check if user has entered their date of birth in the registration form. The day and month are in a drop down list and the year is in text box form. <b>Date of birth</b> <select name="day" id="dobday"> <option value="na">Day</option> <option value="1...
{ "language": "en", "url": "https://stackoverflow.com/questions/27716072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How can I smoothly scale the layer in IOS to keep an object on screen? I'm working on a game where a ball is hit, and can leave the visible area of the layer. I'm setting the position of the ball each frame, as I get feedback from Box2D about its location. When the ball nears the edge of the screen, I want to zoom o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7181109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostgreSQL 9 JDBC driver returns incorrect metadata for stored procedures I am on a team that develops a business intelligence (reporting) tool. We report off many sources include Stored Procedures. We use the meta-data provided by the JDBC driver to determine the input and output paramters of a Stored Procedure. It...
{ "language": "en", "url": "https://stackoverflow.com/questions/21541745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: python: how to to make iter_loadtxt ignore lines with errors I am using iter_loadtxt as seen on stack overflow to load > 600MB text files. Occasionally the program generating the files make a bad write to the text file and iter_loadtxt barfs: Traceback (most recent call last): File "<stdin>", line 1, in <module> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19060820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MongoDB Stitch throwing anon-user error I am using mongodb's stitch backend to run an application, and when I try to login as an anonymous user, it throws this error: failed to log in anonymously: { StitchError: authentication via 'anon-user' is unsupported at /*****/*****/*****/****/node_modules/mongodb-stit...
{ "language": "en", "url": "https://stackoverflow.com/questions/49143526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to convert a string to date format when downloading an excel file using python My aim and the difficulty found on that is to convert my Date column data in excel from Number format to Date format. In my python snippet the variable holding the date is type of string. current_date=datetime.today().strftime('%-d/%-...
{ "language": "en", "url": "https://stackoverflow.com/questions/61657472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Not able to get all the data in JSON response from Server I am trying to retrive json data from server. I am using HttpURLConnection for connecting to server. I am getting response code as 200 and i am also getting some data. But after some data i get garbage value. Here's my code: private List<Member> downloadUrl(S...
{ "language": "en", "url": "https://stackoverflow.com/questions/33318816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get dbeaver to show the caret and table size I am using dbbeaver Version 21.1.2.202107041908 on a mac. Yes. Once upon a time there would be a ">" next to the word Tables and when I clicked it, all the tables would show with their size in mb next to them. This is no longer the case, instead the caret disap...
{ "language": "en", "url": "https://stackoverflow.com/questions/68686275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make table columns with the same width in GitHub markdown? I'm trying to make table with two identical screenshots, but the right column is wider then left one. Moreover, it depends on text in the row below, but I don't clearly understand, how it depends exactly. Two simple examples: ![img](https://raw.github...
{ "language": "en", "url": "https://stackoverflow.com/questions/38787198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Youtube analytics api issue Trying to get the youtube anaytics channel report from this scope: https://www.googleapis.com/auth/yt-analytics.readonly and two channel IDs * *UC2QjLUbr7XeJpiYgflSuZ-w *UCH8FFDRgoEtYGm00oqIADUQ First channel id worked perfectly. Second id shows me this error (below image), any idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/34647426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Turning a string of a bunch of words into a list with all the words separated So I have a huge string of words separated by spaces and tabs and was wondering what I could do to quickly append each individual word to a list. EX. x = "hello Why You it from the" list1 = ['hello', 'why', 'you', 'it','from', 'the'] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23936000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error : The support for this usage was removed in Celery 5.0. Instead you should use `--app` as a global option I am having a fastapi when i build container image i was unable to run the celery worker dockercompose file version: "3.8" services: web: build: . ports: - "8080:8000" command: uvicorn ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71908797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decoding a file with bit-manipulation Constantly getting segmentation fault, and i'm not able to solve this. If the program runs the "encodeFile" - function, the program should be able to read the input file character by character and compress the character of a 2 bit value. The values will then be printed in the ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/26130156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I add an object that is added with Ext.create to my Viewport? I'm new using Ext JS and I need to add a button in my Viewport. I have tried adding it as an item but it doesn't work when I click on it: items: [ { xtype: 'datepicker', width: 211 }, { xtype: 'datepicker', width: 211 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55394679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do find out MSOLAP.2 provider installed in my machine? How do find out MSOLAP.2 provider installed in my machine. Also, How can i test the same through C# code? Any help or guidelines are greatly appreciated !!!
{ "language": "en", "url": "https://stackoverflow.com/questions/15969430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: simple questions of callbacks with and without an array function i have a simple question that has border me for a very long time. so can anyone tell me what is the difference between onClick{()=> function()}} and onClick{function()}? what is the difference between having a arrow function and without an arrow functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/63857398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Groovy/Grails validations and hasFieldErrors issue I have created a custom tag that looks like this: def textField = { attrs -> def field = attrs.name.split('\\.')[-1] log.error("--------- Field is ${field}") if (attrs.bean && attrs.bean.errors.hasFieldErrors(field)) { def className = attrs.remov...
{ "language": "en", "url": "https://stackoverflow.com/questions/2394530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python- How to change the file name of a variable within a function So basically I want to change the file name of the variable within the function after I've called it, however I'm unsure of exactly how to do this. I'm pretty sure it'll be something fairly simple, however I'm probably looking at it the wrong way. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/19335836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Table of contents does not appear in the left sidebar in Jupyterlab 3.4.2 The table of contents extension is built-in JupyterLab since version 3.0. Howerver, there is no TOC in the left sidebar of my jupyterlab. How can I make my TOC appear properly? Thanks. left sidebar: settings: A: For me, the following screen...
{ "language": "en", "url": "https://stackoverflow.com/questions/72238542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get length of integers in PHP ? I want to get the length of integer values for validation in PHP. Example: Mobile numbers should be only 10 integer values. It should not be more than 10 or less than 10 and also it should not be included of alphabetic characters. How can I validate this? A: In my opinion, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/3998482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How can I make the default scrolling logo section move faster so that I can change logos in less than two seconds? as I'm trying to customize a Hugo template, I'm trying to make the scrolling logos move faster (see the picture below), meaning they can change every 2 seconds or so. Here is the picture of the template...
{ "language": "en", "url": "https://stackoverflow.com/questions/75053750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get text content of 3rd element inside of . With several div containers with the same name I have the following code. var bTags = document.getElementsByClassName("Wrapper"); var kind = bTags[0]; console.log(kind); console.log(kind.childNodes[4].text); <div class="Wrapper"> <h3 class=...
{ "language": "en", "url": "https://stackoverflow.com/questions/60335875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Laravel htaccess, redirect url if find /en My old url www.example.com/cn/news www.example.com/cn/event I want to if user enter /cn url Laravel will redirect into this url www.example.com/en/news www.example.com/en/event here is my laravel .htaccess in root folder <IfModule mod_rewrite.c> RewriteEngine On ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52276393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding an Individual JSON Object to an Array to Parse and Process I have the following json object samples, i.e.: {"id":"value1" , "time":"valuetime1"} {"id":"value2" , "time":"valuetime2"} {"id":"value3" , "time":"valuetime3"} {"id":"value4" , "time":"valuetime4"} {"id":"value5" , "time":"valuetime5"} {"id":"...
{ "language": "en", "url": "https://stackoverflow.com/questions/36977910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Rails3: linking to offsite mp3 files and have them save to user's hard-drive rather than stream in the browser I have some very large mp3's stored at a remote location and I presently link to them like so: = link_to "mp3", "http://website-where-file-is-stored.com/file-123456.mp3" When a user clicks the link, the fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/3261809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the differences between ways of writing OpenMP sections? What (if any) differences are there between using: #pragma omp parallel { #pragma omp for simd for (int i = 0; i < 100; ++i) { c[i] = a[i] ^ b[i]; } } and: #pragma omp parallel for simd for (int i = 0; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53218701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java paste to current cursor position I want to make simple java program that will insert some text into current cursor position. That cursor position can be in any text editor, for example notepad. Is this possible? A: Using this article as a base about copy/paste, you may see that you can only put something to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/1549333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reference parent DataContext in user control [C++/winrt] Edit: Solved via blank user control, not custom control (See below solution) I'm basically trying to modularize complex XAML stuff away from MainPage into a user control, hence I need to figure out how to inject the local DataContext within MainPage.Xam...
{ "language": "en", "url": "https://stackoverflow.com/questions/68157433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to take backup and Restore huge Cassandra Database tables? Need to Migrate Cassandra 2.0 to 3.11 to new server Old Server : Cenos5/6 Old Cassandra Version : 2.0 New Server : Centos8 New Cassandra Version - 3.11 There are few tables with 20 Million records tried Snapshot and Copy method but the Backup is not b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75498291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I have a parameterized stored procedure on an AS400 and cannot get results in SSRS I have a working stored procedure that returns results in Microsoft query and iSeries Navigator. When I call the same stored procedure using Microsoft Report Builder 3.0, I either get no results or an error saying one of the temporary...
{ "language": "en", "url": "https://stackoverflow.com/questions/36991913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: injecting mocks with mockito and powermocks I was wondering how should I go about injecting a mocks - we have bunch of classes that do server calls, however our CI system can not access external resources and thus will not make a call to a server. Thus, the call has to be simulated and hardcoded values (such as resp...
{ "language": "en", "url": "https://stackoverflow.com/questions/17956840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nativescript JS send URLSearchParams into POST request I want to send data to an API not with JSON but with x-www-form-urlencoded (URLSearchParams). I tried with this code but the data is not received correctly by the API. return fetchModule.fetch(config.apiUrl + "auth/register", { body: JSON.str...
{ "language": "en", "url": "https://stackoverflow.com/questions/54531563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript - how to pass an undefined argument to child anonymous function Ok, after a couple of hours of googling I haven't found a solution that (works) and doesn't use eval(). I have an array which i would like to run the same function to nest and do roll-up sums. dsAhsBes = createAhsBesok(dsFilterBes, dsAhsBes...
{ "language": "en", "url": "https://stackoverflow.com/questions/31450313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upgraded to Az modules from AzureRM now cannot login with Runbook I have just started looking at Azure Automation and created my first Runbook today and everything was working fine. I then read that AzureRM was replaced with the Az module so thought I had better migrate my Runbook and get straight onto the new stuf...
{ "language": "en", "url": "https://stackoverflow.com/questions/57529029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: correct syntax for merge This question might appear to be very stupid but I don't understand how to merge two sorted vectors with std::merge. I tried some code using cplusplus reference. struct t { t(int x):a(x){} int a; }; bool operator<(const t& p,const t&b) { return p.a<b.a; } int main() { vector<t> a,...
{ "language": "en", "url": "https://stackoverflow.com/questions/23304400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to stop Translate when I need? I have a cupboard with boxes. When I look on the box and press mouse button, I want to open/close it with Translate. I want to move box, till it's X coordinate will be 1.0 (and start point is 1.345). But it moves longer than that point. I tried to use FixedUpdate, but it doesn't h...
{ "language": "en", "url": "https://stackoverflow.com/questions/34824893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Turn warnings into error only within supplied diff At a company I used to work at, the build system was set up to turn warnings into errors only within changed code. It worked by supplying generating a diff (typically between the branch you were trying to merge and master and then supplying that diff to some compila...
{ "language": "en", "url": "https://stackoverflow.com/questions/53749946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to clear boost function? Having a non-empty boost::function, how to make it empty (so when you call .empty() on it you'll get true)? A: Simply assign it NULL or a default constructed boost::function (which are empty by default): #include <boost/function.hpp> #include <iostream> int foo(int) { return 42; } int...
{ "language": "en", "url": "https://stackoverflow.com/questions/15760929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: No 'Access-Control-Allow-Origin' error in http get I am getting the following error message in ionic project, when i execute http get function. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://creator.ionic.io' is therefore not allowed access. My code is, how do i a...
{ "language": "en", "url": "https://stackoverflow.com/questions/47105078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Figuring out C Declarations like: double (*b)[n] I'm trying to figure out some C declarations. What is the meaning of these C declarations? double (*b)[n]; double (*c[n])(); double (*d())[n]; A: The basic rule to parse C declarations is "read from right to left and the inside out jumping toward the right when leav...
{ "language": "en", "url": "https://stackoverflow.com/questions/13247473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: calculate mean value for the missing values I need to calculate the mean of neighbor values to replace it with NaN value, but the problem is, I don't want to make my code more complicated. For example, I have there 20 countries and 4 car types from 2010 to 2020, but there are some missing values in the beginning or...
{ "language": "en", "url": "https://stackoverflow.com/questions/70915585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Netbeans (Java): 3rd library works but how could I compile it into jar? I'm using 3rd libraries (substance, trident) and I added them as libraries (I added the .jar's) to my project in Netbeans. This works also but if I use the builded jar outside the project directory it doesn't work like it should (the choosen UI ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4473066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Next.js Add slug/params to clean URL I have a structure with a clean URL in the "pages" folder like this ... /pages/items/[pageNumber]/index.tsx And if I use router.push I use it like this to get to that page ... router.replace("/items/[pageNumber]", "/items/1") That works great, but now I want to add a query para...
{ "language": "en", "url": "https://stackoverflow.com/questions/63360586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get list item count from all lists on all webs of site I found the following post that returns lists items from all lists on all webs within a site. I am trying to figure out how to return the list item count instead of the list items. Any assistance would be appreciated. JSOM dynamicly get two announcements from a...
{ "language": "en", "url": "https://stackoverflow.com/questions/49501411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Controlling Multiple Switch button in Android I'm Building a simple profile manager android application Using Switch Button in Android. There are 3 switches named General,Silent and Vibrate. Problem is all 3 switches are working together I want the General Switch to be disabled when the silent switch is activated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35637899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to hide some models in django grappelli admin? How to hide some of the models? I need them registred to be used by other models, while calling via FK or nested etc. I found one solution which is rather much about view layer of (MVC) http://blog.jholster.com/post/1534211028/hide-app-names-in-django-admin I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/22842792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ImportError: DLL load failed: The file cannot be accessed by the system Traceback (most recent call last): File "<ipython-input-9-a40793f9ded7>", line 7, in <module> from sklearn.model_selection import train_test_split File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\__init__.py", line 76, in <modu...
{ "language": "en", "url": "https://stackoverflow.com/questions/60617135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }