text
stringlengths
15
59.8k
meta
dict
Q: I want a list to append more than one arguments. python d =[] for i in range(len(X_test)): d.append(X_test[i], y_test[i], y_pred[i]) print(X_test[i]," ", y_test[i], " ", y_pred[i]) print(d) This is output --------------------------------------------------------------------------- TypeError ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72748363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove first selected tab from sheets selected for printing I have the code, which identifies filled tabs with corresponding responsible person and then prints them as one file: Sub printS() Dim sht As Worksheet For Each sht In ThisWorkbook.Worksheets With sht If Not IsError(Applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/46465526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to activate centralWidget in QT Designer I was looking at this article How to make a Qt Widget grow with the window size? but when i got to the answer I got stuck on "activating" the central widget. I notice an icon with a red circle so I guess that means its disabled. I've been searching the net to try to fig...
{ "language": "en", "url": "https://stackoverflow.com/questions/27536884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: why expandable collapse not working when i click expandable button for collapse it not working how can solve this problem ExpandablePanel( collapsed: ExpandableButton( child: Container( height: 54.h, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75604612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Pyspark ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:50532) Hello I was working with Pyspark, implementing a sentiment analysis project using ML package for the first time. The code was working good but suddenly it becomes showing the error mentioned above: ERROR...
{ "language": "en", "url": "https://stackoverflow.com/questions/51359802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Customize error messages in the database with connection I'm new to PHP, and wanted to make my connection back a custom message without making show those warnings. But when I add the check nothing happens, my complete code below. <?php class Connect { private $Connect; public function Connect() { $...
{ "language": "en", "url": "https://stackoverflow.com/questions/29883780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Arithmetic Operations on complex type in C not optimized I thought the function f below, when compiled, will be optimized and will be equivalent to the function g below. // 4 multiplications and 2 additions. // 2 multiplications and 1 addition for imaginary part will be discarded. float f(float complex x, float comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/65144034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to start animations one after another for a view? I'm trying to play animations one after another on pre-honeycomb devices. I've tried to play animations one after another using the AnimationSet and the startOffset value of each animation without luck. I've also tried to create a new class that manages the anima...
{ "language": "en", "url": "https://stackoverflow.com/questions/16320629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: use java class service inside rules I want to declare service class inside drl file to call the function,I used the following code but the then code don't work after declaring RouteService inside when RouteService.java public class RouteService { @Inject RouteRepository routeRepository; public void Save(Route ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35378976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mysql LIKE query doesn't work So I'm trying a basic query like this: SELECT `City`.* FROM `city` WHERE (City 'LIKE %a%') But I get this error in return: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''LIKE %a%') LIMIT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16817855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: iOS Core Graphics fill inverse of path? I am drawing a custom shape using CGPathCreateMutable() and CGPathAddArcToPoint. As expected, when I close and fill my path I get the shape which I just drew. However, what I am looking to do is fill the inverse of the path that I have just drawn. That is, if I have drawn a ci...
{ "language": "en", "url": "https://stackoverflow.com/questions/11026658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting VCTargetsPath to multiple directories So, I've been trying to generate cocos2d-x static libraries, and I ran cmd as admin, and entered cocos gen-libs After about ten minutes, I got an issue about cpp windows props. I found out through here that I was supposed to set the VCTargetsPath so gen-libs could use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44908436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Server side clusters of coordinates based on zoom level Thanks to this answer I managed to come up with a temporary solution to my problem. However, with a list of 6000 points that grows everyday it's becoming slower and slower. I can't use a third party service* therefore I need to come up with my own solution. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/1487704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need advice (GUI, widgets) - implement area selection on a plot (I am new to GUI programming; experienced programmer otherwise) (Using wxPython; but generic advice welcome) I am looking for advice / direction on implementing a widget that can do area selection on a plot. Any pointers from experienced users would be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/845799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent column expanding height of container I have a two-col layout built with Vuetify, where the left column contains media of varying aspect ratio, and the right column contains a playlist. When the playlist gets too long, it expands the height of the container leaving an empty area under the media. I'm trying to...
{ "language": "en", "url": "https://stackoverflow.com/questions/60169432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check SAP Netweaver and ABAP Version Information I have the following SAP configuration: System-->Status SM51: Q1. Which release is this: SAP ERP Central Component (ECC) 5.0: 2004 SAP ERP Central Component (ECC) 6.0: October 2005 SAP enhancement package 1 for SAP ERP 6.0: December 2006 SAP enhancement package 2 f...
{ "language": "en", "url": "https://stackoverflow.com/questions/40243603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Processing large amounts of data quickly I'm working on a web application where the user provides parameters, and these are used to produce a list of the top 1000 items from a database of up to 20 million rows. I need all top 1000 items at once, and I need this ranking to happen more or less instantaneously from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/6614471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I use show component inside a ListItemText? I used the ListItemText to display the list and my goal is to use the show component in the react-admin when each row of the list is clicked, but the function related to the display is not executed? How should it be done? Contacts.js /// --- List --- export const C...
{ "language": "en", "url": "https://stackoverflow.com/questions/65256085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SFDC - Query all contacts shared with a given user? I'm somewhat of a SFDC novice when it comes to integration, but is there any way I can query just the contacts shared with a given user, taking into account all the ways the share can occur? Essentially just see the same contacts the user would see in within the pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/37192455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make .NET embedded web browsers accept complex HTML+JS content I'm experimenting with Windows 8 "Modern" application programming. What I want to do is use a WinRT WebView component to host a map rendered by the OpenLayers web mapping API. I created a small "Metro"/C# application which hosts a WebView as the m...
{ "language": "en", "url": "https://stackoverflow.com/questions/12196781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Amazon Transcribe Python API: Event handler processes audio only after the stream ends (Didn't get answer in AWS re-post, so trying here) I am sending streaming audio data from web browser as a blob via websocket. In backend, I am using Django Channels' AsyncWebsocketConsumer to receive it, then send it to Amazon Tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/72875996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upload Bitmap in a Stream using WCF I am trying to upload images captured from my WebCam to a WCF Service. I have the whole service that works bug free - tested with images/files on my HD. The problem is, that the image from the webcam is saved in a BitMap (C#). The service takes Stream as input parameter. When I us...
{ "language": "en", "url": "https://stackoverflow.com/questions/9615894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure RabbitMQ with LDAP for AD Groups? I had managed to configure RabbitMQ with LDAP and authenticate it, if it is for an individual AD account. I am using the following configurations: RabbitMQ Config file: auth_backends,[{rabbit_auth_backend_ldap, rabbit_auth_backend_internal},rabbit_auth_backend_inter...
{ "language": "en", "url": "https://stackoverflow.com/questions/58970322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is this possible to code like this : public static T GetValue(string name,Type T){...} I need to code like this: public static T GetValue(this SerializationInfo si, string name,Type T) { return (T) si.GetValue(name, typeof (T)); } I already know that the following code can work properly public static T GetValue...
{ "language": "en", "url": "https://stackoverflow.com/questions/5906513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does JavaScript's document.cookie require a web server? 'document.cookie' in JavaScript does not work without a web server. Using the protocol for local file-access 'document.cookie' will always contain an empty string. Please see the accepted answer in this StackOverflow Question! As far as I know are cookies t...
{ "language": "en", "url": "https://stackoverflow.com/questions/44744085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't lock! stop others from updating? This is my class: class Plan < ActiveRecord::Base def testing self.with_lock do update_columns(lock: true) byebug end end def testing2 self.lock! byebug end end I opened two rails consoles. In first console: p = Plan.create => (basica...
{ "language": "en", "url": "https://stackoverflow.com/questions/54472961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to click an image using selenium I have the below HTML, kindly help me in writing a java code to hit the "Patient" Button. <span id="addPat"> <span style="cursor: hand;" onclick="javascript:AddPatient();"> <img width="17" height="17" class="btnRowIcon" src="../Images/V10Icons/Add.gif"/> A: You'll h...
{ "language": "en", "url": "https://stackoverflow.com/questions/20047935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Possible to store and use @AuthenticatedPrincipal after login I have a Spring-boot JavaFX 11 client and Feathersjs (node) backend connected via websocket using socket.io.client-java. I am able to establish connection, make request and so on but I was thinking if I am able to store the authenticated user information ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64406896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing socket.io with mocha io.sockets.on('connection', function (socket) { // getSessionID is parsing socket.request.headers.cookie for sid let sessionID = getSessionID(socket); }); i'm using socket.request.headers.cookie to get the session id and then mapping that to socket id.... So my pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/46477242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to find out if a value exists twice in an arraylist? I have an integer arraylist.. ArrayList <Integer> portList = new ArrayList(); I need to check if a specific integer has already been entered twice. Is this possible in Java? A: My solution public static boolean moreThanOnce(ArrayList<Integer> li...
{ "language": "en", "url": "https://stackoverflow.com/questions/14177897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: using Linq with dynamic c# objects When i run the following code : var aList = new List<string>{"a", "b", "c"}; dynamic a = aList.Where(item => item.StartsWith("a")); dynamic b = a.Count(); Microsoft.CSharp.RuntimeBinder.RunTimeBinderException raises. But when I write a code snippet like this: public interface IInt...
{ "language": "en", "url": "https://stackoverflow.com/questions/6677962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 404 Error After Adding Argument To URL Path Ive got a users profile page and an update_profile page. My projects urls.py: re_path(r'^profile/(?P<username>[\w-]+)/$', include('users.urls')), My users.urls: path('', views.profile, name='profile'), path('update_profile', views.update_profile, name='update_profile'), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62295616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: dismissModalViewController with transition: left to right I was using a nice method to dismiss my modal view controller: [self dismissModalViewControllerWithTransition:2]; which makes a slide transition from left to right, like a navigation controller does to pop a view. As this method is a non-public method, apple...
{ "language": "en", "url": "https://stackoverflow.com/questions/11412467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Read fields in Lotus Notes Documents Through VBA I am trying to write VBA code that will read data from fields in a Lotus Notes document. Currently, I am able to read data using the FieldGetText method, however this only works when I have the document open. I need to be able to loop through documents without opening...
{ "language": "en", "url": "https://stackoverflow.com/questions/44162649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to enable labels and contours for various layers (geoJson) in leaflet? I'm writing a web-viewer with Leaflet using multiple layers (some with Tiles and some with geosjson contours) that I had processed using GDAL. I'd like to display a label with the value of the contour when I activate the respective layer, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/71620130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way to synchronize XmlWriter access to a file to prevent IOExceptions? There are multiple places in an application which call XmlWriter.Create on the same file, all accessed through the following function. When one calls while another is still writing, I get an IOException. What's the best way to loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/442235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: I am trying to make a program that asks a user for file.txt and use the frequency of the letters to draw a bar chart. And i am stack I am trying to write a program that asks a user for file.txt and uses the frequency of the letters to draw a bar chart. And I am stuck. I'm not able to get the frequency of the letters...
{ "language": "en", "url": "https://stackoverflow.com/questions/61876304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace a string with a new string on a condition I'm making a program where a user inputs name, P, S or T, and number of rounds. It will then check if they are equal, or not (one wins depending on condition of choices? This is a rock, paper, scissors game). And then, if they are equal, I want it to print a replaced...
{ "language": "en", "url": "https://stackoverflow.com/questions/31229126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: special characters problem after cleaning stop-words I am new to text analysis with Python and struggling to clean my data from special characters. I have survey data where one of the columns has comments. I want to analyse these comments and find the most frequent words. I try to exclude the stop words by using pan...
{ "language": "en", "url": "https://stackoverflow.com/questions/71744412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP keep record of unsuccessful logins How can I keep a record of the unsuccessful logins to my website? I would like the users browser, IP address, the username that was entered to attempt to login with, and the date and time the login was attempted, all to be stored in a text file. Although this would be easier in...
{ "language": "en", "url": "https://stackoverflow.com/questions/30911623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ViewModel event fires multiple times I'm using MVVM Light for my application and I have also implemented the INavigationService for going back/for between pages. So in a common scenario, it's like this MainPage > Categories > Rounds > DataPage. In the DataPage, I'm making a request to fetch the results and depending...
{ "language": "en", "url": "https://stackoverflow.com/questions/44312721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do i get the error " duplicate key value violates unique constraint "" DETAIL: Key (id_application)=(PR-1005576039) already exists my models.py def document_id(): random_numbers = random.randint(1000000000, 1009999999) doc_id = "PR-" + str(random_numbers) return doc_id class Document(models.Model): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73918243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert string text from notepad into array line by line? I am a beginner in programming. I am currently learning how to convert texts from notepad into array line by line. An instance of the text in notepad, I am a high school student I love banana and chicken I have 2 dogs and 3 cats and so on.. In th...
{ "language": "en", "url": "https://stackoverflow.com/questions/41512196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get stats how much lines are committed by a user? Is there any way to get stats how much lines are committed by a certain user (in all repositories he contributes to)? A: On Github for a particular repository you can go to the graphs tab: As you can see there are a number of options there. To get the number...
{ "language": "en", "url": "https://stackoverflow.com/questions/17850249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Type 'number' is not assignable to type 'Element' I am creating custom hook useArray in react with typescript which perform methods of array like push, update, remove etc. In js it is working fine but in ts there are some errors. below are the code from files: useArray.ts import { useState } from "react"; export def...
{ "language": "en", "url": "https://stackoverflow.com/questions/71909628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DELETE operation returns ERROR: There was an unexpected error (type=Forbidden, status=403). Forbidden I am working on a spring-boot project which includes thymeleaf, spring-security. It works fine when I perform - showing products-list, showing products-details, adding new product, updating existing product. But whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/57093492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i use orderby only for every 10 rows in postgres I need order every 10 row of a single column table and fetch the rows of n interval. Iam using where mod(rownum,10) for doing the second part. But i cant find a way to orderby every nth row before fetching the first and last row of n rows.Please help The table...
{ "language": "en", "url": "https://stackoverflow.com/questions/68791379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: inserting and selecting multiple values of checkbox in mssql stored procedure here is where I get the values of the checkboxes. It is working. ` echo "<div class='table-responsive' >"; echo "<table class='table table bordered' style='font-size: 14px'>"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53440025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Referencing current row in FILTER clause of window function In PostgreSQL 9.4 the window functions have the new option of a FILTER to select a sub-set of the window frame for processing. The documentation mentions it, but provides no sample. An online search yields some samples, including from 2ndQuadrant but all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/31396434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Rails 3 in controller test for field change In the controller of a Rails 3 app, I'm trying to test if a field changes and then flash a message on the redirect page. This is the code I'm trying: class CostprojectsController < ApplicationController def update @costproject = Costproject.find(params[:id]) @cos...
{ "language": "en", "url": "https://stackoverflow.com/questions/37278902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I output installation status using gtk in c? int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); return 0; } The above is just a empty winform,I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2730621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Limiting the two way binding with vuejs / variable values change when modifying another variable I have a 'client-display' component containing a list of clients that I get in my store via mapGetter. I use 'v-for' over the list to display all of them in vuetify 'v-expansion-panels', thus one client = one panel. In t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63385761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: navigate ListViewItem through arrow Up and Down Keys in C# I made a simple application where i have some TextBoxes and One ListItemView. When i enter a data into Textbox it shows result in ListItemView from database. And when i press Arrow keys Down it focus on ListItemView and then i Navigate ListItemView Through a...
{ "language": "en", "url": "https://stackoverflow.com/questions/50302875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is difference between PORTABLE and Machine Independent? This might be silly question but I am confused between portable and machine independent. What is Java, c#.net : portable or machine independent? A: Machine Independence Machine independence refers to the idea of software that can be executed irrespective ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16544203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AWS S3 Folder deleted History Is there ways to get deleted history of AWS s3 bucket? Problem Statement : Some of s3 folders got deleted . Is there way to figure out when it got deleted A: There are at least two ways to accomplish what you want to do, but both are disabled by default. The first one is to enable serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/35909182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Matlab ocv.dll error The Specified Module Could Not Be Loaded I am trying to use face detector of Matlab Vision Toolbox Example I am getting this error when I run the script: MATLAB:dispatcher:loadLibrary Can't load 'C:\Program Files\MATLAB\R2015a\bin\win64\ocv.dll': The specified module could not be found. C...
{ "language": "en", "url": "https://stackoverflow.com/questions/33844426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert to file from Hard Disk I'm trying to make a small app (dictionary) that translates from English to Arabic and vice versa. I have 2 files in the debug folder English.txt and Arabic.txt. I am trying in my form to make it possible for the user to insert new words to the files but I don't know if StreamWriters ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/30294031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i align my components vertically and 3 in a row? On my react project i want align my components to vertical. But when i use div and make it flex , my component width is changing and looking bad. what should i do ? I using tailwindcss but if you dont know it you can tell normal css too. I can use normal css t...
{ "language": "en", "url": "https://stackoverflow.com/questions/68430407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: validating a user's value length (javascript) I am practicing my javascript beginners knowledge on a simple form. I want the user to enter a 10 digits phone number (in case it's less than 10 or more than 10 I have created the invalid style class so the user will only be allowed to enter 10 digits for his phone numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/53274375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML options not showing I am adding some options through JavaScript to my HTML page but the options don't seem to be appearing. I do see them when I inspect them with F12 but they are not showing. Important Note: Using bootstrap! <select class="browser-default" id='userSelect' name="userSelect"> <option defau...
{ "language": "en", "url": "https://stackoverflow.com/questions/64892568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make global variables in android? After google i found three ways: 1. static variables 2. extending Application and using getApplicationContext 3. SharedPreferences A: EDIT: read comments pls, i don't want to delete it, because it may help other who fell into the same trap... Be careful with static variable...
{ "language": "en", "url": "https://stackoverflow.com/questions/13491109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue running java program from batch file, runs fine in IDE I'm doing some basic java homework for a class on my new laptop - issue is, I can't seem to get the program to compile and run from my batch file using the directions the instructor gave me. I've set the Path variable to my JDK inside the Environment Varia...
{ "language": "en", "url": "https://stackoverflow.com/questions/21244748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make a webpage display dynamic data in real time using Python? I am working on making a GUI front end for a Python program using HTML and CSS (sort of similar to how a router is configured using a web browser). The program assigns values given by the user to variables and performs calculations with those vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/28786932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keep getting "None" at every input statement I was just making a Rock , Paper and scissor game in python(Version 3.9+) but whenever I try to run , there is NONE written at every input statement... My whole program works fine but I am really annoyed with "NONE" is there anything I am doing something wrong in my cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/70516213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scala IDE failing to be installed I have checked here but I cannot find anybody with the same kind of issue. I am trying to install the 4.7.0 version of the Scala IDE based on Eclipse available at http://scala-ide.org/download/current.html for Windows 10. While the download seems to be working fine, once I unzip the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75509176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerPoint VBA - Click on shape then press another shape to change the colour I am new to VBA (since this morning so please treat me like an idiot and you will be about right!) and am stuck on something that seems as though it should be very simple. I am working in PowerPoint and have a set of circles and below them...
{ "language": "en", "url": "https://stackoverflow.com/questions/20504384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to show week number using Angular material v12 I am using Angular material datepicker. https://material.angular.io/components/datepicker/ Is there is way to show week numbers of this datepicker? A: Unfortunately, no. It's been requested from the Angular Material team but they responded with this: https://github...
{ "language": "en", "url": "https://stackoverflow.com/questions/67787892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing JSON response in Blackberry I am getting a below JSON Response from the server please let me know how to parse this. I only need ---------------------------7da7d113c0dea Content-Type: application/json Content-Length: 338 Request-Id: 714a31e1-1b2c-4e10-8ce1-7b7c4204ff66 response-type: rfc_json status-code: 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7319994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: validates_presence_of and with templates ruby on rails I'm trying to validate some ratio buttons making sure the user as selected one of them. I do this by using: validates_presence_of In addition, I have specific template that I use for the page's layout. Normally, without the template layout, The anything that i...
{ "language": "en", "url": "https://stackoverflow.com/questions/3481290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'pointerenter' event not working on touch device I have the following html template of a table. My intention is that a user is able to highlight each table cell when they drag their pointer across each table cell. The following code works on mouse device however function that is supposed to fire on pointerenter even...
{ "language": "en", "url": "https://stackoverflow.com/questions/74260529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android WebView fails at loading URL stating net::ERR_INSUFFICIENT_RESOURCE I am using a WebView in my application and upon the click of a button the user is supposed to go from 'URL A' to 'URL B' , but it looks like the WebView makes an effort- I see URL B in the background of the loader but within a fraction of se...
{ "language": "en", "url": "https://stackoverflow.com/questions/52659586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SwiftUI: Call a function of a programmatically created view I am trying to make a SwiftUI ScrollView scroll to a certain point in an abstracted view when a button is pressed in a view which is calling the abstracted view programmatically. Here is my code: struct AbstractedView: View { @Namespace var view2ID ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73054957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where is the configuration file for application in Tibco administrator (version 5.3) I want to find the configuration file for application configurations in Tibco administrator. Then I can know all runtime configurations of my application. I tried to findout in the path /opt/sw/tibco/tra/domain/SOADEV/datafiles/[my...
{ "language": "en", "url": "https://stackoverflow.com/questions/68552883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php for each sorting by category joomla k2 Hi I have this code from joomla k2 template <div id="itemListPrimary" class="clearfix"> <?php $thearray = $this->primary ;?> <?php foreach($thearray as $key=>$item): ?> <div class="itemContainer"> <?php $this->item=$item; echo $this->loadTemplate('item'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11148163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I make the mock location provider to work I have a need to create a test application which can mock the location. On clicking button, the latitude and longitude values provided in text box need to be set as the mock location. I am trying to build this using simple way using fused location provider APIs Locat...
{ "language": "en", "url": "https://stackoverflow.com/questions/55888539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Content on HTML/CSS page moves when the 'Tab' key is pressed I've created a custom login page for my Salesforce Community which consists of some HTML and CSS (all within the Visualforce page), but when I use the tab key some content on the page shifts. From my research it seems to be from the content being larger th...
{ "language": "en", "url": "https://stackoverflow.com/questions/68013060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show the value stored in an array in Objective-C I have stored data in an array from XML Parsing. In the array I have stored latitude and longitude of the start and end point. Now I want to show the value of lat and long in the table view's cell.text. How can I access this? What syntax do I use so that I show...
{ "language": "en", "url": "https://stackoverflow.com/questions/7130545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Can Structure Notify Other Threads Correctly About An Event? I'm trying to write a threadsafe structure to keep key - value pairs and to automatically remove them after certain time delay. The problem is, that the container should notify other threads about deletion. I've also tried to use notifyAll() in a synch...
{ "language": "en", "url": "https://stackoverflow.com/questions/57140379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set didEndOnExit in code rather than Interface Builder? Possible Duplicate: Assign a method for didEndOnExit event of UITextField How can I add didEndOnExit to a UITextField in pure code rather than IB? Thanks! A: Assuming your talking about textFieldDidEndEditing: or textFieldShouldReturn:. You would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7771985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pipe output of cat to cURL to download a list of files I have a list URLs in a file called urls.txt. Each line contains 1 URL. I want to download all of the files at once using cURL. I can't seem to get the right one-liner down. I tried: $ cat urls.txt | xargs -0 curl -O But that only gives me the last file in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/9865866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: How to make make this code clearer? I am sorry if it is a simple problem for you.But i am really struggling with this problem In our application we have plenty of ajax calls in each and every page. We are using jQuery ajax. Presently what we are doing is When we get the result from like myresults, we are passing to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16277531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to invalidate redis cache with mysql? I want to use redis as cache for mysql, and the main idea is: Query * *read from redis *if not exist, read from mysql, and add to redis cache Add * *write to mysql directly Update&Delete * *write to mysql *invalidate the cache of redis My question is: how to i...
{ "language": "en", "url": "https://stackoverflow.com/questions/47388755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is the $_SESSION array not being changed? I am having trouble assigning a variable to an array within the $_SESSION array. It looks like it is assigning, but when I do a print_r at the end of the program the $_SESSION variable appears unchanged. Here is the code. <?php session_start(); print_r($_SESSION[cart_ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/44853368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Kotlin delegate's ReadOnlyProperty with generic type value dose not cast correctly in getValue I am expecting to see the output black white with below code package delegate import kotlinx.coroutines.runBlocking import kotlin.properties.ReadOnlyProperty import kotlin.reflect.KProperty open class Color(private val ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69688701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python regex capturing array indicies and brackets this issue has me scratching my head. I have not yet been able to construct a regex which returns the captured groups I require. I've also been working with Pythex, and experimentation has not yet been successful. Example source string: 'token[0][1]' I'm interested ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26982259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert rows with unique numeric ID I have table dbo.Register with unique ID column. I need to insert many rows into this table with, but any with unique identifier, like: INSERT INTO dbo.Register (ID, Name, State, Comment) Select NEWID(), Name, State, Comment From dbo.OtherTable But NEWID() returns long string of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/41823217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a project to Xcode Workspace like CocoaPods I like Xcode workspaces and CocoaPods. So I want to stick to them and their setup and want to create a workspace, containing other projects, like this structure: - MyApp.workspace |-- MyApp.project |-- Pods.project |-- AnotherApp.project Most of the posts abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/18624316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: UIViewController isEditing - Property observer doesn't work I was trying to implement property observers on my custom UIViewController but I noticed it was not working with the isEditing property. Do you guys have an idea why? class MasterViewController: UIViewController { // MARK: - Properties override va...
{ "language": "en", "url": "https://stackoverflow.com/questions/49801470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add extra fields via hook woocommerce_default_address_fields? We want to add extra fields to the billing and shipping addresses to the account of registered customers (users with Customer role). We also want the user to be able to edit those extra fields in their settings panel, under ”My Account” -> ”Addresses” ->...
{ "language": "en", "url": "https://stackoverflow.com/questions/49289437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make PHP think that the files are in a parent directory? As the title says, how can I make PHP think that the files are in a parent directory? For example, my file structure looks like this: - website - - css - - js - - images And I want PHP to think that the directory js is always in ../js (parent direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/25236414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: VS Code doesn't process Erlang Makefile I'm working on an old erlang code that uses Makefiles to compile. The makefile defines some "include" paths: # Erlang include directories. HRL_INCLUDE_DIRS = \ ../include My module imports modules from that path and uses it: -include("logger.hrl"). VS Code doesn't seem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73318417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you specify a minimum required version with the Mozilla addon-sdk cfx tool? Building a traditional Firefox extension, you would set the minVersion field in the install.rdf. Since that is abstracted away by package.json and cfx, is there any way to set a minVersion? Motivation: Because of certain changes to be...
{ "language": "en", "url": "https://stackoverflow.com/questions/15290808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to change data in vue-component In Vue component I have some data that comes from a localStorage. if (localStorage.getItem("user") !== null) { const obj_user = localStorage.getItem('user'); var user = JSON.parse(obj_user); } else { user = null; } return { user } After in this component I have to check t...
{ "language": "en", "url": "https://stackoverflow.com/questions/67987215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dropdown button not working on looping it in Angular I am working in Angular , * *Where I have created a tree based structure *on going down to tree structure there is a dropdown button name "Dropdown" *Problem is on clicking to "Dropdown" button dropdown is not working . Kindly check I am putting stackblitz...
{ "language": "en", "url": "https://stackoverflow.com/questions/59640911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alter the Main WP_Comment_Query (comments at the bottom of posts)? My plugin retrieves a few comments at the beginning of the post through my own WP_Comment_Query. I save these IDs so I can then alter the WP_Comment_Query request and not fetch these IDs. When I use the pre_get_comments hook to hide these already-fet...
{ "language": "en", "url": "https://stackoverflow.com/questions/37097405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error with jekyll-sitemap when run rake generate to user jekyll with octopuses I am building a blog with octopuses and Jekyll on GitHub with Mac OSX and I followed every step on the octopuses website. Error with sitemap occurred when I run rake generate. ## Generating Site with Jekyll identical source/stylesheets/sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/26797789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: curl https inside docker return: unable to get local issuer certificate I have a problem with cURL inside docker container jenkins-slave, when execute curl inside container get this error: curl https://mytool.domain.com curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75600706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Walking Core Data graph to-many relationships always seems awkward, is there a better way? I'm able to get things working fine with Core Data and to achieve my desired results, but I always feel it very awkward when walking to-many relationships because NSSet is, for my typical purposes, fairly useless. An example...
{ "language": "en", "url": "https://stackoverflow.com/questions/6762253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to concatenate the data on one line instead of two? I spend a lot of time at the office manually combining latitudes and longitudes to paste into a program that locates our customers and sets up for repairs. As an example... I copy this from the customers information page: 43.481075 CPE LON -84.787613 I then m...
{ "language": "en", "url": "https://stackoverflow.com/questions/55320027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating a joined table PHP MySQL In MySQL I know its possible to select from two tables that have been joined, but is it possible to update the same two tables using a join? Or will I have to update each table individually? A: Yes, e.g. UPDATE table1 t1 JOIN table2 t2 ON t2.id = t1.id -- Your keys. SET t1.co...
{ "language": "en", "url": "https://stackoverflow.com/questions/6536812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }