Issue with Responsive Waypoint

Challenge http://www.freecodecamp.com/challenges/waypoint-mobile-responsive-images has an issue. Please describe how to reproduce it, and include links to screen shots if possible.
Adding the class 'img-responsive' works, but when a new source of 'http://bit.ly/fcc-kittens2' is added to the second image, nothing happens, and I cannot move forward.

Nevermind. It works now.


GridView doesn't make the cell fully visible when swiping right

Internal: b/137624348
Related: #61624 for iOS issues.
When using a GridView, and turning TalkBack on, swiping right doesn't make the full grid cell visible if it is already partly visible. Scrolling beyond the list does make future rows visible.
Screenshot attached.
Full repro code appended.
Steps:
Turn on TalkBack, then launch the app. Swipe right, and you'll see that the lowest row of cells isn't brought fully into view when they're highlighted.
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  State createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  bool useSemanticsDebugger = false;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        showSemanticsDebugger: useSemanticsDebugger,
        theme: ThemeData(primaryColor: Colors.blue),
        home: Scaffold(
          appBar: AppBar(
            title: Text('GridView Semantics Test'),
          ),
          body: GridView.count(crossAxisCount: 4,
              children: _buildChildren(context)
          ),
        ));
  }

  List<Widget> _buildChildren(BuildContext context) {
    final widgets = List<Widget>();
    for(int i = 0; i < 100; ++i) {
      widgets.add(ListTile(
        title: Text('Cell $i'),
      ));
    }
    return widgets;
  }
}

Internally tracked at b/140825925

The problems related to this issue are somewhat different on Android vs iOS, so I've split off the iOS problems to issue #61624.
iOS
As documented on #61624, this problem stems from how implicit accessibility scrolling had to be implemented on iOS, and applies to all scrollable containers, including things like ListView.
Android
Android seems to have better accessibility support for scrolling, but I haven't dug into how we handle it yet. However, it is interesting to note that this problem does not apply to ListViews on Android. Additionally, although swiping to the first cell of a partially obscured row in a GridView does not scroll the view to make the row visible, swiping further onto the last cell of the row will actually scroll the view to make the cell visible.

Derailed by higher priority issues.
According to this TODO in AccessibilityBridge.java, it looks like we're currently telling Android that our GridViews are semantically linear lists rather than 2D grids, since the framework currently treats scrollable containers as linear and does not add any metadata about rows vs. columns to the semantics tree. I dug a little into how GridViews layout their children with SliverGrids, which delegate layout to a SliverGridDelegate.
At the core of this system it looks like the concept of rows and columns are not strictly enforced:

The tiles can be placed arbitrarily, but it is more efficient to place tiles in roughly in order by scroll offset because grids reify a contiguous sequence of children.

So I'm unsure how we would go about calculating how many rows vs. columns a SliverGrid has in a generalizable way.

However, even if we could, I'm not sure if that would fix the problem. I tried hardcoding how many rows and columns the AccessibilityBridge told Android my grid contained, and it did not fix the original issue.
I briefly skimmed how TalkBack is deciding to call showOnScreen, and my cursory understanding is it only does so if the very next element would be off screen, which lines up with my observations in the above comment ("although swiping to the first cell of a partially obscured row in a GridView does not scroll the view to make the row visible, swiping further onto the last cell of the row will actually scroll the view to make the cell visible."), but unfortunately won't fix the original issue if true. I have not yet tested TalkBack on a GridView in a native app.

As I noted on the related iOS issue, I am considering a potential cross-platform solution, which would make the framework add a tag to nodes which are partially hidden, similarly to how it currently adds the isHidden tag to fully hidden nodes.

Now I'm thinking it might be better to add a new isPartiallyHidden flag on the framework, and just do a quick flag check on the engine side. This would help solve similar problems on other platforms and promote code reuse. The current code which calculates isHidden could be extended to check if the paintRect intersection shrunk the semantics rect, so it would just be O(1) time per node on each tree update on the framework side rather than O(K) (where K = depth) whenever a node is focused.
I may need to write a design doc. Will post more info soon.

I briefly skimmed how TalkBack is deciding to call showOnScreen, and my cursory understanding is it only does so if the very next element would be off screen, which lines up with my observations in the above comment ("although swiping to the first cell of a partially obscured row in a GridView does not scroll the view to make the row visible, swiping further onto the last cell of the row will actually scroll the view to make the cell visible."), but unfortunately won't fix the original issue if true. I have not yet tested TalkBack on a GridView in a native app.

The grid layout mode for Google Drive, Dropbox, and the default Files app on my Pixel 3a all exhibit the same behavior seen in Flutter, which leads me to believe this is an issue with TalkBack. However, I strongly believe we should fix this issue on the Flutter side, since the same issue is exhibited on iOS (except with ListViews as well), and likely other platforms (untested).

The grid layout mode for Google Drive, Dropbox, and the default Files app on my Pixel 3a all exhibit the same behavior seen in Flutter, which leads me to believe this is an issue with TalkBack.

I was just gonna say, I think what Flutter does is just the native behavior in TalkBack. TalkBack itself doesn't have support for scrolling a list if focus moves to a partially visible element that is not the last/first partially visible element in the list. If this is not desired, it would need to be fixed in TalkBack.

If this is not desired, it would need to be fixed in TalkBack.

My initial thinking was we could at least temporarily fix this on the Flutter side to help affected customers now, rather than waiting on TalkBack to provide this functionality. However, I definitely see where you're coming from that this should be fixed in TalkBack, and fixing it in Flutter would be a temporary hack (at least for the Android part of things).
The only semi-related TalkBack tracking issue I could find for this is https://b.corp.google.com/issues/126775561 (public), which doesn't quite seem like the same problem. Would you mind doing a brief search internally to see if there's anymore discussion on this which I can't access, and file an issue with TalkBack if not? My summer is coming to a close.
That being said, if they do fix it then I believe this part of my above comment applies, and we'll need to add support for figuring out how many rows vs. columns a GridView has:

According to this TODO in AccessibilityBridge.java, it looks like we're currently telling Android that our GridViews are semantically linear lists rather than 2D grids, since the framework currently treats scrollable containers as linear and does not add any metadata about rows vs. columns to the semantics tree. I dug a little into how GridViews layout their children with SliverGrids, which delegate layout to a SliverGridDelegate.

At the core of this system it looks like the concept of rows and columns are not strictly enforced:

The tiles can be placed arbitrarily, but it is more efficient to place tiles in roughly in order by scroll offset because grids reify a contiguous sequence of children.

So I'm unsure how we would go about calculating how many rows vs. columns a SliverGrid has in a generalizable way.

As for this issue on our tracker, should it be closed as WAI/"can't fix", or potentially left open to track a TalkBack issue?

Would you mind doing a brief search internally to see if there's anymore discussion on this which I can't access, and file an issue with TalkBack if not?

I'll check.

As for this issue on our tracker, should it be closed as WAI/"can't fix", or potentially left open to track a TalkBack issue?

I would close this as WAI with a note that its on talkback.


ASI is wrong when an identifier follows a return statement

function foo () {
	return
	foo;
}

Is compiled to:
function foo$2725() {
    return foo$2725;
}

But it actually should be:
function foo$2725() {
    return;
    foo$2725;
}

Not considering the line number in the parser: https://github.com/mozilla/sweet.js/blob/master/src/parser.js#L3733-L3737

I'm mass closing issues due to the release of 1.0 obviating lots of bugs. If you feel this issue is something we still need to address feel free to reopen.


Add outdoor related shops

The following are features which probably get included as buildings now, but we're not including many nodes (should be added to pois layer).
When it is in building layer, we should prefer the shop=* value for the kind (over building=*).
Format is:
LINK to osm wiki, EXAMPLE to construct test, recommended MIN_ZOOM value, and COUNT of features.

[ ] shop=fishing, example - pois, zoom 16. Around 660 pois, 150 buildings (make sure shop value is used over building value).
[ ] shop=hunting, example - pois, zoom 16. Around 375 pois, 75 buildings (make sure shop value is used over building value).
[ ] shop=outdoor, example and 2 - pois, zoom 16. Around 4400 pois, 1100 buildings (make sure shop value is used over building value).
[ ] shop=scuba_diving, example - pois, zoom 17. Around 475 pois, 130 buildings (make sure shop value is used over building value).
[ ] shop=gas, example - pois, zoom 17. Around 430 pois, 150 other (ignore, mostly buildings).
[ ] shop=motorcycle, example - pois, zoom 17. Around 7400 pois, 2100 other (ignore, mostly buildings).

When there's a building polygon, we should put that in the buildings layer. If it also has POI tags, those get lifted off and added as a centroid in the pois layer. That logic should not change - this is just adding some new shop types. Please do not change the existing POI / building logic.

Sounds good, thanks for clarification.

On Apr 4, 2016, at 08:21, Matt Amos<EMAIL_ADDRESS>wrote:
When there's a building polygon, we should put that in the buildings layer. If it also has POI tags, those get lifted off and added as a centroid in the pois layer. That logic should not change - this is just adding some new shop types. Please do not change the existing POI / building logic.
―
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

Looking good.


add explicit msg for import error for optional module needed in some …

…datasets
Checks to be done before submitting your PR

[ ] python3 -m pytest tests/ runs successfully.
[x] black . runs successfully.
[ ] make html runs successfully (in the docs/ directory).
[ ] Updated docstrings related to the changes (as applicable).
[ ] Added an entry to the CHANGELOG.rst.

Can we not just make datasets optional completely e.g. by putting it in the CBSD68 init? Because this will still result in an error if I want to use deepinv but not these datasets and don't want to install datasets

@Andrewwango
yes I prefer to have the import at the start of the file, the diff is that I stored the import error in a variable which will be called in init (so the import error will be raised when instantiating the class) and it shouldn't cause any issue with the library if you don't call the class
also added in README, command line to install the library with the optional dependencies

Closes #283


Build lab

Summary
Avoid the popup for the build

Related issue : https://support.d4science.org/issues/28116

Addresses the pop-up (see #28116)


Training the model, train vs. test data

Hello!
I have been looking at the config_sintel.py file a bit and am not understanding how the train/test data are separated. In your slides, you suggest that this model can be trained using exclusively the retouched image data, but the train.py function seems to expect matched pairs of images with the untouched data being in one folder, the retouched data in a second folder... What about the test data? In the config_sintel.py file, the fake_data_provider_test folder is the same as the training folder, while the comment above it specifically says not to do this.
Right now I am thinking I should have three folders in my model directory, like this:
cfg.fake_data_provider = lambda: FolderDataProvider(folder='models/ColorCorrect/Uncorrected', default_batch_size=cfg.batch_size)
cfg.fake_data_provider_test = lambda: FolderDataProvider(folder='models/ColorCorrect/Validation', default_batch_size=cfg.batch_size)
cfg.real_data_provider = lambda: FolderDataProvider(folder='models/ColorCorrect/Corrected', default_batch_size=cfg.batch_size)
Where the Uncorrected Folder has 300 untouched images, the Validation Folder has 50 different untouched images, and the Corrected Folder has a total of 350 images, all matching to either the contents of the Uncorrected or Test Folders.
Is this the correct approach?
Thanks for your time, and for sharing your very impressive work!

From the paper:

Datasets.We utilize two sources of training data:
•The MIT-Adobe FiveK Dataset. Bychkovsky et al. [2011]compiled a photo dataset consisting of 5,000RAW images and retouched versions of each by five experts. In this work, we randomly separate the dataset into three parts: (part 1) 2,000input RAW images, (part 2) 2,000 retouched images by retoucher C, and (part 3) 1,000input RAW images for testing. The three parts have no intersection with each other.


Slide Show type prohibiting Presenter Mode

Deck was published with the "Set up Slideshow" > Show Type setting to "Browsed by an individual (Window), this prohibits the use of Presenter View, propose change to set Show Type to "Presented by a speaker (full screen)"

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

ID: a5b0f5d1-01c7-baad-0540-24cebe0b5b84
Version Independent ID: f759fd8d-ce47-4a6f-27c5-f38003cd3464
Content: Microsoft Cybersecurity Reference Architectures - Security documentation
Content Source: security-docs/cybersecurity-reference-architecture/MCRA.md
Service: security
GitHub Login: @MarkSimos
Microsoft Alias: mas

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


Create setup.py

This file will greatly simplify the installation process for this package on other people's machines.

Linked with #15


fix writeUnsignedInt for negative ints

not needed, when sign-extending an int to a long the most significant bit (which is also the sign bit) will remain set. in effect all this achieves is an additional & operation for no reason

Cherry-picked 7f1b69e289259d3656d046855a3626c2c022c929


Add support for Google Search in Address Bar

This commit adds support for to search for anything within the address bar using Google Search just like a web browser should.
I've also added placeholder text to QLineEdit to indicate this to user.
Note
I went with Google as the browser was showing search results. This wasn't possible with Bing or with DuckDuckGo.

Hello,
I agree however neither DuckDuckGo nor Bing can produce search results right now.
It's my first contribution to a CPP project. I have added FIXME for this in the code.

Brave search also shows results!

Hello!
Directing traffic to random search engines is not a goal for this prototype. Perhaps one day we can do something like the ? queries in the SerenityOS Browser. But for now, please treat ladybird as a debugging tool for LibWeb. :)


odb: move corrupted files to /bad instead of deleting

Currently if we detect that some file was corrupted - we completely delete it, which takes quite a bit of time for large files and is also lossy, as it might be your last source of your useful data. We should just move corrupted file instead (e.g. .dvc/cache/12/345 -> .dvc/cache/bad/12345) so one could recover it if needed.
For the record: bad is like in git lfs .git/lfs/bad

The only problem with bad is that it's hexadecimal (maybe that's why git-lfs is using it?). We may start having 3-character length subdirectories, and that'll break.


How do I make prediction after saving the model to local machine?

I tried to save the model to local machine and make prediction from it. However, the text generated from that saved model is not as expected. Do you know of the correct way to do it?
Code:
os.makedirs('gpt2-imdb-ctrl')
gpt2_model.save_pretrained('/gpt2-imdb-ctrl')
gpt2_tokenizer.save_pretrained('/gpt2-imdb-ctrl')

from transformers import AutoTokenizer, AutoModel

model = AutoModel.from_pretrained("/gpt2-imdb-ctrl")

tokenizer = AutoTokenizer.from_pretrained("/gpt2-imdb-ctrl")

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

_ = model.to(device)

input_string = "[negative] And it's one of the rare old films that you still fall asleep in a while"
input_tokens = tokenizer.encode(input_string, return_tensors="pt").to(device)

response_tensors = respond_to_batch(model, input_tokens, txt_len=30)
response_strings = tokenizer.decode(response_tensors[0, :])
response_strings

Results:
'rararararararararararararararararararararararararararararara'

You should be using the same class to load the model e.g. GPT2HeadWithValueModel or AutoModelForCausalLM (although I haven't tested the latter). AutoModel will load the model without LM head.


Enhance PlaceholderAPI Hook for functional usage like what Deluxemenu do

What does your feature do?
I suggest to add new quest requires typed Papi.
We can then check %papi% >= 0, equals "xxx" , etc. Just like what Deluxemenu do.
And other addons like mcMMOAddon requirement will be unnecessary and no longer needed to develop.
How would people use it?
For example, to check whether a player has 100 money or not, just use this:
%vault_eco_balance_fixed%>=100

I'm not sure I understand your request. Placeholders for anything other than Quests does not make sense to me as there's no guarantee they'll be installed. Requesting one from the other plugin's developer is a better route.
At any rate, requests for new placeholders should be made at https://github.com/PikaMug/PlaceholderExpansion-Quests

I'm not sure I understand your request. Placeholders for anything other than Quests does not make sense to me as there's no guarantee they'll be installed. Requesting one from the other plugin's developer is a better route.
At any rate, requests for new placeholders should be made at https://github.com/PikaMug/PlaceholderExpansion-Quests

I'm not sure I understand your request. Placeholders for anything other than Quests does not make sense to me as there's no guarantee they'll be installed. Requesting one from the other plugin's developer is a better route.
At any rate, requests for new placeholders should be made at https://github.com/PikaMug/PlaceholderExpansion-Quests

I do not mean add more placeholders.
I make a small addon to show you what I mean. Seethis

I'm not sure I understand your request. Placeholders for anything other than Quests does not make sense to me as there's no guarantee they'll be installed. Requesting one from the other plugin's developer is a better route.
At any rate, requests for new placeholders should be made at https://github.com/PikaMug/PlaceholderExpansion-Quests

I do not mean add more placeholders.
I make a small addon to show you what I mean. Seethis

@kn-km Something like that is already possible as a "Check placeholder" condition:
https://github.com/PikaMug/Quests/wiki/Expert-‐-Condition-Editor

@kn-km Something like that is already possible as a "Check placeholder" condition:
https://github.com/PikaMug/Quests/wiki/Expert-‐-Condition-Editor


Fix saving of polymorphic associations

Fixes #474 to address issue with saving polymorphic associations.

This looks very promising, however, there are still a few tweaks I'd like to see made...
I'd still like to see this if statement kept, to prevent unnecessary association loading when possible and a corresponding class is not being tracked by PaperTrail in the first place.
My proposal is to split the logic for that method into 2 different possible routes, one for polymorphic associations, one for normal associations, like so:
def save_associations(version)
  return unless PaperTrail::VersionAssociation.table_exists?
  self.class.reflect_on_all_associations(:belongs_to).each do |assoc|
    assoc_version_args = {
      :version_id       => version.id,
      :foreign_key_name => assoc.foreign_key
    }

    if assoc.options[:polymorphic] == true &&
      (associated_record = send(assoc.name)).class.paper_trail_enabled_for_model?
        assoc_version_args.merge!(:foreign_key_id => associated_record.id)
    elsif assoc.klass.paper_trail_enabled_for_model?
      assoc_version_args.merge!(:foreign_key_id => self.send(assoc.foreign_key))
    end
    PaperTrail::VersionAssociation.create(assoc_version_args)
  end
end

This optimizes performance by avoiding the call to load the association unless it is truly necessary (as is the case with Polymorphic associations). Thoughts?

I'm affected by #474, too, so I just chime in:
@batter Your proposal partly cancels out @mhuggins code:
If the association is polymorphic but the associated model - which is now found correctly - has no paper trail, the elsif branch kicks in and again calls the broken klass method. If the association is polymorphic, the klass method must never be called.
Also the code would create VersionAssociation instances without a foreign_key_id (even if all checks fail create is still called)
Here is my proposal:
assoc_version_args = {
    :version_id => version.id,
    :foreign_key_name => assoc.foreign_key
}

if assoc.options[:polymorphic]
  if (associated_record = send(assoc.name)).class.paper_trail_enabled_for_model?
    assoc_version_args.merge!(:foreign_key_id => associated_record.id)
  end
elsif assoc.klass.paper_trail_enabled_for_model?
  assoc_version_args.merge!(:foreign_key_id => self.send(assoc.foreign_key))
end

PaperTrail::VersionAssociation.create(assoc_version_args) if assoc_version_args.key?(:foreign_key_id)

It's working, but could use some refactoring. Perhaps using next would make it less convoluted...

@daniel-rikowski - Thanks for chiming in, you're spot on with your code assessment(s).  I nominate your code suggestion for usage.
@mhuggins, do you want to modify your PR or do you want me to modify during the merge process?

Thanks to you both for the feedback!  The concern makes sense, and the klass callout is a good catch.  I've gone ahead and updated the PR with this change.  Please let me know if you need me to squash the commits or anything else before this goes in! :)

It looks like this is failing due to use of the new hash syntax used by the ffaker gem.  They literally JUST pushed a change out today as seen here making use of the new hash syntax.  I think the fix would require changing the following:
# add_development_dependency 'ffaker',  '>= 1.15'
# add_development_dependency 'ffaker',  '>= 1.15', '<= 1.31.0'

Good to know. I've actually been considering dropping Ruby18 support here since I question how much it's actually being utilized, but since compatibility is usually just a case of using the hash rocket syntax, it hasn't been difficult to maintain compatibility.. Anyways, I will push a commit up to master this afternoon to limit the 'ffaker' dependency to avoid test failures.

Sounds good.  Just a heads up that the owner of ffaker said this is intentional since 1.8.7 is no longer supported.

You can rebase your branch off current master and/or merge master into it if you want to see it pass on Travis, either way, I'll try to merge it before EOD


[Feature request] Support quantization

Suppor model quantization with different precision.

Now supports "unsloth/llama-3-8b-bnb-4bit"
Change the setting: LOW_VRAM_MODE = True # Option to switch to a model that uses less VRAM


feat(Cloud Storage): Enable uniform_bucket_level_access on Cloud Storage (GCS) static website sample

Description
Fixes #
Note: If you are not associated with Google, open an issue for discussion before submitting a pull request.
Checklist
Readiness

[x] Yes, merge this PR after it is approved
[ ] No, don't merge this PR after it is approved

Style

[x] My sample follows the rules described for Terraform in the Effective Samples style guide
[x] My sample follows the other requirements and best practices in the Contributing
guide

Testing

[x] I have performed tests described in the Contributing guide:

[x] Tests pass: terraform apply
[x] Lint pass: terraform fmt check

Intended location

[x] Yes, this sample will be (or already is) included on cloud.google.com
Location(s): https://cloud.google.com/storage/docs/hosting-static-website

[ ] No, this sample won't be included on cloud.google.com
Reason:

API enablement

[x] If the sample needs an API enabled to pass testing, I have added the service to the Test setup file

Review

[ ] ~If this sample adds a new directory, I have added codeowners to the CODEOWNERS file~

/gcbrun

/gcbrun

/gcbrun


Appropriate comments in code

User Story
AS A marketing agency
I WANT a codebase that follows accessibility standards
SO THAT our own site is optimized for search engines.
Acceptance criteria
GIVEN that I am a developer/ reviewer of the codebase
WHEN I open the code
THEN I can see understand the though process behind what each section of the code is trying to achieve and the purpose behind it.

done!


Prototype for endpoint to provide availability for mfhd

Provides availability information for a holding_id (previously known as mfhd) and a bib_id. This will only work if we can update the Request app to pass both the bib_id and the holding_id
curl http://localhost:3000/bibliographic/9953662453506421/holdings/22114556660006421/availability.json

Gives something like this
[
{
  "barcode":"32101066843572",
  "id":"23114556640006421",
  "copy_number":"1",
  "item_sequence_number":null,
  "status":"Not Charged",
  "on_reserve":"N",
  "item_type":"Gen",
  "pickup_location_id":"stacks",
  "pickup_location_code":"stacks",
  "patron_group_charged":null,
  "location":"lewis",
  "label":"Lewis Library",
  "status_label":""
},
{
  "barcode":"32101064399023",
  "id":"23114556650006421",
  "copy_number":"1",
  "item_sequence_number":null,
  "status":"Not Charged",
  "on_reserve":"N",
  "item_type":"Gen",
  "pickup_location_id":"stacks",
  "pickup_location_code":"stacks",
  "patron_group_charged":null,
  "location":"lewis",
  "label":"Lewis Library",
  "status_label":""
}
]

refs #1179

@hectorcorrea not a problem to pass the bib and holding ID at all. Both will be indexed into OL.

Replaced by PR https://github.com/pulibrary/bibdata/pull/1211


camera not show

I installed Licode using Docker and it was installed and started correctly
Test access <IP_ADDRESS>:3001 can see the camera normally
But when I use <IP_ADDRESS>:3001, I can access the service normally, but I can't see the camera.
Is this a bug? I need your help
start cmd:
PUBLIC_IP=<IP_ADDRESS> MIN_PORT=30000; MAX_PORT=30050; sudo docker run --name licode -p  3000:3000  -p $MIN_PORT-$MAX_PORT:$MIN_PORT-$MAX_PORT/udp -p 3001:3001  -p 8090:8090 -e "MIN_PORT=$MIN_PORT" -e "MAX_PORT=$MAX_PORT" -e "PUBLIC_IP=$PUBLIC_IP" -e "NETWORK_INTERFACE=eth0" lynckia/licode

iOS websocket  test log:
LAN IP:<IP_ADDRESS>
PORT: 3000
Domain=com.squareup.SocketRocket Code=504 "Timeout Connecting to Server" UserInfo={NSLocalizedDescription=Timeout Connecting to Server}
is server exception ???

iOS websocket test log:
LAN IP:<IP_ADDRESS>
PORT: 3000
Domain=SRWebSocketErrorDomain Code=2133 "Invalid Sec-WebSocket-Accept response" UserInfo={NSLocalizedDescription=Invalid Sec-WebSocket-Accept response}
is server exception ???

licode资料好少 无从下手 从入门果断放弃.. 还是关注一下其他的开源框架吧.

Hi Jacky
The access to the camera is only valid in https or localhost(<IP_ADDRESS>)

Hi Jacky
The access to the camera is only valid in https or localhost(<IP_ADDRESS>)
The other problem is that you use ' -p 8090:8090' to the websockets, and the licode use 8080 port

thanks so much,
but the websocket test get logs:
'''
[[WebRTCHelper shareInstance]<EMAIL_ADDRESS>port:@"3000" room:@"1000"];
'''
SRWebSocketErrorDomain Code=2132 "received bad response code from server 401" UserInfo={NSLocalizedDescription=received bad response code from server 401, HTTPResponseStatusCode=401}

[[WebRTCHelper shareInstance]<EMAIL_ADDRESS>port:@"8080" room:@"1000"];
logs:
code = 1001,reason = Stream end encountered

[[WebRTCHelper shareInstance]<EMAIL_ADDRESS>port:@"8080" room:@""];
SRWebSocket:
code = 1001,reason = Stream end encountered

Hi Jacky
In your docker command you do not use port 8080. Perhaps another service on your host opens and responds on this port.

Hi Jacky
In your docker command you do not use port 8080. Perhaps another service on your host opens and responds on this port.

tanks  davidguv
but get log：code:1001 reason :Stream end encountered wasclean:0

log:

[Log] Flags parsed, configuration is  – {noStart: false, forceStart: false, screen: false, …} (script.js, line 47)
{noStart: false, forceStart: false, screen: false, room: "basicExampleRoom", singlePC: true, …}Object
[Log] Selected Room – "basicExampleRoom" – "of type" – "erizo" (script.js, line 96)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (favicon.ico, line 0)
[Log] eyJ0b2tlbklkIjoiNjAxZmVmZDM1MTlmYTEwMjllYjU3ZDVhIiwiaG9zdCI6IjE5Mi4xNjguMC4xMDQ6ODA4MCIsInNlY3VyZSI6ZmFsc2UsInNpZ25hdHVyZSI6IllUTTFZemRqWXpSbFlUWTJaR1V4WVdZMVlqbGtPVEF6WVdReU16aGtOalEyT0RnMlkyRmxZUT09In0= (script.js, line 134)
[Log] ERROR:  – "(Stream)" – "message: Failed to get access to local media, streamId: local, label: undefined, error: TypeError: undefined is not an object (evaluatin…" (erizo.js, line 30)

Hi Jacky
The important line:
ERROR: – "(Stream)" – "message: Failed to get access to local media
No local media without https in different url than localhost

Hi Jacky
The important line:
ERROR: – "(Stream)" – "message: Failed to get access to local media
No local media without http_s_ in different url than localhost
Try with de 3004 port (https), export in docker command and validate de certificate in the browser https://192.168.106:3004

browser can't  open https://192.168.106:3004   &  http://192.168.106:3004


Can I set the model as parent(like unity)?

Issue details
Hi guys, I created multi modelInstance object from different assets, can i set one as the parent, then when I set transform value on it, the children transform change as well(like in unity)
thanks!
Please select the affected platforms

[x] Android
[ ] iOS (robovm)
[ ] iOS (MOE)
[ ] HTML/GWT
[ ] Windows
[ ] Linux
[ ] MacOS

This should be in the forums or irc, not a issue.

This should be in the forums or irc, not a issue.

thank you, I will submit the question to the forum, but I will glad if someone tells me the answer here

I'm not sure if anyone will, you can try getting a response, but AFAIK answers aren't really given here to discourage creating issues for questions.

https://github.com/libgdx/libgdx/wiki/Issue-Tracker


MS plotter doesn't allow "mA" as unit

The MS plotter accepts A, µA, nA and pA as units, but not mA. (and the same for plotting calibrated gas in mol/s).

first mentioned in issue #63

Thanks for reporting this. Seems like something that should be relatively easy to fix.

Universal solution, for future enhancement:
use pint!!!
https://github.com/hgrecco/pint
(thanks @AlexanderKrabbe for finding the package)


Make build scripts more dev-friendly

Issues with the current scripts:

[x] Build scripts do not check that the required tools/utilities exists, resulting in cryptic failure messages
[x] Some utilitities (corflags) are not even exposed via command-line options
[x] The default paths should be more flexible and more up-to-date with current tools versions

Can't wait for that to start creating PRs. Can't get it to compile on mac right now.

Closing this. Build scripts could be more user-friendly, but the current state should work with latest tools.


add ndarray example without copying data

see https://github.com/pybind/pybind11/issues/1042#issuecomment-325941022

Yes, please add a full example!!
Much appreciated


Hotkeys often stop working after the first time they work.

Even if I restart the skhd service, the hotkey works the first time, but not since. It sometimes works again, but I don't know why sometimes it works and sometimes it doesn't. How do I fix this?

I am experiencing a similar issue where hotkeys stop working after a few hours.
Upon investigating, I noticed that after some time, if you have Bash or other scripts in your skhd configuration, skhd will continuously spawn new processes for them without terminating the old ones. This issue does not occur when skhd is functioning properly.

I am experiencing a similar issue where hotkeys stop working after a few hours.
Upon investigating, I noticed that after some time, if you have Bash or other scripts in your skhd configuration, skhd will continuously spawn new processes for them without terminating the old ones. This issue does not occur when skhd is functioning properly.

I think you're right, I'm using hotkeys for ./script.sh commands in my config file.

same here, after a few hours needs to restart the process to have it working.

Something similar happens to me, after some time it stops processing shortcuts. But I see the process running with ps aux | grep skhd.

It happens to me too, it seems a specific process starts to block the skhd somehow, when this happens I try to close some APPs to have it working again, in the worst case it demands a logout.
From: "Pablo Vizcay" @.>
To: "koekeishiya/skhd" @.>
Cc: "Guto Carvalho" @.>, "Comment" @.>
Sent: Wednesday, July 3, 2024 4:42:26 AM
Subject: Re: [koekeishiya/skhd] Hotkeys often stop working after the first time they work. (Issue #357)
Something similar happens to me, after some time it stops processing shortcuts. But I see the process running with ps aux | grep skhd .
—
Reply to this email directly, [ https://github.com/koekeishiya/skhd/issues/357#issuecomment-2205312565 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AAFCCINNVZ55LLMI25XEV4LZKOTOFAVCNFSM6AAAAABIIYENR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBVGMYTENJWGU | unsubscribe ] .
You are receiving this because you commented. Message ID: @.***>


Cannot install User App for Microsoft OMS integration without HI credentials

I wanted to demo this solution for a customer, so I signed up for a ServiceNow Developer instance, but discovered that you can't install the User App for Microsoft OMS Integration without having HI credentials. This means that you have to have access to a paid, enterprise instance of ServiceNow, as you can't get HI credentials through a Developer account. Can you please confirm that this is the case and that I haven't misunderstood the requirements? If not, it basically means that this solution has a high barrier to entry to learn anything about or to demo to potentially interested customers.

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

ID: 82e5fdf6-4687-0a17-9a80-07703684b78f
Version Independent ID: 42ed8d94-6250-54ba-5e8b-de62c0181e82
Content: Supported connections with IT Service Management Connector in Azure Log Analytics
Content Source: articles/azure-monitor/platform/itsmc-connections.md
Service: log-analytics
GitHub Login: @JYOTHIRMAISURI
Microsoft Alias: v-jysur

So to confirm, if you're not a ServiceNow customer, there's nothing you can do if you want to test or demo either the ITSM Connector solution or the ServiceNow integration with Azure DevOps. Is that correct?

@ananthradhakrishnan can you comment please?

Also adding @TimSBenjamin to see if we have any customer-facing demo sites for this scenario.

@jamesbannan, yes that is correct.

@ananthradhakrishnan OK thanks for the clarification. In which case it would be definitely worth mentioning this prerequisite in the official ITSM Connector documentation.

@jamesbannan - I think that's a good idea, I'll make the update. Thanks!

@ananthradhakrishnan  Are there any further updates on the OMS installation in ServiceNow side without any HI restrictions?  can you pls connect SME here.

Kindly advise for the same,because i'm also using the developer instance and  confronting same issue (HI User) >Kindly advise for the same because want deliver demo to our client.
Any help will be highly appreciated.

Also adding @TimSBenjamin to see if we have any customer-facing demo sites for this scenario.

There are no public demo environments for this. We will have a repo to build this in your own sub but you will need to connect SNOW using HI creds

@javiermicrosoft we need to get this into UVOC for prioritization. @harelbr as owner of the connector I believe


feat: add double SHA2-256 hashing

The double SHA2-256 is e.g. used for Bitcoin and Zcash.
Fixes #25.

@diasdavid Can you please do a new release or give me power to do it?

@vmx I'm doing it. Before a release I always update deps ( and updating the deps here forced me to do a few changes in npm scrips and linting)

That said, welcome to the multiformats land \o/ https://www.npmjs.com/package/multihashing-async

@diasdavid Oh cool. Is there any documentation on the process you do before a release?

I've also added you to all the other multiformats packages that get used by IPLD (all except multistream-select).
@vmx I guess I should. But it is pretty much a) check deps and update, fix any breakage, b) check if there are benchmarks and test them, c) scan through the README and the depends and ping anyone I remember that might find the update valuable.


[AHUB] Defects

CC @jyoungyun

It is expected to be resolved by #1607

https://analysishub.sec.samsung.net/service/analyses/2260326

Done :-D


Rationale cancel callback

Sorry if this was already covered, but I couldn't find it anywhere.
EasyPermissions.requestPermissions(
    this,
    "You need to grant permissions",
    PERMISSION_REQUEST,
    Manifest.permission.RECORD_AUDIO)

Before the actual permissions asking I get dialog with rationale and OK and Cancel buttons. When OK is clicked - it goes to permission asking. If cancel is clicked, dialog dismisses but I can't find any way to set listener for that.

@jdermont if the user cancels the rationale dialog you should get a regular permission denied callback.

@samtstern ok, needed also to make Activity implement EasyPermissions.PermissionCallbacks


tab-scroller: Fix server side rendering

@jeetChaudhari Found some more in tab-scroller. Pushing PR in a few. I've began adding platform detection to our unit testing. Should help identify all the code we have that isn't SSR ready.

@trimox Does this mean that we can unit test this lib for SSR? If this it then just awesome. It is very time-consuming to set-up SSR project and then copy all updated files from demo and start prerendering. One more issue is if an error occurs, I need to comment that part of the code and again start prerendering.

Yep, we're able to test for SSR compatibility. Trust me, I know! That manual testing was unbearable..huge propz to you for doing that! :gem:


update ui

Codecov Report

Merging #227 into master will increase coverage by 0.63%.
The diff coverage is 16.66%.

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


Bug: Mandatory tax selection

Related issue: #18
Since the new select2 implementation, saving an invoice is not allowed unless all items have a tax selected. There's no option for not adding a tax.

86c152d makes tax not required when creating an invoice. But there's still no way to remove an active tax from an line item :P

Hmm, what do you mean, i click the small x left to the tax and the field empties. Then i click save invoice button, tax is no longer there

I don't see an x to remove the applied tax, or any way to un-select a tax

Ah :) You dont see the select2 widget, you probably need to rebuild your assets.
Thats what i see:

Run php bin/console assetic:dump --env=prod
But even with the standard html multiselect element you can unselect a tax, by Ctrl+clicking it.

Ohh yeah. My bad. Thank you :)


PR: Pin py2app to version 0.28.2 to prevent errors on MacOS installer build

Description of Changes

[ ] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)

[ ] Included a screenshot or animation (if affecting the UI, see Licecap)

To prevent the MacOS installer build check from failing on PRs ping py2app to be 0.28.2
Issue(s) Resolved

Fixes #19618
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: dalthviz

@dalthviz, well, maybe it's not py2app? the same error is occurring. I'll investigate.

The only other differences I see in the build environment are:

Successful -> setuptools=65.3.0; sphinx=5.1.1
Unsuccessful -> setuptools=65.4.0; sphinx=5.2.0.post0

We could try pinning these instead, one-by-one, to see if any any are the culprit.

Seems like the problem was Sphinx :+1:


Unbind with Method after multiple Binds

Hi!
There seems to be a small bug in how unbind works. Take this scenario:
const methodA = () => console.log('hello from a!');
const methodB = () => console.log('hello from b!');

hotkeys('shift+a', methodA);
hotkeys('shift+b', methodB);

hotkeys.unbind('shift+a', methodA);
hotkeys.unbind('shift+b', methodB);

I would expect that both the shift+a and shift+b shortcuts would no longer be listening to events. However, the shift+a method still fires.
This is because when the first potential matching handler is found, the method is returned — cutting short the loop (so none of the other handler objects are checked).
That line should be replaced with:
if (method && obj.method !== method) break;

I'll open a PR in a minute to address.

@spencer516 👍
I look forward to your opening PR.


fix duplicate key commands in tests

Checklist

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

@davidbrochart can you check this? Looks like your change in c283f1fddc2d71f4c3293a5edacd9d0dc375a126 caused a duplicate commands key which was causing conda's check for updates to error out.
See https://conda-forge.org/status/, go to "Version Updates" and  search for "watchfiles", output:
We found a problem parsing the recipe for version '0.17.0':

DuplicateKeyError('while constructing a mapping',   in "", line 39, column 3:
      requires:
      ^ (line: 39), 'found duplicate key "commands" with value "[\'watchfiles -h\']" (original value: "[\'pip check\']")',   in "", line 45, column 3:
      commands:
      ^ (line: 45), '\n                    To suppress this check see:\n                        http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys\n                    ', '                    Duplicate keys will become an error in future releases, and are errors\n                    by default when using the new API.\n                    ')

traceback:
  File "/home/runner/work/autotick-bot/autotick-bot/cf-scripts/conda_forge_tick/migrators/version.py", line 509, in migrate
    cmeta = CondaMetaYAML(fp.read())
  File "/home/runner/work/autotick-bot/autotick-bot/cf-scripts/conda_forge_tick/recipe_parser/_parser.py", line 494, in __init__
    self.meta = self._parser.load("".join(lines))
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/main.py", line 434, in load
    return constructor.get_single_data()
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 121, in get_single_data
    return self.construct_document(node)
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 131, in construct_document
    for _dummy in generator:
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 1569, in construct_yaml_map
    self.construct_mapping(node, data, deep=True)
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 1452, in construct_mapping
    value = self.construct_object(value_node, deep=deep)
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 154, in construct_object
    data = self.construct_non_recursive_object(node)
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 196, in construct_non_recursive_object
    for _dummy in generator:
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 1569, in construct_yaml_map
    self.construct_mapping(node, data, deep=True)
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 1453, in construct_mapping
    if self.check_mapping_key(node, key_node, maptyp, key, value):
  File "/usr/share/miniconda3/envs/run_env/lib/python3.9/site-packages/ruamel/yaml/constructor.py", line 294, in check_mapping_key
    raise DuplicateKeyError(*args)

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Sorry for that @samuelcolvin.
Restarting CI to see if the failed tests are spurious.

No problem at all, very easy mistake to make.
Would be useful if @conda-forge-linter picked this up, given that it causes PR creating to silently fail.
If this passes, are you happy with it?

If this passes, are you happy with it?

Yes, looks good!


Remodeled the repository for python and JS

Switching to tensorflow for tf-js
python contains interp now
js directory with react

Might not change to tensorflow because I'm using flask. Set up the flask endpoints/boilerplate and check again.


RunSettingsFilePath property isn't honored by VSTest

The property RunSettingsFilePath which points to the local .runsettings file for the test session should be honored by VSTest and not just by Visual Studio. Doc that points to that property: https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2019#visual-studio-2019-version-164-and-later
We need this in the runtime repo (converged repo of coreclr, corefx and core-setup) to configure our test sessions without always needing to type the path to the runsettings file. Our end-goal is that dotnet test is sufficient to run our tests.
cc @ManishJayaswal @singhsarab

A simple repro for this is to have a MSTest test project with a single inconclusive test and force the inconclusive state to translate to fail via run settings. This will give a failing test when settings are picked up and a skipped test when they are not.
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            Assert.Inconclusive();
        }
    }
}

Add the following example.runsettings in your solution folder
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
  <MSTest>
    <MapInconclusiveToFailed>True</MapInconclusiveToFailed>
  </MSTest>
</RunSettings>

and configure the project to pick up the settings file by adding this to your csproj:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>

    <IsPackable>false</IsPackable>

+    <RunSettingsFilePath>$(SolutionDir)\example.runsettings</RunSettingsFilePath>
  </PropertyGroup>

Now running it via Test runner will report the test as failed, while running it via dotnet test will report the test as skipped.

This issue is currently being discussed here #2229


Error when build TensorRT-LLM in one step

I followed the installation.md,   but got an error. It prompts me need to configure this parameter {DOCKER_BUILD_ARGS}, how should i do? thank you so much！

Please upgrade Docker to version >= 20.10 and this issue will be solved. Thanks!


MX SP user received wrong email template for rb transactional

signed up for and reported back on https://thor.dosomething.org/mx/voluntario/plantar-par-tay-mx and got the following email:

this appears to be fixed. closing out.


JSX syntax broken in ternary operator & arrays.

VSCode Version: 1.24.1
OS Version: macOS 10.13.5

Steps to Reproduce:

Create the following JSX declaration in a .jsx, .jsx or .tsx file.

var obj = {
  someMethod: state =>
    state ? (
      <MyComponent someProp={false} />
    ) : (
      [
        <MyComponent someProp={false} />,
        <MyComponent someProp={false} />
      ]
    )
}

That's  it.

EDIT: The issue is present whether I'm in "JavaScript" or "Javascript React" language mode.

Screenshots

A few more screenshots.

And finally, the only way to fix it is to wrap them both in an array.

Fixed in insiders:


Docs.MS Release Updates for Azure.AI.FormRecognizer

Update docs metadata and targeting for release of Azure.AI.FormRecognizer

Docs Build status updates of commit 7a0870e:
:warning: Validation status: warnings

File
Status
Preview URL
Details

api/overview/azure/ai.formrecognizer-readme-pre.md
:warning:Warning
View
Details

api/overview/azure/ai.formrecognizer-readme-pre.md

Line 2, Column 1: [Warning-ms-prod-and-service] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 9, Column 16: [Warning-ms-prod-technology-invalid] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 11, Column 13: [Warning-ms-service-subservice-invalid] Invalid value for 'ms.service': 'formrecognizer'.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.
Line 2, Column 8: [Suggestion-duplicate-titles] Title 'Azure Cognitive Services Form Recognizer client library for .NET - Azure for .NET Developers' is duplicated in: 'api/overview/azure/ai.formrecognizer-readme.md(2,8), api/overview/azure/ai.formrecognizer-readme-pre.md(2,8)'. Titles must be unique within a docset.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Automatic Deployments

@rultor release, tag=0.1.0-RELEASE

@rultor release, tag=0.1.0-RELEASE

@adi OK, I will release it now. Please check the progress here

@rultor release, tag=0.1.0-RELEASE

@adi Done! FYI, the full log is here (took me 2min)


Fix Carthage test to use current branch name

Coverage remained the same at 91.996% when pulling ab9d1c45c8c3ff2921a0a6913d6082c7f8e7b5a8 on carhtage-test into 6bdbeae7429cf03d47c55d7a06c446ec633c9bbb on master.

Coverage remained the same at 91.996% when pulling 5eb90ebec19dfdde6427984abbbc8a3b6fef47dd on carhtage-test into 6bdbeae7429cf03d47c55d7a06c446ec633c9bbb on master.

Coverage remained the same at 91.996% when pulling c565d47ecef2e0ea641ff87b242f0c05c4badc91 on carhtage-test into 6bdbeae7429cf03d47c55d7a06c446ec633c9bbb on master.

Coverage remained the same at 91.996% when pulling e5385273d2a79a76ee85d1279fc6c3636a8a5223 on carhtage-test into 6bdbeae7429cf03d47c55d7a06c446ec633c9bbb on master.

Coverage remained the same at 91.996% when pulling 0cc97652d9a195b928eff9d1e7db0d819ab10276 on carhtage-test into 6bdbeae7429cf03d47c55d7a06c446ec633c9bbb on master.

Coverage remained the same at 91.996% when pulling fe742327a88624b5686a218a88be92cafda267e8 on carhtage-test into 6bdbeae7429cf03d47c55d7a06c446ec633c9bbb on master.

Coverage remained the same at 91.996% when pulling c2fab325f1b3fa45402996aeb2f95ac44e8dd363 on carhtage-test into 6bdbeae7429cf03d47c55d7a06c446ec633c9bbb on master.

Changes Unknown when pulling 712988910c01f1e39319c7290431a092e4089790 on carhtage-test into ** on master**.

Changes Unknown when pulling 2e53fdec312d7700bf787cb99e890a601fca1aec on carhtage-test into ** on master**.

Changes Unknown when pulling 07a2d0cb974a68262cf6cea7a6beab4a6a0a86cb on carhtage-test into ** on master**.


Spark and Hadoop Version confirmation

Sorry for previously not asking the question on the right platform. I need clarity around exact version of Spark. Did you use spark2.4.7 with Hadoop 2.7?
I also noticed hadoopAWSVersion = 2.8.5. With what version of Hadoop this is compatible?
Thanks a lot for your quick support.

This application was tested with Spark 2.4.7 and Hadoop 2.8.5 on EMR 5.30.1. Also, it is using Scala 2.11.12.
If you plan on upgrading to Spark 3, I would recommend using Spark 3.1.2, Scala 2.12.10, Hadoop 3.2.1.

@sushil-thasale @gw-vsasidharan
I have tried upgrading versions for spark & scala as  above mentioned. But unfortunately there are build  dependency errors .
Could not determine the dependencies of task ':shadowJar'.

Could not resolve all dependencies for configuration ':runtimeClasspath'.
Could not find org.scala-lang:scala-library:<IP_ADDRESS>.
Searched in the following locations:
- file:/C:/Users/.m2/repository/org/scala-lang/scala-library/<IP_ADDRESS>/scala-library-<IP_ADDRESS>.pom
- file:/C:/Users/.m2/repository/org/scala-lang/scala-library/<IP_ADDRESS>/scala-library-<IP_ADDRESS>.jar
- https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/<IP_ADDRESS>/scala-library-<IP_ADDRESS>.pom
- https://repo.maven.apache.org/maven2/org/scala-lang/scala-library/<IP_ADDRESS>/scala-library-<IP_ADDRESS>.jar
Required by:
project :
Could not find org.apache.spark:spark-core_2.12.10:3.1.2.
Searched in the following locations:
- file:/C:/Users/.m2/repository/org/apache/spark/spark-core_2.12.10/3.1.2/spark-core_2.12.10-3.1.2.pom
- file:/C:/Users/.m2/repository/org/apache/spark/spark-core_2.12.10/3.1.2/spark-core_2.12.10-3.1.2.jar
- https://repo.maven.apache.org/maven2/org/apache/spark/spark-core_2.12.10/3.1.2/spark-core_2.12.10-3.1.2.pom
- https://repo.maven.apache.org/maven2/org/apache/spark/spark-core_2.12.10/3.1.2/spark-core_2.12.10-3.1.2.jar
Required by:
project :
Could not find org.apache.spark:spark-sql_2.12.10:3.1.2.
Searched in the following locations:
- file:/C:/Users/.m2/repository/org/apache/spark/spark-sql_2.12.10/3.1.2/spark-sql_2.12.10-3.1.2.pom
- file:/C:/Users/.m2/repository/org/apache/spark/spark-sql_2.12.10/3.1.2/spark-sql_2.12.10-3.1.2.jar
- https://repo.maven.apache.org/maven2/org/apache/spark/spark-sql_2.12.10/3.1.2/spark-sql_2.12.10-3.1.2.pom
- https://repo.maven.apache.org/maven2/org/apache/spark/spark-sql_2.12.10/3.1.2/spark-sql_2.12.10-3.1.2.jar
Required by:
project :
Could not find com.fasterxml.jackson.module:jackson-module-scala_2.12.10:2.9.9.
Searched in the following locations:
- file:/C:/Users/.m2/repository/com/fasterxml/jackson/module/jackson-module-scala_2.12.10/2.9.9/jackson-module-scala_2.12.10-2.
9.9.pom
- file:/C:/Users/.m2/repository/com/fasterxml/jackson/module/jackson-module-scala_2.12.10/2.9.9/jackson-module-scala_2.12.10-2.
9.9.jar
- https://repo.maven.apache.org/maven2/com/fasterxml/jackson/module/jackson-module-scala_2.12.10/2.9.9/jackson-module-scala_2.12.10-2.9.9.pom
- https://repo.maven.apache.org/maven2/com/fasterxml/jackson/module/jackson-module-scala_2.12.10/2.9.9/jackson-module-scala_2.12.10-2.9.9.jar
Required by:
project :
Could not find org.rogach:scallop_2.12.10:3.3.1.
Searched in the following locations:
- file:/C:/Users/.m2/repository/org/rogach/scallop_2.12.10/3.3.1/scallop_2.12.10-3.3.1.pom
- file:/C:/Users/.m2/repository/org/rogach/scallop_2.12.10/3.3.1/scallop_2.12.10-3.3.1.jar
- https://repo.maven.apache.org/maven2/org/rogach/scallop_2.12.10/3.3.1/scallop_2.12.10-3.3.1.pom
- https://repo.maven.apache.org/maven2/org/rogach/scallop_2.12.10/3.3.1/scallop_2.12.10-3.3.1.jar
Required by:
project :

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 3s


application are evenly distributed to 5 columns

As KonTy suggested, I modified the application tab so that applications are evenly distributed to 5 columns. That way we don't need panel property in the application.json file.

Thank you for doing this. Hope Chris likes this as this will buy us even more time before we will stop accepting new apps :-)


Support ltp_dequeue_outbound_segment() and ltp_handle_inbound_segment()

Description
Tested in Docker integration container in https://github.com/fprime-community/fprime-dtn.
Built with:
COPY lib/pyion /home/ptl/lib/pyion

ENV ION_HOME /home/ptl/lib/ion
ENV PYION_HOME /home/ptl/lib/pyion
ENV PYION_BP_VERSION BPv7
ENV LD_LIBRARY_PATH /home/ptl/lib/ion/.libs
RUN pip install --user /home/ptl/lib/pyion && \
    pip install --user numpy

ltp_dequeue_outbound_segment() requires a with clause. This allows for sm_task_yield() to internally (and unconditionally) be called when the dequeued segment has finished processing.
Usage
pyion.ltp.ltp_handle_inbound_segment(ltp_frame)

with pyion.ltp.ltp_dequeue_outbound_segment(self.vspan) as ltp_frame:
    ...

@pcrosemurgy I have a few questions about this code before merging the pull request:

Why the need for using pthreads and related mutexes? Are we breaking compatibility for Windows users? Could we do threading instead at the Python level so that it is handled natively and has cross-support?
How does a user use ltp_init vs. ltp_attach and ltp_open? Previously the construct was always the same: (1) attach, (2) open, (3) close when done.

@msancheznet Good catch, I think the pthread mutex was from an earlier iteration of mine and I forgot to take it out. I'll take this out and retest.

How does a user use ltp_init vs. ltp_attach and ltp_open? Previously the construct was always the same: (1) attach, (2) open, (3) close when done.

Unfortunately, there's not really documentation for the LTP API outside of the udplso.c and udplsi.c implementations. LTP header files also do not have any comments explaining this API. I used the UDP LSO/LSI implementations as examples for dequeueing/enqueueing LTP segments into / out of ION. In these implementations all that's needed is an ltpInit() (ltp_init() in our Python wrapper).
I believe that ltp_attach() and ltp_open() are even more "internal" than ltpInit(). Looking at where they're used within ION hints at this I think:
The ltpInit() function uses:
stable:ion$ ag ltpInit -l
arch-rtems/pmqlsi.c
arch-rtems/pmqlso.c
ltp/udp/udplsi.c
ltp/udp/udplso.c
ltp/dccp/dccplsi.c
ltp/dccp/dccplso.c
ltp/library/libltpP.c
ltp/library/ltpP.h
ltp/utils/ltpadmin.c
ltp/daemon/ltpclock.c
ltp/daemon/ltpmeter.c
ltp/daemon/ltpdeliv.c
ltp/aos/aoslsi.c
ltp/aos/aoslso.c
contrib/ECLSAv2/ec/eclsa/extensions/HSLTP/hsltpProtocolAdapter_UP_ION_LTP.c
contrib/ECLSAv2/ec/eclsa/adapters/protocol/eclsaProtocolAdapter_UP_ION_LTP.c

The more "internal" LTP functions:
stable:ion$ ag ltp_open -l
ltp/sda/libsda.c
ltp/test/ltpcounter.c
ltp/include/ltp.h
ltp/library/libltp.c
ltp/doc/pod3/ltp.pod
bpv7/ltp/ltpcli.c
bpv6/ltp/ltpcli.c
stable:ion$ ag ltp_close -l
ltp/sda/libsda.c
ltp/test/ltpcounter.c
ltp/include/ltp.h
ltp/library/libltp.c
ltp/doc/pod3/ltp.pod
bpv7/ltp/ltpcli.c
bpv6/ltp/ltpcli.c

This shows an example of ltp_init() being used with the LTP enqueue/dequeue API: https://github.com/pcrosemurgy/fprime-gds-dtn/blob/50061f030769b87a395e46fd083a24cc5c0df0ea/src/fprime_gds/common/communication/updown.py#L327-L334

Thanks @pcrosemurgy. For reference, I seem to recall that the ION convention is that lower case functions (e.g., ltp_attach, ltp_open) are meant to be public APIs, and camel case functions (e.g., ltpInit) are meant to be private APIs. This is of course not documented anywhere that I know of :)
May Jay can shed some light as to the difference between ltpInit and the other functions.

Latest commit removes the unused _pthread_mutex.h. I re-tested this with fprime-dtn and there are no regressions.


Improved bash script now works when script is symlinked

This change allows you to symlink to the bash script and exec from the symlink.  Credit for the soln goes here
The 2nd commit makes -p optional and prompts for the pw which is more secure.

Thanks a lot for your contribution, @aberezin! Please allow me a day or two to look at it.

This is great, thank you so much for this @aberezin!
It's merged now and will soon appear in the next version of csv2db!


Small suggestions, bbcode and nl2br

I know this code is just a base to buid on, but implementing  in bbcode2html, is really useful in my opinion, since lots of codes are printed in the OOPHP reports.
My suggestion:
function bbcode2html($text) {
$search = array(
    ...
    '/\[c\](.*?)\[\/c\]/is',
    ...
);
$replace = array(
    ...
    '$1',
    ...
);

Also, auto- creating paragraphs with nl2br would be great. Instead of multiple br-tags, the text is placed in a p-tag.
For example:
public function nl2brAndParagraphs($text) {
    $br = nl2br($text);
    $data = preg_replace('/^\s*(?:
\s*)*/i', '', $br);
    $data = preg_replace('/\s*(?:
\s*)*$/i', '', $data);

    $data = preg_replace('#(?:
\s*?){2,}#','

',$data);
    $data = '
'.$data.'
';
    return $data;
}

Its nice suggestions but since its labmaterial I'll leave it as is for now. But I will move this code, for CTextFilter, out of this repo into its own. There is a better place to further add features for the class.

Will be fixed in the new repo for pure development of CTextFilter, feel free to add your own items and make a push request.
https://github.com/mosbth/ctextfilter/issues/2


ERC1155 Implementation Info

Querying balance:

Get TransferSingle receive events since last call (ie track the start block number).
Get TransferBatch receive events since last call.
Collect all the TokenIds for tokens received in those events.
Call 'balanceOfBatch' across all those tokenIds, and existing tokenIds tracked in previous calls.
Update the received balances and update the start block number for the next check.

```event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _value);``
event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _values);
and the filter:
Topic1: TransferSingle/TransferBatch
Topic2: null (operator)
Topic2: null (from)
Topic3: wallet account address (to)
This way we get all the receive events and can check the current balance for each. You could also keep a running diff, but that is prone to failing under a currently unknown edge condition (maybe the filter events didn't return correctly etc).
Is the TokenId a collection, NFT or a Fungible?

Check the top 20 bytes (96 bits). If this is non zero, and matches another TokenId, it's probably part of the same collection.
If the top 20 bytes are non-zero, mask the bottom 5 bytes. If the value is non zero, and 0xFFFF or less it's probably an NFT. If the value is zero, it's a fungible even if the balance is 1.

This heuristic works for all the OpenSea and Enjin ERC1155 collections so far seen.
Haven't yet added discovery via the BlockScout transfer query API.

Thanks James.

Call 'balanceOfBatch' across all those tokenIds, and existing tokenIds tracked in previous calls.

What is this balanceOfBatch?

since last call (ie track the start block number).
This way we get all the receive events and can check the current balance for each. You could also keep a running diff, but that is prone to failing under a currently unknown edge condition (maybe the filter events didn't return correctly etc).

If you are saying that we should always fetch the events from genesis and recompute the current balance (and not track the balance from previous batch and fetch the delta since), Binance and Heco seems to have problems doing event log fetches across more than a 4000 block window size so you might have to paginate.

What is this balanceOfBatch?

This is ERC1155's superpower and allows you to query a collection of tokenIds:
function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

eg balanceOfBatch([my wallet address], [34,30,29,50])
gives you the balance for tokenIds 34,30,29,50 on your account. It makes this method possible.

If you are saying that we should always fetch the events from genesis and recompute the current balance (and not track the balance from previous batch and fetch the delta since), Binance and Heco seems to have problems doing event log fetches across more than a 4000 block window size so you might have to paginate.

You would call the filter log, initially starting at block 1 (say), up to the LATEST block. I don't know how you limit it, but by adding the receive only on your account it should limit it somewhat. If you get an error too many logs, then you'd need to change strategy.
Keep track of the latest event received, read the block number. The next time you query, you need only start at that block number + 1.
Presumably, on the first pass you'd store all the tokenIds that have positive balance. You need to query those along with any new tokenIds received in the logs.

Sounds great. Thanks!

You probably spotted the typo in the above call, it should be:
eg balanceOfBatch([wallet address, wallet address, wallet address, wallet address], [34,30,29,50])

Closing for now.


add longer text format to admin

Adds longer text answer format

I rebased this branch to catch up with current main, it was reviewed and merged, so I'm closing this one.


deprecate static APIs with inefficient defaults

motivation: configuration work has pointed out that some of the static APIs  use inefficient defaults
changes:

deprecate Workspace.create,  Workspace.loadRootGraph, PackageBuilder.loadRootPackage, ManifestLoader.loadRootManifest and replace them with instance methods on workspace
add a simple constructor to workspace, that uses the host toolchain by default
adjust call-sites, test and examples

needs https://github.com/apple/swift-package-manager/pull/3656 first

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test


[eas-cli] Handle case where git is installed but not working properly

Checklist

[ ] I've added an entry to CHANGELOG.md if necessary. You can comment this pull request with /changelog-entry [breaking-change|new-feature|bug-fix|chore] [message] and CHANGELOG.md will be updated automatically.

Why
@ccheever encountered the following error when running eas build:configure on a fresh-ish Mac:

He tried running git to see why, and was greeted with this beauty:

So, I think it is useful for us to handle every case where git --help exits with an error that doesn't match ENOENT as some unknown error that points to a problem with the git installation. I let the developer know in the message specifically that git --help failed so that they can run it themselves and verify and debug from there.
How
Handle all unknown error types as an indication that git isn't configured correctly and provide a message explaining what is happening.

Test Plan
I didn't know how to get back to the state that @ccheever was in, so I changed the command that we use to check the git installation from git --help to git --haha to test that this worked as expected.

/changelog-entry chore Handle case where git is installed but not working properly


360 Quake - limited output

There seems to be a bug in relation to the number of results which can be extracted by uncover. Without -l it is not 100 but 300. With -l being provided it is still limited to 500 max. Even if you set -l 5000 , it won't go beyond 500. Now, the actual Quake website allows to browse and download 10 000's of results.

I've done some additional tests. Apparently, the 500 records limitation is somehow related to the type of the membership. So, even if a user has enough credits to run a query (i.e there's lots and lots of long-term points), without an actual membership going beyond 500 is going to be problematic.

Closing as this looks like a limitation of the API key access.


Jira Cloud use authentication user@email.com:<api_token>

After trying to use your swift jira script with user and password. Jira is giving me Error: httpError(401). After checking the Jira's oficial documentation for basic authentification, says that user must create an api token (check it) and make requests as:
curl --request GET \
  --url '/rest/api/3/project' \
  --user 'email@example.com:<api_token>' \
  --header 'Accept: application/json'

Hi @didix21
I tried the following code:
import JiraSwift
import Foundation

let client = JiraClient(baseURL: URL(string: "<my jira url>")!,
                        username: "<my email address>",
                        password: "<my api token>")

let projects = try! client.project.list().wait()
print("Projects: \(projects.count)")

// the code prints:
// Projects: 5
// Program ended with exit code: 0

I created the token here: https://id.atlassian.com/manage-profile/security/api-tokens
The URL must be something like https://company_name.atlassian.net

I tested it using an api token and is working right


Using local device configuration files

In the release notes for zwavejs2mqtt, it shows in version 4.0 there is support for loading a custom device configuration files.

allow loading custom device configs from store/config (#1096) (3988049)

I have been attempting to load a modified version of the file to support the Minoston(MS11Z) variant of this switch by placing in the store/config directory.   It is a copy of https://github.com/zwave-js/node-zwave-js/blob/master/packages/config/config/devices/0x0312/zw31.json with one additional product type code added.
The file works correctly if I rebuild zwavejs2mqtt with my edits, but it does not get loaded if placed in the store/config directory.  I am running zwavejs2mqtt directly ( not in a container ) and  the store is in the working directory.   I can see the file from within the file browser of zwavejs2mqtt in the config directory,  but it does not appear to get loaded.

What do your file permissions look like?

The process is running under the user 'hass' which owns all files.
drwxrwxr-x 4 hass hass      4096 May 14 22:44 store
drwxrwxr-x 4 hass hass  4096 May 14 15:23 config
store/config:
-rw-r--r-- 1 hass hass 7592 May 14 09:46 zw31.json

Are you using this folder?
deviceConfigPriorityDir: storeDir + '/config'
Remember that you also must respect the directories tree (you must place the config file inside a folder of its manufacturer like in the original config db

Remember that you also must respect the directories tree (you must place the config file inside a folder of its manufacturer like in the original config db

You don't.

🤷🏼♂  I remember it wrong or it was like that initially?

The PR https://github.com/zwave-js/node-zwave-js/pull/2406 does not specifically mention it, but there is no special structure necessary. It isn't even necessary for the internal DB, we just do it to keep an overview.

Ok perfect :)

Chiming in to say "me too". I have the json file in store/config. It is a copy of an existing file, except that I changed the productId, label, and description. File permissions are 644, and it's owned by the user that is running zwavejs2mqtt. I've tried restarting zwavejs2mqtt, re-interviewing the affected node, and excluding and re-including the node. It still doesn't pull in the specified config.
Is there any kind of positive feedback I should see in zwavejs or zwavejs2mqtt logs that would indicate that it can actually see the file?

I noticed in #1096 that the deviceConfigPriorityDir option is constructed using string concatenation. Elsewhere in the file, utils.joinPath() is used instead to create ZWAVEJS_LOG_FILE.

Because storeDir is already an absolute path

Is there any kind of positive feedback I should see in zwavejs or zwavejs2mqtt logs that would indicate that it can actually see the file?

yes, right when you start up in the driver log:
10:32:09.322 CNTRLR   [Node 001] Embedded device config loaded
10:32:09.329 CNTRLR   [Node 007] Embedded device config loaded
10:32:09.331 CNTRLR   [Node 015] Embedded device config loaded
10:32:09.351 CNTRLR   [Node 017] Embedded device config loaded
10:32:09.374 CNTRLR   [Node 025] Embedded device config loaded

This would be "User-provided" instead of "Embedded" when your custom file is loaded.

http://localhost:34067/#/development/intro?id=testing-custom-devices-config
Should I also mention the log feedback?

@gustden That is z2m logs, we need driver logs: https://zwave-js.github.io/zwavejs2mqtt/#/troubleshooting/bug_report?id=driver-logs

Thanks for this,  as I was unaware there were separate driver logs.    I am seeing the 'device config loaded", but nothing about the local file 'store/config/zw31.json' being loaded.
2021-05-28T13:29:10.499Z CNTRLR   [Node 006] No device config found
2021-05-28T13:29:10.508Z CNTRLR   [Node 011] No device config found
2021-05-28T13:29:10.520Z CNTRLR   [Node 015] No device config found
zwavejs_395236.log_2021-05-28.log

Problem is resolved in the latest release.   Thanks!


Enable run-to-run tests

I think these algorithms can be removed from the list, because they are stable now:
https://github.com/intel/scikit-learn-intelex/blob/eb21cd67a99427c2539cb0a852a679071f816151/daal4py/sklearn/test/test_run_to_run_stability_tests.py#L304-L321

See here: https://github.com/intel/scikit-learn-intelex/blob/eb21cd67a99427c2539cb0a852a679071f816151/daal4py/sklearn/test/test_run_to_run_stability_tests.py#L326


OpenAPIV3Parser.read: UTF-8 Charset errors

Hello,
parsing a OAS 3.0.0 spec in UTF-8 with this configuration :
openapi: 3.0.0
info:
  title: ApiWeb
  version: 1.0.0
  description: "Documentation de l'API élaboré par nos soins"
displays wrong characters:
Documentation de l'API ??labor?? par nos soins
The yaml source file is in UTF-8. (i checked in intelliJ and in another editor)
OpenAPIV3Parser.read doesn't seem to support correctly UTF-8.
Thanks for your help

Hi @Rush0001,
We tried to reproduce the issue, it's not reproducible and newly added tests are passing.
Could you please attach the input openapi yaml file which you used?
Which parser version are you using?
Thanks,
Mohammed

Hello @ymohdriz ,
This is the yaml file and a screenshot.
Thanks for your help.
Rush0001
file.txt

Hi @Rush0001  I added a test with the file you sent, but I haven't been able to reproduce, because the test passes.  please check the commit above.

Hi @Rush0001,
Looks like the issue is in swagger-ui. Can you raise an issue in swagger-ui.
Thanks,
Mohammed

Could be due to the operating system default encoding other than UTF-8.
Try running your JVM with -Dfile.encoding=UTF8 to override defaults.


fix typo in assertion statement in subproc_vec_env.py

fixed upstream (obs[0] does not actually have to be ordereddict there as we are returning dict), closing this


Change API scopes needed in the Setup Wizard

Changes
Change the Management API scopes displayed during setup.
References
Docs PR commit
Testing

[x] This change adds unit test coverage

Codecov Report

Merging #650 into master will increase coverage by 0.25%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #650      +/-   ##
============================================
+ Coverage     41.87%   42.12%   +0.25%
+ Complexity     1244     1238       -6
============================================
  Files            51       51
  Lines          3797     3779      -18
============================================
+ Hits           1590     1592       +2
+ Misses         2207     2187      -20

Impacted Files
Coverage Δ
Complexity Δ

lib/WP_Auth0_Api_Client.php
35.04% <ø> (+2.38%)
71 <0> (-6)
:arrow_down:

Continue to review full report at Codecov.

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


Unable to find a specification for react-native-worklets depended upon by VisionCamera

Hi,
I'm trying to install the react-native-vision-camera V3
After installing those:
yarn add<EMAIL_ADDRESS>yarn add react-native-worklets@https://github.com/chrfalch/react-native-worklets#3ac2fbb
yarn add yarn add<EMAIL_ADDRESS>but when I'm trying to run "npm i  react-native-worklets@https://github.com/chrfalch/react-native-worklets#3ac2fbb"
I get " no match found ..."
trying to run only "npm i  react-native-worklets"
its finish the installation.
but when I'm trying to run pod install but I get the error:
[!] Unable to find a specification for react-native-worklets depended upon by VisionCamera
You have either:

mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.

Can someone help me with that?
Thanks

See docs here:
https://www.react-native-vision-camera.com/docs/guides#:~:text=(Optional) If you want to use Frame Processors%2C you need to install react-native-worklets-core 1.0.0 or higher.
And you need to install this package if you need frame processors (linked in above highlight):
https://github.com/margelo/react-native-worklets-core


Feat: Adding a blog about fertilizers

Describe the feature
I want to add a fertilizer blog in the blog page
Add ScreenShots

I want to add this page as a blog
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

It is not required right now


Access result cache contexts rule

Feature request
With variation cache there are bugs being found due to multiple return logic steps and missing cacheable metadata in each return.
So a rule which finds methods which return access result interface. Check if multiple returns. That's the beginning of the code smell. Need to see if any cacheable metadata is lost.
Todo: flush out examples

Right, so probably the most common example is a tiered AccessResult return logic. What you'll often see is something like this:
if (!$account->hasPermission('do something special')) {
  return AccessResult::forbidden()->cachePerPermissions();
}

if ($account->id() == 1337) {
  return AccessResult::allowed()->cachePerUser();
}

return AccessResult::neutral();

The problem with the above is that if we get to the neutral outcome for a given user who does have the required permissions, but is not user ID 1337, it will be cached for everyone, including user 1337 or people who do not have the permission.
Likewise, if we cache for user 1337, we will always return said result for user 1337 even if their permissions change.
What instead needs to happen is that we carry over the cacheable metadata of every check, all the way down to the return statements that may follow:
$cacheable_metadata = (new CacheableMetadata())->addCacheContexts(['user.permissions]);
if (!$account->hasPermission('do something special')) {
  return AccessResult::forbidden()->addCacheableDependency($cacheable_metadata);
}

$cacheable_metadata->addCacheContexts(['user]);
if ($account->id() == 1337) {
  return AccessResult::allowed()->addCacheableDependency($cacheable_metadata);
}

return AccessResult::neutral()->addCacheableDependency($cacheable_metadata);

This happens with all sorts of cache contexts, though, not just the user based ones. So the goal would be to check if a function returns AccessResultInterface (even if not typehinted as such) and then start analyzing when it has multiple return statements and if every statement in a logic tree carries the cacheable metadata of the previous steps.
This might be a tough nut to crack, but if cracked it would make core and contrib already a lot safer.


memory leak with timer

I don't want to say its an actual memory leak but it looks like one.
If I run this program on MacOS, El Capitan, LLVM 3.9.1. and the default 4 ponythreads for my computer, it consistently leaks memory. If I run with 1 ponythread, it stabilizes at a reasonable, expected value. I went back as far as 0.8.0 and the problem exists:
use "collections"
use "time"
use "random"

actor Main
  new create(env: Env) =>
    let timers = Timers
    let t = Timer(Send, 0, 1_000_000)
    timers(consume t)

class iso Send is TimerNotify
  fun ref apply(timer: Timer, count: U64): Bool =>
    true

This has been verified by me as existing on Linux and by @sylvanc on Windows.

Testing this on OSX, with my backpressure branch, this doesn't bleed memory.

There are two leaks that I've found this afternoon, but one appears to be expected behavior.  First, the infinite leak.
When running Sean's example with no arguments, the leak appears to be cause by more BLOCK & UNBLOCK messages are received by (whatever actor is running Send.apply) than are consumed.  Using the move-message-probes2 branch of the Pony compiler (see https://github.com/ponylang/ponyc/pull/2295), a D script in the examples directory demonstrates the problem.
/path/to/ponyc/examples/dtrace/mbox-size-all-actor-messages.d -c /path/to/timer/exectuable

... shows that in a typical second, -6 and -7' message IDs are always being sent to an actor, but that actor only infrequently consumes those same message IDs.  Here are the results of hacking an awk` script to add all message push & pop probes for those message IDs.  (The timer program ran for a couple of minutes, I think.)
% egrep -e ' -. msg' /tmp/dtrace-output.txt | awk '{s[$1 ++ $2 ++ $3] += $5} END { for (i in s) { print i, s[i];} }'
4503608832-7msg-in 76340
4503608832-7msg-out 27468
4503608832-6msg-in 76335
4503608832-6msg-out 27463

This bug could use a fix.  ^_^
The second leak is much easier to see when using the --ponynoblock flag.  When I run the timer program on an OS X Sierra box, I see the RSS size (according to ps u) start at approximately 1200KB and grow over 20 seconds to roughly 2024KB.  Then RSS growth stops permanently.
This growth is not a leak so much as result of the design of the memory pool allocator used by the Pony runtime.  @dipinhora agrees with my assessment.  Any errors in the description here are mine.
Messages related to the timer firing are allocated by pony_alloc_msg() using pool index 0.  When the thread local allocator for pool index 0 is empty and there is nothing in the global pool for index 0, more memory is allocated from the OS.  See pool_get(), which recursively calls itself with pool index 5 (POOL_ALIGN_INDEX) and then uses the new memory for index 0.
When enough items from pool index 0 are freed by a thread, then eventually a clump of items is moved from the thread local pool to the global pool.  On my box, this happens after about 20 seconds of execution time.  From that point forward, pool_get() will always find a clump of preallocated items of index 0, so the OS is no longer asked for new allocations.
To watch the OS allocations which correspond to the process's RSS growth, try the following as the superuser immediatly after starting the timer program running (with or without the `--ponynoblock' flag):
# dtrace -n 'pid$target::pool_alloc_pages*:entry { @[probefunc, arg0] = count(); } tick-1sec { printa(@); clear(@); }' -p PID-OF-TIMER-PROGRAM

I've added example of DTrace output at https://gist.github.com/slfritchie/8f04a36c3498d20be27e3334b1a272be for folks who don't have DTrace supported on their favorite platform.

The "first bug" that @slfritchie mentions is fixed (or should be) on the backpressure derived branch i've been testing.

With the latest changes on my backpressure branch, when run with --ponynoblock I get no "memory leak" with OSX and 4 ponythreads

it appears that the cycle detector is a bit of a red herring. its not the real issue. this is the same bug as #647 and #517.
the problem is with the memory allocator. block messages if changed to be sent as the smaller size pony_msgp_t results in no memory growth. i believe because unblock messages also are the same nice and the allocator is more like to find the space required.
as @slfritchie points out above. i did some testing where i:

turned off scheduler block/unblock messages to cut down on noise.
discarded all block/unblock/ack actor messages upon receipt so we could rule out a bug with memory not being freed in any of the view map manipulations.
switch ponyint_cycle_block to be:

void ponyint_cycle_block(pony_ctx_t* ctx, pony_actor_t* actor, gc_t* gc)
{
  pony_assert(ctx->current == actor);
  pony_assert(&actor->gc == gc);

  pony_msgp_t* m = (pony_msgp_t*)pony_alloc_msg(
    POOL_INDEX(sizeof(pony_msgp_t)), ACTORMSG_BLOCK);

  pony_sendv(ctx, cycle_detector, &m->msg, &m->msg, false);
}

this results in what is usually very stable memory usage after a period of time, with rare occassional jumps. i'm fairly sure that the allocator needs to be addressed. i can see that the cycle detector is not getting overwhelmed with messages. i believe the cycle detector play a part in backpressure that seemed to help address this was merely changing the pattern of block message allocations thereby changing the memory usage pattern.

Those occasional jumps are due to calls to pool_alloc_pages().

If your timer program is run with --ponythreads=1 then calls to pool_alloc_pages() stops after about 20 seconds and is never called again.  And ps reports that RSS never increases.

If you use more than 1 thread, then the more threads, the more likely that pool_alloc_pages() is called in any given time interval.

For a program that has run for roughly 1800 seconds, the number of times that pool_alloc_pages() has been called zero times in a 1 second interval is:

--ponythreads=1 -> 1789 times
--ponythreads=5 -> 1185 times
--ponythreads=30 -> 876 times
All measurements taken on a 36 vCPU AWS EC2 instance, though the 5 & 30 thread processes are really only doing 2 CPUs worth of work at any instant (200% CPU as reported by top)

On my OS X laptop, I can leak memory memory faster by using --ponythreads=200 than with the default threads value.   The real fix is we need a coalescing allocator. However, run away memory can be contained by making all block messages allocate the same amount of memory.
This results in less fragmentation in memory and less overall memory being allocated then when messages are of a different size. To do this, we would make the block, unblock and ack messages all the same size. it "wastes" more memory unblock and ack messages but tamps down on the run away memory growth edge case.
even if its not a perfect solution. i think we should make it part of a larger solution given how they are so often paired together (block/unblock messages).

PR https://github.com/ponylang/ponyc/pull/2355 goes a long way towards fixing this issue and it unrelated to the aforementioned allocator twiddling.

This needs to be tested again with 0.21.0

There's still a very tiny leak in the sense that so far after 30 minutes I'm still getting some occassional memory growth. I think its because of block/unblock messages not being the same size and triggering an edge condition in the allocator. If there were tons of blocked actors this might be an issue. We could test addressing this  by making unblock messages the same size as block when allocated.
After 30 minutes though, I'm only at 1516 kbs used which is much much much less than when I opened this. I'm going to leave this running for a few hours to see where it ends up.

https://github.com/ponylang/ponyc/pull/2386 completely fixes this as there are no longer scheduler block/unblock messages being sent. If there were multiple schedulers in play, this still might be an isuse. And I'm leaving open for now to discuss if scheduler block/unblock/ack etc messages should all be the same size.

This appears to be resolved.


java.lang.ExceptionInInitializerError

Please describe what you did before the error occurred.
IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file!

Jadx version: 1.4.6
Java version: 19.0.2
Java VM: Oracle Corporation OpenJDK 64-Bit Server VM
Platform: Windows 10 (10.0 amd64)
Max heap size: 4096 MB

java.lang.ExceptionInInitializerError
	at java.base/javax.crypto.Cipher.getInstance(Unknown Source)
	at java.base/sun.security.ssl.SSLCipher.isTransformationAvailable(Unknown Source)
	at java.base/sun.security.ssl.SSLCipher.<init>(Unknown Source)
	at java.base/sun.security.ssl.SSLCipher.<clinit>(Unknown Source)
	at java.base/sun.security.ssl.CipherSuite.<clinit>(Unknown Source)
	at java.base/sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuites(Unknown Source)
	at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(Unknown Source)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Unknown Source)
	at java.base/java.lang.Class.forName(Unknown Source)
	at java.base/java.security.Provider$Service.getImplClass(Unknown Source)
	at java.base/java.security.Provider$Service.getDefaultConstructor(Unknown Source)
	at java.base/java.security.Provider$Service.newInstanceOf(Unknown Source)
	at java.base/java.security.Provider$Service.newInstanceUtil(Unknown Source)
	at java.base/java.security.Provider$Service.newInstance(Unknown Source)
	at java.base/sun.security.jca.GetInstance.getInstance(Unknown Source)
	at java.base/sun.security.jca.GetInstance.getInstance(Unknown Source)
	at java.base/javax.net.ssl.SSLContext.getInstance(Unknown Source)
	at java.base/javax.net.ssl.SSLContext.getDefault(Unknown Source)
	at java.base/javax.net.ssl.SSLSocketFactory.getDefault(Unknown Source)
	at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(Unknown Source)
	at java.base/javax.net.ssl.HttpsURLConnection.<init>(Unknown Source)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(Unknown Source)
	at java.base/sun.net.www.protocol.https.Handler.openConnection(Unknown Source)
	at java.base/sun.net.www.protocol.https.Handler.openConnection(Unknown Source)
	at java.base/java.net.URL.openConnection(Unknown Source)
	at jadx.gui.update.JadxUpdate.get(JadxUpdate.java:82)
	at jadx.gui.update.JadxUpdate.checkForNewRelease(JadxUpdate.java:64)
	at jadx.gui.update.JadxUpdate.lambda$check$0(JadxUpdate.java:45)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
	at java.base/javax.crypto.JceSecurity.<clinit>(Unknown Source)
	... 30 more
Caused by: java.lang.SecurityException: Missing mandatory jurisdiction policy files: unlimited
	at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(Unknown Source)
	at java.base/javax.crypto.JceSecurity$1.run(Unknown Source)
	at java.base/javax.crypto.JceSecurity$1.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	... 31 more

This looks more like a problem with the used Java Runtime. Please upgrade to latest version of Jadx and I strongly recommend to use the version with included JRE:
jadx-gui-1.4.7-with-jre-win.zip

@clm210 Have you tested the version I have linked?

No reply


Contribution Proposal: Automating Incident Response with GuardDuty

Hello, I have a solution that takes incidents in GuardDuty, fed into CloudWatch Events and using an Event Rule, triggers an SNS notification and fires a Lambda function that drops a ring fence security group around the instance and tags it as quarantined. This is based on a session that I have been running with AWS customers in ANZ and the feedback has been positive. I use the session to highlight some other nice features in CloudWatch Events, such as applying transforms and customizing SNS messages based on the JSON input received in the event and filtering options when creating CloudWatch Events rules for GuardDuty events.
I've been working with a colleague who has packaged this up into a CloudFormation template, and we've also incorporated the high-level design schematic that I use in the aforementioned presentation.
We'd like to contribute this solution to this repository, as it seems like the most logical home for it.
Please let me know if you need additional information, files, etc.

I would be interested in seeing this CFN if you are willing to share.

Please share if it is fine by you.

Oh sorry, I didn't see these responses. Yes, let me share it here next week. Thanks for responding.


SystemVerilog “logic” type seems to be supported

README file has a section on “Non-standard or SystemVerilog features”. As far as I can see, logic is actually supported, but it is not listed in the README.
If you try to use logic type, you will get this error message:
Lexer warning: The SystemVerilog keyword `logic' (at foo.v:2) is not recognized unless read_verilog is called with -sv!

Which suggests that logic is actually supported already. If it is so (and if it is known that it is mostly bug-free), then it should be listed in the README.

Quoting the README file:

The keywords "always_comb", "always_ff" and "always_latch", "logic" and
"bit" are supported.

Indeed! Sorry :)


[Backend] A messaging platform between brands and influencers to connect Added

Description
Established socket connection. created endpoint to close chat. make it as with accepting connection they can able to chat hello message sent for both. while closing socket connection will diconnect. Socket is used for realtime communication. messages are set to auto delete after 3 days.
Issue
Issue Link resolve #40

@Kajol-Kumari  @RohitGupta1237 can you please check.


Add Pydantic typing

Hi, we are using this library extensively at our company, and internally we have added type validation with Pydantic. If this is useful, I can update the documentation as well.

Hello, I'm not well experienced with pydantic tbh, can you explain how this is useful or helps ease future maintainability? I know there is a lot of code duplication that this reduces but is there other benefits?

We have a use case where we need to serialize the output tuple[Iterable[Segment], TranscriptionInfo] into JSON, and then deserialize it back into a typed Python object/model.
Namedtuples do not natively allow nested deserialization. For example, using the following JSON:
segments, info = model.transcribe(audio, word_timestamps=True)
out = [s_asdict() for s in segments]
print(json.dumps(out, indent=2))

[
  {
    "id": 1,
    "seek": 2490,
    "start": 0.0,
    "end": 6.0,
    "text": " Ladies and gentlemen, thank you for being here and for your written representations.",
    "tokens": [
      50364,
      //...
    ],
    "avg_logprob": -0.26516544380608725,
    "compression_ratio": 1.597883597883598,
    "no_speech_prob": 0.01361083984375,
    "words": null,
    "temperature": 0.0
  },
//...
]

If we try to convert this back to a list[Segment], the words is not converted:
from faster_whisper.transcribe import Segment
[Segment(**s) for s in parsed]

Segment(
    id=1,
    seek=2490,
    start=0.0,
    end=4.62,
    text=" Ladies and gentlemen, thank you for being here and for your written representations.",
    tokens=[
        50364,
# ...
    ],
    avg_logprob=-0.26516544380608725,
    compression_ratio=1.597883597883598,
    no_speech_prob=0.01361083984375,
    words=[
        [0.0, 0.32, " Ladies", 0.310546875],
        [0.32, 0.54, " and", 0.89453125],
# ...
    ],
    temperature=0.0,
)

Currently, we are recursing through the Segment and TranscriptionInfo objects to convert them to Pydantic models (which natively allow nested deserialization), but it would be nice if the library supported this out of the box.

I see, but why not use dataclass? it supports recursive serialization too and will not add an extra dependency or change much in the code

I think dataclasses are not serializable to JSON, at least not without another library:
import json
from dataclasses import dataclass

@dataclass
class Foo:
    x: str

foo = Foo(x="bar")
json.dumps(foo)

# TypeError: Object of type Foo is not JSON serializable

Closed in favour of #1105