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
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 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 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
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"); } });
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 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 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
So I'm creating thumbnail and uploading some image files to webserver. My code is working with png but I have no idea why it's crashing with jpeg/jpg. FrontEnd <form method="POST" action="ajax.php" enctype="multipart/form-data"> <input type="file" name="uploadImage[]" id="file_input"> <input type="file" name="uploadImage[]" id="file_input1"> <input type="file" name="uploadImage[]" id="file_input2"> <input type="submit" name="sendBtn" value="Click me"> </form> Ajax.php $file_ary = reArrayFiles($_FILES['uploadImage']); //Reorder array foreach ($file_ary as $file) { if(file_exists($file['tmp_name
I would like to wait for MobilElement, not sure what is the correct way. Using Appium, Selenium and Java to create some automation tests, but running all using emulator and sometimes I need to wait little bit for element, I would like to use something what I use in webElement. Reason why I use find by class is in application there are no ids and I can not change it. public static MobileElement myButton(AndroidDriver driver, int index) { List<MobileElement> button = driver.findElements(By.className("android.widget.Button")); return button.get(index); } Emulator is slow for me so I would like to
I have created a very simple KMP project, with the following structure: -Root --app --gradle --SharedCode --src\commonMain\kotlin\actual.kt --src\iosMain\kotlin\actual.kt --scr\androidMain\kotlin\actual.kt --build.gradle.kts --native --KotlinIOS --iOS project (xcodeproj, etc) Everything works, and the basic project work on both Android and iOS platforms. But when I try to use an android-specific import statement in my androidMain directory, the import statement won't resolve: import android.os.build // Android Studio can't find this actual fun platformName(): String { return "Android" } It is
I want to display html by simple http server, but 127.0.0.1:8008 cannot be connected. I am using Python 3.7 and Pycharm. import socket import threading server = socket.socket() server.bind(("127.0.0.1",8008)) server.listen() def handle_sock(sock,addr): while True: tmp_data = sock.recv(1024) print(tmp_data.decode("utf8")) response_template = '''HTTP/1.1 200 OK <html> <head> <title>Build A Web Server</title> </head> <body> Hello World! </body> </html> ''' sock.send(response_template.encode("utf8")) while True: sock, addr = server.accept() client_thread = threading.Thread(target = handle_sock, ar
When I want to display html by simple http server,but 127.0.0.1:8008 can not be connected python3.7 and Pycharm import socket import threading server = socket.socket() server.bind(("127.0.0.1",8008)) server.listen() def handle_sock(sock,addr): while True: tmp_data = sock.recv(1024) print(tmp_data.decode("utf8")) response_template = '''HTTP/1.1 200 OK <html> <head> <title>Build A Web Server</title> </head> <body> Hello World! </body> </html> ''' sock.send(response_template.encode("utf8")) while True: sock, addr = server.accept() client_thread = threading.Thread(target = handle_sock, args=(sock,
Currently developing a website that embeds a spotify playlist with its URI as so: "https://embed.spotify.com/?uri=spotify:playlist:4hYaUylcBHW9Se152NoIy0" I'm wondering if there's an autoplay parameter that allows the playlist to play automatically when the web page is loaded ? It seems like this idea (to have an autoplay parameter) has been proposed before in these posts: (But none of them have gotten enough votes to succeed) https://community.spotify.com/t5/Closed-Ideas/All-Platforms-Autoplay-Parameter-for-Spotify-URIs/idi-p/1320044 The post above mentions doing something like this: spotify:
In the example below, we use the C++17 feature "Class template argument deduction" to deduce that val is of type Base<int, double, bool>: template<class T, class U, class V> struct Base { Base(T, U) { }; Base(T, U, V) { }; Base(V) { }; }; void func() { Base val(1, 4., false); } Now, is it possible to partially specify the template arguments, and let the remaining ones be deduced? Effectively something like this: Base<V = bool> val1(1, 4.); // U & V deduced --> Base<int, double, bool> Base<T = bool, U = int> val2(5.); // V deduced, T & U given --> Base<bool, int, double> I've tried e.g. templat
I have a problem and hope someone can help me. I am currently trying to write a script for Termux or Termux:Task. My script currently looks like this: #!/data/data/com.termux/files/usr/bin/bash cd /./sdcard/www/public/ wp post list sleep 5 Every time I load the script I get the following error message: /data/data/com.termux/files/usr/bin/wp: /usr/bin/env: bad interpreter: No such file or directory. I've been looking for a solution to my problem for hours, unfortunately without success. I am using an extension for Termux called "WordPress CLI". When I start termux and enter the commands individ
I'm trying to animate the slide number of a slider, but it doesn't work as expected. The slide number on the bottom should change, but when I click it, nothing happens. How do I modify my code so that the values change when clicked? A JSfiddle of the code. HTML: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.5.0/css/swiper.min.css"> <!-- Section Testimonies --> <div class="section testimonial" id="testimonial"> <div class="swiper-container faded-text"> <div class="swiper-wrapper"> <div class="swiper-slide"> <p class="p-large"> Lorem ipsum dolor sit amet, consectet