profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/inkydragon/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
woclass inkydragon wo'lab Beijing, China wo~

CTeX-org/tex-by-topic-cn 57

Chinese translation of the book "TeX by Topic"

inkydragon/A-Philosophy-of-Software-Design-zh 26

A Philosophy of Software Design《软件设计的哲学》中文翻译

inkydragon/gc 4

Garbage Collector

Code-Sample-Collection/2007-C-language-case-analysis-essence-ed2 2

《C语言实例解析精粹(第2版)》作者:曹衍龙、林瑞仲、徐慧

inkydragon/AkDR 2

Arknights drops recognize. Using OpenCV with Python.

Aeg-dev/awesome-aegisub 1

Awesome lists about everything you need to make subtitles.

Code-Sample-Collection/GHP-PyDbg 1

<Gray Hat Python>书中纠错,以及每节的代码实现

Code-Sample-Collection/He-Kelly-Manela-2017-JFE 1

Replication code for He-Kelly-Manela (2017 JFE) main results. (julia 1.0 version)

issue openedhkrn/nanoem

Build on Windows with VS 2019

When I'am tring to build nanoem on win 10 follow instructions in readme#How to build?. I've got some errors.

After some attempts, I managed to build nanoem on Windows 10.

Describe the bug readme#How to build? Not work.

To Reproduce Steps to reproduce the behavior:

  1. set up Prerequisites in readme.
  2. start "Visual Studio 2019 Developer Command Prompt (x64)"
  3. git clone git submodule update --init --recursive There is a typo, see #23
  4. Patch code 1, remove GnuWin32/patch dep, using git apply
 scripts/build.cmake | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/scripts/build.cmake b/scripts/build.cmake
index f2dc37e..b095f65 100644
--- a/scripts/build.cmake
+++ b/scripts/build.cmake
@@ -623,16 +623,20 @@ if(NOT OSX_TARGET)
 endif()
 set(CMAKE_FIND_LIBRARY_PREFIXES "lib;")
 set(CMAKE_FIND_LIBRARY_SUFFIXES ".so;.a;.lib")
-find_program(PATCH_EXECUTABLE_PATH NAME patch PATHS "${CMAKE_CURRENT_SOURCE_DIR}" "C:/Program Files (x86)/GnuWin32/bin")
+
 find_package(Git REQUIRED)
-if(PATCH_EXECUTABLE_PATH AND GIT_FOUND)
+if(GIT_FOUND)
   execute_process(COMMAND ${GIT_EXECUTABLE} checkout -- .
                   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/bullet3
                   RESULT_VARIABLE result)
-  execute_process(COMMAND ${PATCH_EXECUTABLE_PATH} -p1
-                  INPUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/bullet-2.76.diff
+  # apply patch
+  execute_process(COMMAND ${GIT_EXECUTABLE} apply ${CMAKE_CURRENT_SOURCE_DIR}/cmake/bullet-2.76.diff
                   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/bullet3
                   RESULT_VARIABLE result)
+  if(result EQUAL "1")
+      message(FATAL_ERROR "Apply patch for bullet failed!")
+  endif()
+
   execute_process(COMMAND ${GIT_EXECUTABLE} checkout -- .
                   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/glslang)
   file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/glslang/glslang/Include/InfoSink.h input_info_sink_h NEWLINE_CONSUME)
  1. Patch code 2, force to compile with cpp mode
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6541f1b..2a08ba4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,6 +180,8 @@ if(SOUNDIO_HAVE_WASAPI)
     )
 endif()
 
+set_source_files_properties(${LIBSOUNDIO_SOURCES} PROPERTIES LANGUAGE CXX )
+
 include_directories(
     ${libsoundio_SOURCE_DIR}
     ${libsoundio_BINARY_DIR}
@@ -241,7 +243,7 @@ if(BUILD_STATIC_LIBS)
     set_target_properties(libsoundio_static PROPERTIES
         OUTPUT_NAME ${SOUNDIO_STATIC_LIBNAME}
         COMPILE_FLAGS ${LIB_CFLAGS}
-        LINKER_LANGUAGE C
+        LINKER_LANGUAGE CXX
     )
     install(TARGETS libsoundio_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
 endif()

MSVC dosn't have stdatomic.h in std C mode. xref: Visual Studio Feedback

// https://github.com/andrewrk/libsoundio/blob/dc4f84339039ac518b6cd1c0e7683e88e25be470/src/atomics.h#L14-L16
#ifdef __cplusplus
#include <atomic>

...

// https://github.com/andrewrk/libsoundio/blob/dc4f84339039ac518b6cd1c0e7683e88e25be470/src/atomics.h#L46-L48
#else
#include <stdatomic.h>

...

#endif
  1. Patch code 3, Do not clean up temp files.
diff --git a/scripts/build.cmake b/scripts/build.cmake
index b095f65..5963f54 100644
--- a/scripts/build.cmake
+++ b/scripts/build.cmake
@@ -708,4 +708,4 @@ foreach(arch_item ${ARCH_LIST})
     compile_all_repositories(${target_generator} ${target_toolset} ${target_compiler} ${arch_item} ${config_item})
   endforeach()
 endforeach()
-cleanup_all_repositories()
+# cleanup_all_repositories()

https://github.com/hkrn/nanoem/blob/9f75edf45b5dfc9e2d8aa28d0a98cd6b36ec3b59/scripts/build.cmake#L598-L605

On my PC, the output dir is out, so ${GIT_EXECUTABLE} clean -df -e build will rm all output files. So I commented out this function call.

  1. Build with
cd nanoem

cmake -DCONFIG=release -P scripts/build.cmake

mkdir out
cd out

cmake -G Ninja ..
cmake --build .

Must build with flag -DCONFIG=release, or cmake cannot find includes

for example: https://github.com/hkrn/nanoem/blob/9f75edf45b5dfc9e2d8aa28d0a98cd6b36ec3b59/emapp/CMakeLists.txt#L272-L279

find_path only search MINIZIP_INSTALL_PATH_RELEASE.

  1. Run out\win32\nanoem.exe

After build, There is a IMGUI test window.

image

Desktop:

  • OS: Windows 10 - 21H1
  • VS 2019 - 16.10.4
    • cmake version 3.20.21032501-MSVC_2
    • ninja 1.10.2
    • cl (msvc) 19.29.30040

Still need more explore, then I'll make a new pr and add new github CI for win build.

created time in 17 hours

PR opened hkrn/nanoem

fix git cmd typo

Summary

Details

E:\3d\nanoem>git submodule update --init --recurse
usage: git submodule [--quiet] [--cached]
   or: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
   or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
   or: git submodule [--quiet] init [--] [<path>...]
   or: git submodule [--quiet] deinit [-f|--force] (--all| [--] <path>...)
   or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--[no-]recommend-shallow] [--reference <repository>] [--recursive] [--[no-]single-branch] [--] [<path>...]
   or: git submodule [--quiet] set-branch (--default|--branch <branch>) [--] <path>
   or: git submodule [--quiet] set-url [--] <path> <newurl>
   or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
   or: git submodule [--quiet] foreach [--recursive] <command>
   or: git submodule [--quiet] sync [--recursive] [--] [<path>...]
   or: git submodule [--quiet] absorbgitdirs [--] [<path>...]

E:\3d\nanoem>git submodule update --init --recursive
Submodule path 'dependencies/minizip': checked out '2aa369c468aa1d931c52ff7dc3da962b71a94118'
...

Note

  • All commits must be signed to be merged
  • CI must be passed to be merged
+1 -1

0 comment

1 changed file

pr created time in a day

create barnchDD-Channel/nanoem

branch : typo-fix

created branch time in a day

push eventTeX-host/TeXFormulaLayout

woclass

commit sha c433c9db261e8c2a04990c4df89ebeaeb5bc80d3

[test] merge into main

view details

push time in 2 days

push eventTeX-host/TeXFormulaLayout

woclass

commit sha 4f4d58545036be1d45e06e0eabb273c52dfe4d38

[test/BytesOut] split into file

view details

woclass

commit sha 802829802d49d498b8547b2a66726a1f63ea92fb

[test/DviOut] split test

view details

woclass

commit sha a493f7c16c0ada3345f22b47ca234a23f95e29d7

[test/LoadFont] split test

view details

push time in 2 days

push eventTeX-host/TeXFormulaLayout

woclass

commit sha 1bb313841c39a95e9248cd47bb7f2cc184d47ce5

[Power2Const] add & test Power2Const

view details

woclass

commit sha 3f8e6afbd90c88f8c9ba4d8660fcf883ceaf3a48

[DviOut] test outNat1

view details

woclass

commit sha dc8d41f37c6a5a8ae529dd4d34fbea63ea1fee3a

[DviOut] test out2Zero

view details

woclass

commit sha c818a114882b0e479e8e9e78451e7d7c77f57068

[DviOut] test outStr

view details

woclass

commit sha fa02bcc70b9378eb742d2299259b580da2d87e9a

[DviOut] test outString

view details

woclass

commit sha 289321f08ed80861196b1f23789e794b9fab6ecd

[DviOut] test dvicmd & run tests in seq

view details

woclass

commit sha 9199bab4197cc9915230a0c88746e8854fa0e646

[DviOut] test outNat2~4

view details

woclass

commit sha bdfb3fd2dac6907133b342a2ff82a29ab3ab3834

[DviOut] rename func

view details

push time in 2 days

startedfujiawei-dev/ffmpeg-generator

started time in 3 days

Pull request review commentfujiawei-dev/ffmpeg-generator

Update setup.py

         'ffmpeg.tools',         'ffmpeg.transitions',     ],+    package_data={'ffmpeg': ['transitions/glsl/*']},+    install_pakcage_data=True,
    include_package_data=True,
wilson52c

comment created time in 3 days

PullRequestReviewEvent
PullRequestReviewEvent

startedFHChen0420/LyricDanmu

started time in 3 days

PR opened 958261649/Miku_Miku_Rig

修正“插件支持等级”为社区支持

OFFICIAL 代表是blender官方支持的插件。其他的插件一般默认为社区支持。

顺带加了点其他的条目说明

+3 -2

0 comment

1 changed file

pr created time in 6 days

push eventDD-Channel/Miku_Miku_Rig

woclass

commit sha 4fd434b3086fb1f7fae80a7bb8d4cfbc1e48874d

更正为社区支持

view details

woclass

commit sha 6c424e2586923001cd3742352ff443f5121e809a

增加字典条目说明

view details

push time in 6 days

push eventTeX-host/formulae

woclass

commit sha a754c8a91880fb50ace36458b867ea60b513ed1e

[repo] add paper

view details

push time in 7 days

push eventTeX-host/TeXFormulaLayout

woclass

commit sha 26da2831e42e74ca55b6686f1189892b7ff3d6f8

[BytesOut] add doc for func

view details

woclass

commit sha ab7d7dcc725d6960d81184e2debb5f112e93f66b

[test/BytesOut] add 1 test

view details

woclass

commit sha e4fba98ce3736d75dd3d2189b8df0462453e5bc2

[bytesOut] add test set

view details

push time in 8 days

push eventTeX-host/formulae

woclass

commit sha fac20fcfdd26eeca1c970e337d819535453571ab

[CI] fix dvipdfmx path

view details

push time in 8 days

push eventTeX-host/formulae

woclass

commit sha 8a47a8fcafb5f17fa7796596a5001e45de9bd38b

[CI] add brew flag

view details

woclass

commit sha f1673b5f21fd1be1135178b6ab3a19b6ed08f461

[CI] add sml to PATH

view details

push time in 8 days

push eventTeX-host/formulae

woclass

commit sha e2d54558753dac414d2c02df98e9702b59080449

[CI] fix brew install

view details

push time in 8 days

push eventTeX-host/formulae

woclass

commit sha ea23171729ab76f6f2720a50056cb856bcf8beba

[ci] fix branch typo

view details

push time in 8 days

push eventTeX-host/formulae

woclass

commit sha 1fd53fa512cda6f54695486a55043d95a8f7f74c

[OutHigh] add some TODO + `outInstrV` maybe wrong, when `n < 0`

view details

woclass

commit sha 19ae308c8ca4fbbf59130f3e76f4820a05970806

[OutHigh] more comments and adjust code order + add note for almost all magic constant + add refs for DVI spec

view details

woclass

commit sha 85f92ad0484a0c166b902f3dbeec6f46da6569d8

[OutDvi] add some indent

view details

woclass

commit sha 2318388d7f3c22252d59e39d24c361c440c11500

[(Bytes)Out] add std-func doc ref

view details

woclass

commit sha e3d2ebce1cc9e3be1a62d2e94d6a7cea9554d2d1

[(Bytes)Out] use function compose

view details

woclass

commit sha dcf04a61aaceadff1c2d094be9f691ef132ef032

[DviState] reformat

view details

woclass

commit sha 331f954e1635b391a16d1f171c2d4e0d7db6f1a9

[out/dvi] more comments

view details

woclass

commit sha 0b4e5773794174740151e01c09c90a70a225ef76

[out/dvi] rm TODO

view details

woclass

commit sha 35fe21d4cc061cbbad9b1105dc27f4f417b98c38

[CI] add CI

view details

push time in 8 days

startedApress/beg-fsharp-4.0

started time in 9 days

startedPacktPublishing/Fsharp-4.0-Design-Patterns

started time in 9 days

push eventTeX-host/tex-in-c

woclass

commit sha a8ca0fce6d4ebf47c23952905abf47061542cfee

[dvi] typo fix

view details

push time in 9 days

push eventTeX-host/TeXFormulaLayout

woclass

commit sha 519e40c4a4d40afa97416ae8d1796a934c64d2ec

[font] add fontSize

view details

push time in 9 days

push eventTeX-host/formulae

woclass

commit sha 585f25869b3b5171b66c46bb5411b1e743553148

[repo] add editorconfig

view details

woclass

commit sha fa891bac4dc48d9ba3e1e96c0627e02d6a6cd92e

[repo] replace tab with 2spaces

view details

woclass

commit sha 05dd133adc6576de1cab63762181b34b7b576a89

ignore unused func

view details

woclass

commit sha 42aa4b43fa3e5331df7c1f2b9128273a51521948

add more comments

view details

push time in 9 days

push eventTeX-host/TeXFormulaLayout

woclass

commit sha 0da5aec6ff15434c3dbe4ae120fe79da8474febd

[math] add Distance

view details

push time in 9 days

push eventTeX-host/TeXFormulaLayout

woclass

commit sha c4fe29ce0c56482ba30af3098f4828bf6f1d47c4

[out] Add BytesOut

view details

woclass

commit sha 135d214ce62635026b602f777a72f0f62d2b648c

format code

view details

woclass

commit sha 8032f36a8579e8107034eaf7704da8ed7d05ba3d

[dvi] add DVI constant

view details

woclass

commit sha 60e4c6551b55c35914a3f6b236e87fc1041a01b9

[output] add OutHelper, OutDVI

view details

woclass

commit sha 59727bac237e332955054218c81cd631f0653b9b

[dviout] add FontTypes, OutDVI, DviState

view details

woclass

commit sha 8cf48854904ee8cbebcd12adf7ca08461e85f0c6

[out] split mod

view details

woclass

commit sha 40801cb8699f698f1d599550a27d3aed375d42bf

[out/dvi] add DviState

view details

woclass

commit sha 274fbbf2e853419602d2d015085fe5328729352c

[out/dvi] add DviCmd

view details

woclass

commit sha 6af9238107b9ceb0c803489f060a3494543427f0

[test] update test

view details

woclass

commit sha 0ea714331ef38ae52d12a655c0f94f42f65fce0b

[out/dvi] rename DviCmd -> DVI

view details

woclass

commit sha f557340c6008b341ebbdaac3ca38972ad85fbffd

[repo] add files overview

view details

woclass

commit sha da9dfe70f9021754aa60579c4ef8b08143366bf6

[out/dvi] rename OutDVI -> DviOut

view details

woclass

commit sha 7589351a7e80344ae1229eddab7d0ba7245d069a

[dvi/out] merge into one file

view details

woclass

commit sha 3184e201abe6e303e9262944aaa625a3eeed4dae

Update Overview.md

view details

push time in 9 days

issue commentTypesettingTools/Aegisub

meson: patch ffms2 to disable audio gap filling

Relax and review the pull request at your own pace.

I want to know how to reproduce the problem.

According to my understanding, the problem is that Making subtitles in AEG work fine, but when subtitles are loaded with other players, the subtitle and the video is out of sync

CoffeeFlux

comment created time in 16 days

PR opened FFMS/ffms2

Switch to GitHub action

Since June 15th, 2021, the building on travis-ci.org is ceased. Please use travis-ci.com from now on.

+85 -51

0 comment

3 changed files

pr created time in 16 days

push eventAeg-dev/ffms2

woclass

commit sha e7d589a05362985d59377720839a4d4d1041743e

[ci] rm old travis-ci

view details

push time in 16 days