Support CPU-only installation

related to #5084 #5001

To support CPU-only installation in a quick way, we can extend current quick start script and let installing homogenous CPU workers become possible. Here are the work items:

[ ] Add a flag for CPU-only installation in config.yml
[ ] Disable Nvidia GPU check based on the flag

currently it is based on the gpu type variable

[ ] Enable service configuration generation for CPU only VC

h
change services-configuration.yaml.template accordingly


array.length is not working for arrays in array

Try the code segment below

int[] x = [3];
int[] y = [4, 5];
int[][] xy = [x, y];

system:println(xy[0].length);

Issue
"non-integer array index type 'string'" error is thrown

Works fine in v0.91
Sample:
function main (string[] args) {
  int[] x = [3, 4, 8, 4, 7];
  int[] y = [4, 5];
  int[][] xy = [x, y];

  system:println(lengthof xy[0]);
}

Output:
5


WH spammed at the wrong level

With the new version the WH is always spammed at ever level 99 instead of every 100th level.

Nope

Something is definitely busted.  Tried it both from the extension version and the javascript version and both of them are just blowing through wormholes constantly without any regard to level or timing.  Doesn't make any sense.  Is there some sort of setting that needs to be cleared or what?

It's not exactly an issue, but it looks like one. It's been pointed out by a user in a steam chat (ThiefZero), that there's a sort of "Panic timer" where if you have too many wormholes in relation to the time left before a reset, it'll just start spamming your WH's by setting the ConstantWormholeOveride variable to true.
Check yourself, it's on line 498.

There should at least be a constraint on this "panic mode": if you fall close to a x00 level, you stop spamming wormholes.

Pawsed is assigned on this right now.


Fix whitespace. [skip ci]

Description of the Change
Remove the whitespace
Applicable Issues
#404

You can do better, try grep -r "[[:space:]]$" [a-zA-Z]* in the root of this repository.

You can do better, try grep -r "[[:space:]]$" [a-zA-Z]* in the root of this repository.

...  :no_mouth:

Maybe, u should remove the [skip ci]?

Maybe, u should remove the [skip ci]?

yeah

Maybe, u should remove the [skip ci]?

yeah

It's better to add CI check.

It's better to add CI check.
yeah, Maybe a style check.
Will add editorconfig file. check the issue


bill_info task encounters KeyError: 'committee'

I noticed the crawler is having issues with 881 bills in the 116th congress, I'm constantly getting errors of the form:
~/unitedstates/congress/$ run bills --congress=116
...
[sres455-116] Exception:

Traceback (most recent call last):

  File "/home/anelson/unitedstates/congress/tasks/utils.py", line 174, in process_set
    results = fetch_func(id, options, *extra_args)

  File "/home/anelson/unitedstates/congress/tasks/bills.py", line 102, in process_bill
    bill_data = form_bill_json_dict(xml_as_dict)

  File "/home/anelson/unitedstates/congress/tasks/bills.py", line 147, in form_bill_json_dict
    actions = bill_info.actions_for(bill_dict['actions']['item'], bill_id, bill_info.current_title_for(titles, 'official'))

  File "/home/anelson/unitedstates/congress/tasks/bill_info.py", line 403, in actions_for
    if keep_action(item, closure)]

  File "/home/anelson/unitedstates/congress/tasks/bill_info.py", line 396, in keep_action
    and action_for(item)['text'].replace(" ", "").endswith(action_for(closure["prev"])['text'].replace(" ", "")):

  File "/home/anelson/unitedstates/congress/tasks/bill_info.py", line 485, in action_for
    'committees': [item['committee']['systemCode'][0:-2].upper()] if item['committee'] else None,

KeyError: 'committee'

Errors for 881.
Skipped 0.
Saved data for 9054.

This is with the latest version of the code (I did a git pull --rebase before running this command) and having all the requirements installed (I ran workon congress right before running this command).

I noticed changing line 485 of bill_info.py to be 'committees': [item['committee']['systemCode'][0:-2].upper()] if 'committee' in item else None, produces a new problem, namely TypeError: 'NoneType' object has no attribute '__getitem__'.

I'm getting this too. Haven't had a chance to debug yet, unfortunately.

If you are looking for a specific bill to debug:
./run bills --log=debug --bill_id=hr3172-116
To be clear though, this is just one of many that I'm getting this error on

It looks to me that in at least some of the XML files that committee in the actions list has been changed to committees, although I have not found yet if that means that multiple committees could be listed in a single action.

I think it's related to this: https://github.com/usgpo/bill-status/issues/147

PR at #246. Starting next week I'll be on vacation for a while, so if there's an issue with the PR, I may not be able to participate.

GPO says on the linked issue that they will reprocess the files to put the tag back to <committee/> until formally rolling out the change.

Hi, all -- we implemented a fix to prevent the issue from recurring prior to the actual rollout of the change.
HR3 has been reprocessed and BILLSTATUS packages from ~4:45pm today should all have the correct committee element. We are working on reprocessing the remaining affected files and I will provide an update here and on the linked https://github.com/usgpo/bill-status/issues/147 issue when those are complete.
We appreciate your patience.

All affected billstatus packages were reprocessed by the end of last week.


Changes to support parsing and exposing ICS data

Parse name, email, status and role for attendee
Make AttendeeRole public
Parse variation of organizer ORGANIZER:
Make timeZone optional since its not always present in ICS files
Expose organizerEmail
Parse location, attendees and description with newline characters in it
Add podspec

@sanketfirodiya The podspec properties contain invalid data.
Homepage should be this GitHub page ("https://github.com/MauriceArikoglu/SwiftCal"), as this is the original repository and home of SwiftCal.
Additionally, authors should credit me too, please refer to the pod spec of PUCalendarKit for additional information on that. I am fine with you adding credit to yourself too though.

@MauriceArikoglu makes total sense, I was pointing to our fork just for our project, update the podspec now - https://github.com/MauriceArikoglu/SwiftCal/pull/2


Migrate array tutorial to pure python mode

Part of #4187

Looks good to me.

Just noticed that this was already converted in #4431. Sorry for the duplication. @0dminnimda had the same question, BTW.

Just noticed that this was already converted in #4431. Sorry for the duplication. @0dminnimda had the same question, BTW.

Oh nuts! I missed that!

Oh nuts! I missed that!

yes it is rather unfortunate

Superseded by #4431


Add oauth2 social login option

I love that you included JWT for authentication, but I think that it will be very instructive to also add the option to log in using common oAuth2 providers, like github or facebook. This is a common issue we have when developing a fullstack app, and some examples of this would be greatly appreciated.

Excellent suggestion — we originally kicked the idea around of having oAuth as part of the core spec but decided against it to try and cut scope creep. oAuth implementations can vary between providers, frameworks, etc so broad support across all stacks would likely have been sufficiently difficult to create & maintain.
That said, I think a good solution to this might be encouraging folks to fork the existing repo's and add on additional functionality (in this case oAuth, but https://github.com/gothinkster/realworld/issues/26 would also benefit from something like this). We can still list them in the main readme, but they could (& should) be maintained as separate repos (unless we end up changing the core spec to include oAuth, image uploading, etc).
Would love to hear thoughts on this!

My 50 cents: social login is very common task for real life apps. Login with facebook, google, instagram at least.
Specs for my social apps are:

signup with social network (after login with oAuth provider - create local profile for new user with specifiying additional detail like email or login into existing account if this token already attachet to any existing profile)
login with social network
link new social network to existing logged-in user
(?) user profile merging if signed up via different oAuth providers (common problem for user when first time they signup with google, and next time - with facebook).

@EricSimons I'm guessing this isn't something we want to support in the core spec per the discussion in issue #90?

@Cameron-C-Chapman : imho, nope. Social login is complicated separate feature set.
One more idea: we can extend API spec via versioning, and add some "addons" to spec, like, social logins.
So, backend implementing this "addon" can use /v1-social/api" endpoint, not plain "/api". Next version of core spec can be "/v2/api".  Maybe we can think on semver for spec.

@Cameron-C-Chapman yeah, social login would def fall into the "extra credit" category
@deksden I like the idea of potentially extending the spec via semver in the future 👍  probably will be a while before we create additional specs, but if/when we do, that seems like a great solution!

@EricSimons i think we need to finalise the the v1 of the spec and tag it before we even think about extending it. This will help prevent a lot of confusion and mess with all the other developers given the number of codebase we have growing.


Runelite crash array out of bounds

Happens only while playing with multiple clients
2021-10-03 15:05:33 [Client] INFO  c.f.controller.FlippingPlugin - starting slot timers on login
2021-10-03 15:05:33 [Client] WARN  n.runelite.client.eventbus.EventBus - Uncaught exception in event subscriber
java.lang.ArrayIndexOutOfBoundsException: Index 13 out of bounds for length 13
at com.larsvansoest.runelite.clueitems.progress.ItemTracker.writeDeltas(ItemTracker.java:62)
at com.larsvansoest.runelite.clueitems.progress.InventoryMonitor.fetchEmoteClueItemChanges(InventoryMonitor.java:74)
at com.larsvansoest.runelite.clueitems.progress.ProgressManager.processInventoryChanges(ProgressManager.java:110)
at com.larsvansoest.runelite.clueitems.EmoteClueItemsPlugin.onItemContainerChanged(EmoteClueItemsPlugin.java:188)
at net.runelite.client.eventbus.EventBus$Subscriber.invoke(EventBus.java:70)
at net.runelite.client.eventbus.EventBus.post(EventBus.java:223)
at net.runelite.client.util.DeferredEventBus.replay(DeferredEventBus.java:69)
at net.runelite.client.callback.Hooks.updateNpcs(Hooks.java:487)
at client.zh(client.java:23611)
at ev.hc(ev.java)
at client.di(client.java:7413)
at client.fz(client.java:3659)
at client.i(client.java:1893)
at at.jr(at.java:380)
at at.run(at.java:359)
at java.base/java.lang.Thread.run(Unknown Source)

Thanks for letting me know! Will look into it!

Seems like the bug occurred while trying to fetch your account's equipment. The error shows that there were 13 item changes at once, which should not be possible.
I have a hard time trying to reproduce your issue. Would you be able to tell me more about when this bug occurred? For instance, did you stash your equipment in the bank? And, what actions were you performing on multiple clients at once? With this information, I hope to accurately investigate the issue!

I'm sorry. Not quite sure what was happening, this happened alot. I had 3 clients open.
I was also having some problems with other plugins and I figure out that it was the gpu plugin that was crashing my game not this one.
Error might have been unrelated to your plugin.
These where the settings I had in the plugin:

Thanks for the follow up! Hmm, maybe you're right, perhaps there was some lag and somehow the item tracking got messed up. Anyways, it seems like more equipment slot 13 had a change, but I don't think there are that many. Perhaps another plugin triggered the false event? If this bug occurs more often, please let me know, and I could perhaps implement a fail safe that won't make your runelite crash.

I am closing this issue until further notice. If you manage to reproduce this error, please let me know!


Search documents with a pagination windows over 10000

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v14.21.3
Amplify CLI Version
12.1.1
What operating system are you using?
Ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes have been made.
Describe the bug
When querying a Table with more than 10000 registers the query returns an empty response.
Examples: When I make the following query
query MyQuery {   searchDatas(filter: {dataSetId: {eq: "68ce97d7-61f5-4007-8441-d4465948eca6"}}, from: 9999, limit: 1) {     items {       id     }   } }
I get the following response:
{   "data": {     "searchDatas": {       "items": [         {           "id": "ab4e4bde-939c-4bbe-8774-f502126263cf"         }       ]     }   } }
Which is correct. But once in increment the limit to 2
query MyQuery {   searchDatas(filter: {dataSetId: {eq: "68ce97d7-61f5-4007-8441-d4465948eca6"}}, from: 9999, limit: 2) {     items {       id     }   } }
the response is empty:
{   "data": {     "searchDatas": {       "items": []     }   } }
I have checked the response is empty when the sum of from and limit is bigger than 10000
I guess elasticsearch should be returning null because this param exceeds the index.max_result_window size.
Is there a way to use the scroll API of ElasticSearch using amplify? I need to recover all the registers of this table.
Thanks in advance for the help <3
Expected behavior
I expect to be able to get all the registers of the table.
Reproduction steps

Make  a table and make it searchable
Add more than 10000 registers to the table
Make a "search" query where the from and limit sum is over 10000

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Hi @GuillermoRivero - I notice you're using the from flag for pagination, but looking at the docs it appears that nextToken is probably the flag you want to continue paging through your data. Could you confirm if you've tried using that param, and the returned token from your query in order to page through? (I believe it should be a GUID, not a number).

Sure, I will test what happens using the nextToken and come back with a response. Thanks for the help.

I just check what you tell me and nextToken uses the ES scroll API, and is able to return more than 10000 registers, but there is a bug related to this when sorting, I will discuss it in a new issue. Thanks for your help! <3


Confused by "Project data directory must not contain the workspace."

Let's say there's a simple directory structure:
src/
    my.py
WORKSPACE
BUILD

When importing an existing project, plugin doesn't want to accept "Project data directory" (not sure what it means) to the same location as WORKSPACE file is in:

Also, setting it to src sub-directory doesn't work either:

Tried moving WORKSPACE under a directory, but got the first error. It seems that workspace and "project data directory" must not intersect completely.
I'm super confused by this. I would assume that "project data directory" is the root location of the project sources, for example. But then how can bazel workspace not intersect with the sources?
Everything works fine in from bazel command-line.
bazel version: 0.7.0
bazel intellij plugin version: 2<IP_ADDRESS>.1

The project data directory is where IntelliJ stores its configuration
files, caches, etc. It's not related to your source code and shouldn't be
check into version control, so you don't need it to be in the same
directory as your sources.
On Sun, Oct 22, 2017, 2:53 PM Dzmitry Lazerka<EMAIL_ADDRESS>wrote:

Let's say there's a simple directory structure:
src/
my.py
WORKSPACE
BUILD
When importing an existing project, plugin doesn't want to accept "Project
data directory" (not sure what it means) to the same location as WORKSPACE
file is in:
[image: screenshot from 2017-10-22 11-04-18]
https://user-images.githubusercontent.com/592184/31865008-6e7d0534-b71c-11e7-9e97-af9a06b9e56a.png
Also, setting it to src sub-directory doesn't work either:
[image: screenshot from 2017-10-22 10-56-28]
https://user-images.githubusercontent.com/592184/31865012-7806103c-b71c-11e7-9697-cb8fa7d1360c.png
Tried moving WORKSPACE under a directory, but got the first error. It
seems that workspace and "project data directory" must not intersect
completely.
I'm super confused by this. I would assume that "project data directory"
is the root location of the project sources, for example. But then how can
bazel workspace not intersect with the sources?
Everything works fine in from bazel command-line.
bazel version: 0.7.0
bazel intellij plugin version: 2<IP_ADDRESS>.1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/intellij/issues/150, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAV7YcDt-PEuzISxyU-cA6pcBz29Br9Tks5su48ygaJpZM4QCDzg
.

Thank you for explaining.
But isn't that the purpose of .gitignore? It's pretty easy to use, I see no problem having IDE-specific files in workspace directory. It has always been like that. Ignoring files was always the default way to omit files from checking in to any version control system, e.g. svn:ignore property or even cvsignore if we want to go 20+ years ago. Maybe I'm missing something, why did it became an issue now?
Also, inevitably there will be a lot of other files not-for-version-control, like bazel-bin, bazel-out etc, if you use Mac OS, there will be .DS_Store or .Thumbs files.
So you recommend having a separate sibling directory, specially for main project directory, like
my-project/
my-project.idea/

?

Just tried that, and had a problem configuring .bazelproject directories:

If I include . into directories, it marks the whole project workspace directory as source directory in IDEA. That's wrong, sources are usually put under src/ for Java, C, .Net projects, and app/ for JS projects, for what I know, only Python or small C projects prefer putting sources right into the root.
That prevents IDEA of correctly recognizing packages for java code, as it now has to be package src.main.java.com.example.myproject; instead of com.example.myproject.

If I don't include . to .bazelproject directories, then other project files are not visible from IDEA project structure, (like README.md, WORKSPACE, and all the doc/, lib/, media/, data/ etc directories that usually accompany sources. Project files are not necessarily all sources.

Also, when I tried to put a BUILD file into the src/main/java/com/example/myproject/mypackage directory (as we used to do in google3), plugin marked com directory as the source root as well. Not sure what's the reasoning there (should be java). If bazel prefers google-internal style directory structure, I wouldn't mind switching to it, just need to know what it is.
Maybe this is a separate issue though.

+1
It would be nice to check in .idea/codeStyleSettings.xml and have IntelliJ automatically pick it up. Right now we have to manually symlink it from our git repo into the Intellij project directory.

Also a pretty strong argument for keeping it in one directory is that all other IntelliJ IDEA language plugins put the project configuration files into the same project directory.

This is really just an internal restriction. I agree the Bazel plugin should allow this -- there's no reason to enforce it in the external plugin, we simply haven't written the code to account for this different use case.

Another reason to fix this is to allow CLI opening of projects.
I have many dozens of possible projects that I use Intellij with. (I've got 10 separate repo clients of our company's main repo, and each one has ~5 different projects that I frequently edit, each is a separate thing in Intellij) Looking through 'recent' projects is a big pain - instead what I like to do is to just cd into the appropriate directory and type 'idea .' For maven projects, this works great. But for Intellij projects, since I have to make the project data directory somewhere else, I have to remember that for those projects, I must cd into that alternate place and open from there. Weird workflow!

Yeah, sorry, I wasn't paying close attention when I wrote that reply and I thought I was replying to an internal Google email. In penance, I'll try to fix this for the Bazel plugin release in threeish weeks.

@brendandouglas Ah, I see. I thought it was a decision, thanks.
@plumpy That's great! Sorry I didn't know it was Bazel's WIP point. Let me know if you need any help.

So now we can have the IntelliJ directory in the code directory?
On Wed, 14 Feb 2018 at 22:13 Chaoren Lin<EMAIL_ADDRESS>wrote:

Closed #150 https://github.com/bazelbuild/intellij/issues/150.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/intellij/issues/150#event-1474609629, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABUIF4ujCpUr-CfMZoJ3zw85upVGYVijks5tUz5_gaJpZM4QCDzg
.

Yes, with the next release, the project data location will default to the root of your workspace.

Yay!

Awesome! Well done :)
On Wed, Feb 14, 2018 at 10:50 PM Sean Suchter<EMAIL_ADDRESS>wrote:

Yay!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/intellij/issues/150#issuecomment-365740927,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUIF5OXUa0irixkdGVJWqOwbJ4QHLHQks5tU0cngaJpZM4QCDzg
.

@chaoren: It's actually two releases out, right?

Err. Yes.

So for those of you waiting, it'll be in 2018.02.26, which should be pushed to the plugin repository on about 2018-03-12.

Can the source be synced now?
On Wed, 14 Feb 2018 at 23:50 Michael Plump<EMAIL_ADDRESS>wrote:

So for those of you waiting, it'll be in 2018.02.26, which should be
pushed to the plugin repository on about 2018-03-12.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/intellij/issues/150#issuecomment-365756440,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUIF0WeXAdvnUpb4hIqvjtxC0sfpRL7ks5tU1UTgaJpZM4QCDzg
.


feat(android): add WebViewAssetLoader proxy handler for cdvfile

Motivation and Context
Fetching files from the persistent and temporary file systen while using custom scheme+hostname.
Description
This PR adds a proxy handler for the WebViewAssetLoader.
Since cdvfile://localhost no longer works, this PR implements a new URL pattern that works with custom scheme+hostname. It will fetch and return a WebResponse of the file located in the native file system.
E.g.:
Old cdvfile URL:
cdvfile://localhost/persistent/image.png

will become:
https://localhost/__cdvfile_persistent__/image.png

and continue to map to the native file:
file:///data/user/0/<APP ID>/files/files/image.png

If you configure the app to use http or with a different hostname, other then localhost, it will change as such.
Resolves:

fixes #512
closes: https://github.com/apache/cordova-android/issues/1361

Need confirmation:

fixes #511 (I suspect it is trying to load a the file scheme file path when using custom scheme+host.)
fixes #499 (I think this PR might resolve this PR as well)
closes #426

Depending on use case and app configuration, it appears that many the file url was being used when the app is served though the custom scheme+hostname setup. Only with AndroidInsecureFileModeEnabled will the file path work. This PR will introduce changes which will make it possible to load files with the custom scheme+hostname setup but with a different URL structure.

fixes #509
fixes #508 (Another ticket might be needed regarding to listing...)

Usage:
Use toURL, NOT toInternalURL.
The toURL method will call the toInternalURL when necessary.

IF AndroidInsecureFileModeEnabled is set to false or not defined, the toURL method will call and return the results from toInternalURL.
Example result: https://localhost/__cdvfile_persistent__/image.png.
The scheme and hostname may vary depending on its configurations.

IF AndroidInsecureFileModeEnabled is set to true, the toURL method will return the native URL.
Example Result: file:///data/user/0/<APP ID>/files/files/image.png.

What happens if toInternalURL is called directly?

IF AndroidInsecureFileModeEnabled is set to false or not defined, calling the toInternalURL method will not have any negative effect. The correct URL pattern will be returned.
IF AndroidInsecureFileModeEnabled is set to true, calling the toInternalURL method will return a URL pattern that does not exist and is reachable. This will cause issues in fetching and loading of resources.

Testing

npm t
`cordova build

Checklist

[x] I've run the tests to see all new and existing tests pass
[ ] I added automated test coverage as appropriate for this change
[x] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
[x] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
[ ] I've updated the documentation if necessary

helpful

Sorry if this is the wrong place to ask, but as the current latest version is from 2019, once this gets merged how long is it likely to be for a new release to be available?
Or will I need to build the plugin myself somehow rather than using cordova plugin add... ?

Sorry if this is the wrong place to ask, but as the current latest version is from 2019, once this gets merged how long is it likely to be for a new release to be available?
Or will I need to build the plugin myself somehow rather than using cordova plugin add... ?

@skmbr I can not give you an exact answer, but hoping to prepare a release shortly after.
This PR fixes a lot of the issues but I am trying to investigate one alternative solution.
I am hoping with the alternative solution I will not need to introduce new front-end JS code (E.g. getCdvURL()). I am hoping to reuse the toInternalURL() method instead.
My vision of the alternative solution's use cases is:

If AndroidInsecureFileModeEnabled = true, toInternalURL() will continue to return the file:// URL as it does today.
If AndroidInsecureFileModeEnabled is not defined (false), toInternalURL() will return the scheme + hostname combination URL. This URL is created from the native side and what would be in the FileEntity object.

Because toURL already calls toInternalURL, this alternative change would mean that app developers do not need to update or change their front-end code. Simply updating the plugin would be all that is needed.
As a side note, the alternative solution would still use all of the native changes I made in this PR.

Thanks for your work! I'm waiting for this to update my app!

I updated the PR description to reflect the latest changes. Read the sections Usage: and What happens if toInternalURL is called directly? to understand about the use case and changes.

We could add the Usage part to the README of this plugin.

@erisu Great that this is merged in now. Thanks for all your hard work!
Any news on when there might be a release? Or is the only option to install it via the github url?

> Configure project :app                                                                                FCMPlugin: Support for Gradle v4 or lower is deprecated. Please upgrade to a newer version.                                                                          > Task :app:compileDebugJavaWithJavac FAILED                                                                                D:\mobile\trunk\ravens - Copy\platforms\android\app\src\main\java\com\silkimen\cordovahttp\CordovaHttpDownload.java:12: error: package org.apache.cordova.file does not exist                                                                                import org.apache.cordova.file.FileUtils;                                                                                ^                                                                                platforms\android\app\src\main\java\com\silkimen\cordovahttp\CordovaHttpDownload.java:33: error: cannot find symbol                          JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);                                                                                ^                                                                                symbol:   variable FileUtils                                                                                location: class CordovaHttpDownload                                                                                Note: Some input files use or override a deprecated API.                                                                                Note: Recompile with -Xlint:deprecation for details.                                                                                Note: Some input files use unchecked or unsafe operations.                                                                                Note: Recompile with -Xlint:unchecked for details.                                                                                2 errors                                                                                FAILURE: Build failed with an exception.                                                                                * What went wrong:                                                                                Execution failed for task ':app:compileDebugJavaWithJavac'.                                                                                > Compilation failed; see the compiler error output for details.                                                                                * Try:                                                                                Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.                                                                                * Get more help at https://help.gradle.org                                                                                Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.                                                                          Use '--warning-mode all' to show the individual deprecation warnings.                                                                                See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
Its working fine when i'm installing latest plugin for the the first time, when i uninstall and try to reinstall its throwing me error in 'cordova-plugin-advanced-http' code

Hi there, this one is creating the URL that my Android app is not able to recognize. The URL constantly returns "not found" on the device, although it exists when I check file system. Can anyone help on this?

So while this URL was resolved correctly 6.0.2
content://com.android.providers.downloads.documents/document/raw%3A%2Fstorage%2Femulated%2F0%2FDownload%2F00052123047880195188.pdf
on 7.0.0 I get error 1 (not found)


List of what to do does not appear before completing the test succesfully.

Challenge Local Scope and Functions has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

function myLocalScope() {
  'use strict';
  var myVar = "Something";

  console.log(myVar);
}
myLocalScope();

// Run and check the console
// myVar is not defined outside of myLocalScope
//console.log(myVar);

// Now remove the console log line to pass the test

refresh the page, worked for me

Try clearing your cookies and then reload the page. It works perfectly for me.

@ajain17 I did that. It didn't work for me. As soon as I complete it, List appears itself.

@ppatel1604  I cannot replicate your error in firefox/chrome/safari on the live site. Can anyone else confirm this?

Yes, sometimes these behaviors can be seen. Browsers can stop rendering the page correctly at times when exceptions are thrown.
It's best to try reset/refresh at those times.


Add custom point

This change is

Reviewed 14 of 14 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Reorder logging levels

Fixes #96

I have added PR #105 which have similar changes but also having corresponding changes in readme


Be able to specify the power management mode at init time.

This adds the ability to specify the power management mode in control.init() call.
Also, it actually fixes the pm mode setup, where an incorrect command was sent to ioctl (0x86 as opposed to the correct 86), see https://github.com/georgerobotics/cyw43-driver/blob/195dfcc10bb6f379e3dea45147590db2203d3c7b/src/cyw43_ll.c#L247.
In my simple setup (listening to the tcp socket on the rpi pico w), just entering any power saving mode lowers the power consumption by a third when there is no traffic.

Thanks for the PR! Nice catch on the 0x86 thing.
I've done one minor change: add a separate method for configuring the power management mode. I don't think all settings should go in init, it'll scale badly in the future when we have more. Also it allows changing it at runtime.


error: PlatformException(Courier Android SDK Error, null: null, g2.c: null: null

Hello there, I have this issue only in Android release mode and execute this Courier.shared.signIn(accessToken: courierAuthKey, userId: userId) method  in my Flutter App

In Android debug mode and iOS (release & debug) work the push notifications.

@charlesverge @CesarArellano low level SDKs have been updated. Take a look at the latest version 2.1.0. This issue should be resolved.


[GetX Migration] Migrate all snackbars

No content

Issue created by BlueBubbles Bot in the BlueBubbles commnity on behalf of @zach in #community-contributions.

Get.rawSnackbar will behave like our current inplementation

I migrated to the new snackbar. New style too, which I like a LOT better. Changes are now in development branch


Split alertmanager & ruler configs

Currently there's one table, configs, keyed by (id, orgID), where id is a version number. The value is a JSON blob which has both the alertmanager config and the rules. Further, although there are separate endpoints, the implementations behind these endpoints are identical.
Instead, the config systems for alertmanager and ruler should be fully disjoint.
This means we should have:

one table with rules
one table with alertmanager configs
endpoints for alertmanager (that have nothing to do with ruler) for

getting a config
setting a config
getting all configs
getting all configs since a version

likewise endpoints for ruler configs

We should also separate the client libraries, embedding them in their respective call-sites (move ruler config client to ruler, alertmanager config client to alertmanager).
This will need to be multiple PRs in order to handle backwards compatibility between UI <-> configs <-> DB.
At a guess:

New endpoints

create new endpoints with desired behaviour
update clients in cortex to use & rely on new behaviour
still write to existing conflated DB structure
old endpoints still work as intended

Update Weave Cloud UI to use new endpoints
Remove old endpoints
New tables

create new tables
write to new tables
read from new tables and fall back to old

Migrate old data

wait until data only being written to new tables
migrate old data to new tables

Remove old tables

remove old tables
remove fallback code

LMK if that needs refining (can we do it in fewer steps? would even these steps have backwards compat problems?).
I'd kind of like to kill off the configs service completely by moving the endpoints to alertmanager and ruler respectively, and having both of those services connect directly to the database. The most convenient place to make that decision is in PR 1 above, since we'll have to update UI endpoints. It will also require more PRs for juggling flags to our deployed versions.
Other stuff that we might want to consider:

use gRPC rather than REST

not a massive advantage, as we would still have to re-parse configs at client side, because the configs will still be strings
since we'll want new endpoints, might as well have new endpoints with better protocol
probably don't want to use gRPC if we're moving config endpoints to ruler & alertmanager, because we'll need to talk to them from JS anyway

could theoretically split DBs, or even move to different DB backend (e.g. DynamoDB)

not under this GH issue

What is the expected gain from this change?

Not a great deal (which is why we've not done it yet).
Gains are:

conceptual simplicity
save a roundtrip when setting configurations (less room for error)
getting rid of an unnecessary service (configs)

Expanding on 2. Currently, all the configurations for an organization share a row. If you want to set the alertmanager config without affecting the recording/alerting rules config, you have to:

fetch all the configs for an organization
make your changes to the alertmanager config
submit both the new alertmanager config and the old rules config

All our clients now do this, so you could argue that it's a solved problem. I feel it's a wart, that it's hard for newcomers to the code-base to understand, and that it's likely to break with some future change (e.g. to the UI).
With this change, the way to change an alertmanager config will be:

submit the new alertmanager config

Which is simpler.

Writing the above, I recalled https://github.com/weaveworks/cortex/issues/330, which demonstrates a clear user-facing benefit: less likelihood of losing your edits to a concurrent editor.
Currently, #620 does not add CAS apis. Perhaps it should.


Falsy bouncer doesnt work well .

function bouncer(arr) {
  // Don't show a false ID to this bouncer.
  arr = arr.filter(isFalsy);
  return arr;
}
function isFalsy(value)
{
  if(value===false || value===NaN || value===undefined || value===""|| value===0||value===null)
    return false;
  return true;

}

bouncer([false, null, 0, NaN, undefined, ""]);

It works when it array doesnt contain NULL.
What should i do?

Please reach out to our Help Chat room for any coding help. Happy coding!

Hi @JBayaraa22
I have the same problem with NULL. Did you find solution?

Same issue here too!


spread operator throws off js syntax recognition

Prerequisites

[x] Can you reproduce the problem with Debug -> Reload Without Extensions?
[x] Did you perform a cursory search to see if your bug or enhancement is already reported?
[x] Did you read the Troubleshooting guide?

Description
Depending on how / where it's used, the spread operator in js files seems to break Brackets' ability to correctly interpret syntax.
Steps to Reproduce

create a new js file
add code similar to;

let x = { y: 1 };
let z = {
  ...x,
};
console.log(`${y.z}`);
// comment

If you paste that in notice the syntax highlighting in the lines after the spread operator. If you type it in, the console.log line indents after the line break as if something above it is malformed.
With some experimenting I found that if the entire z declaration is on a single line, let z = { ...x }; then things seem to be okay. You can also get it to be kind of okay on a multiline declaration if a property follows the spread operator's inclusion; i.e.
let z = {
  ...x,
  a: 'A',
 };

By "kind of" I mean that the highlighting of the console.log line seems okay, but the highlighting of the a property is still a little off.
ESLint isn't having a problem with the code that Brackets doesn't recognize.
Expected behavior: [What you expected to happen]
Brackets to correctly highlight / recognize code following valid use of a spread operator.
Actual behavior: [What actually happened]
See description above in how to reproduce, but a simple recap, depending on how the spread operator is used Brackets seems to not recognize the syntax.
Versions
Behaves the same in both Brackets 14.1 and 14.2.
MacOS 10.15.7

A little more experimenting and I found that the trailing comma is key to the problem. However, trailing commas are used elsewhere without issue, so it appears specifically to be the trailing comma paired with the spread operator.


Search of substrings with underscore or percent characters is not possible

The characters _ and % can not be used on the right side string in these lookup operators: contains, startswith, endswith, icontains, istartswith, iendswith that are compiled by LIKE operator.
This is because Salesforce SOQL uses a special simplified style of escaping after LIKE operator. The consequence is that the right side of LIKE operator, can not be expressed no way by a parameter in a parametrized SQL command. Django uses a normal  escaping with more characters then in SF. It is safe also with Salesforce, but the match can not be found if the right side contains _ or %.
A fix would require to compile the parameter directly to the SQL body. That is not a pythonic style and it would require many code and tests. It has been known since the first versions of django-salesforce. I prefer "wantfix". An appropriate solution can be a new Like expression that will be compiled into the body of SOQL, that can compensate that a similar regex operator that is also unimplemented.
Definitely, a "home made" code that would merge user provided data to the body of SOQL should be avoided for security reasons. (some support by the framework would be necessary)

It has been improved now. Every '_' or '%' is a wildcard now. It is still not possible to search these characters exactly, but it usually works well or even better if a % is replaced by _ in the pattern.


When the timer hits 0 each player is automatically redirected to the scoreboard view. If the question was not answered, then a random option is selected and the time required is set to MAX, which allows the backend to assign 0 points.

commit: 2ef404b


libreoffice-fresh fails to build

Steps To Reproduce
Steps to reproduce the behavior:

Use nixos-unstable
add libreoffice-fresh to system packages
nixos-rebuild switch (I used a flake here with "latest" nixos-unstable in the inputs)
Keep an eye on the logs, libreoffice-fresh will fail to build

Build log
error: builder for '/nix/store/xym732fvirz1xd0xwi2i8f874sssf0kn-libreoffice-<IP_ADDRESS>.drv' failed with exit code 1;
       last 20 log lines:
       > checking whether the Boost::Filesystem library is available... yes
       > checking for exit in -lboost_filesystem... yes
       > checking whether the Boost::IOStreams library is available... yes
       > checking for exit in -lboost_iostreams... yes
       > checking whether the Boost::Locale library is available... yes
       > checking for exit in -lboost_locale... yes
       > checking for boost/shared_ptr.hpp... yes
       > checking for boost/spirit/include/classic_core.hpp... yes
       > checking which mdds to use... external
       > checking for mdds-2.0 >= 2.0.0... no
       > configure: error: Package requirements (mdds-2.0 >= 2.0.0) were not met:
       >
       > No package 'mdds-2.0' found
       >
       > Consider adjusting the PKG_CONFIG_PATH environment variable if you
       > installed software in a non-standard prefix.
       >
       > Alternatively, you may set the environment variables MDDS_CFLAGS
       > and MDDS_LIBS to avoid the need to call pkg-config.
       > See the pkg-config man page for more details.

Additional context
nix build nixpkgs#libreoffice-fresh does build the package perfectly fine. Yet it cannot build in a rebuild switch.
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.7, NixOS, 23.05 (Stoat), 23.05.20230123.1b1f506`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.1`
 - channels(notashelf): `"home-manager"`
 - nixpkgs: `/nix/store/ismzj4bksv54y4x2b9spfvk9mqhbcwf8-source`

Possibly a duplicate of #212937 ?

I am not sure. The issue you have linked seems to have been merged, yet the build failure remains on my system.

The patch is in master but not yet in nixos-unstable

Ah, so it needs to be backported.

No backport needed, it just takes a while until the channel advances. You can see the current channel status here: https://status.nixos.org
And the status of the fix here: https://nixpk.gs/pr-tracker.html?pr=212583
The next time the nixos-unstable channel is updated, the fix will be part of it.

Good to know, thanks!


posix: the great deprecation \o/

Zephyr's POSIX API is moving toward using the standard nomenclature from IEEE 1003.1-2017 for as much as possible. In particular, we want to have consistent naming between Zephyr's POSIX API Kconfig options and the naming for POSIX Options and Option Groups.
The Kconfig option CONFIG_PTHREAD_IPC has been used for a very long time for a variety of different purposes. However, the standard Option Group for POSIX Threads is POSIX_THREADS_BASE, which would translate to the Kconfig option CONFIG_POSIX_THREADS_BASE.
The POSIX_THREADS_BASE Option Group already includes mutexes, condition variables, and thread-specific storage (keys). So with this change, we also deprecate the redundant Kconfig variables that do not have a corresponding match in the standard.

CONFIG_PTHREAD
CONFIG_PTHREAD_COND
CONFIG_PTHREAD_MUTEX
CONFIG_PTHREAD_KEY

Additionally, create Kconfig variables for those configurables which we are lacking:

CONFIG_POSIX_SEMAPHORES
CONFIG_POSIX_THREAD_PRIORITY_SCHEDULING
CONFIG_POSIX_THREADS_EXT
CONFIG_POSIX_THREAD_ATTR_STACKSIZE
CONFIG_POSIX_THREAD_ATTR_STACKADDR

Some Kconfig variables were renamed to more properly match the spec:

CONFIG_PTHREAD_KEY_MAX_COUNT -> CONFIG_POSIX_THREAD_KEYS_MAX
CONFIG_PTHREAD_MAX_COUNT -> CONFIG_POSIX_THREAD_THREADS_MAX
CONFIG_PTHREAD_BARRIER -> CONFIG_POSIX_BARRIERS
CONFIG_POSIX_FS -> CONFIG_POSIX_FILESYSTEM
CONFIG_POSIX_CLOCK -> CONFIG_POSIX_CLOCK_SELECTION
CONFIG_TIMER -> CONFIG_POSIX_TIMERS
CONFIG_PTHREAD_SPINLOCKS -> CONFIG_POSIX_SPIN_LOCKS
CONFIG_POSIX_MQUEUE -> CONFIG_POSIX_MESSAGE_PASSING

The following individual options were grouped into CONFIG_POSIX_SINGLE_PROCESS.

CONFIG_POSIX_SYSCONF
CONFIG_POSIX_ENV
CONFIG_POSIX_UNAME
CONFIG_POSIX_CONFSTR

Note: POSIX also requires the Option _POSIX_THREADS as part of the mandatory System Interfaces, so when
CONFIG_POSIX_THREADS_BASE=y, the implication is that _POSIX_THREADS is defined to be 200809L, or whatever the implementation conformance level demands.
For details, please see

Subprofiling Considerations
man 7 posixoptions

Doc Preview

Closed in favour of 73047


LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210716213943715 to main

LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20210716213943715 to main with localized lcls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
26264

Relevant Lines:
55759

💛  - Coveralls


[Feature request] Mycontroller with Firebase and push notification

Initialy requested by   @duocyber
When data is pushed to firebase he will automatically sync data between all devices.
Devices can subscribe to a channel like "sensors/doors_1/stats", and any change done to that stats variable, could fire a notification from MyController.

we are not going to implement this feature in 1.x


fivetran formula field is returning float point error using LN() function

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the issue
Hello,
I am using fivetran quickstart transformations in order to bring salesforce formula fields to bigquery. But one the views that it got created for a specific salesforce object is not working. I found the root cause and its because of one field formula translation. So we have a field called voc_expected_c and the original formula inside salesforce is the following:
(	PanelCount__c * 10.9 * (1 - 0.0026 * ((AmbientTemperatureInF__c -32) * 5/9 + MPIrradiance__c *(0.95*0.8/15) -25) ) + 16 *  	PanelCount__c * 0.0000861733*(273.15 + (AmbientTemperatureInF__c -32) * 5/9 + MPIrradiance__c *(0.95*0.8/15)) * 	LN( MPIrradiance__c /1000))* (1 -  Shaded__c) +        (PanelCount__c * 10.9 *(1-0.0026 * ((AmbientTemperatureInF__c -32) *5/9  +  MPIrradiance__c/ 10 *(0.95*0.8/15)-25) ) + 16 *   	PanelCount__c  * 0.0000861733*(273.15 + (AmbientTemperatureInF__c -32) *5/9  +  MPIrradiance__c/ 10 *(0.95*0.8/15)) * 	LN(MPIrradiance__c/ 10000)) * Shaded__c

and the fivetran SQL translation is the following:
(COALESCE((COALESCE(((COALESCE((COALESCE((COALESCE(mt.panel_count_c,0)*COALESCE(10.9,0)),0)*COALESCE(((COALESCE(1,0)-COALESCE((COALESCE(0.0026,0)*COALESCE(((COALESCE((COALESCE(CASE WHEN COALESCE(9,0)=0 THEN NULL ELSE COALESCE((COALESCE(((COALESCE(mt.ambient_temperature_in_f_c,0)-COALESCE(32,0))),0)*COALESCE(5,0)),0)/9 END,0)+COALESCE((COALESCE(mt.mpirradiance_c,0)*COALESCE((CASE WHEN COALESCE(15,0)=0 THEN NULL ELSE COALESCE((COALESCE(0.95,0)*COALESCE(0.8,0)),0)/15 END),0)),0)),0)-COALESCE(25,0))),0)),0))),0)),0)+COALESCE((COALESCE((COALESCE((COALESCE((COALESCE(16,0)*COALESCE(mt.panel_count_c,0)),0)*COALESCE(0.0000861733,0)),0)*COALESCE(((COALESCE((COALESCE(273.15,0)+COALESCE(CASE WHEN COALESCE(9,0)=0 THEN NULL ELSE COALESCE((COALESCE(((COALESCE(mt.ambient_temperature_in_f_c,0)-COALESCE(32,0))),0)*COALESCE(5,0)),0)/9 END,0)),0)+COALESCE((COALESCE(mt.mpirradiance_c,0)*COALESCE((CASE WHEN COALESCE(15,0)=0 THEN NULL ELSE COALESCE((COALESCE(0.95,0)*COALESCE(0.8,0)),0)/15 END),0)),0))),0)),0)*COALESCE(LN(CASE WHEN COALESCE(1000,0)=0 THEN NULL ELSE COALESCE(mt.mpirradiance_c,0)/1000 END),0)),0))),0)*COALESCE(((COALESCE(1,0)-COALESCE((mt.shaded_c/100.0),0))),0)),0)+COALESCE((COALESCE(((COALESCE((COALESCE((COALESCE(mt.panel_count_c,0)*COALESCE(10.9,0)),0)*COALESCE(((COALESCE(1,0)-COALESCE((COALESCE(0.0026,0)*COALESCE(((COALESCE((COALESCE(CASE WHEN COALESCE(9,0)=0 THEN NULL ELSE COALESCE((COALESCE(((COALESCE(mt.ambient_temperature_in_f_c,0)-COALESCE(32,0))),0)*COALESCE(5,0)),0)/9 END,0)+COALESCE((COALESCE(CASE WHEN COALESCE(10,0)=0 THEN NULL ELSE COALESCE(mt.mpirradiance_c,0)/10 END,0)*COALESCE((CASE WHEN COALESCE(15,0)=0 THEN NULL ELSE COALESCE((COALESCE(0.95,0)*COALESCE(0.8,0)),0)/15 END),0)),0)),0)-COALESCE(25,0))),0)),0))),0)),0)+COALESCE((COALESCE((COALESCE((COALESCE((COALESCE(16,0)*COALESCE(mt.panel_count_c,0)),0)*COALESCE(0.0000861733,0)),0)*COALESCE(((COALESCE((COALESCE(273.15,0)+COALESCE(CASE WHEN COALESCE(9,0)=0 THEN NULL ELSE COALESCE((COALESCE(((COALESCE(mt.ambient_temperature_in_f_c,0)-COALESCE(32,0))),0)*COALESCE(5,0)),0)/9 END,0)),0)+COALESCE((COALESCE(CASE WHEN COALESCE(10,0)=0 THEN NULL ELSE COALESCE(mt.mpirradiance_c,0)/10 END,0)*COALESCE((CASE WHEN COALESCE(15,0)=0 THEN NULL ELSE COALESCE((COALESCE(0.95,0)*COALESCE(0.8,0)),0)/15 END),0)),0))),0)),0)*COALESCE(LN(CASE WHEN COALESCE(10000,0)=0 THEN NULL ELSE COALESCE(mt.mpirradiance_c,0)/10000 END),0)),0))),0)*COALESCE((mt.shaded_c/100.0),0)),0))

The heart of the problem is the natural logarithm function LN()
LN(
  CASE
    WHEN COALESCE(10000,0)=0 THEN NULL
    ELSE COALESCE(mt.mpirradiance_c,0)/10000
  END
)

Since first when statement will always be false we went to the second one COALESCE(mt.mpirradiance_c,0)/10000  and here for mt.mpirradiance_c column we might have null values and in that case we will have LN(0) issues.
In theory  I think this part of the formula need to be something like the following:
LN(
  CASE
    WHEN COALESCE(mt.mpirradiance_c,0)=0 THEN NULL
    ELSE COALESCE(mt.mpirradiance_c,0)/10000
  END
)

This will solve the issue. But since we are not using dbt custom project only enable it from quickstart models there is nothing that we can do right now...
Can someone help me with this?
Relevant error log or model output
Floating point error in function: LN(0)

Expected behavior
Bigquery view working without any issues.
dbt Project configurations

Package versions

What database are you using dbt with?
bigquery
dbt Version
1.7.14
Additional Context
No response
Are you willing to open a PR to help address this issue?

[ ] Yes.
[ ] Yes, but I will need assistance and will schedule time during our office hours for guidance
[X] No.

Hi @lucasespinos thanks for opening this issue and sorry to hear you are running into this formula translation error.
Unfortunately, this dbt package only materializes the sql code provided in the fivetran_formula_model table. Therefore, this package has no control over the translations themselves. Fortunately, the connector team does! While we won't be able to address this issue via the dbt package, this can be address directly in the connector.
I recommend opening a Fivetran Support Ticket and highlighting the same information you have here. The Fivetran Support team will then be able to share this with the connector team and look to updating the logic used to translate the Salesforce Formula Field.
Let me know if you have any questions. Thanks!

Since this is not an issue we will be able to address directly within the dbt package, I will mark this as wontfix. @lucasespinos let me know if you have any concerns. Otherwise, I will plan to close this issue in the near future.


NoMethodError: undefined method `*' for nil:NilClass

I'm using Rails 4, [Fabricate][1] and [Faker][2] Gems. And I'm trying to seed my database with (100 or so) randomly created objects (Order that contains up to 3 Ice Creams).
models/ice_cream.rb
  class IceCream < ActiveRecord::Base
    ...
    has_and_belongs_to_many :flavors
    has_many :added_extras
    has_many :extras, :through => :added_extras
    belongs_to :order
    ...
  end

models/extra.rb
  class Extra < ActiveRecord::Base
    ...
    has_many :added_extras
    has_many :extras, :through => :added_extras
    ...
  end

order_fabricator.rb
Fabricator(:order) do
    user { User.offset(rand(User.count)).first }
    shift { Shift.offset(rand(Shift.count)).first }
    created_at { Faker::Date.backward(365) }
    ice_creams(rand: 3) { |attrs| Fabricate( :ice_cream, created_at: attrs[:created_at] ) }
    before_create do total ||= self.ice_creams.sum(:total_price) end
    discount { [0, 10, 15, 25].sample }
    total_after_discount { |order| order[:total] -  ( (order[:total] * order[:discount]) / 100 ) }
    paid { [50, 100, 200].sample }
    remaining { |order| order[:paid] -  order[:total_after_discount] }
  end

flavor_fabricator.rb
  Fabricator(:ice_cream) do
    size { Size.offset(rand(Size.count)).first }
    basis { Basis.offset(rand(Basis.count)).first }
    sauce { Sauce.offset(rand(Sauce.count)).first }
    topping { Topping.offset(rand(Topping.count)).first }
    flavors { Flavor.all.sample(rand(1..2)) }
    extras { Extra.all.sample(rand(0..3)) }
    ice_cream_price { [15, 17, 18, 19, 20, 22].sample }
    extras_price { [5, 10, 15, 20 ].sample }
    total_price { |attrs| attrs[:ice_cream_price] + attrs[:extras_price] }
    created_at { Faker::Date.backward(365) }
  end

I'm trying to get the order's :total to be the sum of all randomly created ice_creams_total, but it returns with the error..
NoMethodError: undefined method `*' for nil:NilClass

Continued from SO question: http://stackoverflow.com/questions/39824629

So I was saying your Order ActiveRecord model should have that in it and you should remove it from the Fabricator. Your models should "know" how to calculate values like that from their related records.
class Order < ActiveRecord::Base
  ...

  before_create do
    self.total ||= ice_creams.sum(:total_price)
  end
end

I wonder if there is there is another way only through Fabrication?

Well sure. Just make sure total is listed after ice_creams and their values will be available.
Fabricator(:order) do
  user { User.offset(rand(User.count)).first }
  shift { Shift.offset(rand(Shift.count)).first }
  created_at { Faker::Date.backward(365) }
  ice_creams(rand: 3) { |attrs| Fabricate( :ice_cream, created_at: attrs[:created_at] ) }

  total { |attrs| attrs[:ice_creams].sum(:total_price) }

  discount { [0, 10, 15, 25].sample }
  total_after_discount { |order| order[:total] -  ( (order[:total] * order[:discount]) / 100 ) }
  paid { [50, 100, 200].sample }
  remaining { |order| order[:paid] -  order[:total_after_discount] }
end

My point is you could simplify what you're doing with some OOP. If you want to specify everything through fabrication you certainly can but it feels like you're writing logic that should just be part of the models themselves.

It returns error

NoMethodError: undefined method `+' for #IceCream:0x000000064b7188

BTW: Thanks for the advice, I think I should've implement this earlier, But right now I'm relying on nested forms to create ice creams within the order form so I'm using js to calculate the total_prices of each ice_cream in real time then pass it to the order total (hidden field) .  Maybe my approach is wrong. I wish I can find someone to consult him about many things as I said before I'm a newbie and it's my first app ever.

Oh, sorry about that. You need to use symbol to proc since the ice creams are just a regular array in that instance. Notice the &.
  total { |attrs| attrs[:ice_creams].sum(&:total_price) }

I'm happy to help. If you're looking for some support while you're learning you might want to sign up for http://www.railsmentors.org. They'll pair you up with an experienced dev to help you out.

Thanks man, It's solved. You're the best


receiving this error while registering

I've disabled the email coz of security purpose...You'll have to change it in the config.py file
And also u'll have to allow third party access to the email account in the email settings

I've disabled the email coz of security purpose...You'll have to change it in the config.py file
And also u'll have to allow third party access to the email account in the email settings


Tooling Improvements - LIVE Reload, production build

Hello @KinjanK
The codebase should be updated to provide minimal tooling widely used by most of the developers:

Development target with LIVE Reload
production build with compressed output in dist directory

Please take into account this request.
Ty!

Closing. Ty @KinjanK


HIVE-27106. Improve TezSessionPoolManager#getSession Log.

JIRA: HIVE-27106. Improve TezSessionPoolManager#getSession Log.
When reading the code, I found that the log placeholder of Tez Session Pool Manager#getSession is missing one, this jira will fix this problem.

@abstractdog Can you help review this pr? Thank you very much!

@ayushtkn Can you help review this pr? Thank you very much!

@abstractdog Thank you very much for your help in reviewing the code!


How to set an app-level proxy

-1
I'm using Firebase with my Flutter app for users authentication.
but I want to tunnel all requests that are made by my app (or just Firebase requests) through a custom proxy (host:port).
and here's what my app uses:
Platform: Android
PL: Dart v2.2.0
Framework: Flutter v1.2.1
Packages: -firebase_auth -firebase_core
Plugins: com.google.gms.google-services
I've tried System.setProperty but it didn't work.

@firasmdar did you find a solution?

@BondarenkoStas
nothing worked so far, and it's because Firebase requests are -somehow- sent through Google Play Services NOT my flutter app,,,
tunneling my flutter app through a VPN (Psiphon) didn't work,, BUT somehow tunneling Google Play Services through Psiphon VPN actually Worked, and Firebase requests got sent through the VPN, and successfully bypassed the corporate's proxy where i work.
any thoughts.. ?

I don't think this is really a bug in Flutter, so I'm going to close this issue.
Sorry.
I recommend asking on Stack Overflow or in the r/FlutterDev community discord or some such.


ROX-17225: install service monitor in monitoring

Description
ServiceMonitor only works is namespace has certain label.
As Helm does not control the namespace it installs we cannot simply add
a label to that namespace. This PR installs ServiceMonitor in openshift-monitoring
namespace that is guaranted to exsit and have proper labels.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.
In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

Current dependencies on/for this PR:

master

PR #6180

PR #6762

PR #6847   👈

PR #6763

This comment was auto-generated by Graphite.

@janisz started a stack merge that includes this pull request via Graphite.

Graphite rebased this pull request as part of a merge.


Codes from Fujitsu AR-RCE1E remote

Codes from Fujitsu AR-RCE1E remote, euro celsius version.
Full temperature range 16 to 30 only applicable to "heat" mode,
therefore in "cool", "auto" and "dry" 16, 17, 18 all simply send 18
Codes were captured with swing function off (personal preference), as swing command is not stand alone such as "set" and "powerfull" buttons (not implemented either), but rather is sent as: mode+temp+fan+swing
Note: For new version rename "fan" mode to "fan_only"
1285.txt

Amazing! Thank you.


FD-26657 remove feature flag

Removes the feature flag that controls a "simpler processing" feature that we tried out but have disabled quite a while ago. The feature flag has been serving false for quite some time, now:

Already removed.


BART-Large

Hi,
I notice that in one earlier paper of yours, the decoder is BART-large, which leads to much better performance.
Have you tried using BART-large in this paper?  If not, why?
Thanks.

I did not use BART-large for this work because of the limited GPU memory size.


HOTT-1544: Add service to csv endpoint filenames

Jira link
https://transformuk.atlassian.net/browse/HOTT-1544
What?
I have added/removed/altered:

[x] Added specs for csv endpoint filenames
[x] Added service to csv endpoint filenames and updated specs

Why?
I am doing this because:

This is required for the user to distinguish between files from the two backends

I had exactly the same thoughts, yeah.

I'll have a look in a separate PR, etc


Replacing Thread with Task in FileSaver

This PR replaces the use of Thread with Task in FileSaver. I had had a large number of trackers (>50) in one of my scenes and the I/O was a performance bottleneck, which is a big problem for me as it impacts my time calculations. Using tasks allows to use more threads and also is a cleaner interface (and also recommended).

Hi, thanks for this! I'd need to do some testing on this. Have you tried running the existing Unit Tests with the Unity Test Runner to see if they pass? Can you think of any other tests to ensure this functionality is working as expected?

The test runner passes all the tests. I'll also go over the tests and see what I can add to it.


Use Deliver to ensure a leader has been elected after removing the system channel

Type of change

Test update

Description
Avoid flakiness in this channel participation integration test by polling on deliver for each active orderer for the application channel after removing the system channel to ensure a leader has been elected before proceeding to submit transactions.
Related issues
FAB-18305

Moved this fix to a new JIRA, as it fixes a different issue than the config-tracker one reported for FAB-18305. New PR: https://github.com/hyperledger/fabric/pull/2182 I'll open a new PR when I have a fix for the config-tracker side of things.


Want to add DarkTheme feature on all Pages

@SamarthTMSL  pls assign this ticket so that i wont loose the count on it
Thank you:)

@yasaswini999 Assigned

@SamarthTMSL  Please assign it to me I shall make it compatible in dark mode as well

@KaxitPandya Done


BEM Mixins for element and modifier are inverted

Hi guys,
It seems that the Sass BEM mixin is using the wrong BEM convention for the element and modifier mixin:
@mixin element($element) {
  &--#{$element} {
    @content
  }
}

@mixin modifier($modifier) {
  &__#{$modifier} {
    @content
  }
}

According to BEM it should rather be:
@mixin element($element) {
  &__#{$element} {
    @content
  }
}

@mixin modifier($modifier) {
  &--#{$modifier} {
    @content
  }
}

@pixelastic /o\

Woops. This would be a breaking change to modify them. Or we could duplicate :D

Oops...

I don't think we can duplicate (this will be sooo strange). Let's keep that for the next breaking release :)

Just to be clear, this will be fixed in a 2.0.0 release "at some point"

Actually if you read the broader litterature, the convention is Block Element Modifier but then you can more or less choose whatever you want since it's only syntax not semantics...

Yes, it's only syntax, and nothing is really broken with that syntax. I'm wondering if we really need to change it with 2.0. This will be a CSS breaking change for sure, but do we really need it?

indeed the link from @bobylito clearly state we can go wild with naming

:b: __ :ear: -- :monkey:

Wiiiild!


spglib: 1.16.5 -> 2.0.1

Description of changes
https://spglib.github.io/spglib/releases.html
Disable tests. The tests are now handled as seperate cmake subproject.

Things done

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)
[ ] 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

[x] 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

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build cp2k


On port and network restriction of ILB ASE

Suggestions for clarification of document content
In https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/app-service/environment/networking.md#ports-and-network-restrictions , the document describes the ports that applications need to be allowed to communicate with, but I think it would be clearer if the document also explained the origin of the traffic, since it is also necessary to know "where the traffic is coming from" when setting up the allowable traffic rules in NSGs. I think it would be a clearer document if the origin of the traffic is also explained.
In particular, it would be less confusing to clearly state that traffic originating from Azure Load Balancer shall be allowed when using ILB ASE.
I would appreciate your consideration.

Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[x] The relevant Azure service or technology.
[x] A link to the published documentation article that you have feedback about.
[x] Clear, specific feedback that the author can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[x] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[x] Include the service or technology area.

We'll route the issue to the appropriate content team for review and discussion.
Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

Each article in the Azure technical documentation contains a product feedback button - it's best to submit product feedback directly from a relevant article. Otherwise, you can submit product feedback for most Azure products in the following product feedback forum: https://feedback.azure.com/d365community/forum/79b1327d-d925-ec11-b6e6-000d3a4f06a4.

title: App Service Environment networking
description: App Service Environment networking details
author: madsd
ms.topic: overview
ms.date: 09/27/2022
ms.author: madsd

@zakimal
I've delegated this to @madsd, a content author, to review and share their valuable insights.

@zakimal - not sure I understand your ask. The origin is your app - whatever you deploy to the app instance, and whatever your code is doing we have no way of knowing or describing. Can you try to explain in a different way what you are looking for? Thanks.

Source has been added to the port tables. Thank you for your input. #please-close


Improvements for HoloViews

[x] Adds Viewable.select
[x] Add Viewable._preprocess_hooks
[x] Adds support for HoloViews links

Codecov Report

Merging #91 into master will increase coverage by 0.3%.
The diff coverage is 94.22%.

@@            Coverage Diff            @@
##           master      #91     +/-   ##
=========================================
+ Coverage   91.67%   91.98%   +0.3%
=========================================
  Files          23       25      +2
  Lines        3737     3780     +43
=========================================
+ Hits         3426     3477     +51
+ Misses        311      303      -8

Impacted Files
Coverage Δ

setup.py
0% <ø> (ø)
:arrow_up:

panel/param.py
91.52% <0%> (-0.63%)
:arrow_down:

panel/__init__.py
60% <100%> (+1.37%)
:arrow_up:

panel/viewable.py
70.89% <100%> (+1.62%)
:arrow_up:

panel/layout.py
97.26% <100%> (+0.07%)
:arrow_up:

panel/pane.py
82.01% <100%> (-0.32%)
:arrow_down:

panel/tests/test_layout.py
100% <100%> (ø)
:arrow_up:

panel/tests/test_panes.py
97.05% <100%> (-1.61%)
:arrow_down:

panel/holoviews.py
87.76% <87.76%> (ø)

panel/tests/test_holoviews.py
99% <99%> (ø)

... and 5 more

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 49b11d5...2f03e33. Read the comment docs.


Make toTestValidator and toTestMintingPolicy more generic

Currently toTestValidator and toTestMintingPolicy fix ScriptContext to one imported from Plutus.V1.Ledger.Contexts and it is impossible to use custom contexts (which are useful when optimizing script size) without rewriting these functions. My proposal is to replace fixed ScriptContext with FromData ctx constraint, exactly like it is done with datums and redeemers.

This would also be relevant to use with other custom ScriptContexts (spooky)

For @re-xyr - this is a widening of a constraint, so I believe the PVP ranks this as a minor bump. The change should be fairly straightforward: let me know if not.


Test drive CircleCI

Travis CI has had a great run but seems to be lagging fairly regularly recently.
Maybe it's time to switch CI providers? (or revisit our build/test scripts)

or revisit our build/test scripts

Not really the problem here I think. The problem is that the backlog peaks at a ratio > 10, wich pretty much takes half a day to clear up.
I even wrote a script to check if it's worth waiting for a PR to be tested. 😂
$ ./travis-backlog
✅  128.0 active / 21.0 scheduled (0.1640625)

I have always wondered why the maximum is set at 128 builds for macOS, but the maximum number of linux builds is huge.

I even wrote a script to check if it's worth waiting for a PR to be tested.

@reitermarkus would you mind sharing your script?

#!/usr/bin/env ruby

require 'json'
require 'open-uri'
require 'uri'

OSX_BUILDS = 'https://www.traviscistatus.com/metrics-display/tkg1p3c6qg8x/day.json'.freeze
OSX_BACKLOG= 'https://www.traviscistatus.com/metrics-display/7cl94r33fvsg/day.json'.freeze

builds = JSON.parse(open(URI(OSX_BUILDS)).read)
backlog = JSON.parse(open(URI(OSX_BACKLOG)).read)

h = {}

builds['metrics'][0]['data'].each do |d|
  h[d["timestamp"]] = {
    builds: d["value"].to_f
  }
end

backlog['metrics'][0]['data'].each do |d|
  h[d["timestamp"]] ||= {}
  h[d["timestamp"]][:backlog] = d["value"].to_f
end

h = h.select { |k, v|
  v.key?(:builds) && v.key?(:backlog)
}

latest = h[h.keys.sort.last]

ratio = latest[:backlog]/latest[:builds]

symbol = case ratio
when 0...1.0
  "✅"
when 1...2
  "⚠"
else
  "🛑"
end

puts "#{symbol}  #{latest[:builds]} active / #{latest[:backlog]} scheduled (#{ratio})"

I'm going to try to reach out to CircleCI this weekend.
https://circleci.com/pricing/#faq-section-os-x

@adidalal it seems Linuxbrew uses CircleCI - perhaps the maintainers of Linuxbrew can offer some advice.

@vitorgalvao Can you authorize CircleCI for caskroom "Organization Access"?

@adidalal Done. I’m guessing you already contacted them, then.

Got a response - they're happy to set us up with a trial run of containers to check out performance.
Will try to put it on my plate for next weekend or the one after.
(Though, if someone else is interested and available, happy to pass along contact info)

FYI, not sure since when, but seems like Travis now has 205 macOS machines.

FYI, not sure since when, but seems like Travis now has 205 macOS machines.

Yes, happened in the last 48 hours.

FYI, not sure since when, but seems like Travis now has 205 macOS machines.

Not sure they added more since your last comment, but they’re up to 224, now (found out initially due to your script).
And just now I was reading up to make a Twitter bot to post the ratio every hour! Saved some work.

Anyone opposed to closing this and removing CircleCI, and reopening/readding if we get into trouble again?

Yeah that's fine!

And just now I was reading up to make a Twitter bot to post the ratio every hour!

Would have loved to see that. 😂


ActivateAndServe point?

https://godoc.org/github.com/miekg/dns#Server.ActivateAndServe
reads

ActivateAndServe starts a nameserver with the PacketConn or Listener configured in *Server. Its main use is to start a server from systemd.

Fine. Do you have an example in which context systemd plays a role there or how to use this function in conjunction with systemd? I'm guessing you mean socket activation.
Do you just do the usualy socket and service combo and listen via net.Conn and pass it to the server? I don't get why systemd, what does systemd have to do in all this?

/close
/lock


NEON 48 - keyword text aggregation

Fixes: NEON-48
Three tests were added just like in the number aggregation. Two of which are in the ticket. The other one is specifying the clusters in the cluster clause.
Is there a reason this is called keyword or text aggregation? I don't see a use for the keyword part yet. If I missed some implementation, I'll go back and do that.

@jacklechnercaci In ES, "text" is used for sentences/paragraphs while "keyword" is used for strings that are single conceptual phrases but may contain spaces or other delimiters.  ES will automatically index "text" by splitting the string into individual words, but will index "keyword" by keeping the whole string intact.  For example, if you used "text" on a "company_name" field, it would split "Next Century" into two separate terms, "Next" and "Century", and searching for the term "Next Century" would return zero hits!
We followed this pattern in NUCLEUS since it made sense to us and other datastores have similar patterns (think VARCHAR vs TEXT in SQL).

OK, I know this PR builds off the previous PR, but I can't get the diff to just show the new changes, so I'll just wait until that PR is merged first.

@jacklechnercaci I'm getting a unit test error after a clean build (don't know why I haven't seen it before):
> Task :server:test

com.ncc.neon.controllers.QueryControllerTests > executeQueryTest FAILED
    java.lang.AssertionError at QueryControllerTests.java:120
        Caused by: java.lang.AssertionError at QueryControllerTests.java:120

The stack trace says there's a null pointer exception at ClusterService.cluster(ClusterService.java:78).  I think it's because the DummyQueryAdapter's execute method returns silly data that invalidates the cluster method's otherwise perfectly acceptable assumptions.  Feel free to modify the DummyQueryAdapter's output if that's easier for you.
https://github.com/NextCenturyCorporation/nucleus-data-server/blob/master/common/src/main/java/com/ncc/neon/adapters/dummy/DummyQueryAdapter.java#L27-L38


[DOCS] Update Github OAuth guide to contain 'User-Agent' in fetch header

As per the GitHub documentation:
"Requests without a valid User-Agent header will be rejected. You should use your username or the name of your application for the User-Agent value"
I was following the account-linking example in the documentation and kept getting statuscode 403 without the User-Agent header.

Thanks!


Bump Truffle dependencies

@truffle/abi-utils from ^0.2.2 to ^0.3.0
@truffle/codec from ^0.14.0 to ^0.14.3
@truffle/contract-schema from ^3.3.1 to ^3.4.9

Rather than just bumping codec, you should remove it and import from abi-utils instead. :)  That's the point, after all! :)

Closing this in favor of #92. Thank you for getting this started @cds-amal!


Leading slash in URLs

Hello there!
Is it possible to remove leading slash in URLs when iconsPath parameter is set to empty string?
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">

That would be a change in RFG itself, not in the Gul plugin.
This makes sense, as an empty string would explicitly means "no path at all". But this change might have implication in other parts so I need to investigate this seriously.
I'm curious: why would you want to remove the slash?

It is all about relative path stuff. If my index.html located in http://localhost/foobar/
This link
<link rel="shortcut icon" href="/favicon.ico?ver=95763">

will lead to
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/favicon.ico?ver=95763

@HarryBurns Have you considered using the files_location property? e.g.
"files_location": {
    "type": "path",
    "path": "/foobar/"
}

See the API docs for more details.

@haydenbleasel No, it will not work this way. http://localhost/foobar/ is just a virtual folder on server of my webapp. I don't know were my webapp will be deployed, so I can't rely on it during build process.

Same situation for our team. We would like this as well. We don't know that when deployed, the path will always be /foobar or whatever. For now, we have it generating everything with iconsPath: 'assets/images' because that will get us the right values in index.html knowing that not being in the root is not ideal.

For now, it seems that using iconsPath: './' will produce links in index.html that work in this situation.


Fixes all errors that came with Elixir version changes

Works for me, I would be great to merge it in!

@whitfin There was a regression in :dets. See: https://elixirforum.com/t/erlang-dets-open-file-error-i-cant-understand-and-fix/14748/2

Well, that's a pain.
I'm not going to merge this though; raising the minimum to v1.7 is "too much". I'm not entirely sure how to work around this because I don't really know how to detect OTP versions effectively... kinda sucks.

This is probably reasonable to do now.


Update password hashing to use SHA-256 for enhanced security!

The change involves replacing the existing code hashlib.md5(string.encode()).hexdigest() with the more robust hashlib.sha256(string.encode()).hexdigest().
This adjustment enhances resistance against potential security threats and aligns with best practices for cryptographic hash functions.

Hi, I would like to work on this issue, could you assign it to me?

Hello @PAARTH2608
Unfortunately this issue require us to update the Giskard Hub that is closed source. Only updating the hash method for the Giskard Library client will produce authentication error (since another hash is expected).


Add FluxCD Azure DevOps article resource

Testing the Resources / Article feature again. (also #2096)
Thanks Mohammed Nour for contributing this article about the new features in Flux 2.4 🎉
(I asked if there was a branding image that goes with this blog, and it was suggested we just use the Flux logo as there isn't one.)

https://deploy-preview-2097--fluxcd.netlify.app/resources/
I think we should add a bit of description, since there is a place for it in the "article" format and the Flux logo doesn't fill the same 4x3 space as the others. Running this by the author to see what text we can put in there before we publish this.

The article is about migrating existing clusters from Azure PAT or SSH to OIDC. I think the title should say this.

In this article, I’ll guide you step-by-step through the process of setting up Flux source-controller and image-automation-controller to authenticate against Azure DevOps repositories using OIDC tokens

This sentence from the article I picked is probably too long for the description, and doesn't say exactly what you just said... but combining them, might be the right level of detail - how about this (let's see if it fits in the box):

Migrating existing cluster Git sources and image automations from Azure PAT or SSH to OIDC

Maybe "Migrating AKS clusters to Azure DevOps OIDC-based auth"

This LGTM

Maybe better if it wasn't center-aligned, I'll tweak it...

Did several iterations on the CSS and template for description in resources, I think this is better 👍

Preview ^


Disappearing cursor on multi-GPU setup

Sway Version:

sway version 1.6-5cdce42d (Jun 26 2021, branch 'master')

Debug Log:
https://0bin.net/paste/up-swxj-#PJPVTysHFaMxP3QLzyxcJ-EN4sFoSob1FtZtbqIm2FW

Configuration File:
https://0bin.net/paste/eUn83bT7#nkNcFBESXx5ruLKva2F+zyzxJuhy5rw6Bu22csinUPT

Description:
The error is probably due to disabling one monitor (using wdisplays). This causes problems with the cursor not displaying in Sway. Various actions turn it off and on. For example hover the mouse over wofi makes the cursor disappear and running wdisplays makes it come back.

The mouse is on button (it changed a color, but invisible)

Here the mouse is near the menu, but also invisible)

Does this wlroots patch help by any chance? https://l.sr.ht/-ZAc.txt

For me - works great! But it's nice to check @nwg-piotr also

check @nwg-piotr also

I'll check as soon as I'm back  home.

Works for me, too. Great news!

Thanks for testing!

Just for curiosity: average CPU load measured on idle in the same conditions. Ryzen 7 + hybrid AMD graphics.

version
CPU load
MEM usage

0.12.0
1.88%
490 MiB

0.13.0
3.50%
435 MiB

0.14.0
3.15%
433 MiB

0.14.1
2.82%
435 MiB


Added question for email + pagerduty key

? What's your email address<EMAIL_ADDRESS>? And your pager duty key: secret

Coverage decreased (-8.7%) to 91.304% when pulling 345604f6d1c15a7fab96c188b691474257eaaa4b on questions into d06d6633cf080eb14b9a898e55e55ba9b3f36150 on master.


Add compatibility for non-Windows OS (to use content package)

Improved via 31a1dc5d7029278279b8db8f1c752f899d0f8891:

Made native API calls optional (sorting windows only works on Windows OS at the moment)
Made native libraries optional (ffi-napi, ref-napi, robotjs) --> This could result in silent install errors on Windows OS!

Looks like this will often prevent optional libraries from being installed altogether, even on compatible systems. Need to review

cc @jasonwebb

Should also switch from console error to warning

Should now be resolved via #82


Rewrite test GH workflow logic

          might be cleaner to just write this in actions/github-script in javascript: https://github.com/actions/github-script

Originally posted by @gartnera in https://github.com/zeta-chain/example-contracts/pull/207#discussion_r1825213840

Hello can you contract me?


server: only wrap validateFile error when non-nil

Technically a regression from https://github.com/moov-io/ach/pull/488 where the error was wrapped always. It should only be wrapped when err != nil.

Codecov Report

Merging #497 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master    #497   +/-   ##
======================================
  Coverage    85.6%   85.6%
======================================
  Files         111     111
  Lines        6563    6563
======================================
  Hits         5618    5618
  Misses        645     645
  Partials      300     300


openstack-ardana/crowbar: enable ci.suse.de deployments (SCRD-9264)

Enable cloud.suse.de as an alternative OpenStack platform for
virtual Cloud deployments. This change consists of the following
parts:

the os_cloud parameter, used in Jenkins jobs and ansible
playbooks, was previously used to indicate the OpenStack client
configuration used to connect to the ECP. One could give it different
values to target different OpenStack ECP projects (e.g the
engcloud-cloud-ci value was used to target the cloud project
used for custom deployments, and engcloud-cloud-ci-private to
target the cloud-ci project used exclusively by the CI).
This parameter is now only used to indicate which OpenStack cloud
platforms to use to host the virtual environment. It can only take
two values: engcloud and susecloud.
Switching between various OpenStack projects is now accomplished
with a different parameter, os_project_name, which can simply be
set to the project name value (e.g. cloud, support).

the cloud-ci OpenStack project is now reserved and used exclusively
and automatically in all Jenkins jobs that run with Lockable Resource
slots. This means that we no longer need to set os_project_name
explicitly to cloud-ci when deploying environments associated with the
Lockable Resource slots.

the Lockable Resource slot management is changed to better reflect
the new situation (2 Cloud products and 2 target Cloud platforms):

all Lockable Resource slots associated with virtual cloud
deployments are renamed to be of the form <os_cloud>-ci-slot<number>
(e.g. susecloud-ci-slot01, engcloud-ci-slot02), where the
os_cloud particle has the same function as the os_cloud
parameter used in the Jenkins jobs and ansible playbooks:
it uniquely identifies the target OpenStack Cloud platform.
the cloud-ardana-ci-slot label will continue to be used
to tag slots that can accommodate Ardana CI deployments
a new cloud-crowbar-ci-slot label is introduced that is
used to tag slots that can accommodate Crowbar CI deployments
a new engcloud-ci-slot label is introduced that is
used to tag slots that are used exclusively with the engineering
cloud platform
a new susecloud-ci-slot label is introduced that is
used to tag slots that are used exclusively with the SUSE
cloud platform
two new Lockable Resource slots have been added, one for
each OpenStack platform: engcloud-API and susecloud-API.
They will replace the previous cloud-ECP-API slot and will
be used to independently serialize the calls that the CI
Jenkins jobs make to the OpenStack API of the two cloud platforms.

one periodic cloud image update job per product type (crowbar/ardana)
and per target cloud platform (engcloud/susecloud) is introduced.
This results in 10 jobs being created that replace the 5 cloud
image update jobs that are currently active.
There is one notable difference: since the SUSE cloud platform
is currently running Newton, it still doesn't fully support shared
images, so the visibility of images updated there by the periodic
CI jobs needs to be private.

the openstack-ardana-heat Jenkins job was split into two jobs, each
one running exclusively for one of the available OpenStack cloud platforms.
Having one job running exclusively for a target OpenStack platform
means it can be used to monitor the platforms individually for history
of failures and overall reliability.

Documentation covering this feature is submitted separately as #3426.

I tested this with manual builds, as well as Jenkins builds for both Crowbar and Ardana in the ECP and the SUSE cloud. I wasn't able to successfully deploy Crowbar in the SUSE cloud mainly because there were some pending issues with Neutron in the SUSE cloud that prevented me from doing that. This works as expected though with the ECP.

@stefannica rebase

rebased...

Rebased


Add test for authentification with wrong credentials

@rmacor I appreciate the PR, but isn't this tested already on the JDG/ISPN side of things? The existing tests should that cache access shoud pass/fail with/without auth and IMO that's sufficient. Entering wrong credentials is testing the underlying auth mechanism and hence should only occur in Infinispan.
@slaskawi @mgencur WDYT?

Hmm, the only thing specific to OpenShift that could be verified by this PR is passing specific credentials via the template but that's already partially tested via the successful authentication. So not sure this test is needed.

@ryanemerson  @mgencur  I wasn't sure about it either. Alright, thanks, I'm closing the PR.


Enhancement Idea -- Median Value Rollup

I was told by a colleague who sat in on a webinar today that I should add this as an enhancement idea:
The idea is to create a DLRS formula/function (like the Average or Count) for median value because there is no native functionality in Salesforce to rollup the median value in a set of related/child records.
The ability to rollup a median value of child/related records has been requested dozens of times over the years, but it is not a priority for Salesforce to add it (probably rightly so).
At present, an admin/developer has to write an Apex trigger to calculate the median values. I decided to take on doing this about 3 months ago in order to teach myself more about writing triggers, but most admins (particularly those at nonprofits) don't necessarily have time or resources to learn to write an Apex trigger and test coverage.
With the DLRS it seems like you have the opportunity to create a quickly editable/deployable "Median Value Rollup".
If it would help your process, I can supply you with the Apex I wrote to accomplish the calculation for a rollup of Opportunities to the Contact record.

Yep thanks for this and yes any code snippets would be useful for sure! 👍

You'll have to forgive the coding and conventions. I'm pretty new to that aspect of the Salesforce world and currently don't have very much occasion for collaboration/input when it comes to writing Apex.
The class I created (called OpportunityTriggerHandler) looks like this:
public class OpportunityTriggerHandler {
    public void onBeforeInsert(list <Opportunity> newOppList, map <id, Opportunity> newOppMap){

    }
//Trigger calculateMedian after insert
    public void OnAfterInsert(list <Opportunity> newOpps, Map<ID, Opportunity> newOppsMap){
        calculateMedian(newOpps);
    }

    public void OnBeforeUpdate(list <Opportunity> oldOpps, list <Opportunity> newOpps, Map<ID, Opportunity> oldOppsMap, Map<ID, Opportunity> newOppsMap){

    }
 //Trigger calculateMedian after update
    public void OnAfterUpdate(list <Opportunity> newOpps, Map<ID, Opportunity> oldOppsMap){
		calculateMedian(newOpps);
    }

    public void OnBeforeDelete(list <Opportunity> deletedOpps, Map<ID, Opportunity> oldOppsMap){

    }
 //Trigger calculateMedian after delete
    public void OnAfterDelete(list <Opportunity> deletedOpps, Map<ID, Opportunity> oldOppsMap){
		calculateMedian(deletedOpps);
    }

//Method for calculating median
//Create create a list of opportunities related to a contact
    public void calculateMedian(list <Opportunity> newOpps){
        set <id> conIdSet = new set<id>();
//Create a subset of that list of opportunities that is closed won
        for(Opportunity newOpp: newOpps){
            if(newOpp.IsWon && newOpp.npsp__Primary_Contact__c != null){
                conIdSet.add(newOpp.npsp__Primary_Contact__c);
            	            }
        }

        list <Id> conIds = new list <id>();
        conIds.addall(conIdset);

        list <Contact> cons = [select id, accountid

                         from contact where
                           id in :conIds
                               ];
      //Declares variable and sets value of sizeOflist, index, and median
        				Integer sizeOfList = 0;
    					Integer index = 0;
    					Decimal median = 0.0;

        if(!cons.isempty()){
            for (contact c: cons){
    //arranges opportunities in descending order by amount
                list <Opportunity> oppList = [select Amount, ID from Opportunity
                      where isWon = True AND RecordTypeId = '012A0000000eJnT' AND npsp__Primary_Contact__c = :c.ID order by Amount desc];
    //caculates size of the list, indexes values
                if(!OppList.isempty()){
                        sizeOfList = oppList.size();
    					index = sizeOfList - 1;
    					median = 0.0;
      //if there is no remainder when the size of the list is divided by two, then take the average of the two middle 'amount' values
      //if there is a remainder when the list size is divided by two then take half the index value to determinde the middle 'amount' value
                        if (Math.mod(sizeOfList, 2) == 0) {
     					median = (oppList[(index-1)/2].Amount + oppList[(index/2)+1].amount)/2;
    					}else{
      					median = oppList[(index+1)/2].Amount;
   	 					}
    					system.debug('the median is: '+median);
    					c.Median_Contact_Donation_Amount__c = median;
                    }
            }
            Update cons;
        }

    }

}

I'm sure you don't need this snippet, since I'd imagine the DLRS must create its own trigger based on the object selected. But the trigger I wrote is:
 trigger OpportunityTrigger on Opportunity (after delete, after update, after insert) {
	OpportunityTriggerHandler handler = new OpportunityTriggerHandler();

    if(Trigger.isDelete && Trigger.isAfter){
      handler.OnAfterDelete(Trigger.old,Trigger.oldMap);
    }
    if(Trigger.isUpdate && Trigger.isAfter){
      handler.OnAfterUpdate(Trigger.new,Trigger.oldMap);
    }
    if(Trigger.isInsert && Trigger.isAfter){
      handler.OnAfterInsert(Trigger.new,Trigger.oldMap);
    }

}

Hope it's of some help!
Like so many others, I really dig the DLRS.

//arranges opportunities in descending order by amount
                list <Opportunity> oppList = [select Amount, ID from Opportunity
                      where isWon = True AND RecordTypeId = '012A0000000eJnT' AND npsp__Primary_Contact__c = :c.ID order by Amount desc];

I just realized that this trigger was also built to filter out and calculate for only one of our record types which is called a Contact Donation--that's probably the only piece that needed any real elaboration. Everything else is probably fairly straight forward.

Thanks @benchastain for sharing!

Hi this Fajil plz let me know about how to create roll up summary filled via look up only
i red ur article but i couldn't understand bekoz i new to sfdc<EMAIL_ADDRESS>

@fajilGH please review the Documentation on the README file.


Improve the Foundation Models graph in module 2

In the video of module 2, at about 2:28, there is a picture/graph that helps support the explanation of Foundation models compared to Large Language Models. The image is not clear and it's hard to view the details, mostly the inner bubble.
Steps to reproduce the behavior:

Go to https://www.youtube.com/watch?v=J1mWzw0P74c
Fast Forward to 2 minutes 28 seconds of the video clip
See error

I would expect to be able to view the diagram and be able to read the text within it.

Windows 10 Pro 22H2
Edge
Version 119.0.2151.58 (Official build) (64-bit)

@PabloNunes please see this issue in your video

In the video of module 2, at about 2:28, there is a picture/graph that helps support the explanation of Foundation models compared to Large Language Models. The image is not clear and it's hard to view the details, mostly the inner bubble.
Steps to reproduce the behavior:

Go to https://www.youtube.com/watch?v=J1mWzw0P74c
Fast Forward to 2 minutes 28 seconds of the video clip
See error

I would expect to be able to view the diagram and be able to read the text within it.

Windows 10 Pro 22H2
Edge
Version 119.0.2151.58 (Official build) (64-bit)