text
stringlengths
15
59.8k
meta
dict
Q: How to write a spirial function in python? I'm trying to write a function in python that takes two arguments (x,y), and returns an angle in degrees in a spiraling direction. Suppose the center of the spiral is at location (x0,y0). Then given (0,0), it returns 45. Given some other point say (0,90) which is the second...
{ "language": "en", "url": "https://stackoverflow.com/questions/22898555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to tell when AxWindowsMediaPlayer is downloading? I am using AxWindowsMediaPlayer on VB.NET to preview MP3 files from the web so that the user can choose to download it if he likes it. It works. I just put a link in the URL property and after a while it begins playing. ... after a while, of course. Because it ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/10407123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android: Issue creating Custom 3 state toggle button I'm trying to create a 3 state toggle button by overriding the Button class. Although, there is no error in the code, but Eclipse is showing following issue in layout xml. The following classes could not be instantiated: - com.example.threewaytoggle.TriToggleButto...
{ "language": "en", "url": "https://stackoverflow.com/questions/12329987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cron run my Python script but nothing is happening I want to run a Python script every night at 12:00 am to clean up a csv file which is automatically filled in during the day by another script. My csv file code_list.csv content looks like this at the end of the day: 87698 63753 19742 89876 62765 79832 # etc. I use...
{ "language": "en", "url": "https://stackoverflow.com/questions/62812613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: google maps resize event The problem is start the map hidden, if the toggle buttom start showing the map there isn't any ploblem. I'm seeing a lot of question with this problem but I can't fix it. This is my code. I call the resize event after toogle the map and doen't work. $('.map-btn').click(function(){ $(thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/33876810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Getting a GIT change summary like GitHub I've got a group of developers which make GIT commit and merge mistakes (once in a while). I would like to monitor for 'large changes' somehow. I see in GitHub that they have the following line when looking at the details of a specific commit: Showing 759 changed files with...
{ "language": "en", "url": "https://stackoverflow.com/questions/22546125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JPQL NEW operator with native query ? Can I use the NEW JPQL operator to map result of query inside DTO ? I tested this code : Query query = em.createNativeQuery("SELECT NEW com.sim.dtos.entities.FreeLocation(t1.galaxie, t1.ss, t1.position) FROM ..."); List<FreeLocation> l = query.getResultList(); But I have excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/13971125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: R_Extracting data for a particular date form a zoo object Hi I have a zoo time series (interval-1 min) contains rainfall data from multiple rain gauges for a month which looks like head(precApr) RG.1 RG.2 RG..4 RG.5 RG.6 RG.7 RG.8 RG.9 RG.10 RG.12 RG.13 2008-04-06 00:00:00 0 0 0 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28302275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get more than one string as a variable into input separated by space I'm using Python 3. I need to get three values from a input (separated by a space). The values are a integer, a string and a integer again. Consider that the string can have more than one word. If I set two words it does not work, because each wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/49984224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xwiki Access Rights (AppWithinMinutes) I apologize if the question has already been asked. I made an application with “AppWithinMinutes” in Xwiki. In this application I get user information (eg name, age, etc.) My application will be 100-150 users. Each user will enter information. I have studied these connections: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51410255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I tell if CLLocationManager is actively scanning for a beacon? When you set up an iOS device as a beacon (peripheral role), you can query its state by calling CBPeripheralManager.isAdvertising. I can't find the equivalent to query whether a device is scanning for a beacon (central role) on CLLocationManager....
{ "language": "en", "url": "https://stackoverflow.com/questions/23478252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NewtonSoft json parsing Can somebody help me to parse the json and get the details. Lets say i have Top2 input parameter as Police and i want to know the respective Top3 and in that Top3 array i need to check whether Test1Child value is there or not. I am using newtonsoft json + c# and so far i can get till DeviceTy...
{ "language": "en", "url": "https://stackoverflow.com/questions/49874755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Save query results in blocks of 1000 rows I have the query EXEC xp_cmdshell 'bcp "select * from foo.dbo.bar" QUERYOUT "c:\temp\export.csv" -c -t, -T -S' Which exports fine to that file, but is it possible to break it down so that the first 1000 rows go into export.csv then the next 1000 rows go into export2.csv (et...
{ "language": "en", "url": "https://stackoverflow.com/questions/26363614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conform on-the-fly to PEP8 using flycheck on emacs I unpack flycheck to ~/. and put the following lines in ~/.emacs: ;; (package-initialize) (setq load-path (cons "~/flycheck-20170415.1006" load-path)) (require 'flycheck) (add-hook 'after-init-hook #'global-flycheck-mode) Starting Emacs 24.5.1 I get: File error: Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/43524859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Stack Overflow corrupt %ebp I'm trying to study for an exam, and looking over stack overflow stuff i was hoping someone could clear something up for me. (assume this is on a 32 bit system, so that all addresses are 4 bytes. Also I am studying it from a C function, so any code referenced is from C) Say our code wants...
{ "language": "en", "url": "https://stackoverflow.com/questions/20665996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: cordova ios build plugin Failed to restore I have simple cordova project that I made 1,5 years ago. Few months ago I build it to android and it worked. Now I try to build it for iOS but cordova build ios fails: Discovered plugin "InAppBrowser" in config.xml. Adding it to the project Failed to restore plugin "InAppB...
{ "language": "en", "url": "https://stackoverflow.com/questions/42391538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Turn pandas dataframe column into float I need to turn a pandas dataframe column into a float. This float is taken from a larger csv file. To get just the number I need to a dataframe I did: m_df = pd.read_csv(input_file,nrows=1,header=None,skiprows=4) m1=m_df.ix[:,1:1] This gets me the dataframe with just the nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/34312708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: join() function doesnt work in javascript I tried using the join() function in my array and tried to document.write it but the console says"birth.join() is not a function " birthyear=[]; for(i=1800;i<2018;i++){ birthyear+=i } birth=birthyear.join(); document.write(birth); A: Array.prototype.join() works on arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/48959758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Confused on the css name css: .a .b { position: relative; } .c { position: relative; } Then I though it would work the same way if I wrote it like this: .a .b .c { position: relative; } however, it doesn't, it has no effect about .c. So why it's not working when I put them together? A: what you want is .a .b, ....
{ "language": "en", "url": "https://stackoverflow.com/questions/32977523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Very large plots - generated on the fly? I have two very simple functions in python that calculate the size of a struct (C struct, numpy struct, etc) given the range of numbers you want to store. So, if you wanted to store numbers from 0 to 8389798, 8389798 would be the value you feed the function: def ss(value): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40548448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cloud code not working i am new at parse..trying code..trying to run a trigger required in my project.but not able to track not even i am getting any error. i am using cloud code i.e triggers... what i want to do is, after update or save i want to run a trigger which will a column in a class with value of 200. Par...
{ "language": "en", "url": "https://stackoverflow.com/questions/33823538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Underline expanding on mouseover I am trying to implement a magic line with jquery and CSS. But instead of it following and only inheriting the width, I want it to extend to the next index item. Scenario: 1: Element one hover ELEMENT ONE ELEMENT TWO ELEMENT THREE ___________ 2: Element two hover ELEMENT ONE ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38203966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: pyodbc will support connecting to an Azure SQL DB using the AD access token instead of user/password? Currently, I use device code credential to get the access to Azure AD. device_code_credential = DeviceCodeCredential( azure_client_id, tenant_id=azure_tenant_id, authority=azure_authority_uri...
{ "language": "en", "url": "https://stackoverflow.com/questions/61069715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: mojoPortal Process after Recover Password The current process after hitting the submit button (in recoverPassword.aspx) is when a valid username is entered it will show a sentence that "email has been sent...", and the textbox will disappear and when an invalid username is entered the textbox will remain on the scre...
{ "language": "en", "url": "https://stackoverflow.com/questions/44404202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the meaning of m-n relationship between two weak entities set? I'm doing some exercises in my textbook, and meet this ER diagram: I tried to convert above diagram into relational database schema, but I think I doesn't make any sense: • Assignments: assignmentNo, grade • Enrollments: assignmentNo • Stud...
{ "language": "en", "url": "https://stackoverflow.com/questions/14374118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using swift 2 to scan an image for the color of its pixels I need to figure out how to scan an image for the color of its pixels for a Mac application. My desired end result is to group certain colors and filter them individually. Any and all tips or suggestions would be much appreciated.
{ "language": "en", "url": "https://stackoverflow.com/questions/35469060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Restarting Tomcat after a successful deployment with Jenkins How can I have Jenkins restart a Tomcat instance after a successful deployment? I already tried using a batch script, but the Tomcat instance is killed when the build is finished. A: Your answer lies in Jenkins ProcessTreeKiller. A more detailed explanati...
{ "language": "en", "url": "https://stackoverflow.com/questions/26278117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Array Index selection C# I have a array of length 300 of type int. Most of the element is 0 and I want to get the index of the first element that is greater than 0. How can I achieve this. Thank you A: Use a for loop to go from index 0 to yourArray.length - 1 and record the index of the first element with a value g...
{ "language": "en", "url": "https://stackoverflow.com/questions/16183841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sweet Alert http request with Angular doesn't work I'm creating a form with Sweet Alert and I have a post request inside the swal function but when I hit submit nothing happens. Would appreciate some help. $scope.formModal = function(){ swal({background:'#ACF1F4',html:"<form method='post' id='loginform'>Username: <i...
{ "language": "en", "url": "https://stackoverflow.com/questions/41004695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No route matches error for spec post request I have a post method in scorecard controller which take event id as params and create a score card for that event. When I am trying to send to post request with event id I am getting no routes matches for action empty_scorecard error. here is Rspec code describe "POST ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24990570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gradle density abi apks I am generating android apks using gradle with splits. Following is an example of what I use: splits { density { enable true reset() include "mdpi", "hdpi" } abi { enable true reset() include "x86", "arm64-v8" } } Based on the documentation...
{ "language": "en", "url": "https://stackoverflow.com/questions/50053437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ Builder bccarm error when calling std::vector::push_back with TObject descendant I have some simple C++ code which won't be compiled by the Clang based C++11 compiler bccaarm of C++ Builder 10.1 Berlin. This is the code: TComponent* Comp = new TComponent(this); std::vector<TComponent*> Comps; Comps.push_back(Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/37134861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Radio buttons too wide Can someone help me with this problem. I have two radio buttons in View: @Html.RadioButton("technology", "Basic") Basic @Html.RadioButton("technology2", "Advanced") Advanced And they are displayed like this: Why are they displayed wide like that? Any ideas? A: Load this page into Firefox an...
{ "language": "en", "url": "https://stackoverflow.com/questions/15953824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SQL WHERE statement priority Please explain me priority of this statements in SQL query. What will be first checked and how, I can't understand it well. SELECT * FROM table WHERE (deleted_by <> :user AND deleted_by <> :nula) OR deleted_by IS NULL AND IDmessage=:ID A: AND has higher precedence than OR, so...
{ "language": "en", "url": "https://stackoverflow.com/questions/22231396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Solr supporting varying facets for different types of products I am using Solr for indexing different types of products. The product types (category) have different facets. For example: camera: megapixel, type (slr/..), body construction, .. processors: no. of cores, socket type, speed, type (core i5/7) food: type, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28821630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Reset A Map Polyline In my application I am using the new map control for wp8. I have my route being tracked when the user chooses to do so, but when the user opts to turn the route tracking off, I am not sure how to clear the Polyline from the map? I call my InitializeMapPolyline in the constructor private v...
{ "language": "en", "url": "https://stackoverflow.com/questions/20831774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why is String.split("£", 2) not working? I have a text file with 1000 lines in the following format: 19 x 75 Bullnose Architrave/Skirting £1.02 I am writing a method that reads the file line by line in - This works OK. I then want to split each string using the "£" as a deliminater & write it out to an ArrayList...
{ "language": "en", "url": "https://stackoverflow.com/questions/13969769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Too many www-data process on Apache2 server, WordPress website won't work On my website (WordPress), some times it runs so many processes as shown in the screenshot (Putty - top) Then the site won't work. Please help to resolve this. A: I assume that you have a lot of httpd processes because you have a lot of user...
{ "language": "en", "url": "https://stackoverflow.com/questions/69337967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Location Listener in Android Intent Service My app has an Intent Service which keeps checking on a web server if there is "start" or "stop" word on an html page every 100000ms. If it receives "start" it starts a locationmanager.requestUpdateLocation(..), if it receives "stop" it stops it with locationmanager.removeU...
{ "language": "en", "url": "https://stackoverflow.com/questions/43147152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: typeerror when reading state React Trying to use zebra to set a state to a json, which is produced by zebras reading a csv in the class constructor. import "./Maps.css"; import * as z from "zebras"; import df3 from "./df3.json" class Maps extends Component { constructor() { super(); const data = z.readCS...
{ "language": "en", "url": "https://stackoverflow.com/questions/61898801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: up/down arrow scroll not working up/down arrow scroll not working in jquery scrolify plugin.I want to do the scroll with both page up/down button and in up/down arrow button click. page up/down arrow working fine as I expect.up/down button click not scroll as page scroll if(e.keyCode==33 ) { //working ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42298548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Animating element with jQuery I have successfully animated a div from bottom to top on window load as fallow: <script> $(function(){ $('#wrapper').animate({'margin-top': '20px'}, 1000); }); </script> #wrapper { float: none; margin: 600px auto; max-width: 850px; min-width: 200px...
{ "language": "en", "url": "https://stackoverflow.com/questions/19854634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does closing a descriptor mean? I thought a descriptor was simply a numerical index in the global file table, so I'm confused by what "close a descriptor" actually means. Can someone clarify the relationship between processes, descriptors, and open files and explain what it means to open, duplicate, and close ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20084247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Import list of strings to tuples Say if I have a text file containing a list of strings eg: 111 234324 john smith 123 123113 edward jones 131 423432 ben david How could I import the strings from a text file and create a tuple for each line? So they would read (131, 234324, "john", "smith") (123, 123113, "edward", "...
{ "language": "en", "url": "https://stackoverflow.com/questions/20456519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to solve python/pip/pip3 is not recognized as an internal or external command | python command error after changing path? I. Have installed python 3.7.8 on windows 10. But when I run the commands python/pip/pip3 from command prompt it gives an error python/pip/pip3 is not recognized as an internal or external co...
{ "language": "en", "url": "https://stackoverflow.com/questions/65173568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while creating layout template in codigniter I have two layout templates in my project and always loading first template. How to load second template also. In main Usercontroller how to differentiate them. They are, Learncontroller.php class Learncontroller extends Usercontroller{ public function __constr...
{ "language": "en", "url": "https://stackoverflow.com/questions/43840983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Background position does not animate in full screen Here is my CSS: div.movement { background-image: url('image.png'); background-repeat: repeat; background-size: contain; animation: 60s linear 0s infinite alternate moving-background; } @keyframes moving-background { to { background-position: 2000% 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/67980837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vb6 "regfreecom" autocreate manifest for ocx file I think I need to create a manifest file for MSCOMCTL.ocx to use in my VB6 application (reg free) I will also need to update/create the .res file Then I will need to use ManifestCreatorII It has been a few years (2017) and I have forgotten the steps and cannot find m...
{ "language": "en", "url": "https://stackoverflow.com/questions/61667173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: iPhone SDK: Text between UITableView sections? In the settings on the iphone, there is text between some of the UITableView sections. Sometimes larger text, sometimes smaller text. How do I do this? Safari http://www.zedsaid.com/__data/assets/image/0019/1765/safari.png I would like to know how to do the "Security"...
{ "language": "en", "url": "https://stackoverflow.com/questions/2889282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a coordinate pair Have a list of coordinate pairs based on the provided longitudes and latitudes and I want to store the list in a variable coordpairs. I try using the code below. When I checked the coordinate pair I only get the value for the longitude. for x in range(len(longitudes)): longitudes[...
{ "language": "en", "url": "https://stackoverflow.com/questions/68370416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How convert telegram session to json file I searched the internet for a solution, but couldn't find anything I tried to parse the session data, but the problem is that you can't get all the data, I couldn't find "register time" What I want to see in Json: {"session_file": "6285351202414", "phone": "6285351202414", "...
{ "language": "en", "url": "https://stackoverflow.com/questions/74421001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 'Dynamic' fields in DRF serializers My aim is to build endpoint which will surve to create objects of model with GenericForeignKey. Since model also includes ContentType, the actual type of model which we will reference is not known before object creation. I will provide an example: I have a 'Like' model which can...
{ "language": "en", "url": "https://stackoverflow.com/questions/26829811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Zurb class show-for-large-only aligns all text left I'm building a small site which makes use of the show-for-XXXX-only classes. My text is center aligned however applying the show-for-large-only class (or small/medium) aligns the text left. I cannot seem to override this. Here's my HTML: <div class="content...
{ "language": "en", "url": "https://stackoverflow.com/questions/27031154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter native admob is not working on iPhone I added flutter native admob in my app. It's working very well on Android devices but when I try run the app on IOS devices it turns loading screen. I added my code and also screenshot about this issue. How can I fix that? Thanks in advance. new Container( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69837034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP - Filenames in HTTP-headers: Problem with whitespaces Working with CakePHP and Java Web Start I'm generating the necessary .jnlp-file within a controller in which among other things I set the filename as a header-field. That works fine as long I'm not trying to use special chars in the filenames. However, I'd li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7255628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: React: check if props undefined I want to do some things in componentDidUpdate if a prop is undefined, however, I can't because I just get the error Cannot read property 'serial' of undefined. Is there a way to solve this? This is what I tired, but it doesn't work - I get the error: componentDidUpdate(prevProps) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65172662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to compare a substring from char array with some valid range? I have a char * which contains year and month lets say YYYYMM. How can I compare MM within the range of 01 to 12 ? Do I have to do atoi for the substring and do it or anything else exists? A: If the first character of the month portion of the string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7813163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the file's path from file input? please tell me how to get a full file path from an <input type="file"> i have tried fileinput.value but it shows fakepath. i have also tried mozFullPath. A: For security reasons browsers do not allow this, i.e. JavaScript in browser has no access to the File System, howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/71015564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logstash can't create index in elasticsearch for metricbeat file output I am trying to ingest metricbeat file output through logstash but logstash is not creating any index in elasticsearch. Below is my logstash .conf file input { file { type => "my-metricbeat" path => ["C:/tmp/m...
{ "language": "en", "url": "https://stackoverflow.com/questions/44512424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a vectorized version of this code in Matlab I tried to vectorized my code but hit this roadblock and can't find an answer to it. I have this array of 0 and 1, that works like a stopwatch. The way I create it is already vectorized. Here is a sample of it: array of 0 and 1 Now, whenever the array is 1, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/67642796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get circle shaped image in swift 3 From the below code I got only oval shaped image I don't know why and what I did wrong..? self.viewCirlce.layer.cornerRadius = self.viewCirlce.frame.size.width / 2 self.viewCirlce.clipsToBounds = true A: This code used to display the circle image image.layer.borderWi...
{ "language": "en", "url": "https://stackoverflow.com/questions/43040451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error when trying to select event data with BigQuery I'm trying to select the event_dim.date within BigQuery but am unable to actually access it due to an error Error: Cannot access field date on a value with type ARRAY<STRUCT<date STRING, name STRING, params ARRAY<STRUCT<key STRING, value STRUCT<string_value STRING...
{ "language": "en", "url": "https://stackoverflow.com/questions/41509117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CMFCToolBarComboBoxEdit handle delete button CMFCToolBarComboBoxEdit handles the BackSpace button but it doesn't handle the delete button. Is there any way to handle the delete button except PreTranslateMessage? if yes, what is this way? if no, then how can I get the current cursor position in the control and how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/42607823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does a type assertion of "as any" fix this "No overload matches this call" error I am using React Navigation in a React Native project with TypeScript. The code below is somewhat simplified - hopefully it makes my question clearer. I have a file <navigator.tsx> which sets up the navigator and type checks it ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74382517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Haskell incorrect indentation I have an error saying "Possibly incorrect indentation" boyerMooreSearch :: [Char] -> [Char] -> [Int] -> Int boyerMooreSearch string pattern skipTable | skip == 0 = 0 | skip > 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13749850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide soft input keyboard on flutter after clicking outside TextField/anywhere on screen? Currently, I know the method of hiding the soft keyboard using this code, by onTap methods of any widget. FocusScope.of(context).requestFocus(new FocusNode()); But I want to hide the soft keyboard by clicking outside of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51652897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "179" }
Q: How do I investigate my java-based web service from .NET? I have publicised a Java method as a Web Service and I use the Web Service Explorer in Eclipse to invoke it and it works as expected. See http://soa2world.blogspot.com/2008/05/soap-client-eclipse-web-service.html for screen shots (not taken by me). To ensure...
{ "language": "en", "url": "https://stackoverflow.com/questions/570096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find PRs which were merged to branch, but aren't yet in any release I'm trying to get information from GitHub using GraphQL, on what pull requests aren't released - but are merged. What queries I actually got: // for getting latest release name query { repository(name: "${project.name}", owner: "${project.owner}...
{ "language": "en", "url": "https://stackoverflow.com/questions/73587077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: laravel update and select I have a situation to update the row based on id and return the complete row. I can do it in two queries but i want to do it in one query only. I have write this... $result= DB::table($this->table) ->whereRaw($where['rawQuery'], $where['bindParams'] ? $where['bindParams'] : array...
{ "language": "en", "url": "https://stackoverflow.com/questions/40013965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I optimize omp pragmas to run code between parallel regions? I have this C code that I need to optimize with OpenMP, I can't write the original code, but here is a surrogate: #include <stdio.h> #include <stdlib.h> #include <math.h> #ifdef _OPENMP #include <omp.h> #endif void Funct(double *vec, int len) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53949716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encrypted URL results in Bad Request Before stating the problem I want to say that I've read all the posts that suggest that what I'm doing is a bad idea and I AGREE WITH YOU 100% but, our customer insists that he wants the id on the URL to be encrypted so we don't have much choice. The application is ASP .Net MVC 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/8273111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fill NAs with Previous non-NA available value R I am trying to fill the NA values with the non-NA previous available in a set of data of 3 million rows. At the moment I am able to do it but it takes about 3hrs. Constrains - I cannot use any library, it has to be done with R basic Data - My data looks as following (E...
{ "language": "en", "url": "https://stackoverflow.com/questions/50586602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Datatables js: custom css I'm using Datatables.js with Laravel. I'm post a request with ajax and I want to show the returned response in the table. Is there a way to customize this table? Can we customize the tags by giving them an id or class name? I tried this but didn't get any results. For example: I want to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/72588156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to test modal screens of react-navigation in React Native app? In the app we open modal screens in the following way: navigation.navigate('BottomSheetModal', { title: 'Some Title', children: ( <SomeChildren {...someProps} /> ), }); /* OR */ navigation.navigate('PopUpModal', { title: 'Some...
{ "language": "en", "url": "https://stackoverflow.com/questions/73624651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to use vba to open text files that are fixed column delimited and different sizes I have many text files which are first opened through vba and then processed. Nevertheless, all my text files are fixed length delimited. The only problem is that each file has a different column size. FieldInfo:=Array(A...
{ "language": "en", "url": "https://stackoverflow.com/questions/42175729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cancelled amount and a corresponding entry - Postgres I have the payment table: There could be erroneous entries when a payment was made by mistake - see row 5 and then, this payment gets cancelled out - see row 6. I cannot figure out the query where I don't only cancel the negative amounts but also the correspondi...
{ "language": "en", "url": "https://stackoverflow.com/questions/69723431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to build a retrieved data from a form page to another page using list view builder Hi there I’m new to flutter and this app takes an input from a user and outputs a list with the value from the text field all in one page but what I wanted was it to output the list view builder in another page with the value from...
{ "language": "en", "url": "https://stackoverflow.com/questions/59444167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to add a title property to a label to use in a webpartcontrol I'm trying to add a title to web label control. Here is the code where I am trying to use a title on a label: <asp:WebPartZone ID="WebPartZone1" runat="server" HeaderText="Welcome to my web page!" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6669635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to run a script block locally as admin using powershell I am trying to write a powershell script that runs a specific code block as a domain admin and moves a computer to a specific OU. If I run it as a domain admin, it works fine, but the problem is it usually runs it as a local admin; which obviously won't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59257180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to redirect to another domain while clicking on chart in asp.net I am using the asp.net chart control. I need to redirect to a url of another domain by clicking an X-axis value or series that should open as a new window. I used to Series.Points[index].url = "http://www.domainxxx.com/abc.aspx?abcvalue=1000". How...
{ "language": "en", "url": "https://stackoverflow.com/questions/41562656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't import .xlsx into R using readxl Here's my code: library(readxl) datasets <- system.file("C:/Users/tyeg/Documents/Gamma Counter Processing/Inflammation/Study Compilation Sheet2.xlsx", package = "readxl") read_excel(datasets) Here's the error I get: '' does not exist in current working directory
{ "language": "en", "url": "https://stackoverflow.com/questions/41047990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory optimisation I'm just curious to know if I can reduce memory usage of Matlab by using some option. Clicking on a variable in workspace shows a long digit which may not be necessary in most of cases. e.g., [20, 25.0540913632159, 16.2750000000000, 3.08852992798468]; for me 25.054091 may be more than ok. Are th...
{ "language": "en", "url": "https://stackoverflow.com/questions/16164761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create an export to Google Sheet button on a web page? Say I have a page like this: textarea {width:300px;height:200px} button {display:block} <textarea value="f">id,value 2,alpha 3,beta 14,test</textarea> <button>Open in Google Sheet</button> I want the user to click the button "Open in Google Sheet" a...
{ "language": "en", "url": "https://stackoverflow.com/questions/69465833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Audio players in Chrome packaged apps I'm trying to embed a music player in a Chrome app, and at the moment I'm using the default tag to embed music, but the problem is that I can't seek the song unless the song has been fully downloaded before playing (I'm streaming it from a file host). The file host has its own ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24101749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does knockout dataFor/contextFor work, exactly? Background: When the equivalent of javascript blur happens, I want to be able to edit the selectedOptions bound to a select list through knockout. For instance, select a specific element from a list, or clear the selection. I found this topic which suggests two me...
{ "language": "en", "url": "https://stackoverflow.com/questions/24173826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace() function with multiple values simultaneously recoded in r This is a very basic question, but I am using the replace() function to recode values that switch half-way through the years of reporting in my dataset. The key switches, so I am converting old character values to new ones. Example: For the variable...
{ "language": "en", "url": "https://stackoverflow.com/questions/72969299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Querying MongoDB, List all unique using GROUP BY and INNER JOIN in the same query I'm doing a college job, but I'm not able to do these queries in the MongoDB database, I'll put the database links right down here for those who are kind enough to test, because I'm not getting it. Question: List all unique employees’ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65192521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why doesn't 100vh fill whole page? I'm currently using React and I'm having issues getting a div to equal 100% of the height of the page. Originally, I had an issue with there always being about 24px of empty space above the body. I couldn't fit it no matter what. I eventually used this on my app.css (a reset) * { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41421224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JDA cant find the gateway intents class I have built my jda discord to a jar file and it raises the class not found error for the gateway intents class saying that its not found or this error specifically Exception in thread "main" java.lang.NoClassDefFoundError: net/dv8tion/jda/api/requests/GatewayIntent at...
{ "language": "en", "url": "https://stackoverflow.com/questions/70717490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using jQuery to set multiple selects using each I have a page full of selects, and they all have a common class. I need to set every one of them to their first option. Easy, right? But what I finally wound up getting to work feels like such a hack... is there a better way? $('.myclass').each(function() { var ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10854638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to record error messages when mapping a shared server to a network drive with VBS? The following snippet of script maps shared servers, stored as strings ( "\server\shared" ), in an array to the (A:) drive and record any errors encountered during the process. Then removes it to map the following item. When some...
{ "language": "en", "url": "https://stackoverflow.com/questions/35951669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Character Repetition I am writing a simple program to calculate the repetition of characters in a string sequence. The program I have for now is as below, but I am looking to see if it can be optimized any further. I believe the program right now is O(n) worst case time and I would like to see if there is something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14915626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Could someone explain the regex /(.*)\.(.*)/? I want to get the file extension in Groovy with a regex, for let's say South.6987556.Input.csv.cop. http://www.regexplanet.com/advanced/java/index.html shows me that the second group would really contain the cop extension. Which is what I want. 0: [0,27] South.6987556.In...
{ "language": "en", "url": "https://stackoverflow.com/questions/24989252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Form submit function seems to only change a value for a split second I have a list that changes value according to gold and silver spot prices. So having the ability to edit these always changing spot prices is crucial but i can't seem to get my form submit button to do anything permanently. HTML <form> Silve...
{ "language": "en", "url": "https://stackoverflow.com/questions/42425657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making strings equal when compared to public class StringEqual { public static void main(String[] args) { String str1 = "abcd"; String str2 = "abcdefg"; String str3 = str1 + "efg"; System.out.println("str2 = " + str2); System.out.println("str3 = " + str3); if (str2 == str3) { System.out.prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/28520138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Represent a Mixture with a Django Model I'm trying to represent a mixture in Django. Something like: Chemical #1 - 50% Chemical #2 - 30% Chemical #3 - 20% I figured I would use a wrapper called composition as follows: class Composition(models.Model): """ Just a Wrapper """ def save(...): #Validate i...
{ "language": "en", "url": "https://stackoverflow.com/questions/8235055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: STL-Like range, What could go wrong if I did this? I am writing (as a self-teaching exercise) a simple STL-Like range. It is an Immutable-Random-Access "container". My range, keeps only the its start element, the the number of elements and the step size(the difference between two consecutive elements): struct range ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2170064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Enable SSL on tomcat on Docker I have local docker running up on my linux system. I'm trying to enable SSL on the docker container which runs tomcat. However I'm unable to get the SSL working. I get the below error when I try to access the REST endpoint deployed locally on docker. Aug 13, 2018 5:36:25 AM org.apache...
{ "language": "en", "url": "https://stackoverflow.com/questions/51825162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: npm local prefix always set to current working directory I've been searching for a while to try to find the answer to this. I've tried everything I've found that makes sense and more. Nothing has worked. Here's the breakdown: * *I'm on linux (12.3-RELEASE FreeBSD 12.3-RELEASE r371270 NFSN64 amd64) *I've installe...
{ "language": "en", "url": "https://stackoverflow.com/questions/73834468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Work with and change the layout of an csv file in pandas I read a csv data with pandas and now I would like to change the layout of my dataset. My dataset from excel looks like this: I run the code with df = pd.read_csv(Location2) This is what I get: I would like to have a separated column for time and Watt and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/43756927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }