daily averages use UTC day boundaries

Asking for a friend ...
We are working with data provided by someone else who used sensorToolkit to aggregate their sub-hourly air quality data into daily averages. The shared with us the daily average .csv files they say were created by sensorToolkit. These .csv files look like this:
2021-08-20T00:00:00+00:00,,,,,,
2021-08-21T00:00:00+00:00,20.853773662022178,Degrees (Centigrade),61.128749938238236,Percent (Relative Humidity),33.94285714285714,Micrograms per Cubic Meter
2021-08-22T00:00:00+00:00,20.87606973087087,Degrees (Centigrade),62.22907382740694,Percent (Relative Humidity),15.859294117647059,Micrograms per Cubic Meter
2021-08-23T00:00:00+00:00,22.036475363231848,Degrees (Centigrade),58.012639749617804,Percent (Relative Humidity),15.41559523809524,Micrograms per Cubic Meter

The day boundary datestamp specifies midnight UTC but the data are from California.
One of three things is happening:

daily averages were calculated in the UTC timezone and the timestamps are correct
averages were calculated in the “America/Los_Angeles” timezone and the timestamps are incorrect
averages were calculated using “Local Standard Time” (PST all year-round) and the timestamps are given as UTC because no LST timezone exists.

I reviewed the documentation at https://sensortoolkit.readthedocs.io/en/latest/index.html but was unable to find anything describing the timestamps used for daily averages.
It would be nice if sensorToolkit allowed for averaging according to either "clock" time or "LST" and included the correct timezone name or UTC offset in the generated daily-average .csv files.

Thanks for responding. From your answer, I understand that daily averages are calculated using hours 0-23 in UTC. So these daily averages will not correspond to local-time daily averages. Is that correct?

Yes, daily averages are calculated using hours 0-23 in UTC. So, if I understand what you are asking, the daily averages calculated are also in UTC.


Is there anyway to configure to delete the older version files, if in case of file version changed

I have tried by clean the older files from the build path before bundling. But the file versioning is happening based on comparing the older files. So not sure how to deal this, need you guys help.
Thanks in advance.

I agree this would be useful. But my team has a gulp task that just deletes the dist folder before our build process kicks off.


Print string values with HTML line breaks

Please describe what you would like to see in this project
Long string values (particularly in schema item descriptions) are rendered a one long non-breaking line. We should set a maximum length for a string value and apply the HTML/CSS necessary to render the text with line breaks for readability.

Do you have a link to or a screenshot of one of the problematic ones? Is it extending beyond the bounds of the page, or is it just that the page is so wide that it isn't the most readable?

Go to this page, expand the pmrep_conf property, and look at the description.


failed run python bot.py

Everything is configured
Traceback (most recent call last):
File "bot.py", line 132, in
bot.run()
File "bot.py", line 105, in run
count=likes_for_this_tag)
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/instagram/bind.py", line 196, in _call
return method.execute()
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/instagram/bind.py", line 182, in execute
include_secret=self.include_secret)
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/instagram/oauth2.py", line 224, in prepare_request
url = self._full_url_with_params(path, params, include_secret)
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/instagram/oauth2.py", line 148, in _full_url_with_params
self._full_query_with_params(params) +
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/instagram/oauth2.py", line 144, in _full_url
self._signed_request(path, {}, include_signed_request, include_secret))
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/instagram/oauth2.py", line 172, in _signed_request
return "&sig=%s" % self._generate_sig(path, params, self.api.client_secret)
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages/instagram/oauth2.py", line 127, in _generate_sig
return  hmac.new(secret, sig, sha256).hexdigest()
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/hmac.py", line 133, in new
return HMAC(key, msg, digestmod)
File "/Users/zhangbin/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/hmac.py", line 68, in init
if len(key) > blocksize:
TypeError: object of type 'NoneType' has no len()

It appears that you don't include the secret of your app, can you please see if you have included the secret or token?

Yep,
All bots need init InstagramAPI with client_secret.

Need client_secret here: https://github.com/gipmon/instagram-bot/blob/master/bot/bot.py#L23

You can create a merge commit if you want 😊 Thank you!!

No, thanks :smile:

Can I ask you some questions, where can I change the permission?
instagram.bind.InstagramAPIError: (400) OAuthPermissionsException-This request requires scope=likes, but this access token is not authorized with this scope. The user must re-authorize your application with scope=likes to be granted write permissions.
I already use scope(likes) to get access token, but only get basic info always.

That bug is showing to me too. I am trying to see what is the cause.. I use the scope = likes too and it shows to me that error.

Fixed the error with: 16c1b72d31b3f023e76699373ee4d6402145dc0b

https://help.instagram.com/contact/185819881608116


do not sent progress reports if not supported by the client

They are a feature of LSP 3.15, and should only be sent if signalled by
	/**
	 * Window specific client capabilities.
	 */
	window?: {
		/**
		 * Whether client supports handling progress notifications.
		 */
		workDoneProgress?: boolean;
	}

Likewise, support should be signalled to the client.
Note: this may be a haskell-lsp feature.  And is likely the cause of https://github.com/emacs-lsp/lsp-haskell/issues/59

And it seems emacs is advertising that it does support it, but is using the old behaviour.
https://github.com/emacs-lsp/lsp-mode/issues/1277

I think we are using a helper function inside haskell-lsp for this, it should probably check inside there.

I suspect it is/may be doing the right thing, the emacs lsp-mode is setting the flag, but does not support the new behaviour.

Nope, just turned it off in my version of emacs, still getting progress reports.

@alanz can you dump a log of the messages up here to see what's happening? there's code in haskell-lsp that looks like it should check the capability. wether or not it actually is though is another story
https://github.com/alanz/haskell-lsp/blob/5497e9fc975f47f54fd677fce0c2a8d675ce3aee/src/Language/Haskell/LSP/Core.hs#L790-L797


Poissonmultivi

Hi @martinkim0,
I had some time and added the Poisson loss also to the MultiVI model (POISSONMULTIVI) to the external models.
Addresses #2257 for Poisson likelihood.

I added the option to have separate size factors for RNA and ATAC, not sure if this is the best way.

Quick check looks good. Can you explain, why we don't inherit from MULTIVI and MULTIVAE?

Closing here due to inactivity. We have our own proposed Poisson distribution in multiVI that will be merged in the near future.


Browser support?

I know this is happily supported in Chrome, Firefox and all other evergreen browsers. What about IE8/IE9? Thanks.

IE8 is not supported by Angular 1.3, so that definitely won't work.  On IE9, it works, but SVG-Morpheus doesn't.  So you can see the icons, but not the cool animations.

Also note the one should use ng-attr-style for IE support. I have updated the demo page with this information.


How to support Java?

How to support Java?

How to support Java?

Not supported, the official also does not support Java


Pull in upstream changes from 0.15.0, take 2

I tried getting https://github.com/observablehq/lezer/pull/7 to work, but couldn't figure out what was going on. I recreated this PR from scratch by pulling in commits directly from the parent repo. Tests now pass:

Oh haha, wait. I gotta resolve conflicts first...how much you wanna bet I end up getting back to the same error 😂
Converting this back to a draft.

Yup, I did indeed get back to that same error

FYI I'm going to do a standard merge, instead of a squash merge, so that we can get Marijnh's commits in as-is, to help keep our history trees more in sync.


Add JSDoc and fix the response of getK8sResourceURL

Found during work to support the new WebSocketFactory in HAC-Core.

/lgtm


[Bug] ☰ button of the Xbox controller doesn't work

Device
TV
Device name
Amazon FireTV 4K
Android Version
13
App version
0.19.0
Script version
?
WebView name and version
?
Reproduction Steps

I connect my Xbox One controller to my FireTV stick.
I launch Better-Xcloud.
I launch the game "Magical Delicacy".
In the game, I press ☰ button of the Xbox controller.

Expected result

The menu with the "save" option pops.

Actual result

I hear a "plop" sound, but the menu doesn't appear.

Additional informations

Under Windows, it works.
With the official Microsoft Xbox application on FireTV, it doesn't work either.

This is a common problem with the Fire TV Stick:

https://old.reddit.com/r/xcloud/comments/11gcpi8/xbox_game_pass_on_fire_stick_with_controller/
https://old.reddit.com/r/xcloud/comments/pe4hgp/menu_button_stopped_working_on_amazon_fire/

@PhunkyBob: You should check if your controller has a firmware update available and install it. With most current firmware, it should at least work with the official app now.

I've done the firmware upgrade of the controller and updated the native Xbox application: same thing. The ☰ button does nothing but a "click" in the game, instead of opening the main menu.

Hm ... sorry to hear that. I followed a discussion on Reddit where a user had a similiar problem with wrong button mapping using the Xbox app on Fire TV. And the firmware update solved the problem.
That's what the official press release says about compatible controllers:

Then, all you have to do is connect a compatible Bluetooth controller and you’re ready to start gaming! The Xbox Wireless Controller, Xbox Adaptive Controller, DualSense or DualShock 4 controllers all work seamlessly.
You could get a cheap third party DS4 controller and give that one a try. Ironically those should work for playing Xbox games on your Amazon Fire TV device. ;)

So maybe the problem is that Xbox One controllers are too old and not supported?

LOL, I've bought this controller few weeks ago for this purpose only ^^

I can also still buy PS3 controllers. But those won't also be supported from the Xbox app on Fire TV, just PS4 (DualShock) and PS5 (DualSense) controllers.

It seems fixed with the last Firestick update 🚀


Feature request: ability to add custom tags to the runners

It would be nice to be able to add custom tags as labels. Custom tags are useful for example for cost allocation, e.g. determining how much a product is responsible for EC2 costs.

@michelesr are the default tags (stack:runs-on) not sufficient?

@michelesr are the default tags (stack:runs-on) not sufficient?

Well, we have different products that use runs-on to host jobs, and we would like to put the product name (or repository name) in the tags, so that in cost explorer you see which specific product is using runs-on instances and how much it costs.

Just to be clear: do you use a single RunsOn stack, or multiple?
Would it be sufficient if the repository full name was added as an instance tag? (it was there before, but has been removed while transitioning to the Go codebase).

Just to be clear: do you use a single RunsOn stack, or multiple?

Single stack

Would it be sufficient if the repository full name was added as an instance tag? (it was there before, but has been removed while transitioning to the Go codebase).

I think that will be enough, as we'll be able to map the repositories to the products easily, and it won't require to set the labels on the workflow, so it will require no setup at all.

This is now available in https://github.com/runs-on/runs-on/discussions/70

This is now available in #70

I've installed v2.2.2 but I can't see the repo tag in the instances.

There are more than 10 tags, are you sure you went through all the pages in the UI? Could you send a screenshot maybe?

There are more than 10 tags, are you sure you went through all the pages in the UI? Could you send a screenshot maybe?

You're right, my bad.


version:1.0.0(向量检索版支持java异步调用)

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


Limit trading global balance

if your account has a 100 USDTwe can limit trade to 50 but the bot will trade on other coins with the other 50 USDT
I think if we limit it to if 50 % of the global balance it will be great because sometimes when the dump happened you will lose all your money but if you have some in the wallet you can recover your lose

Hmm, interesting.
I think the percentage will be hard to calculate as the balance can be changed for multiple reasons.
But if we have something like Preserve quote amount as 100, and make the bot not buying if the current quote balance is less or equal than 100.
Will this work?

yes I think it will work great as a top trade amount


Error in Matrix with iCheck for JQuery

I've noticed a bug when using the Matrix with iCheck and JQuery which messes up the options available for each row. This error also happens in the example in the website (http://surveyjs.org/examples/jquery/custom-widget-matrix-icheck.html). Just select some options for each row:

Then click on "Complete" and then on "re-run survey" and you will see the error:

In my survey I have multiple pages with a matrix question in each of them. When I click on "Next" I experience the exact same issue.

I've reproduced the issue with Angular2 and jQuery iCheck custom widget implementation.

Under some circumstances we need to remove iCheck data for input elements:
       $el.find('input').data({"iCheck": undefined});
I've updated demo on our site. @robertoyus could you please check it?


Write a Swift program to convert temperature from celsius to kelvin

Description
Write a Swift program to convert temperature from celsius to kelvin
Input  ( C ) : -40
Output ( K ) : 233.15

Contributed by - @magar51

How to contribute

Comment !assign to assign this issue to yourself
Fork this repository
Create a new branch
Save the solution in program/program/convert-temperature-from-celsius-to-kelvin/ConvertTemperatureFromCelsiusToKelvin.swift
Commit the changes
Create a pull request

!assign

!assign


cmd/commands: add validation for MPP parameters

Fixes 8916
Change Description
Adds validation to ensure that the combination of max_parts and max_shard_size_msat parameters can accommodate the full payment amount before attempting the payment. This prevents payments from entering a path finding loop that would eventually timeout when parameters are incompatible.
Steps to Test

Thanks @ellemouton !
Done

@anibilthare, remember to re-request review from reviewers when ready

@anibilthare, remember to re-request review from reviewers when ready

@anibilthare, remember to re-request review from reviewers when ready

@anibilthare, remember to re-request review from reviewers when ready

@anibilthare, remember to re-request review from reviewers when ready

@anibilthare, remember to re-request review from reviewers when ready

@anibilthare, remember to re-request review from reviewers when ready

@anibilthare, remember to re-request review from reviewers when ready


I can enter the software but can't see the details

I can enter the software normally and load the data to display the image, but when I click on it, a prompt pops up and I can't connect to the website

Same trouble

Same trouble

Same

Same

Same

same trouble

Can still open them on website though

same


How to use fonts

Since some Chinese characters would show garbled characters, I decided to change the font.
However, I tried many times and failed.
I suspect there's something wrong with my code, but I don't quite understand the methods in the wiki...
So, can you provide a more detailed tutorial or give me a sample mod? (I want to change to TTF font)
Thank you!
(Bing Translator is used here because I don't know much English.)

Since some Chinese characters would show garbled characters, I decided to change the font. However, I tried many times and failed. I suspect there's something wrong with my code, but I don't quite understand the methods in the wiki... So, can you provide a more detailed tutorial or give me a sample mod? (I want to change to TTF font) Thank you! (Bing Translator is used here because I don't know much English.)

你可以重新创建一个 包含中文字库的字体。当然，必须是，也只能是ttf/otf（因为汉字很多不至于生成图片这么麻烦，而且后期加字也是很麻烦的）
然后在想要使用该字体的场景中的相关代码里设置字体
对了，记得代码段是utf-8编码
至于乱码吧...不知道具体情况，所以暂时不知道解决方案。反正检查字体和代码的文本编码能大概率解决问题

谢谢，但我最近不再做Deltarune Mod，如果有时间，我会试一试。
而且，我知道了乱码的原因，是因为内置的字体有些汉字不支持导致的。
以及，我很看好这个Deltarune Mod，我希望它能继续发扬光大！😉


Added more translation to translations object

demo not showing all added translation

Thanks @psalmfill! 👍

thanks too @psalmfill


Redact all credential handling logic and let Terraform handle

Small Readme updates for init and spelling
Bump version to 3.0

LGTM (once you remove the tests that expect credentials things to be happening). Can you just add a note in the README that versions prior to 0.3.0 handled credentials separately to make it obvious?

Err boo.. I totally missed the creds tests! Yeah I'll get rid of those and make a note in the readme!

Deployed: https://rubygems.org/gems/rake-terraform/versions/0.3.0


Add a "don't fail on error" switch ?

Hello
I just added this role as a deps for my role, ended up removing it since it's breaking my playbook, especially my "molecule test". Logs are below.
   TASK [dev-sec.os-hardening : change su-binary to only be accessible to user and group root] ***
    fatal: [molecule-docker-gitlab-amazonlinux-2017.03]: FAILED! => {"changed": false, "failed": true, "msg": "file (/bin/su) is absent, cannot continue", "path": "/bin/su", "state": "absent"}
    fatal: [molecule-docker-gitlab-amazonlinux-2017.09]: FAILED! => {"changed": false, "failed": true, "msg": "file (/bin/su) is absent, cannot continue", "path": "/bin/su", "state": "absent"}
    changed: [molecule-docker-gitlab-centos-7]

   TASK [dev-sec.os-hardening : change su-binary to only be accessible to user and group root] ***
    fatal: [molecule-docker-gitlab-amazonlinux-2017.03]: FAILED! => {"changed": false, "failed": true, "msg": "file (/bin/su) is absent, cannot continue", "path": "/bin/su", "state": "absent"}
    fatal: [molecule-docker-gitlab-amazonlinux-2017.09]: FAILED! => {"changed": false, "failed": true, "msg": "file (/bin/su) is absent, cannot continue", "path": "/bin/su", "state": "absent"}
    changed: [molecule-docker-gitlab-centos-7]

As for me,  I wish those lineinfile / ownership / mod checks could be ignored if files are missing, hence no security trouble there.

Hey @rgarrigue, rather than ignoring errors, I'd like to fix those errors so they don't happen in the first place.
I guess this happens because /bin/su is a symlink to /usr/bin/su or some other path.
Can you tell me, what operating system you're using (if you're on aws, tell me the ami, or if you use docker, tell me the container) please?

Hello
I'm running your role against centos/systemd:latest and
amazonlinux/amazonlinux:2017.09 and 2017.03.
To reproduce
pip install molecule
molecule init role test
cd test
Add your role in meta/main.yml and molecule/default/requirements.yml (to be
created python style)
Add those dockers to molecule/default/molecule.yml
molecule test
Le sam. 7 oct. 2017 15:08, Sebastian Gumprich<EMAIL_ADDRESS>a
écrit :

Hey @rgarrigue https://github.com/rgarrigue, rather than ignoring
errors, I'd like to fix those errors so they don't happen in the first
place.
I guess this happens because /bin/su is a symlink to /usr/bin/su or some
other path.
Can you tell me, what operating system you're using (if you're on aws,
tell me the ami, or if you use docker, tell me the container) please?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dev-sec/ansible-os-hardening/issues/148#issuecomment-334933982,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AByQn-cfvD9RAQugc6R1JwB8g6YL7n57ks5sp3e2gaJpZM4Pwez9
.

--
Rémy GARRIGUE

Hi there. Coming to this role again 2 years later, I see a forgotten issue.
This is no longer relevant to me. Can be closed as far as I'm concerned.

Sorry, yeah, totally forgot. :/
Thanks for remembering though!


[travis] allow macOS check fail

travis-ci's macOS build system is broken when installing packages.
Revert after it recovers.

@bukepo, I just submitted #341 which seems to fix the macOS issue on Travis.

Thank you!


⚠ Adacta-fintech.com has degraded performance

In cffb98c, Adacta-fintech.com (https://www.adacta-fintech.com) experienced degraded performance:

HTTP code: 200
Response time: 2943 ms

Resolved: Adacta-fintech.com performance has improved in 167631f.


Heteroscedastic dropout uncertainty

Can heteroscedastic dropout uncertainty be enabled in MXNet?
This follows from #3821 - I now have networks predicting with dropout uncertainty, but I believe this is homoscedastic uncertainty - see Yarin Gal's blog post.
Yarin provides an example ConvnetJS code for heteroscedastic uncertainty but I don't know enough to apply this to MXNet myself.
Can anyone advise on how to implement heteroscedastic regression layers in MXNet? It seems this would be a very useful feature for all regression purposes.
Many thanks.

do you mean using drop only in test with random drop the activation value?  if that, you should change the  forward fun in dropout op file, that is :

delete this line https://github.com/dmlc/mxnet/blob/master/src/operator/dropout-inl.h#L90
delete the else part code, https://github.com/dmlc/mxnet/blob/master/src/operator/dropout-inl.h#L108-L111

BTW, why during test using the random drop method?

If you mean non-uniform probability It is likely we could do it via composition, now that we have mx.sym.uniform to generate uniform random numbers. One way would be
0.5* (mx.sym.sign(prob - mx.sym.uniform(low=0, high=1)) + 1)

Thanks for your answer tornadomeet, I think your suggestion might be equivalent to setting forward(is_train=True) in the predict call? This does provide dropout uncertainty but I believe it is only homoscedastic - i.e. it assumes that the uncertainty of the target variable in relation to predictor variables is consistent throughout the predictor variable feature space, which is not the case in my application.
The reason to use random drop during test is to get a probabilistic output - i.e. with dropout on you can re-run predict x times to build up a probability distribution, the spread of which provides an indication of the uncertainty of the prediction. Yarin Gal has written a very good article about this.
Thanks for your answer tqchen. Would that allow the spread of prediction uncertainty for the target variable to become data dependent?
The aim is to achieve the lower of these two images, standard dropout uncertainty provides the upper:

The theory is explained here but I'm struggling to understand how it can be implemented.

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Change UI color to match HacktoberFest's official colors

Describe the bug
The Background colors on the splash screen and about us screen is 0xff13253d which doesn't match HacktoberFest's official color used on the splash image which is 0xFF0F0913
To Reproduce
Observe the Colors on the splash screen and the About us screen

Start App
Observe the colors

Expected behavior
The Colors should seamlessly merge with the splash image background
Screenshots (Optional)
Previously:

After proposed Changes:

Hello, I would like to work on this issue.

@Riktam-Santra I guess there's no issues here to fix then.

@sosualfred don't worry about it, my profile just got updated, seems like this repo has been excluded from hacktoberfest.

@Riktam-Santra this is a duplicate issue check #44 , also the pr for this already exists #53
I am closing this by marking duplicate, your other PRs are under review
And, wdym by "this repo has been excluded from hacktoberfest."

Duplicate Issue, PR already exists

@dk-a-dev I checked my hacktoberfest profile just now after submitting the PR, it is directly marked as excluded.

Here's the reason:

We are checking what went wrong


Test ISR next 12.2

Whats up ?

Leave a comment ok ok comment

And How to without refresh ?

So cool that’s we are looking for


Fixup nxp gpio names

This attempts to provide a different solution to #7172

Codecov Report

Merging #7188 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7188      +/-   ##
==========================================
- Coverage   55.03%   55.02%   -0.01%
==========================================
  Files         477      477
  Lines       51749    51749
  Branches     9951     9951
==========================================
- Hits        28478    28477       -1
- Misses      19305    19306       +1
  Partials     3966     3966

Impacted Files
Coverage Δ

lib/posix/pthread.c
69.34% <0%> (-0.51%)
: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 de223cc...34987c9. Read the comment docs.

TBH, these are really hacky patches going in the wrong direction.  Is there some pressure to "just make this work" for a while?  They also don't address the dead references to GPIO_MCUX_PORT*_NAME which are all over the docs.
I know you don't want to revert the original patchset moving the GPIO definitions to DTS, but it's probably the right thing to do in this case.  These drivers and the docs can all be fixed at the same time when the original patchset is reworked.

I'm not sure I would say this is a hack. It's just changing how the Kconfig value gets set by default. I'm also not clear what the doc issue exactly is.
Doesn't this patch hard-code the names of GPIO ports as config items?  Seems like the correct approach would be to configure the driver to accept DTS defines where it was applicable.  Your PR: https://github.com/zephyrproject-rtos/zephyr/pull/7189 would allow for that.

@galak @mike-scott

I'm not sure I would say this is a hack. It's just changing how the Kconfig value gets set by default.
Doesn't this patch hard-code the names of GPIO ports as config items? Seems like the correct approach would be to configure the driver(s) to use DTS-based GPIO LABEL defines where applicable. Your PR: #7189 would allow for that.

There hasn't been any progress on #7189 in a week. Any chance that we can merge the revert (https://github.com/zephyrproject-rtos/zephyr/pull/7181) in the interests of closing the medium priority issue (#7172)?
Moving to DTS properly can be finished when there is time, but this seems like low hanging fruit to decrease the bug count as discussed at today's TSC meeting.

This is now cleaned up by #7355


Use double-quotes for DOCKER_OPTS

Minor generalization that allows interpolation of any embedded variables.

LGTM -- I am adding a special note in the CHANGELOG for this change on the off-chance anyone is using an expected $ in their DOCKER_OPTS that now needs to be escaped.


Add support for looking at the top card of a deck

NOTE: Before you begin working on this, please assign this issue to yourself. If you do not do this, then there's the possibility that 2 people will end up doing the same task, which is not a good use of time.
Piano (Echoes) and The Daily Courant (Artifacts) need the ability to look at the top card of a deck.  Would it be sufficient to print it to the log or should the card be drawn and returned to the top of the deck?
We don't have support in the "transfer" API to do that at the moment.  When a card is returned to the deck, it is always put on the bottom.

Based on the wording on the card, I think it would be best if we actually drew the card and put it back on top. I'll take a look at how easy it will be to make this change to the API.

Okay I added support for this:
self::transferCardFromTo($card, 0, 'deck', /*bottom_to=*/ false);

And the log will say something like: "You topdeck X from your hand"
I checked the database to confirm that the card is going to the correct location.


Java 1.6+ has jdk.httpserver, please remove dependency on Netty

Selenide brings a whole bunch of Netty dependencies to the project, even if proxy is not used/needed.
It would be much better to use the Java built-in jdk.httpserver to avoid bringing many complex dependencies to projects that use other http servers than Netty.

@tenor-dev We cannot avoid using Netty because Selenium 4.+ uses Netty. Not only for server, but also Netty http client.


CLMS-specific blocks should be moved to another addon

https://github.com/eea/volto-arcgis-block/blob/5752a97c74f113730168fa48213c5517bff0e00d/src/components/UseCasesMapViewer/UseCasesMapViewer.jsx#L106

Closing, as I realize now that volto-argis-block is custom built for CLMS website, so no need to reason about its reuse.


Provide example with tests

Can you please provide a simple application with some tests that works on both platforms?
I follow your 'Getting Started' guide and all works fine, but when I add some tests, the tests are not running because of this:
/swift/.build/debug/SwiftUnit.build/main.swift.o: In function main': /swift/Sources/main.swift:(.text+0x0): multiple definition of main'
/tmp/LinuxMain-483598.o:/swift/Tests/LinuxMain.swift:(.text+0x0): first defined here
clang: error: linker command failed with exit code 1 (use -v to see invocation)
:0: error: link command failed with exit code 1 (use -v to see invocation)
:0: error: build had 1 command failures
error: exit(1): /swift-3/usr/bin/swift-build-tool -f /swift/.build/debug.yaml test
Thanks
Update: I am on a Linux machine

@ianpartridge @shmuelk we should add tests to https://github.com/IBM-Swift/Kitura-Sample

@vadimeisenbergibm there is any update?
I see this repository: https://github.com/IBM-Swift/Blitter and tests are working. So i think that you have to update your wiki. What do you think?
Best Regards and Thanks for your help.

@ianpartridge could you please handle this?

@therickys93 Added some sample tests, the problem was the naming convention, it is now merged in Kitura-Sample

@rob-deans thank so much for your help


Add MultiCurl::setDigestAuthentication()

The setDigestAuthentication() method there is in Curl class, but there is not in MultiCurl class

Merged. Thanks for the pull request!


ZIP file appears to be damaged

Screenshot, cookies.txt and history.txt appear to be damaged on my ZIP file and can't be extracted or viewed.

Yes this is the 2nd time I got this type of report, (last time one year ago). But this doesn't seem to happen frequently.
This might be the cause due to antiviruses blocking the zip file or something else. I don't think I can do something about this.

closed by mistake


Update README.md Changes made to the readme file by making contributors section to the top

Changes made to the readme file by making contributors section to the top

Hi @caiton1, Please help to review this PR, I have made changes to the readme file by changing contributors section to the top. Thanks.


Investigate framework/technologies/platforms to implement chatbot

Options being analized
Blenderbot
bootpress
dialogflow
High Level Analysis and requirement document being created here->
Check out the last comment to verify which is the last document version
https://groups.google.com/forum/#!topic/bluexolo/Qh8OtcWdumk
Document is inside the post:

@Daniel-Ruiz-Gtz Please update the file I have mentioned with the investigation work you did for Blenderbot

As part of your investigation is needed to understand the limits of the free service that is provided for each platform. Please update the document with that info.

We go for Botpress: Open-Source Conversational AI Platform


Bug: White Dots on the screen

There are dots, one in the middle and around right top of the screen, when I have Calendar Flyout opened. It's gone when I quit the app.
Is this something necessary for the app to work?
It's more like an eye sore to me and when I first see it, I thought I have a monitor problem.

Could you tell me what version of Windows 11 and version of my app are you using?

Windows 11 Insider Dev build : 25281
Calendar Flyout: 1.9.3

Okay, I need to install Insider build to check this issue.
Do you use apps that tweak UI? E.g.: StarDock, Rectify and so on?

Currently I can't reproduce this bug

No, I don't.

I just realize that I have Mica for Everyone. Which maybe the factor that causes the problem.
Right now the problem seems to be on and off to me. Sometimes I don't have the problem.

Okay, just open Mica for Everyone, add new rule for CalendarFlyout.Wpf.exe and disable custom styles for this process.


Exceptions from asyncio's create_connection() are not wrapped into ConnectionClosedError

If create_connection() fails in legacy/client.py, a raw ConnectionResetError (= a built-in Python exception) is raised:
  async with websockets.connect(ws_url) as ws:
File "/opt/foobar/lib/python3.9/site-packages/websockets/legacy/client.py", line 604, in __aenter__
  return await self
File "/opt/foobar/lib/python3.9/site-packages/websockets/legacy/client.py", line 622, in __await_impl__
  transport, protocol = await self._create_connection()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection
  transport, protocol = await self._create_connection_transport(
File "/usr/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport
  await waiter
File "/usr/lib/python3.9/asyncio/selector_events.py", line 856, in _read_ready__data_received
  data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer

Is this behavior expected? I would have expected websockets to wrap that exception into its own websockets.ConnectionClosedError (which I am already catching). The need to catch both exceptions (ConnectionResetError and websockets.ConnectionClosedError) seems rather pointless, as they will basically both result in the same response in downstream code.

If it's not desirable to change the behavior, it would be nice to document the exceptions that the user actually has to handle when establishing a connection. Right now, the documentation mentions InvalidURI, InvalidHandshake and TimeoutError, but none of the built-in Python exceptions.

Well, the difference is that the connectivity-related exceptions must be handled by any robust production-grade application (e.g., by reconnecting or by telling the user to check their internet connectivity), while there is not a lot that you can do about KeyboardInterrupt or MemoryError.

Yes, we have clear cut cases of exceptions we care about and exception we don't care about.
But what about everything in the middle? I don't even know how to make a full list of all exceptions that could occur, across all support platforms.

asyncio doesn't document the exceptions that create_connection may raise; actually it doesn't say anything about exceptions:
This makes it impossible to provide guarantees about the kind of exceptions that connect, a wrapper around create_connection, may raise.
If you care about connectivity errors, catch OSError (which supersedes IOError these days). It will solve your original issue:
>>> ConnectionResetError.mro()
[<class 'ConnectionResetError'>, <class 'ConnectionError'>, <class 'OSError'>, <class 'Exception'>, <class 'BaseException'>, <class 'object'>]


SSL error in server thread after invoking Thinking Sphinx

All calls to OpenSSL routines are failing after a thread (puma)/process (unicorn) executes a Sphinx query.
This error only occurs when the server is started using systemd; it works well if the daemon is started from bash. We have tried moving the Sphinx process to a different machine, and the error persists.
We're using thinking-sphinx (3.3.0) and mysql2 (0.3.21) gem versions.
Here are two example errors:

Faraday::SSLError (SSL_CTX_new: (null)) full stack trace

RuntimeError: Unsupported digest algorithm (SHA256) (also with other digests, like sha1). full stack trace

We're on Ubuntu 16.04.4 LTS. Here's our OpenSSL and Ruby versions:
$ openssl version

  OpenSSL 1.0.2g  1 Mar 2016

$ ruby -v -ropenssl -rfiddle -e 'puts Fiddle::Function.new(Fiddle.dlopen(nil)["SSLeay_version"], [Fiddle::TYPE_INT], Fiddle::TYPE_VOIDP).call(0)'

  ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
  OpenSSL 1.0.2g  1 Mar 2016

$ ruby -r rbconfig -e 'puts RbConfig::CONFIG["configure_args"]'

 '--prefix=/usr' 'LDFLAGS=-L/usr/lib ' 'CPPFLAGS=-I/usr/include '

$ locate -r /lib/.*libssl.*so

  /lib/x86_64-linux-gnu/libssl.so.1.0.0

We've also asked this wrt to systemd in this related StackOverflow question
This server uses Google Cloud's Ubuntu image and the error does not occur in a different environment (DigitalOcean's Ubuntu droplet).
Is there anything we can investigate to understand the root cause of this issue? Thanks.

Wow, this is certainly a frustrating situation for you! Excellent debugging thus far just to figure out some of the parts of what's causing it.
I'm at a bit of a loss as to the cause. Thinking Sphinx itself makes no use of OpenSSL… perhaps it's the invocation of mysql2 code that might be a part of it, when TS uses that for search queries? Are you using mysql2 elsewhere in your app (i.e. are you using MySQL as your database)? Or is TS the only reason you've got mysql2 in your Gemfile?

Also, are you in a position to upgrade the mysql2 gem to their latest release (0.4.10) and see if that makes any difference?

Thanks for responding so quickly @pat. I'm working with @jasim on this one. We had the same hunch, but it's really hard to tell. (we're looking at this weird thing for the last 3 days or so).
We did try the latest Thinking Sphinx and mysql2 gem versions, and it happens with those as well.
Anything else you think we should be looking at/into?

If it's possible, it'd be neat if you could see if a request that purely invoked mysql2 to make a call to Sphinx has the same impact - thus narrowing it down to whether TS is more directly involved or not. The following code should do the trick (alter the host, port, and query as needed):
client = Mysql2::Client.new(
  :flags           => Mysql2::Client::MULTI_STATEMENTS,
  :connect_timeout => 5,
  :host            => "<IP_ADDRESS>",
  :port            => 9306
)
results = client.query("SELECT * FROM article_core").to_a

That's a good idea. Thanks a lot @pat. We'll give it a try and let you know

Bingo! Yes, it does cause an error (I tested it on another instance with the older versions of TS and mysql, but I'll try to upgrade and test again. I imagine results would be the same).
Any thoughts what to do next? (other than reporting on the mysql gem I suppose...)

Glad to have that extra bit of clarity… though I kinda wish it was TS, because at least we'd be dealing with only Ruby code rather than a gem with C extensions.
Definitely create an issue on the mysql2 repo, because someone there may have some ideas. Beyond that… could it be possible that mysql2's referencing a different version of OpenSSL? As part of your build process, is the gem installed after OpenSSL, or the other way around?

There's still the question of why it's different depending on how the server is booted up… maybe it's a question of what systemd does after the server is started, and whether any of those later activities would influence behaviour…

Yes, it's very odd. Not only with a different initialization process, but also behaves differently on Google cloud and Digital Ocean... It's totally bizarre.

is the gem installed after OpenSSL, or the other way around?

We actually didn't explicitly install the openssl gem, but even after installing it (with/without adding :require, before or after mysql2), it still fails.

Closing this issue - the error disappeared by its own. We think this had something to do with the VMs. Certainly bizarre, but we aren't able to reproduce the error anymore. Thanks a lot for the help @pat .

I'm glad to know things are working, though the fact it just disappeared is very odd! Fingers crossed it doesn't return.


Antag eligibility for roles need to be better communicated.

Description

There is no in-game information about whether a "learning role" can become an antagonist in the game.
There should be proper communication about these things so players can make a well informed decision on what they want to que up as.

I think this needs a couple things.

One is a mechanical way for antags to be categorized. @Errant-4 was talking about doing this, so I'll let them explain more, but my understanding is it would allow different roles to have the different antag-levels stored somewhere sensible on them. i.e. Team Antag, Solo Antag, Free Agent, etc.
Better integration of the character/objectives panel so that you dont have to be a traitor or whatever to have objectives, and probably also to remove a bunch of the chat clutter that gets sent along with roles and is then almost impossible to reference afterwards.

* One is a mechanical way for antags to be categorized. @Errant-4 was talking about doing this, so I'll let them explain more, but my understanding is it would allow different roles to have the different antag-levels stored somewhere sensible on them. i.e. Team Antag, Solo Antag, Free Agent, etc.

Antag eligibility cannot be confidently determined based on just the antag "type" - for example Nukies and Head Revs are both Team Antagonist, yet only Nukies are available to Sec and Command


Marzipano with android chrome issue

Hi
We have implemented marzipano in our web site for 360 view it is working fine in all devices and web also except some android device on chrome (moto G4plus, sony experia). These devices show 360 view at a corner of screen.
Even we have tested marzipano official website demo link in these devices it have same issue.  You can check http://www.marzipano.net/demos/side-by-side/index.html in any of these devices it will produce same issue.
I have attached a screenshot regarding this.

Please provide any solution this.
Thanks
Munish Soni

I am facing same problems on Moto G4 and Moto E3 Power.
I have tested with One Plus series its working fine. Tested with some lower brands, it works fine.
But on my both moto devices it's not working.
I tried many different Implementation, all yields same result.
I also tried doing inspect element by connecting phone over USB, no extra errors or warning or violations.
Don;t know what to do now ...

@manuelcabral It works smooth in Firefox and in Chrome Beta too.

Same problem here with the demos! I'm using a Xiaomi mi5 with updated chrome.

Same problem here with Moto G4 Plus. Chrome updated. Working in Chrome beta and Firefox too.

I have a feeling that this could be an issue with the last Chrome update. I'm not sure..

I'm really needing this fix. :/

I'll say I'm having the same issue w/ Android (os version 7) w/ Chrome 58

With a new update of Google Chrome today, it's working now.

Cool @JacksonWolff, happy to know!

The easiest way to get started is to use the Marzipano Tool, which will generate a complete virtual tour ready to be uploaded into your web site.


sway: 1.7 -> 1.8

https://github.com/swaywm/sway/releases/tag/1.8-rc1
Description of changes

Things done
TODOs:

[ ] Wait for the final release (obviously)
[ ] Release notes (important changes in the commit message)
[ ] More tests (incl. reverse dependencies)
[ ] On Linux, CAP_SYS_NICE can be set to improve scheduling: https://github.com/swaywm/sway/pull/6994 -> we might want to support this via the NixOS module

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

we might want to support this via the NixOS module

That would be nice.
Thanks for the draft, saving me two cents of time.

we might want to support this via the NixOS module

This may be done similar to the KWin's approach:
https://github.com/NixOS/nixpkgs/blob/4ec2521ebb93a60b46d5d771b10294b760243c61/nixos/modules/services/x11/desktop-managers/plasma5.nix#L263-L268

I've added an untested WIP commit for how the cap_sys_nice part could look like so that we have something more concrete to talk about / discuss (I didn't spend much thought on it).
I guess the main questions to start with are:

Do we want to give cap_sys_nice to Sway by default and
Do we need a new module option to disable that behaviour

IMO (I'll have to think more about it though):

Yes. Just don't make it inheritable.
Maybe (as not everyone might like it). Would be nice to avoid it or reuse another option for a more minimal wrapper.

From capabilities(7):
       CAP_SYS_NICE
              * Lower the process nice value (nice(2), setpriority(2)) and change the nice value for arbitrary processes;
              * set real-time scheduling policies for calling process, and set scheduling policies and priorities for arbitrary processes (sched_setscheduler(2), sched_setparam(2), sched_setattr(2));
              * set CPU affinity for arbitrary processes (sched_setaffinity(2));
              * set I/O scheduling class and priority for arbitrary processes (ioprio_set(2));
              * apply migrate_pages(2) to arbitrary processes and allow processes to be migrated to arbitrary nodes;
              * apply move_pages(2) to arbitrary processes;
              * use the MPOL_MF_MOVE_ALL flag with mbind(2) and move_pages(2).

And the whole wrapper situation and implementation is getting a bit out of hand (I guess we should definitely try to make it simpler at some point).

Testing is welcome - I'll try to finish this tomorrow (I'm not sure yet if I want to include the changes from the second commit right away or via a separate PR for more discussion (/ if more discussion is required) - feedback regarding that is of course welcome as well).

Nice work :) - The update to 1.8 seems to work fine. cap_sys_nice on the other hand doesn't work when sway is used through the home-manager module. Neither running getcap on the binary nor getpcaps on the pid shows any capabilities. Nice value of the process is also 0 (which is the default if I'm not mistaken). After disabling the hm module all of the above show the expected values.
Is there a way to make this work with home-manager? Afaik home-manager by itself is not able to set any capabilities.

I plan to do some final testing later today (but I might have to delay it until tomorrow, unfortunately) but this should be good to go now.

Result of nixpkgs-review pr 203221 run on x86_64-linux 1

7 packages built:

nwg-panel
sway
sway-contrib.grimshot
sway-contrib.inactive-windows-transparency
sway-unwrapped
waybar
wlprop

I just ran a few final tests and everything looks still fine to me.


Fix readme release links pointing to the wrong repository

Describe your changes
I accidentally installed the wrong acap before because the links points to a different repository.
Checklist before requesting a review

[X] I have performed a self-review of my own documentation.
[ ] I have verified that the code builds perfectly fine on my local system
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have verified that my code follows the style already available in the repository
[X] I have made changes to the documentation

Nice catch!


EmrEtlRunner: add support for Elasticsearch in targets section of config.yml

Something like this:
targets:
  - name: "My ElasticSearch cluster"
    type: elasticsearch
    host: ADD HERE # Hostname of database server
    database: ADD HERE # Name of database
    port: 9200 # Default ElasticSearch port
    table: bad_rows

It probably wouldn't be table - would probably be type (assuming that doesn't break Contracts!)

The dual meaning of "type" here is pretty inconvenient. Perhaps we should start using "type" to mean the Elasticsearch type and replace "type: redshift" with something else, e.g. "target_kind: redshift"?

There's another question here which is around how we express which type (sorry) of data (enriched events or bad rows) is being stored in the target. It feels like we should be explicit about this. Let's brainstorm all this when I'm in...

How about something like
  - name: myelasticsearch
    type: elasticsearch
    host: myhost
    database: mydatabase
    port: 9200
    table: badrows
    sources: ["s3://path/run=xx", "s3://path/run=xx"]

Where "sources" is an array of all the buckets containing bad rows which you want to send to Elasticsearch.
If the "sources" field isn't given, it would default to the two bad rows buckets for the current run (enrich failures and shred failures).

We should probably add an option to toggle connecting only to declared es.nodes (this would be true for AES and false otherwise):
  - name: myelasticsearch
    type: elasticsearch
    host: myhost
    database: mydatabase
    port: 9200
    table: badrows
    sources: ["s3://path/run=xx", "s3://path/run=yy"]
    "es.nodes.wan.only": true # allows writing to AES

Agree, let's add. Let's use _s not .s to be consistent with ssl_mode.
At some point we need to move these targets out into properly typed self-describing JSONs, one per database but that can wait a couple more releases...

Can we add an example elasticsearch target into the example config.yml please?

I've added this now.

Thanks!


Snakemake max_version and version in addition to min_version

I am suggesting to introduce two more functions in the Utils library that define version and max_version, to precisely specify the wanted snakemake version. With the Singularity bug, I need to control which snakemake versions users run, and not allow anything above 5.9.1. For this, max_version would be required.

Some range options would be nice. For example, my pipeline needs >=6,<8.

Tagging @johanneskoester here because I think that's a very needed addition and easy to implement

Just commenting to say I would also benefit from this greatly!


singularity: 2.4.6 -> 2.5.1

Motivation for this change
There is a severe security issue in the 2.4 version of Singularity. This version fixes the issue. I am totally new to Nix and Nixos, but I built it locally and it seems to work. I have no idea how to continue further than creating this PR.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Maybe check these boxes:

built on nixos
ran all executables
fits contributing.md

Otherwise this should be all you need to do for most (simple) PRs.

@GrahamcOfBorg  build singularity

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: singularity
Partial log (click to expand)

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

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

Success on aarch64-linux (full log)
Attempted: singularity
Partial log (click to expand)
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/libexec/singularity/bootstrap-scripts/deffile-driver-localimage.sh: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/libexec/singularity/bootstrap-scripts/deffile-driver-docker.sh: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/libexec/singularity/bootstrap-scripts/deffile-driver-debootstrap.sh: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/libexec/singularity/bootstrap-scripts/deffile-driver-busybox.sh: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/libexec/singularity/bootstrap-scripts/deffile-driver-arch.sh: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/libexec/singularity/bootstrap-scripts/checks.sh: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/libexec/singularity/bootstrap-scripts/functions: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/bin/run-singularity: interpreter directive changed from "/bin/sh" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/sh"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1/bin/singularity: interpreter directive changed from "/bin/bash" to "/nix/store/a4qslf0yfs44mhnbagarn232sjnckhy0-bash-4.4-p19/bin/bash"
/nix/store/p86wvvv02m6cr84lbf9dz05y34wm5rpp-singularity-2.5.1

Success on x86_64-linux (full log)
Attempted: singularity
Partial log (click to expand)
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/libexec/singularity/cli/image.export.exec: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/libexec/singularity/helpers/image.sh: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/libexec/singularity/helpers/apps/list.sh: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/libexec/singularity/helpers/inspect.sh: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/libexec/singularity/helpers/check.sh: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/libexec/singularity/helpers/help.sh: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/libexec/singularity/image-handler.sh: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/bin/singularity: interpreter directive changed from "/bin/bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1/bin/run-singularity: interpreter directive changed from "/bin/sh" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/sh"
/nix/store/99k5dka257hf84cndg3n0hgwj53rin84-singularity-2.5.1


Update dash-mpd.xsd

Changed the XSD schema file according to http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd

thanks for the update!


Make matrix plugin optional

@kcboschert FYI, I've been holding off cutting a release till I get this in, not really keen on adding the matrix-project dependency.
This seems to work, will do a bit more testing then get it in and cut a release


[irods/4421] Added ability to mount a common volume

All of the OS's for postgres and mysql versions were testing.
I also removed the following at Alan's request:

ubuntu-20.04 / mysql-5.7
almalinux-8 / mysql-5.7
debian-11 / mysql5.7

The shared_volume change creates a volume called "shared_volume" and each container mounts this to /irods_testing_environment_mount_dir.

why are we removing the three for mysql 5.7?   doesn't feel like part of the shared volume issue...
(you mention it once as 4.7 above)

why are we removing the three for mysql 5.7? doesn't feel like part of the shared volume issue... (you mention it once as 4.7 above)

The Ubuntu 20 / Mysql 5.7 was removed because it was never tested and Alan said to remove it.  This was the error:
2022-09-01 15:43:06,571 ERROR - exception raised while setting up iRODS Zone [<irods_testing_environment.irods_setup.zone_info object at 0x7f2c796c6978>]
2022-09-01 15:43:06,571 ERROR - name 'configure_odbc_driver_ubuntu_2004_mysql_57' is not defined

Then upon further discussion he said the remove the others and include it all in this pull request.

why are we removing the three for mysql 5.7? doesn't feel like part of the shared volume issue... (you mention it once as 4.7 above)

I updated the 4.7 to 5.7 in the commit message.

squash to two, and i think i'm good with it all.

cool.

poke @JustinKyleJames :)

Added comment describing purpose of common vault.  Restored Ubuntu 20.04 / MySQL 5.7.

Very nice. Let's squash this down and resolve open comments


Remove unnecessary kubelet as upgraded package

The first step of 1, kubeadm is necessary to be upgraded because we
need to run kubeadm upgrade plan. Then, the line shows upgrade kubeadm:.
However, the commandline contains kubelet also. That seens copy&paste
mistake and unnecessary. This removes it.
In addition, the format of another tab is broken. This fixes it also by
naming another tab.
fixes: #10940

The issue seems fixed like https://deploy-preview-10941--kubernetes-io-master-staging.netlify.com/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-12/

/approve


Fix broken include in build a go app tutorial

Fixes #1250

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/580dad952779d111bfef4f4e98e5bb5dabbc39fb/


Glitch in the name rendered in the results, from  test_something()

Q
A

OS
Linux Mint WSL

Shell
bash in WezTerm

bashunit version
0.18.0

Summary
Not ground breaking, but it seems to be a glitch in the rendering function that transforms things like function test_something_exists() {} into Passed: Something exists
Current behavior
I have three simple functions: test_bin_dir_exists(), test_lib_dir_exists() and test_tests_dir_exists().
The last one is rendered as: Passed: S dir exists. It looks like the regular expression made to remove the first 'test' string worked too on the second one.
How to reproduce
Well. Create a function test_tests_dir_exists() and see how it renders.
Expected behavior
It's supposed to render as Passed:  Tests dir exists.
Note: I made it to work as expected by capitalizing the T in function test_Tests_dir_exists(), so my bet is on some regEx. It worked too with a double underscore like test__tests but it rendered an initial space and no capitalization.

Awesome finding! Thanks, @AndiKod!

Thank you and the team for the tool. Just discovered BashUnit and it's already a part of my Bash companion project I have in the making.
If I stumble on something else, I'll come back here.

The fix is merged on main, and you can try it yourself with the beta version (which build the code from main)
curl -s https://bashunit.typeddevs.com/install.sh | bash -s lib beta

Docs: https://bashunit.typeddevs.com/installation#define-custom-tag-and-folder

Works like a charm :)


0.0.2

add specs for all command operations
bug fix for 0.0.1
https://github.com/users/tmkw/projects/1?pane=issue&itemId=75163985
https://github.com/users/tmkw/projects/1?pane=issue&itemId=75163998
https://github.com/users/tmkw/projects/1/views/1?pane=issue&itemId=75164330

done (0.0.1/refactoring)


React-Bootstrap Tabs component behaving weird

I was using some older version of react-bootstrap in my application. The version of react at that time was 0.14.7
Today when I upgraded to React version 15.1.0, my Tabs weren't loading or with error.
I then replaced all my react-boostrap related .js files with version 0.29.4 (latest of react-bootstrap)
Please note that in each tab, I am showing a react form with controls like textbox, select etc.
Now whenever I switch to another tab, any changes I've made in my form textboxes/select get reset to their initial values as supplied via props. Previously it wasn't happening.
I have changed my Tabs code according to the Tabs example provided on your Components page but still to no avail. I guess something is causing to reload the tab content whenever any tab's nav is selected. It should not reload the tab content.
Please guide me what is going wrong? Thanks

Closing this issue. Posted on wrong forum.


Add query by payment credential

There's an addressUtxos query to get the UTxOs at a specific address. But I don't care about the stake credential (2nd part of the address), I just want to get all UTxOs that are locked by the same payment credential (1st part). This is not possible in the current API.
Issue #37  sounds related, but the fix did not actually add the "utxos by payment credential" route.

Ping

Ah, sorry I didn't notice the issue. This is actually supported by the API - it will try to parse both address and payment credential and automatically fallback to the latter if address can't be parsed completely.
Just not documented or reflected here.
We can either add the addressUtxoByPaymentCred, change the Capture "address" Address param to Either Address PaymentCred which would be just a different newtype to distinguish the two (but a breaking change) or do nothing just document this.

@sorki : How should I encode the payment credential? I tried just CBOR encoding it in hex representation but this gets rejected with a 400 error.

@sorki : How should I encode the payment credential? I tried just CBOR encoding it in hex representation but this gets rejected with a 400 error.

Looks like it's bech32 encoded with a prefix, for example addr_vkh15ew2tzjwn364l2pszu7j5h9w63v2crrnl97m074w9elrk6zy2tc
https://cardano-mainnet.blockfrost.io/api/v0/addresses/addr_vkh15ew2tzjwn364l2pszu7j5h9w63v2crrnl97m074w9elrk6zy2tc/utxos
For reference here's the decoding function https://github.com/blockfrost/blockfrost-utils/blob/master/src/validation.ts#L109-L128

Got this to work using a custom bech32 instance for some of the types from cardano-api (see this PR).
Thanks!


Error: 0x80370102 The virtual machine could not be started because a required feature is not installed

Version
Microsoft Windows Server 2022
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
I'm running Windows Server 2022 base with container on AWS EC2 i3 instance.
Installed WSL using command
wsl --install
after installation, I've restarted the system, and I'm getting this error "Error: 0x80370102 The virtual machine could not be started because a required feature is not installed."
I've also tried enabling hyper-v but still the same issue.
Expected Behavior
Ubuntu installed successfully.
Actual Behavior
"Error: 0x80370102 The virtual machine could not be started because a required feature is not installed."
Diagnostic Logs
No response

Try bcdedit /set hypervisorlaunchtype auto in CMD and then reboot, that worked for me.

Try bcdedit /set hypervisorlaunchtype auto in CMD and then reboot.

Hi,
Thank you for the response, but I'm still getting the same error after running that command.

Hi, I am having the same problem with my project, can you share your solution if you found it? thanks in advance.

Has this problem been fixed?

Has this problem been fixed?

Yes, it was fixed. Solution is to pick of different VM framework (With metal layer support), then WSL2 can be installed.

Has this problem been fixed?

Yes, it was fixed. Solution is to pick different VM framework (With metal layer support) from AWS, then WSL2 can be installed.

What should be done about Microsoft azure VMs?


A few typo fixes in Making-smart-comparisons.rst

Here you go!

Coverage remained the same at 77.008% when pulling 6e2631853532eb6e0a66526c2a3dc8b8e989a877 on toolness:patch-1 into d60f956ffdccaf3f9375520440915d1cc9ff1647 on datamade:master.

Looks good! Thanks


jetbrains.mps: fix license

Motivation for this change
Jetbrains MPS is licensed under the Apache 2.0 license and all third-party
libraries use proper open source licenses as well, so I see no reason why MPS
would be marked as unfree.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

It's somewhat unclear: https://www.jetbrains.com/legal/docs/mps/license.html mentions "All content of MPS except Third Party Software" is provided under the APL, but refers to the license folder for the licenses of the "Third Party Software". These are:
MIT license:

rngom_license.txt
winp_license.txt
bcprov-jdk15on-155_license.txt
isorelax_license.txt
slf4j_license.txt

Apache 2:

ant_license.txt
batik-all_license.txt
cglib-nodep_license.txt
cli-parser_license.txt
commons-codec_license.txt
commons-collections_license.txt
commons-compress_license.txt
commons-imaging_license.txt
commons-lang_license.txt
commons-logging_license.txt
delight-nashorn-sandbox_license.txt
diffutils_license.txt
fluent-hc_license.txt
gson_license.txt
guava_license.txt
httpclient_license.txt
httpcore_license.txt
httpmime_license.txt
jetbrains-ideframework_license.txt
kotlin-reflect_license.txt
kotlin-stdlib-jdk7_license.txt
kotlin-stdlib-jdk8_license.txt
kotlin-stdlib_license.txt
kotlin-test_license.txt
kotlinx-coroutines-core_license.txt
kotlinx-coroutines-jdk8_license.txt
netty_license.txt
objensis_license.txt
sqlite-jdbc_license.txt
stax-api_license.txt
velocity_license.txt
xerces_license.txt
xml-apis_license.txt
xmlbeans_license.txt
xmlgraphics_license.txt
xml-resolver_license.txt
commons-httpclient-patched_license.txt
error_prone_annotations_license.txt
fst_license.txt
javassist_license3.txt
jetpad_license.txt
lz4_license.txt
imgscalr_license.txt
ini4j_license.txt
jackson-annotations_license.txt
jackson-core_license.txt
jackson-databind_license.txt
log4j_license.txt
nekohtml_license.txt
snakeyaml_license.txt
streamex_license.txt
xmlrpc_license.txt

BSD:

asm_license.txt
automation_license.txt
common-image_license.txt
common-io_license.txt
common-lang_license.txt
hamcrest-core_license.txt
imageio-core_license.txt
imageio-metadata_license.txt
imageio-tiff_license.txt
jdom_license.txt
jaxen_license.txt
jforms_license.txt
jing_license.txt
jsch_license.txt
microba_license.txt
miglayout-core_license.txt
miglayout-swing_license.txt
nanoxml_license.txt
picoContainer_license.txt
proxy-vole_license.txt
purejavacomm_license.txt
trang-core_license.txt
XStream_license.txt

Eclipse Public License v1:

ecj_license.txt
pty4j_license.txt
junit_license.txt

Mixed apache/BSD/MIT:

groovy-all_license.txt

CDDL:

javahelp_license.txt
wadl-core_license.txt

Apache 1:

javassist_license1.txt
oromatcher_license.txt

LGPL:

javassist_license2.txt
jediterm-pty_license.txt
jna_license.txt
jna-platform_license.txt
swingx_license.txt
trove_license.txt

CC AT 2.5

jcip-annotations_license.txt

Mixed

mps_license.txt

Public domain:

xpp3_license.txt

AFAICS it's fair to consider the aggregate to be ASL2.0

(it's been marked unfree since its introduction in 7a8bbb6b9989711308a18593ef5e932e981ee869 by @rasendubi )

Thanks for spotting this! That was a copy-paste error from other JetBrains products :grimacing:


Purpose of "Unexpected compiler option"

What is the purpose of "Unexpected compiler option"?  I'm trying to add a test to a DefinitelyTyped module that relies on "noPropertyAccessFromIndexSignature", but I'm not allowed to add that option in tsconfig.json.  Why not?
If this is really important, could you please add it to the docs in either this repo or DefinitelyTyped or both?

There's no reason to set noPropertyAccessFromIndexSignature on DT, because the flag can only affect code in expression space. We in general don't allow people to set random flags that aren't useful when writing the types.
We did however allow exactOptionalPropertyTypes (for testing), so, maybe this flag could be allowed too, but I have never heard this flag being a distinguishing factor. noPropertyAccessFromIndexSignature is basically just a lint rule, so I would very much doubt that it would be critical to a DT test...

Not critical, just surprised me.  I wanted to show that a dot-expression with an undefined property would error with that option turned on, in spite of the index-signature in mocha's Context.  But that doesn't really matter to the types, so no worries.


Installation Error

I tried to install on Windows 10, 64-bit via powershell and got this...
PS C:\Users\garen> pip install pygrib
Collecting pygrib
Using cached pygrib-2.1.3.tar.gz (21.7 MB)
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for pygrib from https://files.pythonhosted.org/packages/96/34/f76696b84d0249e41154f3bb3345bd05aa5385bddceb04e6ccbbde5b7ab0/pygrib-2.1.3.tar.gz#sha256=a22552e2e58c9eb9b5750a2d5a8f055334ad2a6a4fb8a6d56261356196ebe651.
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Collecting numpy
Using cached numpy-1.20.2-cp39-cp39-win_amd64.whl (13.7 MB)
Collecting pyproj
Using cached pyproj-3.0.1-cp39-cp39-win_amd64.whl (14.5 MB)
Collecting certifi
Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Building wheels for collected packages: pygrib
Building wheel for pygrib (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python39\python.exe' 'c:\python39\lib\site-packages\pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\garen\AppData\Local\Temp\tmp3m4z_f6s'
cwd: C:\Users\garen\AppData\Local\Temp\pip-install-izcs_lz9\pygrib
Complete output (21 lines):
eccodes not found, build may fail...
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pygrib
copying pygrib_init_.py -> build\lib.win-amd64-3.9\pygrib
running build_ext
cythoning pygrib/_pygrib.pyx to pygrib_pygrib.c
C:\Users\garen\AppData\Local\Temp\pip-build-env-8_bbz0fk\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\garen\AppData\Local\Temp\pip-install-izcs_lz9\pygrib\pygrib_pygrib.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pygrib._pygrib' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\pygrib
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python39\include -Ic:\python39\include -IC:\Users\garen\AppData\Local\Temp\pip-build-env-8_bbz0fk\overlay\Lib\site-packages\numpy\core\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcpygrib_pygrib.c /Fobuild\temp.win-amd64-3.9\Release\pygrib_pygrib.obj
_pygrib.c
C:\Users\garen\AppData\Local\Temp\pip-build-env-8_bbz0fk\overlay\Lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
pygrib_pygrib.c(622): fatal error C1083: Cannot open include file: 'grib_api.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe' failed with exit code 2
ERROR: Failed building wheel for pygrib
Failed to build pygrib
ERROR: Could not build wheels for pygrib which use PEP 517 and cannot be installed directly

there is no windows binary wheel, so it's trying to install from source, and the eccodes C library is not found.  If you want to build from source, you have to build the eccodes library first.

@jswhit, Can you explain precisely please? I have the same problem I think and even with "pip install eccodes" I can't import the module pygrib.
The result of "pip install pygrib":
Collecting pygrib
Using cached pygrib-2.1.4.tar.gz (21.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\louis\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pygrib) (1.21.5)
Requirement already satisfied: pyproj in c:\users\louis\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pygrib) (3.3.0)
Requirement already satisfied: certifi in c:\users\louis\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from pyproj->pygrib) (2021.10.8)
Building wheels for collected packages: pygrib
Building wheel for pygrib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pygrib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
eccodes not found, build may fail...
running bdist_wheel
running build
running build_py
running build_ext
cythoning src/pygrib/_pygrib.pyx to src/pygrib_pygrib.c
C:\Users\louis\AppData\Local\Temp\pip-build-env-2g1cnr4w\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\louis\AppData\Local\Temp\pip-install-j7iyugex\pygrib_b22aff928f924a139cb8275e547e4c66\src\pygrib_pygrib.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pygrib._pygrib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygrib
Failed to build pygrib
ERROR: Could not build wheels for pygrib, which is required to install pyproject.toml-based projects

For "you have to build the eccodes library first": so why is eccodes missing in pyproject.toml dependencies?
When I call pip install eccodes pygrib eccodes gets through, still MS compiler complaints about missing C header file:
src/pygrib\_pygrib.c(697): fatal error C1083: Cannot open include file: 'grib_api.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

There is no grib_api.h in your project, is it?
May I suggest to be more verbose in installation hints?
conda is not really an option for me, and it also struggles.

I think this problem probably happens because ecCodes was not installed properly on windows as the developer site mentioned: "Windows is not a native platform for technical work at ECMWF. Therefore, ECMWF will need the help of the external user community to support these versions of ecCodes and Magics in the future". I had the same issue before, but when I migrated to Linux,  everything works well.

I have the same issue with pip install pygrib
`
Collecting pygrib
  Using cached pygrib-2.1.4.tar.gz (21.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\yanxiang.yu\onedrive - shell\documents\github\onshore-wind-prd-forecast\venv-name\lib\site-packages (from pygrib) (1.22.2)
Collecting pyproj
  Using cached pyproj-3.3.1-cp39-cp39-win_amd64.whl (6.4 MB)
Requirement already satisfied: certifi in c:\users\yanxiang.yu\onedrive - shell\documents\github\onshore-wind-prd-forecast\venv-name\lib\site-packages (from pyproj->pygrib) (2021.10.8)
Building wheels for collected packages: pygrib
  Building wheel for pygrib (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pygrib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      eccodes not found, build may fail...
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      creating build\lib.win-amd64-cpython-39\pygrib
      copying src\pygrib\__init__.py -> build\lib.win-amd64-cpython-39\pygrib
      running build_ext
      cythoning src/pygrib/_pygrib.pyx to src/pygrib\_pygrib.c
      C:\Users\Yanxiang.Yu\AppData\Local\Temp\pip-build-env-z4grqyr9\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2   note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pygrib
Failed to build pygrib
ERROR: Could not build wheels for pygrib, which is required to install pyproject.toml-based projects

I had the same problem with pip. On windows, it may not be possible to install with pip. But you can get it through anaconda (conda install pygrib) with an initial full upgrade of packages (conda update --all --yes). Or you can get a Linux emulator.

Doesn't seem to be a Windows-specific issue: I encountered this error on macos as well, where the eccodes python package is installed, but pygrib fails to locate it. My specs:

OS: macos
Python version: 3.11.4
Virtualenv: venv

Possible cause
The README.md section about manually building pygrib mentions that pygrib will

first look at the env var  $ECCODES_DIR before attempting to discover the location of eccodes auto-magically in common directories.
If it fails to find eccodes in any of those places, that's when the "grib_api.h": No such file or directory error is thrown which is causing problems for me and everyone above.
https://github.com/jswhit/pygrib/blob/40558bfeb7fc5c2a042496c1ed10c500e706efeb/setup.py#L51-L62

I think in my case it's because I'm using a python virtualenv and not installing dependencies in the typical machine-wide directories.
Workaround
Here's a workaround that explicitly sets the environment variable so pygrib has no problem finding and making use of eccodes:
# install dependency manually before attempting to install pygrib
pip install eccodes;

# lookup location of installed eccodes package and set $ECCODES_DIR to it
export ECCODES_DIR="$( pip show eccodes | grep "Location" | cut -d ' ' -f 2 )/eccodes"

# now pygrib will easily find the eccodes location and succeed install
pip install pygrib;

I was able to install and use pygrib with this approach, without needing to mix pip with conda, brew, apt, or other package managers like a lot of other workarounds suggest (115, 180, 184, 211 and 19)
Ideally pip install pygrib would install and link to its dependencies without any of these workarounds, but I couldn't find the root cause of the issue internal to pygrib.

Doesn't seem to be a Windows-specific issue: I encountered this error on macos as well, where the eccodes python package is installed, but pygrib fails to locate it. My environment:

OS: macos
Python version: 3.11.4
Virtualenv: venv

Possible cause
The README.md section about manually building pygrib mentions that pygrib will

first look at the env var  $ECCODES_DIR before attempting to discover the location of eccodes auto-magically in common directories.
If it fails to find eccodes in any of those places, that's when the "grib_api.h": No such file or directory error is thrown which is causing problems for me and everyone above.
https://github.com/jswhit/pygrib/blob/40558bfeb7fc5c2a042496c1ed10c500e706efeb/setup.py#L51-L62

I think in my case it's because I'm using a python virtualenv and not installing dependencies in the typical machine-wide directories.
Workaround
Here's a workaround that explicitly sets the environment variable so pygrib has no problem finding and making use of eccodes:
# install dependency manually before attempting to install pygrib
pip install eccodes;

# lookup location of installed eccodes package and set $ECCODES_DIR to it
export ECCODES_DIR="$( pip show eccodes | grep "Location" | cut -d ' ' -f 2 )/eccodes"

# now pygrib will easily find the eccodes location and succeed install
pip install pygrib;

I was able to install and use pygrib with this approach, without needing to mix pip with conda, brew, apt, or other package managers like a lot of other workarounds suggest (115, 180, 184, 211 and 19)
Ideally pip install pygrib would install and link to its dependencies without any of these workarounds, but I couldn't find the root cause of the issue internal to pygrib.

Any workarounds for windows? Would be good to install it without conda.

Any workarounds for windows? Would be good to install it without conda.

I don't have a tidy Windows cmd script that does the whole install automatically like the above Bash script, but you should be able to follow the same steps on Windows one at a time.
The main differences are that you set environment variables with SET instead of export, and the path separator in Windows is \ instead of /.

pip install eccodes

pip show eccodes

Find the line that starts with Location: , copy that path, and append the string \eccodes to the end

SET ECCODES_DIR=your\path\from\previous\step

For example, if pip showed the Location of your eccodes package is C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python311\Scripts, then your command would be:

SET ECCODES_DIR=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python311\Scripts\eccodes

pip install pygrib

This install should now succeed without error.


New function: clickImage()

Add a convenience function for combining click() and locateCenterOnScreen(), since specifying an image to click on is a frequent thing.
Original idea from: https://github.com/asweigart/pyautogui/pull/24

This is my first time ever actually working on an open source project. I believe I have it solved but I am unsure how to test it. I have it forked into my own repository. What to do now to test it?
Also, this specific project altogether is pretty hard to write unit tests for. Is it required for this issue or not?

I'd leave off the try/except: if the clickImage method raises an exception, you want to pass that exception on rather than quietly returning.
To test it, just create a screenshot of part of your screen (I like to use an icon on my desktop) and make a simple script, something like this, to see if it works:
import pyautogui
pyautogui.clickImage("notepad.png")

Note that you'll have to install your modified version of pyautogui - if you haven't already, uninstall the stock pyautogui, and then use pip to install a local editable branch (replace the path to your repo as appropriate):
pip install -e GitHub/pyautogui/

I am on Ubuntu 17.04 currently.
I got an error when trying to pip my version. Ubuntu requires pip3 command which works for this pyautogui but not mine.
My input:
pip3 install https://github.com/yodigi7/pyautogui/
Output with error:
Collecting https://github.com/yodigi7/pyautogui/
Downloading https://github.com/yodigi7/pyautogui/
/ 81kB 498kB/s
(Error begins here)
Cannot unpack file /tmp/pip-a4mg5np3-unpack/pyautogui (downloaded from /tmp/pip-o7sflah4-build, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-o7sflah4-build

Use your local copy, not the online one. From your GitHub folder:
pip3 install -e ./pyautogui

Ok sweet, tested it out and it works. I guess go ahead and try to submit a pull request?

Sure!

Thanks for the help @glitchassassin! This is the first project/issue that I had any idea what was going on so I figured this is the place to start. The next issue I will probably start on is adding a 'fuzziness level' to finding an image. Wish me luck!

Happy to help - it's good to see people contributing, that's how open source grows.
As far as fuzzy matching, I believe pyautogui does use the opencv library (if available) for this - try that and see if it'll work for your purposes!

I don't know off hand of any automation libraries that support fuzzy matching where the image's size can change.
The typical algorithm I see used is OpenCV's matchTemplate. This lets you find approximate matched (if, say, some text on the screen changes slightly), but it explicitly doesn't work on scaled images without some extra work.
This blog post might get you started in the right direction, if you think it might be worth learning to implement yourself!


Including a schemeURI with a nameIdentifier that is a URL will concat…

…enate the schemeURI and the nameIdentifier
Fixes #136
Purpose

When a nameIdentifier property contains both a schemeURI attribute and a nameIdentifier in the form of a URL, bolognese concatenates the schemeURI and nameIdentifier, resulting in incorrectly normalized nameIdentifiers like https://ror.org/https://ror.org/04p8xrf95 . This does not affect ORCIDs, which have specific normalization logic applied.
closes: #136
Approach

Rather than simply concatenating schemeURIs and nameIdentifiers when a schemeURI is present, the code now adopts the logic from the affiliationIdentifier code:
https://github.com/datacite/bolognese/blob/5a01ebd48784fa837db351405a8153e1bbb5c18d/lib/bolognese/author_utils.rb#L147
This only concatenates the schemeURI if "https://" is not present in the nameIdentifier and a schemeURI is present. It also performs some additional URL normalization found here:
https://github.com/datacite/bolognese/blob/5a01ebd48784fa837db351405a8153e1bbb5c18d/lib/bolognese/utils.rb#L610
Open Questions and Pre-Merge TODOs

Unfortunately, applying this logic to, for example, ISNIs can be problematic. As it currently exists, the implementation fails a test where nameIdentifier 0000 0003 5752 6882 with schemeURI http://isni.org/isni/ is normalized to http://isni.org/isni/0000%200003%205752%206882 (with the spaces escaped) when the test expects http://isni.org/isni/0000 0003 5752 6882. I would argue that neither the original test nor the fix produce correct results, since the ISNI is correct in the original expression 0000 0003 5752 6882.
The available options seem to be:

Keep the current fix but apply it only to RORs and add ROR-specific logics, e.g. always assume the schemeURI is https://ror.org/ when the nameIdentifierScheme is ROR.  For other identifier schemes, simply transcribe the schemeURI and nameIdentifier as entered.
Create additional logics for other identifiers like ISNIs.
Make no attempt at normalization and leave nameIdentifiers and schemeURIs as entered if they are not ORCIDs.

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)

[ ] New feature (non-breaking change which adds functionality)

[ ] Breaking change (fix or feature that would cause existing functionality to change)

Reviewer, please remember our guidelines:

Be humble in the language and feedback you give, ask don't tell.
Consider using positive language as opposed to neutral when offering feedback. This is to avoid the negative bias that can occur with neutral language appearing negative.
Offer suggestions on how to improve code e.g. simplification or expanding clarity.
Ensure you give reasons for the changes you are proposing.

we just found out that

Having looked at this again, maybe go with option 1:
Keep the current fix but apply it only to RORs and add ROR-specific logics, e.g. always assume the schemeURI is https://ror.org/ when the nameIdentifierScheme is ROR. For other identifier schemes, simply transcribe the schemeURI and nameIdentifier as entered.
i.e. lets just handle ROR as the main issue here for now and not try and be clever elsewhere.


[BUG]: A controller can register the same channel multiple times

Description of the bug
When a controller is connected to the game, there is nothing that will stop it from registering a subscription to a channel multiple times. This will then mean that it gets sent the same data multiple times.
Mentioned in here: https://github.com/Simpit-team/KerbalSimpitRevamped/releases/tag/v2.0.0
How repeatable is it? Eg "After I press stage 100 times, the mod will not take any more inputs from my controller"

If you reset a controller that is connected to the game multiple times, it will resubscribe to the same channels over and over.

Currently working on a fix for it.

Fix added to develop.


settings.ini changes in github actions causing build failures

Hi,
I'm seeing Actions failures on the Check if all notebooks are cleaned step, though github desktop and github don't report any repo differences.
This appears to be due to changes to the settings.ini file that occur within github actions, which results in git status detecting the file as modified. Here's what I'm seeing:

Comments and blank lines have been stripped
Dynamically constructed values like doc_baseurl = /%(lib_name)s/ have values replaced
host = github has been added at the end

These changes happen on the nbdev_read_nbs step; the settings.ini file matches my local copy prior to that. Strange - at first glance, I don't see anything in nbdev_read_nbs that should be doing that. Maybe something happening on import?
Actions is using the latest 0.2.18.

No, that test does not look at the settings.ini file, it fails if you have committed notebooks with extra metadata.
Normally nbdev_clean_nbs and committing will fix that problem for you.

Doesn't https://github.com/fastai/nbdev_template/blob/master/.github/workflows/main.yml#L22 look at the entire repo?

Yes it checks you have a clean git status, it's nothing to do with the cleaning.
Maybe just update your settings.ini to the version updated by nbdev_read_nbs? There are new keys now required by nbdev but for backward compatibility, they are added when needed. So calling nbdev_read_nbs with the latest version of nbdev on your local repo should give you the proper settings.ini file to commit.

Ah, sounds good, I'll try that - thanks.

So running nbdev_read_nbs locally resolves the build error - thank you -  but I don't quite like that it removes comments from the local settings.ini. I'd prefer to have things like this retained for reference:
# From 1-7: Planning Pre-Alpha Alpha Beta Production Mature Inactive
It's not a big deal, but it affects the developer experience a little.

Ah yes, saving the config would do that. I'll look at how we can avoid that.

Thanks, I appreciate it.


MemoryCache eviction issue with multiple identifiers

When the memory cache evicts an identifier it disposes the TenantContext.
However there are no guard rails that it is the only identifier that used this TenantContext and as long as these cache entries stay warm, then these entries keep returning a disposed TenantContext.
I have fixed this in https://github.com/crowded/saaskit/commit/5e6897acc661acaf9fa0f878ede04e5e51edd349
For now but I have a few other ideas of dealing with this issue that might be neater.
EDIT:
It was late and I hadn't tested it through 'assumption is the...' ...
Your cache classes (ITenantResolver) are no singletons because you expect library users to only build it the MemoryCache way (or any other non direct cache object). Because otherwise you would have reasoned that this call might not have been the greatest to do if we are talking about classes that users might try to use for caching
// No singleton?! for cache classes?!
services.AddScoped<ITenantResolver<TTenant>, TResolver>();

The next discovery was that right when I though I could just change this line it dawned on me that my own subclass of MemoryCacheResolver (which implements this ITenantResolver) rely on db connection's getting injected into them as an extra constructor argument so a singleton is out of the question as fresh/working connections are quite useful.
Then I thought ok lets do it like my proposed option 1. which then reminded me why I was so turned off by this solution in the first place as I now also need to add in my TenantIdentifiers while constructing the TenantContext... Ewhhh, and I thought it was gross already that I as a user even had to create the TenantContext in the first place.
Too many edge cases in the current implementation, the abstraction is wrong.
Ok rant is over, time to go to bed and rewrite this in the morning to the sane option 3. the dual layer model.
This gives you the minimum implementation burden as a library user and maximum control over the (optional) caching layer and other parts of the pipeline as the library author.

A temporary fix for this is to override CreateCacheEntryOptions and use absolute expiration. This will ensure that all the cache entries expire at the same time.
A better solution would be to set cache dependencies between the cache entries - I know this was a feature of MemoryCache in ASP.NET 4.6 but not sure about Core.
Another option worth discussing is whether it's acceptable to nominate a primary identifier. If this was the case we can ensure that only evicting the primary identifier would dispose the tenant context.
Let's keep the discussion going. I'd be interesting to hear how you're using this feature. I originally created it because we support multiple domain names per tenant but each tenant can only have one primary domain. We then have additional middleware that redirects to the primary domain if necessary.

Me too, exactly the same usecase. Please check the code, it now uses the tenantcontext guid as cache key

@benfoster, RC2 does indeed allow you to create cache dependencies using eviction tokens.

BTW, @NinoFloris, I'm curious as to what you're pulling back with your tenant that you perceive as very expensive...
Are you pulling in the entire aggregate graph of the tenant, or just a stripped down data model that gives you the basic relevant data for each request?

I use it as a lazy initializer for a lot of tenant state, setting up a
container with specific configs from the database, loading modules,
etcetera. That means an extra 500ms to 1,5s easy. This gets rooted in the
TenantContext.
On Fri, Jun 24, 2016, 05:39 Ron DeFreitas<EMAIL_ADDRESS>wrote:

BTW, @NinoFloris https://github.com/NinoFloris, I'm curious as to what
you're pulling back with your tenant that you perceive as very expensive...
Are you pulling in the entire aggregate graph of the tenant, or just a
stripped down data model that gives you the basic relevant data for each
request?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/saaskit/saaskit/issues/27#issuecomment-228251079, or mute
the thread
https://github.com/notifications/unsubscribe/AEBfucEVYKQ4f-3rPbQM1PSRr_FeoMVYks5qO1FdgaJpZM4IhVyF
.