text
stringlengths
15
59.8k
meta
dict
Q: How to stop collection triggering code when scrolling back in to view swift I'm pretty new so apologies if my title doesn't phrase things correctly. I've been hacking away and haven't been able to find an answer to this problem. I have a horizontally scrolling collection. I'm trying to visually show poll results pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/67759302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access parent form properties from a child form in vb.net I have pretty much the same problem as described in this, but using VB.NET. There is a Form1 which is opened automatically as start window, so I cannot find the instance to use for accessing it. There is a Form2 opened from within Form1. I try to pass ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70332722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: the auto generated code for an Intent defined in a `intentdefinition` throws `No newline at end of file` I have added an Intents.intentdefinition to my project. In it I have added a new intent called OrderItem with a few parameters and parameter combination. When I try to import the autogenerated OrderItemIntent.h, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51054236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @Valid does not work for nested object in bean class in spring I have a Bean class which has one nested object like below. import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.validation.Valid; import javax.validation.constraints.NotNull; @Data @AllArgsConstruct...
{ "language": "en", "url": "https://stackoverflow.com/questions/52889501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Finding the first day of specific months in R I currently have a column "Month" & a column "DayWeek" with the Month and Day of the week written out. Using the code below I can get a column with a 1 for each Wednesday in Feb, May, Aug & Nov. Im struggling to find a way to get a column with 1s just for the first Wedne...
{ "language": "en", "url": "https://stackoverflow.com/questions/24714411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SimpleXML & PHP: Extract part of XML document & convert as Array Consider the following XML: <?xml version="1.0" encoding="UTF-8"?> <OS> <data> <OSes> <centos> <v_5> <i386> <id>centos5-32</id> <name>CentOS 5 -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7015084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between I am new to php and would like to know if there are any differences between these server tags : <?php ?> and <? ?> A: The first is a safe open and close tag variation, the second is the so called short-open tag. The second one is not always available, use the first option if it's possible. You...
{ "language": "en", "url": "https://stackoverflow.com/questions/1808365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Is this a form of a method's parameter accessing other method's parameter? I am an IT student and I'm completely new with Python. In a workshop I worked on there were a few lines in between that I don't really understand how they work and their purpose in the code. Those lines come from a fellow student who successf...
{ "language": "en", "url": "https://stackoverflow.com/questions/71580403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to iterate through a list of objects with a specific variable? So I have a Deck class which holds a deck list which creates 52 Card objects and stores them in an array list. I can iterate through that deck list using the iterator I have shown but now I want to know how I can modify the iterator to iterate throu...
{ "language": "en", "url": "https://stackoverflow.com/questions/54593223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: scala: Specifying method type for currying The following method type describes a function that passes configuration info and data to a method. Each method of this type can perform a different function. type FTDataReductionProcess =(PipelineConfiguration,RDDLabeledPoint) => RDDLabeledPoint The above works fin. But...
{ "language": "en", "url": "https://stackoverflow.com/questions/48481614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to change column If another column has a special word on python? I have a long dataframe and I want to apply for every rows, I want to do this if 'word' in column 1 I want to change column2, but word will get dictionary.key, and column2 will get dictionary.value di = {'btw':'By The Way','afk':'Away From Keyboard...
{ "language": "en", "url": "https://stackoverflow.com/questions/66633231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encoding issue with accented letter passenger RoR I have a bug when I run a RoR application on an Ubuntu server, my config is : ubuntu 14.04 - nginx - passenger 5.0.9 - rbenv - ruby 2.2.2 - rails 4.2.1. Everything works fine with a default config but when I try to change an environment variable and put an accented l...
{ "language": "en", "url": "https://stackoverflow.com/questions/30710936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rename regex not working in cygwin I am using cygwin under windows 7. In my directory there are files like fort.100 fort.101 ... fort.1xx I want to give them all an extension _v1. When I try to achieve it using rename by rename 's/$/_v1/' fort.* the prompt exit with no errors and nothing happens. I then tried ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44279062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Send Azure Service Bus messages to Blob or Azure Data Factory Can someone let me know if its possible to send Azure Service Bus messages, (Service Bus Queues, in particular) to Azure Data Factory or Blob Storage. According to the following link, there isn’t a connector for Service Bus with ADF. However, it does stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/71244270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I need to implement a function that can be used multiple times I have one swift function and that I want to convert into objective C can any one help me to convert it? Any help will be appreciated func getdata(_ send: NSString) { let url=URL(string:send as String) do { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42572728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: NHAPI PID 13.1 Segment home phone is not able to get created Please Help me on this : I have stuct on this line.I'm not getting pid 13.1 Which is a Home Phone-Telephone number.Please tell me how to get this segment created. I'm using : NHAPI V231 adtA04.PID.GetPhoneNumberHome(0).PhoneNumber.Value = "(456)120-1478...
{ "language": "en", "url": "https://stackoverflow.com/questions/35172290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I snap to grid a value between 0 and 1 let's say I have a value that is between 0 and 1. I have a grid size and would like the value to snap to grid. so if grid size is equal to two I would like to switch from 0 to 1 if grid size equal to three this would switch from 0, 0.5 to 1 if it's four 0, 0.33, 0.66, 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/69166380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Typescript - Access property of class using it's string name I'm having this class: import { SoapNotePage } from "../pages/forms/soap-note/soap-note"; export class FormMapper { public static SOAP_NOTE = SoapNotePage; } It is easy to access this property, see the following example: open(item){ if(item.id ==...
{ "language": "en", "url": "https://stackoverflow.com/questions/45939326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: multiple url link variables index.php?dc=downloads&dl=all&sort=id shows all downloads, and sorts by id inside of downloads.php it GETs the variables dl and sort to query MySQL accordingly, to display the tables on downloads.php I have the links Show <a href="index.php?dc=downloads&dl=all">All</a>, tools, etc that se...
{ "language": "en", "url": "https://stackoverflow.com/questions/17417002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue on LEMP configuration and how can i redirect to NodeJS request to NGINX I configured a LEMP server on Ubuntu with NodeJS but I'm getting the following error on browser. "The page you are looking for is temporarily unavailable. Please try again later." how can i redirect to NodeJS request to NGINX .Can you ple...
{ "language": "en", "url": "https://stackoverflow.com/questions/22218665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cant remove commit from Master GIT I can't remove a commit from master. I tried lots of commands from stackOverflow, but nothing works. Last command git revert 655734672ea28811e0723981853f05cbcdda8ec8 just changed the commit. This how it looks now. .............................................(master) $ git log co...
{ "language": "en", "url": "https://stackoverflow.com/questions/60579091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angularjs dynamic table I have following json string to generate report in angularjs: { "result": [{name:"AUS ba",date":"02-01-2014", "result": "pass","time" : "morning","reason":"ok"}], "result": [{name:"SA ba",date":"02-01-2014", "result": "pass","time" : "afternoon","reason":"ok"}], "result": [{name: "NZ ba",{"da...
{ "language": "en", "url": "https://stackoverflow.com/questions/21649441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to keep css style in a code/pre tag in markdown? I'm facing an issue while writing a markdown document. I'd like to insert a diff code output from the console, containing colors, transformed to HTML via a script, something like this: # Some title The following code as been updated: <pre> <code> <spa...
{ "language": "en", "url": "https://stackoverflow.com/questions/46221700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Entity Framework 4 + Oracle: Working in local pc but not on Windows Server 2008 R2 I'm trying to create a sample project with EF4 for an Oracle Database. In my PC I created a project. Some of the characteristics (if more info is needed please say so) * *Visual Studio 2010 *Entity Framework 4.1 with DB First + Db...
{ "language": "en", "url": "https://stackoverflow.com/questions/32860642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access to a string in an ES6 Set object I am using this library to find the email address in a string. https://github.com/sindresorhus/get-emails I am struggling to access to the result. getEmails(text); //=> Set {'sindresorhus@gmail.com', 'unicorn@rainbow.cake'} typeof getEmails(text); // 'object' How to get ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/42587565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an easy way to transform a tensor (3D array) to a 2D array of the tensor slices as the vectors in MATLAB? Consider a 3D matrix t of size d1 x d2 x d3. Is there a an easy way of making the matrix (2D array) of size d1d2 x d3? so the naive implementation/pseudo-code would be something like: T % d1 x d2 x d3 M...
{ "language": "en", "url": "https://stackoverflow.com/questions/31815234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Uncaught Error: Class 'PhpAmqpLib\Connection\AMQPStreamConnection' not found I have installed RabbitMQ, Composer and its dependencies like vendor folder and phpamqplib successfully. But, still it is giving me an error that AMQPStreamConnection not found. Can anyone help me? Here, is my code- <?php require_once __DIR...
{ "language": "en", "url": "https://stackoverflow.com/questions/52660406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ajax only effects 1 button, instead of all buttons So I want to set up my index.php so that when the like button is clicked, ajax is used to go to liked_button.php and change the look of the button to 'Liked'. This works, for one button, the first button. It doesn't work for all the other buttons on the page. Liking...
{ "language": "en", "url": "https://stackoverflow.com/questions/23918452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass an array type as generic type parameter to a VHDL package? I'm working on a generic package (list) in VHDL-2008. This package has a type generic for the element type. If I declare an array type of this element type within the package, it's a new type. So for e.g. integer, my new integer_array would be in...
{ "language": "en", "url": "https://stackoverflow.com/questions/40595461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Repository pattern in entity framework model-first design I could not find any exact information which platforms are suitable for repository pattern implementation. I have a MySQL DB and console app that is written in VS 2010. I am using Entity Framework 4 and my database is imported to VS project by model-first app...
{ "language": "en", "url": "https://stackoverflow.com/questions/14340923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dividing numbers between rows in MySQL + PHP Hi I am working on a kind of raffle system which divides 1 million random numbers into an x amount of tickets, e.g. 1 million random numbers to 10,000 tickets. Each ticket is a row in a database, we then have another table ticket numbers in which i need to give 100 number...
{ "language": "en", "url": "https://stackoverflow.com/questions/11376038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How convert 2 string columns (date and time) to one timestamp i have table with two columns (both string): | Dates | Times | | -------- | -------------- | |20210401 | 121012 | |20210401 | 121024 | And I would like to combine these columns into one in timestamp format: YYYY-MM-DD HH:...
{ "language": "en", "url": "https://stackoverflow.com/questions/67383925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I give my Flask Apache WSGI App permission to write/append to a file? I am writing a small Flask web-application hosted on an Apache Server running Ubuntu 14. There is a feedback section on the website where one can visit and submit a feedback message which will then be sent to the server, and appended to a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34112974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Wordpress - create a page with custom URL I have a Wordpress page /users and it displays a list of all users created. Each user has a link to its profile page. What I need to do is create that page. I want it to go like this /users/{user_id}-{first_name}-{last_name}, for example - /users/1-john-doe. I have a templat...
{ "language": "en", "url": "https://stackoverflow.com/questions/19182842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pass javascript variable to php with ajax , Nothing result? MY js page : $m = 77; var xhr = new XMLHttpRequest(); xhr.open("POST", "try.php", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send("m=" + escape(m)); php page : $var = $_POST['m']; echo $var; W...
{ "language": "en", "url": "https://stackoverflow.com/questions/48060311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Can't close frame in java? Hi guys I am writing a little program in java and it's my first try at anything with an interface/picture. It makes the frame for me but when I click the close button X, it doesn't close it just treats it like nothing happened...any ideas? class Graph extends Canvas{ public Graph(){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12707716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Angular 1.2 and Animate.css for loading animation? I'm trying to get a page to animate in on load using Angular 1.2 and Animate.css. Here's the Plunker: http://plnkr.co/edit/oDiDfRCO2Msc0StNrtqH I'd like the background to crossfade in and the yellow menu on the right side to slide in from the right. In main.ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/25292936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: setState doesnt render extra one time? Code A: componentDidMount(){ this.dateString = this.props.navigation.getParam('dateString', moment()); } Code B: state = { dateString: moment() } componentDidMount(){ const dateString = this.props.navigation.getParam('dateString', moment()); this.setState({ dateString ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54246824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scroll issue in mootools (In Firefox it's okay but Chrome giving some issue) I have set following code to create a floating navigation menu. It works fine in Firefox but Chrome has some issue. It keep resetting when I manually scroll the bar to it's threshold. var nav = $$('#navigationBar'); var navCord = nav.ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/25707024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EJB - How to use CRUD code with multiple Persistence Units I would like to equip my EJBs with CRUD methods. I have many entities and multiple persistence units. I want to implement my CRUD methods once and invoke them on different persistence units. I tried to achieve this using inheritance, but it isn't working. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/12113213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a safe way to use pointers as keys for an NSMutableDictionary? In a project, I have data objects XXData and objects which represent these objects visually XXDataVisual. There can be up to 10'0000 objects which need to be loosely coupled. Only the XXDataVisual knows the represented XXData. @interface XXDataVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/22182688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Labeling coordinates on an image using Python I have an input image and a dataframe with 1000 rows and 3 columns, an X coordinate, Y coordinate, and a Label (0-5). I want to read in my image, find each of the coordinates on the image from the dataframe and label them by to color depending on the label column and dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/73380512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create http query in Flask Python I am trying to work with querys in Flask. I have a page choose.html where you can click buttons. these should be sent in a query then to page 2. So page 2 should be rendered by Flask with the query e.g. 127.0.0.1/login?username=test&color=3 I have tried the following so far (hard c...
{ "language": "en", "url": "https://stackoverflow.com/questions/74826679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Erlang install on Freebsd 10 on Amazon ec2 I'm trying to install erlang on amazon ec2 - on freebsd 10: fetch http://www.erlang.org/download/otp_src_17.0.tar.gz gunzip -c otp_src_17.0.tar.gz | tar xf - cd otp_src_17.0 ./configure --disable-hipe gmake gmake install and I get the following error: configure: error: Pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/23476805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checking if an input is formatted correctly in Python 3 so I've been assigned an assignment (obviously) to check if an input that a user has entered is formatted correctly, in the way AA99AAA (where A is a letter and 9 is a number from 0 to 9). So for the first character in the input, it would have to be a letter or...
{ "language": "en", "url": "https://stackoverflow.com/questions/40209158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access ASP.NET Core web server from another device I created a project using C# and ASP.NET Core empty and it worked on localhost - how can I access it from another device using the IP of the computer running the project? A: You need to configure kestrel to bind requests from 0.0.0.0 instead of localhost ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71044525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Syntax Error in Java print statement System.out.println("if(line.contains(\"<string key=\"concept:name\" value=\"LCSP\"/>\"\))"); I am getting an error. I want to print above statement as a string. Can someone help me. A: Remove the last backslash \ there is no need to escape ) System.out.println("if(line.contains...
{ "language": "en", "url": "https://stackoverflow.com/questions/32789495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Getting data for a video fails Using the following call: https://www.googleapis.com/youtube/v3/videos?part=snippet&id=whatever&key=whatever We get the following response: { "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. YouTube D...
{ "language": "en", "url": "https://stackoverflow.com/questions/62218683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I perform a threaded sparse matrix - vector multiplication using MKL? I need to perform a matrix vector multiplication, where the matrix is complex, symmetric and has four off-diagonal non-zero bands. So far I am using the sparse BLAS routine mkl_zdiasymv to perform the multiplication and it works fine on one...
{ "language": "en", "url": "https://stackoverflow.com/questions/20613603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get sequence of characters from words I wanted to generate a, unique code based on the input given. Input = "ABC DEF GHI" The code generated will be like, "ADG" (first letter of each word) and if this exists then "ABDG" (first two letters of first word and first letter of rest of the words) this exists too then "AB...
{ "language": "en", "url": "https://stackoverflow.com/questions/70075975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass String and File data with Volley POST method in Android? I am using Volley to make server requests but i came to know that volley is not passing params from getParams() method in POST request, so now i am passing these data by concatenating all param/values with the url like bellow. String url = "http://...
{ "language": "en", "url": "https://stackoverflow.com/questions/44512732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problems with Programatically selecting checkbox nodes I have a checkbox group Listed in a tree structure.The tree is connected with a vector, which stores the state of checkboxes in the tree. I have buttons to select all checkboxes, and other buttons to select the corresponding checkbox. From the below diagram you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9123928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ChromeHeadless not starting: timing out when running ng test I am working on an Angular 7 (7.2.13) app and am having trouble running npm run test, which maps to ng test --watch=false --browsers=ChromeHeadless. I am running Ubuntu under Windows 10 and all of my app-relating command line stuff is done on Ubuntu. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56324624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Broadcast Receivers can not get new values from new intent and show the previous values I have alarm manager . when user click on add button , user select time , date and fill title and other ... and after this . I save this into database and show this values into recycle view . I get values and save them into data...
{ "language": "en", "url": "https://stackoverflow.com/questions/59692745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass data from useSelector (redux) to useSate hook in react? Hi i am trying to work on a app, which has some predefined code of redux, and react. I am trying to get the players data which is formated json file and pass it to useSate hook. The data which I get using const players = useSelector(getPlayers); //...
{ "language": "en", "url": "https://stackoverflow.com/questions/72965495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSData dataWithContentsOfURL: returning nil NSString *jsonPath = [[NSBundle mainBundle] pathForResource:@"CRN_JSON" ofType:@"json"]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ data = [NSData dataWithContentsOfURL: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16883818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to call Rust async method from Python? I want to use a Rust async method in Python. I'm trying to use PyO3 or rust-cpython. For example, for sync Rust functions, I can use, #[pyfunction] fn myfunc(a: String) -> PyResult<String> { let mut contents = String::new(); contents = a.to_string() + " appended"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62619870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to keep decimal places with two zeros? Using the lib Decimal i can set the quantize to get the 2 decimal places with zero: from decimal import Decimal value = Decimal('1000.0').quantize(Decimal('1.00')) print(value) # Decimal('1000.00') But if i need to change it to float the last zero disappear: value = float(...
{ "language": "en", "url": "https://stackoverflow.com/questions/56026703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrofit2 How to get redirect url @HEAD("/") I have a minified URL and I want to have the final URL With Retrofit 1.9 I used to do this : @HEAD("/XXXXXXXXX") void fetchFinalUrl(Callback<String> cb); public void getUrl() { mMinifyService.fetchFinalUrl(new Callback<String>() { @Override ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37548238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how fix cors error on react app and coinbase connect api I can't get authorization URL to coinbase connect OAuth2 api. fetch("https://www.coinbase.com/oauth/authorize?response_type=code&client_id=cc460ce71913c49e4face4ac0e072c38564fabea867ebcd7ab9905970d8f3021&redirect_uri=http://localhost:3000/callback&state=SECURE...
{ "language": "en", "url": "https://stackoverflow.com/questions/70394816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visualforce - Clickable DataTable Cells - How to get Column and Row information I'd like to create a datatable where each cell is clickable. I'm assuming that I can probably fill each cell with apex:outputlink and that takes care of the clickable part as well as calling my controller for each click. The big questi...
{ "language": "en", "url": "https://stackoverflow.com/questions/11939740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: webm to mp4 without loosing audio video sync Iam trying to covert webm to mp4 using ffmpeg so that the output file is playable in all browsers. Iam using this ffmpeg command in ubuntu ffmpeg -i inpput.webm -f mp4 -copyts -vcodec libx264 -strict -2 -vf scale="380:-2" -pix_fmt yuv420p -profile:v baseline -level 3 outp...
{ "language": "en", "url": "https://stackoverflow.com/questions/49729020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to check if string is a proper subset of another string I want to check if a string is a strictly a subset of another string. For this end I used boost::contains and I compare the size of strings as follows: #include <boost/algorithm/string.hpp> #include <iostream> using namespace std; using namespace boost::al...
{ "language": "en", "url": "https://stackoverflow.com/questions/30029869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What happens to the Apache process when a PHP session expires? My understanding is that when a request is received, the Apache server will fork a new process and invoke the appropriate php script/file. What happens when the session started by the php script, in this new process forked by Apache, has expired or the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/38426698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: load an OCX dynamically and get the handle of loaded module in C# I am going to load an OCX in runtime and pass the handle of loaded ocx to another function which is a patch , I have the delphi code and it works fine , I want to convert it to c# but I don't know how Type TDLLFunc = procedure(param1: dword); VA...
{ "language": "en", "url": "https://stackoverflow.com/questions/23845451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error in config.preparations.append(modelName.self) Use of unresolved identifier 'modelName' I have already gone through the proper way of the fluent provider to build a relation for my model (Swift) using vapor (server side) and PostgreSQL provider (database), I follow the general method of fluent, but I don't kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/46429079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run android instrumental test using `androidx` and `navgation architecture`? I'm trying to write tests for an android app. Which has one Activity and two fragments (i.e FragmentOne and FragmentTwo) by clicking a button on FragmentOne it goes to the FragmentTwo. And I wrote the test for the same and I'm using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57279944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Day of week last year Im trying to calculate the date of the equivalent current day last year same week in standard SQL BigQuery. For instance if the current date 2019-07-01 is a monday of week 27. I want to know the date of monday of week 27 last year (2018). Current week would be select extract(isoweek from curren...
{ "language": "en", "url": "https://stackoverflow.com/questions/56855846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSTextView Chinese/Unicode Characters I have a piece of text drawn in my cocoa app but I also need to draw it in a NSTextField and a NSTextView and look exactly the same, they all usually draw fine but if there are unicode or Chinese characters in the text then the NSTextView has large line spaces between the lines,...
{ "language": "en", "url": "https://stackoverflow.com/questions/4278856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reset my app on Fortrabbit I created app on Fortrabbit and purchased a service for my app. I pushed some my app (Laravel) and created my database. Now I want to reset my app. How can I do that? Could somebody help? A: This is the script I use myself using laravel 4 to flush a complete DB in Fortrabbit DB::statement...
{ "language": "en", "url": "https://stackoverflow.com/questions/32047462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: STL and UTF-8 file input/output. How to do it? I use wchar_t for internal strings and UTF-8 for storage in files. I need to use STL to input/output text to screen and also do it by using full Lithuanian charset. It's all fine because I'm not forced to do the same for files, so the following example does the job just...
{ "language": "en", "url": "https://stackoverflow.com/questions/4018384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Accessing a javascript variable outside its assigned method I want to access the javascript variable called locations outside of its assigned method. Javascript code: $(document).ready(function() { var locations; console.log('document ready'); function initializeMap() { $.ajax({url: "getlocation.ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/33251451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to execute python script from another python script and send it's output in text file I have a script test.py which is used for server automation task and have other script server.py which list out all server name. server.py list all sevrer name in text.log file and this log file is used by test.py as a input. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43984237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular universal-starter prerender with 4 levels nesting parameters For some reasons I want to create prerender build of my angular 5 project using https://github.com/angular/universal-starter instead of server-side rendering. There are 4 levels in my routes like this: example.com/category/:id/subcategory/:id/eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/50201410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auth fail : Running maven plugin with JGit I am facing this issue while building a maven project [INFO] Cloning git@bitbucket.org:bookkeeper/bookkeeper-openapi3-hosted-ui-configuration.git:refs/tags/v5.0.0 into /Users/shubhamjain/bookkeeper/de/bookkeeper-ui-service/service/bookkeeper-api/bookkeeper-platform-hosted-u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75005817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Forgot Password showing 401 (Unauthorized) error I am trying to use forgot password function from strapi's Authentication documentation. When trying to send forgot password request to the api returning an 401 error. I am using vue js as frontend framework. <template> <form @submit.prevent="onForgetPassword"> <lab...
{ "language": "en", "url": "https://stackoverflow.com/questions/59222882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create several variables in a for loop increasing each one by 3 months in R? I need to create 12 variables starting from a certain date t1, increasing each one by 3 months. Here's an example: t1 t2 t3 01-01-2000 01-04-2000 01-07-2000 I've tried something like this (with package l...
{ "language": "en", "url": "https://stackoverflow.com/questions/56809254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HealthKit permissions not opening My app is not opening the HealthKit permissions screen where the user can allow access to Healthkit. I receive the screen on my watch that my app "would like to access your health data". But the phone simply moves to the app launch screen then first page instead of bringing up the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/39927755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LLVM traverse the IR and look for all calls to @llvm.dbg.declare I am writing an LLVM pass that bookeeps the number of declared variables in an openCL Kernel. To do so, I need to enable debugging information and access the @llvm.dbg.declare info. I iterate through all the instructions of a function and I use the is...
{ "language": "en", "url": "https://stackoverflow.com/questions/50764298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: proxy pattern no suitable methods found to override? Help i'm not sure what just went wrong This is all in the form... namespace Proxy_Pattern { public partial class Form1 : Form { public Form1() { InitializeComponent(); } double bankAmount = 1000.00; private v...
{ "language": "en", "url": "https://stackoverflow.com/questions/13036528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I calculate the number of occurrences that is followed by a specific value? (add if statement) How can I calculate the number of occurrences that are ONLY followed by a specific value that is after E*? e.g:'EXXXX' ? file.txt: E2dd,Rv0761,Rv1408 2s32,Rv0761,Rv1862,Rv3086 6r87,Rv0761 Rv2fd90c,Rv1408 Esf62,...
{ "language": "en", "url": "https://stackoverflow.com/questions/74140406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Store pandastable dataframe into variable I currently have the below script that reads an imported csv file and displays as pandastable in the tkinter GUI. As the file is imported its adds x2 additional columns self.table.addColumn("Current Status") and self.table.addColumn("Assign Technician"). How can I store the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63555587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Created shell script for mac but I am getting an error when I run it run_QA.sh: #!/bin/bash set v # ------------------------------------------------------- # 0 : Do NOT execute tests for the platform # Anything else(e.g. 1) Execute tests for the platform # ------------------------------------------------------- ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/42801638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostScript Path Combine I have just begun learning PostScript in order to produce graphics for LaTeX and I have no idea how to combine a path with itself so the stroke only affect the outer border of the drawn shape. My code is as follows: /black { 0 0 0 1 setcmykcolor } def /gold { 0.02 0.17 0.72 0.05 setcmykcolor ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11302089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Power BI dashboard with reports based on a push dataset do not alwasy update regularly I have written a little C# program which pushes data to a a streaming push dataset on Power BI Service. I have a report with a couple of simple visuals (nothing fancy) which are in turn pinned to a dashboard. About half the time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72809530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't insert a function to a element on onclick event (JS) I have problem with this code: var xButton = document.createElement("a"); xButton.className = "cXButton"; xButton.href = "#"; xButton.onclick = "closePanel()"; xButton.innerHTML = "X"; While "closePanel()" is a function I already wrote. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16151107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the difference between @observable and @published in polymer.dart? In polymer.dart, if you want to expose a variable defined in controller to the view side, you define the variable with @observable and use double mustache to embed the variable. However, some docs and tutorials use @published to meet the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23599378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can Kafka replication deploy on different machine? I'm running a project. My goal is to design a Kafka cluster. Preventing the condition that when one machine die, the data on that Kafka all disappear. I wonder if Kafka replication can be set on different machine in order to back-up? A: In addition to setting a re...
{ "language": "en", "url": "https://stackoverflow.com/questions/44594188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter Webrtc Build error on M1 android and ios I am trying to build a webrtc flutter app on my m1 macbook air. But I got different issues both on android and ios. Latest one ^0.8.2 has error on both then ^0.7.0+hotfix.1 demo demo only works for android. On iOS part 'Libyuv''s deployment target is set to 8.0 but m...
{ "language": "en", "url": "https://stackoverflow.com/questions/71024372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Not able to click on the button using Selenium <button class="css-obkt16-button" type="button"><span class="css-1mhnkuh">Download CSV</span></button> I am trying to click on the highlighted button 'Download CSV' having the above HTML code and save the csv file at some particular location, but I am not able to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/74768873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to instrumentation test activity going into background (STOPPED) then foreground (RESUMED)? I'm trying to do an instrumentation test to test behaviour when the app has been backgrounded then brought back to the foreground. I thought it would be easy to use ActivityScenario.moveToState(), then it doesn't have an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72400671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Voximplant – the callSIP method to call a phone number I want to use the Voximplant's callSIP method to call a phone number. Is it possible? How do I specify a number to call in the VoxEngine.callSIP() method? A: When you call via callSIP, you make a call to a 3rd-party PBX. If the PBX allows calling to phone numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75408226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is a graph library (eg NetworkX) the right solution for my Python problem? I'm rewriting a data-driven legacy application in Python. One of the primary tables is referred to as a "graph table", and does appear to be a directed graph, so I was exploring the NetworkX package to see whether it would make sense to use i...
{ "language": "en", "url": "https://stackoverflow.com/questions/844505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: toXmlString analog in XmlService? currently I am trying to rewrite my old script which uses Xml, the only trouble I have is that I cannot find in XmlService documentation any method similar to .toXmlString() from Xml. This issue isn't critical since I was using it for debug purposes only, but if possible I'd like to...
{ "language": "en", "url": "https://stackoverflow.com/questions/29842636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Messenger on different windows issue I have a messenger on PHP/js, imported to all pages of the website. The messenger works through ajax, checking for new messages each 5 seconds. Also I have desktop and sound notifications. The problem is, if I opened multiple pages, and I'm currently on one of them, the reminder ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46582682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uploading images for inline content without an html editor I've got a client with a D7 site in which all content is created by a single employee who knows html and css, but never accesses the back end. Is there a way to let them upload images to embed in content (not a field) without installing an html editor? No st...
{ "language": "en", "url": "https://stackoverflow.com/questions/21053389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode 11 Beta 3 animation no longer works I have just changed from Xcode 11 Beta 2, to Beta 3, and although I had to also change the navigationButton to navigationLink, all is ok, expect for the .animation() Has anyone else seen this issue? Have they changed something? I was working just fine in Beta 2. Thanks !! im...
{ "language": "en", "url": "https://stackoverflow.com/questions/56896491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bag of Words encoding for Python with vocabulary I am trying to implement new columns into my ML model. A numeric column should be created if a specific word is found in the text of the scraped data. For this I created a dummy script for testing. import pandas as pd bagOfWords = ["cool", "place"] wordsFound = "" m...
{ "language": "en", "url": "https://stackoverflow.com/questions/59443912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting Individual rows using LIMIT I'm trying to figure out if there's anyway to use GROUP_CONCAT to select rows based on these parameters. What I'm trying to to get the lowest time for every single style/zonegroup. AKA: Lowest Time for Style 0 ZoneGroup 0 Lowest Time for Style 0 ZoneGroup 1 Lowest Time for Styl...
{ "language": "en", "url": "https://stackoverflow.com/questions/40948605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generic Try[T] function I want to refactor some common error handling logic in a generic Try[T] handler, similar to this: def handler[T](t: Try[T], successFunc: T => Unit) = { t.map { case Success(res) => { // type mismatch required T, found Any (in successFunc line) //case Success(res: T) => { // Type ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/34075324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }