Run a function in a loop until

I’m currently trying to loop running a function. Can’t figure it out and here’s what I tried: do { queryLastCursor(lastCursor).then(lastCursorResults => { if (lastCursorResults.hasNext = false) { hasNextPage = false; } console.log(hasNextPage); }) } while (hasNextPage); queryLastCursor is a method with a call to an API. When it returns the data it would have a…

Details

Fedora 30 Can’t install ruby debug gems even though ruby-devel is installed

I am trying to get the RubyMine (2019.3) debugger working on a pretty fresh install of Fedora 30. When I try to run the debugger, it asks to install gems. I say yes, and it errors (https://gist.githubusercontent.com/electricjones/f49187ca29a4c24c20d522290e17e472/raw/07c8df5f2c3b742bb389f900d00bef02fbcf6871/rubymine%2520debug%2520error). The important bits seem to be ERROR: Failed to build gem native extension. current directory: /home/michael/.gem/ruby/gems/debase-0.3.0.beta19/ext /usr/bin/ruby -I…

Details

How to set no spacing in UICollectionViewDelegateFlowLayout?

I’m trying to do a UICollectionViewDelegateFlowLayout with 3 items to a row at a third of the screen width. For some reason it’s adding spacing and not conforming to the square layout. Here are the UICollectionViewDelegateFlowLayout functions. func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let yourWidth = (collectionView.bounds.width/3.0) -…

Details

python unable to decode websocket message

I’m trying to scrape websocket data from a website using python, but I dont really know how to do that. URL:wss://qrtm1.ifxdb.com:8443/socket.io/?EIO=3&transport=websocket&sid=zIeAEbyTzCIPBEX7D5AD (the part after “sid” changes everytime one loads the page) In the web debugger I can see this response header ‘Server’: ‘nginx/1.13.12’, ‘Date’: ‘Thu, 26 Dec 2019 23:33:21 GMT’, ‘Connection’: ‘upgrade’, ‘Upgrade’: ‘websocket’, ‘Sec-WebSocket-Accept’:…

Details