Will I be able to use CURL to get HTTP/2 headers?

Right now I use curl -I to retrieve headers. Will sites adopt a different way of serving headers with HPACK in the upcoming adoption of HTTP/2 by browsers that will render my use of the curl...

Is HTTP/2 a stateless protocol?

From my understanding, HTTP/2 comes with a stateful header compression called HPACK. Doesn't it change the stateless semantics of the HTTP protocol? Is it safe for web applications to consider...

ImportError: No module named 'thread'

when I run mitmproxy command in command line, I get the following error. % mitmproxy Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 7, in <module> from...

Heroku fails to install pywin32 library

I'm trying to push my Python application to Heroku but it looks like pywin32 isn't being installed: Counting objects: 519, done. Delta compression using up to 4 threads. Compressing objects: 100%...

How does headers keep sync in both client and server side in HTTP/2?

As HTTP/2 use hpack to compress headers, it has a static table and a dynamic table per connection. But I got a question, how does client & server side sync headers?

How does one have multiple libraries using hpack?

I'd like to organize my project into different libraries, since eventually I may be splitting some out to external repositories. In a .cabal file I can have multiple libraries (one unnamed, and...

How to define multible executables / Main modules with stack/hpack

I use stack and a package.yaml file for hpack to compile my haskell project. It has three executables backed by one library. As one would expect the executables are all defining a Main module: $...

Ktor - Quickstart new project from plugin throwing Error

I am using: Kotlin 1.3.3 Ktor plugin 1.2.0 IntelliJ IDEA 2019.1.3 (Ultimate Edition) Build #IU-191.7479.7, built on May 21, 2019 openjdk version "11.0.2" 2019-01-15 - OpenJDK Runtime...

How do I override a Haskell package in nixpkgs via Nix?

Essentially I'm using this: default.nix { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc864" }: nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./gitchapter.nix { } gitchapter.nix {...

How can I enable Haskell profiling when using Nix's callCabal2nix

Currenty my default.nix looks like: { sources ? import ./nix/sources.nix , compiler ? "ghc865" } : let niv = import sources.nixpkgs { overlays = [ (_ : _ : { niv = import sources.niv...

Trouble updating to Spyder 4.0.0

I am under Windows 10, 64 bits. I tried several time to update Spyder 4.0.0 with both the Anaconda Prompt and the Anaconda Navigator. It failed. I uninstalled Anaconda and reinstalled it. Then I...

golang grpc transport.newBufWriter and bufio.NewReaderSize not releasing memory

I have a simple grpc server in golang which does CRUD operations on an object. However, when I run it the memory never goes down even after requests stop. pprof of heap show has the following...

Is my experience with setting up Haskell dev environment for the first time common or a one-off?

I've decided to start with Haskell and bumped into an unfamiliar ecosystem. I've wrote down my current conclusions in short and long version (by now I realise the issue I had is probably temporal...

GHC can't find foreign library (libjack.lib) that works with mingw gcc (but not mingw-w64)

Objective: I am writing a haskell program on Windows 10 using stack and the bindings for jack from hackage. Jack is installed and its lib/include paths are provided to ghc. My objective is to...

golang gRPC 503 on CORS preflight using Istio grpc-web proxy

I'm trying to set up a go-based gRPC server in Kubernetes, and making requests via a grpc-web client. The client first runs a CORS preflight request, which seem to make it to the gRPC server. The...

How can I take N bits of byte in nom?

I am trying to write a HTTP2 parser with nom. I'm implementing the HPACK header compression, but having trouble understanding how to work with bit fields in nom. For example, the Indexed Header...

heroku pip requirements.txt google-cloud-speech fails

I have a requirements.txt in my python/django project. Everything has worked fine, locally as well, until I tried to include google-cloud-speech in my requirements and deploying to heroku. It has...

SyntaxError when launching a newly created Django application

I just created a project with Django, let me show you how I did it (with the voice of Wix ads ;)): django-admin startproject portfolio But when I launch my application I get a SyntaxError. So I...

Could not load module 'System.Random'

I could not add System.Random module to use it my source haskell file. import System.Random This is the error produced by stack ghc: /Users/admin1/Haskell/PROJECTS/L4/src/Lib4.hs:32:1:...

AttributeError: module 'django.db.models' has no attribute 'JSONField'

Following Django 3.1 guidelines for JSONField for all supported database...

What nix function can I use to get the file extension?

Often when building haskell projects I run into an error of the cabal file being present when using hpack instead. niobiumcoconut.cabal was generated with a newer version of hpack, please upgrade...

Create custom flags in Haskell

I have a test suite which runs the same test cases with two backends: the in-memory one and the real one, I am trying to create a function which only run the real one when a flag is present. I...

ModuleNotFoundError: No module named <module_name>

Looks these two modules are installed: [email protected]:~$ pip3 list |grep -i ezgmail EZGmail 2020.9.29 [email protected]:~$ pip3 list |grep -i twilio twilio ...

Cabal tries to build unknown package when building with alex, happy in nix-shell

I'm currently trying to build a Haskell project using nix-shell and cabal, with alex and happy as build tools. Building inside nix-shell (with and without --pure), I get the following strange...

How should I configure my headers to make an HTTP/2 POST to APNs to avoid "Received duplicate pseudo-header field" error?

I'm pretty new to HTTP stuff, primarily stick to iOS so please bear with me. I'm using the httpx python library to try and send a notification to an iPhone because I have to make an HTTP/2 POST to...

PHP CURL - Apple push notification servers

I am writing code to send notifications to the Apple push notification servers (APNs) using PHP Laravel. It says in the documents that it requires HTTP/ HPACK header compression. I've tried using...

pip getting killed in Docker

I am building a Docker container based on python:3.7-slim-stretch (same problem also happens on python:3.7-slim-stretch), and it is getting Killed on pip install --no-cache-dir --verbose...

Running a custom per-component `IO ()` before building components, interleaved with actual building

I have a per-component custom action that I would like to run before the given component is built: justBeforeBuilding :: LocalBuildInfo -> BuildFlags -> Component -> IO BuildInfo Because the...

VSCode no intellisense in haskell extension for additional modules

Is there a way to make intellisense work for additional modules (anything outside the prelude) like Quicktest or Random in VS Code? I am using: VSCode: Version 1.55.0 the extension "Haskell...

Could not find module System.Console.MinTTY.Win32 when compiling test-framework with Stack on Windows

I'm getting an error when attempting to compile Haskell tests using test-framework on Windows. Steps to reproduce Create a new library using Stack: $ stack new repro simple-library Then navigate...