profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/JanX2/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.

Cocoanetics/AutoIngest 86

Automatic Sales Report Downloader for Mac

JanX2/amber-framework 9

an open source Objective-C framework including useful categories and other utilities, for Mac and iPhone OS

JanX2/books-macosx 2

Personal Book Cataloging for Mac OS X

JanX2/Accelerometer-Simulator 1

Use iPhone accelerometer with the iPhone simulator or other apps

JanX2/AGRegex 1

AGRegex provides Perl-compatible pattern matching to Cocoa applications.

JanX2/AudioSlicer-macOS 1

AudioSlicer is a Cocoa GUI application that finds all silences in an audio file and allows you to split it into several smaller audio files and to name/tag them properly. For now only MP3 is supported but other formats may come in the future.

JanX2/Backup-Bouncer 1

A metadata test suite for OS X backup tools

JanX2/BGHUDAppKit 1

BGHUDAppKit is my solution to the missing controls in OS X Leopard. Apple gave us that spiffy new HUD window but no controls to put on it. So I started my own. Yes I know there are a few good AppKits out there already to achive the desired look, but they use images to create the components. I have hand drawn every one of these controls using ONLY native Cocoa drawing functions (NSBezierPath, NSGradient, etc...) This makes them resolution independant and makes your app less heavy come distribution time -- Check out the Wiki/Current Progress Page for what I'm working on!!!!

JanX2/ADBFileSystemUtilities 0

Category on NSURL that allows for writing more readable code.

pull request commentnih-at/libzip

Zstd 1.3.6 is enough

Thanks, Remi!

remicollet

comment created time in 3 hours

push eventnih-at/libzip

Remi Collet

commit sha 3d573c4dc45e5197d2ddde93c4dfa818bd75ac9d

Zstd 1.3.6 is enough

view details

Thomas Klausner

commit sha a1a02635157194a23acf7baffbd3f158c409e531

Merge pull request #247 from remicollet/patch-1 Zstd 1.3.6 is enough

view details

push time in 3 hours

PR merged nih-at/libzip

Zstd 1.3.6 is enough

In c39f01daa6ce011960e852bfc6147a96769b0955

ZSTD_minCLevel() and ZSTD_maxCLevel() are from zstd 1.5

From https://github.com/facebook/zstd/commit/9bb6c15f7966f59d001f782f087484a414eba570 The commit which introduces this function is in 1.3.6

Notice: and, at least, I can confirm libzip 1.8.0 work as expected (build + test suite) on RHEL / CentOS 8 which have 1.4.4

+1 -1

0 comment

1 changed file

remicollet

pr closed time in 3 hours

issue commentnih-at/libzip

zstd support

Missing zstd functions appeared in zstd 1.5.x

They are in 1.3.6

In ChangeLog

v1.3.6  (Oct 6, 2018)
...
api : minimum negative compression level is defined, and can be queried using ZSTD_minCLevel().

And ZSTD_maxCLevel was already there

timofey-retailnext

comment created time in 5 hours

PR opened nih-at/libzip

Zstd 1.3.6 is enough

In c39f01daa6ce011960e852bfc6147a96769b0955

ZSTD_minCLevel() and ZSTD_maxCLevel() are from zstd 1.5

From https://github.com/facebook/zstd/commit/9bb6c15f7966f59d001f782f087484a414eba570 The commit which introduces this function is in 1.3.6

Notice: and, at least, I can confirm libzip 1.8.0 work as expected (build + test suite) on RHEL / CentOS 8 which have 1.4.4

+1 -1

0 comment

1 changed file

pr created time in 6 hours

push eventnih-at/libzip

Thomas Klausner

commit sha c39f01daa6ce011960e852bfc6147a96769b0955

ZSTD_minCLevel() and ZSTD_maxCLevel() are from zstd 1.5 Require that version of zstd. Closes #246

view details

push time in 15 hours

issue closednih-at/libzip

zstd support

Compiler Error Linker error: ZSTD_minCLevel() and ZSTD_maxCLevel() not found

libzip Version 1.8.0

Operating System and Compiler Ubuntu 18.04, platform provided zstd lib 1.3.3

Also, any flags passed to cmake. -DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TOOLS=ON
-DBUILD_REGRESS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_DOC=OFF \

Additional context Missing zstd functions appeared in zstd 1.5.x while ubunutu 18.04 has 1.3.3 -> link errors need to add zstd version requirement to CMakeLists.txt: from: "find_package(Zstd)" to: "find_package(Zstd 1.5)" this will automatically disable older and incompatible zstd lib versions

closed time in 15 hours

timofey-retailnext

issue openednih-at/libzip

zstd support

Compiler Error Linker error: ZSTD_minCLevel() and ZSTD_maxCLevel() not found

libzip Version 1.8.0

Operating System and Compiler Ubuntu 18.04, platform provided zstd lib 1.3.3

Also, any flags passed to cmake. -DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TOOLS=ON
-DBUILD_REGRESS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_DOC=OFF \

Additional context Missing zstd functions appeared in zstd 1.5.x while ubunutu 18.04 has 1.3.3 -> link errors need to add zstd version requirement to CMakeLists.txt: from: "find_package(Zstd)" to: "find_package(Zstd 1.5)" this will automatically disable older and incompatible zstd lib versions

created time in 15 hours

issue closednih-at/libzip

Returning -1 when type returned type is bool(true/false)

https://github.com/nih-at/libzip/blob/d2da5594caa1f6d3fe3285f89600108b21b396e4/lib/zip_source_file_win32.c#L101-L118

closed time in 18 hours

qarmin

issue commentnih-at/libzip

Returning -1 when type returned type is bool(true/false)

Fixed, thanks!

qarmin

comment created time in 18 hours

push eventnih-at/libzip

Thomas Klausner

commit sha 69d6ef217aa35e246aa3952a8859b6389fb54092

Thanks Rafał Mikrut

view details

push time in 18 hours

push eventnih-at/libzip

Thomas Klausner

commit sha 0c955aa208411eac10a067c72ce2e642697fd533

Return false instead of -1. Noted by Rafał Mikrut in #245

view details

push time in 18 hours

issue openednih-at/libzip

Returning -1 when type returned type is bool(true/false)

https://github.com/nih-at/libzip/blob/d2da5594caa1f6d3fe3285f89600108b21b396e4/lib/zip_source_file_win32.c#L101-L118

created time in 18 hours

created tagKitura/BlueSocket

tag2.0.0

Socket framework for Swift using the Swift Package Manager. Works on iOS, macOS, and Linux.

created time in 18 hours

push eventHexFiend/HexFiend

Tom Matthews

commit sha 44f59978dce449650446cbb8e516e22b120dfa97

WAV template changes to parse format_type and block_align (#324) Decode the format type field, and the block align field. Ref: - `http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html` - `https://wavefilegem.com/how_wave_files_work.html`

view details

push time in a day

PR merged HexFiend/HexFiend

WAV template changes to parse format_type and block_align

Decode the format type field, and the block align field.

Ref:

  • http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
  • https://wavefilegem.com/how_wave_files_work.html
+25 -3

0 comment

1 changed file

tomtastic

pr closed time in a day

issue commentkasbert/OS-X-SAT-SMART-Driver

Prompt to approve driver not showing up in OSX 10.14.6

Well that's a disappointing cop out. Considering that SAT-SMART Driver is no longer supported here and when it was there was no need to approve it in Security & Privacy, this is close to the last place I would send anybody for such an issue.

I take it that SAT-SMART isn't working for you with regard to a USB external drive. It's been at least a couple of years since I installed the DriveDX version in Mojave (or perhaps an earlier macOS) so I don't even recall if such approval was required at the time. In checking my Mojave setup today I see that I have a signed 0.10 driver installed in /System/Library/Extensions, /Library/Extensions and /Library/StagedExtensions/Library/Extensions. I'm certain that the first is left over from an earlier installation when installing in /System by an admin was still allowed. Just the other day I cleaned out my extensions to get rid of any that were no longer needed using sudo kextcache --clear-staging and rebooting to rebuild the cache, so the /Library portion should be up-to-date.

Recommend you check the Console for any error messages referencing a kext... process in conjunction with SAT-SMART. Assuming that Drivers are treated the same as Kernel Extensions and Mojave behaves the way High Sierra did, this Tech Note might be of use: https://developer.apple.com/library/archive/technotes/tn2459/_index.html.

soumdtt

comment created time in a day

fork jiwenfeng/xlslib

C++/C library to construct Excel .xls files in code. Official git repo.

fork in a day

issue closedxiph/opus

`opus_encode` returns `OPUS_BAD_ARG` with srate=48kHz and frame size = 320

I've set up my hardware to generate 48kHz PCM stream, within only 1 channel. Therefore, it generates 48000 / 320 = 150 frames per second. The problem is that I get OPUS_BAD_ARG from opus_encode caused by this piece of code:

https://github.com/xiph/opus/blob/61747bc6ec728de69d54db6ece90ad4617f059b8/src/opus_encoder.c#L629

libopus thinks that 150 frames per second is invalid. Is it possible to solve the problem?

How to reproduce

#include <opus/opus.h>

#include <assert.h>
#include <stdlib.h>
#include <stdio.h>

#define FILE_SIZE (320 * 1000)
#define FRAMES_COUNT 500
#define FRAME_SIZE 320

int main(void) {
	int error;
	OpusEncoder *enc;
	enc = opus_encoder_create(48000, 1, OPUS_APPLICATION_AUDIO, &error);
	assert(error == OPUS_OK);

	FILE *fp = fopen("audio.pcm", "rb");
	assert(fp);

	char *data = malloc(FILE_SIZE);
	assert(data);
	fread(data, 1, FILE_SIZE, fp);

	char *out = malloc(4000);
	assert(out);

	for (size_t i = 0; i < FRAMES_COUNT; i++) {
		int bytes_written = opus_encode(enc, data + (i * FRAME_SIZE), FRAME_SIZE, out, 4000);
		if (bytes_written < 0) {
			if (bytes_written == OPUS_BAD_ARG) {
				abort(); // Fails
			}
		}
	}
}

The stream itself: audio.pcm.tar.gz.

Compiling:

$ gcc test_opus.c -lopus

closed time in a day

Hirrolot

issue commentxiph/opus

`opus_encode` returns `OPUS_BAD_ARG` with srate=48kHz and frame size = 320

Thanks, with frame size = 960 it worked.

Another issue is that the third argument to opus_encode is the number of samples, not the number of bytes. If you're reading 16-bit mono audio into a char * you need to divide by two when you pass the in input frame size.

In fact, FRAME_SIZE here is the number of samples, but I provide data + (i * FRAME_SIZE) as the second argument to opus_encode, which is wrong; data + (i * FRAME_SIZE * 2) would be correct.

Hirrolot

comment created time in a day

pull request commentnih-at/libzip

CMakeLists.txt: add missing regex for zstd

Thank you, merged!

rezso

comment created time in a day

push eventnih-at/libzip

Thomas Klausner

commit sha be8921b11a523d5fc33b255db367df2f1439f1c8

Thank rezso

view details

push time in a day

push eventnih-at/libzip

rezso

commit sha ca61524e05d785f0d14f40802c6a1a54a46b74bb

CMakeLists.txt: add missing regex for zstd Currently cmake provides an pc file with: Libs.private: -lbz2 -llzma -lZstd::Zstd -lz

view details

Thomas Klausner

commit sha be01fbf990af3af4bb81348c28481f48483c26f6

Merge pull request #244 from rezso/patch-1 CMakeLists.txt: add missing regex for zstd

view details

push time in a day

PR merged nih-at/libzip

CMakeLists.txt: add missing regex for zstd

Currently cmake provides an pc file with: Libs.private: -lbz2 -llzma -lZstd::Zstd -lz

+1 -0

0 comment

1 changed file

rezso

pr closed time in a day

push eventnih-at/libzip

Dieter Baron

commit sha e4b2ad0cc83b1582d6ff2a690a823a8b7638515c

Check result of malloc. Fixes Coverity ID 1486003.

view details

push time in a day

issue commentxiph/opus

`opus_encode` returns `OPUS_BAD_ARG` with srate=48kHz and frame size = 320

No, it's not possible to run the encoder at 150 frames a second. You must use a supported frame size. If your hardware isn't capable of using one of the possible frame sizes, you can insert a small ringbuffer to compensate.

We recommend 960 sample frames (20 ms at 48 kHz, or 50 frames per second) for most applications. Frames shorter than 10 ms reduce quality with little improvement to delay unless you're doing live audio.

int bytes_written = opus_encode(enc, data + (i * FRAME_SIZE), FRAME_SIZE, out, 4000);

Another issue is that the third argument to opus_encode is the number of samples, not the number of bytes. If you're reading 16-bit mono audio into a char * you need to divide by two when you pass the in input frame size.

Hirrolot

comment created time in a day

issue openedxiph/opus

`OPUS_BAD_ARG` with srate=48kHz and frame size = 320

I've set up my hardware to generate 48kHz PCM stream, within only 1 channel. Therefore, it generates 48000 / 320 = 150 frames per second. The problem is that I get OPUS_BAD_ARG from opus_encode caused by this piece of code:

https://github.com/xiph/opus/blob/61747bc6ec728de69d54db6ece90ad4617f059b8/src/opus_encoder.c#L629

libopus thinks that 150 frames per second is invalid. Is it possible to solve the problem?

How to reproduce

#include <opus/opus.h>

#include <assert.h>
#include <stdlib.h>
#include <stdio.h>

#define FILE_SIZE (320 * 1000)
#define FRAMES_COUNT 500
#define FRAME_SIZE 320

int main(void) {
	int error;
	OpusEncoder *enc;
	enc = opus_encoder_create(48000, 1, OPUS_APPLICATION_AUDIO, &error);
	assert(error == OPUS_OK);

	FILE *fp = fopen("audio.pcm", "rb");
	assert(fp);

	char *data = malloc(FILE_SIZE);
	assert(data);
	fread(data, 1, FILE_SIZE, fp);

	char *out = malloc(4000);
	assert(out);

	for (size_t i = 0; i < FRAMES_COUNT; i++) {
		int bytes_written = opus_encode(enc, data + (i * FRAME_SIZE), FRAME_SIZE, out, 4000);
		if (bytes_written < 0) {
			if (bytes_written == OPUS_BAD_ARG) {
				abort(); // Fails
			}
		}
	}
}

The stream itself: audio.pcm.tar.gz.

Compiling:

$ gcc test_opus.c -lopus

created time in a day

PR opened nih-at/libzip

CMakeLists.txt: add missing regex for zstd

Currently cmake provides an pc file with: Libs.private: -lbz2 -llzma -lZstd::Zstd -lz

+1 -0

0 comment

1 changed file

pr created time in a day

created tagnih-at/libzip

tagv1.8.0

A C library for reading, creating, and modifying zip archives.

created time in 2 days

push eventnih-at/libzip

Dieter Baron

commit sha 26ba5523db09213f532821875542dba7afa04b65

Bump version and shlib version.

view details

push time in 2 days