Commit Graph

30948 Commits (357d504719a855d155649bf5bcd9e247e7c74e9f)

Author SHA1 Message Date
Doug Coleman 357d504719 tests: Don't depend on license.txt not changing.
It's probably bad to have the year in the license file, but it's worse to depend on
the license never changing.

Add a dummy file to crc32, and for multi checksums, the file we were checksumming is
not really integral to the test since it's read into a buffer first.
2019-03-23 13:00:52 -05:00
John Benediktsson deb4b7c0d6 crontab: fix day-of-week to be OR instead of AND days. 2019-03-23 08:21:26 -07:00
John Benediktsson e4c94e7d98 checksums.multi: fix tests. 2019-03-23 07:20:31 -07:00
John Benediktsson ffbb4c8289 crontab: simplify (next-time-after) recursion. 2019-03-22 20:57:50 -07:00
John Benediktsson 3afc3447b4 crontab: simplify common code paths in (next-time-after). 2019-03-22 20:52:33 -07:00
John Benediktsson ea83c1c1ee crontab: constraint order is month, day, day-of-week, hour, minute. 2019-03-22 20:42:46 -07:00
John Benediktsson 0f0099b08d crontab: some more fixes. 2019-03-22 20:36:45 -07:00
John Benediktsson c228aaf836 io.backend: remove comment from years ago. 2019-03-22 20:36:45 -07:00
Doug Coleman 3ea506e5b3 checksums.multi: fix test for 2019 2019-03-22 21:30:18 -05:00
Doug Coleman a1a0bdfa4e windows.kernel32: add almost useless timezone function 2019-03-22 21:30:01 -05:00
Doug Coleman fed9249a90 zoneinfo: update to 2018i 2019-03-22 18:29:13 -05:00
Doug Coleman 6316670346 cleaning: update copyright year. use the same order for build
directions.
2019-03-22 17:56:28 -05:00
John Benediktsson 799bf88daf crontab: some fixes and additional test case. 2019-03-22 15:20:46 -07:00
Doug Coleman 5609370be6 make: Allow overriding macosx sdk
MACOSX_SDK=MacOSX10.11.sdk ./build.sh update macosx-x86-32
2019-03-22 01:32:28 -05:00
Doug Coleman 60c80e4b78 make: Use the MacOSX 10.13 SDK for x86 support.
Bugfix - CFLAGS += instead of CFLAGS = because it would get overwritten otherwise.

Also allow overwriting of XCODE_PATH for non-standard path.

Download the 10.13 SDK from
https://github.com/phracker/MacOSX-SDKs/releases

```bash
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.13.sdk.tar.xz
xz --uncompress MacOSX10.13.sdk.tar.xz
tar xvf MacOSX10.13.sdk.tar
mv MacOSX10.13.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
```
2019-03-22 00:09:06 -05:00
Doug Coleman d575ac084f resolv-conf: Parse edns0, refactor some words, and add a unit test. 2019-03-21 22:53:01 -05:00
John Benediktsson ebc1c1ef58 ascii: faster capitalize. 2019-03-21 20:11:46 -07:00
John Benediktsson 4f401a1585 windows.dragdrop-listener: cleanup using. 2019-03-21 19:54:06 -07:00
John Benediktsson 25b29e084d io.directories.search: a better fix for the linux entry ordering issue. 2019-03-21 19:36:05 -07:00
John Benediktsson 1c44494b32 Revert "io.directories.search: Fix the order of the depth/breadth traversals."
This reverts commit c3cfc177cd.
2019-03-21 19:23:13 -07:00
Doug Coleman d6ffd15185 libc.freebsd: platforms.txt not platform.txt
Fixes linux bootstrap
2019-03-21 19:52:07 -05:00
Doug Coleman c3cfc177cd io.directories.search: Fix the order of the depth/breadth traversals.
This unit test kind of sucks.
2019-03-21 19:41:26 -05:00
Doug Coleman 0b794f5a07 windows.dragdrop-listener: Fix using 2019-03-21 18:38:47 -05:00
Doug Coleman ba09f64b6b travis: Add required packages.
==== FAILING TESTS
2019-03-21 18:31:22 -05:00
John Benediktsson 26abdf4a23 regexp: try again to fix the issue with backslashes.
the new simple rule is inside R/ syntax all backslashes should be
escaped to allow easy regexp literal tokenization:

R/ [\/]/

but in the constructor <regexp> they shouldn't be:

"[/]" <regexp>

When the regexp is prettyprinted we make sure to visually escape the
backslashes in the raw regexp.
2019-03-21 13:29:15 -07:00
John Benediktsson ca9f74e993 Revert "crontab: instead of after= make it after."
This reverts commit a3d5e3ffcb.
2019-03-21 10:55:22 -07:00
John Benediktsson b3bcf537cc Revert "regexp: fix take-until to handle escapes at the end of a regexp."
This reverts commit 2136abc1d6.
2019-03-18 10:42:40 -07:00
John Benediktsson 6339558368 Revert "regexp: slightly more complicated tokenization to handle another case."
This reverts commit 9f0bce7622.
2019-03-18 10:42:29 -07:00
John Benediktsson 1ab1ef7f68 Revert "globs: simpler separator regexp."
This reverts commit 31f309a829.
2019-03-18 10:42:23 -07:00
John Benediktsson 31f309a829 globs: simpler separator regexp. 2019-03-17 13:14:28 -07:00
John Benediktsson 9f0bce7622 regexp: slightly more complicated tokenization to handle another case.
R/ [^/]/
R/ (/|abc)/
2019-03-17 13:14:28 -07:00
Doug Coleman d59292faf6 io.sockets: fix for inet6 too.
"::1" 0 <inet4> utf8 <server>
"::1" f <inet4> utf8 <server>

Fixes #2109
2019-03-17 12:23:34 -05:00
Doug Coleman f4d17d3ba3 io.sockets: Allow f in the port of an inet4.
Fixes #2019.
2019-03-17 12:14:56 -05:00
John Benediktsson 2136abc1d6 regexp: fix take-until to handle escapes at the end of a regexp.
this worked:
R\ //.\

this didn't:
R\ //\
2019-03-17 09:52:53 -07:00
John Benediktsson a3d5e3ffcb crontab: instead of after= make it after. 2019-03-17 09:24:47 -07:00
Doug Coleman 4df7773a58 io.files.windows: Reloading io.pathnames overwrites these two object
methods.

Make them windows methods instead.
2019-03-17 10:56:57 -05:00
Doug Coleman baafbb8b34 windows: Add all shell32 function stubs. Add more com. 2019-03-17 10:56:57 -05:00
John Benediktsson 112263ca3c crontab: avoid next-time being minutes in the past. 2019-03-17 08:55:36 -07:00
John Benediktsson 64d835e2bf parser: use ?first. 2019-03-16 20:33:40 -07:00
John Benediktsson 447e30ad41 ui.tools.listener: use ?first. 2019-03-16 20:33:16 -07:00
John Benediktsson b942caf3d7 io.directories.search: fix traversal test case cross-platform issues.
on Linux and macOS mojave they entries might traverse (a,c,b)
instead of (a,b.c) so we preserve the traversal method order
but sort for cross-platform testing.
2019-03-16 20:29:19 -07:00
John Benediktsson ada81e77f5 generalizations: fix funny mnapply/nspread* bug for n > 3.
It accidentally worked for n <= 3, now it purposefully works.
2019-03-16 19:58:07 -07:00
John Benediktsson d4fc53f10e models.delay: use restart-timer, it should actually be working. 2019-03-16 16:56:05 -07:00
John Benediktsson 49d9d21124 crontab: cleanup empty lines differently. 2019-03-16 16:48:41 -07:00
Doug Coleman 5048c39e0f build.sh: add compile/recopile to docs 2019-03-08 21:35:53 -06:00
Doug Coleman d6c3cff581 debian: Don't install gcc g++ on debian.
gmake assumes default CC is cc, CXX is g++ (not c++).
In order to make this sane (c++), we check if the shell variable CXX was set
and if so we honor it, else we set CXX to c++.
2019-03-08 21:19:33 -06:00
Doug Coleman 4403155dce machine-learning.data-sets: Load mnist data. 2019-03-01 23:14:59 -06:00
Doug Coleman 92648265d2 hacker-news: Add more endpoints to api. 2019-03-01 22:26:14 -06:00
Doug Coleman 3f0ff53369 math.functions: add logit function and a test.
sigmoid is known as expit in scipy
2019-02-24 11:15:58 -06:00
Doug Coleman d70148e365 make: We don't need the flag. 2019-02-23 17:46:28 -06:00