Call to undefined method Vinkla\Instagram\Instagram::media()

I am running the latest PHP and Instagram Package. But I think i missed something?
use Vinkla\Instagram\Instagram;

Route::get('/', function () {

	$instagram = new Instagram('427393125.1677ed0.f5a9a0f33f5e4a2c97b0d0657d78e67f');
	$test = $instagram->media();

    dd($test);

});

Try running composer show in the root of your project and share the output here on GitHub.

beyondcode/laravel-dump-server        1.2.1    Symfony Var-Dump Server for Laravel
clue/stream-filter                    v1.4.0   A simple and modern approach to stream filtering in PHP
dnoegel/php-xdg-base-dir              0.1      implementation of xdg base directory specification for php
doctrine/inflector                    v1.3.0   Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator                 1.1.0    A small, lightweight utility to instantiate objects in PHP without invoking their const...
doctrine/lexer                        v1.0.1   Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
dragonmantank/cron-expression         v2.2.0   CRON for PHP: Calculate the next or previous run date and determine if a CRON expressio...
egulias/email-validator               2.1.6    A library for validating emails against several RFCs
erusev/parsedown                      1.7.1    Parser for Markdown.
fideloper/proxy                       4.0.0    Set trusted proxies for Laravel
filp/whoops                           2.2.1    php error handling for cool kids
fzaninotto/faker                      v1.8.0   Faker is a PHP library that generates fake data for you.
guzzlehttp/guzzle                     6.3.3    Guzzle is a PHP HTTP client library
guzzlehttp/promises                   v1.3.1   Guzzle promises library
guzzlehttp/psr7                       1.4.2    PSR-7 message implementation that also provides common utility methods
hamcrest/hamcrest-php                 v2.0.0   This is the PHP port of Hamcrest Matchers
jakub-onderka/php-console-color       v0.2
jakub-onderka/php-console-highlighter v0.3.2
laravel/framework                     v5.7.7   The Laravel Framework.
laravel/tinker                        v1.0.7   Powerful REPL for the Laravel framework.
league/flysystem                      1.0.47   Filesystem abstraction: Many filesystems, one API.
mockery/mockery                       1.2.0    Mockery is a simple yet flexible PHP mock object framework
monolog/monolog                       1.23.0   Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy                     1.8.1    Create deep copies (clones) of your objects
nesbot/carbon                         1.34.0   A simple API extension for DateTime.
nikic/php-parser                      v4.0.4   A PHP parser written in PHP
nunomaduro/collision                  v2.0.3   Cli error handling for console/command-line PHP applications.
opis/closure                          3.1.1    A library that can be used to serialize closures (anonymous functions) and arbitrary ob...
paragonie/random_compat               v9.99.99 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phar-io/manifest                      1.0.3    Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                       2.0.1    Library for handling version information and constraints
php-http/discovery                    1.4.0    Finds installed HTTPlug implementations and PSR-7 message factories
php-http/guzzle6-adapter              v1.1.1   Guzzle 6 HTTP Adapter
php-http/httplug                      v1.1.0   HTTPlug, the HTTP client abstraction for PHP
php-http/message                      1.7.0    HTTP Message related tools
php-http/message-factory              v1.0.2   Factory interfaces for PSR-7 HTTP Message
php-http/promise                      v1.0.0   Promise used for asynchronous HTTP requests
phpdocumentor/reflection-common       1.0.1    Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock     4.3.0    With this component, a library can provide support for annotations via DocBlocks or oth...
phpdocumentor/type-resolver           0.4.0
phpspec/prophecy                      1.8.0    Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage             6.0.7    Library that provides collection, processing, and rendering functionality for PHP code ...
phpunit/php-file-iterator             2.0.2    FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template             1.2.1    Simple template engine.
phpunit/php-timer                     2.0.0    Utility class for timing
phpunit/php-token-stream              3.0.0    Wrapper around PHP's tokenizer extension.
phpunit/phpunit                       7.3.5    The PHP Unit Testing framework.
psr/container                         1.0.0    Common Container Interface (PHP FIG PSR-11)
psr/http-message                      1.0.1    Common interface for HTTP messages
psr/log                               1.0.2    Common interface for logging libraries
psr/simple-cache                      1.0.1    Common interfaces for simple caching
psy/psysh                             v0.9.8   An interactive shell for modern PHP.
ramsey/uuid                           3.8.0    Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and ...
sebastian/code-unit-reverse-lookup    1.0.1    Looks up which function or method a line of code belongs to
sebastian/comparator                  3.0.2    Provides the functionality to compare PHP values for equality
sebastian/diff                        3.0.1    Diff implementation
sebastian/environment                 3.1.0    Provides functionality to handle HHVM/PHP environments
sebastian/exporter                    3.1.0    Provides the functionality to export PHP variables for visualization
sebastian/global-state                2.0.0    Snapshotting of global state
sebastian/object-enumerator           3.0.3    Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector            1.1.1    Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context           3.0.0    Provides functionality to recursively process PHP variables
sebastian/resource-operations         1.0.0    Provides a list of PHP built-in functions that operate on resources
sebastian/version                     2.0.1    Library that helps with managing the version number of Git-hosted PHP projects
swiftmailer/swiftmailer               v6.1.3   Swiftmailer, free feature-rich PHP mailer
symfony/console                       v4.1.5   Symfony Console Component
symfony/css-selector                  v4.1.5   Symfony CssSelector Component
symfony/debug                         v4.1.5   Symfony Debug Component
symfony/event-dispatcher              v4.1.5   Symfony EventDispatcher Component
symfony/finder                        v4.1.5   Symfony Finder Component
symfony/http-foundation               v4.1.5   Symfony HttpFoundation Component
symfony/http-kernel                   v4.1.5   Symfony HttpKernel Component
symfony/polyfill-ctype                v1.9.0   Symfony polyfill for ctype functions
symfony/polyfill-mbstring             v1.9.0   Symfony polyfill for the Mbstring extension
symfony/polyfill-php72                v1.9.0   Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/process                       v4.1.5   Symfony Process Component
symfony/routing                       v4.1.5   Symfony Routing Component
symfony/translation                   v4.1.5   Symfony Translation Component
symfony/var-dumper                    v4.1.5   Symfony mechanism for exploring and dumping PHP variables
theseer/tokenizer                     1.1.0    A small library for converting tokenized PHP source code into XML and potentially other...
tijsverkoyen/css-to-inline-styles     2.2.1    CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pag...
vinkla/instagram                      8.0.0    An easy-to-use and simple Instagram package
vlucas/phpdotenv                      v2.5.1   Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagic...
webmozart/assert                      1.3.0    Assertions to validate method input/output with nice error messages.

You're using vinkla/instagram version 8.0.0. Please upgrade to the latest version.


Add service layer pattern to separated controllers from persistence d…

…omain

Congratulation @filipejesse this code become realy better with your modifications


ord/gui: add OPENROAD_SHARE to cmake and install .desktop file on Linux systems

Closes #6173

Adds a .desktop file for linux to install which allows Unbuntu24 to find the required icon for the taskbar.

@gadfort Thanks! The icon is easy to distinguish from other icons, though dark green on dark grey is hard to read details of...

@oharboe it's the icon we have. I think it would be a new issue to propose a new icon or set of icons


Default visible widgets per node

Option to save the widget visibility list as the default for this node type. Saved in the comfy settings, not with the workflow, for use with new controllers.
Why? There are some widgets I always hide!

Simplest thing to do might be:

a global default for each node type
an option to 'set these visibilities as default for nodes of this type'
any node that doesn't have explicit settings gets the default for that type


refactor: function call code structure refactoring

Description
These changes are based on my own undetstanding of OpenAI function call. I'm not saying my implementation is better than the origional one. This is just as a reference.

Please do not merge without review

Hi I have just read and run Tianqi's code and found no problem. This refactoring simplifies the previous function collection implementation and the workflow of ChatAgent for function calling. Could I merge these 2 branches?


Zookeeper metrics zookeeper.instances.* are missing tags

Additional environment details (Operating System, Cloud provider, etc):

EKS 1.21
Helm chart 2.9.8

Datadog Agent 7.25.0
Cluster Agent 1.10.0
Datadog ZK 2.9.2

Steps to reproduce the issue:

Enable Zookeeper check
Add extra tags, e.g. via pod annotation: ad.datadoghq.com/tags: '{"foo":"bar}'

Describe the results you received:
Extra tags are added most metrics including zookeeper.instances  but they are NOT added to zookeeper.instances.{down, inactive, leader, follower} metrics.
Describe the results you expected:
I expected all metrics to be tagged.
Additional information you deem important (e.g. issue happens only occasionally):
Looks like this line needs to be changed to:
self.gauge(gauge_name, v, tags=self.base_tags)

Thanks for the catch, PR adding base tags to zookeeper.instance.* metrics: https://github.com/DataDog/integrations-core/pull/10037

Closing issue because change has been merged in.


Generate UUID in Foxx

Hi Guys,
i have a scenario, where i want to clone documents and create new uuid's inside foxx. There seems to be no integrated way (at least i didn't found one), so i tried to include node-uuid, but it requires either getRandomValues() from the WHATWG proposed crypto modules for browsers or randomBytes() from the node.js crypto module. I saw that the Foxx crypto module is there, but empty a.k.a. not implemented yet. Do you have any suggestions for a workaround?

I forked shortid to use Math.random instead of crypto, and use it in my own Foxx app. https://github.com/pekeler/shortid

@pekeler
thanks for your fast answer. I guess this is the way I will take for now, too. Maybe someone from arango can elaborate on plans that exist or may not exist for the crypto module.

My naive assessment (i.e. without knowing what the C++ part looks like) would be that we could provide an implementation of randomBytes to make the module work correctly. I'm fairly certain the underlying code already exists (we already have code for generating random numbers and ascii), we'd just need to expose a function that returns a Buffer of the given length to JS.
Minor caveat: we have to make sure we don't introduce any accidental bias (especially when trimming the number of bytes) and that the source of pseudorandomness is cryptographically secure. Otherwise implementing it would do more harm than good. I'll open a ticket.
If you just need a random value, try require('org/arangodb/crypto').getRandomAlphaNumbers() or require('org/arangodb/crypto').getRandomNumbers().

@pluma
Thanks for your answer. I guess everything is better than Math.random, so thank you for your insights and I will definitely try that.

V8 4.9 implements a better Math.random(), but it's still not cryptographically secure:
http://v8project.blogspot.de/2015/12/theres-mathrandom-and-then-theres.html?m=1

@pluma
It's genRandomNumbers :) The closest working solution i came up with, is the following:
var rnd = [];
for(var i=0,len=16;i<len;i++) {
    rnd[i] = parseInt(genRandomNumbers(3),10) & 0xff;
}
return rnd;

But I have no idea about the quality of the randomness to be honest. At least it's working for now.

@phal0r Oops, you're right.
I'm pretty sure you're introducing bias by discarding bits but I don't know the underlying implementation well enough to say whether it's a safe source of randomness to begin with.

I can only advise that we had a similar thing in native code, which would fail to produce random enough values now and then. The Windows CI uncovered that eventually in the unittests...

nodes crypto.randomBytes https://github.com/nodejs/node/blob/773b9016aab9ccaf4eb6acdde07bbeef309e4647/src/node_crypto.cc#L5340
calls openssls RAND_bytes https://github.com/nodejs/node/blob/6fff47ffacfe663efeb0d31ebd700a65bf5521ba/deps/openssl/openssl/crypto/rand/rand_lib.c#L155
good advice would be to read from /dev/random for strong crypto (key creation …) or /dev/urandom for uuids.

this should to the trick. On *NIX. https://github.com/baslr/ArangoDB/commit/2612824f57489bc2f8bdd7ebb19eb7c1c54bb1dc
arangosh [_system]> a  = require ('@arangodb/crypto')
arangosh [_system]> a.randomBytes(10).toString('hex')
a85e96fef3916497a018

arangosh [_system]> a.randomBytes(10).toString('hex')
cc3a13f6ce84235ef7a1

I'm closing this as the question has been answered. The feature request is in #1739.


selected index

Hi thanks for the quick response, can you please tell how to get the selected index, because I'm not able to get selected index, and also tell me how can i set nothing selected by default. Thanks

you can use  selectListener: ((Int) -> Unit)? to get the selelected index.

  wheelView.selectListner = {
     Log.d("tag","selected index is $it")
}

To select nothing you can set focusedIndex to a large value :

  wheelView.focusedIndex = Int.MAX_VALUE

Also, please continue on the same issue rather than creating a new one if things are related.


Faucet limit from draining

Hey,
Is there currently a way in the faucet to limit faucet users from draining it, like IP rate limiter per day or something like that, which would prevent somebody from spamming the faucet?

The faucet itself does not implement something like that. I think the best way to achieve this is using HTTP reverse proxies and configure it in threre.
For more app specific logic like faucet usages per address it would be good to have the feature in the faucet. However, this is not trivial to implement because the faucet does not have any storage implemented right now.

@webmaster128 thanks for answer. I will be adding this for my needs anyways, so maybe we can coordinate if it would be useful to integrate here as well? I saw couple implementations using simple sql storage to store both ip and address with cooldown, but might be easier and simpler to use redis cache or something like that.

I think it would be very cool if that was developed and integrated here. Then we can best maintain it and make it accessable for everyone.
It would be good to have a solution that works in a single docker container. So I have a tendency towards sqlite databases, which already handles a lot of parallelization pretty well. Then you only need to start and maintain one process.

@webmaster128 thanks, I can do this on my fork and maybe create PR after I have something?

Sounds good, thank you! Feel free to open a draft PR if you want to get some early feedback.

@webmaster128 you might want to look at express rate limiter. I used this to limit max drips from an IP and set a time limit of 24 hrs for that IP, pretty useful for limiting public APIs.

A general purpose HTTP rete limiter can be achieved with any proxy solution. If we want this to matter, we should add app logic in there by at least rate limiting the target address.


Content Publishing - Components (09 Card)

User Story

As an IBM.com Library components adopter,

I need a way to learn more about the components

so that I can utilize the components to my day to day work.

Additional information

Take a look at the storybook - so you know how the component works.   You will also use Storybook as a reference to accurately include the images in the Sketch file.

Download this Sketch template to your machine to make the updates. Name the Sketch file with the following convention: Name of the component + version. ex: Link list v1.0.sketch

Use the component description included in the Components Overview Box Note - for the 'Intro' section of the newly downloaded Sketch file

For the image creation, please use the components from the Design Kit for image creation, if the component can not be found in the Design Kit, navigate to the visual spec file within this Component Box folder sometimes it might be under the Pattern Box folder. The image that works successfully for most patterns is the 1312px image. Adjustments may be needed to have this image accurately reflect the Storybook designs.

Export the individual images with a 2X setting, saving them into the Components sub-folder that contains the Sketch file.  These exported images will be used when creating the Markdown for publishing. Please use the lowercase with a dash in between for image naming. For example, lightbox-media-viewer.jpg.

Once complete, save the revised Sketch file in the Components folder / sub-folder here.

Use this Sketch file to create the Markdown version of the web page in Github.

Find the .mdx file for the component assigned
Copy the content from the Sketch file into the .mdx file
Once complete, create the Pull Request and review, using the Preview link, to be sure it matches the Sketch file design
When ready to deploy, include Jenny as a PR Reviewer and Approver.
Jenny will review and merge the PR

Acceptance criteria

[ ] Content crafting is done.
[ ] Asset image creation is done.
[ ] Page design is done.
[ ] Publishing with markdowns is done.
[ ] QA'd by Jenny
[ ] Web page preview is approved by Linda, Jeff and Wonil
[ ] Web page is published

Content and images created, mocked-up, and approved by Jenny. Sketch and images now available on Box.

Card is live: https://ibm-dotcom-library.mybluemix.net/components/card


CUDA out of Memory when training STFPM

Got this error when training STFPM on pill category.
Occurred when training from the benchmarking script.
Error
output = self.trainer.call_hook('validation_step_end', *args, **kwargs)
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1230, in call_hook
    output = hook_fx(*args, **kwargs)
  File "/home/ashwin/anomalib/anomalib/core/model/anomaly_module.py", line 105, in validation_step_end
    self.pixel_metrics(val_step_outputs["anomaly_maps"].flatten(), val_step_outputs["mask"].flatten().int())
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/collections.py", line 110, in forward
    return {k: m(*args, **m._filter_kwargs(**kwargs)) for k, m in self.items()}
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/collections.py", line 110, in <dictcomp>
    return {k: m(*args, **m._filter_kwargs(**kwargs)) for k, m in self.items()}
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/metric.py", line 205, in forward
    self._forward_cache = self.compute()
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/metric.py", line 367, in wrapped_func
    self._computed = compute(*args, **kwargs)
  File "/home/ashwin/anomalib/anomalib/core/metrics/optimal_f1.py", line 38, in compute
    precision, recall, thresholds = self.precision_recall_curve.compute()
File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/metric.py", line 367, in wrapped_func
    self._computed = compute(*args, **kwargs)
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/classification/precision_recall_curve.py", line 148, in comp
ute
    return _precision_recall_curve_compute(preds, target, self.num_classes, self.pos_label)
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/functional/classification/precision_recall_curve.py", line 2
60, in _precision_recall_curve_compute
    return _precision_recall_curve_compute_single_class(preds, target, pos_label, sample_weights)
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/functional/classification/precision_recall_curve.py", line 1
40, in _precision_recall_curve_compute_single_class
    fps, tps, thresholds = _binary_clf_curve(
  File "/home/ashwin/miniconda3/envs/anomalib/lib/python3.8/site-packages/torchmetrics/functional/classification/precision_recall_curve.py", line 3
6, in _binary_clf_curve
    desc_score_indices = torch.argsort(preds, descending=True)
RuntimeError: CUDA out of memory. Tried to allocate 5.82 GiB (GPU 0; 23.70 GiB total capacity; 9.28 GiB already allocated; 2.61 GiB free; 19.41 GiB
 reserved in total by PyTorch)

Relevant Config

Image size = 256

Look like the issue that @blakshma is having with the CFlow implementation is quite similar to this if not the same. @djdameln is trying to move the metric computation to the cpu, which would hopefully resolve the issue.

Should we limit number of samples used to calculate pixel level threshold? This might be a bigger problem if users are uploading 1000's of images.

yeah, this is on our agenda. For now this PR will move the computation to cpu.


Add NuGet Sources argument to DotNetCoreTestSettings

Similar to https://github.com/cake-build/cake/issues/2165 and https://github.com/cake-build/cake/issues/2119, the DotNetCoreTestSettings currently does not expose the Sources property, which is used during implicit restores as per the docs:

You don't have to run dotnet restore because it's run implicitly by all commands that require a restore to occur, such as dotnet new, dotnet build, dotnet run, dotnet test, dotnet publish, and dotnet pack. To disable implicit restore, use the --no-restore option.
(...)
This command supports the dotnet restore options when passed in the long form (for example, --source). Short form options, such as -s, are not supported.

@augustoproiete I would be happy if I can solve this issue.


Add missing TxnPosting to compute_postings_balance

The function explicitly takes a list that can contain Postings and/or TxnPostings (or anything else, which is skipped).
https://github.com/beancount/beancount/blob/be13ab359987947eb0f8d241fde55adc65cb4dbc/beancount/core/realization.py#L690-L694

Alternately, the signature could be TxnPosting | Posting—it might prevent nasty surprises.

@yacoob, @jmgilman?

Apologies for a long delay here :)


setting the target temp on the thermostat CT80 B2 Rev v1.09

Currently, I have two of the radio thermostats, model CT80 B2 Rev v1.09.  When working with the thermostat via the api, I noticed I could set the target temp on the thermostat if I used a only a interger for the target temp.  If the temp was a floating point number (ie 72.3), the setting of the target temp would fail.  In addition to this, I noticed I could set the target temp to 72.5 via the library and the thermostat would target temp would be set to 72.  Is this normal behavior for the other models of the radio thermostat as well?

I don't see this on the CT80 B1 Rev v1.00. Do you still see this with the latest version of this library?

Since there hasn't been any response, I'm going to assume that either there is no interest or the issue does not occur anymore. If I am wrong, please re-open after testing with the latest version of this library!


Bug: Licensed object shown as not in license

Even though an object is obsoleted, Ninja shows it as not in the license:

Fixed in release 2.10.0 (to be released this week)


Add environment outputs to logger interface (and tensorboard)

for logger.record("environment/total_reward", tot_reward), I don't see where you create this 'environment' folder, this pr will break current code. Thanks.

for logger.record("environment/total_reward", tot_reward), I don't see where you create this 'environment' folder, this pr will break current code. Thanks.

I don't see it being related to time nor train, but if we want to stick it with something already present I could set it to train.
I'm using this variant and it all seems to work fine since it should only be a label used in output, and nothing more than this.
Do you want to group those under "train"?

I don't see it being related to time nor train, but if we want to stick it with something already present I could set it to train.
I'm using this variant and it all seems to work fine since it should only be a label used in output, and nothing more than this.
Do you want to group those under "train"?

I see, then that works. Thanks.

I see, then that works. Thanks.


[TOPI] Add dense schedule for fp16 and fp32 using gemm

Add a new schedule for the dense operator
based on the gemm algorithm.

cc @Anndrey24 @lhutton1 @leandron


Options not loaded at launch

Everytime I launch Atom, I have to change theme and re-change back to Isotope to get back my background image, the decorated gutter, and even the Isotope way of displaying the non-commited file.
The settings are still available, but just not applied.
At launch:

After theme change:

Atom version: 0.176.0
Isotope version: 1.2.8

Same here. Same version of Isotope and Atom. (I'm on Linux)
I feel like this may not be an Isotope issue, and more of an Atom issue. On Atom v0.175.0, Isotope was working admirably.

It's weird, I'm unable to reproduce this when testing on Ubuntu 1410, Atom 0.176.0, Isotope 1.2.8. There are some known issues that may be related, like https://github.com/atom/settings-view/issues/347... In a way I'm like "let's see what 0.177 brings"...? Not sure there's anything I can do at this point.

@malexandre @Nxt3 Guys, are you still getting this?

I can't install the last Atom release (0.178.0) because it's broke on my Fedora. But it's working. There is one probleme though: The gutter is not styled by Isotope anymore, I don't know why.

Yes, that's right. I had some feedback on the gutter style, reconsidered, and feel that that's really in the domain of the syntax theme and I shouldn't mess with it. I took out the option because I really needed to reel in the configurability to keep it maintainable.
I'm closing this for now. If anything crops up again let me know.


cephfs: SubVolume related issues

1. SubVolumeInfo structure doesn't have "state" attribute for the subvolume
If you run "ceph fs subvolume info" command it displays attributes for a subvolume, for example:
sh-4.2# ceph fs subvolume info myfs m1
{
"atime": "2021-01-29 12:29:28",
"bytes_pcent": "undefined",
"bytes_quota": "infinite",
"bytes_used": 0,
"created_at": "2021-01-29 12:29:28",
"ctime": "2021-01-29 12:29:28",
"data_pool": "myfs-data0",
"features": [
"snapshot-clone",
"snapshot-autoprotect",
"snapshot-retention"
],
"gid": 0,
"mode": 16877,
"mon_addrs": [
"<IP_ADDRESS>:6789"
],
"mtime": "2021-01-29 12:29:28",
"path": "/volumes/_nogroup/m1/972f9188-23be-46fc-a2c1-1355f2e566f0",
"pool_namespace": "",
"state": "complete",
"type": "subvolume",
"uid": 0
}
This includes "state" attribute also but SubVolumeInfo structure in go-ceph lacks that attribute.
2. Deleted subvolume (with retained snapshots) doesn't display all the attributes.
This is actually a Ceph feature that when you delete a subvolume with --retain-snapshots command and then run the subvolume info" on the same volume it will return only very limited attributes.
Example:
sh-4.2# ceph fs subvolume info myfs csi-vol-6ed1eaac-622c-11eb-8f93-0242ac110010 csi
{
"features": [
"snapshot-clone",
"snapshot-autoprotect",
"snapshot-retention"
],
"mon_addrs": [
"<IP_ADDRESS>:6789"
],
"state": "snapshot-retained",
"type": "subvolume"
}
Now, this is a problem because go-ceph  doesn't care whether all the attributes are returned or not but the user who was expecting all the attributes end up having an output with limited attributes and can behave abruptly.
Instance: https://bugzilla.redhat.com/show_bug.cgi?id=1917253
3. Looks like "--retain-snapshots" flag is not getting set using go-ceph API
https://github.com/ceph/ceph-csi/issues/1845

cc @madhu-1 @nixpanic

cc @madhu-1 @nixpanic

@phlogistonjohn Sorry for opening single issue for multiple things. Will send separate PRs.

@phlogistonjohn Sorry for opening single issue for multiple things. Will send separate PRs.

Today, we ignore BytesQuota if it is infinite (here). We can also ignore if it is nil (in case where subvolume is deleted with retained snapshots) to solve https://github.com/ceph/ceph-csi/issues/1845 or we can check state field and if it is "snapshot-retained" then we can ignode bytes_quota field.
That is the use case for "state" attribute mentioned in the description.

Today, we ignore BytesQuota if it is infinite (here). We can also ignore if it is nil (in case where subvolume is deleted with retained snapshots) to solve https://github.com/ceph/ceph-csi/issues/1845 or we can check state field and if it is "snapshot-retained" then we can ignode bytes_quota field.
That is the use case for "state" attribute mentioned in the description.

Sorry, but I am having a bit of trouble parsing this issue.
First off, are there three (or more) independent issues here? If so, we really ought to have three issues (one for problem).

This includes "state" attribute also but SubVolumeInfo structure in go-ceph lacks that attribute.

Hmmm? Are you saying that state is missing? That shouldn't be a huge issue to add but if it is missing it might be because its not present on all ceph versions we support. Have you checked to see if it is available on nautilus?
BTW we enabled github discussions for go-ceph so that might be a good way to ask questions about how best to use apis when its not clear there's an actual issue (regarding the BytesQuota bit).

Sorry, but I am having a bit of trouble parsing this issue.
First off, are there three (or more) independent issues here? If so, we really ought to have three issues (one for problem).

This includes "state" attribute also but SubVolumeInfo structure in go-ceph lacks that attribute.

Hmmm? Are you saying that state is missing? That shouldn't be a huge issue to add but if it is missing it might be because its not present on all ceph versions we support. Have you checked to see if it is available on nautilus?
BTW we enabled github discussions for go-ceph so that might be a good way to ask questions about how best to use apis when its not clear there's an actual issue (regarding the BytesQuota bit).

Looking at the unit tests that exercise subvolume info, none of them have a "state" field. I suspect this was added in a backport and we weren't told about it. :-(

Looking at the unit tests that exercise subvolume info, none of them have a "state" field. I suspect this was added in a backport and we weren't told about it. :-(

Opened https://github.com/ceph/go-ceph/issues/454 and #453

Now that the issues are split apart I'll close this issue as #452 has been merged.


Convert docker-xrootd-standalone to use build and push actions (SOFTWARE-4823)

@yongleyuan the CI is failing, looks like a bad var ref


PRETRAIN_MODEL_PATH_NAME

I have some questions to ask you.That is:
PRETRAIN_MODEL_PATH_NAME = "temp/model/save_epoch_10/ViolenceNet.ckpt"
where is the ViolenceNet.ckpt??
I hope you hear from you.

Can you send it for my<EMAIL_ADDRESS>

OK,I konw

我有几个问题要问你。
PRETRAIN_MODEL_PATH_NAME = "temp/model/save_epoch_10/ViolenceNet.ckpt"
ViolenceNet.ckpt在哪里？
希望您能收到您的来信。


Bump sanitize gem 2.0.6 -> 4.6.4 and adjust specs to match.

This is in response to an automated security report from github for CVE-2018-3740. More details here: http://seclists.org/oss-sec/2018/q1/254
It looks like the sanitize gem introduced a different method of fixing closing tags that don't follow an opening tag. It used to treat that tag as empty, in which case our no_empties option would remove it. Now it appears to treat the closing tag as an opening tag and then insert a corresponding closing tag just before the next opening tag. I don't think our expectations were tied to that specific prior behavior because we use it mainly for enforcing whitelist tags. Which content is contained in the whitelisted tags is less of a concern.

LGTM


fcron: 3.2.1 -> 3.3.0

Semi-automatic update. These checks were performed:

built on NixOS
ran /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcrontab -h got 0 exit code
ran /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcrontab --help got 0 exit code
ran /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcrontab help got 0 exit code
ran /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcronsighup -h got 0 exit code
ran /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcronsighup --help got 0 exit code
ran /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcronsighup help got 0 exit code
ran /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcrondyn -V and found version 3.3.0
found 3.3.0 with grep in /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0
found 3.3.0 in filename of file in /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0

@GrahamcOfBorg build fcron

Failure on x86_64-darwin (full log)
Partial log (click to expand)
Package ‘busybox-1.28.1’ in /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/os-specific/linux/busybox/default.nix:100 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on aarch64-linux (full log)
Partial log (click to expand)
shrinking /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/bin/fcronsighup
shrinking /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/bin/fcrontab
shrinking /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/sbin/fcron
gzipping man pages under /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/share/man/
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/bin  /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/sbin
patching script interpreter paths in /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0
checking for references to /build in /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0...
moving /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/sbin/* to /nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0/bin
/nix/store/jdp2497sjdxksd8r68dx2nqg5m288j4i-fcron-3.3.0

Success on x86_64-linux (full log)
Partial log (click to expand)
shrinking /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcrondyn
shrinking /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcronsighup
shrinking /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin/fcrontab
gzipping man pages under /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/share/man/
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin  /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/sbin
patching script interpreter paths in /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0
checking for references to /tmp/nix-build-fcron-3.3.0.drv-0 in /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0...
moving /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/sbin/* to /nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0/bin
/nix/store/dmh101f0pbqggvjywh5dfgmi1i8sh3ic-fcron-3.3.0


Curate documentation for Algorithms module

With the DocC support for documentation of extensions of external types/protocols, the Algorithms documentation can make sense. This is a WIP effort to curate and document all the APIs in this library.

@swift-ci Please test


fix dotnet add package command

fix the command to add package reference

@jamesmontemagno would you like to take a look on this, thanks


x/pkgsite: k8s.io/api/core/v1#PersistentVolumeSpec information is wrong

What is the URL of the page with the issue?
https://pkg.go.dev/k8s.io/api/core/v1#PersistentVolumeSpec
What is your user agent?
Not relevant
Screenshot

What did you do?
The information is wrong:
https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/core/types.go#L303-L306
From the upstream source code you can see the PersistentVolumeSpec.Capacity is not optional
What did you expect to see?
I expected to see the same struct for PersistentVolumeSpec as in the Kubernetes repository.
What did you see instead?
I see a different version where capacity is marked as optional, but this is wrong.

please report this to kubernetes

Thanks, I figured out now the bug is actually here:
https://github.com/kubernetes/api/blob/release-1.26/core/v1/types.go#L302-L321
I will report to Kubernetes. Thanks


multiline comments don't work

multiline comments are not rendered correctly.
Code:
#`[
And this is how a multi would work.
That says why we do what we do below.
]
say "No more";

Result:

It should detected as a multiline comment but it's not.

This is actually not a problem in the language server, but in the textmate grammar that VS Code uses to parse Perl 6. I'll have a look if I can find a solution for this, but I know nothing about textmate grammars...

Actually there is already an issue reported for this in the orignal bundle repo:
https://github.com/textmate/perl.tmbundle/issues/35


Make many HTTP functions constant

Make many request and client methods constant by primarily removing Default implementation usage on fields and removing Option::replace usage.
Blocks on #1009. #1009 has been merged.

This PR is now ready for review.

Ready for review now.

Comments addressed. The Create Guild request module has been largely untouched from this PR due to requiring a complete rework.


Notebook not able to run sql query after AAD token gets expired

Steps to Reproduce:

Create a notebook from a server connection with AAD-MFA auth.
Wait for some time (AAD access token expires in 1 hour by default) then run a sql query that requires connection.
Result will say Query was canceled by user although the cancel button is not pressed.

@chlafreniere Sure, I haven't sent the PR yet but it should be done shortly. (The link that references this issue is actually a mega issue for AAD token instead of a PR.)


Password reset screen text

Password reset screen text and button text is incorrect

MVC issue - Registration work should resolve this, and other known language string errors.


Modify logging to support multicore

Small tweak in the back-end nonsynth tracer, so each core prints to a
separate debug log file

Is there a way to tell the interleaving of events between the files m? This is often useful, but requires that you be pretty strict about formatting.

Unfortunately not. The single file as it is set up right now though is pretty much infeasible for debugging, because the two cores appear to be overwriting each other in the file. For example, the first instruction that was showing up as committed for core 0 was halfway through main.

The long-term way to support this would be to only instantiate one logger that probes into all cores and can order events by core.  Right now, the bind is per core.  I'll make an issue to change it, but this should let Katie debug in the meantime

I’m all for making short term tweaks to make progress! In terms of the code, the previous code should work for single file tracing if you hoist the file open out of the bind statement and use the same file handle across the binds. We do this in the manycore and it works fine in VCS, I guess because it visits binds in the looping order of the generate statements.

Ohh, I think I see. Cool! I’ll take a look at that at some point


Update index.ts

Type annotations have been added to function parameters and return types for better code readability and type safety.
The error messages returned in the Err branch of the Result have been made more descriptive and informative.
Input validation and sanitization have not been explicitly added in this version. It's recommended to implement appropriate validation and sanitization logic based on the specific requirements of your project.
The data structure used to store the TunaRecord objects has been changed to HashMap for efficient lookup based on the ID.
Comments have been added to explain the purpose and functionality of each function.

Yo, I m ready to merge your feedback.


bare + browser :) I think you underestimate how bare my environment is

I'm trying to get DuckDB-WASM going on my own site
without being steeped in Bundling lore (I do write my own and use D3 no not entirely naked) I'm hitting a brick wall.
If one serves the files from
duckdb-wasm/examples/bare-browser/
then all you end up with is
Loading failed for the module with source “http://localhost/duckdb-browser.mjs”.

I'm sorry our examples are tested within the yarn workspace.
I understand that this is unnecessarily complex, we need to make our examples independent of the monorepo to allow for a simple c&p.

the cliff is quite steep
/me harks back to the days to ./configure && make && sudo make install

Hi @ankoh - I'm very excited about your project. I'm not a front-end expert, but I've managed to get the bare-browser example working with yarn.
However, when I inspect the console I see an output that shows the query, but not an output that shows the output of the query. Can you let me know how I can generate that?
Also, would you be interested in a PR that adds a readme to the browser examples explaining how to run them?

A vanilla JavaScript example would be great. (not using any bundlers)
Spent a day and still couldn't have one up and running

I agree with @gcallxpert. It would be easier to understand and use it this way.

If this helps - I've created a sandbox demo - https://codesandbox.io/s/7ss39r?file=/src/DuckDb.js

Thank you @sgilligan, it helps !!


Add functionality to Widget for displaying random photos

The app and the widget work really nicely.
It would be great though, if the widget for displaying photos could be configurable for:

Displaying random photos every X seconds, X being also configured by the user.

Displaying random photos as the user swipes

I like the idea but as far as I know this is not possible, because widgets cannot be updated too often (30 minute at best, from memory). Also, widgets cannot handle as many different gestures as apps do. Basically you can tap or scroll a list, and that's all.

Thanks for updating
Would the 30 minutes option be feasible? Or anything that randomly changes the image? Like locking/unlocking the phone, or some other accessible callback?
I think such a feature could bring great added value to the app.

It's already changing the picture every 60 minutes (more or less, depends on the OS scheduling). In the widget settings you can choose if the displayed item is random or most recent. And it also changes the image when tapping on the widget.

Right.
As a last question/ request, in the configs there is also a configuration "when taping on the widget" could something like " show next" be added?
I've seen some widgets updating the display within seconds.
You mentioned that the gestures are limited, but if any other simple gesture ( such as double tap) can be added, some additional functionality could be added there.

could something like " show next" be added?

I'll take a look.

Nice! Thanks! Excited to try it out


Fix classification of bogus "markup" languages

UPDATED
Okay, further digging around the corners of languages.yml revealed some other egregious cases of bogus "markup" languages, which my comment below describes in depth. I've updated the OP with a summary to recap what's changed:

ApacheConf and Nginx configuration files recategorised from markup to data. The latest "trending" Nginx repos reveals no physics-defying typesetting logic that can explain how a list of server variables controls the flow of typography (I've seriously been spending too much time in troff, honestly...)

Web Ontology Language was tagged as markup, presumably by a submitter who was mislead by the connection to XML (possibly before XML was deemed to be data-typed, rather than real markup).

Eagle CAD files specify PCB drawing data for the Eagle CAD suite. See https://github.com/github/linguist/pull/3743#issuecomment-319643063 for long-winded rationale and too many tangential anecdotes.

XPages was a dead giveaway with its only two file-extensions being .xsp-config and .xsp.metadata. Didn't take much research to figure out they're just XML-based configuration files for a web application framework named "XPages". On the plus side, I also added XML highlighting for it, so at least its data will look nicer now. =)

Pure Data was only investigated for laughs because of the name, which looked ironic juxtaposed to a type of programming. After looking it up though, it turns out that the... frikkin' language really is "pure data". I'll quote PD's FAQ here:

Q: "What Is Pd?"
A: Pd stands for Pure Data. Pd is a real-time software system for live musical and multimedia performances. It is in active development by Miller Puckette, and perhaps others. The system is unfinished, but quite usable for sophisticated projects.

And the gloss on PD's homepage makes it pretty obvious it isn't even programmer-related:

Pure Data is an open source visual programming environment [ … ] Pd enables musicians, visual artists, performers, researchers, and developers to create software graphically without writing lines of code. Pd can be used to process and generate sound, video, 2D/3D graphics, and interface sensors, input devices, and MIDI

One look at the sort of stuff that .pd files contain, and you know it's not been hand-written... Though to be fair, this misclassification was added in the same commit that Linguist's first two language-types were defined: which were limited to Programming and Markup. Guess it escaped notice and remained unnoticed for ~6 years.

Original post that started this search:
@goodmind pointed out a confusing oddity in #3740:

I looked at Protobuf and it has type: markup but initially I thought that this type should be used for HTML-like languages only and not RPC languages like Protobuf. (markup type is very misleading at first)

He's right. My understanding of Protobuf is that it's used for defining APIs, not marking up presentational content.
The current type classification for Protocol Buffer was added by @qqshfox in February 2013 (#392). I'd say Linguist's handling of language-types has become much more refined in the years since, but I feel I should ping @qqshfox to ask if he feels markup would still be a more suitable descriptor for Protocol Buffer?
My exposure with Protobuf is rather minimal, but I was actually reading about it recently after submitting google/fonts#1094, and then wondering about the missing syntax highlighting for its "text-based component".

Found a few more egregious cases:

ApacheConf: Good LORD, that's been there for ~5 years. 😨  Seems Linguist's definition of language-types certainly was... rough-around-the-edges. Does anybody else agree that this could only possibly be classified as data...?

API Blueprint: Not at all familiar with what this is, but the fields which reference Markdown/GFM looked a little bit... off. After taking a cursory glance, I'd say this is closer to prose than markup, as its content looks very reminiscent of rST or Markdown. I'm dye that alone, but bringing it up in case somebody with more knowledge of API Blueprints wants to chime in.

nginx: Added at the same time as ApacheConf. Definitely configuration data. Also, I now recall one of my repositories being misclassified as ApacheConf in the past, due to one or two server-config files, which happened to be very heavy with commented-out lines. I'd say this would fix a lot of repositories out there that've been erroneously categorised as "ApacheConf" codebases...

Will update this again soon-ish.

Okay, there's no room for subjectivity here. XPages is full-blown XML, so I've reclassified it as data, with Eagle given the same treatment.
If anybody here has managed to typeset a published document using an nginx config, please let me know how you managed that, because that's some Houdini-level sh*t.

Well, so data type shouldn't be displayed in repository languages list?

Because that's precisely what would happen. The volume of data-type languages often far outweighs the volume of actual programming or markup languages.

I'm writing about the decision to count "Pure Data" as a type: data language, as opposed to programming language, as it had previously been counted until this update. For reference, quoted below is the part of the original logic behind changing the designation:

Pure Data was only investigated for laughs because of the name, which looked ironic juxtaposed to a type of programming. After looking it up though, it turns out that the... frikkin' language really is "pure data". I'll quote PD's FAQ here:

Q: "What Is Pd?"
A: Pd stands for Pure Data. Pd is a real-time software system for live musical and multimedia performances. It is in active development by Miller Puckette, and perhaps others. The system is unfinished, but quite usable for sophisticated projects.

And the gloss on PD's homepage makes it pretty obvious it isn't even programmer-related:

Pure Data is an open source visual programming environment [ … ] Pd enables musicians, visual artists, performers, researchers, and developers to create software graphically without writing lines of code. Pd can be used to process and generate sound, video, 2D/3D graphics, and interface sensors, input devices, and MIDI

One look at the sort of stuff that .pd files contain, and you know it's not been hand-written... Though to be fair, this misclassification was added in the same commit that Linguist's first two language-types were defined: which were limited to Programming and Markup. Guess it escaped notice and remained unnoticed for ~6 years.

Pure Data is a visual programming language, as well as a data flow programming language, which is primarily edited through the Pd environment itself. However, the programs produced are able to be run independent of the program and have been used in mobile implementations, internet streaming implementations, and as audio synthesis support in larger programs.
The classification of "type: data" is incorrect, because though the name of the language is called "Pure Data," the actual files are programs that perform functions primarily within audiovisual playback, synthesis, and processing, as well as other algorithmic procedures operating on the data needed to work with audio and video.
I understand the purpose of these revisions, especially when it comes to XML-like languages that are just data configurations files, or database files that only house data. But as it stands, the rationale listed in #3743 that elucidates what counts as type:data:

KiCad formats are data formats, not programming languages. I'm not sure why @pchaigno chose the latter in #2309 / #2187, but these formats are essentially just lists of coordinates, property lists, and object descriptions. XML has more in common with programming languages than these do.

does not actually include what a Pure Data file is. Though there are indeed lists of coordinates, but the coordinates are the location of objects and functions on the canvas of the program as it would be rendered in a visual environment. There are no "property lists" or "object descriptions." Instead, these objects call functions and denote the connections between objects in order to run the program itself. Just as Java code files need a Java compiler to be run, Pure Data needs the Pure Data compiler to be run -- but not universally, because as mentioned earlier, Pd files are used in mobile, web, and polyglot implementations where the compiling happens behind the scenes and the sound works without the canvas being displayed, or the Pure Data environment itself being utilised.
Finally, I'd like to close with an objection to some of the language that's used in the original post:

And the gloss on PD's homepage makes it pretty obvious it isn't even programmer-related:

and

One look at the sort of stuff that .pd files contain, and you know it's not been hand-written...

Obviously this is going to immediately descend into a philosophical argument about what a programming language can be, but

Pure Data is used by programmers in primarily audiovisual implementations, but having a (comparatively to Python or C++) small implementation market doesn't disqualify something from being a programming language, and thus, programmer-related;

Pure Data is "hand-written" in the sense that the program files were created by actual people making actual decisions about what functions to call and how to control the flow of data within the program. The files themselves contain coordinates for objects on a canvas, as is the standard operating procedure for many visual programming languages. The logic that governs how these programs work is entirely up to the programmer, but the coordinates that appear in the program file are necessary for the compiler to understand how objects connect to one another.

I think it's troubling to assert the above two points, especially on languages that one is unfamiliar with, because it's a bit gate-keepery regarding who can be a programmer. Pure Data has a wide share of the audio programming market, particularly for creative implementations, along with Max/MSP, which is also a visual data flow programming language. Pd projects are implemented and developed on Github (the Pure Data repo itself is distributed here), and while the program files they create don't look like a standard written language such as Python or C++, that's only because of their implementation within a visual data flow paradigm. My primary concern with this point is that if Linguist's idea of "programming language" only includes specific (ie written) kinds of programming paradigms, then it excludes certain fields where other paradigms like visual or data flow languages are much more common.
Hopefully I've done some work to convince you that these are not type:data files, but actual programs that do more than just store information or function as a XML-like markup file. (At the very least, you should also list Max/MSP as type:data instead of also counting it as a programming language, because it's the exact same program architecture.)


honggfuzz crashes, sometimes get mangle_getLen error

LTNS Robert!! :smiley:
I wanted to quickly use honggfuzz to test something, but I couldn't get it working - it crashes (i.e. honggfuzz crashes) after a few seconds. I'm using this commandline:
../honggfuzz/honggfuzz -T --timeout 60 -i samples -P -x -- ./rtxharness

The crash is not consistent, and doesn't seem to happen with 1 thread, multiple threads seem to be required to trigger it. I often (but not always) see this error in the log before the crash:
[2021-04-15T17:27:57-0700][F][507623] mangle_getLen():55 max (1048577) > _HF_INPUT_MAX_SIZE (1048576)

I sometimes get an ASAN error like this:
==507612==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf5500000 at pc 0xf7a32ea9 bp 0xe99ecae8 sp 0xe99ec6c0
WRITE of size 779427 at 0xf5500000 thread T6
[2021-04-15T17:27:57-0700][F][507623] mangle_getLen():55 max (1048577) > _HF_INPUT_MAX_SIZE (1048576)
    #0 0xf7a32ea8 in __interceptor_memmove ../../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:789
    #1 0x5659ed79 in mangle_Move honggfuzz/mangle.c:101
    #2 0x5659f32b in mangle_Inflate honggfuzz/mangle.c:129
    #3 0x5659f409 in mangle_Insert honggfuzz/mangle.c:139
    #4 0x5659f4c9 in mangle_UseValue honggfuzz/mangle.c:147
    #5 0x565a0aff in mangle_ConstFeedbackDict honggfuzz/mangle.c:519
    #6 0x565a4056 in mangle_mangleContent honggfuzz/mangle.c:902
    #7 0x5659d071 in input_prepareStaticFile honggfuzz/input.c:671
    #8 0x5658d991 in fuzz_fetchInput honggfuzz/fuzz.c:361
    #9 0x5658e41a in fuzz_fuzzLoop honggfuzz/fuzz.c:399
    #10 0x5658fd6c in fuzz_threadNew honggfuzz/fuzz.c:537
    #11 0xf7a533ce in asan_thread_start ../../../../../src/libsanitizer/asan/asan_interceptors.cpp:205
    #12 0xf799b0b3 in start_thread nptl/pthread_create.c:477
    #13 0xf78ae295 in __clone (/lib/i386-linux-gnu/libc.so.6+0x104295)

I stopped there, and it does look wrong:
#4  0x5659ed7a in mangle_Move (run=0xe9beef60, off_from=99146, off_to=99148, len=949430) at mangle.c:101
101         memmove(&run->dynfile->data[off_to], &run->dynfile->data[off_from], len);
(gdb) p run->dynfile->size
$1 = 1048578
(gdb) p len
$2 = 949430
(gdb) p len + off_to
$3 = 1048578

But I don't really understand how that happened?

Okay, I can repro on a fresh checkout like this:
I'm at b125038dbcb1a9602be580bfcbbaac8d7180a1bb,
$ mkdir samples
$ dd if=/dev/zero bs=1048577 count=1 of=samples/input
1+0 records in
1+0 records out
1048577 bytes (1.0 MB, 1.0 MiB) copied, 0.00091927 s, 1.1 GB/s
$ ./honggfuzz --threads 8 -i samples -x -- /bin/true ___FILE___

Note that it doesn't crash every time, sometimes you will just get the mangle_getLen error or fuzz_fuzzLoop():404 Cound't prepare input for fuzzing.

Here is valgrind output:
$ valgrind --trace-children=no --child-silent-after-fork=yes ./honggfuzz --verbose --threads 8 -i samples -x -- /bin/true ___FILE___
==89246== Memcheck, a memory error detector
==89246== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==89246== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==89246== Command: ./honggfuzz --verbose --threads 8 -i samples -x -- /bin/true ___FILE___
==89246==
Start time:'2021-04-<IP_ADDRESS>' bin:'/bin/true', input:'samples', output:'samples', persistent:false, stdin:false, mutation_rate:5, timeout:1, max_runs:0, threads:8, minimize:false, git_commit:2518baeec5b43e203c77a0c69cbac7ef400a4633
Entering phase: Static
Launched new fuzzing thread, no. #0
Launched new fuzzing thread, no. #1
Launched new fuzzing thread, no. #2
Launched new fuzzing thread, no. #3
Launched new fuzzing thread, no. #4
Launched new fuzzing thread, no. #5
Launched new fuzzing thread, no. #6
Launched new fuzzing thread, no. #7
==89246== Thread 9:
==89246== Invalid write of size 1
==89246==    at 0x48407EE: memmove (vg_replace_strmem.c:1270)
==89246==    by 0x40E51C: mangle_Move (mangle.c:101)
==89246==    by 0x40E6B6: mangle_Inflate (mangle.c:129)
==89246==    by 0x40E721: mangle_Insert (mangle.c:139)
==89246==    by 0x40E7C4: mangle_UseValue (mangle.c:147)
==89246==    by 0x40EB57: mangle_Bytes (mangle.c:211)
==89246==    by 0x40FB5E: mangle_Splice (mangle.c:780)
==89246==    by 0x40FF29: mangle_mangleContent (mangle.c:889)
==89246==    by 0x40DC6B: input_prepareStaticFile (input.c:670)
==89246==    by 0x409679: fuzz_fetchInput (fuzz.c:361)
==89246==    by 0x409898: fuzz_fuzzLoop (fuzz.c:399)
==89246==    by 0x409F7D: fuzz_threadNew (fuzz.c:537)
==89246==  Address 0x1d020000 is in a rwx anonymous segment
==89246==
[2021-04-16T09:35:02-0700][F][89259] mangle_getLen():55 max (1048577) > _HF_INPUT_MAX_SIZE (1048576)
==89246==
==89246== HEAP SUMMARY:
==89246==     in use at exit: 69,240 bytes in 19 blocks
==89246==   total heap usage: 157 allocs, 138 frees, 7,929,963 bytes allocated
==89246==
==89246== LEAK SUMMARY:
==89246==    definitely lost: 0 bytes in 0 blocks
==89246==    indirectly lost: 0 bytes in 0 blocks
==89246==      possibly lost: 2,736 bytes in 9 blocks
==89246==    still reachable: 66,504 bytes in 10 blocks
==89246==         suppressed: 0 bytes in 0 blocks
==89246== Rerun with --leak-check=full to see details of leaked memory
==89246==
==89246== For lists of detected and suppressed errors, rerun with: -s
==89246== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

I think this is a good hint, maybe the splice operation is trying to extend a file mapping and failing somehow? I might not have time to track down the bug until next week, maybe you know what the problem is just from this 😄

Funny, I think if the size of the sample input is 1048576 (rather than 1048577), it no longer reproduces... that can't be a coincidence? (1048576 is 0x100000).

Hehe :)
I think you're implying this perfect code is buggy? :)
Lemme take a look

I think the bug is here: https://github.com/google/honggfuzz/blob/master/input.c#L147
It should be locked, when called (the whole rewinddir logic).
Try temporarily to change
        if (entry == NULL && rewind) {
            if (!input_getDirStatsAndRewind(run->global)) {
                LOG_E("input_getDirStatsAndRewind('%s')", run->global->io.inputDir);
                return false;
            }

with simply
     rewinddir(run->global->io.inputDirPtr);

and I'll work on a proper fix

Confirmed, I don't see any crashes with that change after a few minutes!

Thanks and happy fuzzing!

Thanks! BTW, is it correct that _HF_INPUT_MAX_SIZE is so small by default? The documentation says it should be 128MB, but I don't think that's true...
        Maximal size of files processed by the fuzzer in bytes (default: 134217728 = 128MB)

The assumption was that fuzzing files >1MB makes little sense with feedback enabled. And the default maximum size (given no bigger files in the input corpus) is anyway 8KiB.
Keeping it at 128MiB made files in the dynamic corpus grow in size randomly to huge values, b/c adding a lot of random bytes at the end didn't typically lower coverage. So, the decision was made by me to limit it to 1MiB as the lesser of the evils.
In order to raise it to something way bigger we'd need like 3 size limits.

Maximum size given no bigger files in the corpus exist (8 KiB)
Maximum default size limit (1 MiB) given that files >8KiB exist in the input corpus
Maximum size limit defined by users' -F

And that's getting too convoluted -  I'll re-think it, but you can safely change _HF_INPUT_MAX_SIZE to sth bigger for now.


Contributors

Description
Added contributors page
closes #383  New Page for Contributors
Important Note
You need to add GitHub public access token key in the contributor.js file to get the contributor's data.
Output
https://github.com/Bookingjini-Labs/bookingjini-icons/assets/86224794/e812fb68-7b39-4087-b5e6-3062e42fc6d1

The API is not working.

Check the network tab for the error message.

You need to first generate the GitHub access token key and add it to the contribute.js file.
Here 👇🏻👇🏻

Once you created the environment variable in the deployment, let me know the variable name and I'll add it to the code and then the code will work.

Hello @AshutoshDash1999 , what about this PR progress, do I need to change something??

@AlfiyaSiddique can you DM me on Linkedin, your LinkedIn account link in your profile is broken. I will share the variable name over there.

@AlfiyaSiddique can you DM me on Linkedin, your LinkedIn account link in your profile is broken. I will share the variable name over there.

Here it is @AshutoshDash1999
https://www.linkedin.com/in/alfiya-siddique-987a59240/
Thanks for letting me know about my profile link. 👍🏻

Hey @AshutoshDash1999
Please review this PR. It worked!!

Hello @AshutoshDash1999
I have implemented the API, it's working, please review this PR

nice work 👍


Add missing function to dmae/mem.h:

add function DMAEFillMemPhys

With documentation? Merge bait, I swear.


DEV: Fix SemanticRelated module load error

Followup 2636efcd1bf6eaa0a6d0d868affb9d41d49bdda2,
whenever ruby code was changed locally this would break
module loading, giving an "uninitialized constant
DiscourseAi::Embeddings::EntryPoint::SemanticRelated" error.

I guess we should have a trivial test here, maybe just make an http request as a crawler and see what happens, a bit annoying cause we need to add mock data to semantic related, but seems feasible.

@SamSaffron I will take a shot at adding a spec, I see there are crawler-based topic specs in core :+1:


feat(intro): Add MySQL description.

Issue:
What I did
How to test

Deploy preview ready!
Built with commit 74d044423d29cd139e29114a7bc003bd03ebe6f4
https://deploy-preview-455--mcs-lite-introduction.netlify.com

Deploy preview ready!
Built with commit 74d044423d29cd139e29114a7bc003bd03ebe6f4
https://deploy-preview-455--mcs-lite-ui.netlify.com

Deploy preview ready!
Built with commit 74d044423d29cd139e29114a7bc003bd03ebe6f4
https://deploy-preview-455--mcslite.netlify.com


P4 80x40 pixel 1/10 scan

Hello!
I've got some led's on the 1/10 outdoor panel (80x40 pixel) running, but the rows are not fired correctly.
The panel has 60x ICN2037 and 8x ICN2012.
Is there a trick to setup the adressing mode for 1/10 scanrate?

Hi!
Your matrix is a tricky case. Firstly, most libraries do not support 80x40, since it is quite rare. Although, in general terms, the operation of this matrices is similar to 64x64 or 128x64 - they also have 5 address lines A-E.
Secondly, a standard 80x40 matrix has 1/20 scans, and you have 1/10. This means that the LEDs in your matrix are connected in a non-standard way.
If you have one such matrix, then you probably shouldn’t waste time and it’s easier to buy something more common.

Yeah, you are absolutly right - using those very cheap chineese outdoor panels that have zero support/documentation is a waste of time.
But, i did not give up and invested a whole day in this (reverse engineer schematics, write new driver, etc.) and got it working now with simple parallel bit-banging on a nodemcu-esp32.
And the led's are really bright...

Good job, is it 160x20 internally? Did you modify the library?

is it 160x20 internally?

Very interesting question.  I hope @tom3f tells us
@ergindemir
160x20 - Do you mean 80px of one row first and then 80px of the other?
But I don't think so. Outdoor panels almost never use this type of connection. In this case, there would be too long tracks on the board. Usually, in multi-row matrices, diodes are combined by 8 or even 4. That is, first there are 8 pixels of the first row, then 8 of the second. Moreover, the directions of traversal of pixels in these sets of 8 can be different, say the first 8 are from right to left, the next ones are from left to right, and so on

Good job, is it 160x20 internally? Did you modify the library?

The resolution is 80x40 pixel.
No, i'm not using this library.
To understand how such a display (it's my first :blush:) works I've painted a (incomplete) schematic : P4_80x40_10S.pdf
Maybe it helps to adapt the library.

is it 160x20 internally?

The resolution is 80 x 40.

Did you modify the library?

No, i'm not using this library.
To understand how such a display works (it's my first 😊) I've painted a (incomplete) schematic : P4_80x40_10S.pdf
Maybe it helps to adapt the library.

Thank you @tom3f
As I see in the schematics - note the inscriptions on the outputs of driver UR1 - a zigzag scan of 8 pixels is used here. Each driver outputs 8 pixels in one row with indices from 0 to 7 first, then 8 in the row below in reverse order - from 7 to 0


Extra labels support

What this PR does / why we need it:
Enabling support for extra labels so secure Redis will allow a connection.

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign @paulczar

/ok-to-test
/lgtm

/retest


Add a license to the repository

I recently came across your project qiskit-exercise and I noticed that the repository github.com/Ares16x16/qiskit-exercise currently does not have a license specified.
Why Adding a License is Important?
As GitHub documents

Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you'll need to license it so that others are free to use, change, and distribute the software.

Would be possible to add a valid license to this repository? Probably something really OpenSource such as the Apache 2.0 license would fit really well.
Thanks!

Thank you for your issue, I have added a license.

thanks


Add asset id collection folder

Create branch from main
issue-5-add-asset-id-collection-folder

Create branch from main
issue-5-add-asset-id-collection-folder-1


[TASK] Batch all substrate calls (and all EVM calls possible)

Overview
On the nomination page of Tangle dApp we don't seem to be leveraging utility.batchAll enough to batch calls to save transaction fees. This should be done for every possible flow.
List of calls (not exhaustive)

[x] Nominate (bond and set validator prefs)
[ ] Payouts (payout for as many eras)

Note: Transaction batching was implemented on https://github.com/webb-tools/webb-dapp/pull/2189 for all appropriate transactions that use it (ie. setup nominator, payout stakers), but waiting for the payouts PR to be merged in order to test it with the new/updated payouts functionality.

Reassigned to you @devpavan04

Closing this issue as it has been implemented in PR #2189 and tested successfully in PR #2335.

Will be testing this briefly and then it's ready to close.


chore: upgrade storybook

Since we need to add support for TypeScript, I think it is better to upgrade to SB6 now, since this version comes with out-of-box TypeScript support.
Changes proposed in this PR:

Upgrade to Storybook 6
Fix compatibility issues
Update ESLint config

this is the only problem that I found

this is the only problem that I found


Sidebar doesn't autoscroll to the selected item

When the user follows a link (for example click https://api3dao.github.io/api3-docs/next/grp-providers/protocols/request-response/designated-wallet.html from an external page) the sidebar should automatically scroll to make the current page visible.

I guess this is not an issue if the sidebar doesn't grow too long

Just wanted to note that I looked into this. Autoscroll behavior is not part of the VuePress sidebar in v1. I checked VuePress v2 now in beta 4 and the behavior is the same.
The sidebar does highlight the new file but leaves the sidebar position as the user left it. No sure why they have chosen this behavior.


fix: Update link in README to multi-region examples

Use proper link to example with multi-region usage.

This PR is included in version 1.4.1 :tada:


Compilation on Apple Silicon

Hi, great take with this package!
I tried recompiling the objects myself since I'm on ARM and the building script provided throws:
~/GitHub/py-js/source/py/pyjs.c:5:10: fatal error: 'Python.h' file not found #include <Python.h>          ^~~~~~~~~~ 1 error generated.
I also tried regenerating the build files using cmake -g Xcode which gives the following error:
-- Updating Git Submodules building on Git rev : 259e877 Git tag : pre-release0 Generating Info.plist Generating: pymx -- Min-Lib found CMake Error at source/projects/pymx/CMakeLists.txt:10 (find_package):   By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this project has   asked CMake to find a package configuration file provided by "pybind11",   but CMake did not find one.   Could not find a package configuration file provided by "pybind11" with any   of the following names:     pybind11Config.cmake     pybind11-config.cmake   Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set   "pybind11_DIR" to a directory containing one of the above files.  If   "pybind11" provides a separate development package or SDK, be sure it has   been installed. -- Configuring incomplete, errors occurred!

I haven't yet compiled on Apple Silicon and it looks like you are trying to compile the min-dev external (read the README if this not intentional), but it looks like you don't have pybind11 installed.
You can try the following:
brew install pybind11

and
pip install pybind11

Also make sure to check the architecture specified in Xcode is compatible for arm64 (which is included in the the standard setting for Xcode, I believe). See this, if this is unclear.

Unfortunately even after installing pybind11 it seems like the issue if building via script persists.
I have tried compiling with both Xcode and CMake, I'm positive the architecture is set to universal (both ARM and intel), still both throw the same error:
FAILED: ../externals/pymx.mxo/Contents/MacOS/pymx  : && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk -mmacosx-version-min=10.11 -bundle -Wl,-headerpad_max_install_names @~/GitHub/py-js/source/min-api/script/../max-api/script/max-linker-flags.txt @~/GitHub/py-js/source/min-api/script/../max-api/script/msp-linker-flags.txt -o ../externals/pymx.mxo/Contents/MacOS/pymx source/projects/pymx/CMakeFiles/pymx.dir/pymx.cpp.o -F~GitHub/py-js/source/min-api/max-api/lib/mac -Wl,-rpath,~/miniforge3/lib  -framework  JitterAPI  ~/miniforge3/lib/libpython3.9.dylib && cd ~/GitHub/py-js/cmake-build-debug/source/projects/pymx && cp ~/GitHub/py-js/source/min-api/max-api/script/PkgInfo ~/GitHub/py-js/source/projects/pymx/../../../externals/pymx.mxo/Contents/PkgInfo ld: warning: ignoring file ~/GitHub/py-js/source/min-api/max-api/lib/mac/JitterAPI.framework/JitterAPI, missing required architecture arm64 in file~/GitHub/py-js/source/min-api/max-api/lib/mac/JitterAPI.framework/JitterAPI (2 slices) Undefined symbols for architecture arm64:   "_jit_class_addattr", referenced from:       c74::min::attribute<std::__1::vector<double, std::__1::allocator<double> >, (c74::min::threadsafe)0, c74::min::limit::none, (c74::min::allow_repetitions)2>::create(c74::max::t_class*, void* (*)(void*, ...), void* (*)(void*, ...), bool) in pymx.cpp.o       c74::min::attribute<std::__1::vector<int, std::__1::allocator<int> >, (c74::min::threadsafe)0, c74::min::limit::none, (c74::min::allow_repetitions)2>::create(c74::max::t_class*, void* (*)(void*, ...), void* (*)(void*, ...), bool) in pymx.cpp.o       c74::min::attribute<c74::min::symbol, (c74::min::threadsafe)0, c74::min::limit::none, (c74::min::allow_repetitions)2>::create(c74::max::t_class*, void* (*)(void*, ...), void* (*)(void*, ...), bool) in pymx.cpp.o ld: symbol(s) not found for architecture arm64

My checkouts of min-api and min-lib dependencies (as git submodules) may be dated so suggest to try the following:
First update min-api
cd py-js/source/min-api
git checkout master
git pull

then update min-lib:
cd py-js/source/min-lib
git checkout master
git pull

Then try to compile again.

After doing the above what I'm getting is an error caused by min-api, JitterAPI.framework to be specific.
It might be on cycling this time I suppose.
[build] Starting build
[proc] Executing command: ~/miniforge3/bin/cmake --build ~/GitHub/py-js/build --config Debug --target all -j 10 --
[build] Consolidate compiler generated dependencies of target pymx
[build] [  0%] Built target LIB
[build] [ 50%] Building CXX object source/projects/pymx/CMakeFiles/pymx.dir/pymx.cpp.o
[build] In file included from ~/GitHub/py-js/source/projects/pymx/pymx.cpp:7:
[build] In file included from ~/GitHub/py-js/source/min-api/script/../include/c74_min.h:10:
[build] In file included from ~/GitHub/py-js/source/min-api/script/../include/c74_min_api.h:393:
[build] ~/GitHub/py-js/source/min-api/script/../include/c74_min_timer.h:126:129: warning: implicit conversion of NULL constant to 'short' [-Wnull-conversion]
[build]                     s_timer_impl_class = max::class_new(timer_impl_name, (max::method)0, (max::method)0, sizeof(timer_impl), 0, NULL);
[build]                                          ~~~                                                                                ^~~~
[build]                                                                                0
[build] 1 warning generated.
[build] [100%] Linking CXX CFBundle shared module ../../../../externals/pymx.mxo/Contents/MacOS/pymx
[build] ld: warning: ignoring file ~/GitHub/py-js/source/min-api/max-api/lib/mac/JitterAPI.framework/JitterAPI, missing required architecture arm64 in file ~/GitHub/py-js/source/min-api/max-api/lib/mac/JitterAPI.framework/JitterAPI (2 slices)
[build] Undefined symbols for architecture arm64:
[build]   "_jit_class_addattr", referenced from:
[build]       c74::min::attribute<std::__1::vector<double, std::__1::allocator<double> >, (c74::min::threadsafe)0, c74::min::limit::none, (c74::min::allow_repetitions)2>::create(c74::max::t_class*, void* (*)(void*, ...), void* (*)(void*, ...), bool) in pymx.cpp.o
[build]       c74::min::attribute<std::__1::vector<int, std::__1::allocator<int> >, (c74::min::threadsafe)0, c74::min::limit::none, (c74::min::allow_repetitions)2>::create(c74::max::t_class*, void* (*)(void*, ...), void* (*)(void*, ...), bool) in pymx.cpp.o
[build]       c74::min::attribute<c74::min::symbol, (c74::min::threadsafe)0, c74::min::limit::none, (c74::min::allow_repetitions)2>::create(c74::max::t_class*, void* (*)(void*, ...), void* (*)(void*, ...), bool) in pymx.cpp.o
[build] ld: symbol(s) not found for architecture arm64
[build] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[build] make[2]: *** [../externals/pymx.mxo/Contents/MacOS/pymx] Error 1
[build] make[1]: *** [source/projects/pymx/CMakeFiles/pymx.dir/all] Error 2
[build] make: *** [all] Error 2
[build] Build finished with exit code 2```

Ok, looks like this requires a non-trivial solution as cycling74 seem to have changed their build configuration systems for max-sdk, min-api, etc.  In the case of min-api which is required by the subproject which you are trying to build here, there are even further changes: the sole example now available (https://github.com/Cycling74/min-api/tree/main/examples/min.conan) includes a CMakeLists.txt which itself refers to another cmake-based build system called conan (see https://github.com/conan-io/cmake-conan).
This means the old  CMakeLists.txt in pymax is not compatible and needs to be rewritten to use cmake-conan
Unfortunately, I don't have the time to make and test the above changes right now, and will have to revisit the topic of Apple Silicon compatibility when the opportunity arises.
Feel free to try to blend the old CMakeLists.txt and the new one though as this may be easier than it looks.
S

Ok, I've managed to investigate this a bit further. It looks like the external cpp-based compilation infrastructure from Cycling 74 isn't quite fully Apple Silicon compatible yet. (I can't comment on the  c-api max-sdk's status, since I haven't test it yet).
In any cases, for the case at hand, on my new M1 MacBook Air, I failed to compile the demo projects in https://github.com/Cycling74/min-devkit which contain min-api and min-lib and which are the basis for the cpp-based external api which pymyx uses. This means the default compile isn't working at all.
I tried the same for pymx in this project with updated min-api and min-lib libraries as well as the latest CMakeLists.txt from the min-devkit project and I also was not able to compile.
So it looks like the problem is with Cycling's cpp's SDK. It just isn't working well for Apple Silicon right now.
My advice then is to just wait a bit as these libraries from Cycling74 get some attention and get to work on the new platforms.

I have started a new branch m1 which aims to provide apple silicon compatibility.

Hi, big up for investigating this issue!
I tried building from the new branch and what I get now is the following linker error:
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../externals/py.mxo/Contents/MacOS/py] Error 1
make[1]: *** [source/projects/py/CMakeFiles/py.dir/all] Error 2
make: *** [all] Error 2
~/GitHub/py-js

Yup, it's not ready yet for sure. It's developing in fits and spurts so to speak. The challenge in this branch is that there are two goals: achieve Apple Silicon compatibility and converting (completely) to cmake as a build system.
What you have experienced is literally my first attempt to go for broke in my first iteration and hit both goals at the same time. As you can see it didn't quite work 😬
In addition, you may have noticed that I also departed from the suggested way for macOS by removing Xcode project generation from the compilation chain and trying to do it in cmake alone.
I now realize, of course, that this is a fool's errand, especially in the initial iteration.
Until I get round to another round of 'go-for-broke' development, may I suggest that you try the last step differently and actually follow the advice from cycling74, which I will quote hereafter almost verbatim:
cd ~/py-js

Make a directory called build and navigate to that directory
mkdir build && cd build

Build the projects on Mac:
cmake -DC74_BUILD_FAT=ON -G Xcode ..

Open the generated project files and build in Xcode
Note: If you are running on a Mac M1 machine, you will likely see an error cannot be loaded due to system security policy when loading your externals in Max.
To resolve this, you can ad-hoc codesign your external with codesign --force --deep -s - py.mxo

Hi @wwerk / @omarcostahamido
In case you are interested, I have just pushed some final changes which get py-js externals to compile successfully on arm64 machines:
py-js % make test
>>> cleaning externals
>>> cleaning support directory
>>> cleaning build directory
>>> running all tests
>>> builder test

running 'make default'
default [######################################################] 100% in 0:00:02
  └-> SUCCESS: 2 out of 2 builds OK

running 'make homebrew-pkg'
homebrew-pkg [#############################] 100% in 0:00:04 - 0:00:00 remaining
  └-> SUCCESS: 2 out of 2 builds OK

running 'make homebrew-ext'
homebrew-ext [#################################################] 100% in 0:00:03
  └-> SUCCESS: 2 out of 2 builds OK

running 'make shared-pkg'
shared-pkg [###############################] 100% in 0:02:08 - 0:00:00 remaining
  └-> SUCCESS: 2 out of 2 builds OK

running 'make shared-ext'
shared-ext [###############################] 100% in 0:02:00 - 0:00:00 remaining
  └-> SUCCESS: 2 out of 2 builds OK

running 'make static-ext'
static-ext [###############################] 100% in 0:02:51 - 0:00:00 remaining
  └-> SUCCESS: 2 out of 2 builds OK

running 'make framework-pkg'
framework-pkg [############################] 100% in 0:02:13 - 0:00:00 remaining
  └-> SUCCESS: 2 out of 2 builds OK

running 'make framework-ext'
framework-ext [#######################     ] 80% in 0:02:04 - 0:00:32 remaining
  └-> SUCCESS: 2 out of 2 builds OK

running 'make relocatable-pkg'
relocatable-pkg [##############            ] 53% in 0:00:19 - 0:00:17 remaining
  └-> SUCCESS: 2 out of 2 builds OK

py-js % arch
arm64

I haven't released any arm64 python3 externals yet but should do shortly.
Before I do, If any of you have an apple silicon machine, can you please git clone the project, make setup then make test to run the test suite.
Cheers.

Seems to build fine on my M1, nice one!

@wwerk That's great, thanks for testing! 😄

FYI @wwerk and @omarcostahamido
Just released a code signed and notarized statically compiled set of arm64 py-js externals in the 0.1 release.
These are appropriate for distribution in standalone and Max packages

Seems to be working nicely!
Now time for me to dig through the documentation and figure out importing modules :)


Placing is directional

When standing on a single block with no blocks below you can:
-continuously place blocks without shifting in an East and South direction without falling.
-You cannot do this exact same thing when going in North or West directions

I noticed the same problem.

Issue is now resolved on the latest version that came out today


Prometheus targets down

When Prometheus scrape pods on different nodes, metrics are not collected. "<Prometheus_server_ip>:9090/targets" shows the target (Pod or Endpoint IP) is down. However, connections (curl) between those two pods exist.
target down reason "context deadlines exceed"

the issue is it took around 4s to retrieve the data from one gpu cluster that is located in Santa Clara. Has switched the gpu cluster with Zhaobo and issue fixed.


fix original typesetter's errors to reproduce cummings' manuscript

fix original typesetter's errors to reproduce cummings' manuscript (MS Am 1823.5 (359) Houghton Library, Harvard University)

http://cummingsarchive.org/?page_id=590

Thank you for the submission. You're raising one of the most difficult issues for me as the maintainer. When there are multiple version of a poem published, which is the proper one to feature on this site?
Here, scanned by the Hathi Trust, you can see how the poem appeared in the first edition.

While I might not have nailed it perfectly in the transcription, what's in the file now is closer to what's pictured above, which is, strictly speaking, the text that has entered the public domain.
My first instinct is that this archive should try to stay faithful to the original published works, but in some other cases already I have made some slight changes to correct typos and punctuation errors identified by Cummings scholars, using the comprehensive Norton anthology as my guide. One of the advisors who suggested this policy to me is, funny enough, the maintainer of the archive site you cite.
I suspect that, small typos on my part aside, this is ultimately a philosophical issue about how this archive should approach the competing source materials. Situations like this one, which I was unaware of, help to better flesh out the issue.
What's your view on how it ought to be approached?

The formatting associated with this pull request is consistent with Liverwright's Complete Poems, but it is significantly different from how it appeared in the first edition.
I do think we should find some space for what appears to be cummings' intended form. That may mean adding an additional entry or perhaps a larger change to allow multiple versions of the same poem within the same yaml file?

I'm all for being as comprehensive as possible. What's unclear to me is the copyright status of a draft version. Right now, only works published through 1925 are public domain. Does the copyright clock for a variation start when the original was published, or when was the variation first appeared?


ValueError during Robust Merging for Sulfur SAD

I set up the careless to colab.
After successful installation of careless, when I run this,
!careless mono
--studentt-likelihood-dof=16
--anomalous
--disable-image-scales
--merge-half-datasets
--iterations=30_000
"BATCH,dHKL,Hobs,Kobs,Lobs,XDET,YDET,BG,SIGBG,LP,QE,FRACTIONCALC"
unmerged.mtz
merge/studentt/hewl
I face this ValueError.
Traceback (most recent call last):
File "/usr/local/bin/careless", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/careless/careless.py", line 9, in main
run_careless(parser)
File "/usr/local/lib/python3.8/dist-packages/careless/careless.py", line 88, in run_careless
for file_id, ds_train in enumerate(dm.get_predictions(model, train)):
File "/usr/local/lib/python3.8/dist-packages/careless/io/manager.py", line 101, in get_predictions
ipred,sigipred = model.prediction_mean_stddev(inputs)
File "/usr/local/lib/python3.8/dist-packages/careless/models/merging/variational.py", line 73, in prediction_mean_stddev
f4 = q.moment_4(method='scipy')
File "/usr/local/lib/python3.8/dist-packages/careless/models/merging/surrogate_posteriors.py", line 97, in moment_4
return self._scipy_moment_4(high)
File "/usr/local/lib/python3.8/dist-packages/careless/models/merging/surrogate_posteriors.py", line 81, in _scipy_moment_4
mom4 = truncnorm.moment(4, a, b, loc, scale)
File "/usr/local/lib/python3.8/dist-packages/scipy/stats/_distn_infrastructure.py", line 1274, in moment
if not (self._argcheck(*args) and (scale > 0)):
File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/framework/ops.py", line 1070, in bool
return bool(self._numpy())
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Generating these files for output.
checkpoint
hewl_0.mtz
hewl_data_manager.pickle
hewl_history.csv
hewl_scale.data-00000-of-00001
hewl_scale.index
hewl_structure_factor.data-00000-of-00001
hewl_structure_factor.index
Leaving these two files ungenerated
hewl_predictions_0.mtz
hewl_xval_0.mtz
How to solve this problem?

Hi @gyuhyeokcho,
Thanks for this issue! I have to confess that I had never tried to run careless on Colab before. So, this was a bit of a blind spot for me. However, I was eventually able to replicate your issue.
I learned that careless tends to be tested against fairly current versions of scipy compared to what is provided by default on Google Colab. In order to run correctly, I found I had to upgrade scipy before calling careless. The following commands worked for me on Colab:
!pip install --upgrade pip
!pip install --upgrade scipy
!pip install careless
!git clone https://github.com/rs-station/careless-examples
!mkdir -p merge/studentt
!careless mono \
--studentt-likelihood-dof=16 \
--anomalous \
--disable-image-scales \
--merge-half-datasets \
--iterations=30_000 \
"BATCH,dHKL,Hobs,Kobs,Lobs,XDET,YDET,BG,SIGBG,LP,QE,FRACTIONCALC" \
careless-examples/hewl_ssad/unmerged.mtz \
merge/studentt/hewl

Let me know if it works for you, and I will close this issue.

It worked for me as well!


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2027

Questions ?
Please refer to the Backport tool documentation


sf2.js does not read global value.

SoundFont Parser does not read the global setting value for each instrument.
As a result, some musical instruments are out of tune or have problems such as sound being stuck.

For the time being, I took measures to define the default value on the sf2.js side.
https://github.com/logue/sf2synth.js/commit/bd2ee5d7f1a1843a087b81f872cdf17cb7a07483


Playground Runtime Version

Did you search for the problem in other open issues in this repo?
Yes.
Tell us about the problem
It would be nice to have a feature where you could specify the runtime version that the Preview app uses.  I know the Playground is more of a "getting started" tool, but as the sole developer I have found the Playground to be a great way to deploy the app to our graphic designer and other employees (non tech-savvy) for their feedback during development without having to to through the play and app stores (they just need to scan a QR code and viola!).  The latest update from runtime version 4.2.0 to 5.0.0 really messed things up for my app on the iPhone in particular.  There seems to be no convenient way for me to have them go back to the Preview app version 1.16.0 that used the 4.2.0 runtime.  This would be a great feature.
Did you try it outside of {N} Playground?
No.  I'm not sure what the best alternatives for getting my app onto their phone in the development stage are.  We are not physically located in the same place.  For Android I suppose I could compile an APK and store it in a shared location, but most of the team has iPhones anyway.  Any alternatives to the Playground for my use case would be welcomed.
Which browser are you using?
Chrome
Are there any errors/warnings logged in your browser console?
No.
Which platform(s) does your issue occur on?
The update from 5,0.0 mostly impacted the iOS version, but there were a few Android problems I found.  One is already been logged as a bug: https://github.com/NativeScript/NativeScript/issues/6511
Are there any entries logged in the Device Logs tab?
Not relevant.
Please provide the following information shown in devices tab in the playground:
iPhone 6
iOS 12.1.0
Preview 1.16.0
Runtime 5.0.0
SM-G965U
Android 8.0.0
Preview 1.16.0
Runtime 5.0.0
SM-G920V
Android 7.0
Preview 1.15.1
Runtime 4.2.0
Please tell us how to recreate the issue with as much detail as possible.
My app is in active development with a lot of the security features yet to be developed (only using internally).  It is not a specific problem with the app.  The main problem is to not be at the mercy of the currently pushed runtime.  A setting to specify the runtime is what I am asking for.  This hasn't been a concern with the minor upgrades, but the push from 4.2 to 5.0 has had a big impact.  In general I wait to use any major updates until they've been in use for a while.

Unfortunately the NativeScript runtime is currently not designed to be hot swapped without recompiling the application. And such changes are quite difficult to be made to an application that is already deployed in the AppStores.


Move to ABAPGit / Compatibility with NetWeaver Development System

Referring to https://github.com/epeterson320/ABAP-Logger/issues/10

ABAPGit:

Moved the project to ABAPGit
Changed the Installation section to referring to ABAPGit in the README.MD

Compatibility with NetWeaver Development System:

Created a compatible local type of hrpad_message
Adapted the test cases. There were errors due to unavailable data dictionary types and message classes.

This looks good. There's a lot of pretty-printing going on in a3a921f, so the actual changes weren't immediately clear. Nonetheless you've done the project a great service in getting this big chore done. Thanks so much, Andreas!


fix: return the whole data buf

ref: https://github.com/longhorn/longhorn/issues/6899
What this PR does / why we need it:
When sending the batch with the interval, we allocate the buf with the batch size (interval size) and read data from the volume into it.
Then we send the buf as the data with the interval information to the target volume to write the data in that interval
We should not cut the data with the count we actually read from volume because that would be incorrect in the below example
Assuming we have a Volume and a snapshot chain
0 nil
1 BackingImage [0:2MB]
2 Snapshot1 [0:16MB]

We write some data to the Volume [3MB:4MB]

When we are exporting the Volume with block size 2MB,
the preload index map will indicate that for [2MB:4MB] data
[2MB:3MB] should be read BackingImage
[3MB:4MB] should be read from snap1

Then since [2MB:3MB] is out of the bound of BackingImage,
we can't read the volume and the read count will be 0
[3MB:4MB] has the data and the read count would be 1MB

So the `buf` we read from the volume will be [0,0,0,.....0, x, x,x, ..., x]
If we cut the return data with the count, then we only get 1MB of [0,0,0,...,0]

Special notes for your reviewer:
This function is a util function used in all sync content related feature.
I think if we test volume clone feature with volume expansion we might encounter the same issue.
Additional documentation or context
cc @shuo-wu @PhanLe1010

Test is now running...
core e2e test: https://ci.longhorn.io/job/private/job/longhorn-tests-regression/6002/console

Test is now PASSED
https://ci.longhorn.io/job/private/job/longhorn-tests-regression/6002/

I would like to review this PR but currently working on a support case. Will review it soon today.

cc @james-munson Do you have experience with the convention about the behavior when reading a block device outside of its size? Is it common to return n bytes of 0s and nil error?

I am thinking if we are now returning the correct count even the BackingImage is smaller than Volume
We don't need this PR anymore
Furthermore, since the ReadAt semantic is aligned to the golang io ReadAt, we need to consider err==EOF, and only return valid data
n, err := rw.ReadAt(data, dataInterval.Begin)

we should keep the original code to cut the data with valid count.
WDYT? cc @shuo-wu @derekbit @innobead