Doc comment specification

Please refer to https://github.com/SPGoding/datapack-language-server/wiki/IMP-Doc.
THE FOLLOWING CONTENT IS OUTDATED
THE FOLLOWING CONTENT IS OUTDATED
THE FOLLOWING CONTENT IS OUTDATED
Doc comments are a way to describe a function or a user-defined value for both human and DHP.
There are two types of doc comments: the one for function and the one for user-defined stuff.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED",  "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Function Doc Comments
Function doc comments MUST be put at the very beginning of a function file.
A doc comment MUST begin with #> instead of #. You MAY put several spaces ( ) or tabs (\t) before or after the beginning symbol. You SHOULD put the function's namespaced ID after this symbol. This ID can be used to perform rename operations, show call hierarchy, and many other features provided by DHP.
It's RECOMMENDED to put other comments after this line to describe the function, usage, and any other related stuff of this function, beginning with #. You MAY put several white spaces ( , \t, \r, \n, or \r\n) before or after these symbols too. Any lines that are not beginning with # (e.g. an empty line, a command, etc.) or are define comments (#define <type> <id>) will break the doc comments at that position.
You MAY use annotations which start with @ to help describe your function, showed below.
Here is an example of a function doc comment.
#> minecraft:foo
# This function is used to balabala.
# Balabala.
# Balabala.
# @author SPGoding
# @input score #foo params <description of #foo parameter>
# @input
#     score #bar params
#     <description of #bar parameter>

# But don't break the streak of `#`s. For instance, there is an empty line before this line, so this line will not be considered as part of the doc comment.

Annotations
Here's a full list of annotations that you can use within your function doc comment. All parameters in the annotation should be seperated with at least one white space. ... indicates that this argument will eat all the characters until the end of this doc comment or encounters another annotation.

Type
Syntax
Description

author
@author <string...>
The author of this function.

context
@context <string...>
The execution context of this function.

deprecated
@deprecated [<reason...>]
This function is deprecated. This annotation affects the semantic coloring token modifier for this namespaced ID.

handles
@handles <namespaced_id> [<namespaced_id>, ...]
Marks this function as an event handler.

override
@override
Indicates that this function overrides a function intentionally. If noImplicitOverride is set to true in the config (defaults to false), unmarked override will trigger a warning.

patch
@patch
The same as @override.

input
@input data (block|entity|storage) <id> <path> [<description...>]
Defines an NBT data input of this function. The <id> part will be treated as a private declaration automatically, and will be used to provide completions in this function file. (Still WIP. See #319 for access modifier proposal.)

input
@input score <score_holder> <objective> [<description...>]
Defines a score input of this function. The <score_holder> part will be treated as a private declaration automatically, and will be used to provide completions in this function file. (Still WIP. See #319 for access modifier proposal.)

output
@output data (block|entity|storage) <id> <path> [<description...>]
Defines an NBT data output of this function. The <id> part will be treated as a private declaration automatically, and will be used to provide completions in this function file. (Still WIP. See #319 for access modifier proposal.)

output
@output score <score_holder> <objective> [<description...>]
Defines a score output of this function. The <score_holder> part will be treated as a private declaration automatically, and will be used to provide completions in this function file. (Still WIP. See #319 for access modifier proposal.)

private
@private
WIP. See #319 for access modifier proposal.

within
@within <namespaced_id> [<namespaced_id>, ...]
WIP. See #319 for access modifier proposal.

internal
@internal
WIP. See #319 for access modifier proposal.

public
@public
WIP. See #319 for access modifier proposal.

custom
@<custom_annotation_name> [<parameters...>]
Custom annotations.

Other Doc Comments
Doc comments for other user-defined stuff are similar to function doc comment, but with these differences:

You SHOULD NOT write anything other than white spaces after the beginning #> symbol.
Only author, deprecated, private, within, internal, public, and custom annotations work.

The doc comment MUST be write right before the corresponding stuff. Here are several working examples:
#>
# Balalala.
# @internal
scoreboard objectives add test dummy

#>
# Alalalab.
# @deprecated
# @within spgoding:
#define entity SPGoding

Reference: Arcensoth's IMP Function Documentation Format.

I have a habit of using annotations like these in larger, complex packs, and an IDE feature to support them directly would be unreal. (I even considered this for language-mcfunction block comments but decided it was too complex for the extension's scope.) I decided to write it all down somewhere to help formalize it:
https://github.com/Arcensoth/datapacks/blob/master/impdoc.md
It hasn't been updated to 1.15 yet (storage) and the format is a bit different from yours, but maybe it can give you some ideas.

What IDE supports can be provided regard these document comments?
The only two things I could come up with are completions and hover information.

Yeah, hover information would be a huge plus. Completions could also be useful but I can't think of how the user would initiate them.
Here's another one for arguments specifically. Perhaps a warning over the function call if you have not defined the required arguments in the current scope. A bit verbose, maybe, but I'd argue that anyone who wants to use this type of feature has likely already committed to this level of verbosity. In case an argument is defined outside the current scope (for example by another function), it would be useful to have a special type of comment that notifies the language server that the argument is known to be defined elsewhere.

:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Testing svprimlit

The final SvPrimaryLitteral derived by the addition methods should have the value expected as well as the minimum number of bits that are required in order to represent it.
IMPORTANT: Although the whole implementation can be utilised in any computer architecture (e.g 32-bit, 64-bit), the test cases have been created for a 64-bit system due to the fact that the expected results are stored in a txt file.
ASSUMPTION: All methods derived for SvPrimaryLiteral assume that the operands have the correct number of vector of elements required in order to represent the stored (e.g. not more) and the number of bits is accurately set. Then the methods are implemented in such a way that ensures that the same will apply for the final result derived.

I just added the implementation for testing all the methods created for SvPrimaryLiteral and I will start working on additional testcases.

A bugfix was implemented for the truncate method. Moreover testcases were added for signed addition (pos + neg).

Added testcases for signed and unsigned addition.

Temporary tests from main.rs need to be rm.

Added test case for _prim_lit_vec_elmnt_match.

Added test cases for _signed_matched_sign_extension.

Added test cases for _signed_sign_extension.

Added test cases for _neg_value_num_bit_minimizer.

Added new implementation and test cases for fn "_truncate_size"

The other 2 PRs are incorporated in this PR (that's why they were closed) which is ready to be merged with upstream/master.

In future revisions (future PRs) additional fundamental methods will be added which will follow the agreed notation. At the same time the current implementation will be renamed as well to follow the same notation style.


File System / Level Load Seems Slow

Tested versions
4.3 Dev
System information
N/A
Issue description
I've noticed that, compared to other engines (Unreal, Unity, Etc.), switching between mostly empty levels is slow. Likely same with the rest of the file system.
Steps to reproduce
Swap between very minimal levels in packaged project or in play.
Minimal reproduction project (MRP)
N/A

It’s prob due to the loading screen that happens between switching scenes, though does not look to be file system fault as now opening projects in 4.4 is way faster.

File access and level loading should be faster when using a build made with the production flag on


Add to cart button

button added directly to products page and functional!
may need to de-bug after merge

Bug to fix

once an item is in the cart it cannot be added again. add an if-statement so that if the item is already in the cart its quantity is incremented by one when addToCart button is hit again.


Limit Gadm suggests to a specific area

Hi @jloomisVCE
you asked a question in our webinar today. Something along "Can we limit GADM suggestions to a specific area"
I said - i think not. I was wrong - you can. The API supports it https://www.gbif.org/developer/occurrence#gadm
But that means you have to overwrite the suggest. You have already done that elsewhere in your portal as far as I remember.
To make it a bit simpler, I've just changed so that the suggest configs get merged.
function getSuggests({ client }) {
  return {
    gadmGid: {
      // how to get the list of suggestion data, before you would also have to define how to render the suggestion, but the new part I added means that below is enough
      getSuggestions: ({ q }) => {
        const { promise, cancel } = client.v1Get(`/geocode/gadm/search?gadmGid=USA.46_1&limit=100&q=${q}`); // this gadmGid=USA.46_1 is the new part, that means that the suggester will now only suggest things in Vermont
        return {
          promise: promise.then(response => {
            return {
              data: response.data.results.map(x => ({ title: x.name, key: x.id, ...x }))
            }
          }),
          cancel
        }
      }
    }
  }
}

And you would then provide that as part of the configuration under the occurrence part.
E.g. here if Colombia https://github.com/gbif/hp-colombian-biodiversity/blob/master/_includes/js/config.js#L46
occurrence: {
  ...whatever config you have here
  highlightedFilters: ['taxonKey', 'gadmGid', 'stateProvince','elevation','year', 'basisOfRecord', 'recordedBy','publishingOrg','datasetKey','datasetName','occurrenceIssue'],
  occurrenceSearchTabs: ['TABLE', 'MAP', 'GALLERY', 'DATASETS'],
  // and then the new part, the overwrites for suggests which we defined above
  getSuggest: getSuggest
}

This will not solve other issues you might have with GADM suggest such as lack of granularity and such, but please create issues with examples for those as they are best handled separately.
I will close this issue once the simplification to the overwrites is also in production

@MortenHofft Thanks I did implement this and it works. I note that I had to name the function exactly 'getSuggests' for it work work.

Great that you got it working. You can call the function whatever you want to I'm certain. As long as you also reference it as such in
https://github.com/VtEcostudies/VAL_GBIF_Wordpress/blob/7c1e9c1e931bd2421afa57550ea64caaa0f447d4/js/gbif_data_widget.js#L95
e.g. line 95 could just as well be getSuggest: anyNameOfYourFunction asn long as that is what you called your function in line 31

Yes, you're correct that my local function name can be anything! Sorry I meant to say that the object-declaration of the suggest function appears to only allow the value 'getSuggests':
...
getSuggests: getAnySuggestFunctionName,
...


Example on Vector Tile Selection not reproducible

Describe the bug
This turns out to be not reproducible for me under Firefox Developer Edition 85.0b4. The map is dipslayed but an error is thrown in the console and selection of features won't work.
To Reproduce
Steps to reproduce the behavior:

Copy index.html and main.js and run build with node.
Open built index.html.
Error in console
Assertion failed. See https://openlayers.org/en/v6.0.1/doc/errors/#28 for details.
When removing renderMode: 'vector' from the example code, the error gets replaced by:
Uncaught TypeError: s.getFeatures is not a function

In any case, selection of features won't work. I had tried this with a custom tile server and got the same error. After that, I tried the example from the web page. Turns out the error persists. This might be an error on my end but just wanted to note: Trying to style selected features of the vector tileset with this or that approach returns an error saying that setStyle is not a function.
Expected behavior
Selection of features should work, no errors should show up in the log.

Assertion failed. See https://openlayers.org/en/v6.0.1/doc/errors/#28 for details.

Looks like you are building with an old version of OpenLayers. v6.0.1? The latest is v6.5.0.

Turns out this was indeed the cause of the error. Sorry for not checking this before and thanks a lot for your help.


use jail make.conf during jail creation

Prerequisites

[x] Have you checked for an existing issue describing the issue?

I'm not sure if this is a bug, a feature request or just something I don't understand, so filing as other....
I expected jail creation to use at least /usr/local/etc/poudriere.d/<jailname>-make.conf, but it does not:
https://github.com/freebsd/poudriere/blob/master/src/share/poudriere/jail.sh#L446
This seems to have always been this way and intentional, though I'm not sure why.
Are my expectations incorrect?
Is there another way to customize CFLAGS/CXXFLAGS used during jail build than via make.conf?

I think it could be an oversight from when building jails from source was added. At this point it might be surprising to fix it. More feedback from others would help.
It makes me want to add a ports.conf too that only ports uses.

For jails from source, wouldn't we want more like -src.conf rather than make.conf?

For jails from source, wouldn't we want more like <jailname>-src.conf rather than make.conf?

We already have that.

I think having a ports.conf does sound nice, but I'm not sure that using /usr/local/etc/poudriere.d/<jailname>-make.conf in jail creation affects that.
To me the real question seems to be, is there any down side at this point to using /usr/local/etc/poudriere.d/<jailname>-make.conf in jail creation going to cause issues not or in the future?
So far I can't seem to think of a way in which it would cause issues for anyone now, or if we add a ports.conf later.

The reason I bring up ports.conf is because make.conf isn't used for source now. People may require a simple way to avoid affecting the source build with ports flags they've had in make.conf if we fix the bug.
I'll get this in for the next release.

any progress here?

I was looking for this option and for now looks like I can add NO_MODULES= in -src-env.conf and it works. Need to test some more flags and how they add up without make.conf.

I was looking for this option and for now looks like I can add NO_MODULES= in -src-env.conf and it works. Need to test some more flags and how they add up without make.conf.

Yes, some options can be in -src-env.conf but not all. some options have to be in make.conf. anywho, i have a local hack for this but not sure it's right


Importing jax.numpy leads to Partially Initialised module error

Please:

[x] Check for duplicate issues.

I am running JAX on a Fedora 35 system, with CUDA 11.6, CuDNN 8.2, Driver version 510.60.02
[I installed CuDNN based on the RHEL8 instructions here, since Fedora 35 doesn't seem to officially get the builds for it]
I installed JAX by following the instructions present in the README.md file. On doing that, and simply running the import command, I get the following error
import jax.numpy as jnp

AttributeError                            Traceback (most recent call last)
Input In [8], in <cell line: 4>()
      2 import nibabel as nib
      3 import numpy as np
----> 4 import jax.numpy as jnp
      6 class NIIHandler():
      8     def __init__(self, TRAIN_DATASET_PATH):

File ~/.local/lib/python3.10/site-packages/jax/__init__.py:58, in <module>
     38 from jax._src.config import (
     39   config as config,
     40   enable_checks as enable_checks,
   (...)
     55   transfer_guard_device_to_host as transfer_guard_device_to_host,
     56 )
     57 from .core import eval_context as ensure_compile_time_eval
---> 58 from jax._src.api import (
     59   ad,  # TODO(phawkins): update users to avoid this.
     60   block_until_ready,
     61   checkpoint as checkpoint,
     62   checkpoint_policies as checkpoint_policies,
     63   closure_convert as closure_convert,
     64   curry,  # TODO(phawkins): update users to avoid this.
     65   custom_gradient as custom_gradient,
     66   custom_jvp as custom_jvp,
     67   custom_vjp as custom_vjp,
     68   default_backend as default_backend,
     69   device_count as device_count,
     70   device_get as device_get,
     71   device_put as device_put,
     72   device_put_sharded as device_put_sharded,
     73   device_put_replicated as device_put_replicated,
     74   devices as devices,
     75   disable_jit as disable_jit,
     76   eval_shape as eval_shape,
     77   flatten_fun_nokwargs,  # TODO(phawkins): update users to avoid this.
     78   float0 as float0,
     79   grad as grad,
     80   hessian as hessian,
     81   host_count as host_count,
     82   host_id as host_id,
     83   host_ids as host_ids,
     84   jacobian as jacobian,
     85   jacfwd as jacfwd,
     86   jacrev as jacrev,
     87   jit as jit,
     88   jvp as jvp,
     89   local_device_count as local_device_count,
     90   local_devices as local_devices,
     91   linearize as linearize,
     92   linear_transpose as linear_transpose,
     93   make_jaxpr as make_jaxpr,
     94   mask as mask,
     95   named_call as named_call,
     96   pmap as pmap,
     97   process_count as process_count,
     98   process_index as process_index,
     99   pxla,  # TODO(phawkins): update users to avoid this.
    100   remat as remat,
    101   shapecheck as shapecheck,
    102   ShapedArray as ShapedArray,
    103   ShapeDtypeStruct as ShapeDtypeStruct,
    104   # TODO(phawkins): hide tree* functions from jax, update callers to use
    105   # jax.tree_util.
    106   treedef_is_leaf,
    107   tree_flatten,
    108   tree_leaves,
    109   tree_map,
    110   tree_multimap,
    111   tree_structure,
    112   tree_transpose,
    113   tree_unflatten,
    114   value_and_grad as value_and_grad,
    115   vjp as vjp,
    116   vmap as vmap,
    117   xla,  # TODO(phawkins): update users to avoid this.
    118   xla_computation as xla_computation,
    119 )
    120 from jax.experimental.maps import soft_pmap as soft_pmap
    121 from jax.version import __version__ as __version__

File ~/.local/lib/python3.10/site-packages/jax/_src/api.py:61, in <module>
     55 from jax._src import traceback_util
     56 from jax._src.api_util import (
     57     flatten_fun, apply_flat_fun, flatten_fun_nokwargs, flatten_fun_nokwargs2,
     58     argnums_partial, argnums_partial_except, flatten_axes, donation_vector,
     59     rebase_donate_argnums, _ensure_index, _ensure_index_tuple,
     60     shaped_abstractify, _ensure_str_tuple, argnames_partial_except)
---> 61 from jax._src.lax import lax as lax_internal
     62 from jax._src.lib import jax_jit
     63 from jax._src.lib import xla_bridge as xb

File ~/.local/lib/python3.10/site-packages/jax/_src/lax/lax.py:1653, in <module>
   1651 tan_p = standard_unop(_float | _complex, 'tan')
   1652 ad.defjvp2(tan_p, lambda g, ans, x: mul(g, _const(x, 1) + square(ans)))
-> 1653 if jax._src.lib.mlir_api_version >= 11:
   1654   mlir.register_lowering(tan_p, partial(_nary_lower_mhlo, chlo.TanOp))
   1655 else:

AttributeError: partially initialized module 'jax' has no attribute '_src' (most likely due to a circular import)

I am extremely new to JAX, so please do let me know if there is something else I should be trying instead. Attaching my nvidia-smi and nvcc -- version results below.

Thank you very much!

Thanks for the report - I suspect this has to do with version skew between the jax and jaxlib packages. Can you tell us which versions of jax and jaxlib you have installed? For example, if you use pip to install packages you can run:
$ python -m pip list | grep jax

using the appropriate Python executable.

Right, I tried that, this is the result I get

Thanks for the additional information. I was not able to reproduce this on an Ubuntu system with jax 0.3.10 and jaxlib 0.3.10, running Python 3.10. Can you try to isolate this error further? Without a local reproduction, it's hard to debug.

Hi! I am in the same situation. I left my jax version attached

I get that same error just entering the python command line and executing a jax import, like in the next screenshot

It looks like you have a local file in your directory named jax.py, so when you run import jax it is loading this file instead of the jax package. I'd suggest renaming this file; for example:
$ mv jax.py my_jax_script.py

It looks like you have a local file in your directory named jax.py, so when you run import jax it is loading this file instead of the jax package. I'd suggest renaming this file; for example:
$ mv jax.py my_jax_script.py

totally right. What a fail, you were totally right

Hi I got the same error when import jax, like the screenshot:

thank you very much for your advice!


biligrab fail to call danmaku2ass.

On my box, biligrab fail to call danmaku2ass and report:
...
ERROR:root:Danmaku2ASS failed: global name 'Danmaku2ASS' is not defined
Head to https://github.com/m13253/danmaku2ass/issues to complain about this.
Traceback (most recent call last):
File "./biligrab.py", line 698, in convert_ass_py2
Danmaku2ASS(xml_name, filename + '.ass', resolution[0], resolution[1],
NameError: global name 'Danmaku2ASS' is not defined
...
I place danmaku2ass2.py at the same directory of bilidan.py, and called from the same directory.

请将danmaku2ass.py保持这个名字，放在和Biligrab同一个目录下。

Please reopen should happens again.


downloading worst audio+video and perhaps combining?

when downloading -f worst or "-f worst-audio+worst-video/worst" it downloads first format
that has both audio and video,
but smallest audio size plus size of smallest video is much smaller than that
I think a feature that can download smallest both and combine them perhaps would be desirable
for backup archive purposes (of the knowledge)
perhaps by running ffmpeg externally
thanks

[x] I've verified and I assure that I'm running youtube-dl 2019.03.18

[x] At least skimmed through the README, most notably the FAQ and BUGS sections

[x] Searched the bugtracker for similar issues including closed ones

[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x] Feature request (request for a new functionality)
[ ] Question
[ ] Other

worstaudio and worstvideo without dashes.

thanks a lot I couldnt find it in the manual or where I looked.


Applications should not have to call socket.AddTransport()

For most stock transports, it should be sufficient for an application to import the package (with a "_" import) to register the transport.  There is really little use in having explicit transport registration for each socket.
The AddTransport() API will still need to be available for user supplied transports though.

Actually, I think we can kill off AddTransport.  Nobody should be using mangos v2 in prod yet, and we haven't tagged a build yet.


firejail doesn't support setting firejail.users.

Describe the bug
Due to the suid binary, it is common to run firejail constrained to a single user by setting the firejail.users file. However, setting /etc/firejail/firejail.users in nix is ineffective, likely due to the sysconfdir being in the nix store.
As a workaround, one can add the firejail.users file to the derivation, e.g.:
firejail.overrideAttrs (orig: {
  postInstall = orig.postInstall + ''
    echo "foo" > $out/etc/firejail/firejail.users
  '';
});

This works, but patching the package is inconvenient and causes a binary cache miss. It would be better if the config check was ferried out to /etc, similar to how firejail honors .local files added to /etc/firejail.
Steps To Reproduce
Steps to reproduce the behavior:

Add firejail.users to /etc, for example environment.etc."firejail/firejail.users".text = ''foo'';
Run firejail as another user

Expected behavior
Users other than foo should be denied utilization of firejail.
Notify maintainers
@raskin
@peterhoeg

Metadata

system: "x86_64-linux"
host os: Linux 6.1.12, NixOS, 23.05 (Stoat), 23.05.20230221.d0d5525
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.13.2
channels(root): "nixos"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

@peterhoeg are you still a firejail maintainer?


Write metadata cache data to mappings _meta with refresh time update

Description
Metadata Cache Writer
For the most part, same as

#744

In addition to the regular metadata storage using FlintIndexMetadataService, we're dual-writing additional fields, defined by FlintMetadataCache, to the index mappings _meta field. It's intended for frontend users to access some crucial metadata for an index quickly without invoking another backend API call.
This PR adds such fields for all indexes, if the spark config spark.flint.metadataCacheWrite.enabled is set to true.

_meta.properties.metadataCacheVersion: "1.0"
_meta.properties.refreshInterval: Integer. Refresh interval of an index measured in seconds. This field is added only if index refresh type is auto refresh and refresh_interval is set
_meta.properties.sourceTables: Array of Strings. For now, it's mocked data. Update coming in later PR.
_meta.properties.lastRefreshTime: Long. Timestamp in milliseconds when last refresh happened. This field is added only if index already gets refreshed at least once

Last Refresh Time
Added two new fields in FlintMetadataLogEntry and bumped version of its json doc from 1.0 to 1.1 (because adding new field but not changing existing fields)

lastRefreshStartTime: Long. Timestamp when last refresh started
lastRefreshCompleteTime: Long. Timestamp when last refresh completed

These are accurate only for manual refresh (full, incremental) and external scheduler for auto refresh.
For internal scheduler, the jobStartTime (or createTime in FlintMetadataLogEntry) is used to track streaming job start time.
I'm not reusing createTime because they should be updated at different times.
For createTime (for internal scheduler) it's during refreshIndex, recoverIndex, updateIndexManualToAuto
But for lastRefreshStartTime and lastRefreshCompleteTime (for manual refresh and external scheduler) it's only updated in refreshIndex
Related Issues

#746

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Note to any reviewer if curious, the force push only amended commit 2f58f56 and nothing else

i do welcome a better name... was kind of struggling to come up with a name.
So the main use case for this is when using custom index metadata and metadata log storage, these metadata aren't available in OpenSearch index. And some frontend use case need access to these data without making query to backend executed in spark. I take it as a read cache for such metadata.

Will deploy and perform end-to-end test tonight before merging

Updated description with test results

Backport blocked by: https://github.com/opensearch-project/opensearch-spark/pull/836
retrigger backport once revert pr is merged


all-cabal-hashes: 2024-02-12T23:23:22Z->2024-03-08T00:51:13Z

Description of changes
./maintainers/scripts/haskell/update-hackage.sh
./maintainers/scripts/haskell/regenerate-hackage-packages.sh

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I don't think we should merge this right now. This will possibly introduce too much breakage on a branch which we are about to merge.


Instance list status.phase never reaching Provisioned

Issue
There's a deadline for pinging the Humacs Pod of 2 seconds. Given unready in instances in the list - it will take up quite a while for the request to resolve.
Currently the Humacs Pod of the Instance isn't pinged so the phase can never reach a Provisioned state.

Resolved in 011ea64478c35790ad89beb33354297671d53ca3


Fix references to 'db.account.settings' -> 'db.account.localSettings'

Work for this issue will begin begin on branch work-liquid-labs/cloudsite/166.


Add advice re logo size to logo upload -- we have issues with larger files and the distrtibution receipts

Summary
Add a warning about logo size to the "Update Logo" on the bank's "Edit my Organization".
Why
Large image files for the logos impact the speed of the items that use them -- we have had a couple of cases where the distribution 'receipt' printout was timing out.
Details
Login as<EMAIL_ADDRESS>-->   My Organization | Edit.  Scroll down to the bottom
Add warning text along with the existing informational text.:
"Images should be no more than 1M in size.  Uploading a larger image file will impact the speed of any function that uses it and may cause some to fail."

Criteria for completion

[ ] Warning appears on "edit my organization", at the end of the current informational text.

Bonus Round

[ ] Reject uploads over 1M, with tests to support that.

Go for it!

Hey @dorner @cielf, I have added the warning text in my PR, now working on the bonus round, implementing the 1M check with tests.

Hey @dorner @cielf kindly review the linked PR, thanks.


✨ Store-based APIs (KitQL integration)

This PR adds a new store-based API to houdini, very similar to what KitQL gives users. This PR was done by
@AlecAivazis and @jycouet to take advantage of approaches from both libraries.
closes #255, closes #189
✅ Things to check / notes / comments

[x] Client side navigation no await @jycouet  (with blocking param option)

[x] Add blocking=true parameter to queryLoad

[x] ~context and session should be optional~. Done differently with event on load side and that's it! @jycouet
[x] query & queryLoad => fetch @jycouet
[x] Integration tests à la playwrite
[x] Improve variable existence check in QueryStore @jycouet
[x] type definitions exported from root package
[x] Preprocessor ensureImports bundles everything for every route 😢
[x] Add warning when getHoudiniContext is called outside of component init @jycouet
[x] Operation description

[x] external .graphql files
[x] external .gql files @jycouet  https://github.com/HoudiniGraphql/houdini/issues/255

[x]  setEnvironment  -> houdiniClient.init() @jycouet
[x] Pull houdiniContext in paginated runtimes
[x] Improve console log of generate command

[x] level management in logs maybe:

null => no logs at all (quiet? even super quiet!)
0 => Just "It's done"
1 => Smart logs
2 => Module start / stop
3 => Maxi detail

[x] smart logs are for 🥳
[x] Maybe instead of config quiet: boolean you have now: logLevel: 'quiet' | 'smart' | 'full' = 'smart', what do you think?

[x] Environment / kitqlClient

[x] Remove multiple client examples from houdini example
[x] I wonder if instead of new Environment(...) we could have `new

[x] Typings

[x] Query variables
[x] Query result
[x] Store type? type ${storeName}_data?

[x] Load SSR / Load Client (CSR)

[x] load
[x] component queries
[x] rename load @jycouet

[x] Normalized caching
[x] Normalized caching with multiple ids
[x] Query, variable change, caching
[x] Cache Policy / Overwrite (when we do a .query() / Default Behavior https://github.com/HoudiniGraphql/houdini/issues/247
[x] Marshal
[x] Store APIs

[x] Query
[x] Mutation
[x] Fragment
[x] Subscription
[x] Paginated Query
[x] Paginated Fragment

[x] Update Preprocessor

[x] Queries
[x] Mutations
[x] Subscriptions
[x] Fragments
[x] Paginated Fragments
[x] Paginated Queries

[x] Update runtime to use store APIs

[x] Route Query
[x] Component Query
[x] Paginated Query
[x] Fragment
[x] Paginated Fragment
[x] Mutation
[x] Subscription  @jycouet

[x] Check TODO in the code

To talk about?

Speak about defaults in npx init

Post Houdini publish

Creating a buildFetchQueryFn in KitQL. @jycouet

Will consider later

ResetAllCaches
cacheMs
Integration with the Guild's CodeGen
Integration with the Guild Scalars package / Client Scalars
A way to specify unblocking navigation on generated preprocessor

And more to come 🥳

Awesome update!

Is this documented yet?

Not yet! There is an issue tracking the progress for this update's documentation. I have added all of the smaller tasks but still have to document the actual store APIs. I'm going to try to get something out in the next few days but until then, the best place to see how things are done would be the integration tests.

@endigma there is now documentation for all of the stores available here: https://docs-git-0150-aaivazis.vercel.app/api/welcome.
There is also a new guide that goes over the relationship between document stores and the inline API: https://docs-git-0150-aaivazis.vercel.app/guides/working-with-graphql

This has now been released in version version 0.15.0-next.1 which is available as houdini@next. Let us know if you run into any problems!

There is also a new guide that goes over the relationship between document stores and the inline API [...]

I saw example code inside a load function:
await ViewerProfileStore.fetch({ event })

Where event is a LoadEvent identifier.
Was this design to ensure event.fetch is used, or are things like params used as well? Not at keyboard current but curious given my natural tendency is to destructure only what's being used in the load param list to satisfy principle of least privilege.

We went back and forth on param names and scope. Not that easy topic!
Yes, we need fetch for sure. Sometimes we need session as well. params could be used in some scenarios also.
So, in the end, we decided to go with event as you saw.
As you wrote, it looks nice and clean 👍
await ViewerProfileStore.fetch({ event })

You can of course restructure just after like 👇
export async function load(event) {
  const { fetch, session, params } = event
  // Something to do with restructured args
  await ViewerProfileStore.fetch({ event })
  return {};
}

Another way could be 👇
export async function load({ fetch, session, params }) {
  // Something to do with restructured args
  await ViewerProfileStore.fetch({ event: { fetch, session, params } })
  return {};
}


Sceptres (Doryani's Catalyst) listed as one-hand mace

Not a big deal, just thought i'd let you know if you didn't already. Ty for the awesome program!

You could've at least checked this in game...

I'm sorry :(


Add Rails 5.1 gemfile

I'm experiencing the same issue as in #62 create this PR to see if some tests fail on Rails 5.1

is there any reason why this PR isn't merged yet ? because we had an issue with this gem when upgrading to rails 5.1

Thanks for submitting this, my apologies as hairtrigger has been a bit off my radar lately 😬 ... I just merged #64, which supersedes this


Add an overview of all available clients

It would be nice to integrate this into the docs, maybe as a link in the left sidebar.

For contributor use:

[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

@turbolent I was wondering if we need to add a disclaimer clarifying many SDKs are being maintained by the community, as volunteers, so before using developers should be aware there is no guarantee in terms of continued development and support.
That way we avoid the issue of some developers complaining they wasted their efforts in building an app with the assumption of the SDK being always available and maintained, especially with breaking changes.

@githubwei This is true for any open-source project, so I'd let such considerations be up to the user

@psiemens @10thfloor any thoughts?

I'd add here as well that I'd agree with @githubwei  => We should point out which repos have complete documentation and is "recommended" by us. With so many choices, it might be easy to assume there is equal support from the community which is not quite true. Their experience could end quite quickly if they get frustrated and make the wrong choice here.


Provide a way to force ef to check ConcurrencyToken

problem
When saving changes, EFCore only checks the concurrency token of a row when the entity is modified. Consider the folowing situation:
First I fetch record p. I'm not going to modify record p, but I want to ensure record p is unchanged until savechanges(). (like a SHARE lock)
solution
Force efcore to check the ConcurrencyToken of an entity. Maybe by executing SELECT 1 FROM students WHERE student_id=11 AND concurrency_token=55 FOR SHARE and throw exception if null is returned.

Note from triage: Putting on the backlog to consider.
@crclz The only workaround I can come up with at the moment is to mark either the entire entity or some property as modified even when it isn't. This isn't great of course, because it will cause updates when they aren't needed.

@ajcvickers Yes, marking the whole or a part of the entity is not a good solution. Not only because it does unneeded updates, but also because it uses EXCLUSIVE lock when SHARE lock is ok, which increase the possibility of transaction failure (concurrency violation) and decreases throughput.
Additionally, some feature of efcore make it quite fit for DDD(Domain Driven Design), but now it seems there is not an eazy way for EFCore to guarantee the consistency within an aggregate root.

@crclz Aggregate optimistic concurrency is tracked by https://github.com/aspnet/EntityFrameworkCore/issues/18529


Is this project still being maintained?

Would like to know that too. :+1:

+1

I would like to know that, too.

I have a feeling this is not being maintained anymore.  I do want to share something that I found.  There are several comments that posters state there is "sloppy code" and the periods (".") need to be removed.  Please be aware that if you remove those "extra" periods, you will break the tabidentify option and the multiple nested tabs functionality.
If you have a single tab setup, you must include a tabidentify value when setting the options in your js and in the class on both the "resp-tabs-list" and "resp-tabs-container". Once you add the tabidentify value on a single tab setup, the it functions correctly.

It would be great if someone were to create a fork of this project, or potentially take up being a maintainer, since this project is still very much used via the drupal module: https://www.drupal.org/project/panels_responsive_tabs as an example.

It would be great if someone were to create a fork of this project, or potentially take up being a maintainer, since this project is still very much used via the drupal module: https://www.drupal.org/project/panels_responsive_tabs as an example.

Frankly, this one does a better job plus it's accessible and the functions are pretty much the same.
Source: https://findawayer.github.io/Skeletabs/

Also https://www.drupal.org/project/field_group_easy_responsive_tabs uses this


iOS - New chat - Contacts list can't be scrolled

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open app and login
Tap on + > New Chat or New Group
Scroll down in order to see the whole contacts list

Expected Result:
User is able to scroll and look for the desired contact
Actual Result:
App does not scroll - instead it acts like a steady list
Workaround:
Unknown
Platform:

Where is this issue occurring?

iOS

Version Number: 1.1.29-1
Reproducible in staging?: Yes
Reproducible in production?: No
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/149230392-bd31a761-f45c-4f2c-87b9-2ec667f13eb4.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Triggered auto assignment to @puneetlath (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Fix has been merged and CP'd to staging. Can you retest @kavimuru on ios in version 1.1.29-3.

@chiragsalian Issue is fixed on the latest build


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/119680

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/120363


Fix a bug in yii\web\User::loginRequired()

Throw Unauthorized HTTP exception instead of the Forbidden HTTP
exception when loginUrl is not set or a redirect is not applicable.

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
yes

Tests pass?
yes

Fixed issues
#13822

Merged. Thanks!

Glad to help!

Can fixing a bug be considered a BC break? Can business-logic founded on a bug be considered legitimate?

You're changing documented behavior, this obvious BC break for me. People may catch this exception and handle this differently.

Yes, worth mentioning in UPGRADE. I'll handle that.

agree

https://github.com/yiisoft/yii2/commit/f906452f8e91c0ad075fd05dd83215cbf6a3bf51

The same request has been rejected before here: https://github.com/yiisoft/yii2/pull/7818#issuecomment-84474283

Right. Should be reverted...

Yes. Going to revert it and clarify descriptions of exceptions.

Reverted. Exceptions description updated: https://github.com/yiisoft/yii2/commit/a626440761fa05d3f92ba8ab42403481103dc03c

reverted upgrade note in d9f5927


[CAS-1022] Warn CAS administrators on un-checking Participate in SSO box in service registration that additional effort
outside the tool required to make the non-participation usable.

What if when the administrator unchecks the "Participate in SSO" checkbox in a services registry entry, a JavaScript dialog or so advises that 'Opting out of participating in SSO requires that the application set the renew=true parameter on both the navigation to CAS login and on the ticket validation request. Reasonable CAS client libraries have configuration for this. This application needs to be properly configured (itself, outside of this tool, not through this UI) to use renew=true, or else end users will have a bad user experience attempting to log in to this service. That is, this unchecking Participate in SSO instructs CAS to enforce the requirement that the client application set renew=true but does not accomplish setting renew=true.'
That is, warn the administrator at the time of making the configuration change that additional effort outside the tool is required.
Reported by: Andrew Petro, id: awp9
Created: Wed, 3 Aug 2011 20:44:32 -0700
Updated: Mon, 15 Aug 2011 19:06:08 -0700
JIRA: https://issues.jasig.org/browse/CAS-1022

Handled by #496


Swift 4.2 and Xcode 10

Can you please update this library for swift 4.2 and Xcode 10?

I merged into the master branch.
Updated to support Swift 4.2 and Xcode 10.

I merged into the master branch.
Updated to support Swift 4.2 and Xcode 10.

Thank you so much.

I merged into the master branch.
Updated to support Swift 4.2 and Xcode 10.

In Xcode 10.1 and with swift 4.2 I'm having a strange issue. If I've set the background property to none using the StyleProperty class, I cannot tap on any other views on the view when the progress is displaying. The UI freezes. Previously with Xcode 9.4.1 and swift 4.1 there was no such issue.

I merged into the master branch.
Updated to support Swift 4.2 and Xcode 10.

In Xcode 10.1 and with swift 4.2 I'm having a strange issue. If I've set the background property to none using the StyleProperty class, I cannot tap on any other views on the view when the progress is displaying. The UI freezes. Previously with Xcode 9.4.1 and swift 4.1 there was no such issue.

Fix background property problem.
Please update to 3.11.0

Fix background property problem.
Please update to 3.11.0

Great. It's working flawlessly now. Thanks a lot!


Polars support

Hello, thank you for this great library!
Is it planned to support Polars library at some point ?

Polars is not currently on the roadmap, but we do look at the community interest in new features on a regular basis and adjust our priorities accordingly.  Of course we'd welcome a pull request from someone who is familiar with Polars.

Yes, I do hope this client will support polars.

You can query to get pyarrow tables, which can then zero-copy into Polars with something like this:
df = pl.from_arrow(client.query_arrow(query))

Feedback based on @NotSimone's comment would be appreciated -- is using PyArrow enough of a solution or does Polars use some other internal data format?

Polars does use Pyarrow under the hood so I think this would work.
Since my question, we ended up sticking with Pandas. Would it be possible to optionally make query_df return a Pyarrow backed Pandas DataFrame instead of Numpy backed  ? I see use_numpy param is hardcoded to true here.

Agreed that PyArrow DataFrames would be useful - https://github.com/ClickHouse/clickhouse-connect/issues/326.   However I'm sure when it will it will be prioritized.


Shree: Watch office-comsetup-install.com

Shree requests the watch of the watch_keyword office-comsetup-install\.com. See the MS search here and the Stack Exchange search here.

office-comsetup-install\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

!!/approve

Coverage remained the same at 63.502% when pulling 94c5b5fc48cfab939c31c676f72d822d7a2480b2 on auto-blacklist-1537524411 into 56a29bcf10b7193addc060f40e300c015dfebebc on master.


Last Week in Pony - August 20, 2023

Version 0.61.0 of ponylang/action-testing has been released.
See the release notes for more details.

Version 0.55.1 of ponylang/ponyc has been released.
See the release notes for more details.

The 'Add linting of GitHub Actions workflows' RFC has been updated to 'new'
See the RFC for more details.

The 'Update to checkout v3' RFC has been updated to 'new'
See the RFC for more details.


Ability to run only specified model with dbt run

Sometimes I want to test a particular model without triggering other slow models, and I don't want to fiddle with the config file to enable:false them.
It would be great to be able to run a specific model like this:
dbt run myspecialmodel
Side note: I've noticed that dbt run seems to randomize the order in which it processes tables. It would be nice to have that deterministic.

Thanks, must have missed the --models arg :)


[AIRFLOW-1381] Specify host temporary directory

Allow user to specify temporary directory to use on the host machine;
default settings will cause an error on OS X due to the standard
temporary directory not being shared to Docker.
Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-1381

Description

[x] Here are some details about my PR, including screenshots of any UI changes:

DockerOperator currently uses the standard TemporaryDirectory helper, which calls the standard libary. On OS X the default directory cannot be shared to Docker containers. This PR allows the host temporary directory to be specified by the user.
Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Added a test into docker_operator to ensure that mkdtemp is called correctly.
Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #2418 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2418      +/-   ##
==========================================
- Coverage   69.25%   69.24%   -0.01%
==========================================
  Files         146      146
  Lines       11230    11231       +1
==========================================
  Hits         7777     7777
- Misses       3453     3454       +1

Impacted Files
Coverage Δ

airflow/operators/docker_operator.py
97.4% <100%> (+0.03%)
:arrow_up:

airflow/models.py
87.26% <0%> (-0.05%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d231dce...4202b9a. Read the comment docs.

@benjaminsims can you rebase?

@benjaminsims can you please address @ashb 's comment and rebase? Should be good to go after.

@benjaminsims pinging on this :)

@benjaminsims I don't think it really matters if you fix this PR or close it and open a new one.

Fixed in #5369


File cannot be excluded in .dockerignore when parent directory is included as an exception

Description
In .dockerignore, if a directory is included as an exception, files under this directory cannot be excluded afterwards.
Steps to reproduce the issue:
Given the following directory structure:
$ tree -a
.
├── data
│   ├── dir
│   │   ├── file2
│   │   └── file3
│   └── file1
├── .dockerignore
└── Dockerfile

The following Dockerfile:
FROM busybox:1.26
COPY data /data/

The following .dockerignore:
*
!data
data/file2

When the image is built and inspected in a container:
$ docker build -t test -q . && docker run --rm test find /data

Describe the results you received:
The files copied include the file being excluded:
sha256:b310efa080739767c793cf2058984958c6d9659187de6e6b36f898ea46650471
/data
/data/dir
/data/dir/file2
/data/dir/file3
/data/file1

Describe the results you expected:
/data/dir/file2 should not be copied to the image because it should take priority over the !data inclusion since the exclusion is declared afterwards.
Additional information you deem important (e.g. issue happens only occasionally):
Possibly related to https://github.com/docker/docker/issues/30018
Output of docker version:
Client:
 Version:      17.03.0-ce
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   60ccb22
 Built:        Thu Feb 23 10:40:59 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   3a232c8
 Built:        Tue Feb 28 07:52:04 2017
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 7
Server Version: 17.03.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.12-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952 GiB
Name: moby
ID: V3CL:X4RL:O5MJ:BSJZ:JRNG:SVCE:672T:XPMF:5EDA:2SXO:NPMX:Y7LV
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 17
 Goroutines: 28
 System Time: 2017-03-08T00:44:35.903208479Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Username: diwo
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

Sorry the repro case isn't actually correct, let me edit it

Seems to only be an issue with docker-compose, I'll create a new issue under that project.

@diwo Thanks! feel free to link it here when you have it. I'm closing this as it is not actionable on the engine.

Related to issue https://github.com/docker/compose/issues/3886


No way to have a backslash in front of a variable

Handlebars.Compile(@"\{{test}}")(new {test="X"}) returns "{{test}}", which is obviously fine.
Handlebars.Compile(@"\\{{test}}")(new {test="X"}) returns "\{{test}}", which seems like a bug to me.
Handlebars.js handles them like I would expect, with the second rendering "\X" jsfiddle
(discovered in this question on SO)

Released 1.9.3 to nuget including this fix.


[Weibo] Unsupported URL

URL: http://video.weibo.com/show?fid=1034:7ffc79010fec610ed9a7dc35bd288062
Error: Unsupported URL: http://video.weibo.com/show?fid=1034:7ffc79010fec610ed9a7dc35bd288062
Platform: openSUSE 13.1, x86_64, XFCE
Version: 2<IP_ADDRESS>
Video player: Custom

Oddly, there's supposed to be Weibo support, it seems (#1039). Not sure why it doesn't work here. Different video provider, maybe?
sven@linux-etoq:~/archive/shandong-explosion> youtube-dl -v http://video.weibo.com/show?fid=1034:7ffc79010fec610ed9a7dc35bd288062
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://video.weibo.com/show?fid=1034:7ffc79010fec610ed9a7dc35bd288062']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.6 - Linux-3.11.10-29-desktop-x86_64-with-SuSE-13.1-x86_64
[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] show?fid=1034:7ffc79010fec610ed9a7dc35bd288062: Requesting header
WARNING: Falling back on generic information extractor.
[generic] show?fid=1034:7ffc79010fec610ed9a7dc35bd288062: Downloading webpage
[generic] show?fid=1034:7ffc79010fec610ed9a7dc35bd288062: Extracting information
ERROR: Unsupported URL: http://video.weibo.com/show?fid=1034:7ffc79010fec610ed9a7dc35bd288062
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/generic.py", line 1211, in _real_extract
    doc = parse_xml(webpage)
  File "/usr/lib/python2.7/site-packages/youtube_dl/utils.py", line 1594, in parse_xml
    tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: syntax error: line 1, column 0
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 655, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 287, in extract
    return self._real_extract(url)
  File "/usr/lib/python2.7/site-packages/youtube_dl/extractor/generic.py", line 1804, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://video.weibo.com/show?fid=1034:7ffc79010fec610ed9a7dc35bd288062

I would like to corroborate this one. Here's a sample that I was coming here to report on!
$ youtube-dl -v -g http://video.weibo.com/show?fid=1034:4c3c0c12039eb46d380e968a57eca250
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-g', u'http://video.weibo.com/show?fid=1034:4c3c0c12039eb46d380e968a57eca250']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.24
[debug] Python version 2.7.10 - Darwin-15.0.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: http://video.weibo.com/show?fid=1034:4c3c0c12039eb46d380e968a57eca250
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1240, in _real_extract
    doc = parse_xml(webpage)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1667, in parse_xml
    tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: syntax error: line 1, column 0
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 661, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 291, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1838, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://video.weibo.com/show?fid=1034:4c3c0c12039eb46d380e968a57eca250


[TRACKING] SSH completion

Issues related to completion for ssh and related commands.
Issues
robbyrussell/oh-my-zsh#4257 – common-aliases plugin configures zsh host completion
robbyrussell/oh-my-zsh#4162 – Request: tmux-cssh completion
robbyrussell/oh-my-zsh#4101 – How to get host completion working for a new command?
robbyrussell/oh-my-zsh#3229 – Behavior change after OMZ reverted to Zsh's hosts completion (2602)
robbyrussell/oh-my-zsh#2945 – scp/rsync completion failure with remote globbing
robbyrussell/oh-my-zsh#2737 – Prefers /etc/hosts entries
robbyrussell/oh-my-zsh#2414 – Issue with ssh_config hosts completion (using OMZ's completion)
robbyrussell/oh-my-zsh#2288 – ssh_config host completion fails
robbyrussell/oh-my-zsh#1337 – "Auto-complete fails on SSH?"
robbyrussell/oh-my-zsh#886 – Request: ssh_config host completion
robbyrussell/oh-my-zsh#42 – known_hosts completion not working
Pull Requests
robbyrussell/oh-my-zsh#3321 – tmux-cssh completion plugin
robbyrussell/oh-my-zsh#2707 – Add ssh_config host completion in new ssh plugin
robbyrussell/oh-my-zsh#2702 – Add ssh_config host completion in new ssh plugin (dupe)
robbyrussell/oh-my-zsh#2602 – Revert to Zsh's own default hosts completion
robbyrussell/oh-my-zsh#2489 – Remove brackets from URLs in known_hosts
robbyrussell/oh-my-zsh#2361 – Re-enable completion of user names
robbyrussell/oh-my-zsh#2109 – Improve ssh known_hosts parsing
robbyrussell/oh-my-zsh#1964 – Make ssh completion more configurable
robbyrussell/oh-my-zsh#1498 – Dupe of 2602 (Revert to Zsh's own hosts completion)
robbyrussell/oh-my-zsh#1343 – scp completion fails
robbyrussell/oh-my-zsh#1265 – Fix typo in ssh completion
robbyrussell/oh-my-zsh#1009 – Use ssh_config for host completion
robbyrussell/oh-my-zsh#768 – Include global /etc/ssh_known_hosts in host completion
robbyrussell/oh-my-zsh#690 – Add ssh_config parsing for host completion
robbyrussell/oh-my-zsh#668 – Ignore port info from known_hosts
robbyrussell/oh-my-zsh#127 – Completion improvements
Topics
ssh_config hosts
A lot of these have to do with hosts defined in the ~/.ssh/config and /etc/ssh_config files not showing up as options for completion. Zsh's own _ssh completion definition has code that reads hosts from ~/.ssh/config, so it seems like they intend for it to be there by default. But it's not showing up for a lot of people, me included. We need to figure this out, to avoid thrashing on this topic.

Moved upstream to robbyrussell/oh-my-zsh#4345. Closing in favor of the upstream issue.


Analize videos with DLC

Hi @joacorapela, closing this, if you want to reopen feel free with additional detail


InlineDatePicker doesn't display the clear button when clearable prop is set to true

Environment

Tech
Version

material-ui-pickers
1.0.0-rc.14

material-ui
1.4.2

React
16.4.2

Browser
Chrome 68

Peer library
moment 2.22.2

Steps to reproduce

Use an <InlineDatePicker> component
set the clearable prop to true
open the date picker in the browser

Expected behavior
The "Clear" button should be displayed to allow clearing the input
Actual behavior
The "Clear" button is not visible

Inline date picker is not supporting this functionality

Well is there any way to clear value when using InlineDatePicker?

You can do it manually. Add input adornment with button to clear the value

This was a solution I came up with for this. Hope this helps anyone who stumbles across this. If there is a better way let me know.
I am using Formik on my app so I included it in the example.
https://codesandbox.io/s/42y21jj057

Unfortunately last solution not worked with keyboard prop like
<InlineDatePicker keyboard ...

Workaround:

add onClick={openPicker} for IconButton Calendar
realize openPicker like https://material-ui-pickers.dev/guides/controlling-programmatically


add elasticsearch health check

Current coverage is 92.10%

Merging #19 into master will increase coverage by +0.21% as of 4742ee7

@@            master    #19   diff @@
=====================================
  Files            1      1
  Stmts           74     76     +2
  Branches        13     13
  Methods         19     19
=====================================
+ Hit             68     70     +2
  Partial          0      0
  Missed           6      6

Review entire Coverage Diff as of 4742ee7

Powered by Codecov. Updated on successful CI builds.

:+1:


Create error-handling.md

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

LauragraDocset0317235153/excel/error-handling.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


usage with langchain_openai

Hi, is there a way to use this with:
from langchain_openai import ChatOpenAI
from langchain_core.output_parsers import PydanticOutputParser
parser = PydanticOutputParser(myclass)
llm = ChatOpenAI(model_name="Llama3.1")
few_shot_prompt = FewShotPromptTemplate()
chain = few_shot_prompt | llm | parser
chain.invoke()

Hi there, this strictjson package is meant to replace Pydantic. Perhaps I can consider wrapping another version strictjson to use a pydantic output parser if it is more beneficial for people to do so. Then, this package will become more like Instructor package (https://github.com/instructor-ai/instructor).
Right now, I am able to get most output by just using the default Python types (e.g. str, int, list, dict) - I think using strictjson might be much more reliable than using Pydantic, but I have to do more experiments to find out.


[CRX] Drop code supporting ancient Chrome versions

I bumped the minimum support level to Chrome 88 in #16600. This means that there is no way for the extension to be loaded in older versions any more, so we can safely delete all (feature detection) code that supported old Chrome versions.

Thank you for cleaning this up!


Chore: expose buildNeuronStakeSubAccount

Motivation
Calculate the subaccount of a neuron based on the memo and user's principal.
In this PR, I expose the helper buildNeuronStakeSubAccount as a static method of GovernanceCanister which will then be used in NNS dapp.
Changes

Move getNeuronStakeSubAccountBytes to neuron.utils but don't expose it to users of the library.
Move buildNeuronStakeSubAccount to a static method of GovernanceCanister.
Change usages of those functions.

Tests
PENDING.
Todos

[ ] Add entry to changelog (if necessary).

@dskloetd @mstrasinskis @peterpeterparker what do you think of this change?

Not necessarily against. But the Neuron already has a field accountIdentifier. Can we just read that? Where does that come from?
https://github.com/dfinity/ic-js/blob/c57fc8783985e8044a3a538a51f46b00ecc07ab3/packages/nns/src/types/governance_converters.ts#L276

I'll close this issue, it's not needed anymore because list_neurons returns all the neurons.
I was under the impressions that neurons with stake 0 were being removed and cleaned. Therefore, I wanted to calculated subaccount from memo to identify transactions to stake a neuron without having the neuron.
That's not needed anymore.


Dependency updates

This PR updates all of our main dependencies which can be updated without any code changes. The 3 which are excluded due to needing extra changes are bookshelf, knex, and rss.
Only stable updates are included, so express is bumped to 4.13.3, not 5.0.0-alpha.2.
I have run the standard & casper.js tests against this locally with no failures.
I think the biggest, most likely to be accidentally impactful changes are in glob and validator. I did think twice about updating validator, but there are some good bug fixes in there.
I'm marking this as a WIP as, although all the dependencies are updated, I'm still working through testing things will all these increased versions. If anyone else has time to pull this down and also test it - in particular the little-loved flows like user invites and password resets, that would be much appreciated.

Taken this for more of a spin & not found anything hairy :)


Remove database artifacts

This PR removes database artifacts from this repo, so that it exclusively contains the code for managing Git-based credential status managers.

Still need to publish credential-status-manager-git v.2.0.0, then update pacakge.json, but not a priority at the moment


Calling unsupported standard library function aborts without stopping in oe-gdb

In the example below, the unsupported high_resolution_clock::now() function is called. The expected behavior is that oe-gdb would stop when calling that function, but instead the process just exits:
14:14:12:042419 tid(0x7ffff7fe0d40) (H)[ERROR]:OE_ENCLAVE_ABORTING[../host/sgx/calls.c oe_call_enclave_function:935]

Single stepping revealed that libcxx/libunwind is trying to raise an exception with message "clock_gettime(CLOCK_MONOTONIC) failed". However, the code below isn't able to catch the exception either.
Both of the behaviors combined (oe-gdb not stopping, exception catching not working) makes debugging such issues infinitely hard. This must be a bug and not expected, right?
enclave {
    trusted {
        public int test();
    };
};

#include <iostream>
#include <exception>
#include <chrono>

#include "test_t.h"

using namespace std::chrono;

void foo() {
    auto a = high_resolution_clock::now();
}

extern "C" int test() {
    // Calling foo() leads to an abort, and oe-gdb doesn't stop.
    // This is unexpected and makes debugging hard.
    try {
        foo();
    } catch (std::exception& exc) {
        std::cerr << exc.what() << std::endl;
    } catch (...) {
        std::cerr << "Unknown error" << std::endl;
    }
    return 0;
}

For a complete minimal example, see Bug1 in https://github.com/letmaik/oe-bugs.

@letmaik I debugged this via oegdb.
https://github.com/Microsoft/openenclave/blob/8155b03a656af72160b7268c5cae94eabd564287/3rdparty/libcxx/libcxx/src/chrono.cpp#L207-L208
Stepping reveals that it is clock_gettime (line 207) that is calling oe_abort. Line 208 is never reached.

Really? I'm hitting 208:
Breakpoint 1, foo () at /data/marieche/git/oe-bugs/bug1/enclave.cc:10
10          auto a = high_resolution_clock::now();
(gdb) step
std::__1::chrono::steady_clock::now () at ../3rdparty/libcxx/libcxx/src/chrono.cpp:207
207         if (0 != clock_gettime(CLOCK_MONOTONIC, &tp))
(gdb)
__clock_gettime (clk=1, ts=0x7ffff3b4de20) at ../3rdparty/musl/musl/src/time/clock_gettime.c:46
46              r = __syscall(SYS_clock_gettime, clk, ts);
(gdb)
__syscall (n=228, x1=1, x2=140737282104864, x3=0, x4=140737282105104, x5=16, x6=-1) at ../libc/sgx/syscalls.c:230
230         oe_spin_lock(&_lock);
(gdb)
oe_spin_lock (spinlock=0x7ffff2340410 <_lock>) at ../enclave/core/sgx/spinlock.c:37
37          if (!spinlock)
(gdb)
40          while (_spin_set_locked((volatile unsigned int*)spinlock) != 0)
(gdb)
_spin_set_locked (spinlock=0x7ffff2340410 <_lock>) at ../enclave/core/sgx/spinlock.c:16
16          asm volatile("lock xchg %0, %1;"
(gdb)
oe_spin_lock (spinlock=0x7ffff2340410 <_lock>) at ../enclave/core/sgx/spinlock.c:40
40          while (_spin_set_locked((volatile unsigned int*)spinlock) != 0)
(gdb)
51      }
(gdb)
__syscall (n=228, x1=<optimized out>, x2=140737282104864, x3=0, x4=<optimized out>, x5=<optimized out>, x6=<optimized out>)
    at ../libc/sgx/syscalls.c:231
231         oe_syscall_hook_t hook = _hook;
(gdb)
232         oe_spin_unlock(&_lock);
(gdb)
oe_spin_unlock (spinlock=0x7ffff2340410 <_lock>) at ../enclave/core/sgx/spinlock.c:55
55          if (!spinlock)
(gdb)
58          asm volatile("movl %0, %1;"
(gdb)
64      }
(gdb)
__syscall (n=228, x1=<optimized out>, x2=140737282104864, x3=0, x4=<optimized out>, x5=<optimized out>, x6=<optimized out>)
    at ../libc/sgx/syscalls.c:235
235         if (hook)
(gdb)
248         switch (n)
(gdb)
248         switch (n)
(gdb)
255                 return _syscall_clock_gettime(n, x1, x2);
(gdb)
_syscall_clock_gettime (n=0, x1=<optimized out>, x2=<optimized out>) at ../libc/sgx/syscalls.c:147
147         if (!tp)
(gdb)
278     }
(gdb)
__clock_gettime (clk=1, ts=0x7ffff3b4de20) at ../3rdparty/musl/musl/src/time/clock_gettime.c:47
47              if (r == -ENOSYS) {
(gdb)
55              return __syscall_ret(r);
(gdb)
__syscall_ret (r=18446744073709551615) at ../3rdparty/musl/musl/src/internal/syscall_ret.c:6
6               if (r > -4096UL) {
(gdb)
7                       errno = -r;
(gdb)
__errno_location () at ../3rdparty/musl/musl/src/errno/__errno_location.c:6
6               return &__pthread_self()->errno_val;
(gdb)
__pthread_self () at ../libc/pthread.c:82
82          if (oe_once(&_once, _pthread_self_init) != 0)
(gdb)
oe_once (once=0xffffffffffffffff, func=0x7ffff3b4de20) at ../enclave/core/sgx/once.c:10
10          if (!once)
(gdb)
18          if (o == 0)
(gdb)
17          OE_ATOMIC_MEMORY_BARRIER_ACQUIRE();
(gdb)
18          if (o == 0)
(gdb)
22              oe_spin_lock(&_lock);
(gdb)
oe_spin_lock (spinlock=0x7ffff2341ac4 <oe_once._lock>) at ../enclave/core/sgx/spinlock.c:37
37          if (!spinlock)
(gdb)
40          while (_spin_set_locked((volatile unsigned int*)spinlock) != 0)
(gdb)
_spin_set_locked (spinlock=0x7ffff2341ac4 <oe_once._lock>) at ../enclave/core/sgx/spinlock.c:16
16          asm volatile("lock xchg %0, %1;"
(gdb)
oe_spin_lock (spinlock=0x7ffff2341ac4 <oe_once._lock>) at ../enclave/core/sgx/spinlock.c:40
40          while (_spin_set_locked((volatile unsigned int*)spinlock) != 0)
(gdb)
51      }
(gdb)
oe_once (once=<optimized out>, func=<optimized out>) at ../enclave/core/sgx/once.c:24
24              if (*once == 0)
(gdb)
26                  if (func)
(gdb)
27                      func();
(gdb)
_pthread_self_init () at ../libc/pthread.c:67
67          td_t* td = oe_get_td();
(gdb)
oe_get_td () at ../enclave/core/sgx/td.c:180
180         oe_thread_data_t* td = oe_get_thread_data();
(gdb)
oe_get_thread_data () at ../enclave/core/sgx/td.c:179
179     {
(gdb)
oe_get_td () at ../enclave/core/sgx/td.c:181
181         return (td_t*)td;
(gdb)
_pthread_self_init () at ../libc/pthread.c:69
69          if (td)
(gdb)
71              struct __pthread* self = (struct __pthread*)td->pthread;
(gdb)
72              oe_memset(self, 0, sizeof(struct __pthread));
(gdb)
oe_memset (s=0x7ffff3b53108, c=0, n=240) at ../enclave/core/string.c:217
217         while (n >= 1024)
(gdb)
224         while (n >= 256)
(gdb)
231         while (n >= 64)
(gdb)
233             _oe_memset(p, c, 64);
(gdb)
_oe_memset (s=<optimized out>, c=<optimized out>, n=<optimized out>) at ../enclave/core/string.c:205
205         __builtin_memset(s, c, n);
(gdb)
oe_memset (s=<optimized out>, c=<optimized out>, n=240) at ../enclave/core/string.c:234
234             n -= 64;
(gdb)
235             p += 64;
(gdb)
231         while (n >= 64)
(gdb)
0x00007ffff20f0690 in _oe_memset (s=<optimized out>, c=<optimized out>, n=<optimized out>) at ../enclave/core/string.c:205
205         __builtin_memset(s, c, n);
(gdb)
oe_memset (s=<optimized out>, c=<optimized out>, n=176) at ../enclave/core/string.c:234
234             n -= 64;
(gdb)
235             p += 64;
(gdb)
231         while (n >= 64)
(gdb)
0x00007ffff20f0690 in _oe_memset (s=<optimized out>, c=<optimized out>, n=<optimized out>) at ../enclave/core/string.c:205
205         __builtin_memset(s, c, n);
(gdb)
oe_memset (s=<optimized out>, c=<optimized out>, n=112) at ../enclave/core/string.c:234
234             n -= 64;
(gdb)
235             p += 64;
(gdb)
231         while (n >= 64)
(gdb)
238         while (n >= 16)
(gdb)
240             _oe_memset(p, c, 16);
(gdb)
_oe_memset (s=<optimized out>, c=<optimized out>, n=<optimized out>) at ../enclave/core/string.c:205
205         __builtin_memset(s, c, n);
(gdb)
oe_memset (s=<optimized out>, c=<optimized out>, n=48) at ../enclave/core/string.c:241
241             n -= 16;
(gdb)
242             p += 16;
(gdb)
238         while (n >= 16)
(gdb)
0x00007ffff20f0860 in _oe_memset (s=<optimized out>, c=<optimized out>, n=<optimized out>) at ../enclave/core/string.c:205
205         __builtin_memset(s, c, n);
(gdb)
oe_memset (s=<optimized out>, c=<optimized out>, n=32) at ../enclave/core/string.c:241
241             n -= 16;
(gdb)
242             p += 16;
(gdb)
238         while (n >= 16)
(gdb)
0x00007ffff20f0860 in _oe_memset (s=<optimized out>, c=<optimized out>, n=<optimized out>) at ../enclave/core/string.c:205
205         __builtin_memset(s, c, n);
(gdb)
oe_memset (s=<optimized out>, c=<optimized out>, n=16) at ../enclave/core/string.c:241
241             n -= 16;
(gdb)
242             p += 16;
(gdb)
238         while (n >= 16)
(gdb)
245         while (n--)
(gdb)
248         return s;
(gdb)
_pthread_self_init () at ../libc/pthread.c:73
73              self->locale = C_LOCALE;
(gdb)
75      }
(gdb)
oe_once (once=<optimized out>, func=<optimized out>) at ../enclave/core/sgx/once.c:31
31                  *once = 1;
(gdb)
34              oe_spin_unlock(&_lock);
(gdb)
oe_spin_unlock (spinlock=0x7ffff2341ac4 <oe_once._lock>) at ../enclave/core/sgx/spinlock.c:55
55          if (!spinlock)
(gdb)
58          asm volatile("movl %0, %1;"
(gdb)
64      }
(gdb)
oe_once (once=<optimized out>, func=<optimized out>) at ../enclave/core/sgx/once.c:38
38      }
(gdb)
__pthread_self () at ../libc/pthread.c:85
85          if (!(td = oe_get_td()))
(gdb)
oe_get_td () at ../enclave/core/sgx/td.c:180
180         oe_thread_data_t* td = oe_get_thread_data();
(gdb)
oe_get_thread_data () at ../enclave/core/sgx/td.c:179
179     {
(gdb)
oe_get_td () at ../enclave/core/sgx/td.c:181
181         return (td_t*)td;
(gdb)
__pthread_self () at ../libc/pthread.c:88
88          struct __pthread* self = (struct __pthread*)td->pthread;
(gdb)
91      }
(gdb)
__syscall_ret (r=<optimized out>) at ../3rdparty/musl/musl/src/internal/syscall_ret.c:11
11      }
(gdb)
__clock_gettime (clk=<optimized out>, ts=0x7ffff3b4de20) at ../3rdparty/musl/musl/src/time/clock_gettime.c:56
56      }
(gdb)
std::__1::chrono::steady_clock::now () at ../3rdparty/libcxx/libcxx/src/chrono.cpp:208
208             __throw_system_error(errno, "clock_gettime(CLOCK_MONOTONIC) failed");
(gdb)
__errno_location () at ../3rdparty/musl/musl/src/errno/__errno_location.c:6
6               return &__pthread_self()->errno_val;
(gdb)
__pthread_self () at ../libc/pthread.c:82
82          if (oe_once(&_once, _pthread_self_init) != 0)
(gdb)
oe_once (once=0xffffffffffffffff, func=0x7ffff3b53000) at ../enclave/core/sgx/once.c:10
10          if (!once)
(gdb)
18          if (o == 0)
(gdb)
17          OE_ATOMIC_MEMORY_BARRIER_ACQUIRE();
(gdb)
18          if (o == 0)
(gdb)
38      }
(gdb)
__pthread_self () at ../libc/pthread.c:85
85          if (!(td = oe_get_td()))
(gdb)
oe_get_td () at ../enclave/core/sgx/td.c:180
180         oe_thread_data_t* td = oe_get_thread_data();
(gdb)
oe_get_thread_data () at ../enclave/core/sgx/td.c:179
179     {
(gdb)
oe_get_td () at ../enclave/core/sgx/td.c:181
181         return (td_t*)td;
(gdb)
__pthread_self () at ../libc/pthread.c:88
88          struct __pthread* self = (struct __pthread*)td->pthread;
(gdb)
91      }
(gdb)
std::__1::__throw_system_error (ev=1, what_arg=0x7ffff21042d0 "clock_gettime(CLOCK_MONOTONIC) failed")
    at ../3rdparty/libcxx/libcxx/src/system_error.cpp:288
288         throw system_error(error_code(ev, system_category()), what_arg);
(gdb)
__cxa_allocate_exception (thrown_size=32) at ../3rdparty/libcxxrt/libcxxrt/src/exception.cc:577
577             size_t size = thrown_size + sizeof(__cxa_exception);
...

Interesting here is where my debugging session differs:
Breakpoint 1, foo () at /home/anakrish/work/small/tests/oe-bugs/bug1/enclave.cc:10
10	    auto a = high_resolution_clock::now();
(gdb) s
std::__1::chrono::steady_clock::now () at /home/anakrish/work/small/3rdparty/libcxx/libcxx/src/chrono.cpp:207
207	    if (0 != clock_gettime(CLOCK_MONOTONIC, &tp))
(gdb)
__clock_gettime (clk=1, ts=0x7ffff3dd16a0) at /home/anakrish/work/small/3rdparty/musl/musl/src/time/clock_gettime.c:43
43		r = __syscall(SYS_clock_gettime, clk, ts);
(gdb)
__syscall (n=228, x1=1, x2=140737284740768, x3=0, x4=228, x5=0, x6=140737284740640) at /home/anakrish/work/small/libc/sgx/syscalls.c:229
229	    oe_spin_lock(&_lock);
(gdb) n
230	    oe_syscall_hook_t hook = _hook;
(gdb)
231	    oe_spin_unlock(&_lock);
(gdb)
234	    if (hook)
(gdb) s
247	    switch (n)
(gdb)
254	            return _syscall_clock_gettime(n, x1, x2);
(gdb)
_syscall_clock_gettime (n=228, x1=1, x2=140737284740768) at /home/anakrish/work/small/libc/sgx/syscalls.c:139
139	    clockid_t clk_id = (clockid_t)x1;
(gdb)
140	    struct timespec* tp = (struct timespec*)x2;
(gdb)
141	    int ret = -1;
(gdb)
146	    if (!tp)
(gdb)
149	    if (clk_id != CLOCK_REALTIME)
(gdb)
152	        oe_assert("clock_gettime(): panic" == NULL);
(gdb)

I am running off a debug build. Are running off a relwithdebuginfo build?

Can you confirm the line numbers in your debug session dump?
https://github.com/Microsoft/openenclave/blob/2247640d6b5bd5f5abdb133041b87e8fb205f087/libc/sgx/syscalls.c#L146-L147
Your debug session dump seems to be off by 1:
(gdb)
_syscall_clock_gettime (n=0, x1=, x2=) at ../libc/sgx/syscalls.c:147
### 147         if (!tp)

@letmaik I am not able to reproduce this issue.
Can you mail me your enclave and host binaries and point me to the matching SDK revision?

Sorry for the delay. I updated to 0.5, which explains the off-by-one previously. But the behaviour is the same (see below). I mailed you the binaries. This is with Debug for the app, but RelWithDebInfo for OE.
Breakpoint 1, 0x00007ffff2014c74 in foo() ()
(gdb) s
Single stepping until exit from function _Z3foov,
which has no line number information.
std::__1::chrono::steady_clock::now () at ../3rdparty/libcxx/libcxx/src/chrono.cpp:207
207         if (0 != clock_gettime(CLOCK_MONOTONIC, &tp))
(gdb)
__clock_gettime (clk=1, ts=0x7ffff3b02e28) at ../3rdparty/musl/musl/src/time/clock_gettime.c:43
43              r = __syscall(SYS_clock_gettime, clk, ts);
(gdb)
__syscall (n=228, x1=1, x2=140737281797672, x3=1, x4=140737281797896, x5=0, x6=4088438784) at ../libc/sgx/syscalls.c:229
229         oe_spin_lock(&_lock);
(gdb)
oe_spin_lock (spinlock=0x7ffff22f6368 <_lock>) at ../enclave/core/sgx/spinlock.c:37
37          if (!spinlock)
(gdb)
40          while (_spin_set_locked((volatile unsigned int*)spinlock) != 0)
(gdb)
_spin_set_locked (spinlock=0x7ffff22f6368 <_lock>) at ../enclave/core/sgx/spinlock.c:16
16          asm volatile("lock xchg %0, %1;"
(gdb)
oe_spin_lock (spinlock=0x7ffff22f6368 <_lock>) at ../enclave/core/sgx/spinlock.c:40
40          while (_spin_set_locked((volatile unsigned int*)spinlock) != 0)
(gdb)
oe_spin_lock (spinlock=0x7ffff22f6368 <_lock>) at ../enclave/core/sgx/spinlock.c:51
51      }
(gdb)
__syscall (n=228, x1=1, x2=140737281797672, x3=1, x4=140737281797896, x5=0, x6=4088438784) at ../libc/sgx/syscalls.c:230
230         oe_syscall_hook_t hook = _hook;
(gdb)
231         oe_spin_unlock(&_lock);
(gdb)
oe_spin_unlock (spinlock=0x7ffff22f6368 <_lock>) at ../enclave/core/sgx/spinlock.c:55
55          if (!spinlock)
(gdb)
58          asm volatile("movl %0, %1;"
(gdb)
oe_spin_unlock (spinlock=0x7ffff22f6368 <_lock>) at ../enclave/core/sgx/spinlock.c:64
64      }
(gdb)
__syscall (n=228, x1=1, x2=140737281797672, x3=1, x4=140737281797896, x5=0, x6=4088438784) at ../libc/sgx/syscalls.c:234
234         if (hook)
(gdb)
247         switch (n)
(gdb)
254                 return _syscall_clock_gettime(n, x1, x2);
(gdb)
_syscall_clock_gettime (n=0, x1=<optimized out>, x2=<optimized out>) at ../libc/sgx/syscalls.c:146
146         if (!tp)
(gdb)
__syscall (n=<optimized out>, x1=1, x2=<optimized out>, x3=<optimized out>, x4=<optimized out>, x5=<optimized out>,
    x6=<optimized out>) at ../libc/sgx/syscalls.c:277
277     }
(gdb)
__clock_gettime (clk=1, ts=0x7ffff3b02e28) at ../3rdparty/musl/musl/src/time/clock_gettime.c:44
44              if (r == -ENOSYS) {
...

@letmaik  Thanks for the binaries. I am able to reproduce it with the binaries you sent; but not if I build your repro enclave using 0.5 SDK myself in RelWithDebInfo mode.
One thing I noticed that the enclave binary you sent does not have spectre-mitigation code.
Can you also send me the compilation flags used for generating your binary? Also is it using GCC or clang.
This seems to be a subtle issue and maybe the compilation flags would explain why I am not able to reproduce it.
What I have found so far debugging your binary is that the following check returns false and jumps to the end of the function where as it ought to go into the true branch and raise an assertion:
https://github.com/Microsoft/openenclave/blob/26eed5efdeaa200e9ee084ec0aa45ecc7d82aaf1/libc/sgx/syscalls.c#L149-L154

@letmaik
I am able to reproduce it with a RelWithDbgInfo build of OE using gcc/g++.
(It's bit late here and I have to double check my findings).
Can you confirm if that is what you are using too?

This is 0.5.0, with clang 7, RelWithDebInfo, without spectre mitigations (by patching the CMake files).

@anakrish is this on track for v0.6?

I have created reproduction steps for the issue with latest OE SDK here: https://github.com/anakrish/oe-bugs
Findings

The call to oe_abort in libc/syscalls.c must be commented out to reproduce the issue. https://github.com/openenclave/openenclave/blob/923d14af1625723304e304fc8cb5f22d882abc66/libc/syscalls.c#L51-L56
oegdb does not seem to have any bugs. The issue is that when __throw_system_error is called, _Unwind_RaiseException ends up calling oe_abort instead of actually raising/catching the exception.

This indicates that issue is with use of  libunwind within the enclave rather than oegdb.
@mingweishih Can you investigate this when you get a chance? I played around with this; the issues seems to be deep in the guts of libunwind.


share course url without utm params

Description
OSPR-1967
Currently, the course share link only works if you are sharing on Facebook or Twitter. Trying to share with another app will return a blank URL. This PR fixes this.
If you just change to use the parent view and use view.subviews then it will not bomb :)
How to test this PR
Run the app and share the link to something that is not Facebook or Twitter.
Reviewers

[ ] Code review: @saeedbashir
[ ] Code review: @salman2013

Thanks for the pull request, @jagonzalr! I've created OSPR-2006 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams.
Feel free to add as much of the following information to the ticket:

supporting documentation
edx-code email threads
timeline information ("this must be merged by XX date", and why that is)
partner information ("this is a course on edx.org")
any other information that can help Product understand the context for the PR

All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here.
If you like, you can add yourself to the AUTHORS      file for this repo, though that isn't required.     Please see the CONTRIBUTING     file for more information.

@edx/mobile-product @edx/ios-devs I'm not sure if this needs product review or not.

I'm on holiday until the 8th of January, please don't close this PR.

@jagonzalr Please rebase your code with the latest master code, your code is not running on latest xcode 9.2. Thanks

@jagonzalr I'm not feeling comfortable to change Studio generated URL because the URL generation may change in future and that may or may not be compatible with underlying change. I have created a LEARNER-4342 into our backlog to handle empty URL in case of missing UTM parameters or share option is other than facebook/twitter.
cc @staubina @marcotuts

@jagonzalr Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.


can't find bin/syz-fuzzer

when I execute sudo ./bin/syz-manager -config=my.cfg, it gives back:
2017/07/20 21:17:17 bad config syzkaller param: can't find bin/syz-fuzzer
But I do have syz-fuzzer in my ~/Desktop/syz/Go/gopath/src/github.com/google/syzkaller/bin, so how could it happen??

@wtupc96 Ensure your config is defined with relative path till syzkaller dir.


fix(addon-editor): reopen dropdown when clicked another link

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows Conventional Commits
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Refactoring
[ ] Code style update
[ ] Build or CI related changes
[ ] Documentation content changes

What is the current behavior?
Part of #1302
https://user-images.githubusercontent.com/12021443/164423056-f6f7ba98-dd76-49b1-8aca-c36b8ee3bb0e.mov
What is the new behavior?
https://user-images.githubusercontent.com/12021443/164423335-6bb914a4-b1a7-4383-aa51-25c23e40bc26.mov
Does this PR introduce a breaking change?

[ ] Yes
[x] No

@waterplea You can probably add @HostListener('window:selectionchange') and refresh the url when necessary.
Sorry I tried but it doesn't work

@waterplea You can probably add @HostListener('window:selectionchange') and refresh the url when necessary.
Sorry I tried but it doesn't work

I just tested it and it works. selectionchange event is dispatched on document, not on window as I initially thought.


l4d2modmanager: Add version 1.0.4

l4d2modmanager is a mod manager for the game Left 4 dead 2.

What package release type is this?

[x] stable
[ ] beta
[ ] dev/nightly/canary

I followed the bucket's manifest standards?

[x] I have read the Contributing Guide.
[x] properly named and capitalized shortcuts?
[x] autoupdate and checkver entry
[x] persist defined with config/data/user/portable/textures/saves folder(s) specific for the app?
[ ] a pre_install script to auto-enable portable mode (if needed)?

[ ] a pre_install script creates runtime created files specified in persist (ensures symlinks properly get created)

[x] license identifier and url
[x] a short terse description matching existing style.
[x] url to the release along with its sha256 hash
[ ] bin entry for main binary

[ ] if beta, dev, etc: does bin shim have variant appended to the name? (e.g appname-dev)

[x] passes bin/checkver.ps1 and bin/checkurls.ps1
[x] tested install, checked persist, no errors.
[x] manifest is sorted to spec
[x] manifest follows spec: appname or appname-variant (e.g citra-canary or dolphin-dev)
[x] I tested the package and it runs in portable mode. I have verified the symlinks are correct in the persist folder and working.
[x] I will maintain this manifest and promptly fix it in the event it breaks.

/verify


chore(main): release 0.3.2

:robot: I have created a release beep boop
0.3.2 (2023-11-27)
Bug Fixes

now setting the default colour for blackhole plasmids instead of erroring out with KeyError (fa966d2)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/leoisl/plasnet/releases/tag/v0.3.2 :sunflower:


Build failures with LLVM 13.0.0-++20210330111113+6d2fb3cefba6-1~exp1~20210330091825.3874

Example: https://github.com/ClangBuiltLinux/continuous-integration2/runs/2234582121?check_suite_focus=true
However, if I check out LLVM at 6d2fb3cefba6 and try to reproduce outside of TuxSuite / tuxmake, it works fine :(
$ git checkout 6d2fb3cefba6
Note: switching to '6d2fb3cefba6'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 6d2fb3cefba6 [clangd] Perform merging for stale symbols in MergeIndex

$ cmake \
-B build \
-G Ninja \
-Wno-dev \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DLLVM_CCACHE_BUILD=ON \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_ENABLE_PROJECTS="clang;lld" \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DLLVM_USE_LINKER=lld \
llvm
...

$ ninja -C build check-clang check-lld check-llvm check-llvm-unit
...

$ export PATH=${PWD}/build/bin:${PATH}

$ make -C "${SRC_FOLDER}"/linux -skj"$(nproc)" LLVM=1 LLVM_IAS=1 O=build/x86_64 distclean defconfig bzImage
...

$ echo ${?}
0

@sylvestre is this something in Debian's patches?

We appear to be back in action with 13.0.0-++20210330100633+ae217bf1f327-1~exp1~20210330201344.3875.


Announcing the Continuation of jest-cucumber

Hello everyone,
I wanted to inform you that due to the discontinuation of maintenance by the original author of jest-cucumber, which I respect, I have decided to fork the project and take over its maintenance. You can find the new project here: cucumber-runner.
I plan to release a v1.0.0 version soon, which will initially be a simple update of the codebase (dependencies, linting, etc.) without the addition of new features. This is intended to facilitate the transition for existing projects.
Following this, new features and bug fixes will be added as usual.
I will keep you updated on the progress of this project.
Thank you for your understanding and support.

See this issue comment.


Problems reading folder content with code snippets

I am working on an instance of SharePoint Online and we have created some folders with files inside them, some folders have no files. I want to check folders with no file and return a message which shouldn't be a problem. I am using VBScript for these checks and no matter how I try, I get an error 403 or access denied response.  I have checked stack overflow and nothing seems to be there for this problem.
Please note that I am a developer and not the admin. I can also view these folders directly through the browser with no problems. The application I am updating is a legacy application and the environment needs to be classic ASP with vbscript.
NB: I am open to other options though.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: da51381a-7a39-8c31-8af8-b05ecafc377a
Version Independent ID: 693ecf1c-8e75-1f61-0264-fbdefaff0968
Content: Working with folders and files with REST
Content Source: docs/sp-add-ins/working-with-folders-and-files-with-rest.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

If work when you're using the browser because you have logged into SharePoint and your session is cookie'd with your successful auth details.
403 = forbidden which implies you aren't passing any credentials along in your request.
How are you making the request? What API are you using? How are you authenticating?
The recommended way to do this remotely is to use the SharePoint REST API or Microsoft Graph API to query the contents of the doc library. When submitting that request, you need to include an OAuth token for your application in the HTTP Authorization request header.
A few links to get you started:

https://docs.microsoft.com/en-us/graph/auth-overview?toc=./ref/toc.json&view=graph-rest-1.0
https://docs.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0


Add linting via flake8 or similar

see https://antipatterns.blogspot.com/2024/01/linting-python-code-using-flake8-simple.html

done


Renter Estimated Fee is extremelly high

https://github.com/NebulousLabs/Sia/issues/1930
Here is estimation:
https://github.com/NebulousLabs/Sia-UI/blob/master/plugins/Files/js/components/allowancedialog.js#L16

https://github.com/NebulousLabs/Sia/blob/b174d012a09466d907495203f0d51b261269d9c2/modules/renter/contractor/formcontract.go#L46-L57
Why this is not used for (close to) real extimated fee?