From 93f4371093d33d7a91268849052764769780c0d8 Mon Sep 17 00:00:00 2001 From: marko Date: Mon, 12 Nov 2018 09:29:37 +0100 Subject: [PATCH 1/6] =?UTF-8?q?-=20Das=20die=20cssKomprimierung=20wieder?= =?UTF-8?q?=20aktiviert=20=09modified:=20=20=20Makefile=20-=20Ein=20Makefi?= =?UTF-8?q?le=20zum=20Upload=20einer=20VideoGalerie=20auf=20eine=20ftpServ?= =?UTF-8?q?er=20=09modified:=20=20=20src/Makefiles/Makefile.ftpUpload=20-?= =?UTF-8?q?=20Starte=20"ohne=20Teilnahme"=20werden=20nicht=20mehr=20in=20d?= =?UTF-8?q?er=20Gesamptanzahl=20ber=C3=BCcksichtigt=20=09modified:=20=20?= =?UTF-8?q?=20wkParticipo/admin/showEvent.php=20=09modified:=20=20=20wkPar?= =?UTF-8?q?ticipo/showWkEvent.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../redesign2018/markdownExperiment/Makefile | 4 ++-- .../src/Makefiles/Makefile.ftpUpload | 6 ++++-- .../wkParticipo/admin/showEvent.php | 20 ++++++++++++++++--- .../wkParticipo/showWkEvent.php | 15 ++++++++------ 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/homepage/redesign2018/markdownExperiment/Makefile b/homepage/redesign2018/markdownExperiment/Makefile index 036456a..00be903 100644 --- a/homepage/redesign2018/markdownExperiment/Makefile +++ b/homepage/redesign2018/markdownExperiment/Makefile @@ -45,10 +45,10 @@ ampTest: $(ampFiles) build/css/cwsvJudo.css: $(cssFiles) mkdir -p $(dir $@) - cat $^ > $@ +# cat $^ > $@ # cat $(cssFiles) | cleancss -o $@ # cat $^ | ./node_modules/.bin/csso -o $@ -# cat $^ | csso -o $@ + cat $^ | csso -o $@ build/%.php: src/md/%.md build/yaml/%.yaml pandocTemplate/cwsvJudo.html5.pandocTemplate mkdir -p build diff --git a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload index 9a08228..34bc487 100644 --- a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload +++ b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload @@ -7,12 +7,14 @@ ftpPassword = eeloor0D ftpPathBase = /htdocs/videoalben/videoalben.2018 vidGalIndexPhp = /d/temp/cwsvJudo/homepage/redesign2018/markdownExperiment/src/galleryTemplates/indexHier.php - +dryRun = --dry-run +timeHandling= --only-newer .PHONY: all all: .PHONY: ftpUpload ftpUpload: - lftp -e 'set net:limit-rate 25600; mkdir -f $(ftpPathBase)/$(VID_GAL_DIR); mkdir -f $(ftpPathBase)/$(VID_GAL_DIR)/thumbnails; mkdir -f $(ftpPathBase)/$(VID_GAL_DIR)/webm; put $(vidGalIndexPhp) -o $(ftpPathBase)/$(VID_GAL_DIR)/index.php; put videos/config.inc.php -o $(ftpPathBase)/$(VID_GAL_DIR)/config.inc.php; mirror -R --ignore-time videos/thumbnails $(ftpPathBase)/$(VID_GAL_DIR)/thumbnails; mirror -R --ignore-time videos/webm $(ftpPathBase)/$(VID_GAL_DIR)/webm;quit' -u $(ftpUser),$(ftpPassword) ftp://$(ftpServer) + lftp -e 'set net:limit-rate 25600; mkdir -f $(ftpPathBase)/$(VID_GAL_DIR); mkdir -f $(ftpPathBase)/$(VID_GAL_DIR)/thumbnails; mkdir -f $(ftpPathBase)/$(VID_GAL_DIR)/webm; put $(vidGalIndexPhp) -o $(ftpPathBase)/$(VID_GAL_DIR)/index.php; put videos/config.inc.php -o $(ftpPathBase)/$(VID_GAL_DIR)/config.inc.php; mirror $(dryRun) $(timeHandling) -R videos/thumbnails $(ftpPathBase)/$(VID_GAL_DIR)/thumbnails; mirror $(dryRun) $(timeHandling) -R videos/webm $(ftpPathBase)/$(VID_GAL_DIR)/webm; quit; ' \ + -u $(ftpUser),$(ftpPassword) ftp://$(ftpServer) diff --git a/homepage/redesign2018/markdownExperiment/wkParticipo/admin/showEvent.php b/homepage/redesign2018/markdownExperiment/wkParticipo/admin/showEvent.php index 150a3c2..37c2f19 100644 --- a/homepage/redesign2018/markdownExperiment/wkParticipo/admin/showEvent.php +++ b/homepage/redesign2018/markdownExperiment/wkParticipo/admin/showEvent.php @@ -169,10 +169,24 @@ "); + echo("NameVornameMassePlatzstarterIdfahrtId"); + + foreach( $starterData as $starter ){ + if($starter['type'] != $typeKey) continue; + echo(""); + $userData = getUserData($mysqli, $starter['userId']); + echo("".mb_convert_encoding($userData['name'], 'UTF-8', 'ISO-8859-1').""); + echo("".mb_convert_encoding($userData['vorname'], 'UTF-8', 'ISO-8859-1').""); + echo("".$starter['masse'].""); + echo("".$starter['platz'].""); + echo("".$starter['id'].""); + echo("".$starter['fahrtId'].""); + echo(""); + } + echo(""); } -?> - -Einschreibungen: - -
  • Eingeschrieben: - Noch hat sich niemand für diesen Wettkampf gemeldet! + Noch will niemand zu diesem Wettkampf!
  • - + From e808faf8eb50a619da40bc9a27df2393ffc94040 Mon Sep 17 00:00:00 2001 From: marko Date: Tue, 13 Nov 2018 14:28:18 +0100 Subject: [PATCH 2/6] Changes to be committed: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Starkes Komprimieren von png new file: src/Makefiles/Makefile.pngCompress - Dynamische Bitrate, damit eine max. Dateigröße von 10MB eingehalten wird modified: src/Makefiles/Makefile.vidstabTest new file: src/galleryHelper/getVideoDuration.py new file: src/galleryHelper/getVideoDurationJson.py --- .../src/Makefiles/Makefile.pngCompress | 11 +++ .../src/Makefiles/Makefile.vidstabTest | 78 ++++++++++++++----- .../src/galleryHelper/getVideoDuration.py | 18 +++++ .../src/galleryHelper/getVideoDurationJson.py | 68 ++++++++++++++++ 4 files changed, 154 insertions(+), 21 deletions(-) create mode 100644 homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.pngCompress create mode 100644 homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDuration.py create mode 100644 homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py diff --git a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.pngCompress b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.pngCompress new file mode 100644 index 0000000..13d6fd3 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.pngCompress @@ -0,0 +1,11 @@ +pngCompressed/%.png: %.png + mkdir -p pngCompressed + pngquant --speed 1 --force --output $@ $^ + zopflipng -y --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $@ $@ + +pngCompressed/%.png: %.jpg + mkdir -p pngCompressed + convert $^ $(patsubst %.jpg,%.png,$^) + pngquant --speed 1 --force --output $@ $^ + zopflipng -y --iterations=500 --filters=01234mepb --lossy_8bit --lossy_transparent $@ $@ + rm -f $(patsubst %.jpg,%.png,$^) diff --git a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest index 2da1067..a81df43 100644 --- a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest +++ b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest @@ -1,18 +1,42 @@ FFMPEG = /c/proggis/media/editoren/ffmpeg-4.0.2-win64-static/bin/ffmpeg.exe GUETZLI = /d/projekte/tests/guetzli.git/bin/Release/guetzli.exe -VID_CODEC_HEIGHT = 360 -VID_CODEC_BITRATE = 500k -VID_CODEC = libvpx-vp9 +#DEFAULT_FFMPEG = ffmpeg +DEFAULT_FFMPEG = /c/proggis/media/editoren/ffmpeg-4.0.2-win64-static/bin/ffmpeg.exe + +# Für eine schnelle Komprimierung libvpx, sonst vp9 +DEFAULT_VID_CODEC_HEIGHT = 360 +DEFAULT_VID_CODEC_WIDTH = -2 +DEFAULT_VID_CODEC_BITRATE = 500k +DEFAULT_VID_CODEC = libvpx-vp9 + +# Standardwerte auf die benutzen Variablen schreiben, falls diese noch +# nicht (z.B. aus dem Terminal heraus oder über ein IncludeCfgFile) +# gesetzt worden sind +VID_CODEC_BITRATE := $(if $(VID_CODEC_BITRATE),$(VID_CODEC_BITRATE),$(DEFAULT_VID_CODEC_BITRATE)) +VID_CODEC_HEIGHT := $(if $(VID_CODEC_HEIGHT),$(VID_CODEC_HEIGHT),$(DEFAULT_VID_CODEC_HEIGHT)) +VID_CODEC_WIDTH := $(if $(VID_CODEC_WIDTH),$(VID_CODEC_WIDTH),$(DEFAULT_VID_CODEC_WIDTH)) +VID_CODEC := $(if $(VID_CODEC),$(VID_CODEC),$(DEFAULT_VID_CODEC)) -sourceVideos = $(wildcard videos/.forCompressing/*.video) +targetSourceDir = videos/aufnahmen/ +sourceVideos = $(wildcard videos/.forCompressing/*.video) + vidstabLogs = $(addsuffix .trf, $(basename $(sourceVideos))) -firstPassLogs = $(addsuffix .firstPassLog, $(basename $(sourceVideos))) +firstPassLogs = $(addsuffix .firstPassLog-0.log, $(basename $(sourceVideos))) webmVideos = $(addprefix videos/webm/, $(addsuffix .webm, $(basename $(notdir $(sourceVideos))))) jpegThumbs = $(addprefix videos/thumbnails/, $(addsuffix .jpg, $(basename $(notdir $(sourceVideos))))) +# das result= fehlt absichtlich +ffmpegVideoFilterVidstabDetect = vidstabdetect=shakiness=10:accuracy=15 +# das input= fehlt absichtlich +ffmpegVideoFilterVidstabTransform = vidstabtransform=optzoom=2:interpol=bicubic:smoothing=30 + +ffmpegVideoScaleFilter = scale=$(VID_CODEC_WIDTH):$(VID_CODEC_HEIGHT):sws_flags=lanczos, +ffmpegVideoFilterDeinterlace = yadif, +ffmpegVideoFilterDenoise = hqdn3d, + .SECONDARY: $(vidstabLogs) $(firstPassLogs) @@ -29,31 +53,45 @@ clean: .PHONY: thumbnails thumbnails: $(jpegThumbs) +.PHONY: echo +echo: + @echo $(webmVideos) + @echo $(firstPassLogs) + @echo $(targetSourceDir) + + # Erzeugen der Targets .PHONY: targets targets: - for file in videos/aufnahmen/papaRomy/*.webm;\ + mkdir -p videos/.forCompressing +# for file in videos/aufnahmen/papaRomy/*.webm;\ +# do \ +# checkSum=$$(sha512sum $${file});\ +# ln -f $${file} videos/.forCompressing/$${checkSum%%\ *}.video;\ +# done; + for file in $(targetSourceDir)/*.*;\ do \ checkSum=$$(sha512sum $${file});\ ln -f $${file} videos/.forCompressing/$${checkSum%%\ *}.video;\ done; -videos/.forCompressing/%.trf: videos/.forCompressing/%.video # Die Stabilisierungsberechnung: # eventuell sollte hier die Skalierung vorgeschaltet werden... +videos/.forCompressing/%.trf: videos/.forCompressing/%.video $(FFMPEG) -i $^ \ - -filter:v vidstabdetect=result="$@" \ + -filter:v $(ffmpegVideoFilterDeinterlace)$(ffmpegVideoFilterDenoise)$(ffmpegVideoFilterVidstabDetect):result="$@" \ -f null \ - -videos/.forCompressing/%.log: videos/.forCompressing/%.video videos/.forCompressing/%.trf +videos/.forCompressing/%.firstPassLog-0.log: videos/.forCompressing/%.video videos/.forCompressing/%.trf +# -b:v $(VID_CODEC_BITRATE) \ # First Pass $(FFMPEG) -i $< \ - -filter:v vidstabtransform=smoothing=30:input="$(basename $<).trf",nlmeans=s=6:p=5:r=7,scale=-2:$(VID_CODEC_HEIGHT):sws_flags=sinc,unsharp=5:5:0.8:3:3:0.4 \ + -filter:v $(ffmpegVideoFilterDeinterlace)$(ffmpegVideoFilterDenoise)$(ffmpegVideoFilterVidstabTransform):input="$(basename $<).trf",nlmeans=s=6:p=5:r=7,$(ffmpegVideoScaleFilter)unsharp=5:5:0.8:3:3:0.4 \ -codec:v $(VID_CODEC) \ -pass 1 \ -passlogfile "$(basename $<).firstPassLog" \ - -b:v $(VID_CODEC_BITRATE) \ + -aspect 16:9 \ -threads 1 \ -speed 4 \ -tile-columns 0 \ @@ -68,16 +106,19 @@ videos/.forCompressing/%.log: videos/.forCompressing/%.video videos/.forCompress # target und dependencies müssen noch angepasst werden # Die erste Abhängigkeit muss das quellVideo sein! -videos/webm/%.webm: videos/.forCompressing/%.video videos/.forCompressing/%.trf videos/.forCompressing/%.log +videos/webm/%.webm: videos/.forCompressing/%.video videos/.forCompressing/%.trf videos/.forCompressing/%.firstPassLog-0.log mkdir -p videos/webm + +# -b:v $(VID_CODEC_BITRATE) \ # Second Pass $(FFMPEG) -i $< \ - -filter:v vidstabtransform=smoothing=30:input="$(basename $<).trf",nlmeans=s=6:p=5:r=7,scale=-2:$(VID_CODEC_HEIGHT),unsharp=5:5:0.8:3:3:0.4 \ + -filter:v $(ffmpegVideoFilterDeinterlace)$(ffmpegVideoFilterDenoise)$(ffmpegVideoFilterVidstabTransform):input="$(basename $<).trf",nlmeans=s=6:p=5:r=7,$(ffmpegVideoScaleFilter)unsharp=5:5:0.8:3:3:0.4 \ -codec:v $(VID_CODEC) \ -pass 2 \ -passlogfile "$(basename $<).firstPassLog" \ -deadline best \ - -b:v $(VID_CODEC_BITRATE) \ + -b:v $(shell /d/temp/cwsvJudo/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py $<)k \ + -aspect 16:9 \ -threads 1 \ -speed 0 \ -tile-columns 0 \ @@ -92,14 +133,9 @@ videos/webm/%.webm: videos/.forCompressing/%.video videos/.forCompressing/%.trf videos/thumbnails/%.png: videos/.forCompressing/%.video mkdir -p videos/thumbnails -# $(FFMPEG) -i "$<" -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr -vf scale=-2:$(VID_CODEC_HEIGHT),fps=fps=1/600 "$@" - $(FFMPEG) -i "$<" -vf thumbnail,scale=-2:$(VID_CODEC_HEIGHT) -frames:v 1 "$@" +# $(FFMPEG) -i "$<" -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr -vf $(ffmpegVideoScaleFilter)fps=fps=1/600 "$@" + $(FFMPEG) -i "$<" -vf $(ffmpegVideoScaleFilter)thumbnail -frames:v 1 "$@" videos/thumbnails/%.jpg: videos/thumbnails/%.png $(GUETZLI) --quality 90 "$<" "$@" - -### - -#$(FFMPEG) -i %1 -map 0 -c copy -c:v libvpx-vp9 -pass 1 -passlogfile "%~dpn1.log" -b:v 150K -threads 1 -deadline good -cpu-used 4 -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 24 -g 9600 -aq-mode 1 -sws_dither none -pix_fmt yuv420p10le -filter:v nlmeans=s=6:p=5:r=7,scale=w=428:h=240:force_original_aspect_ratio=decrease:sws_flags=area:sws_dither=none,crop=trunc(iw/2)*2:trunc(ih/2)*2:0:0 -an -f null NUL -#$(FFMPEG) -i %1 -map 0 -c copy -c:v libvpx-vp9 -pass 2 -passlogfile "%~dpn1.log" -b:v 150K -threads 1 -deadline good -cpu-used 1 -tile-columns 0 -frame-parallel 0 -auto-alt-ref 1 -lag-in-frames 24 -g 9600 -aq-mode 1 -sws_dither none -pix_fmt yuv420p10le -filter:v nlmeans=s=6:p=5:r=7,scale=w=428:h=240:force_original_aspect_ratio=decrease:sws_flags=area:sws_dither=none,crop=trunc(iw/2)*2:trunc(ih/2)*2:0:0 -c:a libopus -b:a 32k -ac 2 -f webm "%~dpn1.webm" diff --git a/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDuration.py b/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDuration.py new file mode 100644 index 0000000..1551fb6 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDuration.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +import sys +import subprocess + +#ffprobe = + +def getLength(filename): + result = subprocess.Popen( + ["C:\\proggis\\media\\editoren\\ffmpeg-4.0.2-win64-static\\bin\\ffprobe.exe", filename], + stdout = subprocess.PIPE, stderr = subprocess.STDOUT) +# print( result.stdout.readlines() ) +# for x in result.stdout.readlines(): +# print(x) + return [x for x in result.stdout.readlines() if b"Duration" in x] + +#print( str( getLength(sys.argv[1]) ) ) +getLength(sys.argv[1]) diff --git a/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py b/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py new file mode 100644 index 0000000..62f417d --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python3 + +# +# Command line use of 'ffprobe': +# +# ffprobe -loglevel quiet -print_format json \ +# -show_format -show_streams \ +# video-file-name.mp4 +# +# man ffprobe # for more information about ffprobe +# + +import subprocess as sp +import json +import sys + + +def probe(vid_file_path): + ''' Give a json from ffprobe command line + + @vid_file_path : The absolute (full) path of the video file, string. + ''' + if type(vid_file_path) != str: + raise Exception('Gvie ffprobe a full file path of the video') + return + + command = ["ffprobe", + "-loglevel", "quiet", + "-print_format", "json", + "-show_format", + "-show_streams", + vid_file_path + ] + + pipe = sp.Popen(command, stdout=sp.PIPE, stderr=sp.STDOUT) + out, err = pipe.communicate() + return json.loads(out) + + +def duration(vid_file_path): + ''' Video's duration in seconds, return a float number + ''' + _json = probe(vid_file_path) + + if 'format' in _json: + if 'duration' in _json['format']: + return float(_json['format']['duration']) + + if 'streams' in _json: + # commonly stream 0 is the video + for s in _json['streams']: + if 'duration' in s: + return float(s['duration']) + + # if everything didn't happen, + # we got here because no single 'return' in the above happen. + raise Exception('I found no duration') + #return None + + +if __name__ == "__main__": +# video_file_path = "/tmp/tt1.mp4" + video_file_path = sys.argv[1] + + durationInSec = duration(video_file_path) + rateInKbPerSec = (10 * 1024 * 1024 * 8)/( durationInSec * 1000 ) + #print( duration(video_file_path) ) # 10.008 + print( int(min(500, rateInKbPerSec)) ) From b6e95671d5f3b690b3a349443d66a16e46b92ab7 Mon Sep 17 00:00:00 2001 From: marko Date: Fri, 16 Nov 2018 08:25:48 +0100 Subject: [PATCH 3/6] =?UTF-8?q?-=20Beim=20upload=20square7=20entfernt=20?= =?UTF-8?q?=09modified:=20=20=20homepage/redesign2018/markdownExperiment/M?= =?UTF-8?q?akefile=20-=20font-display=20eingef=C3=BCgt=20=09modified:=20?= =?UTF-8?q?=20=20homepage/redesign2018/markdownExperiment/src/css/cwsvJudo?= =?UTF-8?q?-2018.css=20-=201000=20statt=201024=20=09modified:=20=20=20home?= =?UTF-8?q?page/redesign2018/markdownExperiment/src/galleryHelper/getVideo?= =?UTF-8?q?DurationJson.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../redesign2018/markdownExperiment/Makefile | 40 +++++++++---------- .../src/css/cwsvJudo-2018.css | 1 + .../src/galleryHelper/getVideoDurationJson.py | 3 +- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/homepage/redesign2018/markdownExperiment/Makefile b/homepage/redesign2018/markdownExperiment/Makefile index 00be903..b6e4d3d 100644 --- a/homepage/redesign2018/markdownExperiment/Makefile +++ b/homepage/redesign2018/markdownExperiment/Makefile @@ -82,11 +82,11 @@ upload: $(uploadMarker) build/.uploadMarker/%.php: build/%.php mkdir -p build/.uploadMarker - curl \ - --upload-file $^ \ - --user cwsvjudo:Dee4oquu \ - ftp://cwsvjudo.square7.net/pages/responsive/$(patsubst build/%.php,%.php,$^) \ - --ftp-create-dirs +# curl \ +# --upload-file $^ \ +# --user cwsvjudo:Dee4oquu \ +# ftp://cwsvjudo.square7.net/pages/responsive/$(patsubst build/%.php,%.php,$^) \ +# --ftp-create-dirs curl \ --upload-file $^ \ --user cwsvjudo:***REMOVED*** \ @@ -97,11 +97,11 @@ build/.uploadMarker/%.php: build/%.php build/.uploadMarker/amp/%.php: build/amp/%.php mkdir -p build/.uploadMarker/amp - curl \ - --upload-file $^ \ - --user cwsvjudo:Dee4oquu \ - ftp://cwsvjudo.square7.net/pages/$(patsubst build/amp/%.php,amp/%.php,$^) \ - --ftp-create-dirs +# curl \ +# --upload-file $^ \ +# --user cwsvjudo:Dee4oquu \ +# ftp://cwsvjudo.square7.net/pages/$(patsubst build/amp/%.php,amp/%.php,$^) \ +# --ftp-create-dirs curl \ --upload-file $^ \ --user cwsvjudo:***REMOVED*** \ @@ -113,11 +113,11 @@ build/.uploadMarker/amp/%.php: build/amp/%.php build/.uploadMarker/phpLib/%.php: phpLib/%.php mkdir -p build/.uploadMarker/phpLib/cwsvJudo mkdir -p build/.uploadMarker/phpLib/phpcount - curl \ - --upload-file $^ \ - --user cwsvjudo:Dee4oquu \ - ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%.php,%.php,$^) \ - --ftp-create-dirs +# curl \ +# --upload-file $^ \ +# --user cwsvjudo:Dee4oquu \ +# ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%.php,%.php,$^) \ +# --ftp-create-dirs curl \ --upload-file $^ \ --user cwsvjudo:***REMOVED*** \ @@ -127,11 +127,11 @@ build/.uploadMarker/phpLib/%.php: phpLib/%.php build/.uploadMarker/css/%.css: build/css/%.css mkdir -p build/.uploadMarker/css - curl \ - --upload-file $^ \ - --user cwsvjudo:Dee4oquu \ - ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%,%,$^) \ - --ftp-create-dirs +# curl \ +# --upload-file $^ \ +# --user cwsvjudo:Dee4oquu \ +# ftp://cwsvjudo.square7.net/ressourcen/$(patsubst build/%,%,$^) \ +# --ftp-create-dirs curl \ --upload-file $^ \ --user cwsvjudo:***REMOVED*** \ diff --git a/homepage/redesign2018/markdownExperiment/src/css/cwsvJudo-2018.css b/homepage/redesign2018/markdownExperiment/src/css/cwsvJudo-2018.css index ebf4d44..f09eeec 100644 --- a/homepage/redesign2018/markdownExperiment/src/css/cwsvJudo-2018.css +++ b/homepage/redesign2018/markdownExperiment/src/css/cwsvJudo-2018.css @@ -3,6 +3,7 @@ */ @font-face { font-family: Orbitron-Medium; + font-display: fallback; src: url(http://cwsvjudo.bplaced.net/ressourcen/fonts/Orbitron-Medium.otf); } diff --git a/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py b/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py index 62f417d..c529732 100644 --- a/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py +++ b/homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py @@ -63,6 +63,7 @@ if __name__ == "__main__": video_file_path = sys.argv[1] durationInSec = duration(video_file_path) - rateInKbPerSec = (10 * 1024 * 1024 * 8)/( durationInSec * 1000 ) +# rateInKbPerSec = (10 * 1024 * 1024 * 8)/( durationInSec * 1000 ) + rateInKbPerSec = (10 * 1000 * 1000 * 8)/( durationInSec * 1000 ) #print( duration(video_file_path) ) # 10.008 print( int(min(500, rateInKbPerSec)) ) From 73b82c03b4df405b14ccd936a54ceeb4463d5b44 Mon Sep 17 00:00:00 2001 From: marko Date: Fri, 16 Nov 2018 14:33:32 +0100 Subject: [PATCH 4/6] - Entwicklung der Videodatenbank new file: homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php new file: homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py --- .../src/galleryTemplates/vidGal.php | 59 +++++++++++++++++++ .../src/galleryTemplates/vidGalInsert.py | 14 +++++ 2 files changed, 73 insertions(+) create mode 100644 homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php create mode 100644 homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py diff --git a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php b/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php new file mode 100644 index 0000000..e4eca80 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php @@ -0,0 +1,59 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + +if($_GET['action'] == "INSERT"){ + echo("Inserting"); + $wkId = $_GET['wkId']; + $checkSum = urldecode( $_GET['checkSum'] ); + $vidUrl = urldecode( $_GET['vidUrl'] ); + echo("CheckSum is ".$checkSum); + + $vidQuery = + $cwsvJudoDbConnection->prepare( + "INSERT IGNORE INTO cwsvjudo.`shiai.videos` ( wkId, checkSum ) VALUES ( :wkId, HEX(:checkSum), :vidUrl);" + ); + $vidQuery->bindParam(':wkId', intval($wkId), PDO::PARAM_INT); + $vidQuery->bindParam(':checkSum', $checkSum ); + $vidQuery->bindParam(':vidUrl', $vidUrl ); + + $vidQuery->execute(); +} + + $wkId = 311; + + $vidQuery = + $cwsvJudoDbConnection->prepare( + "SELECT url FROM cwsvjudo.`shiai.videos` WHERE wkId = :wkId;" + ); + $vidQuery->bindParam(':wkId', intval($wkId), PDO::PARAM_INT); + + $vidQuery->execute(); + $wkVideos = $vidQuery->fetchAll(PDO::FETCH_ASSOC); + +?> + + + + + + + + + diff --git a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py b/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py new file mode 100644 index 0000000..d4728d7 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +import requests +import urllib.parse + +wkId = 311 +checkSum = "b674aaaa71d18a8ef1e616fb94ddc399e9e3214bbc8497768217278d546c00d63741ad6cbbcfd0e95f518da39fbaee67b5b92fb4f4b5f3933a9bf08e38bb8283" + +payLoad = {"action": "INSERT", "wkId": wkId, "checkSum": checkSum} + +#r = requests.get('http://cwsvjudo.bplaced.net/admin/vidGal.php?action=INSERT&wkId='+str(wkId)+'&checkSum='+urllib.parse.urlencode(checkSum), auth=('marko', '***REMOVED***')) +r = requests.get('http://cwsvjudo.bplaced.net/admin/vidGal.php', params=payLoad, auth=('marko', '***REMOVED***')) + +print(r.text) From 7d67ab9fa43dafc83c843f430912b0e40522827d Mon Sep 17 00:00:00 2001 From: marko Date: Tue, 20 Nov 2018 06:56:08 +0100 Subject: [PATCH 5/6] - mehrere Aufnahmeverzeichnisse als targetSourceDirectory, Nachteil: Alle quellVideos werden gleich encodiert modified: ../homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest - laufende Entwicklung einer Videodatenbank modified: ../homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py --- .../src/Makefiles/Makefile.vidstabTest | 12 +++++++----- .../src/galleryTemplates/vidGalInsert.py | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest index a81df43..16dd26b 100644 --- a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest +++ b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.vidstabTest @@ -18,7 +18,7 @@ VID_CODEC_HEIGHT := $(if $(VID_CODEC_HEIGHT),$(VID_CODEC_HEIGHT),$(DEFAULT_VID_C VID_CODEC_WIDTH := $(if $(VID_CODEC_WIDTH),$(VID_CODEC_WIDTH),$(DEFAULT_VID_CODEC_WIDTH)) VID_CODEC := $(if $(VID_CODEC),$(VID_CODEC),$(DEFAULT_VID_CODEC)) - +targetSourceDirectories = $(sort $(dir $(wildcard ./videos/aufnahmen/*/))) targetSourceDir = videos/aufnahmen/ sourceVideos = $(wildcard videos/.forCompressing/*.video) @@ -69,10 +69,12 @@ targets: # checkSum=$$(sha512sum $${file});\ # ln -f $${file} videos/.forCompressing/$${checkSum%%\ *}.video;\ # done; - for file in $(targetSourceDir)/*.*;\ - do \ - checkSum=$$(sha512sum $${file});\ - ln -f $${file} videos/.forCompressing/$${checkSum%%\ *}.video;\ + for directory in $(targetSourceDirectories) ;\ + do for file in $${directory}/*.*;\ + do \ + checkSum=$$(sha512sum $${file});\ + ln -f $${file} videos/.forCompressing/$${checkSum%%\ *}.video;\ + done;\ done; # Die Stabilisierungsberechnung: diff --git a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py b/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py index d4728d7..fe4557d 100644 --- a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py +++ b/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py @@ -6,7 +6,7 @@ import urllib.parse wkId = 311 checkSum = "b674aaaa71d18a8ef1e616fb94ddc399e9e3214bbc8497768217278d546c00d63741ad6cbbcfd0e95f518da39fbaee67b5b92fb4f4b5f3933a9bf08e38bb8283" -payLoad = {"action": "INSERT", "wkId": wkId, "checkSum": checkSum} +payLoad = {'action': "INSERT", 'wkId': wkId, 'checkSum': urllib.parse.urlencode(checkSum), 'vidUrl': urllib.parse.urlencode(vidUrl) } #r = requests.get('http://cwsvjudo.bplaced.net/admin/vidGal.php?action=INSERT&wkId='+str(wkId)+'&checkSum='+urllib.parse.urlencode(checkSum), auth=('marko', '***REMOVED***')) r = requests.get('http://cwsvjudo.bplaced.net/admin/vidGal.php', params=payLoad, auth=('marko', '***REMOVED***')) From 1432c50d25a991eaa3f9079495e01eb25bce9e66 Mon Sep 17 00:00:00 2001 From: marko Date: Tue, 20 Nov 2018 14:42:20 +0100 Subject: [PATCH 6/6] Erste funktionierende Version des Eintragens in die Videodatenbank MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ein paar temporäre Dateien/Verzeichnisse modified: .gitignore - schon lange überfällige Graphiken new file: markdownExperiment/graphiken/icons/HTML5_1Color_Black.svg new file: markdownExperiment/graphiken/icons/arrowRightDown.svg new file: markdownExperiment/graphiken/icons/calendarIcon.svg new file: markdownExperiment/graphiken/icons/clockIconFriendly.svg new file: markdownExperiment/graphiken/icons/contact4Ways.svg new file: markdownExperiment/graphiken/icons/filmrolle-grau.svg new file: markdownExperiment/graphiken/icons/gallery.svg new file: markdownExperiment/graphiken/icons/kamera-grau.svg new file: markdownExperiment/graphiken/icons/newsFeedIcon.svg new file: markdownExperiment/graphiken/icons/newsIcon.svg new file: markdownExperiment/graphiken/icons/star.svg new file: markdownExperiment/graphiken/icons/terminKalender.svg new file: markdownExperiment/graphiken/icons/wikipediaW.svg - nach dem upload werden die Videos jetzt auch in die Datenbank eingetragen modified: markdownExperiment/src/Makefiles/Makefile.ftpUpload renamed: markdownExperiment/src/galleryTemplates/vidGal.php -> markdownExperiment/src/galleryHelper/vidGal.php new file: markdownExperiment/src/galleryHelper/vidGalInsert.py deleted: markdownExperiment/src/galleryTemplates/vidGalInsert.py - gehörte hier eigentlich nicht hin deleted: ../../shiai/shiai.2017/teilnehmer/teilnehmerListe.fods --- homepage/redesign2018/.gitignore | 2 +- .../graphiken/icons/HTML5_1Color_Black.svg | 1 + .../graphiken/icons/arrowRightDown.svg | 1 + .../graphiken/icons/calendarIcon.svg | 1 + .../graphiken/icons/clockIconFriendly.svg | 1 + .../graphiken/icons/contact4Ways.svg | 1 + .../graphiken/icons/filmrolle-grau.svg | 36 + .../graphiken/icons/gallery.svg | 1 + .../graphiken/icons/kamera-grau.svg | 98 + .../graphiken/icons/newsFeedIcon.svg | 1 + .../graphiken/icons/newsIcon.svg | 1 + .../graphiken/icons/star.svg | 1 + .../graphiken/icons/terminKalender.svg | 1 + .../graphiken/icons/wikipediaW.svg | 1 + .../src/Makefiles/Makefile.ftpUpload | 15 +- .../vidGal.php | 17 +- .../src/galleryHelper/vidGalInsert.py | 34 + .../src/galleryTemplates/vidGalInsert.py | 14 - .../teilnehmer/teilnehmerListe.fods | 2346 ----------------- 19 files changed, 207 insertions(+), 2366 deletions(-) create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/HTML5_1Color_Black.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/arrowRightDown.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/calendarIcon.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/clockIconFriendly.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/contact4Ways.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/filmrolle-grau.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/gallery.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/kamera-grau.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/newsFeedIcon.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/newsIcon.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/star.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/terminKalender.svg create mode 100644 homepage/redesign2018/markdownExperiment/graphiken/icons/wikipediaW.svg rename homepage/redesign2018/markdownExperiment/src/{galleryTemplates => galleryHelper}/vidGal.php (69%) create mode 100644 homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGalInsert.py delete mode 100644 homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py delete mode 100644 shiai/shiai.2017/teilnehmer/teilnehmerListe.fods diff --git a/homepage/redesign2018/.gitignore b/homepage/redesign2018/.gitignore index 12994a4..36c9582 100644 --- a/homepage/redesign2018/.gitignore +++ b/homepage/redesign2018/.gitignore @@ -1,2 +1,2 @@ markdownExperiment/build/* - +temp/* diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/HTML5_1Color_Black.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/HTML5_1Color_Black.svg new file mode 100644 index 0000000..9ca3aef --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/HTML5_1Color_Black.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/arrowRightDown.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/arrowRightDown.svg new file mode 100644 index 0000000..89c00ed --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/arrowRightDown.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/calendarIcon.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/calendarIcon.svg new file mode 100644 index 0000000..b12af12 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/calendarIcon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/clockIconFriendly.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/clockIconFriendly.svg new file mode 100644 index 0000000..62bb331 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/clockIconFriendly.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/contact4Ways.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/contact4Ways.svg new file mode 100644 index 0000000..5be6ab3 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/contact4Ways.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/filmrolle-grau.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/filmrolle-grau.svg new file mode 100644 index 0000000..2555371 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/filmrolle-grau.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/gallery.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/gallery.svg new file mode 100644 index 0000000..b77c060 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/gallery.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/kamera-grau.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/kamera-grau.svg new file mode 100644 index 0000000..7e107ec --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/kamera-grau.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/newsFeedIcon.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/newsFeedIcon.svg new file mode 100644 index 0000000..137ff8d --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/newsFeedIcon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/newsIcon.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/newsIcon.svg new file mode 100644 index 0000000..1f2edd7 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/newsIcon.svg @@ -0,0 +1 @@ +NEWS \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/star.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/star.svg new file mode 100644 index 0000000..083856e --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/star.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/terminKalender.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/terminKalender.svg new file mode 100644 index 0000000..7c3f040 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/terminKalender.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/graphiken/icons/wikipediaW.svg b/homepage/redesign2018/markdownExperiment/graphiken/icons/wikipediaW.svg new file mode 100644 index 0000000..e16cb95 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/graphiken/icons/wikipediaW.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload index 34bc487..9fe7b08 100644 --- a/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload +++ b/homepage/redesign2018/markdownExperiment/src/Makefiles/Makefile.ftpUpload @@ -4,17 +4,26 @@ ftpServer = ftpupload.net ftpUser = unaux_22935783 ftpPassword = eeloor0D -ftpPathBase = /htdocs/videoalben/videoalben.2018 +ftpPathBase = /htdocs +ftpFilePath = videoalben/videoalben.2018 vidGalIndexPhp = /d/temp/cwsvJudo/homepage/redesign2018/markdownExperiment/src/galleryTemplates/indexHier.php dryRun = --dry-run timeHandling= --only-newer +vidGalInsertScript = /d/temp/cwsvJudo/homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGalInsert.py + + + .PHONY: all all: .PHONY: ftpUpload ftpUpload: - lftp -e 'set net:limit-rate 25600; mkdir -f $(ftpPathBase)/$(VID_GAL_DIR); mkdir -f $(ftpPathBase)/$(VID_GAL_DIR)/thumbnails; mkdir -f $(ftpPathBase)/$(VID_GAL_DIR)/webm; put $(vidGalIndexPhp) -o $(ftpPathBase)/$(VID_GAL_DIR)/index.php; put videos/config.inc.php -o $(ftpPathBase)/$(VID_GAL_DIR)/config.inc.php; mirror $(dryRun) $(timeHandling) -R videos/thumbnails $(ftpPathBase)/$(VID_GAL_DIR)/thumbnails; mirror $(dryRun) $(timeHandling) -R videos/webm $(ftpPathBase)/$(VID_GAL_DIR)/webm; quit; ' \ + lftp -e 'set net:limit-rate 25600; mkdir -f $(ftpPathBase)/$(ftpFilePath)/$(VID_GAL_DIR); mkdir -f $(ftpPathBase)/$(ftpFilePath)/$(VID_GAL_DIR)/thumbnails; mkdir -f $(ftpPathBase)/$(ftpFilePath)/$(VID_GAL_DIR)/webm; put $(vidGalIndexPhp) -o $(ftpPathBase)/$(ftpFilePath)/$(VID_GAL_DIR)/index.php; put videos/config.inc.php -o $(ftpPathBase)/$(ftpFilePath)/$(VID_GAL_DIR)/config.inc.php; mirror $(dryRun) $(timeHandling) -R videos/thumbnails $(ftpPathBase)/$(ftpFilePath)/$(VID_GAL_DIR)/thumbnails; mirror $(dryRun) $(timeHandling) -R videos/webm $(ftpPathBase)/$(ftpFilePath)/$(VID_GAL_DIR)/webm; quit; ' \ -u $(ftpUser),$(ftpPassword) ftp://$(ftpServer) - + + for file in videos/webm/*; do \ + filename=$${file##*/}; \ + $(vidGalInsertScript) --shiaiYamlFile=./shiaiData.yaml --vidUrl="http://cwsvjudo-media-2018.unaux.com/$(ftpFilePath)/$(VID_GAL_DIR)/webm/$${filename}" --checkSum=$${filename%.*};\ + done;\ diff --git a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php b/homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGal.php similarity index 69% rename from homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php rename to homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGal.php index e4eca80..f88279e 100644 --- a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGal.php +++ b/homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGal.php @@ -14,15 +14,28 @@ include_once("config.inc.php"); $cwsvJudoDbConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if($_GET['action'] == "INSERT"){ - echo("Inserting"); + echo("Inserting\n"); $wkId = $_GET['wkId']; $checkSum = urldecode( $_GET['checkSum'] ); $vidUrl = urldecode( $_GET['vidUrl'] ); + echo("CheckSum is ".$checkSum); + echo("vidUrl is ".$vidUrl); $vidQuery = $cwsvJudoDbConnection->prepare( - "INSERT IGNORE INTO cwsvjudo.`shiai.videos` ( wkId, checkSum ) VALUES ( :wkId, HEX(:checkSum), :vidUrl);" + "INSERT IGNORE INTO cwsvjudo.`shiai.videos` ( wkId, checkSum, url ) VALUES ( :wkId, HEX(:checkSum), :vidUrl);" + ); + $vidQuery->bindParam(':wkId', intval($wkId), PDO::PARAM_INT); + $vidQuery->bindParam(':checkSum', $checkSum ); + $vidQuery->bindParam(':vidUrl', $vidUrl ); + + $vidQuery->execute(); + + $vidQuery = + $cwsvJudoDbConnection->prepare( + "UPDATE cwsvjudo.`shiai.videos` SET wkId=:wkId, url=:vidUrl WHERE checkSum=HEX( :checkSum );" +// "UPDATE cwsvjudo.`shiai.videos` url=:vidUrl WHERE checkSum=HEX(:checkSum);" ); $vidQuery->bindParam(':wkId', intval($wkId), PDO::PARAM_INT); $vidQuery->bindParam(':checkSum', $checkSum ); diff --git a/homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGalInsert.py b/homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGalInsert.py new file mode 100644 index 0000000..7027920 --- /dev/null +++ b/homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGalInsert.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 + +import requests +import urllib.parse +import argparse +import yaml + + +wkId = 311 +checkSum = "b674aaaa71d18a8ef1e616fb94ddc399e9e3214bbc8497768217278d546c00d63741ad6cbbcfd0e95f518da39fbaee67b5b92fb4f4b5f3933a9bf08e38bb8283" + +argParser = argparse.ArgumentParser() +#argParser.add_argument("wkId", type=int) +argParser.add_argument("--checkSum") +argParser.add_argument("--vidUrl") +argParser.add_argument("--shiaiYamlFile") + +argv = argParser.parse_args() + + +with open(argv.shiaiYamlFile, 'r') as yamlFile: + shiaiData = yaml.safe_load(yamlFile) + print(shiaiData['wkId']) + +payLoad = { + 'action' : "INSERT", + 'wkId' : shiaiData['wkId'], + 'checkSum': urllib.parse.quote(argv.checkSum), + 'vidUrl' : urllib.parse.quote(argv.vidUrl) +} + +r = requests.get('http://cwsvjudo.bplaced.net/admin/vidGal.php', params=payLoad, auth=('marko', '***REMOVED***')) + +print(r.text) diff --git a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py b/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py deleted file mode 100644 index fe4557d..0000000 --- a/homepage/redesign2018/markdownExperiment/src/galleryTemplates/vidGalInsert.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python3 - -import requests -import urllib.parse - -wkId = 311 -checkSum = "b674aaaa71d18a8ef1e616fb94ddc399e9e3214bbc8497768217278d546c00d63741ad6cbbcfd0e95f518da39fbaee67b5b92fb4f4b5f3933a9bf08e38bb8283" - -payLoad = {'action': "INSERT", 'wkId': wkId, 'checkSum': urllib.parse.urlencode(checkSum), 'vidUrl': urllib.parse.urlencode(vidUrl) } - -#r = requests.get('http://cwsvjudo.bplaced.net/admin/vidGal.php?action=INSERT&wkId='+str(wkId)+'&checkSum='+urllib.parse.urlencode(checkSum), auth=('marko', '***REMOVED***')) -r = requests.get('http://cwsvjudo.bplaced.net/admin/vidGal.php', params=payLoad, auth=('marko', '***REMOVED***')) - -print(r.text) diff --git a/shiai/shiai.2017/teilnehmer/teilnehmerListe.fods b/shiai/shiai.2017/teilnehmer/teilnehmerListe.fods deleted file mode 100644 index 9648b39..0000000 --- a/shiai/shiai.2017/teilnehmer/teilnehmerListe.fods +++ /dev/null @@ -1,2346 +0,0 @@ - - - - - 2017-02-26T17:21:22.989289996 - 2017-02-26T17:11:24.381258400 - 2014-03-26T08:26:35Z - 42 - P1DT6H7M6S - LibreOffice/4.3.3.2$Linux_x86 LibreOffice_project/430m0$Build-2 - - Tables2014-09-28T16:36:39 - - - 0 - 0 - 28005 - 16162 - - - view1 - - - 0 - 19 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 72 - 60 - true - - - 0 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 0 - 0 - 0 - 72 - 60 - true - - - Altersklassen - 270 - 0 - 72 - 60 - false - true - true - true - 12632256 - true - true - true - true - false - false - 1000 - 1000 - 1 - 1 - true - - - - - false - false - true - false - false - true - - - de - DE - - - - - - zAH+/0hhdXNkcnVja2VyR3JhdXN0dWZlbgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpIYXVzZHJ1Y2tlckdyYXVzdHVmZW4AAAAAAAAWAAMA7QAAAAAAAgAEAAhSAAAEdAAASm9iRGF0YSAxCnByaW50ZXI9SGF1c2RydWNrZXJHcmF1c3R1ZmVuCm9yaWVudGF0aW9uPVBvcnRyYWl0CmNvcGllcz0xCmNvbGxhdGU9ZmFsc2UKbWFyZ2luZGFqdXN0bWVudD0wLDAsMCwwCmNvbG9yZGVwdGg9MjQKcHNsZXZlbD0wCnBkZmRldmljZT0xCmNvbG9yZGV2aWNlPTAKUFBEQ29udGV4RGF0YQpRdWFsaXR5OmRyYWZ0AFBhZ2VTaXplOkE0AElucHV0U2xvdDpBdXRvAER1cGxleDpEdXBsZXhOb1R1bWJsZQAAEgBDT01QQVRfRFVQTEVYX01PREUPAERVUExFWF9MT05HRURHRQ== - false - HausdruckerGraustufen - 1000 - true - 0 - 1000 - false - true - 1 - 12632256 - true - 1 - false - true - 3 - true - true - true - true - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - . - - - - - - - - - - - - - - : - - - - - : - - : - - - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - € - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DM - - - - - - DM - - - - - DM - - - - - - - DM - - - - - DM - - - - - - DM - - - - - DM - - - - - - - DM - - - - - - DM - - - - - - - DM - - - - - DM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DM - - - - - - - DM - - - - - - - DM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SFr. - - - - SFr. - - - - - - SFr. - - - - - SFr. - - - - - - SFr. - - - - SFr. - - - - - - SFr. - - - - - SFr. - - - - - - SFr. - - - - - - SFr. - - - - - - - - SFr. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SFr. - - - - - - SFr. - - - - - - - - SFr. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . - - - - - - - . - - - - - - - - - - : - - - - - - - : - - : - - - - - - - . - - . - - - - : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ??? - - - - Page 1 - - - - - - - ??? (???) - - - 00.00.0000, 00:00:00 - - - - - Page 1 / 99 - - - - - - ??? - - - - 1 - - - - - - ??? - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - Jahr: - - - 2017 - - - - - - - - - - - Jg. - - - - 2011 - - - 2010 - - - 2009 - - - 2008 - - - 2007 - - - 2006 - - - 2005 - - - 2004 - - - 2003 - - - 2002 - - - 2001 - - - 2000 - - - 1999 - - - 1998 - - - - - - Name - - - Vorname - - - Geb. - - - U - - - GK - - - U7 - - - U8 - - - U9 - - - U10 - - - U11 - - - U12 - - - U13 - - - U14 - - - U15 - - - U16 - - - U17 - - - U18 - - - U19 - - - U20 - - - Kmt - - - Auto - - - Platz - - - - - - Bunzel - - - Marko - - - - Ü30 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Bilek - - - Marcel - - - - Ü30 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Weidensager - - - Marc - - - 1994 - - - U30 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Schwope - - - Elly Pauline - - - 1997 - - - 21 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Weidensager - - - Nick - - - 1997 - - - 21 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Kraut - - - Nancy - - - 2004 - - - 14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - X - - - X - - - - - - - - - - - - - - - - - - - - - - - - - - - - Köhler - - - Eric - - - 2004 - - - 14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - X - - - X - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ritschard-Schmidt - - - Nicole - - - 2006 - - - 12 - - - - - - - - - - - - - - - - - - - - - - - - X - - - X - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Provatkin - - - Philipp - - - 2007 - - - 11 - - - - - - - - Graf - - - Rio - - - 2007 - - - 11 - - - - - - - - X - - - - - - - X - - - - - - - - Kraut - - - Casey - - - 2007 - - - 11 - - - - - - - - X - - - - - - - X - - - - - - - - Dumler - - - Arthur - - - 2007 - - - 11 - - - - - - - - - - - - - - - - - - - - X - - - X - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mögel - - - Lennox - - - 2009 - - - 9 - - - - - - - - - - - - X - - - X - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Termin: - - - 04.03.17 - - - - - - - - Wettkampf: - - - 16. Riesaer Stahl-Pokal - - - - - - - - AK: - - - U13 U15 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Name - - - Vorname - - - T-Shirt Größe - - - - - - Hilbich - - - Florian - - - 146 - - - - - - Rößger - - - Luisa - - - 140 - - - - - - Gerber - - - Max - - - s - - - - - - Köhler - - - Eric - - - 134 - - - - - - Richter - - - Luise - - - 152 - - - - - - Schubert - - - Jenniffer - - - 140 - - - - - - Rößger - - - Thora - - - 140 - - - - - - Gerber - - - Sabina - - - 144 - - - - - - Löschau - - - Aurelius - - - 128 - - - - - - Schubert - - - Colin - - - 128 - - - - - - Graf - - - Rio - - - - - - - Gerber - - - Melina - - - 110 - - - - - - Dumler - - - Arthur - - - 116 - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file