text
stringlengths
15
59.8k
meta
dict
Q: how to redirect to a specefic route when validator failed in laravel 5.3? I am trying to register user from index page but When validator failed then want to redirect to register page. I am tired to solve this problem . can't customize Illuminate/Foundation/Validation/ValidatesRequests.php page. Here is the code pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/41013369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get js localstorage items case insensitive After saving items in javascript local storage I want to retrieve them case insensitive based on the key saved in the localstorage. For example if I have 'Test' as a key in local storage localstorage.getItem('test'); doesn't return the value of 'Test' cause it is case sensi...
{ "language": "en", "url": "https://stackoverflow.com/questions/38661622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to skip duplicates and blank values from JSON dataframe and store into an array? The following code displays data from a JSON Line file. import pandas as pd import numpy start = time.time() with open('stela_zerrl_t01_201222_084053_test_edited.json', 'r') as fin: df = pd.read_json(fin, lines=True) parse...
{ "language": "en", "url": "https://stackoverflow.com/questions/68474569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Polars: Pivoting by Int64 column not keeping numeric order I have a column called VERSION_INDEX which is Int64 and is a proxy for keeping a list of semantic software versions ordered such that 0.2.0 comes after 0.13.0. When I pivot, the column names created from the pivot are sorted alphanumerically. pivot_df = mer...
{ "language": "en", "url": "https://stackoverflow.com/questions/71384958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Modifying website through email I wanted to try to do something where I can make changes to my site based on emails received to the sites email. Does anyone know how to do that? I want something where if its from a specific email address, and follows a particular format, it will change a certain part of the site acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/14206458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel remote method is giving 404 (Not Found)error for title existed checking I am using Laravel framework. When I am trying to check if title already exists it is giving a 404 error. How to solve this error? ServicesController.php Controller: public function checkEmail() { $service = Service::all()->...
{ "language": "en", "url": "https://stackoverflow.com/questions/45137651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Opening a modal component with a button in another ccomponent using Vuetify I have 2 components. Modal and Navbar. I'm trying to open Modal using a button in Navbar using vuex. I have a state called modalIsOpen. This states value changes from false to true when clicked on the button in Navbar but only a blank row is...
{ "language": "en", "url": "https://stackoverflow.com/questions/75139930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to get the price of bitcoin in USD from the coinbase API for a specific time in the past? GET https://api.coinbase.com/v2/prices/:currency_pair/spot This price seems to be the current price A: This question already has answers. Copy and pasted from here: Coinbase API v2 Getting Historic Price for Mul...
{ "language": "en", "url": "https://stackoverflow.com/questions/68241584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to append to JSON with Java and Jackson I'm trying a simple test where the code appends a few json entries, however it is getting overwritten each time (the json file will only have 1 entry in it after running). I know I need to somehow create an array in JSON using '[]', but how would I go about doing that? Als...
{ "language": "en", "url": "https://stackoverflow.com/questions/58888004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the most efficient way to find if a mac address is in range? I have a large range of number of strings that are mac addresses. If they're in a certain range, I want to be able to go to a certain case statement. For example, "78:A1:83:24:00:00 to 78:A1:83:24:0F:FF" I have my code going so that it removes the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24868780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Method lookup in Ruby's interrelation diagram? Can someone explain the relation between the Ruby class interrelation diagram and the way method lookup is done in the actual Ruby C code? Interrelation diagram from https://ruby-doc.org/core-2.5.3/Class.html: +---------+ +-... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53803295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search history in elasticsearch Is there any way to check search history in elasticsearch? I'm wondering how seek someone responsible for data leakage in organization if it happen.
{ "language": "en", "url": "https://stackoverflow.com/questions/58447625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why don't my fabric control parameters work? Here is my fabric function: def replace_config(vim_sig, bash_sig): """ replace remote server config with local config """ default_path = change_path('config', default_path='~/') if vim_sig: local("scp %s.vimrc admin@%s:~/vimrc" % (default_path, en...
{ "language": "en", "url": "https://stackoverflow.com/questions/31064994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get elements and count of Array of unknown type Let's say we have an Array, assigned to a variable with the type Any let something: Any = ["one", "two", "three"] Let's also assume we don't know if it's an array or something entirely else. And we also don't know what kind of Array.Element we are dealing with exactly...
{ "language": "en", "url": "https://stackoverflow.com/questions/36411115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Convert Array of object to json in javascript I want to Convert Arraylist of object to json in javascript to use it in highchart and angularjs. Can Anyone help me how can i do that? data should look like that [ ['Firefox', 45.0], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27789973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: PHP - Fatal Error - is any way to not stop script? I have a simple script: <?php $source = '../path/img.jpg'; $image = imagecreatefromjpeg($source); ?> Finally I got: Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted But when I try do something like that: <?php $source = '../path/img.jpg'; $image ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46797422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RETURN cannot have a parameter in function returning set; use RETURN NEXT at or near "QUERY" Postgres When I try to compile this function: CREATE OR REPLACE FUNCTION test_proc4(sr_num bigint) RETURNS TABLE(sr_number bigint, product_serial_number varchar(35)) AS $$ BEGIN RETURN QUERY SELECT select s...
{ "language": "en", "url": "https://stackoverflow.com/questions/27968966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: wx.Image from image URL Well I've been doing a ton of searching and there doesn't seem to be too many people talking about this. With the help of the documentation for wxPython, I've got this far. I'm looking to create a wx.Image widget from an image URL. http://wxpython.org/docs/api/wx-module.html#ImageFromStream i...
{ "language": "en", "url": "https://stackoverflow.com/questions/20736213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't get Jest expo app to work with react-navigation I am trying to snapshot test with Jest, Expo, React Navigation and my whole app uses hooks only. I'd like to eventually make these into e2e tests where Jest clicks through and snapshot tests everything but I can't even get react navigation to render. My snapshot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59144867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I check that a label has fallen off the screen? I have a question about UIKit Dynamics. Let's say I'm designing some interactivity, and when the user taps, I want a label with some text to fall off the screen (at which point, I'll destroy it, and a new label will spawn and fall from the top, snap to center, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29087443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to build with electron-packager within electron-forge I have created a default project with electron-forge. When I try to package my project with the command electron-forge, the process exits with the following error. What am I doing wrong? I followed the instructions to a tee at electron-forge. $ electron-fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/45229218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Post Authentication custom response to client from Cognito We have lambda triggers set up in Cognito for Pre-Authentication/Post-Authentication, and Post Confirmation. In all the triggers we are checking against our DynamoDB in order to proceed and the db entries are coming properly as expected. However, we also wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/53722975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove Baidu's cookie How to remove viglink & baidu's cookie. I create a empty html file and testing on my Chrome I notice there are 3 files is reading from baidu 2 from viglink I use Chrome Network to check this what files are reading. I'm not sure what are those files for, r those secure? I check cookies an...
{ "language": "en", "url": "https://stackoverflow.com/questions/18984252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes - Android studio 2.0 beta 6 I updated to the last version of Android studio 2.0 Beta 6 with the gradle : dependencies { classpath 'com.android.tools.build:gradle:2.0.0-beta6' } The app works perfectly fine on emulator...
{ "language": "en", "url": "https://stackoverflow.com/questions/35680979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Haskell: Shuffling deck I'm working on a lab in which we work with randomness and monads. The parts of the lab are: * *write a function randR that generates a random numbers within a given range *write a function rollTwoDice that simulates rolling two dice *write a function removeCard which randomly removes a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/19967276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ project is build successfully but gives g++ compiler error message I have an C/C++ project. Build Tool chain: Cross GCC Current builder: CDT Internal Builder When I build my project, I got 2 error on the Problem tab: Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-i...
{ "language": "en", "url": "https://stackoverflow.com/questions/25911243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: http.host: 0.0.0.0 - ERROR lookup logstash : no such host I'm deploying ELK on k8s but getting error on Filebeat kubectl describe pod filebeat-filebeat-rpjbg -n elk /// Error: Warning Unhealthy 8s (x5 over 48s) kubelet Readiness probe failed: logstash: logstash:5044... connection... parse host......
{ "language": "en", "url": "https://stackoverflow.com/questions/74685600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: receive an alert when job is *not* running I know how to set up a job to alert when it's running. But I'm writing a job which is meant to run many times a day, and I don't want to be bombarded by emails, but rather I'd like a solution where I get an alert when the job hasn't been executed for X minutes. This can b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7317655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get .NET CryptoStream to read last block I have a client/server setup with CryptoStream around TcpClient's NetWorkStream on both ends. Communication works great biderectionally when I read from the NetworkStream directly but with CryptoStream I can't read a single block of available data. I am closing the Cry...
{ "language": "en", "url": "https://stackoverflow.com/questions/20671774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Append records to existing hive table does not write all records I am trying to append some records to an existing hive external table created from a csv file stored in HDFS. The problem is that only a portion of the dataset is written, can anyone help me? Here is my code with 2 alternatives: if fs.exists(jvm.org.ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/74876790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting the Ids of a table where 3 or more column are duplicates I am trying to select the ids of 3 columns that I have in my table that all contain the same data except for when the first occurrence of the duplicate was inserted. For example my table is as follows: Select * From Workers +----+--------+--------+--...
{ "language": "en", "url": "https://stackoverflow.com/questions/61581037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sha1 encryption of password when creating SOAP request in c# Im trying to integrate using SOAP to a web service but I'm getting stucked in the authorization part, and more specifically when creating sha1 encrypted password. Documentation for this specific authorization can be found at https://www.beautyfort.com/api...
{ "language": "en", "url": "https://stackoverflow.com/questions/57887351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the difference between char *exp="a+b" and char exp[]="a+b"? Are they stored the same way in memory or they differ? Also, why we can't use int *exp = [1,2,3] for creating an array of integers using pointers if we can use char *exp? A: In this declaration char *exp="a+b"; the compiler at first creates the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/72614962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Which Formula/Function To Use to Rotate a Series Of Points What mathematical formula can I use to rotate a series of 3d Vectors about a given 3d Vector? I am attempting to use the 3rd party library: Math.NET Iridium to calculate my rotations but I dont know what formulas or mathematical concepts I should use. As you...
{ "language": "en", "url": "https://stackoverflow.com/questions/25152542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: close the gap in the bottom of a relativelayout After creating a relative layout on rendering it, I observed that there is space below the layout that is not needful. I have ensured that all the height of the elements used has a wrap_content attribute as the specification parameter for the height. Below is the snipp...
{ "language": "en", "url": "https://stackoverflow.com/questions/45545593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set text on uiimage center? UIGraphicsBeginImageContext(targetSize); NSString *txt = @"my String"; UIColor *txtColor = [UIColor whiteColor]; UIFont *txtFont = [UIFont systemFontOfSize:30]; NSDictionary *attributes = @{NSFontAttributeName:txtFont,NSForegroundColorAttributeName:txtColor}; [txt drawAtPoint:CGPo...
{ "language": "en", "url": "https://stackoverflow.com/questions/33797445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Any reference for a good free tamil font for android app I have an android application that displays content in tamil. I understand how I can display tamil fonts in my application by adding a font. My problem is, the fonts that are being used for web is not properly displaying in android app. So, the questions are....
{ "language": "en", "url": "https://stackoverflow.com/questions/6319405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Power BI - Percentage change from year on year based on avg sale price in row Im new to PowerBI and was wondering if someone could help me how to calculate a Year on year % change. I have made a measure for Total Sales in the year and Average sales Price. I would now like to calcualte the %change of the Avg sale pri...
{ "language": "en", "url": "https://stackoverflow.com/questions/61189086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery validationEngine validate on email domain Im using this validation plugin: https://github.com/posabsolute/jQuery-Validation-Engine The email input field i have should validate if its a reall email and not allow certain email domains (hotmail, gmail). i have read trough the whole readme on the plugin website b...
{ "language": "en", "url": "https://stackoverflow.com/questions/12474795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rules with two % marks in GNU make I'm trying to use GNU make to automate my analysis pipeline. I have a script that reads files with the pattern data/sub001/sub001_input.txt and writes to data/sub001/sub001_output.txt. How could I write a rule that matches this pattern for each subject? Here is my attempt so far: #...
{ "language": "en", "url": "https://stackoverflow.com/questions/45825031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Releasing Managed Objects in Objective-C Okay, PLEASE bear with my description of my situation: I have a Core Data model that (in a simplified description) includes a GridManager object. The GridManager holds a set of Grid objects (via a to-many relationship). The Grid object contains a set of Cell objects (via a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2017975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get proper line breaks for code cells when converting iPython notebook to tex? I am writing a documentation for a python application. For this I am using iPython notebook where I use the code and the markdown cells. I use pandoc to transform the notebook to a .tex document which I can easily convert to .pdf. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33776599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Toggle based on value in drop down <form> <p><strong>Would you like to receive the Stay Safe newsletter</strong> <select name="newsletter"> <!-- dropdown box allows user to select if they want to receive newsletter--> <option value="yes">Yes</option> <option value="no">No</option> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53830322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Reverse Travelling Salesman Module I'm learning VBA slowly and am working on a version of the travelling salesman problem to help myself out. In this particular case, the salesman moves from city to city by selecting the longest route possible between two points. The routes are calculated using cartesian coordinates...
{ "language": "en", "url": "https://stackoverflow.com/questions/19675284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: socket.io-redis keeps throwing NOAUTH error I am trying to connect to my redis server that password protected but for some reason I keep getting the error: events.js:141 throw er; // Unhandled 'error' event ^ ReplyError: Ready check failed: NOAUTH Authentication required. at parseError (/home/ubuntu/...
{ "language": "en", "url": "https://stackoverflow.com/questions/43646577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Self referencing loop detected in ASP.NET Core When I try to serialize some domain objects using ASP.NET Core Newsoft JSON.NET it is throwing an exception because it is detecting a self referencing loop. In ASP.NET 4 we used to fix it globally this way: JSON.NET Error Self referencing loop detected for type How can...
{ "language": "en", "url": "https://stackoverflow.com/questions/34753498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Rails subclass method not overwriting the parent class method in favors_controller I have private def current_resource @favor ||= Favor.find(params[:id]) if params[:id] end end and then in application_controller I have def current_permission @current_permission ||= Permission.new(current_user) end ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35118558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you decode html in a url? In my project I have got a "back button" that is calling a javaScript function that remembers the previous url when called. //back button function function goBack() { $window.history.back(); } the url being remembered or being called when the back button is clicked contains an ID a...
{ "language": "en", "url": "https://stackoverflow.com/questions/26927085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IntelliJ IDEA - Error: JavaFX runtime components are missing, and are required to run this application I'm running IntelliJ IDEA Ultimate 2018.2.5 with JDK 11.0.1 and JavaFX 11 from OpenJFX. I know it's a common error and I tried many of the proposed fixes but nothing works. No matter which JavaFX project I try to r...
{ "language": "en", "url": "https://stackoverflow.com/questions/52906773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Sending ETX to NSTask I have an NSTask that's executing another program I wrote. In that command line program, it expects the ETX (control-C, or ASCII value 3) to pause one of its processes and call another function. How can I send this? I know I'm sending commands correctly because the program interacts with ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/7776251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: "Deprecation Notice" error in PhpMyAdmin with ubuntu 20.04, php8.0 I'am getting error when i login to phpmyadmin Deprecation Notice in ./libraries/classes/Di/ReflectorItem.php#82 Method ReflectionParameter::getClass() is deprecated Backtrace ./libraries/classes/Di/ReflectorItem.php#50: PhpMyAdmin\Di\ReflectorItem->_...
{ "language": "en", "url": "https://stackoverflow.com/questions/65745714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: I am not able to latch and read from an 8253 counter in mode 2 I am a beginner to proteus. I want to latch and read a constantly running counter in mode 2 to generate a random number between 1 and 5. this is the emulator code. When we latch it the output gets latched and the value in AL is 11111111. Can someone help...
{ "language": "en", "url": "https://stackoverflow.com/questions/55776074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NHibernate simple one-to-many mapping using NHibernate.Mapping.Attributes Can anyone provide me with a web-link which describes attribute-based simple one-to-many mapping very clearly? For example (A company can have only one country of origin. But there are many Companies in a Country): class Company { } class Cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/1986472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to clone objects in Amazon S3 using RestS3Service so i'm trying to clone objects in a folder on my S3 (Amazon S3) account. But i was wondering if there a way to do it without having to write the file to my local system first, then uploading that file back up to S3? eventually i want it to be fully recursive clon...
{ "language": "en", "url": "https://stackoverflow.com/questions/5280030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Post Data to Webservice URL I have problem with my code for posting data to webservice. Can someone please, tell me where I am going wrong. I need to post three fields (doctorId-STRING, patientId. STRING, date-STRING) to this address: http://www.walter-dev.com/doctor/public/setTermin How to make this right? NSS...
{ "language": "en", "url": "https://stackoverflow.com/questions/26278156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Write struct to csv file What is an idiomatic golang way to dump the struct into a csv file provided? I am inside a func where my struct is passed as interface{}: func decode_and_csv(my_response *http.Response, my_struct interface{}) Why interface{}? - reading data from JSON and there could be a few different struc...
{ "language": "en", "url": "https://stackoverflow.com/questions/33357156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Fastest way to apply function involving multiple dataframe I'm searching to improve my code, and I don't find any clue for my problem. I have 2 dataframes (let's say A and B) with same number of row & columns. I want to create a third dataframe C, which will transformed each A[x,y] element based on B[x,y] element. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/42833607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Website/Files organisation for Ajax calls I am just getting started with Ajax, and I wonder how to organize my ajax scripts and php files (which process the ajax function). With Php it was easy, one functions library functions.php with all my classes and methods that I can call whenever I need them. My first refle...
{ "language": "en", "url": "https://stackoverflow.com/questions/42102156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable antivirus and enable windows defender using powershell How to firstly disable antivirus from computer and enable windows defender using powershell command: Set-MpPreference -DisableRealtimeMonitoring $false I'm performing this command to enable the windows defender but due to inbuilt antivirus I'm no...
{ "language": "en", "url": "https://stackoverflow.com/questions/51665652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Skip multiple iterations in loop I have a list in a loop and I want to skip 3 elements after look has been reached. In this answer a couple of suggestions were made but I fail to make good use of them: song = ['always', 'look', 'on', 'the', 'bright', 'side', 'of', 'life'] for sing in song: if sing == 'look': ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22295901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: How does Netbeans keep track of the projects' locations? When you create a new Java project in Netbeans, you get to choose where it will be stored. My question is where does Netbeans keep a refrence to such created projects? I looked in /etc/netbeans.conf but I did not find any refrence to the location I choose in N...
{ "language": "en", "url": "https://stackoverflow.com/questions/41108057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Group Object based on ending Number Here is the sample object { abc_0: 'a', bcd_0: 'b', cde_0: 'c', abc_1: 'a', bcd_1: 'b', cde_1: 'c', def_1: 'd', } I want to group via the number they end with and wante the expected output to be { 0: {abc: 'a', bcd: 'b', cde: 'c'}, 1: {abc: 'a', bcd: 'b', cde: 'c...
{ "language": "en", "url": "https://stackoverflow.com/questions/70272226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: malloc handling - identifier not found issue I'm using visual studio to write a c code. This is the malloc code line i was told to use: root = (Coor)malloc(sizeof(Coor)); It doesn't let me use it for the following error: identifier not found Can anyone tell me why it happens and how to fix it? Thanks, A: Please c...
{ "language": "en", "url": "https://stackoverflow.com/questions/17254127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Change default popup menu submenu arrow I'm using default PopupMenu. I've customized it in my XML style, and now it has a dark style. but I have a problem now: please look at this screenShot I've prepared: As you can see the arrow is kind of hard to see and I really wish to avoid using popup window now. Is there an...
{ "language": "en", "url": "https://stackoverflow.com/questions/44221594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: move onclick function to other element with jquery - reading attr() returns function I have an <img src="blabla.png" onclick="someFunction();"> tag that I want to replace with an <a> tag (created dynamically). I want to move the onclick from the to the but when I read attr("onclick") it returns: function onclick(e...
{ "language": "en", "url": "https://stackoverflow.com/questions/4736492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Order by Value in Spark pairRDD from (Key,Value) where the value is from spark-sql I have created a map like this - val b = a.map(x => (x(0), x) ) Here b is of the type org.apache.spark.rdd.RDD[(Any, org.apache.spark.sql.Row)] * *How can I sort the PairRDD within each key using a field from the value row? *...
{ "language": "en", "url": "https://stackoverflow.com/questions/30469864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React Hooks - Retry Failed Async Requests Inside of useEffect that is Dependent on Props Does anybody know what patterns are considered best practice when it comes to retrying async network requests that fail within a useEffect hook? I have the following component: import React, {useEffect, useState, useCallback} fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63605264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Duplicated rows on getting Categories of a Publication I have a table of Publications Id | Title | Content ... 1 | 'Ex title 1' | 'example content 1' 2 | 'Ex title 2' | 'example content 2' ... And a table of Categories CategoryId | PublicationId 1 | 1 2 | 1 2 | 2 3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49795201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I typedef unnamed struct/class in c++? In C, I can typedef unnamed (no tag) struct: typedef struct { int val; } Foo_t; But when I tried to do the same in c++: typedef struct { A(int a) : a_var(a) {} int a_var; } A; typedef struct : public A { B(int a, int b) : A(a), b_var(b) {} int b_var; } B;...
{ "language": "en", "url": "https://stackoverflow.com/questions/63425162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP connecting to SQL I want to connect to sql server with php. I have a table of users but I can't connect the server. Login.php <html> <form action='LoginAction.php' method='POST'> Username: <input type='text' name='username'/><br/> Password: <input type='password' name='password'/><br/> <input type='sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/18869306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is calling a constructor faster then setting a field Mono? I'm working on implementing Mono to my C++ project and I have a C# class that holds a single integer. Something like this: public class TestClass { int number; } And I have another Class that has a field of TestClass. Something like this: public class A...
{ "language": "en", "url": "https://stackoverflow.com/questions/75193182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Behavior of decltype Say I have an object of some of stl container classes obj. I can define other object of same type this way: decltype(obj) obj2; But I can't declare iterator for the container this way: decltype(obj)::iterator it = obj.begin(); Why? Am I doing something wrong? A: It's because of the way that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/6101728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: VB.NET: How to compare different generic lists I have a method where I'm taking a generic object and using TypeOf to check what has been passed through. Now I would like to pass it a List(Of T) (T being anything) and no matter what T is I'd like to do the same thing to this list. I tried the following: public sub fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/5166748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle UITableView with different cell height? each cell in my table has a label, with maximum three lines, so the cell height depends on the label's height, I know the delegate method that returns height for a specific cell(NSIndexPath), but I need to get the actual cell in order to determine the height, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/6853419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load large data from MySQL from R I have a large table in MySQL (about 3million rows with 15 columns) and I'm trying to use some of the data from the table in an R shiny app. I've been able to get the connection and write a query in R: library(DBI) library(dplyr) cn <- dbConnect(drv = RMySQL::MySQL(), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64379624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use CASE in JOIN condition I am getting error while using CASE in JOIN statement. Below is the query. I have masked the contents. Please let me know where I am going wrong. As it looks fine to me. Pasted the error aswell. SELECT S1.NR AS "a", S1.ZTV AS "b", S1.RNR AS "c", S1.TW AS "d", S1.S...
{ "language": "en", "url": "https://stackoverflow.com/questions/64065052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rows not displaying properly in Tkinter GUI I'm working on setting up a GUI using TKinter creating a basic program which allows me to add, update, remove and view books that I have in my personal library. I am struggling on 2 parts of the code: * *When I click on View Records, the textbox in the GUI should show ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42265024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Partitioning a JSP page accessed through an ajax call I have a page in which I am making an ajax call, which in turn gets forwarded to a jsp page and returns a table constructed in this jsp. Till now this jsp used to return an html which the original page(table) used to append in a particular div. But now, we have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/6249814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does greasemonkey on firefox support @match? I want to use the @match directive but do not want to break compatibility with greasemonkey. Also, as unbelievable as it may seem, I don't have firefox installed on my system and thus can't test this myself. A: Older versions of Greasemonkey will ignore the @match direc...
{ "language": "en", "url": "https://stackoverflow.com/questions/6786613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Split cell value into two columns in Excel In Column A I have values as follows: A1: 1234567890;1234567890;1234567890;1234567890;1234567890;1234567890; A2: 1234567890;1234567890 A3: 1234567890;1234567890;1234567890; Now I want to store value after 33rd character or third semi-colon into the...
{ "language": "en", "url": "https://stackoverflow.com/questions/21574939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Hibernate problems with Postgres on TomEE i'm working on a WebApp, written in Java running on TomEE. As persistence layer i'm using Hibernate. Persistence.xml is configured, The entityManager is instantiated by TomEE using @PersistenceContext(name = "persistentUnitJndi", unitName = "docTracingPU") in a @Stateless(...
{ "language": "en", "url": "https://stackoverflow.com/questions/19051180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Procedural Approach into Set Based Approach in Sql-Server We are using procedural approach (while loop) for inserting records into a particular table. the insert syntax is like below, DECLARE @CNT INT = 0, @WEEK DATE = '2015-11-01', @FLAG INT CREATE TABLE #Tmpdata (officeId int,id smallint, weekDate date,s...
{ "language": "en", "url": "https://stackoverflow.com/questions/33523186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.IO.EndOfStreamException when scaffolding Npgsql.EntityFrameworkCore.PostgreSQL database I am trying to scaffold an existing Postgres database with the following command dotnet ef dbcontext scaffold "<connection string>" Npgsql.EntityFrameworkCore.PostgreSQL -v Which results in the exception below: Npgsql.Np...
{ "language": "en", "url": "https://stackoverflow.com/questions/73288745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Relational Database Can you do more than one clause in SQL without using aggregation and only: selection, join? Thanks. A: If you mean having multiple WHERE's (ands), then yes. SELECT user.id, post.title FROM user LEFT JOIN post ON (post.user = user.id) WHERE (post.title LIKE '%Monkeys%') AND (user.id > 3)...
{ "language": "en", "url": "https://stackoverflow.com/questions/993660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checking if my array of pointer string is an integer EDIT -> My problem with finding if was an integer got solved. My next problem is how to get the size of the array. Example: char **str = [hello][world] -> returns 2 char **str = [hello] -> return 1 char **str = [hello][world][yes] -> returns 3 The way I am doing r...
{ "language": "en", "url": "https://stackoverflow.com/questions/69378802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploy create-react-app-typescript on Google App Engine I am triying to deploy an application created using CRA with Typescript into the Google Cloud App Engine service, however, for some reason, the appspot link keeps loading forever until a 502 Bad Gateway appears (the error appears sometimes, normally it just kee...
{ "language": "en", "url": "https://stackoverflow.com/questions/61586978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Graph/Plots on ANDROID I am new to android and trying to learn creation or plotting of graphs in android. I've come across 2 libraries: * *GraphView *AndroidPlot. My intent would be to receive some sound file and plot it on a graph. So, for this purpose which library would be better. Also I wanna know, where I...
{ "language": "en", "url": "https://stackoverflow.com/questions/17398247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error Installing AppFabric in Windows 10 I have tried installing AppFabric multiple times on Windows 10 Pro as an administrator. I have read many posts related to it. Somewhere it is mentioned to delete AS_OBSERVER or delete PSModulePath. I have tried both but still I couldn't able to install. The error log is as f...
{ "language": "en", "url": "https://stackoverflow.com/questions/33676265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python 2.7 Using a FOR Loop Hey guys basically Im trying to use a FOR loop to ask the username of the actor and actress to search for and printing out if that certain actor is in the movie as well as printing if they are not in the movie. Im very stuck so far and do not know how to ask my code for my actors print (...
{ "language": "en", "url": "https://stackoverflow.com/questions/40592407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CallbackFilterIterator and Prime numbers generation issue I'm trying to use the PHP \CallbackFilterIterator working in a script that prints Prime numbers. Basically what I'm trying to achieve is a very basic Sieve of Eratosthenes, see this nice video from Computerphile. Here's the simplified version of the code <?ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/63672136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is Chrome issuing a "Confirm Form Resubmission" even when I'm using the PRG pattern? After processing a POST request I am doing the very standard thing of redirecting to the same page so that the user won't get a "Confirm Form Resubmission" (or equivalent) dialog if they reload the page. I am using a 303 respons...
{ "language": "en", "url": "https://stackoverflow.com/questions/15036267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Troubles with Xdebug 2.1.0, XAMPP 1.7.3, Win7 32bit Looking for some help with getting xdebug to behave with my setup. My goal is to be able to debug Joomla code. First let me preface saying that about a year ago I was able to get a version xdebug to work with Eclipse PDT 2.1 with xampp under Vista 32bit. However, n...
{ "language": "en", "url": "https://stackoverflow.com/questions/4630327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net Core Razor Pages Post From _layout What i'm trying to do is change the theme of the application using a check box that is populated as dark or light from the server's session. I know the theme (Style Sheet) can be changed with JavaScript but that leads to loading the default Bootstrap Style Sheet then the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/60157396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Class based components or anonymous components? From the docs you can make two types of components. I'm struggling to see why you would pick one over the other? As with anonymous components, you can declare data with @props. Why would you use one implementation over the other? A: Class base components can be though...
{ "language": "en", "url": "https://stackoverflow.com/questions/65414225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The Type of one of the Expression in the join clause is incorrect.Type inference failed in the call to join Getting this error in GetDiseaseBySymptoms method below when trying to join two list of type DiseaseSymptomMapping & Symptom. Can anyhelp with better understanding suggest what went wrong with the code of Get...
{ "language": "en", "url": "https://stackoverflow.com/questions/16807173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bulk insert data using recordset and return new ID's quickly How can I bulk insert a number of records and obtain the last inserted ID of each quickly (classic asp/ado)? I have tried this but it only runs at about 3 rows per second which is a joke. rs.Open "myTable", cn,adOpenKeyset, adLockOptimistic do while NOT rs...
{ "language": "en", "url": "https://stackoverflow.com/questions/11689550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIImageView ignores widthAnchor inside UIStackView I'm trying to align and scale an image inside a UIStackView: class LogoLine: UIViewController { override func viewDidLoad() { let label = UILabel() label.text = "powered by" label.textColor = .label label.textAlignment = .center...
{ "language": "en", "url": "https://stackoverflow.com/questions/66134698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# -> Roslyn -> DocumentEditor.ReplaceNode -> Code indentation and format I have a problem that when I use DocumentEditor.ReplaceNode everything works but the generated code is hard to read. Roslyn - replace node and fix the whitespaces Output looks like this with several strings on the same line: using System; usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/49424690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how can I transclude child component template into its parent in Angular 6+? Back in AngularJS, I created a simple smart table component that could be used like this for our team: <smart-table items="vm.people"> <column field="name">{{row.firstname}} {{row.lastname}}</column> <column field="age">{{vm.getAge(...
{ "language": "en", "url": "https://stackoverflow.com/questions/52319099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: std::remove_reference clarification with code snippet I am trying to understand how to use the std::remove_reference functionality in type_traits. This is the piece of code that I made template <class T> class example { public: T some_int; example(T inty) : some_int(inty){std::cout << "constructor called!" <...
{ "language": "en", "url": "https://stackoverflow.com/questions/70273948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }