Make Header Fixed on Scroll

The current header scrolls up with the page content, making it unavailable when users scroll down.

kindly please assign me with this task @subhadipbhowmik
You need some JS to do scroll events. The best way to do this is to set a new CSS class for the fixed position that will get assigned to the relevant div when scrolling goes past a certain point.

Hello Bio Branch Team ,
My name is Ishan, and I am a BTech student with experience in full-stack development. I would love to contribute to your project. Here is my LinkedIn profile: https://www.linkedin.com/in/ishanguptaofficial/.
Could you please assign me to this issue? Looking forward to your response.
Best regards,
Ishan

@subhadipbhowmik you added the labels but you didnt assign it to me. Please assign it to me as i opened this issue

@subhadipbhowmik I raised this issue and according to the first come first serve policy I should be the only one assigned this issue. I request to unassign the other two


Enhance Contact Merge Page

Issue by jamesmelville from Tuesday Dec 03, 2013 at 22:23 GMT
Originally opened as https://github.com/SalesforceFoundation/Contacts_and_Organizations/issues/37

The page should implement pagination over the returned list of Contacts. For example it is possible to have a case where the search criteria match a large number of records and it is not possible to refine the criteria further to limit that list. If the records you want to merge don't appear in the top 20 then you're out of luck. (and SOSL can now return up to 2,000 results).

I've increased the limit from 20 to 100 on the page.  I think that is good enough and we should not consider doing pagination support at this time.  It is not clear to me that a future version based on Lightning and being mobile ready would use pagination.

Included in beta release version 3.39 (Beta 1) and higher

Included in production release version 3.39


Use url field for file items from the API.

This means others who consume the API can also find the links
to the files, and simplifies our handling of file attachments.

That makes sense. But I don't see any changes to models.py or backend/views.py. Where is the STATIC_HOST injected into the url field?

That was done in a previous merge, this merge just finishes off the dangling bits I missed. See https://github.com/Code4SA/pmg-cms-2/blob/master/backend/models.py#L340

Great, thanks!

that's deployed


Trying to save a model compiled with tfa.MultiOptimizer | gives error saying TypeError: ('Not JSON Serializable:', ...

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Kaggle Kernel
TensorFlow version and how it was installed (source or binary): binary(pip)
TensorFlow-Addons version and how it was installed (source or binary): 0.14.0 binary(pip)
Python version: 3.7.12
Is GPU used? (yes/no): tried both

Describe the bug
I'm trying to save a model which is developed and compiled with MultiOptimizer provided by tensorflow-addons. But it keeps giving me an error saying:
TypeError: ('Not JSON Serializable:', ...

I tried with different models, environments, and versions.
Code to reproduce the issue
Kernel: https://www.kaggle.com/code/maifeeulasad/tfa-multioptimizer-model-save?scriptVersionId=108636090
Other info / logs
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/tmp/ipykernel_20/1141714396.py in <module>
     24         batch_size=32,
     25       callbacks=callbacks,
---> 26         validation_data=(valid_xs, valid_ys))

/opt/conda/lib/python3.7/site-packages/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
   1228           epoch_logs.update(val_logs)
   1229
-> 1230         callbacks.on_epoch_end(epoch, epoch_logs)
   1231         training_logs = epoch_logs
   1232         if self.stop_training:

/opt/conda/lib/python3.7/site-packages/keras/callbacks.py in on_epoch_end(self, epoch, logs)
    411     logs = self._process_logs(logs)
    412     for callback in self.callbacks:
--> 413       callback.on_epoch_end(epoch, logs)
    414
    415   def on_train_batch_begin(self, batch, logs=None):

/tmp/ipykernel_20/3193528328.py in on_epoch_end(self, epoch, logs)
      3         print('name: ' + self.model._name)
      4         self.model.save('epoch-' + str(epoch + 1) + '-' + self.model._name + '.h5',overwrite=True,
----> 5     include_optimizer=True,)
      6
      7 callbacks = [ModelSaverCallback()]

/opt/conda/lib/python3.7/site-packages/keras/engine/training.py in save(self, filepath, overwrite, include_optimizer, save_format, signatures, options, save_traces)
   2144     # pylint: enable=line-too-long
   2145     save.save_model(self, filepath, overwrite, include_optimizer, save_format,
-> 2146                     signatures, options, save_traces)
   2147
   2148   def save_weights(self,

/opt/conda/lib/python3.7/site-packages/keras/saving/save.py in save_model(model, filepath, overwrite, include_optimizer, save_format, signatures, options, save_traces)
    144           'or using `save_weights`.')
    145     hdf5_format.save_model_to_hdf5(
--> 146         model, filepath, overwrite, include_optimizer)
    147   else:
    148     with generic_utils.SharedObjectSavingScope():

/opt/conda/lib/python3.7/site-packages/keras/saving/hdf5_format.py in save_model_to_hdf5(model, filepath, overwrite, include_optimizer)
    112       if isinstance(v, (dict, list, tuple)):
    113         f.attrs[k] = json.dumps(
--> 114             v, default=json_utils.get_json_type).encode('utf8')
    115       else:
    116         f.attrs[k] = v

/opt/conda/lib/python3.7/json/__init__.py in dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, cls, indent, separators, default, sort_keys, **kw)
    236         check_circular=check_circular, allow_nan=allow_nan, indent=indent,
    237         separators=separators, default=default, sort_keys=sort_keys,
--> 238         **kw).encode(obj)
    239
    240

/opt/conda/lib/python3.7/json/encoder.py in encode(self, o)
    197         # exceptions aren't as detailed.  The list call should be roughly
    198         # equivalent to the PySequence_Fast that ''.join() would do.
--> 199         chunks = self.iterencode(o, _one_shot=True)
    200         if not isinstance(chunks, (list, tuple)):
    201             chunks = list(chunks)

/opt/conda/lib/python3.7/json/encoder.py in iterencode(self, o, _one_shot)
    255                 self.key_separator, self.item_separator, self.sort_keys,
    256                 self.skipkeys, _one_shot)
--> 257         return _iterencode(o, 0)
    258
    259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

/opt/conda/lib/python3.7/site-packages/keras/saving/saved_model/json_utils.py in get_json_type(obj)
    140     return obj.value
    141
--> 142   raise TypeError('Not JSON Serializable:', obj)

TypeError: ('Not JSON Serializable:', <tf.Tensor 'gradient_tape/model_w_multioptimizer/dense_2/MatMul:0' shape=(3, 12) dtype=float32>)

Ref: https://github.com/tensorflow/tensorflow/issues/58184

Can you see if the tests we have introduce with https://github.com/tensorflow/addons/pull/2719 are covering your case?
If not can you extend the test with a PR to cover your case?
Thanks

@bhack it covers my case. Not sure what is causing this error. Though I need to test with a few different versions of TF and TF-addons.

Ok let me know.

Okay, I was able to reproduce this issue with TF-2.6.4 and TFA-0.14.0. But couldn't reproduce it in the current latest TF-2.10.0 and TFA-0.18.0. I guess somehow upgrading the kernel will resolve my issue or I can simply override that method MultiOptimizer.get_config, as already implemented here: https://github.com/JackWindows/tf-addons/blob/1579bb1938c640fc36b224c3d903bfd418a3d40e/tensorflow_addons/optimizers/discriminative_layer_training.py#L146-L154.

    Args:
        obj: the object to serialize

    Returns:
        JSON-serializable structure representing `obj`.

    Raises:
        TypeError: if `obj` cannot be serialized.
    """
    # if obj is a serializable Keras class instance
    # e.g. optimizer, layer
    if hasattr(obj, 'get_config'):
      return {'class_name': obj.__class__.__name__, 'config': obj.get_config()}

    # if obj is any numpy type
    if type(obj).__module__ == np.__name__:
      if isinstance(obj, np.ndarray):
        return obj.tolist()
      else:
        return obj.item()

    # misc functions (e.g. loss function)
    if callable(obj):
      return obj.__name__

    # if obj is a python 'type'
    if type(obj).__name__ == type.__name__:
      return obj.__name__

    if isinstance(obj, tf.compat.v1.Dimension):
      return obj.value

    if isinstance(obj, tf.TensorShape):
      return obj.as_list()

    if isinstance(obj, tf.DType):
      return obj.name

    if isinstance(obj, collections.abc.Mapping):
      return dict(obj)

    if obj is Ellipsis:
      return {'class_name': '__ellipsis__'}

    if isinstance(obj, wrapt.ObjectProxy):
      return obj.__wrapped__

    if isinstance(obj, tf.TypeSpec):
      try:
        type_spec_name = type_spec.get_name(type(obj))
        return {'class_name': 'TypeSpec', 'type_spec': type_spec_name,
                'serialized': obj._serialize()}  # pylint: disable=protected-access
      except ValueError:
        raise ValueError('Unable to serialize {} to JSON, because the TypeSpec '
                         'class {} has not been registered.'
                         .format(obj, type(obj)))

    if isinstance(obj, enum.Enum):
      return obj.value

>     raise TypeError('Not JSON Serializable:', obj)
E     TypeError: ('Not JSON Serializable:', <tf.Tensor 'gradient_tape/some-model/dense/MatMul:0' shape=(3, 2) dtype=float32>)

../../../../.local/lib/python3.8/site-packages/keras/saving/saved_model/json_utils.py:142: TypeError
=================================================== warnings summary ===================================================
../../../../.local/lib/python3.8/site-packages/tensorflow/python/autograph/impl/api.py:22
/home/maifee/.local/lib/python3.8/site-packages/tensorflow/python/autograph/impl/api.py:22: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=============================================== short test summary info ================================================
FAILED discriminative_layer_training_test.py::test_serialization_after_training[cpu] - TypeError: ('Not JSON Serializ...
============================================= 1 failed, 1 warning in 2.00s =============================================

#2719
I tried on TF-2.6.2, rewrited the discriminative_layer_trainning.py file as it mentioned here:
https://github.com/JackWindows/tf-addons/blob/1579bb1938c640fc36b224c3d903bfd418a3d40e/tensorflow_addons/optimizers/discriminative_layer_training.py#L146-L154. But there still raised 'Not JSON Serializable' error. I'm wondering if there is anything I can do with TF-2.6.2  to solve this issue? Since TF-2.6  is required for another package  in my task, I can only stick on it.
P.S. everything would go well if I chose not to save optimizer status, otherwise it failed.


handle some corrupt m8 lines without crashing

https://github.com/chanzuckerberg/idseq-pipeline/issues/144

Fix confirmed.


Can we DISABLE links within the PDF document?

is it possible to DISABLE links in the PDF displayed in PDF.js embedded iframe?

Yes. For component-based viewers, you can remove the annotationLayerFactory (https://github.com/mozilla/pdf.js/blob/master/examples/components/pageviewer.js#L56). Otherwise, you can edit https://github.com/mozilla/pdf.js/blob/master/src/display/annotation_layer.js#L270 to not display link annotations.


How can I install this?

Hi! I wanna try out your hunger games bot for my discord server. But I am having some troubles, I have everything needed installed. I can't figure out how to install it though. I already have a token. If you can help me out with this, that would be great!

Hi there! Sorry the bot is really confusing, this was a bit of a shitpost project that I intended to revisit later.
I believe the way to get it working is to put your token into config_example.py and then rename the file to config.py, and run hungrybot.py.


all icons blank when uploaded from Fontello

I'm trying to use custom SVG icons on elementor. After uploading using Fontello, none of the icons show. They are all blank.
This is also the case when trying to upload any of the premade Fontello icons. After uploading the zip file with any selected icons, it shows the file name but no icons.
Please help if possible! I've been pulling my hair out trying to get it to work! (and I already don't have enough hair)
Thanks
Sam

I have the same problem. I've checked all the possible options and nothing. Sometimes I only see squares, sometimes nothing. Is it possible that I'm doing something wrong or is there another problem?
Thanks, Kuba

Is this still actual? If yes, can you provie sample how to reproduce?


No more me

Extend the work of @Zegnat by supporting multiple trusted endpoints. I ran this manually against SelfAuth and IndieAuth\Client.

This is interesting. I kinda dropped using Mintoken when the IndieAuth specification dropped explicitly having tokens seen as something truly separate from logins. Did you test this with any token users, like maybe a Microsub client?
PRs are much appreciated, even if I am not super fast to respond and merge. That is mostly because Mintoken has always been more proof of concept than anything else. And not having it in use myself means testing changes is a lot tougher.

The short answer is no. I have only successfully tried it with IndieAuth\Client.
The long answer is that I heard about IndieAuth about a month ago and my first goal is to get Apache HTTPd to authenticate a user. However, I have struggled to find a module for IndieAuth or any documentation on how to configure the OIDC or OAuth2 modules for use with IndieAuth. I have been quite happy with SelfAuth as a minimal IdP to get me started but need MinToken to get the latter working. This change is one roadblock I have encountered but I have yet to accomplish something seemly so simple. All that said, I am far away from attempting a Microsub client or trying to understand them...
I really like IndieAuth's ability to share restricted content with people that I don't have to register on my system and I really like that MinToken lets you select which scopes you give permission for (OIDC has added telling you but it still ends up being an "all or nothing" approval). A feature MinToken could use is letting services post descriptions for their scopes; but I hope to raise another PR within the next few weeks to propose this officially.

However, I have struggled to find a module for IndieAuth or any documentation on how to configure the OIDC or OAuth2 modules for use with IndieAuth.

Interesting, are you thinking of e.g. mod_oauth2 to have Apache check the tokens sent by the user? That shouldn’t be too hard. Mintoken predates this update and cannot help you as is, but IndieAuth explicitly supports Token Introspectionn which looks to be what you need for that.
I am not fully up to date on the latest IndieAuth implementations, but someone in the IndieWeb chat might have an immediate recommendation for one that supports introspection. (Probably try #indieweb-dev.)

A feature MinToken could use is letting services post descriptions for their scopes; but I hope to raise another PR within the next few weeks to propose this officially.

I am unsure what you mean here. The consumer of tokens (i.e. Apache HTTPd for you) decides what a token does. So you would want your Apache configuration to somehow be reflected by the IndieAuth flow? That would have to go into the authorization endpoint, as that is the only part that visually shows something to the user.

However, I have struggled to find a module for IndieAuth or any documentation on how to configure the OIDC or OAuth2 modules for use with IndieAuth.

Interesting, are you thinking of e.g. mod_oauth2 to have Apache check the tokens sent by the user? That shouldn’t be too hard. Mintoken predates this update and cannot help you as is, but IndieAuth explicitly supports Token Introspectionn which looks to be what you need for that.
I am not fully up to date on the latest IndieAuth implementations, but someone in the IndieWeb chat might have an immediate recommendation for one that supports introspection. (Probably try #indieweb-dev.)

Yes, mod_oauth2 or, since the former only only checks a token and I see no way for it to initiate the flow, mod_auth_oidc. Those in in the IndieWeb chat don't seem particularly interested in this level (I suspect they do their auth in the application after HTTPd has handed over control), but they are nice. I was afraid that introspection was its own beast, seems I was correct :(
As of last night I did figure out this was possible with mod_authnz_external + a database...which is not particularly secure since I cannot tie the request with the device like with sessions, so someone can easily steal the login...

However, I have struggled to find a module for IndieAuth or any documentation on how to configure the OIDC or OAuth2 modules for use with IndieAuth.

Interesting, are you thinking of e.g. mod_oauth2 to have Apache check the tokens sent by the user? That shouldn’t be too hard. Mintoken predates this update and cannot help you as is, but IndieAuth explicitly supports Token Introspectionn which looks to be what you need for that.
I am not fully up to date on the latest IndieAuth implementations, but someone in the IndieWeb chat might have an immediate recommendation for one that supports introspection. (Probably try #indieweb-dev.)

Yes, mod_oauth2 or, since the former only only checks a token and I see no way for it to initiate the flow, mod_auth_oidc. Those in in the IndieWeb chat don't seem particularly interested in this level (I suspect they do their auth in the application after HTTPd has handed over control), but they are nice. I was afraid that introspection was its own beast, seems I was correct :(
As of last night I did figure out this was possible with mod_authnz_external + a database...which is not particularly secure since I cannot tie the request with the device like with sessions, so someone can easily steal the login...

...and I just figured out mod_oauth2, which additionally needs #15 to work.

A feature MinToken could use is letting services post descriptions for their scopes; but I hope to raise another PR within the next few weeks to propose this officially.

I am unsure what you mean here. The consumer of tokens (i.e. Apache HTTPd for you) decides what a token does. So you would want your Apache configuration to somehow be reflected by the IndieAuth flow? That would have to go into the authorization endpoint, as that is the only part that visually shows something to the user.

Just figured out why you were confused--this would be a SelfAuth enhancement, not for here at all. Whoops...and I was talking ahead of myself anyway.


Task/reverse binary classification probability

Could you please fix the failing unit-test @mattbit? tests/test_model_postprocess.py::test_postprocess_fixes_missing_binary_class


require torchvision

Thanks for the great library! I think torchvision==0.11.1 should be added to requirements.txt?

Thanks for pointing it out! I will add torchvision to the requirement shortly.

Thanks for your suggestion once again! I've finally got time to add torchvision to the requirement.


JSON middleware should skip empty body

I am building a client that has HEAD methods which return empty bodies. The "" body should not pass as a decodable here.
When I change it to: def decodable_body?(env), do: (is_binary(env.body) && env.body != "") || is_list(env.body) it works as expected.
I would propose a PR but it is really a small change...
Thanks in advance for your work! If possible, could you release a new version with this fix?

@cs-victor-nascimento does those HEAD requests have Content-Type: application/json ?

Yep they do :)
Thanks for the quick fix! I've forgotten the list case...


Cannot build the plugin from the git repo

Hi, I downloaded the zip into my VS2017 and I cant build the source code.
Basically reference to assembly named "Keepas" is missing - and I cant find it.
Installing nuget Keepass and/or KeepasLib packages did not help either.
How can I build this plugin by myself?

Just add a reference to the KeePass.exe from your installation.


Some devDependencies should be dependencies?

I noticed that d3-interpolate and d3-format are listed under devDependencies rather than dependencies in package.json, however they are hard dependencies (as in, the Rollup build breaks if they are not installed). Perhaps these should be promoted to dependencies?
Here are some notes from my experience trying to use only the ticks functionality of d3-scale:
When importing linear from d3-scale, I get the following error when running Rollup:
Could not find package d3-interpolate (required by /Users/curran/repos/data-reduction/node_modules/d3-scale/src/linear.js)
Also, after I npm install d3-interpolate, I get another error:
Could not find package d3-color (required by /Users/curran/repos/data-reduction/node_modules/d3-interpolate/src/interpolators.js)
Now I need to install d3-color to use d3-scale, however I just want to use the ticks functionality from d3-scale. This feels like it should not be necessary.
After installing d3-color, I get another error:
Could not find package d3-format (required by /Users/curran/repos/data-reduction/node_modules/d3-scale/src/tickFormat.js)
After installing d3-format, the build works. In the end, it is necessary to install d3-interpolate, d3-color and d3-format in order to use the tick generation functionality from d3-scale.

The distinction between devDepedencies and dependencies is an NPM concept, not an ES6 concept. They are listed as devDepedencies because you can npm install d3-scale and then require("d3-scale") without needing to also install the devDependencies. The CommonJS main defined in the package.json points to the built file (build/scale.js).
If you’re running d3-bundler (the thin wrapper on Rollup) inside the d3-scale repo, then yes, you’ll need to install the devDependencies. That’s standard practice when you are doing development inside a repository (as opposed to just using require to load it).
If you’re running d3-bundler outside the d3-scale repo (as demonstrated by the examples in the d3-bundler repo), then you’ll need to install the d3-scale dependencies explicitly at the top level. That’s because d3-bundler requires all the modules to be at the top-level, so that there’s no duplication if multiple modules share the same dependencies. For example, both d3-scale and d3-interpolate depend on d3-color, and you don’t want to rollup two copies of that code.
So, if you want to just import linear from the d3-scale repo, you need to first install d3-scale and all of its dependencies:
npm install d3-scale d3-arrays d3-color d3-format d3-interpolate

You also need to install d3-bundler, but you can do that globally if you prefer:
npm install -g d3-bundler

Then you need to define an index module that imports and re-exports whatever code you want to use. Here’s a simple example index.js that creates a d3-like object with only d3.scale.linear:
import {linear} from "d3-scale";

export default {
  scale: {
    linear: linear
  }
};

Lastly, build the bundle:
d3-bundler --format=umd --name=d3 -- index.js > d3.js

In d3/d3-bundler#1, I mention having a d3-bundler --install command (or similar) that would somehow compute the transitive closure of dependencies and npm install them. I’d like to do that, but I also want to build a web interface for point-and-click custom builds. If you want to help with either of those things, that would be great. :grin:

Oh yes I see what you mean - thank you for the reminder that devDepedencies and dependencies relate only to the CommonJS build. That makes total sense the way you explain it, closing the issue. Thanks also for the info on how to create a custom D3 bundle.
The d3-bundle work is very cool, but currently I am using your ES6 modules directly via Rollup in my own ES6 modules, not using d3-bundler at all (here's one example). I suppose in this case, I should include the ES6-land dependencies as devDependencies.
I'm not sure if I am taking the right approach by using your ES6 modules directly via Rollup, perhaps I should start experimenting with using d3-bundler. It seems though that if my project is using ES6 and Rollup, it makes sense not to touch d3-bundler. I'm not sure..

Yeah. The only thing that’s different between d3-bundler and Rollup is that d3-bundler forces all external imports (e.g., import {linear} from "d3-scale") to be resolved at the top level node_modules. It would certainly be nice to have a more established practices for releasing libraries as ES6 modules (with dependencies on other external ES6 modules), but I think we’re kind of figuring things out as we go here.

I was under the impression that Rollup does exactly that, by looking at jsnext:main (in defaultExternalResolver). So import {linear} from "d3-scale" will be resolved at the top level node_modules (d3-scale/index.js) via the jsnext:main declaration in d3-scale/package.json. It sounds like you are saying d3-bundler forces only this behavior, and does not allow any other kinds of external resolving to happen.
In an ideal world, it would be cool to have something like jsnext:dependencies as a special property of package.json for ES6 packages to declare their dependencies on other ES6 packages that live in NPM. Then there could be some tool that wraps npm install and traverses the jsnext:dependencies dependency graph. Or, maybe such an installer tool could just assume that all external imports correspond to NPM modules. I could imagine a command rollup install that does this, because Rollup already can parse the ES6 dependency graph structure from source files. I wonder if this is something @Rich-Harris has thought about...
Indeed we are in the wild west of ES6, but the way you have set things up is the cleanest and simplest I have seen so far, and I'm thrilled that I can actually write code that depends on the new d3 modules via Rollup and NPM and actually works.

The issue with Rollup as it currently stands is that it allows external imports to be resolved locally (like Node does), which can lead to duplicate code. I might be okay with duplicate code if the versions were different, but even with identical versions the external imports result in duplicate code.
For example, let’s imagine that d3-scale depended on d3-color directly (it doesn’t, but imagine…), so its dependencies are: d3-arrays, d3-color, d3-format, and d3-interpolate. d3-interpolate also depends on d3-color. And again for the sake of argument lets say that these dependencies are listed in the package.json dependencies, not devDependencies, so the resulting tree structure looks like this:
d3-scale/
  node_modules/
    d3-arrays/
    d3-color/
    d3-format/
    d3-interpolate/
      node_modules/
        d3-color/

If there’s code in d3-scale that says import {rgb} from "d3-color"; and code in d3-interpolate that says the same import {rgb} from "d3-color";, they will resolve to different symbols (and thus duplicate code) because d3-interpolate has a copy of d3-color available in its own node_modules, rather than using the top-level one in d3-scale.
If you remove the d3-color from d3-interpolate, you no longer get duplicate code, but it seemed error-prone to allow external imports to be resolved this way. If people actually relied on this behavior to install nested dependencies, you can see how it would quickly duplicate code. Like imagine if d3-format also depended on d3-color: now you have three copies of it.
So d3-bundler forces you to install it at the top-level. It sucks that this requires you knowing the transitive closure of all dependencies, but I think we can fix that by having d3-bundler compute the transitive closure of dependencies based on some initial set of direct dependencies… perhaps as jsnext:dependencies… and then install everything to node_modules.
The other thing that d3-bundler fixes is rollup/rollup#24 but that’s trivial. :grin:

Oops, forgot https://github.com/rollup/rollup/issues/24 was still open... will get to work on fixing that.
Aye, it's vexed. Rollup's default resolver just mimics the node resolver, the only change being that it looks for jsnext:main instead of main. I think the package manager (npm) is probably better equipped than the bundler (Rollup) to handle deduping (especially when you have thorny situations like<EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>as nested dependencies, and you want to be maximally efficient without violating semver constraints), though I'm not sure if npm dedupe handles devDependencies. (It looks like npm 3 will default to flatter installs, incidentally.)
Pragmatically, I think d3-bundler supplying a custom resolver is the best solution, at least for the moment. Ultimately we need a package manager and a bundler that work together to solve these problems, and I think JSPM will be it (some progress towards integrating Rollup into JSPM here).
That doesn't solve @curran's problem though. I wonder if the solution for people who want to use D3's ES6 modules without using d3-bundler is for there to be a master d3 package that simply re-exports bindings from individual packages? Then rather than import {rgb} from 'd3-color', it'd be import {rgb} from 'd3'.

Or, if the package.json of each D3 package declares JSPM dependencies, then JSPM can be used as a package manager for installing, and Rollup can be used for bundling.
JSPM dependencies can be declared like this:
{
  "name": "d3-scale",
  ...
  "main": "build/scale",
  "jsnext:main": "index",
  ...
  "devDependencies": {

    "faucet": "0.0",
    "tape": "4",
    "uglifyjs": "2"
  },
  "jspm": {
    "dependencies": {
      "d3-arrays"<EMAIL_ADDRESS>      "d3-color"<EMAIL_ADDRESS>      "d3-format"<EMAIL_ADDRESS>      "d3-interpolate"<EMAIL_ADDRESS>    }
  }
}

In this way, JSPM could be used solely as a package manager, and Rollup could be used solely as a bundler. The two tools don't really need to know about each other to be used together in a development workflow. Just an idea..
I did some experiments:
If I run:
jspm install npm:d3-arrays npm:d3-color npm:d3-format npm:d3-interpolate

The following package.json is generated:
{
  "jspm": {
    "dependencies": {
      "d3-arrays"<EMAIL_ADDRESS>      "d3-color"<EMAIL_ADDRESS>      "d3-format"<EMAIL_ADDRESS>      "d3-interpolate"<EMAIL_ADDRESS>    }
  }
}

At this point if I delete jspm_packages, then run
jspm install

Then JSPM generates the following directory structure:
.
├── config.js
├── jspm_packages
│   ├── npm
│   │   ├──<EMAIL_ADDRESS>│   │   │   ├── LICENSE
│   │   │   ├── README.md
│   │   │   ├── build
│   │   │   │   ├── arrays.js
│   │   │   │   └── arrays.min.js
│   │   │   ├── index.js
│   │   │   ├── package.json
│   │   │   └── src
│   │   │       ├── ascending.js
│   │   │       ├── bisect.js
│   │   │       ├── bisector.js
... source files
│   │   ├──<EMAIL_ADDRESS>│   │   ├──<EMAIL_ADDRESS>... source files
│   │   ├──<EMAIL_ADDRESS>│   │   ├──<EMAIL_ADDRESS>... source files
│   │   ├──<EMAIL_ADDRESS>│   │   ├──<EMAIL_ADDRESS>... source files
│   │   └──<EMAIL_ADDRESS>│   ├── system-csp-production.js
│   ├── system-csp-production.js.map
│   ├── system-csp-production.src.js
... source files
└── package.json

15 directories, 117 files

So JSPM basically does the installing that we need. However it seems like it also does some things that we don't need if we are using it just to install packages, like the intermediate files e.g<EMAIL_ADDRESS>whose contents look like this:
module.exports = require("npm:d3-arrays@0.0.4/build/arrays");

It also installs System.js (and I see no way to turn this off), which we also don't need if we are using Rollup for bundling.
Lastly it generates a config.js, which maps names like "d3-arrays" to the directories they live in, like<EMAIL_ADDRESS>This seems unnecessary, because the mapping is already defined in package.json JSPM dependencies.
In order to make this work, Rollup needs to know how to resolve external imports that live in the JSPM directory structure. This could be implemented by a simple resolver that looks into package.json jspm.dependencies, then resolves into the JSPM directory structure. The config.js seems like it should not be necessary.
It would be ideal if JSPM and Rollup could be used together, and the only thing that would need to change is package.json. I wish there were a "package manager only" mode of JSPM that only did the bare minimum required for package management, leaving out the following generated files:

config.js
system-csp-production.js, system-csp-production.js.map, system-csp-production.src.js
intermediate source files like<EMAIL_ADDRESS>
I wonder if @guybedford has thought about this case - where one wants to use JSPM as a package manager only, and not as a bundler, and without SystemJS.

@mbostock npm@3 has now been out and is in fairly widespread use. It flattens dependencies by default, so the problem you mention:

d3-scale/
node_modules/
d3-arrays/
d3-color/
d3-format/
d3-interpolate/
node_modules/
d3-color/
If there’s code in d3-scale that says import {rgb} from "d3-color"; and code in d3-interpolate that says the same import {rgb} from "d3-color";, they will resolve to different symbols (and thus duplicate code)...

is no longer an issue. (`d3-color` required by `d3-interpolate` now resolves to the same `d3-color` as required by `d3-scale`, as long as they are the same version.) Further, even for people still using `npm@2`, most modern bundlers (e.g. `webpack`) run module de-duplication anyway to prevent such code duplication.

Given this, would you reconsider moving hard `devDependencies` to `dependencies`, and compiling the (at least non-minified) builds such that they use `require` calls to access their dependencies, rather than folding dependencies into the compiled build?

This is what extremely popular libraries like `lodash` (see the completely modularized [npm build](https://github.com/lodash/lodash/blob/npm/collection/invoke.js#L1)) and `React` (npm build not posted on Github, but see `npm i react && cd node_modules/react`) are doing these days. (`lodash` is actually very similar to `d3` in terms of its size and (complicated) modularity.)

The current method makes it much more difficult for bundlers to de-duplicate code, and essentially *forces* the use of `d3-bundler`, which, while a nice tool on its own, is a pain to integrate into larger build pipelines. (It wouldn't be that bad if it only had to be done once, but it has to be redone every time new parts of `d3` are used.) I don't see why this should be necessary when vanilla `npm` now already solves this problem.

I realize this is just a stepping stone on the road to ES6 modules anyway, but it would be a really nice improvement in the meantime. (And just to be clear, you would still use ES6 modules in the source, but have Rollup compile to CommonJS imports for the npm build.)

**TL;DR**: switching to `dependencies` and CommonJS imports for the `npm` build is standard practice, wouldn't interfere with `d3-bundler`, `Rollup`, or ES6 modules, and would alleviate a huge pain point when using vanilla `npm` and/or other bundlers.

Thanks for the suggestion, @billyjanitsch. I’ve switched the devDependencies on other D3 modules to be dependencies (across all D3 modules), and upgraded to the latest version of Rollup. The main entry point is now a CommonJS build with external dependencies, though I’m also providing pre-built UMD bundles in the NPM repository and as a standalone zip file for convenience.

@mbostock Thanks! Quick note -- it looks like in some of your commits across the modules, you've changed the build script and updated the dependencies but haven't actually moved them from devDependencies to dependencies (example).

The one you linked is intentional: d3-arrays is only used by d3-random for testing. If you find another one that’s incorrect, please let me know.

Ah, my mistake, sorry.


Amplify with EC2 resolvers instead of Lambda?

Note: If your feature-request is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Is your feature request related to a problem? Please describe.
So we know amplify can support lambda resolvers - however, we know lambda functions can be expensive if they are long-running - do we have support to launch an ec2 container and that completes the resolution?
Describe the solution you'd like
amplify add ec2-instance
mutation test(input) @ec2-instance(name: "my-ec2-instance")
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Well keep using lambda functions and pay up.
Additional context

The Amplify CLI currently does not have such functionality.

This should be a feature request for AppSync service to support additional data sources to be used with the resolvers. You can add your request to their queue here - https://github.com/aws/aws-appsync-community


Changelog

Initial changelog support
The changelog is meant to highlight changes that matter to the users.
Changes involve breaking updates, implementation changes, etc. Internal updates are not listed unless they affect how a user might write their code.

Addresses #480

How about keeping dates in YYYY-MM-DD instead of MM-DD-YYYY? I think it is more popular in IT because of ISO_8601

@ravkr  done

Maybe it's too much to ask, but it would be great if, when possible, these link to the relevant PRs so that people can go figure out exactly what changed and get some more info.

@Schmavery I don't mind at all. I had it like that originally but wasn't sure if it would be better to link to the newest release. I'll do that im a bit

Awesome, I'm imagining just a little "#13123123" at the end of the change description when applicable.

I thinks about writing into changelog which bugfix fixing for example "Listening in NaN" bug

This a good idea

I'll have a look at that. Let me know if I miss anything later

Are we sticking with American date or shall it be DDMMYY instead

@gamelaster do you have any particular commits I should look at? Not sure which ones you are referring to

AFAIK you can write [#453]instead of [#435](https://github.com/Schmavery/facebook-chat-api/pull/435))

The only issue is if someone forks it and others look at the changelog it will show the request on their repo (which doesn't exist) rather than on the original

Great, thanks a lot @AllanWang

maybe I was wrong.. :/ links are not working

@Schmavery can we revert the latest commit? I thought the links would work on your repo but it seems like it doesn't.

Hmm, I see.  Can you submit a quick PR with the links changed back when you get a chance?  I squashed the PR and I'm not sure how to do the git gymnastics necessary to revert just part of it at this point.

@AllanWang how about you removing latest commit and @Schmavery rebasing repository? (its not an old commit... :/ )

see #482
I rebased again and added the commit

Thanks :)


Pointer exit event can be raised before the last pointer leaves the target

If two pointers leave a given target in the same frame, FocusProvider.UpdateFocusedObjects() will raise the pointer left event for the first one leaving. We should instead keep track of the number of pointers leaving the target that frame and raise it for the last one.

Fixed by #4136


Simplifying scroll_to_element

There was a lot of complexity here, and it doesn't always
work as intended. I simplified things quite a bit by simply
accepting arguments for specifying the scroll offset.

@smeggingsmegger
I've tried this out in BriteCore, and it is working well. I don't know why I made it so complicated to begin with. See IntuitiveWebSolutions/BriteCore/pull/4411 and https://github.com/IntuitiveWebSolutions/BriteCore/pull/4411/commits/8fbf2881755b411dc065f3d6f3ca2ed492f646ff specifically.

Nice! I'm pushing your commit manually since there is a merge conflict and I see no reason to make you rebase. :)


Compatibility with fstab

Some users of file connectors may rely on fstab to manage mounting file systems in their Linux operating system.
More info on fstab: https://www.redhat.com/sysadmin/etc-fstab

This is somehow an additional info/request for implementing this feature.
I just have setup mount-s3 with systemd automount with a light wrapper script that does the actual mounting. A line in fstab would look like this
my-s3-bucket /s3/my-s3-bucket fuse.mount-s3.sh noauto,x-systemd.automount,--read-only,--allow-other
where the /usr/local/bin/mount-s3.sh script extracts the source target and the double dashed options and calls mount-s3 with it.
While this approach works well with autofs it does not with systemd automount since the latter already creates a mount on the target:
$ cat /proc/mounts
...
systemd-1 on /s3/my-s3-bucket type autofs (rw,relatime,fd=55,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
...

Subsequently mount-s3 fails on the actual mounting during triggered by accessing the mount point with:
Error: mount point /s3/my-s3-bucket is already mounted.
So I think we need a switch to turn of this check.
Also I suggest that either we could filter the (comma separated) options passed by -o for those options with double dashes. Or we introduce our own parameter that can hold all our options like so:
my-s3-bucket /s3/my-s3-bucket fuse.mount-s3.sh noauto,x-systemd.automount,mount-s3-options=read-only,allow-other,max-threads=24
This parameter has to be put at the end of the the fstab options so everything following the mount-s3-options= can be considered mount-s3 arguments and parameters.
Regarding the "already mounted check" it could be disabled implicitly with the -o parameter but it would be nice to have a separate flag for this behaviour e.g. when creating systemd automounter services other than by fstab.


Excuse me

How can I add the resource override rules to the HTML file?

You mean to root html? I think I have the same problem.

Yes.

The files that are sent by any server are not to modify. However, the page that the browser make out of those files after it processed it are freely modifiable with Javascript. That's what Javascript is for. 🙂


⚠ API - Lens has degraded performance

In fd634b6, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 583 ms

Resolved: API - Lens performance has improved in d85dbc9 after 6 minutes.


Added and fixed JetBrains Toolbox package

Microsoft Reviewers: Open in CodeFlow

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: jedieaston sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

JetBrains Toolbox is already waiting for approval in #318. So your PR is a duplicate.

Darn it!


Check if sample_domain have only unique domains indexes in check_*_domain

In response to #16
@kachayev is that what you had in mind ?
Should check_X_y_domain and check_X_domain stay two separate functions?
A test should be added for this situation.

Yes, Apolline, exactly!
Answering your question: check_X_y_domain and check_X_domain should stay separate as they are designed for different use cases/inputs. Their implementation, ideally, would re-use as much common functionality as possible, for sure, but that's, you know, in an ideal world :)
A few comments:

i think we need new allow_ parameter so that users can decide when this should or should not be enforced
it might be helpful to mention explicitly in the error message that the same domain should not be used both as source and as a target, otherwise it could be confusing

P.S. If I recall correctly, @rflamary had rather strong opinion around the indexing. I'm gonna let him to chime in here. Likely allow_ should be True by default ;)


malloc() works inside sycl kernel ?? !!

so i have the following code as an example
cl::sycl::buffer<int*,1> pointbuff(1);

myqueue.submit([&](cl::sycl::handler& cgh) {
	auto p = pointbuff.get_access<access::mode::read_write>(cgh);

	cgh.single_task<class test>([=](){
		p[0] = (int*)malloc(sizeof(int));
		});
	});

what i don't understand is that it works so i'm wondering by what kind of wizardry it does.
also build with computecpp.
i'm very surprised by this as malloc dosen't work in opencl kernels so kinda confused lol.

I don't know why it works with ComputeCpp. As far as hipSYCL is concerned: You are experiencing the advantages of the hipSYCL approach of building on established vendor-supported toolchains. In hipSYCL, we are in effect using a HIP/CUDA compiler (with a frontend that has been augmented to also understand SYCL code) when compiling for device. This means you can do anything in hipSYCL that you can also so in CUDA. Since CUDA supports malloc() in device code, it also works in hipSYCL :)

Yea this is kinda cool ^
but i'm legit confused by what kind of wizardry it works under computecpp's compiler (the one that comes with the oneapi toolchain)
it isn't suposed to work as the implementation is over opencl, legit i'm lost rn lol
because it actually work and the data isn't lost wth lol.

Well the data can only be accesed from gpu code as the accesor won't dereference gpu pointers which make sense, but i legit have no idea how it can even work on the opencl backend, it don't make sense lol
well i really wanted to be able  to malloc in kernel so that's cool i guess but what is weird is that the sycl spec don't even mention malloc so this is weird that it is working ^

On a side note, man your software is great, i'm really having fun with my gpu rn ^

the one that comes with oneAPI? So, you mean Intel LLVM SYCL? That's a different implementation, not ComputeCpp ;)
I suppose questions concerning other implementations are better answered by them. Maybe they have deliberately put in some malloc support.
Thanks for the compliment, that's very motivating :)

Are you using the PTX Backend of ComputeCpp to target your GPU? It might be using a similar approach as hipSYCL, as it generates actual Nvidia assembler, which might enable malloc as well.
18.12.2019 00:13:16 Alkeryn<EMAIL_ADDRESS>
Well the data can only be accesed from gpu code as the accesor won't dereference gpu pointers which make sense, but i legit have no idea how it can even work on the opencl backend, it don't make sense lol
well i really wanted to be able to malloc in kernel so that's cool i guess but what is weird is that the sycl spec don't even mention malloc so this is weird that it is working ^
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [https://github.com/illuhad/hipSYCL/issues/182?email_source=notifications&email_token=ABNUOYRTSQNHXYCUEZO6EVTQZFMFTA5CNFSM4J4CW37KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHEIZCY#issuecomment-566791307] , or unsubscribe [https://github.com/notifications/unsubscribe-auth/ABNUOYQJ3YTFS6CCVSTE6NTQZFMFTANCNFSM4J4CW37A] . [https://github.com/notifications/beacon/ABNUOYR3WIM7GT5HAALENUDQZFMFTA5CNFSM4J4CW37KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHEIZCY.gif]

Oh i thought oneapi used computecpp's implementation
also nvm i'm pretty tired i didn't realised it didn't recompile on the few test i made
so you can do malloc() on intel's oneapi implementation but you can't use it in a different kernel run so it is kind of useless
still pretty cool that you can do it on hipsycl implementation but as i want my code to stay portable i guess i won't use that feature ^

@Alkeryn, no, ComputeCpp is Codeplay's (proprietary) SYCL implementation. Intel's SYCL implementation is just called Intel SYCL or clang/LLVM SYCL since it's supposed to go into mainline clang at some point. Thanks for the solution to this mystery :) I suspect they probably started adding in support but aren't done yet (?)
@fodinabor, I think it's a different approach:

afaik, they compile to PTX but inject ptx into OpenCL since NVIDIA OpenCL supports ptx kernel ingestion
even if they injected PTX into CUDA instead of OpenCL (which would be the next closer step to what we do), they still use a pure SYCL frontend which will not allow the same interoperability as we do (e.g. you will probably not be able to use CUDA intrinsics etc)

So, I would still be surprised if malloc() works in ComputeCpp.

i wonder if there is a way to implement a portable malloc on sycl tho, as that would be pretty cool, i have few algos i'd like to port to sycl but switching from dynamic containers to fixed sized ones don't really feel elegant haha

I don't think this can be done in SYCL 1.2.1, at least not in the way you would like with allocations persistent across multiple kernel launches.
The problem is that in SYCL 1.2.1 (like in OpenCL 1.2) it is not guaranteed that memory addresses are consistent across several kernel launches. For example, the memory address of  the first element of an accessor to the same buffer may vary across different kernel launches (It would be inefficient, but in principle the SYCL runtime could decide to discard the old data buffer and copy the data to a new buffer before the kernel launch).
Without consistent memory addresses, we cannot implement such a malloc() function. This problem is gone when Intel's USM proposal ends up in the spec. Then we can have pointers as well as unified memory across host and device and a portable malloc() could be implemented using only what's in the SYCL spec.
In general, I would however discourage using dynamic memory allocation in kernels as it is usually inefficient on GPUs. So, if possible, it may make sense for performance for you to get rid of the dynamic containers :)

I suspect what you experience is that you run your kernel on CPU (i.e. using the host device), so it just does work as usual. Usually I do graphics inside kernels as a debugging tool on host device. This is why I love SYCL: we can debug on host first with normal host code and normal debugger before switching later on a different accelerator.


feat: add events listener service & tests

Codecov Report

Merging #8 (1e1ed6e) into develop (bbbc75a) will increase coverage by 0.35%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop       #8      +/-   ##
===========================================
+ Coverage    88.32%   88.67%   +0.35%
===========================================
  Files           64       65       +1
  Lines         1105     1113       +8
  Branches       200      201       +1
===========================================
+ Hits           976      987      +11
+ Misses         115      113       -2
+ Partials        14       13       -1

Impacted Files
Coverage Δ

src/services/events/index.ts
100.00% <100.00%> (ø)

src/services/auth/index.ts
98.21% <0.00%> (+5.35%)
:arrow_up:

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 bbbc75a...1e1ed6e. Read the comment docs.


How did you get evaluation results from other methods to draw CED curves on the AFLW?

I was wondering how did you get the CED curves on Fig 6 for other methods, could you please share the results?

@protossw512
Hi,
Please open the file https://github.com/FengZhenhua/DAC-CSR/blob/master/results/aflw_full_data.txt and you can find the results for the other algorithms.
Cheers,
Zhenhua


How to get current viewController

I have some callbacks in AppDelegate which are called when internet connection is lost, based on that callback i have to show some subview on current view. How can i get current view controller?

I'm doing this:
UIViewController *topController = self.window.rootViewController;
while (topController.presentedViewController) topController = topController.presentedViewController;


Generate .gitignore for new packages within a repository

This has already been discussed in #6357 and #7673 but not resolved.
When running cargo new inside an existing git repository, cargo does not create a .gitignore file. This means that the target directory will be tracked by git, unless the user manually creates the gitignore. As mentioned here, this behavior is because of the possibility of the package being a member of a workspace.
Instead, in cases like these, cargo should default to generating the .gitignore, but give the option to opt out of creating it by passing cargo new an option such as --workspace-member or --in-workspace. IMO, this would be more correct since there are no circumstances where build artifacts should actually be tracked in VCS.

Instead of opening a new issue, would you mind moving your comment to #6357? Or maybe I'm misunderstanding how this is different from #6357?


'@zsajjad/react-facebook-pixel@latest' is not in the npm registry.

You can install via npm i react-facebook-pixel@latest
(see https://www.npmjs.com/package/react-facebook-pixel)

https://www.npmjs.com/package/@bettercart/react-facebook-pixel


Found this very useful plugin. Anyway to donate?

If you have PayPal, send to<EMAIL_ADDRESS>thanks

I agree, you have done an amazing job.  This has saved me so much time.   I will be making a paypal donation.  My only request is to maybe add a button so when I pick an item from the replicator and it shows  me the formula for that item I could jump to your LSTM screen to see if I making the item and where.   Again, great work.

Great addition to the mod by adding a shortcut key to bring up the LSTM window.   Perfect solution.   Thanks much.


Update lucky

Hi,
It seems that Lucky was outdated.
Regards,

It should have been auto-generated before, but requires the Lucky CLI or bin/setup will fail. It might be good to keep the manifest so even if bin/setup fails, the manifest is always there, but the best solution may be to merge this PR and make sure Lucky CLI is installed.

@paulcsmith lucky_cli is required ;-)
This project has l
dependencies:
  lucky_migrator:
    github: luckyframework/lucky_migrator
    version: "~> 0.4.0"

so lucky_cli will be properly setup

@waghanza You're right that that will include the Lucky CLI shard, but there is the Lucky CLI executable that needs to be installed to run the tasks: https://luckyframework.org/guides/installing/#install-lucky

BTW, thanks for updating this. I really appreciate it and I'm excited to see how it does :)

@paulcsmith seems to be quick, but not as quick as Amber :trollface:
But code is not exactlt the same between frameworks

Yeah, Lucky and Amber share very little code so that makes sense that there is a difference. I haven't done much perf tuning so I'm sure there's a lot to be improved, but I'm not planning on focusing on perf improvements for awhile. It's plenty fast for what I've needed :)

Thanks!


Partial builds on CI cross targets

During #95 I excluded building rust-http-ipfs on cross targets (incl. android). Fixing this probably isn't anything else than to find/add the prebuilt openssl-sys friendly packages for the cross targets. Could also be that the env variable just needed to be set, as mentioned by openssl-sys build script.
See https://github.com/ipfs-rust/rust-ipfs/runs/503319261 where the android builds failed and macos cross builds were not actually run because I fumbled --target xyz away from the build command by mistake.
The logs are not loading as of writing this so hopefully they'll work later on.

From what I can see, the issue seems to lie in these lines of the android build log:
204 OPENSSL_DIR unset
205 run pkg_config fail: "Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override

I am a bit of a noob when it comes to config, so I will need a bit of guidance. Would I simply be setting environment variables to the openssl binary and setting the cross-compilation flag to true, or is it a bit more complicated than that?

Welcome @ifkb99! Great to see you. I'd suggest trying out your instincts here and seeing how far that gets you. They sound correct, as that would be the first thing I'd try.

Thanks for the warm welcome!
I am looking to add the line OPENSSL_DIR: /usr/bin/openssl to ci.yml, but when looking at your other filepaths I see that most files are stored in /usr/local/. Is there some way I can explore the host machine to see where files are stored?

Welcome from me as well!

Is there some way I can explore the host machine to see where files are stored?

I don't think any kind of exploration access is available. The system doing the cross compilation should be quite the usual boring ubuntu though. Could be that the issue is nothing more than the env variable you mentioned to 1.
You should be able to try this if you just fork the repo, add the env variable and create a pull request. If you don't want to do a work in progress PR you can adjust the first section of .github/workflows/ci.yml to run on all pushed branches to get a CI run on your forked repo.

You could also try /usr/bin/env openssl


download in the examples printing too much info

I used the example code for DOWNLOAD option and the download is properly done, but there a bunch of prints being outputted to terminal like this example:
{ uid: '244018',
  url: 'http://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/188/075/GCF_000188075.1_Si_gnG/GCF_000188075.1_Si_gnG_genomic.fna.gz',
  path: '244018/GCF_000188075.1_Si_gnG_genomic.fna.gz',
  status: 'downloading',
  total: 116654441,
  progress: 100,
  speed: 2046569.1403508773 }

It would be better to have some nice output like the one shown in the examples with a progress bar than a lot of prints in each state.
Also, after the download is completed the console freezes in the following prints:
{ uid: '244018',
  url: 'http://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/188/075/GCF_000188075.1_Si_gnG/GCF_000188075.1_Si_gnG_genomic.fna.gz',
  path: '244018/GCF_000188075.1_Si_gnG_genomic.fna.gz',
  status: 'completed',
  total: 116654441,
  progress: 100,
  speed: 'NA',
  size: '111 MB' }

Finally, to escape this, I had to press "ctrl+c" on the console in order to be able to continue inputing new code.

This is also something I've encountered, but never looked into "fixing".
It shouldn't be too hard to take this json object stream of status data and turn it into a nice loading CLI spinner + progress status/bar or something, using \r:
~/Desktop
▶ cat test.js
process.stdout.write('one\r')
process.stdout.write('two\n')

~/Desktop
▶ node test.js
two

However, the lower level object stream is still required for use within Node, and it only makes sense to do \r when using bionode programs interactively on CLI - so there needs to be some way to turn on the "user friendly status" form, but only when used from CLI. Perhaps an option in the API that is default turned on from within CLI code.
I would suggest we put together a standard form (i.e. json-schema) for "in progress JSON objects", and build a "logger" that wraps on top and has nice spinner/progress indicator.
Another option could be, have the "logger" tool take stdin of the object form, then you could do something like:
bionode-ncbi search sra arabadopsis | thelogger

I think last option is probably the best. The options for "user friendly mode" could simply pipe the object stream into thelogger (from within code so you don't need to ncbi ... | thelogger - but could if you still wanted to)

If you comment (line 409)[https://github.com/bionode/bionode-ncbi/blob/master/lib/bionode-ncbi.js#L409] and change quiet: true  to quiet: false  in (line 396)[https://github.com/bionode/bionode-ncbi/blob/master/lib/bionode-ncbi.js#L396]] you already get a pretty decent loading bar. So, I do like the option to pass the function in line 409 to "thelogger". That way you have a simplified version (or user friendly) and a full logger that outputs all instances of download events that can be parsed by other scripts or programs.
The freezing does not occur if I do not use an interactive section of node, i.e., if I just run something like:
bionode-ncbi download assembly solenopsis invicta

From a reusability point of view, I think bionode tools should always use NDJSON for STDIN and STDOUT. This standard allows developers to easily combine code and write pipelines. But from a UX point of view, it's sometimes ugly and confusing.
I think the general approach to solving this should be @thejmazz last example. That is, piping the NDJSON output to another tool that prettifies it, without modifying bionode-ncbi code or behavior. This tool could be a NodeJS CLI that reuses one of the many progress bar libraries available. We could then reuse it with other bionode modules and CLI tools, in a way similar to what you can already do with GNU pv.
However, in this particular case (as @tiagofilipe12 pointed out) bionode-ncbi already has a pretty progress bar feature available internally due to downloads being handled by the nugget dependency. So we could easily implement a --pretty or --progress-bar option to enable that feature on demand.
I'm happy to have a look at a PR that implements that feature. 😃
BTW, you can also just get the progress percentage on the same line with a bit of BASH scripting.
bionode-ncbi download assembly guillardia theta | json -ga progress | while read i; do echo -ne "\r$i"; done


[feature] support docker load semantics for hauler bundles

Is this RFE related to an Existing Problem? If so, please describe:
RKE2 assumes a manifest.json at the top level of the tarball for the rke2-runtime image via rancher/wharfie. For all other images, RKE2 (and k3s) seem to have no issue importing our oci-layout tarballs. We could lobby to have wharfie be more accepting but I think it behooves us to render a manifest.json at the top of our hauler store, which is in oci-layout, which will enable /var/lib/rancher/rke2/agent/images drop-ins straight from hauler for the RKE2 bootstrap image (rke2-runtime). Moreover, this should enable docker load of uncompressed hauler tarballs.
Describe Proposed Solution(s):
Render entries in ${hauler-store}/manifest.json for every platform of every container image in the store, aka, "name", "config", "layer(s)". For example, here is the manifest.json created by ctr image export for the RKE2 v1.28.11+rke2r1 rancher/rke2-runtime image for the linux/amd64 platform:
[
  {
    "Config": "blobs/sha256/6fcb0bf266887eaeaf3c3fa09d28a760b694c82ecf0382fd6e3becbe3ef1abf6",
    "RepoTags": [
      "rancher/rke2-runtime:v1.28.11-rke2r1"
    ],
    "Layers": [
      "blobs/sha256/9985469ebb41c51e0d1c59c8dfccaefc225b6615d911da001c9734d6e17b4014"
    ]
  }
]

Describe Possible Alternatives:

Push rancher/wharfie to be more compatible with what containerd's ctr image import currently accepts.

Additional Context:
It should be pretty easy to validate that our solution is working correctly, and hence will work within RKE2, by running wharfie in docker container with network=none, e.g.:
# where ./images/ is a directory containing the hauler tarball containing `rancher/rke2-runtime` content
docker run --rm -it --network=none -v ./images:/images dweomer/wharfie:v0.6.6-amd64 --images-dir /images rancher/rke2-runtime:v1.28.11-rke2r1 /root

But also, too:
docker image load haul.tar # after uncompressing via zstd -d

Hey @dweomer, are you still intending to submit a PR for this for v1.1.0?

Hey @dweomer, checking back on the status of this!


checkValidity() not working for minlength

Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
calls to checkValidity() for input with value < minlength  return true
What is the expected behavior?
should return false
How would you reproduce the current behavior (if this is a bug)?
<form>
	<label> label: </label><input minlength="4" maxlength="10"></input>
</form>

import { ClientFunction } from "testcafe";

fixture `Test native validity`
.page `http://localhost:3939`

const getValid = ClientFunction(()=>{
	return document.getElementsByTagName('input')[0].checkValidity()
})

test('not valid when length < 4', async t => {
	await t
	.typeText('input', 'aaa')
	.expect(getValid()).eql(false)
})

Error

operating system: linux
testcafe version: 0.20.4
node.js version: 9.11.1

Hi @kafeterio
It's a restriction of the current 'Event emulation' subsystem implementation.
Actually, we type via programmatic event creation.
The problem will be fixed once we implement Automations using browser-specific API.


Update to 0.10.6

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

needs https://github.com/conda-forge/staged-recipes/pull/22154

@conda-forge-admin, please rerender


Extension needs to send a log data to the server

Data needs to be secured
Authentication is needed

There's a authentication with Frontend and backend,we can do similar for backend and Extension.
Also we can encrypt the data for more safety.

Yeah, I'm thinking to set the Backend to work without CORS, and then the extension calls auth routes to the API.
What do you think?

That's a great idea.

Also I was thinking we connect the basic link Between backend and Extension,so that after finding the logger all we've to do is ~ replace the file,as the connection is already established.


Dependency matrix

Ability to define multiple constructors for the same dependency, and automatically generate multiple test suites for using each.

Idea of how to easily implement this without having to break much things:

Introduce an optional attribute for dependency constructors to "tag" them with a custom identifier
Introduce an optional attribute for dependency parameters (in test functions or dependency constructors) to require the given dependency with a given tag.
Both the above can be implemented by simply using the provided tag as part of the generated dependency accessor function's name
Then introduce an option for the dependency parameters to mark the given dependency to be "tagged by matrix", specifying a dimension name
And allow defining matrix dimensions for a suite
The test macro, when encountering dependencies bound to matrix dimensions should register dynamic test generators instead of static test functions


How to run falco on windows based nodepool on k8s

i am trying to run mixed nodepool in k8s.
for runtime security, falco can be used for linux based nodepool. but as there is windows based nodepool i wanted either to run falco on windows based nodepool or else is there any other tool available.

Falco can't be run on windows because it heavy relies on Linux kernel capabilities.
What do you expect from Windows-related security solution?

I want to know how to do runtime intrusion detection in windows based node as we do runtime intrusion detection for linux nodes.
Is there any alternate tool available ??
whether the image that we have as of now can be modified to run on windows nodes as well in k8s?
From: George Gaál @.>
Sent: Tuesday, April 6, 2021 3:01 PM
To: falcosecurity/falco @.>
Cc: Minor, Mona @.>; Author @.>
Subject: Re: [falcosecurity/falco] How to run falco on windows based nodepool on k8s (#1600)
EXTERNAL EMAIL - Be cautious of all links and attachments.
Falco can't be run on windows because it heavy relies on Linux kernel capabilities.
What do you expect from Windows-related security solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/falcosecurity/falco/issues/1600#issuecomment-813975835 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATGJFFSVGQN2NNBAQVWM2S3THLIEDANCNFSM42MG3REQ .

Is there any alternate tool available ??

https://logz.io/blog/open-source-hids/
Probably you'd like to look into Wazuh solution https://wazuh.com/
Or build something like<EMAIL_ADDRESS>on your own

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

/remove-lifecycle stale

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

Please add something to the Readme to specifically say that Windows K8S nodes are not supported, and won't be, if it's intended not to be. It just says "Kubernetes" everywhere, and mixed-os clusters are a thing in multiple public clouds for a couple of years now. Just spent 10 minutes trying to find something explicitly saying either way.

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Microsoft added eBPF support to Windows earlier this year. This is probably worth looking into again.

https://cloudblogs.microsoft.com/opensource/2021/05/10/making-ebpf-work-on-windows/
https://github.com/microsoft/ebpf-for-windows


Fix segfault in openssl app called with no args.

This is a result of removal of interactive mode.
Redirected it to now use 'openssl help'.

Checklist

[ ] documentation is added or updated
[x] tests are added or updated

This pull request is ready to merge

Thanks. Merged to master.


AttributeError

[#] Acccount Creation: 2016-07-17 11:26:59.748000
2016-07-22 13:42:13,859 [    pgoapi] [ INFO] Create new request...
2016-07-22 13:42:13,865 [    pgoapi] [ INFO] Adding 'GET_INVENTORY' to RPC request
2016-07-22 13:42:13,865 [    pgoapi] [ INFO] Execution of RPC
2016-07-22 13:42:14,072 [    pgoapi] [ INFO] Cleanup of request!
Exception during print player profile
2016-07-22 13:42:14,073 [    pgoapi] [ INFO] Create new request...
2016-07-22 13:42:14,078 [    pgoapi] [ INFO] Adding 'GET_INVENTORY' to RPC request
2016-07-22 13:42:14,078 [    pgoapi] [ INFO] Execution of RPC
2016-07-22 13:42:14,282 [    pgoapi] [ INFO] Cleanup of request!
[#] Scanning area for objects (1 / 25)
Traceback (most recent call last):
  File "C:\Users\Crusa\Desktop\PokemonGo\PokemonGo-Bot-master\pokecli.py", line 120, in <module>
    main()
  File "C:\Users\Crusa\Desktop\PokemonGo\PokemonGo-Bot-master\pokecli.py", line 117, in main
    bot.take_step()
  File "C:\Users\Crusa\Desktop\PokemonGo\PokemonGo-Bot-master\bot.py", line 29, in take_step
    self.stepper.take_step()
  File "C:\Users\Crusa\Desktop\PokemonGo\PokemonGo-Bot-master\stepper.py", line 45, in take_step
    self._walk_to(self.config.walk, *position)
  File "C:\Users\Crusa\Desktop\PokemonGo\PokemonGo-Bot-master\stepper.py", line 86, in _walk_to
    self.api.heartbeat()
  File "c:\users\crusa\desktop\pokemongo\pokemongo-bot-master\src\pgoapi\pgoapi\pgoapi.py", line 127, in __getattr__
    raise AttributeError
AttributeError

Anyone know why happen this?

Same problem here


[ISSUE #6482]style: Rename the variable "filepath" to "filePath" on line 55 of PosixFileSegment.java

Make sure set the target branch to develop
What is the purpose of the change

close #6482

Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x]  Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x]  Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x]  Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x]  Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x]  Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
[ ]  If this contribution is large, please file an Apache Individual Contributor License Agreement.

LGTM


chore: run scripts in non-posix envs

Make some scripts available in non-Posix environments.

thx, I move the rimraf to the root deps.


Can not use libtorrent.

On Ubuntu 18.04 I am trying to use libtorrent with vcpkg but I get a cmake error. I already asked for help on libtorrent project but still no luck.
https://github.com/arvidn/libtorrent/issues/3268#issuecomment-416367206

torrent-rasterbar.dll
https://github.com/Microsoft/vcpkg/blob/master/ports/libtorrent/portfile.cmake
windows port
edit the script so that it is compatible with linux

ok. I think I better use Windows. :)

Hi @dkotrada thanks for posting this issue.
libtorrent has been updated to 1.2.2. Please try to update vcpkg and use it.
The usage is as follows:
find_package(LibtorrentRasterbar CONFIG REQUIRED)
target_link_libraries(main PRIVATE LibtorrentRasterbar::torrent-rasterbar)

Let me know if you have problems.

libtorrent  has supported to be found by find_package().
Please try to update.
If you have other problems, please open a new issue.


ios 13 Firebase cloud messages sometimes not received

I am struggling with a very odd problem. Sometimes, for hours no cloud messages are received on my device (both from the Firebase console, and from http request). Then suddenly, it all works fine, (not that I receieve the old messages), but all new ones come it. I change nothing in the code, and its even without reinstall. This applies to topic messages and messages to specific token ids. Why would this be happening?
The times it doesn't work, uninstalling and reinstalling does help. And the result from the message being sent doesn't show any error, and it shows success. But its not getting received at all?
I have been stuck on this for days, and I cannot have it that sometimes the messages are not sent? Any help would be greatly appreciated.
Here is my AppDelage code:
 func application(_ application: UIApplication,
                   didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

     FirebaseApp.configure()

    // [START set_messaging_delegate]
    Messaging.messaging().delegate = self
    // [END set_messaging_delegate]
    // Register for remote notifications. This shows a permission dialog on first run, to
    // show the dialog at a more appropriate time move this registration accordingly.
    // [START register_for_notifications]
    if #available(iOS 10.0, *) {
      // For iOS 10 display notification (sent via APNS)
      UNUserNotificationCenter.current().delegate = self

      let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]
      UNUserNotificationCenter.current().requestAuthorization(
        options: authOptions,
        completionHandler: {_, _ in })
    } else {
      let settings: UIUserNotificationSettings =
      UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil)
      application.registerUserNotificationSettings(settings)
    }

    application.registerForRemoteNotifications()

    // [END register_for_notifications]

    return true
  }

  // [START receive_message]
  func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
    // If you are receiving a notification message while your app is in the background,
    // this callback will not be fired till the user taps on the notification launching the application.
    // TODO: Handle data of notification
    // With swizzling disabled you must let Messaging know about the message, for Analytics
    // Messaging.messaging().appDidReceiveMessage(userInfo)
    // Print message ID.
    if let messageID = userInfo[gcmMessageIDKey] {
      print("Message ID: \(messageID)")
    }

    // Print full message.
    print(userInfo)
  }

  func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any],
                   fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
    // If you are receiving a notification message while your app is in the background,
    // this callback will not be fired till the user taps on the notification launching the application.
    // TODO: Handle data of notification
    // With swizzling disabled you must let Messaging know about the message, for Analytics
    // Messaging.messaging().appDidReceiveMessage(userInfo)
    // Print message ID.
    if let messageID = userInfo[gcmMessageIDKey] {
      print("Message ID: \(messageID)")
    }

    // Print full message.
    print(userInfo)

    completionHandler(UIBackgroundFetchResult.newData)
  }
  // [END receive_message]
  func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
    print("2124: Unable to register for remote notifications: \(error.localizedDescription)")
  }

  // This function is added here only for debugging purposes, and can be removed if swizzling is enabled.
  // If swizzling is disabled then this function must be implemented so that the APNs token can be paired to
  // the FCM registration token.
  func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    print("2124: APNs token retrieved: \(deviceToken)")

    // With swizzling disabled you must set the APNs token here.
    // Messaging.messaging().apnsToken = deviceToken
  }
}

// [START ios_10_message_handling]
@available(iOS 10, *)
extension AppDelegate : UNUserNotificationCenterDelegate {

  // Receive displayed notifications for iOS 10 devices.
  func userNotificationCenter(_ center: UNUserNotificationCenter,
                              willPresent notification: UNNotification,
    withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
    let userInfo = notification.request.content.userInfo

    // With swizzling disabled you must let Messaging know about the message, for Analytics
    // Messaging.messaging().appDidReceiveMessage(userInfo)
    // Print message ID.
    if let messageID = userInfo[gcmMessageIDKey] {
      print("2124: Message ID: \(messageID)")
    }

    // Print full message.
    print("2124: \(userInfo)")

    // Change this to your preferred presentation option
    completionHandler([[.alert, .sound]])
  }

  func userNotificationCenter(_ center: UNUserNotificationCenter,
                              didReceive response: UNNotificationResponse,
                              withCompletionHandler completionHandler: @escaping () -> Void) {
    let userInfo = response.notification.request.content.userInfo
    // Print message ID.
    if let messageID = userInfo[gcmMessageIDKey] {
      print("2124: Message ID: \(messageID)")
    }

    // Print full message.
    print(userInfo)

    completionHandler()
  }
}
// [END ios_10_message_handling]

extension AppDelegate : MessagingDelegate {
  // [START refresh_token]
  func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String) {
    print("2124: Firebase registration token: \(fcmToken)")

    let dataDict:[String: String] = ["token": fcmToken]
    NotificationCenter.default.post(name: Notification.Name("FCMToken"), object: nil, userInfo: dataDict)
    // TODO: If necessary send token to application server.
    // Note: This callback is fired at each app startup and whenever a new token is generated.
  }
  // [END refresh_token]
}

I'm sending like this from postman (as well as from Firebase console):
{
"to": "/topics/all_dealsAlbaniaios"
"priority": "high"
"notification" : {
"body" : "Hi there",
"title" : "Wow!",
"sound": "default"
},
"data": {
    "title": "Hi there",
    "body": "Wow",

}
}

It looks like there isn't any call to subscribe to a topic in this code. Also, does message send failure coincide with receiving a new FCM token?

During my code I do subscribe to topic like this:
if Messaging.messaging().fcmToken != nil {
       Messaging.messaging().subscribe(toTopic: topicToSubscribeTo)
       print("2124: Subscribed to topic: \(topicToSubscribeTo)")
   }

Message failure does no coincide with receiving a new token.
However, I restarted my device, and in the meantime the messages are now coming in. I don't know why this would be, but I'll keep posted. Thanks!

Hey @bermanapps, given this situation seems to have been stable for a while I'm going to close this issue. If it regresses, feel free to file a new issue.


"LLAMA_ASSERT: ...\development\llama\llama.cpp\llama.cpp:904: false" ERROR

Hi there,
I've got this error when i'd tried to use OpenLM's 3B  model open-llama-3b-q4_1.bin
LLAMA_ASSERT: ...\development\llama\llama.cpp\llama.cpp:904: false

It works fine with 7B model (open-llama-7b-q4_0) of OpenLM.
Thanks for your help.

The model you use was published 2 days ago. I guess it was converted and quantized by the latest master branch of llama.cpp, making it incompatible with the current backend of LLamaSharp. We'll follow up llama.cpp to update LLamaSharp.Backend to the latest llama.cpp version next week. Forgive us about the delay because we're refactoring the project now to provide more C#-style APIs and improve the performance.

Hi, the master branch has been updated. Would you like to have a try with it? I'd like to try it myself first but I found that I couldn't download the model in the link... I'm not sure if it's only my problem.

I updated to LlamaSharp to 0.4.0 but I still get error.
I think the problem is about model..

Please have a try with v0.4.1-preview, or the master branch. Note that currently v0.4.1 only supports cpu backend. I've tried it in my local environment and it worked.
What I did is downloading the fp16 weight and quantize it with v0.4.1-preview and then run the quantized model. Not sure if directly running the quantized models in huggingface would work.


BasicPublishArguments: make immediate field private

Support for the immediate flag was removed in RabbitMQ 3.0 because it is impossible to implement in ways that do not ruin throughput of multi-node clusters (the node handling basic.publish had to communicate with peers for every message published).
I suggest that we make the field private and thus remove it from the API.

because it is public in released version, would need to make it deprecated otherwise it is backward incompatible.
How about add above limitation to explain why it is deprecated and discouraged to use, also good for user to know the history.

Right, deprecating might be enough, even though I am quite certain nobody out there uses the flag: RabbitMQ will report an unrecoverable (connection) error if you try.


Confusion about the paper

Impressive and insightful work, hooray to the authors! Recently I read your paper, but I'm comfused about the following parts.

In the abstract, you discuss how memory-reduction approaches like LoRA underperform full-rank training, for they constrain search space to a low-rank subspace. I quite agree with this perspective. But in the methodology section, the gradient is computed by projection and backprojection, which results in $\Delta W$ being in a low rank subspace as well, which seems to potentially conflict with the initial motivation. Could you please elaborate on how Galore aligns with the overarching goals of the study?
Despite the reduction in optimizer state, performing SVD on gradients introduces a considerable demand on peak memory usage due to the high-dimensional nature of the singular vectors U and V. I'm not sure if I understood the method properly.

 Thank you for your time and consideration.

Not the author, but I understood it that their argument is that the gradients can be shown to be low rank (in many cases) while the gradients aren't.
I wondered the same thing. I guess one could stagger the computation for each parameter group. E.g. you have 200 parameter groups, want to update all every 200 steps, then you update each group when their if self.ortho_matrix is None or iter % self.update_proj_gap == group_idx:


Add periodic opendct.properties file saving.

In case things do not stop correctly, it would be nice to have this file saved because there are many changes that happen other than setting changes in the JSON interface that would be nice to have preserved despite a bad stop.

Would this be any more complicated than just a very simple thread forked from the main that synchronized() saves, then sleeps?

I don't even need to do that. The main thread just idles anyway, so I would just have it wake up periodically and save. I just don't have the time to do this right now, so this like like memo get it done when I resume development.


Error handling troubles

Problem
In TON there are shards. And knowing only address we can't find out the shard on which this contract exists. So we have to try each shard by running contract's method.
for _, s := range shards {
	if result, err = client.RunGetMethod(context.Background(), s, addr, function, params...); err != nil {
		log.Info().Msg(err.Error())
		continue // If there are a lot of shards the contract doesn't exists in a shard // HOWEVER contract could might not exist
	} else {
		break
	}
}

However, using your package it's hard to distinguish causes of errors:
{"level":"info","time":"2024-12-27T00:48:34+05:00","message":"lite server error, code -400: requested account id is not contained in the shard of the reference block"}
{"level":"info","time":"2024-12-27T00:49:50+05:00","message":"contract exit code: 11"}

Do I have to parse the string to get rc or lite server error?
Possible solution
In Go error is an interface:
// The error built-in interface type is the conventional interface for
// representing an error condition, with the nil value representing no error.
type error interface {
	Error() string
}

So it's better to create a batch of constants:
const (
ServerErr int = iota
ContractCallErr
UnpackErr
CastErr
)

And overload interface:
type TonGoError struct {
ErrorCode int
OutsideErr string
}
func (tg TonGoError) Error() string {
    return fmt.Sprintf("There is an error with rc: %d and outside error: %s"), tg.ErrorCode, tg.OutsideErr)
}

It's a simple example that can clarify all errors in you project and shall help others to handle them

Hi, you can just pass master block to RunGetMethod instead of shard block, LS will map shard block automatically according to reference in master block.
If you still need to know shard, it can be calculated based on address, first bits of address hash part will indicate shard, there is a method exists for that
Regarding the execution errors, they are already wrapped to types, you can cast and check, if you still want :)

Thank you, everything worked!


add condition for displaying the prompt text in ModalTransactionCosignature

fixes #410
Now the prompt text won't  be hidden until min required signatures have been received

@vincent-lee90
Co-signatures received list is missing. This list is important because it informs which co-signer(s) out of all co-signers participated in the approval.
After the minimum required co-signers have signed, then instead of hiding the prompt text, might be better to change it to something like "Received the minimum required co-signatories".

This one does look better!


notebook test demo

@SFD5311 , I've branched from your work in progress and am giving nbval a test drive.
Plus:

Perhaps easier to maintain: just edit the notebook, evaluate, and save.
Prettier: github has nice rendering for notebooks.
Perhaps easier for users to start exploring on their own: start up jupyter and run the examples.

Minus:

Notebook files bring in a lot of cruft that plain doctests don't have: diffs harder to read.
Tests can't be parallelized the same way as before.

Filing as draft:

Would want to get rid of redundant bound.md if this is good.
Would want to handle all the other tests the same way, probably?
Can we make it easier for users to run this out of the box?

Maybe environ.get('API_ENDPOINT', 'https://cells.api.hubmapconsortium.org/api/')?
Maybe %pip install .. || pip install hubmap-api-py-client?

Nils like this.


update changelog for #4879

Motivation
follow up on #4879 update changelog for release
also rename migration file to reflect its released state

bors cancel

sorry, looks like only version matters, name is only for description

bors merge

but honestly i don't understand why to include such changes with changelog update

but honestly i don't understand why to include such changes with changelog update

yes. sorry. will separate such change in the future.


Add Yandex Cloud to Service Internal Load Balancer

Update service documentation to add Internal load balancer for Yandex Cloud

/retest

/assign @steveperry-53

Hi @etifontaine
Usually we don't accept PRs adding content about third party products, because that's not allowed by the content guide.
Are there any exceptions that are relevant here?
/hold

Hi @etifontaine
Usually we don't accept PRs adding content about third party products, because that's not allowed by the content guide.
Are there any exceptions that are relevant here?
/hold

Hello!
There was already multiple tabs with other Cloud providers (GCP, AWS, Alibaba Cloud, Baidu Cloud). As they are also third party products and Kubernetes on Yandex Cloud is growing I thought it was relevant to add the information concerning Internal Load Balancer annotations.

I'm afraid some of those will be pending removal - we haven't yet updated all pages to remove this type of information.
Where the cloud provider integration uses code donated to Kubernetes, it's OK to include that detail (for example, the GCP integration is currently in-project).

Very clear! I'm closing the PR 👌


Need Clarification

Hi, I have to ask I am pretty new to CNCs.
I have been using fusion 360 for most of my CNC designing and using 6 pack cnc controller running with fluidnc
Can I use Easel pro or Carbide to generate gcode, and is it compatible?

Yes, we are compatible with Grbl gcode.

Thanks - I made 3d relief successfully on Easel pro.


opt add where Null rule to create empty relation as where false (#38135)

cherry-pick: #38135
explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
Proposed changes
Issue Number: close #xxx

run buildall

run buildall

run buildall

run buildall

run buildall


Provide APIs to easily convert a FileSystemLocation to a RegularFile or Directory

I'll have tasks whose inputs should be Directory or RegularFile, but I have to convert them to be FileSystemLocation bc of issues like:
// returning a `FileSystemLocation` instead of a `RegularFile` bc https://gradle-community.slack.com/archives/CAHSN3LDN/p1664469401679199
fun TaskProvider<Sync>.mapApk(): Provider<FileSystemLocation> {
    return flatMap {
        it.outputs
            .files
            .asFileTree
            .matching(ApkPatternFilterable())
            .elements
            // cannot convert a `FileSystemLocation` to a `RegularFile` here
            .map { fileSystemLocations -> fileSystemLocations.first() }
    }
private class ApkPatternFilterable : Action<PatternFilterable> {
    override fun execute(patternFilterable: PatternFilterable) {
        patternFilterable.include("*.apk")
    }
}

I am unable to cast a FileSystemLocation to a RegularFile here bc if I attempt to here:
 class org.gradle.api.internal.file.DefaultFileSystemLocation cannot be cast to class org.gradle.api.file.RegularFile

DefaultFileSystemLocation does not extend either RegularFile, even though it is pointing to a file.
Gradle Slack thread about this

Sorry for the late reply.
This feature request is in the backlog of the relevant team and is prioritized by them.
Related:

https://github.com/gradle/gradle/issues/26211
https://github.com/gradle/gradle/issues/20155
https://github.com/gradle/gradle/issues/23849


This relative module was not found:

This relative module was not found:

./clipboard-action in ./node_modules/vue-clipboard2/dist/vue-clipboard.min.js
I use webpack, first time when i use npm run dev it works. but i use npm run prod an have errors now when i use npm run dev i have this error why is that ?

Did you check the webpack config between development and production?

@brainkode Still have the issue?


⚠ Bofrost.at has degraded performance

In dceb7b2, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1110 ms

Resolved: Bofrost.at performance has improved in f163f4f after 13 minutes.


Initial working version

Includes Log Driver Plugin (named `teragrep/dkr_01:v1'), with a test server (should this be included?) and also a basic readme on how to deploy the plugin with an existing docker container.
Forms Syslog messages in the form of:
<4> 0 2023-04-26T11:53:37Z fedora teragrep 68fc9302170465c5d7bb09d305deb68d54aa8438f1bd64638a970d531b1ec3b6 21 [TestServer] Accept=[*/*]
in which
<4> = Priority
0 = Version
2023-04-26T11:53:37Z = Timestamp
fedora = Hostname
teragrep = App name
68fc...b6 = Container ID (Proc ID)
21 = Message ID
[Test.../*] = Actual message

use dkr_02 instead of go plugin helpers from docker which is out dated.


Add support for multiple Indy networks

There are multiple active Indy networks being used today -- Sovrin, Sovrin Staging, etc.  We will eventually have the "did:indy" method in place to enable resolving DIDs and other ledger objects to the Indy ledger on which they reside. Until then, we need to follow a strategy of having an ACA-Py instance scan multiple ledgers in parallel to find an object, and retain a cached mapping of object IDs to Indy ledgers to limit the scanning needed.
There are multiple elements to look into in implementing this, including:

How to an ACA-Py deployment defines the set of networks and network genesis files to use. In doing that, we probably want to allow users to flag production from non-production instances, or perhaps a priority ordering (say, 1 to n, where 1 is the top priority).

How this integrates into the DID Resolver implementation recently completed.

How an ACA-Py instance indicates to what ledger objects are to be written.  I believe we will only need to have one network marked for writing.

This document highlights some security challenges, and provides some ideas about how they can be mitigated.  Please start with the least effort approaches (e.g. priority order) initially, but keep in mind some of the options that are outlined in the document.
I think there might be multiple ways of doing this, so suggest evaluating the task and ACA-Py code, defining an approach and sharing it with the contributors/maintainers for review and comment before proceeding.

@andrewwhitehead -- please note this task.  Would Indy VDR be a help with this?
@dbluhm -- FYI, given the work you did on the ACA-Py resolver.

This has been completed and released in Version 0.7.3.


Remove show on leaderboard toggle button from view all submissions

Issue:
There are duplicate options available for challenge host to toggle the submission visibility in view all submissions tab
Fix:
Removed the table column for show on leader-board column since host already have this feature in the settings column over menu

Codecov Report

Merging #191 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #191   +/-   ##
=======================================
  Coverage   51.58%   51.58%
=======================================
  Files          65       65
  Lines        3569     3569
  Branches      404      404
=======================================
  Hits         1841     1841
  Misses       1635     1635
  Partials       93       93

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 1cec87a...cce17b7. Read the comment docs.


tcpdump: Depends on libpcap for Linuxbrew

Fix the following error:
checking for local pcap library... not found
checking for pcap-config... no
checking for main in -lpcap... no
configure: error: see the INSTALL doc for more info

Merged in https://github.com/Homebrew/homebrew-dupes/commit/bacf3a73c03c4a89d67df997d9578385adbb37e1. Thanks again Shaun.

Thanks for merging, Dominyk.


Bump Android packages to newest versions, add androidsdk_5_1_1 and androidsdk_5_1_1_extras to env

Detailed changes:

android-sdk: update 24.0.1 -> 24.1.2
android-platforms: add 5.1.1
android-platform-tools: update 21 -> 22
android-build-tools: update 21.1.2 -> 22.0.1
android-support: update 21 -> 22.1.1
android-support-repository: update 9 -> 14

Maybe we should update all-packages.nix as well.

Rewritten /bin/ls in shell scripts.
Added libXtst to runtime dependency of monitor command.