I have a wkwebview and I selected the checkbox 'inline playback' which is suppose to make any video in the wkwebview to not autoplay and stay in the webpage and not go full screen. This worked fine for me until my Xcode updated to 11! I now get the following error but it lets the auto playing video to go full screen, when before it wouldn't. 2019-09-27 22:26:43.654625-0400 RPD[3848:126819] [assertion] Error acquiring assertion: <NSError: 0x600000c9c7b0; domain: RBSAssertionErrorDomain; code: 2; reason: "Required client entitlement is missing"> { userInfo = { RBSAssertionAttribute = <RBSLegacyA
I want to know what Python versions I could install using the pyenv install command. pyenv versions lists only installed versions and does not appear to have an option to list available versions. How can I find out what versions of Python I can install with pyenv install?
I'm trying to recreate this effect from Apples Aracde site: https://www.apple.com/apple-arcade/ Look at the "Play Extraordinary" text, it's got a backdrop filter applied and blurs the video behind it. I can see they are using an SVG as an mask to clip the background, but I can't seem to do the same, the text comes out stretched or upside down. Could anyone show me how to use text as an SVG mask to cut out the div/element with a backdrop filter on it? Screenshot of the item in question: https://i.sstatic.net/wsxSe.png
I am developing with Kotlin and JPA recently. I use Kotlin data class as JPA @Entity class. But now, there comes some problem with relation @ManyToOne(fetch = FetchType.LAZY, optional = true) The lazy fetching doesn't work with data class. I have learned that Kotlin data class is default to be 'final' so that Hibernate can't generate proxy for them. I wonder is this a mistake to use Kotlin data class as JPA @Entity class or there is other ways to make the lazy fetching work properly with data class.
We have a large file around 6 GB that is decompressed to 64 GB size (OS image) that we need to download using http. We are using either node's request library or axios. File is downloaded and unpacked (piped) on the fly using following code: const downloadUsingHttp = (downloadUrl, destinationPath) => {enter code here return new Promise((resolve, reject) => { const unpackedPathWriteStream = fs.createWriteStream(destinationPath); let totalDownloadSize = 64023257088; let downloadedSize = 0; let lastProgressSent = 0; axios({ method: 'get', url: downloadUrl, responseType: 'stream', auth: { username
I have a variable that contains a text element. This text element has to be a variable and I need to change the text displayed. This is my code: import React, {Component} from 'react'; import { Button, Platform, StyleSheet, Text, View } from 'react-native'; type Props = {}; export default class App extends Component<Props> { // Initializes testval and testItem. constructor(props) { super(props); this.state = { testval:0, } this.testItem = <Text style={{ position:'absolute', left:50, top:200, backgroundColor:'white', }} > Value: {this.state.testval} </Text> } // Call `UpdateTest` after some tim
I'm trying to automate file upload by creating .bat file which when run will upload files to SFTP server. I would like to automate this process, but sftp command line asks for password. Is there a way to enter the password in .bat file to automate it? This is the code I'm using. It works, but user needs to enter the password. Is there a way to create batch file where password will be entered automatically? sftp user@ip password put C:\Users\user\Desktop\folder\* /public_html/upload
I'm not sure how to put it but I just learnt about system engineering and it is about designing complex systems. It is generally oriented to manufacturing and not software companies but I was wondering if concepts and techniques of system engineering might be of help for a software engineer.
I'm using git in VSCodium and each time I try to pull git is complaining. Looking into the log I see > git pull --tags origin master From https://github.com/MY/REPO * branch master -> FETCH_HEAD ! [rejected] latest -> latest (would clobber existing tag) 9428765..935da94 master -> origin/master Doing the command with --force helps until the next time. It's unclear to me what's going wrong here. What happened and how can I resolve this issue? I mean: Besides trashing my local repo and cloning again.
I am using multiatlas and json file for my sprites in Phaser 3. How can I set an offset (like setOrigin) for specific frames? There are some properties in the json which I suppose may help, but I don't understand their meaning. What's the difference between sourceSize and spriteSourceSize? I have also seen anchor property, but I suspect it's an old Phaser version... The best alternative would be if it was possible to set the frame offset in the animation definition itself, and not in the json definition of frames. But is it possible?
So I have the same website making the same request to the same server on (1) Chrome 76 and (2) Chrome 77 from different networks and computers. One request has (1) Sec-Fetch-Mode: no-cors, Sec-Fetch-Site: cross-site and the other one (2) Sec-Fetch-Mode: cors, Sec-Fetch-Site: same-site. The one with no-cors fails with a 400 to a C# Web API endpoint with CORS enabled (for years and thousands of different users on all kinds of devices). What is going on? There is talk of a Chrome bug not sending that header for pre-flight, but there it is and set to no-cors. Security setting or bug in Chrome? Fix
If I have a record locator (PNR?) the 6-character code that passengers get, how can I get the details of the corresponding itinerary? Is there some (possibly paid) service on the web that can do this?
While running my python3 code, I am getting the below error: 'TypeError: 'type' object is not subscriptable' System unable to recognize typing module having List parameter while I am trying to set __init__ class argument as List[int] I had installed typing.py module via pip and trying to import typing Even then system not recognizing List[int] type in the Class definition. Below is the code for the same, from typing import List class newcls: def __init__(self, a: int,arr: list[int]): self.a=a self.arr=arr def new1(self): print('a=',self.a) print(self.arr) obj1=newcls(1,[1,2,3]) obj1.new1() And
I am devleoping navigation app for CarPlay and in iOS 12 there were two methods from CPApplicationDelegate to detect if CarPlay is on: func application(_ application: UIApplication, didConnectCarInterfaceController interfaceController: CPInterfaceController, to window: CPWindow) and func application(_ application: UIApplication, didDisconnectCarInterfaceController interfaceController: CPInterfaceController, from window: CPWindow) In iOS 13 these methods are deprecated and Apple gave new delegate: CPTemplateApplicationSceneDelegate I have tried to connect this new delegate CPTemplateApplication
I need to pass multiple value by using onChange when I select the option, but I can not select single option . it select whole objects . Here is my code . const test = [{id:1, name:'test, value:{x:10}}] <Select showSearch style={{ width: 200 }} placeholder="Select a person" optionFilterProp="children" > {test.map(item =>( <Option value={item.id, item.value}>{item.name}</Option> ))} </Select> is there an alternative solution to fix this problem
I have a Vue.js/Laravel application in which i am struggling with a simple task. I have a child component called Create, which creates a new item into the DB and supposedly should emit this new created data to a parent component, so that i would include this new created data into a array on the parent component called jobs. That doesnt actually work and i have to refresh the page in order to see that on the parent component. Can anyone help me on that? This is my child component Create.vue <template> <div class="modal-backdrop"> <div class="modal"> <header class="modal-header"> <slot name="hea
I have a workflow that FTPs files by using an external action from someuser: - name: ftp deploy uses: someuser/ftp-action@master with: config: ${{ secrets.FTP_CONFIG }} Is this a security concern? For example could someuser change ftp-action@master to access my secrets.FTP_CONFIG? Should I copy/paste their action into my workflow instead?
I was creating a phonebook in C using single linked list. The issue that I am experiencing in GCC is that at certain lines, GCC is throwing assignment to expression with array type errors. And at certain lines, it is giving me warning like format %s expects an argument of type char*. I have tried without the sorting function by putting it in comments and executing. The program executes and asks for the number, first name and last name. But then only the first name and last name is shown properly. The phone number displays some odd value which looks like the memory address. #include<stdio.h> #i
I am still very new to Power Pivot & DAX Measures, so a little help would be greatly appreciated here! I have the below table: I am trying to build a DAX measure that will return the latest [Universe] value. I have tried a combination of CALCULATE, MAX, FILTER, EARLIER, but am struggling to get the desired output, as seen below. I don't necessarily want the outputs in a table, but rather in a measure because I want to use it in a calculation. Note, this is my current attempt: Total Universe:=SUM([Universe]) Last Universe Date:=CALCULATE(MAX([Date]),FILTER(tbData,LASTNONBLANK(tbData[Universe],1
I'm trying to learn to create hooks so I can re-use data that I have to change in different components. I'm using Material UI's Tabs and need to use useTab, a custom hook to change the tab id. import React, { useContext } from 'react'; import { ProductsContext } from './ProductsContext'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import { useTab } from '../../hooks/tab'; const ProductsNav = () => { const {products, categories, loading} = useContext(ProductsContext); const [tabValue] = useTab(0); const handl
The getting started examples in Espressif's esp-idf are hello-world and blink. Hello-world outputs prints then calls esp_restart(); - so it is in it's own special infinite loop. The blink example (with comments removed) has this app_main, which is also an infinite loop: void app_main(void) { gpio_pad_select_gpio(BLINK_GPIO); gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT); while(1) { printf("Turning off the LED\n"); gpio_set_level(BLINK_GPIO, 0); vTaskDelay(1000 / portTICK_PERIOD_MS); printf("Turning on the LED\n"); gpio_set_level(BLINK_GPIO, 1); vTaskDelay(1000 / portTICK_PERIOD_MS); } } I c
I want to get a list of contributors to the /torvalds/linux repository on GitHub. But I receive this error that the result is too large and API can't list it. What should I do? Specifically, I write this code: import requests from pprint import pprint response = requests.get('https://api.github.com/repos/torvalds/linux/contributors', auth=(Github_username, Github_password)) pprint(response.json()) I get this as output: {'documentation_url': 'https://developer.github.com/v3/repos/#list-contributors', 'message': 'The history or contributor list is too large to list contributors ' 'for this repos
I used postman to test my web service. In the http response body, I find the WS's response. When I test my call, in my web application, using ajax, I can not find the response anymore. The tab contains a message saying "This request has no response data available." this is my ajax call: $.ajax({ url: url, method: "POST", data: params, success:function(response) { console.log(response); // no console here! console.log('response'); }, error:function(){ console.log("error"); } });
So I made math tool app with vuetify. To build the contents of tabs, I used the v-row and v-flex components. While it was running on my localhost it worked perfectly on my phone. But now when it's on my website I can zoom out on my phone. It's as if it's in permanent desktop mode. I don't get any errors either. Has anyone ever faced this issue before? I built the app with npm run build and put the /dist/ folder on my server.
I am trying to scrape the table from this website "https://www.forbes.com/fintech/2019/#ef5484d2b4c6" When i tried to find the main table, it returned the following without the table Blockquote "" error message received url = 'https://www.forbes.com/fintech/2019/#ef5484d2b4c6' source = urlopen(url).read() soup = BeautifulSoup(source) div1 = soup.find('div', attrs={'id':'main-content'}) div1 quote:"" Here's the data i am looking for: high level section of data Data i would like to scrape
I'm using react hooks and need to do a page refresh on state change. I tried using window.location.reload() but this doesn't result in a proper refresh. const responseGoogle = async googleData => { await userLogin(googleData); setLoggedIn(true); window.location.reload() }; Only a manual F5 refresh does the job! Is there anything that's like a full refresh in React? Any help is much appreciated.
I am using cURL in my PHP script to test my API. When i try to use my function to get data it throw me an error Error: Failed to connect to alenke.test port 80: Connection refused but when I execute it in the terminal curl --ipv4 -v "http://alenke.test/wp-json/chatbot/v1/brand"; it give me `Trying 127.0.0.1... * TCP_NODELAY set * Connected to alenke.test (127.0.0.1) port 80 (#0) GET /wp-json/chatbot/v1/brand HTTP/1.1 Host: alenke.test User-Agent: curl/7.54.0 Accept: HTTP/1.1 200 OK Server: nginx/1.15.7 Date: Sun, 01 Sep 2019 16:47:36 GMT Content-Type: application/json; charset=UTF-8 Transfer-E
I'm just getting into the world of parallel reductions. I'm trying to implement this with Metal. I have been able to successfully write a simple version using atomic types and using the atomic_fetch_* functions. I am now trying trying to do something similar with non-atomic variables, a simple struct. Defined like this: struct Point2 { int x; int y; }; With a kernel function like this: kernel void compareX(const device Point2 *array [[ buffer(0) ]], device Point2 *result [[ buffer(1) ]], uint id [[ thread_position_in_grid ]], uint tid [[ thread_index_in_threadgroup ]], uint bid [[ threadgroup_
I am trying to get the mobile user location by URL access. With the PHP $_SERVER variable I can get ipv4/ipv6 address, but the results are less accurate. with the one click of user javascript can send a client location. but it's asks for the user permission, it's fine. but after the one click, expecting to get a location continuously, even the browser is not active
I have a homebrew binary fixed-point arithmetic support library and would like to add numpy array support. Specifically I would like to be able to pass around 2D arrays of fixed-point binary numbers and do various operations on them such as addition, subtraction, multiplication, rounding, changing of fixed point format, etc. The fixed-point support under the hood works on integers, and separate tracking of fixed-point format data (number of integer and fractional bits) for range checking and type conversion. I have been reading the numpy documentation on ndarray subclassing and dtype, it seems