Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jneira's full-sized avatar
:octocat:

Javier Neira jneira

:octocat:
View GitHub Profile
@jneira
jneira / MultipartFileSender.java
Last active March 10, 2023 17:49 — forked from davinkevin/MultipartFileSender
Implementing HTTP byte-range requests in Spring 4 and other framework...
package lan.dk.podcastserver.utils.multipart;
import lan.dk.podcastserver.utils.MimeTypeUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Meta issue: why do we have labels Cabal: cmd/check and cabal-install: cmd/check ? Cabal: cmd/check cabal-install: cmd/check meta: tracking
#8185 opened yesterday by andreasabel
1
cabal check error location not propagated ("unexpected SecArgName") attention: pr-welcome Cabal: cmd/check Cabal: parser re: error-message type: bug
#7846 opened on 1 Dec 2021 by andreasabel
2
Encourage top-level build-depends when it occurs in all branches of a conditional Cabal: cmd/check re: conditional type: enhancement
#7768 opened on 23 Oct 2021 by andreasabel
2
cabal check warns about -O2 even if it is just a flag Cabal: cmd/check re: -O2 re: flag type: bug
PS D:\dev\ws\haskell\cabal> cabal run --builddir .\dist-val-ghc-8.10.7\ cabal-testsuite:exe:cabal-tests -- .\cabal-testsuite\PackageTests\CustomPreProcess\setup.test.hs --with-cabal $CABAL_CMD
Up to date
"D:\ghcup\bin\runghc.exe" "--" "--ghc-arg=-i" "--ghc-arg=-no-user-package-db" "--ghc-arg=-package-db" "--ghc-arg=D:\cabal\store\ghc-8.10.7\package.db" "--ghc-arg=-package-db" "--ghc-arg=D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "--ghc-arg=-package-id" "--ghc-arg=Cabal-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=Cabal-syntax-3.7.0.0-inplace" "--ghc-arg=-package-id" "--ghc-arg=async-2.2.4-95020977405be35391cd1ff29177d0d573277564" "--ghc-arg=-package-id" "--ghc-arg=base-4.14.3.0" "--ghc-arg=-package-id" "--ghc-arg=cabal-testsuite-3-inplace" "--ghc-arg=-package-id" "--ghc-arg=clock-0.8.3-dabe425044590505b9f094b194448f133b7ed57b" "--ghc-arg=-package-id" "--ghc-arg=exceptions-0.10.4" "--ghc-arg=-package-id" "--ghc-arg=filepath-1.4.2.1" "--ghc-arg=-package-id" "--ghc-arg=optparse-app
package haskell-language-server
ghc-options: -dynamic
> cabal install -w ghc-8.8.4
.....
Building executable 'hsc2hs' for hsc2hs-0.68.7..
[ 1 of 12] Compiling ATTParser ( ATTParser.hs, dist\build\hsc2hs\hsc2hs-tmp\ATTParser.o )
......................
[12 of 12] Compiling Main ( Main.hs, dist\build\hsc2hs\hsc2hs-tmp\Main.o )
Linking dist\build\hsc2hs\hsc2hs.exe ...
realgcc.exe: error: LEVEL=6: No such file or directory
ghc.exe: panic! (the 'impossible' happened)
(GHC version 8.8.4 for x86_64-unknown-mingw32):
D:\ws\haskell\ghcup-hs>cabal build
Build profile: -w ghc-8.6.5 -O2
In order, the following will be built (use -v for more details):
- libarchive-3.0.3.1 (lib:libarchive) (requires build)
- yaml-streamly-0.12.0 (lib) (requires build)
- ghcup-0.1.17.3 (lib) (first run)
- ghcup-0.1.17.3 (test:ghcup-test) (first run)
- ghcup-0.1.17.3 (exe:ghcup) (first run)
[1 of 1] Compiling Main ( D:\ws\haskell\ghcup-hs\dist-newstyle\tmp\s
rc-13672\libarchive-3.0.3.1\dist\setup\setup.hs, D:\ws\haskell\ghcup-hs\dist-new
PS D:\dev\ws\haskell\issues\network-3.1.2.2> D:\bin\cabal.exe build
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
- network-3.1.2.2 (lib:network) (first run)
Configuring network-3.1.2.2...
configure: WARNING: unrecognized options: --with-compiler
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking for gcc... D:\ghcup\ghc\8.10.7\lib\../mingw/bin\gcc.exe
checking whether the C compiler works... yes
D:\ws\haskell\stack-test>stack --version
Version 2.7.3.1, Git revision 016cb8490f5c5b6e8a0fa3c9cf1172f64b5810d9 x86_64 hp
ack-0.34.4
D:\ws\haskell\stack-test>where stack
D:\ghcup\bin\stack.exe
D:\ws\haskell\stack-test>dir %STACK_ROOT%\hooks\ghc-install.sh
El volumen de la unidad D es Datos
El número de serie del volumen es: 6EEC-72D7
@jneira
jneira / express-sample.cljs
Created August 25, 2011 20:07
Clojurescript / node.js basic examples
(ns express_sample
(:require [cljs.nodejs :as node]))
(def express (node/require "express"))
(def app (. express (createServer)))
(defn -main [& args]
(doto app
(.use (. express (logger)))
(.get "/" (fn [req res]
stack : Version 2.8.0, Git revision ad4849e7689b823a0300cba938ebff85ebd1d470 (dirty) (8357
commits) PRE-RELEASE x86_64
En línea: 1 Carácter: 1
+ stack build -v 2>&1 | out-file .\output.txt
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Version 2.8.0, ...-RELEASE x86_64:String) [], RemoteE
xception
+ FullyQualifiedErrorId : NativeCommandError
Compiled with: