Plans for Blaze/Tracker integration.

Hi,
As suggested in the Meteor night I'd like to suggest integration for Blaze/Tracker. I also hope I am not the only one go want Blaze integration Apollo.
I would like to help as much as I could but unfortunately, my JS skills are a bit limited.
Praney

I think we would need someone who plans to use it in production to lead development. If we find that person I would be happy to help!

Thanks @stubailo ,
It seems like Blaze is not going to be anytime sooner and eventually going to just fade away with time, maybe it's time to migrate to another framework, even though I am familiar with React and quite like it, I can not use it in my current app due to limitations caused due to the Virtual DOM so probably going to try Angular2. I've always tried to stay away from Angular, but it's time to face my demons.
If I am not wrong ApolloStack already has an integration with Angular 2 isn't it?

Yes it does! I'm curious what limitations of virtual Dom you ran into?

My app use Greensock's js animation library very intensely to create and manage animations and that involves a lot of DOM manipulation which React doesn't quite agree with. So I gave it a spin but lots of errors and debuging was required. That was my main purpose to stick with Blaze in the first place. I have really enjoyed using and working with Blaze and it's a shame to see it go but hey, as they say, every good thing must come to an end.
I just started with a course at Pluralsight last night "Angular 2: Getting Started" and very surprising really loving the way Angular2 is designed. Hopefully everything will work and I'll soon start the transition to Angular2.
Cheers!

Sounds great! Would be awesome to get some feedback about the angular 2 integration. Closing this for now.

@praneybehl - Have you seen or tried out Vue.js? http://vuejs.org/
They are working on 2.0 right now and it is supposed to be even more performant.
Scott

@stubailo thanks mate, will sure do.
@smolinari Thanks for the suggestion, yes I have played around with Vue.js in the past, but to be frank its a bit tricky when using open-source software especially when using a smaller/low traction one, as their future is uncertain. Unless you have a skill and time to be able to pick them up if they are for some reason abandoned, IMHO there is not much sense investing your time in them.
At this point of time in the land of front-end frameworks there are 2 top contenders which are here to stay - Angular.js (Backed by Google) and React.js(Backed by Facebook). There are both used, developed and supported by 2 of the world's biggest corporations so you can't really go wrong. Why do you think Meteor decided to make them first class citizens and abandon their own Blaze. On top of all the tool that is available for these two is amazing. Let alone finding developers for these frameworks are a lot easier than Blaze, or Vue or Riot and some xyz...
This is just what I feel about the current JavaScript World fatigue.
I am sorry if it sounds like a rant, not my intention but I am done trying new software now, as mentioned above really enjoying learning Angular2 and nearly done with the course will then check out Meteor integration docs and give it a spin.
I wish you well with Vue.js
cheers :)

Vue actually has more traction than Aurelia. Vue is also backed indirectly by Alibaba through Weex (a mobile development framework based on Vue and soon to be made public) and Evan You, the creator of Vue, has said he intends to create a company around Vue. Not sure if that will satisfy your need for guaranteed support though.
And to be honest, today React or Angular can be backed by Facebook or Google, and tomorrow they might drop it for some other newfound way to do things. They have the resources to make those decisions, unfortunately. Still, the chances of that happening are just as small (or large) as support for Vue getting dropped. That is because Vue has a fairly large and growing community and a lot of fans, including me. :smile:
Scott

I guess its an open ended discussion and will never end, we'll lead nowhere with it so good luck with Vue.js cheers!

Nope, no open ended discussion. Since it is clear you are not interested in Vue, that is the end of the discussion. :smile:
Scott

@praneybehl - This still might be of interest to you.
http://jsfiddle.net/azimuth/tofnsu5e/4/
Scott


dagger, dagger-compiler 2.51 (was 2.50)

About this PR
📦 Updates

com.google.dagger:dagger
com.google.dagger:dagger-compiler

from 2.50 to 2.51
📜 Changelog
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.google.dagger" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.google.dagger" }
}]

labels: library-update, commit-count:1

Superseded by #606.


Conflicted with Pod

I used Pod to import Mediapipe
Then I use your method to deploy opencv, it has the following errors:
487 duplicate symbols
Linker command failed with exit code 1 (use -v to see invocation)
Could you pls check it for me? Thanks

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

Thanks for reply, if my project really need these two libraries, do you have any idea to use it?

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

Or could I select the version of opencv in ur method?

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

Or could I select the version of opencv in ur method?

If you import Mediapipe using CocoaPods the answer is 'no'. You need to build Mediapipe yourself in order for it to provide the OpenCV public headers for you. I don't know if this is possible, so I suggest you ask the people at Mediapipe about it.


Emojis inside JSON type column are not preserved when using select()

Environment
Knex version: 2.2.0
Database + version: MySQL 5.7.31
OS: All
Bug
Emojis inside a string in a JSON object are saved properly when inserting, but aren't decoded properly. This happened both using select() and using the raw query function. However, when using the jsonExtract() function, the emojis show up properly.
Example:
{
   key: "😀😀😀"
}

Expected output after select():
{
   key: "😀😀😀"
}

Actual Output:
{
   key: "ð\x9F\x98\x84ð\x9F\x98\x84ð\x9F\x98\x84" (May not be exact, but is an example)
}

It appears the solution mentioned in #2416 is creating this issue. Removing JSON from the typecast function seems to resolve this issue.

Could this possibly be an issue with typecast?

This appears to be an issue with mysql2 instead of knex. Closing.


Seems to be missing generation of ios icons when run on windows

It appears that ios icons are not properly generated.
ios\Runner\Assets.xcassets\AppIcon.appiconset still contains all original icons generated by flutter where as
ios\Runner\Assets.xcassets\LaunchImage.imageset contains all 1x1 pixel images.

I'm wrong, it is fixed in the newer version. Great job.


only SpaceDeveloper should be able to list keys for a service ins…

…tance
[#87481016]
Signed-off-by: Zhang Hua<EMAIL_ADDRESS>

Merged separately so we could correct some Rubocop failures.
https://github.com/cloudfoundry/cloud_controller_ng/commit/1c083ea100b95bc31d6a204827bb65e0a5e8f5ce


Live Share: Consuming too much memory

Ref: https://github.com/microsoft/vscode/issues/116189
Description
While working from home, live share helps a lot to collaborate with my teammates. My system specs are overclocked ryzen 5600x, 16GB 3600MHz RAM, Gen4 SSD and Ubuntu (OS). During every live share, my system hangs after 10mins and the only way out is to hard restart.
During this, my swap space was around 2 gigs. So I formatted the system reinstalled Ubuntu with 28 GBs of swap space. And now, during live share, my RAM is 100% and swap consumption goes to around 14GBs

(This screenshot is taken just after my teammate left the session)
Without VSCode Live share my RAM consumption was around 3 - 4 GBs. What I have noticed is that memory consumption grows over time and end up eating everything until the system is chocked. And my Live session is always with a 1 person.

Hi , thank you for reaching out. This is an ongoing issue which  some of our users experienced it. I am consolidating the issue with #355.  Also, your logs may provide us with helpful information to investigate. You can access them via the Live Share: Export Logs command from the command palette (ctrl + shift + p) and attach them to #355.


[Android] Button that created TouchableOpacity not triggering first click

Hi,
I create a button in modal and When my code like this below
_myFunc = () => {
/* code here */
}

<TouchableOpacity
 onPress={this._myFunc}
>
   <Text>test<Text>
</TouchableOpacity>

OnPress event not trigger on the first click and i have to click more than one.Any idea?
I have tried to use ToucheWithoutFeedback, TouchabeNativeFeedback and TouchableHighligth.

+1

Try and import from gesture handler instead of react-native:
import { TouchableOpacity } from "react-native-gesture-handler";

Try and import from gesture handler instead of react-native:
import { TouchableOpacity } from "react-native-gesture-handler";

I had the same problem but i had the import how you said so i change to react-native and it works... 🤣

I had this problem too, and I solved it by following the last comment, importing TouchableOpacity from react-native instead of react-native-gesture-handler

Same here and importing TouchableOpacity from react-native didn't work too.

Same here and importing TouchableOpacity from react-native didn't work too.

Any other suggestions?  Importing from react-native-gesture-handler worked in my code, but a third party library I'm using (react-native-markdown-view) puts its own buttons (text with onPress) in the modal and those don't work.    I could fork that project but this may be an issue with other third-party libs too.

Just ran in to this problem to, i tried to switch between importing the TouchableOpacity from  react-native and react-native-gesture-handler but in the one case it works on ios and the other on android. But one of them always fails...

I'm using these options now which are the only ones that work for me.  Which TouchableOpacity to use has to be dependent on platform:
// These are the only options that work for clicking in modals
export const TouchableOpacity2mr = isIOS
  ? TouchableOpacityRNGestureHandler
  : TouchableOpacityReactNative;

Same problem here, and use react-native-gesture-handler  instead react-native didn't work for me

Any solutions? It works perfectly fine on ios but when running it on an android device I have to click it several times for it to work, I tried all solutions.. changing the react-native to react-native-gesture-handler and messed up with panResponder too but nothing seems to work

This issue seems still occurring.I'm using react-native-modalbox library and it works perfectly.

+1 to this issue

+1

I was in this thread last month and have had no end of problems with modals in React Native, so I created this hook based modal library.
https://www.npmjs.com/package/@idiosync/react-native-modal
It doesn't use the additional native layer that the RN implementation uses, which seems to be the source of a lot of its problems
Hope it helps!

any update?


Using templateStrings

Sketch has support for some ES6 niceties such as templateStrings, so I replaced string concatenation and linebreak characters ('\n') by ES6 templateStrings.

Whoop Whoop 🎉


chore(accept_server): optionally print stack trace on signal

Allow to optionally print stack traces on received signals

There are may be several non-intrusive options.

Why not send "DEBUG STACKTRACE" before shutting down the process?
There is also ListenerInterface::PreShutdown hook which may help with what you need.

Isn't it the case that we want to print the stacktraces only when instance.stop() fails in pytests? There we use SIGKILL which brutally kills the process, so I don't think any of the two above get a chance to run? That's why I wanted to a signal, such that before we proc.kill() I send a proc.send_signal(signal.SIGINT) to allow DF print the stacktraces before it gets brutally killed. (SIGKILL can't be handled or blocked)
Is there something I am missing?

Ok, if you want to print only after the regular shutdown sequence finishes
then yes, signal is needed. But you can register for another signal in
dragonfly via a proactor. Does not have to be sigint.
Another thing, accessing server logs is the prerequisite for this pr,
because I am not sure the system is stable enough at this stage to actually
execute the stacktrace printing logic.
On Fri, Oct 13, 2023, 7:09 PM Kostas Kyrimis @.***>
wrote:

Isn't it the case that we want to print the stacktraces only when
instance.stop() fails in pytests? There we use SIGKILL which brutally
kills the process, so I don't think any of the two above get a chance to
run? That's why I wanted to a signal, such that before we proc.kill() I
send a proc.send_signal(signal.SIGINT) to allow DF print the stacktraces
before it gets brutally killed. (SIGKILL can't be handled or blocked)
Is there something I am missing?
—
Reply to this email directly, view it on GitHub
https://github.com/romange/helio/pull/156#issuecomment-1761763858, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA4BFCEDDGIRGDQCTSJJQ3DX7FRT7AVCNFSM6AAAAAA57FYA4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRRG43DGOBVHA
.
You are receiving this because you commented.Message ID:
@.***>

But you can register for another signal in dragonfly via a proactor. Does not have to be sigint.

Yep that's true and now I am thinking about this doesn't need to be done in helio.

Another thing, accessing server logs is the prerequisite for this pr, because I am not sure the system is stable enough at this stage to actually execute the stacktrace printing logic.

I agree, this might never happen and it's kinda a longshot. But then what's the value of printing stacktraces then? We want to print them when things go bad such that we can use them to figure out what happened (for cases that the python code must brutally kill DF via proc.kill() because it doesn't respond).
Also regular shutdown is impossible, if we reached proc.kill then we don't really have much option. The only room is to issue a signal before we kill and hope that it actually gets processed.
Another thing that would add value here is the core dump...


Fusion pass should drop unused arg from parent symbols.

🐛 Bug
In the trace below, ab is a tuple of slices (slice(3, 1), slice(1, 2)). Currently the problem is that, during fusion pass, we make the fusion decision by looking at the nested operation prim.slice_prim to check if we should accept or reject the operation.
@torch.no_grad()
@no_autocast
def computation(t, ab):
  # t: "cuda:0 f32[5, 3]"
  # ab: "tuple"
  t0 = Tensor.__getitem__(t, ab)  # t0: "cuda:0 f32[0, 1]"
    # t0 = ltorch.getitem(t, ab)  # t0: "cuda:0 f32[0, 1]"
      # t0 = prims.slice_prim(t, [0, 1], [0, 2], [1, 1])  # t0: "cuda:0 f32[0, 1]"
  del t, ab
  return t0]

When we choose to fuse the slice_prim op, we ended up with a fusion IR like
@torch.no_grad()
@no_autocast
def computation(a, b):
  # t: "cuda:0 f32[5, 3]"
  # ab: "tuple"
  [t0] = nvFusion0(t, ab)
    # t0 = prims.slice_prim(t, [0, 1], [0, 2], [1, 1])  # t0: "cuda:0 f32[0, 1]"
  return t0,

This gives us complexity in addressing ab as part of the cache entry, as well as mapping ab to fusion inputs. We need to drop it and instead getting fusion symbol as [t0] = nvFusion0(t).
To Reproduce
import torch
import thunder
import operator

def foo(t, ab):
    return operator.getitem(t, ab)

# enable bookend would remove the error and let you look at the trace without fusion.
jfoo = thunder.functional.jit(foo, interpretation="python interpreter", cache="no caching", disable_torch_autograd=True, nv_enable_bookend=False)

dtype = torch.float32
t = torch.randn(5, 3, device="cuda").to(dtype=dtype)

ab = (slice(3, 1), slice(1, 2))

out = jfoo(t, ab)
out_ref = foo(t, ab)
print("\t===== prologue trace =====\n", jfoo._lc_cs.last_prologue_traces[-1])
print("\t===== compute trace =====\n", jfoo._lc_cs.last_traces)
assert(out.equal(out_ref))

The error below should be gone.
Traceback (most recent call last):
  File "/volume/thunder_517.py", line 15, in <module>
    out = jfoo(t, ab)
  File "/opt/pytorch/lightning-thunder/thunder/__init__.py", line 644, in fn_
    result = cache_entry.computation_fn(*inps)
  File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/amp/autocast_mode.py", line 42, in decorate_autocast
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/amp/autocast_mode.py", line 42, in decorate_autocast
    return func(*args, **kwargs)
  File "thunder.computation_1", line 10, in computation
  File "/opt/pytorch/lightning-thunder/thunder/executors/nvfuserex_impl.py", line 402, in __call__
    fd = self.get_fd(to_descriptors(args))
  File "/opt/pytorch/lightning-thunder/thunder/executors/nvfuserex_impl.py", line 385, in to_descriptors
    return tuple(to_descriptor(arg) for arg in args)
  File "/opt/pytorch/lightning-thunder/thunder/executors/nvfuserex_impl.py", line 385, in <genexpr>
    return tuple(to_descriptor(arg) for arg in args)
  File "/opt/pytorch/lightning-thunder/thunder/executors/nvfuserex_impl.py", line 373, in to_descriptor
    numbertype, _ = check_same_dtype(*arg)
  File "/opt/pytorch/lightning-thunder/thunder/core/utils.py", line 220, in check_same_dtype
    typ = to_dtype(a, true_dtype=True)
  File "/opt/pytorch/lightning-thunder/thunder/core/dtypes.py", line 330, in to_dtype
    raise ValueError(f"Trying to extract a dtype from object {x} with unknown type {type(x)}!")
ValueError: Trying to extract a dtype from object slice(3, 4, None) with unknown type <class 'slice'>!

This would fix the nvfuser issue reported in #482, but it's only part of the problem.


Carification on steps for creating identities

In section 2 the steps on creating identities for the member and seller participants is not really clear. Some additional information would be helpful. Also, there are multiple references to a "Wallet Tab" which is not apparent when trying to switch identities.

@odrodrig - Hi Oliver - I have add the additional detail - please review and if you feel it is complete - go ahead and close this issue. tx


Increment version to 0.2.2

Bumping version to release coldstart monitoring, regional collectors, plus the stat bugfix

Coverage remained the same at 91.597% when pulling 927b34f5212c6ebe0bf332da15bca3ff3644a04b on pselle:release into 74ba7810b302e307291336ece5ef343b44f363d2 on iopipe:master.


Add Santorini benchmark

[ ] Is there a script in /scripts that tests the game using the default GPT-4 agent (see examples)
Please add this
[x] Does the game run without errors?
[x] Does the game finish in a reasonable amount of time? (within 5 minutes). If not, then the rules would probably need to be adjusted to shorten the duration.
[/] If the agent returns invalid actions, is this properly handled in the code, e.g. by retrying or by selecting a random action (you should eventually select a random action)
def place_pawn(self, action: Action):
    move: Tuple = ast.literal_eval(action.action_id)
    # This returns false if the move is invalid, but it should never return false because I will only present the agent with valid moves.
    self.display_message(f"Placed at {move}.\n")
    self.board.place_pawn(move)

I don't believe invalid actions are handled here. I see your comment, but regardless please add this support.
[x] When 'show_state' is set to true, does the game state print in the terminal so that the code is debuggable?
[x] Does the game class have an init_game method that receives two agent classes as input? (even if these agent classes are used to make more agents that are on different teams).
[x] Does the class have an 'id' attribute with the name of the game?
[x] Does the class have a 'rules' attribute that explains the rules of the game?
I'll say yes to this, but it might be decided later that the rules should be split up into `additional_details a bit.


chore: bump kclvm version to 0.4.4

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

chore: bump kclvm version to 0.4.4

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[x] Other

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 89.712%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1369

Relevant Lines:
1526

💛  - Coveralls


Sscan freeze on empty set

Predis 1.0.1
redis_version: 3.0.0
PHP 5.5.9-1ubuntu4.9 (fpm-fcgi) (built: Apr 17 2015 11:44:58)
Linux 3.13.0-52-generic #85-Ubuntu SMP Wed Apr 29 16:44:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ redis-cli -c -p 30001
$ localhost:30001> get namespace:key
$ (nil)
$ localhost:30001>

$members = $client->scard($namespace . ':' . $key); // $members = 0;

foreach (new SetKey($client, $namespace . ':' . $key) as $data) // freezes
{
  ...
}

That's quite strange as I can't replicate the issue in any way. Can you provide the output of MONITOR run inside redis-cli when running this PHP script?

@dummas I'm closing this issue since I'm not able to replicate it in any way even using the same versions of Predis, Redis and PHP. Feel free to re-open it if you have more details.


Skip envoy build (or reduce building time)

It looks like envoy takes around 14 seconds to build even if the binary already exists.
$ make
can't load package: package github.com/cilium/cilium/common/tests: C source files not allowed when not using cgo or SWIG: bpf-event-test.c
contrib/scripts/check-fmt.sh
make[1]: Entering directory '/home/vagrant/go/src/github.com/cilium/cilium/envoy'
Makefile:102: target '../pkg/envoy/api/discovery.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/auth.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/address.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/lds.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/bootstrap.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/cds.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/rds.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/sds.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/base.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/health_check.pb.go' given more than once in the same rule
Makefile:102: target '../pkg/envoy/api/protocol.pb.go' given more than once in the same rule
rm -f ./bazel-bin/envoy ./bazel-bin/cilium_integration_test
bazel --batch build  //:envoy
External dependency cache directory /home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f
make[2]: Entering directory '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps'
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/cares.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/libevent.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/gperftools.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/luajit.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/nghttp2.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/boringssl.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/yaml-cpp.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/zlib.dep' is up to date.
make[2]: Leaving directory '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps'

real    0m0.126s
user    0m0.000s
sys     0m0.000s
DEBUG: /home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy/bazel/repositories.bzl:76:5: Fetching external dependencies...
DEBUG: /home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy/bazel/repositories.bzl:82:5:
DEBUG: /home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy/bazel/repositories.bzl:83:5: External dependency cache directory /home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f
make[2]: Entering directory '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps'
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/cares.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/libevent.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/gperftools.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/luajit.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/nghttp2.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/boringssl.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/yaml-cpp.dep' is up to date.
make[2]: '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps_cache_2c744dffd279d7e9e0910ce594eb4f4f/zlib.dep' is up to date.
make[2]: Leaving directory '/home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy_deps'

real    0m0.126s
user    0m0.000s
sys     0m0.000s
DEBUG: /home/vagrant/.cache/bazel/_bazel_vagrant/502ef5068e38073dd9828a920a71f484/external/envoy/bazel/repositories.bzl:84:5: External dep build exited with return code: 0
INFO: Analysed target //:envoy (105 packages loaded).
INFO: Found 1 target...
Target //:envoy up-to-date:
  bazel-bin/envoy
INFO: Elapsed time: 14.711s, Critical Path: 3.08s
INFO: Build completed successfully, 3 total actions

Any solutions or ideas to skip it by default in the development environment?

@aanm can you reevaluate this and perhaps close it?
If it's not good enough now, I think the next step is to add an option that allows the cilium / cilium-envoy version SHA comparison to be conditionally disabled. Then we can introduce targets that skip rebuilding and everything should still interoperate (so long as you aren't making changes related to envoy / envoy API). See also the thread at #2828.

@joestringer a make (after make clean) takes 2m6s. A re-(make) without any changes takes 1m20s.

A couple of points of interest, running inside the developer VM:
vagrant@runtime1 [Feb 28 19:26:28 UTC] cilium $ time sh -c "find . -name *.go >/dev/null"

real    0m1.113s
user    0m0.016s
sys     0m0.340s
vagrant@runtime1 [Feb 28 19:26:32 UTC] cilium $ time sh -c "go list ./... >/dev/null"
can't load package: package github.com/cilium/cilium/test/bpf: C source files not allowed when not using cgo or SWIG: bpf-event-test.c

real    0m14.184s
user    0m0.392s
sys     0m6.204s

Even just moving to find seems to speed this up considerably. My only reservation against hardcoding them is that we need to remember to update the list each time we add a new pkg.

On Feb 28, 2018, at 11:42 AM, Joe Stringer<EMAIL_ADDRESS>wrote:
@aanm https://github.com/aanm wow, I'm really surprised that it takes 13 seconds to list a bunch of files in the filesystem.
A couple of points of interest, running inside the developer VM:
vagrant@runtime1 [Feb 28 19:26:28 UTC] cilium $ time sh -c "find . -name *.go >/dev/null"
real    0m1.113s
user    0m0.016s
sys     0m0.340s
vagrant@runtime1 [Feb 28 19:26:32 UTC] cilium $ time sh -c "go list ./... >/dev/null"
can't load package: package github.com/cilium/cilium/test/bpf: C source files not allowed when not using cgo or SWIG: bpf-event-test.c
real    0m14.184s
user    0m0.392s
sys     0m6.204s
Even just moving to find seems to speed this up considerably. My only reservation against hardcoding them is that we need to remember to update the list each time we add a new pkg.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/cilium/cilium/issues/2689#issuecomment-369358948, or mute the thread https://github.com/notifications/unsubscribe-auth/AGN12-7JzQFhEgPT5_rmrd7Py_21c9ceks5tZaxCgaJpZM4R0LsI.

One more data point: I’ve noticed this is noticeably slower with the guest additions shared folders compared to NFS.

Would it simplify our lives if we added a make target that did all the go builds but explicitly didn't do the envoy build? (so, every subdir but envoy) the default make rule could still do envoy if we want to ensure that a naive make invocation does the right thing. Most developers would then just use make thegoparts (the docs would explain this).
I realise this won't be pure or correct but it does seem that we're spending a lot of time trying to make our build perfectly correct to account for the uncommon case when someone edits envoy but fast enough for the common case where one does not.

On Mar 1, 2018, at 1:46 AM, Ray Bejjani<EMAIL_ADDRESS>wrote:
Would it simplify our lives if we added a make target that did all the go builds but explicitly didn't do the envoy build? (so, every subdir but envoy) the default make rule could still do envoy if we want to ensure that a naive make invocation does the right thing. Most developers would then just use make thegoparts (the docs would explain this).
I realise this won't be pure or correct but it does seem that we're spending a lot of time trying to make our build perfectly correct to account for the uncommon case when someone edits envoy but fast enough for the common case where one does not.

IMO this would work if also somehow disable the envoy version check when using an old binary on purpose.

IMO this would work if also somehow disable the envoy version check when using an old binary on purpose.

This could be configurable via some environment variable / Cilium configuration? This would be only for quick developer turnaround.

IMO this would work if also somehow disable the envoy version check when using an old binary on purpose.

TIL that it's only a warning (https://github.com/cilium/cilium/blob/master/daemon/main.go#L518).

Fixed by #3527


Unable to Create an Actor

Click Create Actor
Name character
Type Character
Click Create New Actor

Creating a Character (Legacy) populates the initial character and the legacy character with the 2.0 warning.

Have you tried recreating this issue on a brand new world? I imagine this may be caused by corrupted or incorrectly set default resource tracker settings. Try resetting those to their default values and see if it resolves the issue.

Have you tried recreating this issue on a brand new world? I imagine this may be caused by corrupted or incorrectly set default resource tracker settings. Try resetting those to their default values and see if it resolves the issue.

It was brand new. First time using the system. Happened within five minutes of opening the world. I can test again later if this doesn’t exist in new worlds for you.

It was brand new. First time using the system. Happened within five minutes of opening the world. I can test again later if this doesn’t exist in new worlds for you.

I can confirm. I have the same issue on a clean install with no modules enabled. I check the resource tracker and it seems that in alpha 4 there are no defaults one on world creation. Resetting them fixes the issue.

Fixed in latest update


unexpected isFloat behavior

Hi, first off, thanks for this excellent library
maybe it's just me, but this is not the behavior I expected out of isFloat:
const { isFloat } = validator

console.log(isFloat('1'))
  // true
console.log(isFloat('20'))
  // true
console.log(isFloat('0'))
  // true

☝ jsbin
In the documentation, I took:

check if the string is a float.

to mean:

"validate that the string is a float and only a float".

i.e. isFloat('1') should return false, since 1 is an integer and not a float
In my particular implementation, I was trying to use isFloat to validate dollar amount inputs received as strings - I ended up using this to achieve the desired result (not sure if I'm gonna roll with it or not):
if (isFloat(paramValue) && !isInt(paramValue)) { ... }

again, I may very well be missing the point here (no pun intended). And, if clarification seems to be in order, I'd be happy to submit a quick addition to the README.

isDecimal with force decimal option, is what you are looking for.

@linkinmedo Ah thank you :clap:


RFC: IPC API v2

Second (major) iteration of IPC API. I dislike having to use an event-based system, I think there should be a wrapper for most developers to use which allows seemingly exposing functions into the web context, either via a function or using a setter in the IPC API object.
Expose
Function
Implementation A
Window.ipc.expose('key', (arg1, arg2) => {});

Implementation B
Window.ipc.expose({
  key: (arg1, arg2) => {}
});

Setter
Window.ipc.key = (arg1, arg2) => {};

Example usage
// node
Window.ipc.myFunction = () => {}; // or

Window.ipc.expose('myFunction', () => {}); // or

Window.ipc.expose({
  myFunction: () => {}
});

// web
Gluon.ipc.myFunction();

Unexpose
Function
Window.ipc.unexpose('key');

Setter
delete.Window.ipc.key:

Example usage
delete Window.ipc.key; // or

Window.ipc.unexpose('key');

I'm leaning towards using a setter, but it might seem strange/wrong to some people (for the first time). Please comment with which you prefer and/or opinions on all!

I like the simplicity of a setter, but I fear the "magic" to do it is a bad idea.
Comfiest api though...

I think i prefer impl A to impl B though of those two.

I suppose we could support both (or all)? Would probably overcomplicate things though.

Adding all 3 implementations described in the issue.

I prefer Implementation B since it allows you to easily define multiple functions in 1 call, so you wouldn't have to keep calling the function.

Thanks for your input. Both implementations are now supported in current branch, as well as the setter.

I like the idea of having two implementations as well. Can't wait to see where this API goes!

given this is fully implemented, is this rfc closable now?

Will be closed upon v0.10 release shortly.


Powershell opened by PowerToys have different PATH

Microsoft PowerToys version
0.82.1
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Use Crtl+Space to open the powershell
Below is an image, left is powershell opened by PowerToys Run, right is opened by search and manual click
You can see the difference of the PATH env variable

✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

The bug report file is below:
PowerToysReport_2024-07-16-16-22-52.zip

@chesha1
Are all values duplicated? Would be interesting to export both lists into a text file and compare them. /needinfo

@htcfreek I am sorry I cannot reproduce this issue now. It resolved itself after a reboot.


Add ability to crop image

It would be great to have image cropping built in.

For example:
https://manet.herokuapp.com/?url=www.google.com&width=1024&clipRect=0%2C0%2C1024%2C2000
I get a screen like

out of page should not be included in a screenshot
Purpose of crop option is diferent. Smaler image size is preferable.
I want to do screnshot of maximum dimension 1024x2000.
How could I achive this scenario?
I want something like the maximum height of the viewport


Create API Endpoint

Summary
An API Endpoint should be created to handle API upload, query, download requests
Parent Requirement

SOC-SDC-L4-59
Data Access API
The SDC shall make available an API, available to both the IMAP science team and general public, that enables automated data access.
Requirement
Necessary to support dissemination of science data to the global heliophysics community.
SOC-L3-57
Test
SIT-1: Query, Download API in pythonSIT-2
SIT-2

Tasks

[ ] #79
[x] #100

I believe #100 is 'done' enough for SIT-2, though I would like to make future improvements.

This one is completed by #102


Model parameter update

Hi,
I would like to manually update the model parameter(s) from module (either Module or BucketingModule).
Assume that I have created a module for my network.
I tried the following code:
updater = self.module._curr_module._updater
for ind, pair in enumerate(zip(self.module._curr_module._exec_group.param_arrays, new_grads)):
            # here, I don't want to use self.module._curr_module._exec_group.grad_arrays
            updater(index=ind, grad=pair[1][0], weight=pair[0][0])

arg_params, _ = self.module.get_params()  # sync aux params across devices
self.params.update(arg_params)

The above code does not work correctly. After this update, the model parameter seems to be much worse and worse.
I am looking for your advice. Thanks!

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!
Also, do please check out our forum (and Chinese version) for general "how-to" questions.


Readme updated

New neovim plugin incorporated.
Difference between different Vim plugins highlighted in bold
Extra whitespaces removed

Ping @fregante

Ping @fregante

Thanks for this! However it gives too much attention to vim stuff. We to either revert the style and just keep the best 2 solutions or wrap everything in a details tag so that when it’s closed it only takes 1 line.

Thanks for this! However it gives too much attention to vim stuff. We to either revert the style and just keep the best 2 solutions or wrap everything in a details tag so that when it’s closed it only takes 1 line.

I wrapped up all vim-related plugins inside a <details> tag.
Now is it OK?

I wrapped up all vim-related plugins inside a <details> tag.
Now is it OK?

No no, it is of no use for the end-user to know which language a plugin is written in. The end user only needs to know about what it's dependencies are. Why? Because satisfying dependencies can be a pain in the a**.

No no, it is of no use for the end-user to know which language a plugin is written in. The end user only needs to know about what it's dependencies are. Why? Because satisfying dependencies can be a pain in the a**.

Isn’t the fact that it’s written in Python or TLC imply that they require python or tlc installed?

Isn’t the fact that it’s written in Python or TLC imply that they require python or tlc installed?

I understand that you wrote a better dependency-free plugin and I appreciate your enthusiasm, but here I just need to list a few options and move on, I don’t need detailed explanations of each.
What if I use this format:

Vim plugin (requires Python)
Neovim plugin (no dependencies)

I understand that you wrote a better dependency-free plugin and I appreciate your enthusiasm, but here I just need to list a few options and move on, I don’t need detailed explanations of each.
What if I use this format:

Vim plugin (requires Python)
Neovim plugin (no dependencies)

Isn’t the fact that it’s written in Python or TLC imply that they require python or tlc installed?

Nope! In fact, mine is mainly written in python

Isn’t the fact that it’s written in Python or TLC imply that they require python or tlc installed?

Nope! In fact, mine is mainly written in python

I understand that you wrote a better dependency-free plugin and I appreciate your enthusiasm, but here I just need to list a few options and move on, I don’t need detailed explanations of each because those details can change.

Oh, right. So it should be compact, right?
Hmm... I have given a compact layout in the latest commit. See if that is OK

I understand that you wrote a better dependency-free plugin and I appreciate your enthusiasm, but here I just need to list a few options and move on, I don’t need detailed explanations of each because those details can change.

Oh, right. So it should be compact, right?
Hmm... I have given a compact layout in the latest commit. See if that is OK

Nope! In fact, mine is mainly written in python

So how can it run without python?

Nope! In fact, mine is mainly written in python

So how can it run without python?

So how can it run without python?

I pre-compile it using pyinstaller. The user downloads the binary pre-compiled, and the binary itself does all the hard work.

So how can it run without python?

I pre-compile it using pyinstaller. The user downloads the binary pre-compiled, and the binary itself does all the hard work.

@fregante Is the current description concise enough?

@fregante Is the current description concise enough?

:+1:
Let's merge it?

:+1:
Let's merge it?

@fregante Is it OK? or are changes required?

@fregante Is it OK? or are changes required?


How to add a pull request to Osiris

Hi ilm new and I don't know much about coding so how do I add a pull request to Osiris?

Do you already have a fork with your own commits set up? please give more info on your current state.

Well I don't know what you mean with fork and commits I just have Osiris and I wanted a fov circle cuz I don't know what fov is good for what situations

ive put some information in #868 if you can use it. basically you need to fork the project and then merge the branches you want.

ive put some information in #868 if you can use it. basically you need to fork the project and then merge the branches you want.

Thanks 🙃

Please close this issue if you got the answer.

Please close this issue if you got the answer.

Ok thanks for reminging


Add bolt-based file store layer

Codecov Report

Merging #116 into master will decrease coverage by 0.17%.
The diff coverage is 94.73%.

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


Show extended location for Edge Zone

Preflight Checklist

[X] I have installed the latest version of Storage Explorer.
[X] I have checked existing resources, including the troubleshooting guide and the release notes.
[X] I have searched for similar issues.

Problem
Show extended location for Edge Zone - Request from Azure Edge Zone
Desired Solution
For Storage account, managed disk and snapshot, display the extended location information for resources created to Edge Zone (Microsoft/Operator/Enterprise)
Alternatives and Workarounds
No response
Additional Context
NeedByDate: 9/30/21

From George - SDK has already added the ability to show extended location to Storage, Compute, Network SDKs of all languages.

APIs which contains extended location:
SRP: https://github.com/Azure/azure-rest-api-specs/tree/master/specification/storage/resource-manager/Microsoft.Storage/stable/2021-01-01, sample: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storage/resource-manager/Microsoft.Storage/stable/2021-01-01/storage.json
CRP (Disk part): https://github.com/Azure/azure-rest-api-specs/tree/master/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30, sample: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/disk.json
CRP (VM part): https://github.com/Azure/azure-rest-api-specs/tree/master/specification/compute/resource-manager/Microsoft.Compute/stable/2020-12-01, sample: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/Microsoft.Compute/stable/2020-12-01/compute.json

SDKs support extended location:
SRP:
Python: https://pypi.org/project/azure-mgmt-storage/17.0.0/
.Net: https://www.nuget.org/packages/Microsoft.Azure.Management.Storage/19.0.0
Go: https://github.com/Azure/azure-sdk-for-go/releases/tag/v52.0.0
Java: https://github.com/Azure/azure-sdk-for-java/tree/azure-resourcemanager-storage_2.2.0/sdk/resourcemanager/azure-resourcemanager-storage/
NodeJS<EMAIL_ADDRESS>C++: no management moduel
CRP:
Python: https://pypi.org/project/azure-mgmt-compute/19.0.0/
.Net: https://www.nuget.org/packages/Microsoft.Azure.Management.Compute/44.0.0
Go: https://github.com/Azure/azure-sdk-for-go/releases/tag/v51.2.0
Java: https://github.com/Azure/azure-sdk-for-java/tree/azure-resourcemanager-storage_2.2.0/sdk/resourcemanager/azure-resourcemanager-storage/
NodeJS<EMAIL_ADDRESS>C++: no management module

I have reached out to George with some Qs.


Crosschecking cubefree gnu's

I used this program
q:=0; for n in [1..50000] do if q=0 then if IsCubeFreeInt(n)=true then
 s:=NumberCFGroups(n,false);t:=NrSmallGroups(n);Print(n," ");if s<>t then q:=q+
1;fi;fi;fi;od; if q=0 then Print(" no errors ! ");fi;

to verify that the cubefree-package produces the same gnu's as the Nr-SmallGroups-command. All gnu's were correctly determined. The calculation took roughly 3 hours.
Furthermore, I crosschecked the squarefree cases of the NrSmallGroup-command with a formula I programmed in PARI/GP. The checksums for the ranges [1,10^6] and [1,10^7] both coincided,
so the squarefree-case of NrSmallGroups should be reliable. It remains to verify the case p*q^2.

@gnufinder thanks - could you also include the PARI/GP code then, please?

groupnumber(n)={su=0;fordiv(n,m,w1=factor(m);w2=factor(n/m);w1=component(w1,1);w2=component(w2,1);p=1;for(j=1,length(w2),nu=0;for(k=1,length(w1),if(Mod(w1[k],w2[j])==1,nu=nu+1));p=p*(w2[j]^nu-1)/(w2[j]-1));su=su+p);su}

determines the number of groups of order n, assuming n is squarefree.

@gnufinder thanks - any particular reasons to format PARI/GP code in one line?


New branch

fixed incorrect handling of ARGFILE parameter. note that this shell script can currently be exploited by malicious content in the of the ARGFILE file.

Sorry for the slow reply re: the original PR. I can merge the original handling of the ARGFILE parameter handling if you accept the contributor license agreement. The new commit (a6e1bb4) seems to cause issues with the continuous integration. Can you split these up?

@microsoft-github-policy-service agree


String.prototype.startsWith: "undefined is not a constructor"

I'm running acceptance tests in Ember.  The tests pass in Chrome, however when I run the tests in Phantom JS, I am getting this error:
TypeError: undefined is not a constructor (evaluating 'type.startsWith('@@cashay')')

which seems to stem from this line:
https://github.com/mattkrick/cashay/blob/27320c4ebd5c5d2ce697479d21a72de7f3d7c73c/src/normalize/duck.js#L38
Any idea what might cause this?

Did you set up the redux store for your tests?
On Oct 31, 2016 9:18 AM, "Dustin Farris"<EMAIL_ADDRESS>wrote:

I'm running acceptance tests in Ember. The tests pass in Chrome, however
when I run the tests in Phantom JS, I am getting this error:
TypeError: undefined is not a constructor (evaluating 'type.startsWith('@@cashay')')
which seems to stem from this line:
https://github.com/mattkrick/cashay/blob/27320c4ebd5c5d2ce697479d21a72d
e7f3d7c73c/src/normalize/duck.js#L38
Any idea what might cause this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mattkrick/cashay/issues/136, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFQjvzlg9SpBdX7iO2aQU7o_PtLkLUtZks5q5hS4gaJpZM4KlM5O
.

Think I figured it out.  It is because PhantomJS does not support String.prototype.startsWith.  I am trying to find a polyfill I can inject.

Whoa! Thats interesting. I could use indexOf, startsWith is just a little
more expressive
On Oct 31, 2016 10:33 AM, "Dustin Farris"<EMAIL_ADDRESS>wrote:

Think I figured it out. It is because PhantomJS does not support
String.prototype.startsWith. I am trying to find a polyfill I can inject.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mattkrick/cashay/issues/136#issuecomment-257362422,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFQjv1OfRk6TKOe6-9DV5p8klsIKYHkvks5q5iaBgaJpZM4KlM5O
.

Here's a polyfill you could add to cashay's dependencies: https://github.com/mathiasbynens/String.prototype.startsWith

But now getting the same thing for Object.prototype.find
e.g.: https://github.com/mattkrick/cashay/blob/8d9174d478b63883f68b64f82c183b60a3aad0c4/src/normalize/denormalizeStore.js#L56
This may be something I as a user should be responsible for polyfilling (I wonder if babel polyfill would make all of this go away).

Yeah, running everything through babel polyfill makes this all go away.
This can be closed as far as I'm concerned, unless there is any docs action you think would be appropriate.

I am hitting this again, this time in plain-ol node
var transformSchema = require('cashay').transformSchema;

transformSchema(myRootSchema...

results in
TypeError: undefined is not a function
    at /Users/dustin/Archive/broccoli-cashay-schema/node_modules/cashay/lib/schema/transformSchema.js:127:23

stemming from: https://github.com/mattkrick/cashay/blob/master/src/schema/transformSchema.js#L39

ah, now that we don't have the polyfill, it doesn't have startsWith?

Correct—if I install/require the polyfill mentioned above everything works.  What do you think about doing this in cashay instead?
Add String.prototype.startsWith to dependencies and in index.js:
import 'string.prototype.startsWith';

(not sure how the dots in the name will affect import)

and/or do it with babel-polyfill might be better

Well the fact that I was using node v0.12.6 probably wasn't helping 👎
What minimum version of node do we want to support?

I'd say 6 LTS, although I think 4 would work
On Nov 25, 2016 11:24 AM, "Dustin Farris"<EMAIL_ADDRESS>wrote:

Well the fact that I was using node v0.12.6 probably wasn't helping 👎
What minimum version of node do we want to support?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mattkrick/cashay/issues/136#issuecomment-263013660,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFQjv5tJpz05i337_BywMyy2l_yqHsq9ks5rBzXogaJpZM4KlM5O
.


Can't reach api in staging environments

Describe the bug
Api is unreachable in the staging environment currently. I get this response from all functions, and also when trying to open /api without adding the function name:
{"code":401,"message":"IDX10205: Issuer validation failed. Issuer: '[PII is hidden. For more details, see https:\/\/aka.ms\/IdentityModel\/PII.]'. Did not match: validationParameters.ValidIssuer: '[PII is hidden. For more details, see https:\/\/aka.ms\/IdentityModel\/PII.]' or validationParameters.ValidIssuers: '[PII is hidden. For more details, see https:\/\/aka.ms\/IdentityModel\/PII.]'."}
To Reproduce

Start a pull request, wait until its finished
Try to access a function on the staging url (eg. /api/GetThreads)

Expected behavior
Function should respond.
Additional context

I tried with the same code that's currently on the production environment, but it didn't help. So definitely an Azure problem.
Also this response is definitely not coming from my functions, and I can't see failed requests / exceptions in the live metrics either.
Deployment log looks normal
Function type is managed
Functions are nodejs (typescript)
No custom authentication
App is in the Standard plan

Update:
I created a new static web app to investigate the problem further. This is the result:

Production environment: api calls work - no errors
Staging environment: api calls fail with the same error as the original site:
{"code":401,"message":"IDX10205: Issuer validation failed. Issuer: '[PII is hidden. For more details, see https:\/\/aka.ms\/IdentityModel\/PII.]'. Did not match: validationParameters.ValidIssuer: '[PII is hidden. For more details, see https:\/\/aka.ms\/IdentityModel\/PII.]' or validationParameters.ValidIssuers: '[PII is hidden. For more details, see https:\/\/aka.ms\/IdentityModel\/PII.]'."}

So at this point I can deduce this is clearly an internal Azure problem with the staging environments.
And the million dollar question is: when can I expect staging envs to work again? Also will you make an announcement about it, so I don't need to waste cloud credits on the constant deployment and undeployment of the staging envs?
Thank you in advance!

I'm seeing the exact same issue with all newly deployed staging environments as of yesterday. Environments deployed before that continue to work correctly. All environments deployed since yesterday exhibit this behavior.  Any request to /api/ results in:

{"code":401,"message":"IDX10205: Issuer validation failed. Issuer: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Did not match: validationParameters.ValidIssuer: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]' or validationParameters.ValidIssuers: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'."}

Hi, this was a platform regression to staging environments calling functions such that the function calls exhibited behavior as detailed in this issue. This regression was rolled out 9/23/21 18:05UTC and has been mitigated as of 9/24/21 19:00 UTC, so any apps with managed functions that updated their staging environments in that time window were impacted. Any deployments here on out to the staging environments should restore your functions and they should be made available again. We apologize for the inconvenience.

Any deployments here on out to the staging environments should restore your functions and they should be made available again. We apologize for the inconvenience.

Unfortunately, I am still experiencing the exact same behavior as before your reply. I have re-deployed two separate staging environments and I am still getting the same error message when making request to any URL at /api/*:

{"code":401,"message":"IDX10205: Issuer validation failed. Issuer: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Did not match: validationParameters.ValidIssuer: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]' or validationParameters.ValidIssuers: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'."}

I'm also seeing this issue on a branch deployed 1 min ago.

Weird, I just created a new staging env and can confirm it's working fine for me.

https://zealous-moss-01ebaab03-1.westeurope.azurestaticapps.net/api/

Have you tried opening a new pull request, or just pushed new commits into the branch?

I've not tried a new PR because @mkarmark wrote

Any deployments here on out to the staging environments should restore your functions and they should be made available again.

I kinda assumed that ment new deploys would fix existing environments, but maybe not

She probably meant new deployments of the staging environments.

If you guys confirm it's working for you too I'll close this.

I can confirm that creating a new pull-request generates a new staging environment that no longer has this issue. Redeploying onto an existing staging environment does not solve the problem. Thanks for the quick fix!

Ok thanks everybody, closing this


To add a COMMUNITY_GUIDELINES.md file

Problem: We need to have a markdown file that contains various community guidelines that members of the community have to follow. This is a good first PR for beginners that want to contribute to open source & make a meaningful contribution to this project.
Solution: To come up with a COMMUNITY_GUIDELINES.md file that has at least 5 community guidelines alongside with proper markdown formatting (e.g. Respect one another etc - then add in details)
Expectation: It should be a thorough document detailing 5 community guidelines in bullet form. And under each individual bullet point, more details have to be elaborated. One liners will not be accepted, and may be labelled as 'spam'.
Reference: Please feel free to scour the web & refer to relevant resources online to draft the COMMUNITY_GUIDELINES.md document. Upon review, if it's acceptable, owner will approve & merge PR.
Take note: Please avoid direct plagiarism from existing websites! You can use online resources for reference when drafting the document, but kindly paraphrase/rephrase the content. Whatever that is crafted in COMMUNITY_GUIDELINES.md would be transferred to one of the webpages in the community website for others to see 😊

Hi @melvincwng  can I handle this?

@Bennykillua, alright!
Have assigned this to you.

@Bennykillua, any updates on this?

Still on it. @melvincwng


Conflict with Internet Download Manager

Don't use Gradio-pdf with IDM. Otherwise IDM will download the PDF and Gradio-pdf won't display anything.

Can you post a reproduction @JY9087 ?

Will close for lack of repro.


[Publisher] Satus of the API does not change after a creator change it to prototyped status

When a user with creator role changes the API status to prototyped and save, at the endpoints page, a message is shown that the API is updated successfully. But at the overview page, it still displays that the API is in 'CREATED' state.

User with a publish role needs to change the Lifecycle to 'Prototype' for this api to become a prototyped api. untill then it is in created state


refactor: used simpler and more implicit widgets in GameWidget

Description
Changes:

Container for ColoredBox
Container for SizedBox.shrink

Rationale:

Avoid unnecessary checks.
Be more implicit on the desired effect by using more specific widgets.
Remove unnecessary checks made by Flutter by not following the above point.
SizedBox can be const and won't even create a new instance during runtime.

Checklist

[X] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
[X] I have read the Contributor Guide and followed the process outlined for submitting PRs.
[X] I have updated/added tests for ALL new/updated/fixed functionality.
[X] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
[X] I have updated/added relevant examples in examples.

Breaking Change

[ ] Yes, this is a breaking change.
[X] No, this is not a breaking change.

Related Issues

(cc: @spydon , @renancaraujo)


Upstream latest packaging changes

Note that the MS Store release isn't done yet. It'll appear at some point.

Thanks for keeping it up to date.


Allow superusers to pass admin & member tests for projects

Also, what is the context for this change? A description here would be helpful.

Mostly I want to be able to trigger builds for users, which is now hidden behind an admin block. But it will also be useful for other places we're running the check as well, so we can see more info.

Believe the .com overrides these methods, so it shouldn't have much effect.

Roger 👍


Upload within a model form

I'm not sure if this is the place for questions, so please delete it if innapropriate. I just couldn't find a forum or another place that seemed better suited.
I'm uploading a user avatar with carrierwave, which works inside a regular form_for. So I get the avatar along with all the rest of the user info.
However, with carrierwave_direct, something like this would not work, since I would need to nest the direct_upload_form_for inside a form_for. Something like this:
<%= form_for @user, :html => { :multipart => true } do |f| %>
  <%= f.error_messages %>
  <%= f.label "What's your name?" %>
  <%= f.text_field :name %>
  <%= f.label "What's your birthday?" %>
  <%= f.date_select :birthday %>
  <%= direct_upload_form_for @uploader do %>
    <%= f.label "Upload your avatar" %>
    <%= f.file_field :avatar %>
    <%= f.submit %>
  <% end %>
  <%= f.submit =>
<% end %>

Anyway to get around this? I would really love to avoid a flash uploader.
Thanks for the great gem! Hope I'm able to get it working on my scenario.

Hey,
Remember that when you use: <%= direct_upload_form_for @uploader %>
The form will post directly to S3. If the upload is successful S3 redirects the user back to your application but it only includes the bucket, key and etag and nothing more.
When I want to use this gem with a project such as yours, I would use a multi-stage form, so that the user can upload their avatar first in a form on it's own by selecting a file then pressing "Next", then you have the form to create their profile on the next page.

Thank you a lot for your feedback!

I'm grappling with a similar question, but more so from a reverse perspective (retrieving the uploaded file from a S3 bucket).  I have the following test app that successfully uploads with carrierwave_direct and then goes on to call the new method of an associated model:
https://github.com/ryanmcadler/carrierwave_direct_test_app
How should call the uploaded file in say, the show view of an associated model?  I assume the usual means of doing this with just carrierwave/fog (e.g. post.photo_url() ) won't work because the file gets stored within a UUID-named directory?
Thanks in advance...

I hunted quite a while looking for this same answer, I recommend bumping this information into the README. This is especially important because currently the documentation makes CarrierWave_Direct look like it operates in precisely the same way as CarrierWave, which it doesn't, and for good reason.

@npflood feel free to add what you think is missing to the README and send me a pull request and I'll pull your changes in.

@dwilkie @npflood It would be my pleasure to submit a pull request for the README but I haven't had time lately to work out my issue.
@npflood Could you perhaps post the resource that helped you figure it out?
Alternatively, if a simple demo app could be committed this would really help.


Support dynamically setting test_event_code

Resolves #27

Thanks for your PR!
It was already fixed inside our team.


Warn when type parameter inferred to be Nothing

I've just spent about an hour tracking down a bug where I was narrowing an Iterable to a type parameter, which it turned out the compiler was inferring to be Nothing. On the rare occasions that I want a type parameter to be Nothing, I always explicitly specify it (either as the default at the definition site, or at the caller), so it would be helpful to me if the compiler would print a warning anytime it inferred a type parameter (or perhaps a type more generally) to be Nothing, similar to the warning it gives about the value nothing or functions or values having the type Nothing.

Out of curiosity, what was the use case (if it can be shared)?

The code where the type parameter was incorrectly inferred to be Nothing is in this code to read tab-separated data from a file embedded in the module as a resource:
object fileSplitter {
		{String+} splitOnFirstTab(String line) => line.split('\t'.equals, true, true, 1);
		String->Type lineToEntry<Type>({String+} line, Type(String) factory) =>
				line.first->factory(line.rest.first else "");
		shared Map<String, Type> getFileContents<Type, BroaderType=Type>(String filename,
				BroaderType(String) factory) given Type satisfies BroaderType {
			assert (exists textContent =
					readFileContents(`module strategicprimer.model`, filename));
			return map(textContent.split('\n'.equals).map(splitOnFirstTab)
				.map(shuffle(curry(lineToEntry<BroaderType>))(factory)).narrow<String->Type>());
		}
	}

Before I made the type parameter explicit in my commit e2eb545dafe2d165f5949718564143ceec6fcde8, code calling fileSplitter.getFileContents would compile but return an empty Map.
(If you meant my use case for wanting the type parameter to be Nothing, it's a function that asks the user a yes-or-no question, but allows the user to answer "always" or "never" to have future calls automatically return true or false without further interaction, and in some cases allows "quit"; its signature is Boolean|Absent inputBooleanInSeries<Absent=Nothing>(String prompt, <Absent|Boolean?>(String) quitResultFactory).)


Properly check for mptcp permissions

Some signing services don't use embedded.mobileprovision, this is a better way to check if you can use mptcp sockets. socket(39, 1, 0) will return -1 in case of error

Merged. Thanks.


N-1 replication ?

I'm wondering if there is any way to do N-1 replication (~RAID5)
ie if I have 5 servers, I would have 5 shards and each server will store 2 shards, thus allowing to loose 1 server
server 1: shard 1 & 2
server 2: shard 2 & 3
...
server 5: shard 5 & 1

Thanks in advance

"Erasure coding". It's not implemented.
Main reason is implementation complexity.
Things to consider:

modern reconstruction codes like LRC require to use multiple chunks (example: 12) - it requires sophisticated methods to spread chunks across servers;
it's not directly compatible with async replication and async data merging on replicas - it requires engineering of complex solutions like plain replication for fresh data and converting to erasure-encoded chunks for older data;
it's not reasonable to use both erasure codes across different servers and RAID on local disks - better to use erasure codes universally with some chunks placed locally and some across different servers; but to keep up with performance of RAID, chunk size must be small enough (about 1 MB); but small chunks are bad as a unit of replication;
when using reconstruction codes, reads became very slow (often impractical) when few chunks are lost; significant engineering efforts required to balance between read and write performance, probability of performance degradation and data loss; amount of metadata; network amplification, etc...

Hi @alexey-milovidov
Erasure coding would be awesome, but I was really thinking about something simpler (my reference to RAID5 might have mislead you), even if shard placement has to be done manually (with ansible ;) )
I see 2 simple (tm) solutions:

at the distributed table level
If I call my table logs, I could have on server 1 table logs-s1 for the shard 1 and logs-s2 for the shard 2, the only missing piece might be to teach distributed table to handle suffix

<remote_servers>
    <logs>
        <shard>
            <weight>1</weight>
            <internal_replication>true</internal_replication>
            <suffix>-s1</suffix>
            <replica>
                <host>server1</host>
                <port>9000</port>
            </replica>

at the replicated table level
Allow replicated tables to replicate multiple shards
for example go from

ReplicatedMergeTree('/clickhouse/tables/shard1/hits', '{replica}', EventDate, intHash32(UserID), (CounterID, EventDate, intHash32(UserID), EventTime), 8192)

to
ReplicatedMergeTree(['/clickhouse/tables/shard1/hits','/clickhouse/tables/shard2/hits'] , '{replica}', EventDate, intHash32(UserID), (CounterID, EventDate, intHash32(UserID), EventTime), 8192)

Without knowing the code I suspect solution 1 would be simpler

Currently doable with one db per shard.
Check that comment: https://github.com/yandex/ClickHouse/issues/1287#issuecomment-406180820
@alexey-milovidov what do you think about  database-dependant macros (described in comment) or suffixes?

what do you think about database-dependant macros (described in comment) or suffixes?

If I understand correctly, we may introduce special {database} macro, that will always expand to database name. And you can use something like r1-{database} as replica name.
Sounds Ok.

@champtar, do you have any further questions?


X-Editable In kendo UI TreeView

i'm using kendo ui treeview and x-editable for editing nodes
the problem is x-editable is not modal and its limit to treeview box
see the image

i fixed it
i changed kendo css file
fix steps:
1-open kendo.common-xxx css file
2- find this line
div.k-treeview{
border-width: 0px;
background: transparent none repeat scroll 0px center;
overflow: auto;
white-space: nowrap;
}
3-just remove "overflow"


Remove unused imports

I think some of the imports are not used so I remove them here and see what happens.
Closes #103

hm... test pass so they were probably no needed?


build with system calls instead of FileUtils

Thanks for your really great work on this gem! Helped me to get ruby running on lambda in no time. At Vydia we will be productionalizing ruby code on lambda in no time, and I'd love to be able to use this gem and contribute back to it as we learn more moving forward.
However, I ran into some interesting anomalous behavior during rumbda build, which this PR should alleviate. I also added --clean and --deployment flags to the bundle install command during build.
Anomalous FileUtils behavior
FileUtils truncating dest rb files
I have no explanation for why this was happening, but it was consistent and very frustrating. I tried using :verbose => true option, nothing. Tried rewriting using FIleUtils in many different ways,
nothing. After spending hours with no results I gave up on FileUtils and rewrote using system calls.
Whole source file:

Truncated dest file:

FileUtils using stale versions of source files
No matter what cache I clear, how many times restarting the machine, this line
https://github.com/kleaver/rumbda/blob/cda8f9d3cf296c38fa389ac0c906ca166750e999/lib/rumbda/build.rb#L18
consistently only results in stale versions of the file being copied to dest. The only workaround was to rename the file, which would work one time, but then making changes to that file have the same results after any updates are made. :goberserk:
Modified source file:

Unmodified dest file:

Success!
Using this commit's patch version in my Gemfile,
group :development do
  gem "rumbda", :github => "Vydia/rumbda", :ref => "19e3016e2d3659a771c0a6933e4e4b3a51561eef"
end

here we are, running on lambda finally. Changes respected, truncation ceased, and gems cleaned.

Travis build failed on unrelated bundler version issue:
$ bundle install --jobs=3 --retry=3 --without development
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rumbda was resolved to 1.2.0.SNAPSHOT, which depends on
      bundler (= 1.9.9)
  Current Bundler version:
    bundler (1.16.1)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (= 1.9.9)', which is required by gem 'rumbda', in
any of the sources.
The command "bundle install --jobs=3 --retry=3 --without development" failed and exited with 6 during .
Your build has been stopped.

You could try gem uninstall bundler -v 1.16.1 before gem install bundler -v 1.9.9. That works for me locally.
For the record, rumbda test suite passes for me locally:
▶ rake
/Users/mark/.rvm/rubies/ruby-2.2.2/bin/ruby -I/Users/mark/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.7.1/lib:/Users/mark/.rvm/gems/ruby-2.2.2/gems/rspec-support-3.7.1/lib /Users/mark/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.7.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
......Creating zip file.
.

Finished in 0.03574 seconds (files took 0.17257 seconds to load)
7 examples, 0 failures


Not able to install requirements anymore

After cloning the repository and running pip3 install -r requirements.txt, I get the following errors:
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement torch==1.7.1 (from versions: 1.13.0, 1.13.1, 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch==1.7.1

Trying to install the requirements with conda install instead of pip, in a new conda environment, I get this when trying to install pytorch, after running conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch:
Package libgcc-ng conflicts for:
python=3.11 -> bzip2[version='>=1.0.8,<2.0a0'] -> libgcc-ng[version='>=10.3.0|>=7.3.0|>=7.5.0|>=9.3.0|>=9.4.0']
python=3.11 -> libgcc-ng[version='>=11.2.0|>=12']The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__cuda==12.1=0
  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0
  - cudatoolkit=11.0 -> __glibc[version='>=2.17,<3.0.a0']
  - cudatoolkit=11.0 -> libgcc-ng[version='>=10.3.0'] -> __glibc[version='>=2.17']
  - python=3.11 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']
  - pytorch==1.7.1 -> cudatoolkit[version='>=11.0,<11.1'] -> __glibc[version='>=2.17|>=2.17,<3.0.a0']
  - torchvision==0.8.2 -> __glibc[version='>=2.17']
  - torchvision==0.8.2 -> cudatoolkit[version='>=11.0,<11.1'] -> __glibc[version='>=2.17,<3.0.a0']
  - torchvision==0.8.2 -> pytorch=[build=cuda*] -> __cuda

Your installed version is: 2.35

System: Ubuntu 22.04 with anaconda installed

Your python version is so new that there are only 1.13.0, 1.13.1, 2.0.0, 2.0.1 torch version
I don't know how to write a requirement that is compatible with the ever-updating python
Maybe you can directly pip install pytorch torchvision and then check for compatibility issues
Maybe there will be more warnings

Python Should be between >= 3.7 and < 3.11. Otherwise these dependencies are not gonna work.


Error trying to use DiceRoller inside a Express NodeJs

Describe the bug
Error when trying to parse the data
this is the log
TypeError: tail.map(...).flat is not a function
at peg$c76 (E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:18910:10)
at peg$parseExpression (E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:20356:16)
at peg$parseMain (E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:19101:12)
at peg$parse (E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:21126:18)
at Function.parse (E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:21178:16)
at new DiceRoll (E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:21358:44)
at E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:21947:26
at Array.map ()
at DiceRoller.roll (E:\dev\disgruper\node_modules\rpg-dice-roller\lib\umd\bundle.js:21946:39)
To Reproduce
Steps to reproduce the behaviour:
const rpgDiceRoller = require('rpg-dice-roller/lib/umd/bundle.js');
const roller = new rpgDiceRoller.DiceRoller();
roller.roll('4d6+1');
        res.json(roller.output)

Environment (please complete the following information):
node 8
Additional context
Add any other context about the problem here.

I see you're using node 8. I'm afraid that this library only supports node 12+.
I don't think flat existed on that version of node. I'd suggest upgrading to v12 or newer and see if the issue persists.

I've realised that the setup instructions for CommonJS do mention Node < 12, which does make it seem like it is supported. Sorry for any confusion. I've raised a ticket to update the docs: https://github.com/GreenImp/rpg-dice-roller-docs/issues/24


Implement browsingContext.print command

Bug: #518
Spec: https://w3c.github.io/webdriver-bidi/#command-browsingContext-print
CDP method: https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF
Status

[x] [UP: #518] CDP does not have a shrinkToFit equivalent.
[x] Use .refine() / .transform() to check the first number is lower than the second as per the spec (https://w3c.github.io/webdriver/#dfn-parse-a-page-range)
[x] Do we need E2E tests?

See Status subsection in the first PR comment to see what's still missing.

Side note: The print method does not seem to be deterministic, so I will refrain from adding an E2E test with a golden:

Instead, I'll just write a basic one that compares it with ANY_STR.

For the validation, I'll try to use .refine() from zod.

      zod.union([
        zod.string().min(1),
        zod.coerce.string(zod.number().int().min(0)),
      ])

...works great! This required an update to zod in package.json to a newer version that supports zod.coerce (docs.)

Actually, that didn't work. I had to use this:
    .array(
      zod.union([
        zod.string().min(1),
        zod
          .number()
          .int()
          .min(0)
          .transform((n) => String(n)),
      ])
    )

Also, there's no need to validate cases like 4-3 at the mapper level, because CDP already does so:
>       assert resp == {'id': 1, 'result': {'data': ANY_STR}}
E       AssertionError: assert equals failed
E         {                                                    {'id': 1, 'result': {'data': ANY_STR}}
E           'error': 'unknown error',
E           'id': 1,
E           'message': 'Page range is invalid (start > end)',
E         }

Will track the shrinkToFit CDP change on https://github.com/GoogleChromeLabs/chromium-bidi/issues/518

I can't decide whether it makes more sense to have .default([]) be part of PrintPageRangesSchema or part of PrintParametersSchema.  I went with PrintParametersSchema because it's the most conservative/flexible approach.


Subgroup: Process

I think we need to nail down a concrete process for how the working group will function. We have rough ideas about subgroups, but I suggest creating a README in the repository that explains the concrete process, including what working group meetings are for, how to form subgroups, how subgroups present their information, and requirements for publishing results. I've started a simple document here: https://github.com/lastmjs/wg-governance

Basically I suggest that subgroups can be formed by anyone, and that each subgroup should create an issue here so that we can track the subgroup. Each subgroup should have a leader. Working group meetings should be used for subgroups to present their results and get feedback. The final result of a subgroup will be a document in this repository, thus they should create a pull request into the repo with their results.

I've created a pull request with my first draft, please comment: https://github.com/dfinity/wg-governance/pull/8
Note that the pull request was auto-closed, we need to get the permissions sorted out. We can reopen the pull request later.


Operator Overloading in C++

Description 📜
The documentation provides details about Operator Overloading in C++ along with some codes.
Fixes # <issue_number_here> #1754

Type of change 📝

[ x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x ] C/CPP

Checklist ✅

[ x] I follow Contributing Guidelines & Code of conduct of this project.
[x ] I have performed a self-review of my own code or work.
[x ] I have commented on my code, particularly in hard-to-understand areas.
[x ] My changes generates no new warnings.
[x ] I'm GWOC'21 contributor

@vasu-1  I have done all the required changes. Please, review the project again.

@vasu-1 Nice review btw 💯

@Suvraneel I have updated the readme via PR https://github.com/girlscript/winter-of-contributing/pull/2367
Kindly, Review this.

@Akriti-Chaudhary Also, add a line at Operator Overloading/readme.md in this patch-2 branch itself

@Suvraneel  alright, done.

Way to go @Akriti-Choudhary ... ❤  Great :octocat:

Thank you @Suvraneel and @vasu-1 for correcting me constantly.


Updated user manual

[x] Login page
[x] Register page
[x] Select Students page
[x] Projects page
[x] Create Projects page
[x] Toolbar
[x] Sidebar
[x] Manage Users page

The updated manual can be found here


HRNet does not work with AMP but LeNet Does

Hello I am using pytorch lightning 16-bit automatic mixed precision training (AMP) with OCNN HRNet and I am running into the error traceback:
grad_out = octree_conv.backward_gemm(grad_out, grad, weights) buffer = torch.mm(grad[start:end], weights.flatten(0, 1).t()) RuntimeError: expected scalar type Half but found Float
However, when I run the same code with OCNN-LeNet, it works just fine. Any idea why this might be happening?

Sorry, I have not tested the code with AMP and I currently could not provide more indepth suggestions.

That's ok, thank you for all your hard work on this!
If you do get a chance to test with AMP that would be great since it can provide substantial speed benefits.

Thanks for your advice. I will tune the code to supported AMP when I am free in the future.
Pull requests are always welcomed!

I'll see what I can do to get it working...


Related posts

Close https://github.com/bm-sms/daimon-news-multi-tenant/issues/73

:cool: :shipit:


Facebook Event Manager doesn't receive App Events on iOS using Expo

🐛 Bug Report
I try to implement App Events with react-native-fbsdk-next in my Expo project with a bare workflow. When I run my app on an Android device, every event is sent to Facebook Event Manager within seconds. But on iOS, it doesn't work.
To Reproduce
I followed the documentation:

I installed the npm package
I did cd ios/ && pod install
I added to my AppDelegate.mm: #import <FBSDKCoreKit/FBSDKCoreKit-swift.h>
In the didFinishLaunchingWithOptions function:

[[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions]; And
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
  if ([[FBSDKApplicationDelegate sharedInstance] application:application openURL:url options:options]) {
    return YES;
  }

  if ([RCTLinkingManager application:application openURL:url options:options]) {
    return YES;
  }

  return NO;
}

In app.json, I added to "plugins":

[
        "react-native-fbsdk-next",
        {
          "appID": AppId,
          "clientToken": ClientToken,
          "displayName": DisplayName,
          "scheme": Schema,
          "autoLogAppEventsEnabled": true,
          "advertiserIDCollectionEnabled": true,
          "isAutoInitEnabled": true,
          "iosUserTrackingPermission": "This identifier will be used to deliver personalized ads to you."
        }
]

I checked several times my app id and client token to make sure they are correct.

I did expo prebuild and eas build --profile development --platform ios

In App.tsx:

import { requestTrackingPermissionsAsync } from 'expo-tracking-transparency';
import { Settings } from 'react-native-fbsdk-next';

export default function App() {
...
    useEffect(() => {
        async function initializeTracking() {
          const { status } = await requestTrackingPermissionsAsync();
          Settings.initializeSDK();
          if (status === 'granted') {
            await Settings.setAdvertiserTrackingEnabled(true);
          }
        };

        initializeTracking();
      }, []);
...
}

To log an event:
import { AppEventsLogger } from "react-native-fbsdk-next";
...
<TouchableOpacity
    onPress={() => {
        AppEventsLogger.logEvent('fb_mobile_tutorial_completion');
    }}
></TouchableOpacity>

I have the Facebook app running in background and I am logged in to my account, which I added as an "Advertising Account" for my app on Facebook's dashboard
I have ATT enabled both on the Facebook app and on my app
My iOS version is 16.0. I don't know what I missed or what I did wrong.

Expected Behavior
Facebook Event Manager should receive and display events from the app running on iOS.
Environment
System:
OS: macOS 13.0.1
CPU: (8) x64 Apple M1 Pro
Memory: 11.21 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.3 - /usr/local/bin/node
Yarn: Not Found
npm: 8.1.3 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: <IP_ADDRESS> - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

@Nina-petit how did you fix this? I have the same issue.

I actually had added some IP addresses to the authorized IP list in the settings of my app in my Facebook developers account, so I just deleted them all and it started working. What helped me find the solution was to look at the logs of everything happening on my iPhone and finding the moment when I called the logEvent function to see the error. I used the Console app (on my mac) but I think you can do that through Xcode as well. Maybe if my solution doesn't work for you, you can find what is causing the problem with this method.


Use Migration.md instructions for replacing GzScene3D in Garden lead to a crash

Environment

OS Version: Focal
Binaries in prerelease for Garden

Description
While working on https://github.com/gazebosim/garden-tutorial-party/issues/2015 I was updating the GzScene3D plugin on https://github.com/gazebosim/docs/blob/master/garden/tutorials/sdf_worlds/world_demo.sdf#L23-L36. I checked the instructions in Migration.md and replaced by with https://github.com/gazebosim/docs/commit/d249a113ef0d2b238eb8ba609d0542044701409e, mostly TransportSceneManager and MinimalScene.
If I used that modified file, the result is:

(nothing displayed).
If I try to interact with the Scene, the simulator crashes:
terminate called after throwing an instance of 'Ogre::InvalidParametersException'
  what():  OGRE EXCEPTION(2:InvalidParametersException): Texture 'scene::RenderTexture(65526)0': Invalid settings! in TextureGpu::checkValidSettings at /home/jenkins/workspace/ogre-2.3-debbuilder/repo/OgreMain/src/OgreTextureGpu.cpp (line 451)
Stack trace (most recent call last) in thread 1108751:
#9    Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#8    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6411e37132, in clone
#7    Object "/lib/x86_64-linux-gnu/libpthread.so.0", at 0x7f6411cfd608, in
#6    Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f640b98296d, in
#5    Object "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f640b980e8a, in qTerminate()
#4    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f640d8dd3f6, in std::terminate()
#3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f640d8dd38b, in
#2    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f640d8d1910, in
#1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6411d3a858, in abort
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f6411d5b00b, in gsignal

Note that the instructions in Migration.md are different from the behavior applied automatically if the GzScene3D is still in the sdf file:
[GUI] [Wrn] [Gui.cc:460] The [GzScene3D] GUI plugin has been removed since Garden. Loading the following plugins instead:
* GzSceneManager
* InteractiveViewControl
* CameraTracking
* MarkerManager
* SelectEntities
* EntityContextMenuPlugin
* Spawn
* VisualizationCapabilities

Not sure if I'm doing something wrong.
Steps to reproduce

wget https://raw.githubusercontent.com/gazebosim/docs/master/garden/tutorials/sdf_worlds/world_demo.sdf
gz sim --verbose 4 world_demo.sdf

Output
gz sim --verbose 2 garden/tutorials/sdf_worlds/world_demo.sdf
[Wrn] [LocalCache.cc:105] Server directory does not exist [/home/jrivero/.gz/fuel/fuel.gazebosim.org]
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"
[Wrn] [LocalCache.cc:105] Server directory does not exist [/home/jrivero/.gz/fuel/fuel.gazebosim.org]
[Wrn] [Component.hh:144] Trying to serialize component with data type [N3sdf3v135WorldE], which doesn't have `operator<<`. Component will not be serialized.
[GUI] [Wrn] [Application.cc:845] [QT] file::/EntityTree/EntityTree.qml:148:7: QML ToolButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
[GUI] [Wrn] [Component.hh:189] Trying to deserialize component with data type [N3sdf3v135WorldE], which doesn't have `operator>>`. Component will not be deserialized.
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"
libEGL warning: DRI2: failed to create dri screen
libEGL warning: DRI2: failed to create dri screen
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"

Hmm, when using from source it doesn't crash for me but the tutorials (sdf_worlds.md and sdf) need to be updated to use the MinimalScene plugin since GzScene3d is deprecated.
@j-rivero Can you try replacing this section: https://github.com/gazebosim/docs/blob/master/garden/tutorials/sdf_worlds/world_demo.sdf#L23-L36
with this instead:
https://github.com/gazebosim/gz-sim/blob/ff1c82b41e548dfdc8076374f9500db2df2c35a1/examples/worlds/minimal_scene.sdf#L29-L128
does the crash still occur?

Hmm, when using from source it doesn't crash for me

Sorry I did not give all the details on what I was doing. here is a quick gif:

@j-rivero Can you try replacing this section: https://github.com/gazebosim/docs/blob/master/garden/tutorials/sdf_worlds/world_demo.sdf#L23-L36
with this instead: https://github.com/gazebosim/gz-sim/blob/ff1c82b41e548dfdc8076374f9500db2df2c35a1/examples/worlds/minimal_scene.sdf#L29-L128
does the crash still occur?

Nop! It works as expected. We might need to update the Migration.md document to reflect this. I'll try to send a PR.

the tutorials (sdf_worlds.md and sdf) need to be updated to use the MinimalScene plugin since GzScene3d is deprecated.

I'll take care of patching them.


Return a 404 if we can't fetch an IIIF manifest

Related to https://github.com/wellcomecollection/platform/issues/5323; the underlying issue there will be fixed but we should be defensive about these things

Should anybody ever be on an item page that points to a 404'ing manifest? It might not be a failure of the front-end specifically, but it feels like a failure of the website as a whole.

This is true, but that doesn't mean a 500 is the right behaviour: the URL should still return a meaningful response regardless of whether a user "should" be there. I think a 404 is the right response in this case because the URL is a request for the items of a given work, and we couldn't find those items, so we reflect that back to the user.

I'm being a numpty. I think we should 404 here, as the items are missing.
We should also not point to missing pages, which is another issue.

The work page itself will indeed still have a link to the 404-ing items page, but @alexwlchan is fixing this in a separate piece of work and there is no way to know that it will 404 without trying to fetch the manifest. Even then - we shouldn't have unhandled errors!


add more rev types, don't panic when rev can't be found

Needed to upgrade vgo, excuse how bad the code is, this is my first type trying to write go, and to be honest, I only did enough to get it to work.

In my case I let it finish then manually resolved the ones that failed - it helped me understand why they failed as well.
Get Outlook for iOShttps://aka.ms/o0ukef

From: adisbladis<EMAIL_ADDRESS>Sent: Wednesday, October 10, 2018 5:07:21 PM
To: adisbladis/vgo2nix
Cc: Michael Francis; Author
Subject: Re: [adisbladis/vgo2nix] add more rev types, don't panic when rev can't be found (#1)
@adisbladis commented on this pull request.

In main.gohttps://github.com/adisbladis/vgo2nix/pull/1#discussion_r223994236:

@@ -87,7 +92,8 @@ func getPackages() []*Package {
sha256 := resp["sha256"].(string)

            if sha256 == "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5" {

                  panic("Empty sha256")

                  fmt.Println(fmt.Sprintf("Bad SHA256 for %s %s %s", goPackagePath, repoRoot.Repo, rev))

                  //panic("Empty sha256")

Why would you not want to panic on a bad sha?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/adisbladis/vgo2nix/pull/1#pullrequestreview-163253522, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAeLk8hJrvNAKslAYMkyUmPz7G5DN4yjks5ujbjJgaJpZM4XTehp.

@adisbladis added the keep going flag. No idea if that's the right way to do it in go though.

Fixed some minor nits and squashed in: https://github.com/adisbladis/vgo2nix/commit/f1edebfb24e09c657efeb60cf50aeee835dda930
Thank you!


rename module name to github.com/kubesysadm/kubesysadm

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

/lgtm

/meow


empty  element when dialog is closed for ui-dialog-title (accessibility, minor)

Problem
In the main document structure for the UI Dialog Titlebar, there is an empty
 tag placeholder. When a UI Dialog is open, the title is injected. When there is no UI Dialog open, there is an empty
 element:

 			<button id="ui-dialog-close" class="ui-close" tabindex="0" aria-label="…"></button>

Empty headers can be confusing for navigation. The same is true for the button tag, though a lower priority. There should ideally not be invisible or empty header or control elements.
Example Fix
In dialog.js, inject the header only on dialog open, remove on close.
(Also...Thank you for all your work! We love sugarcube!)

Is this something that you've actually had an issue with?
The dialog's display value is normally set to none, so no browser—normal or screen reader—should be paying attention to the dialog until such time as it's opened and its display status changed.

No, it's not! We had someone do an accessibility audit of our game and they flagged this. I only investigated enough to find where in the source it originates. It's possible they used some crappy automated tool that flagged it.
I'll close this and keep an eye out to see if I notice any display value issues.


Precompiled Library

Is your feature request related to a problem? Please describe.
It's quite cumbersome to have to rebuild the grpc library for new machines - it would make a lot more sense to have a public grpc static library for every new version
Describe the solution you'd like
online archive of grpc static libraries for each version
Describe alternatives you've considered
Additional context

@vitruvvius Thank you for the proposal and do you have an idea on how to achieve it? for example; reference OSS libraries doing this well?


add backwards compatibility for NIGHTSCOUT_HOST and API_SECRET

In OpenAPS loops configured by oref0-setup, we still use NIGHTSCOUT_HOST and API_SECRET, so it'll be easiest to integrate this if we add in backwards compatibility with those ENV var names.

It would also be easy to do this in the surrounding shell script, via a backwards-compat function that re-exports the env vars that the Go code expects.

True.  Would you prefer I do it that way?
I did it the way I did so it'd work on the command line for people who have the existing vars exported but not the new ones.

Yes, I'd rather leave the compatibiliy issue to the surrounding code or wrapper scripts.  I expect most people use a file of environment variable settings that they source at the command line when using these programs, so it should be easy to add.

Ok.  I ended up doing that in oref0-g4-update: https://github.com/openaps/oref0/blob/go-dexcom/bin/oref0-g4-loop.sh#L62-L77