Getting pH7CMS to work on Plesk system

I can't for the life of me get pH7CMS to work. I've uploaded all the files, setup the database. Ran through the installation and to the point where I have to delete the install file. As soon as the install file is deleted the site brings up a is 'currently unable to handle this request.
HTTP ERROR 500'
I believe the server is running nginx with apache.  I can't seem to get a clear idea of whats required from the nginx configuration page or at least anything I've implemented doesn't work. I can provide access to the hosting to somebody who would be willing to take a look and see whats missing.
Any tips or ideas would be appreciated, I've reset the install so at the moment just the basic files are present and I haven't made any changes pending some advice.
Thank you in advance.
Chris

Hi !
At first it will be needed to get some more information about your situation. As you probably know, the more we know about your problem and your system, the better your chance that we'll be able to help you.
When you get a 500 Error ( HTTP Answer Code of 500 ) it means that the software can't process your request. It doesn't say much and can be caused by many situations including error in your htacess file, php code that doesn't work properly, modules that crashed and much more.
Look into your logs and you'll find a detailed description of the problem.
I copied a small piece of a log file so you can see where to information may be found
error-tiki18.log.1:2:[Sat Mar 10 22:26:30.044069 2018] [rewrite:error] [pid 32167] [client <IP_ADDRESS>:60952] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/tiki18/tiki-index.php
This error would give back a Error 500 type to the user but inside the logs you get what really caused the problem.
For example if you make a typo and insert a "Dany from all" instead of a "Deny from all" you'll get a 500 too. As if you have the PHP module that's misconfigured and not loading properly. I'm not saying that's your case but explaining to you that with what you gave us there's not much we can do to help out.
You say:
I believe the server is running nginx with apache. I can't seem to get a clear idea of whats required from the nginx configuration page or at least anything I've implemented doesn't work. I can provide access to the hosting to somebody who would be willing to take a look and see whats missing.
You're either running a instance of Apache or a instance of Nginx, possibly both on the same server running for different port or virtual hosts but not for the same one. It's either you're serving the application with Apache or Nginx. Take a look at your configurations and get us back on that. I'm not too used with Nginix but I can sure try to give you some help with it.
I would make the first recommendation and it would be to do the installation without the use of a software installer like Softaculous or such. Did you install the software by unpacking into a folder and then browsing into the installation ?
Have you tried at first to do the installation over your own computer (for example using Wamp or Bitnami) ?
Get us back and we'll sure get this beast running like a horse

Hi !
At first it will be needed to get some more information about your situation. As you probably know, the more we know about your problem and your system, the better your chance that we'll be able to help you.
When you get a 500 Error ( HTTP Answer Code of 500 ) it means that the software can't process your request. It doesn't say much and can be caused by many situations including error in your htacess file, php code that doesn't work properly, modules that crashed and much more.
Look into your logs and you'll find a detailed description of the problem.
I copied a small piece of a log file so you can see where to information may be found
error-tiki18.log.1:2:[Sat Mar 10 22:26:30.044069 2018] [rewrite:error] [pid 32167] [client <IP_ADDRESS>:60952] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/tiki18/tiki-index.php
This error would give back a Error 500 type to the user but inside the logs you get what really caused the problem.
For example if you make a typo and insert a "Dany from all" instead of a "Deny from all" you'll get a 500 too. As if you have the PHP module that's misconfigured and not loading properly. I'm not saying that's your case but explaining to you that with what you gave us there's not much we can do to help out.
You say:
I believe the server is running nginx with apache. I can't seem to get a clear idea of whats required from the nginx configuration page or at least anything I've implemented doesn't work. I can provide access to the hosting to somebody who would be willing to take a look and see whats missing.
You're either running a instance of Apache or a instance of Nginx, possibly both on the same server running for different port or virtual hosts but not for the same one. It's either you're serving the application with Apache or Nginx. Take a look at your configurations and get us back on that. I'm not too used with Nginix but I can sure try to give you some help with it.
I would make the first recommendation and it would be to do the installation without the use of a software installer like Softaculous or such. Did you install the software by unpacking into a folder and then browsing into the installation ?
Have you tried at first to do the installation over your own computer (for example using Wamp or Bitnami) ?
Get us back and we'll sure get this beast running like a horse

Hi thanks for getting back to me. I found the following error in the logs-
[Sat Mar 31 10:08:30 2018] [error] [client <IP_ADDRESS>] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
I've checked and 'Fastcgi' is processing the php script.
I was initially installing the files using ftpzilla. But when the problem occurred  I thought it might of been because of a file missing off the upload. So I started uploading using the file manager in my hosting package. I uploaded the zip file and extracted it.
Your help is appreciated.
P.s- I've emailed you login details to the hosting panel so you can take a closer look.
Thank you so much.
Chris

Hi there !
I think we've got a little misunderstanding here... you're not getting a paid technical support or some other form of contractual service. It's a volunteer support forum or user help group, call it as you want.
I'll give you some advice but I won't be doing the job for you. What you are asking me here is both insulting (as you send me the information and expect that I'll do it, you don't even take the time to ask me and wait until I give answer back) and quite stupid (as you will never know what to do if such problem occurs again as you won't be fixing it).
Oh, I'm pretty sure you may find offending to get such answer but on the long run you'll be thanking me as you'll be understanding where does the problem get it's root and how to do diagnostics.
By the way, it's way more painful than to simply use your credentials and do the job for you.
Like the log information does suggest you, I would increase the "LogLevel" to get more information and try another connect so you'll get more information about where it starts. Have you done that yet ? Or you're simply playing the Jewish and hoping for god to come down to you ?
Do you use the actual .htaccess or have you modified it in some way ?
I will be giving you a small  .htaccess file so you can try with this one.
Just rename it to .htaccess in the root folder of you webserver serving directory (public_html) probably.
small-ph7cms.htaccess.txt
It does make the assumption that you've got mod_rewrite and others modules properly installed so it's a good test to see if the basic needed stuff is working.
Could it be that you unquoted both Rewriting to index.php AND init.ph7 ?
Try those step and get me back with the results. After you'll have done your share of the work and effort, maybe then will it be wise for me to take a look.
Sincerely,
PM

Hi thanks for getting back to me.
 Your help is much appreciated so I'm sorry if I was alittle presumptuous.
I was using the original .htaccess file and have now uploaded yours.
I wasn't playing the jewish, I simply don't know how to increase the error log, I'll start researching this now to see how to do this. There is an error log on the hosting panel which generated this:
2018-04-01 14:49:32 | Error | <IP_ADDRESS> | 500 | GET / HTTP/1.1 |   |   | 415 | Apache access
Which seems pretty undescriptive.
I looked into mod_rewrite with host and got this-
How do I enable mod_rewrite?
The mod_rewrite module is enabled by default in Apache that comes with Plesk for Linux. To make use of the functionality, you will need to create an .htaccess file containing the desired rewrite rules.
So that looks fine.
I haven't unquoted both Rewriting.
I work on trying to increase "Loglevel" and update shortly.
Thanks again.
Chris

Check in the Apache documentation and you'll get all the information you need about make configuration changes.
The error you've getting (415 - Media type not supported) is a problem with your server configuration and not pH7CMS. I'll suggest you contact your hosting provider about this type of problem at first.
It sound much like a problem involving Apache configuration support than something related to the CMS.
Happy easter !

It may be the best option for now as they'll be able to help you with augmenting the LogLevel. You can also check with the Apache Documentation if you can effectively augment the LogLevel in a directory configuration file (.htaccess). I'm not too sure this is possible as it may leak out some security information from the hosting provider and some will limit such.
What you are simply get in your first case (the redirection errors) seem to be related to redirection that goes back onto itself. It was solved when I send you the basic .htaccess file and you used it. But now what you are getting is a bit more complex and related to the server internal.
After you contacted them, ask for complete answer. Don't accept stuff such as "your .htaccess file is not compatible with the last Apache version", ask why and to get a proof of what the person is saying. Simply said, what made her come to that conclusion. Too often technical support of some hosting provider will just be making assumption and stop there. But when you go with good one, then you may get real nice help. The main reason why I suggested you look into them is that the error changed with the change of file and also because they actually get used to this kind of problem that occurs specially because of the own configuration and not because of the way we operate the software. So as they get this kind of problem often, they already have mostly the solution.
The pH7CMS is highly optimized and as such, use the software to it's maximum possibility to get most out of the less resources possible. It allows you to run as much connexion as possible without getting a huge server load. But as such it does make some bugs go wild or misconfiguration should I say, to be precise, I'd say that it show some limits that hosting provider impose but don't disclose in what can be done with they're service.
In this actual case I believe it can be related to either the caching system that use a "curl" command to go fetch the files on the server and it may cause some problem with files being served (why you get the media error 415). It can also be related to they're own security rules (and that we don't know about).
Get me back with they're answer and we'll get that beast on track.
It's always nice to help people out as it gives me (us) better knowledge and also we can add the solution into our minds if we get something alike with this or other software.
I think it's not really related to the caching system or the way we use a fetch to get files cached as you don't even get anything and in case of caching problem, at least you get some text.
I wouldn't want to get onto your system and change something on your other services running if I do some try to fix it. So tell me do you have other instances running on the same account ? Do you have some kind of shell access ?
Thanks for your cooperation, I didn't want to be rude or such but I like to make it clear as too often people think that everything can be done in a "point-click-play" and expect not to be needing some text file editing or programming. But that is needed if you want to get anything as customisation and it's not only for this CMS but most of the other ones too. For sure you can get along without doing programming by using Joomla with standard templates and simply configuring many modules but your site will be much like many other and you'll end up wasting money for stuff that can be easily programmed.
If you want some references for books on either PHP, Apache Hosting or such, just tell me and I'll send you some good free stuff.
PM


Test data update and documentation

Let's see how well this new data from Mike matches what is needed:
https://drive.google.com/file/d/1H3Mv4jxKS4iVhJo0EvXNXTIqdDbuPzbV/view?usp=drive_link
And along the way, we need to update this documentation https://github.com/GreenInfo-Network/seattle-building-dashboard/blob/master/docs/Update_data.md
Huh, that is old! Did we do this process or maybe Mike's predecessor did it. I have no recollection of following these old docs. I wonder if the new table count limits in CARTO will bite us here...

Unfortunately, yes, we have to delete 9 of 18 datasets on CARTO, in order to be able to upload this one new one (10 is the new limit).
Maybe we take this opportunity to move some of the data-only tables out of CARTO completely? These can be CSVs in the repo that we load in the usual way.
I've opened a separate ticket for those content tables: #59
And a new ticket for backing up and deleting old building data and footprint data: #60

There is not much overlap between the fields in the provided data and the fields required by the application. The casing of the fields, where they clearly match, is almost always different, and there are many omissions and commissions between the two datasets (existing and update).
I've gone through both sets of fields and tried to identify matches and/or add comments and questions here:
https://docs.google.com/spreadsheets/d/1TJqAvxrBd4BrO8UWWRTg3edmRqaoVX6FyZq0ItGzjeA/edit#gid=1827985828
In addition, we need to

Replace all occurrences of "NA" with blank (empty string)
Confirm that the new data is a complete replacement of the existing 2021 data

I've gone over the documentation for data updates, and it is overall okay. I'm not sure about step 6, but that's already flagged as "Optional" so it's okay to leave that as is.
The bigger issue is that the data update process has been slightly different every year. For example, 2020 and 2021 data were provided to us wholesale, with complete data for all years, whereas this documentation assumes that we are adding new annual data (for one year only) to an existing older dataset. The current data update is also different from any of the previous updates, in that it is intended to replace an existing year (2021) that is already in production.
Also, the documentation is obviously very CARTO centric. Since we are (likely) moving away from CARTO in the near future, I don't think we should put a lot of effort into cleaning this up (especially if GreenInfo is doing the update). It's good enough for the existing CARTO based data management, but will be completely obsolete once/if we move to some other system.

mike sent another new data table, which I saved here, https://docs.google.com/spreadsheets/d/1yID5uP4UssrLbYSIjLv7DdfznmezUrr9/edit#gid=814713088. This has the same schema as the file he provided earlier this week, which remains VERY different from the data that runs the application
I am going to email him with a note and ask again about the role of SBW here. We didn't scope any effort to create data in the correct schema, and there are parts of that work we've never done or even seen documented.

I have uploaded all of the files that currently list Carto in the name into the Sharepoint folder, as well as the R Script for reference.. I’ve skimmed the R Script and I’m still not totally sure which of these files are critical for GreenInfo’s update process. I can see that the following files were updated when I last ran the R Script on 6/14, so in theory these were the ones that were important enough to be integrated into the update process. Can you please review the files in the Sharepoint folder and confirm which of these you actually need updated with the latest data for your processes? It appears the same live-table problem affects these outputs, so I will need to manually update via Excel.

files: https://seattlegov.sharepoint.com/sites/OSE-External/Shared Documents/Forms/AllItems.aspx?ga=1&id=%2Fsites%2FOSE-External%2FShared Documents%2FBenchmarking%2FGreenInfo OSE 2023%2FCARTO files&viewid=35dba9c9-c2c7-47c7-b35d-310aed53921c

Added some more comparisons to this doc:
https://docs.google.com/spreadsheets/d/1TJqAvxrBd4BrO8UWWRTg3edmRqaoVX6FyZq0ItGzjeA/edit#gid=1827985828
Reply to Mike:
By looking at the fields in the three files you flagged, here's what I can see.

Carto_OutlierTable_2021.csv: This doesn't match anything I am familiar with. There are only 24 rows and a handful of fields.
Carto_2021_Data.csv: The field names match the 2021 update table in Carto almost exactly, with a couple of exceptions. There is no field named "uniqueid", and "ParentBuildingId" should probably be named "parentid" to match Carto. In addition, the field "EPAPropertyType" is not lower case as it is in Carto. The file has 3570 rows.
Carto_2021_Data_extra.csv: These field names also match almost exactly. "uniqueid" is present in this one. "ParentBuildingId" should probably be named "parentid" to match the data in Carto. In addition, the field EPAPropertyType is not lower case as it is in Carto. The file also has 3670 rows.

I'm not sure if that helps - it's really not clear what's different between Carto_2021_Data.csv and Carto_2021_Data_extra.csv, apart from the presence of that one field "uniqueid" in "Data_extra". I did not look closely for any differences in data values between those two files, however. Is there anything in the R scripts that indicates why it's outputting these two files?

Looking over the R script, the very end of the file has this
#New changes based on fields provided by Tom Allnutt
Carto_Data_extra <- Carto_Data %>%
  rename(parentid = ParentBuildingId) %>%
  mutate(uniqueid = paste(as.character(reportingyear), id, sep = '-'))

fname = paste('Data/Carto_', as.character(reportingyear),'_Data_extra', datamode, sep = '')
fullfilepath = paste(filefolderroot,fname, '.csv', sep = '') write.csv(Carto_Data_extra, file = fullfilepath, row.names = FALSE)

That’s the file named “extra”, but it’s still not entirely clear why they were writing two nearly (but not quite) identical data files
The "extra" file is written out at line 541. The other candidate file is written out at line 510, but the only change to the underlying Carto_Data object seems to be those two changes to parentid and uniqueid

seattle_data_columns_2020(1).txt
Mike has been in touch with Gina at SBW, and resent this list of fields that I had sent during the previous update cycle, which they used to format the 2021 data.
Oddly that list has parentid in lower case, so not sure why the R script is renaming that, it's not necessary.
Also, EPAPropertyType is missing from that list, which is strange, as it is definitely included in the 2021 data, albeit lower case.
Conclusion at this point is that Carto_2021_Data_extra.csv is the file to use going forward, though it seems like it will still need some minor cleanup prior to dumping in Carto:

Remove NA
Some field type changes
lowercase all fields including 'EPAPropertyType`
rename parentid

I just uploaded a version of the data he sent:
https://drive.google.com/open?id=1-KeFy9AJAz2YuPYhAbQdagQw_8xkiSCX&usp=drive_fs
to
https://cityenergy-seattle.carto.com/dataset/seattle_buildings_2021_update_202308
then this commit
https://github.com/GreenInfo-Network/seattle-building-dashboard/commit/13460e50e6171752bc10f47ac373613411cd2145
And it seemed to "just work"

Nice. Did you have to remove "NA", or do any of the other renaming specified above?
Looks like this is only 2021 data, which I assume is going to completely replace existing 2021 production data (as opposed to being appended onto the existing table and existing 2021 data). We can do that with the query that's documented in Update_data.md, or manually join the tables in Drive and reupload, etc.
~The only other potential issue I see is that cbps_flag is TRUE and FALSE but we test with a simple JavaScript if, so this will always evaluate to true~.  Actually, scratch that, somehow in the upload process this was automagically evaluated to JS true/false

One question Rebecca had was – are you planning on pushing updates to the live Data viz incrementally (i.e. as they’re ready) or are you planning on pushing to production once towards the end of the contract?

I'd very much prefer to update and evaluate everything one time (or as few times as possible). This will also help with the building outline update, which we'll have to check against new data each time.

For the record, I didn't do any renaming or removal of NAs. I just uploaded it and assumed I would get errors, but then I didn't. I confirmed via the network control panel that the app was indeed pulling from the new table I uploaded.
Field name capitalization might be taken care up on upload -- CARTO generally lowercases everything. I am less sure about NAs -- they must have removed them, Usually if those are in the data, CARTO will turn any such column into a string field and we would expect many filters to stop working as a result.
I wondered about the GEOM field. Agreed probably best to delete it in case any values got accidentally edited.


android_alarm_manager package does not fire when device is not awake

I am testing my flutter app with alarm manager and android version 9.
When the device is on sleep, the alarm sometimes fires after 5 minutes instead of 1 or never fires completely until I wake my device.
  Future<void> _locateDriver() async {
    await AndroidAlarmManager.initialize();
    await AndroidAlarmManager.periodic(const Duration(minutes: 1), helloAlarmID,
        printLocation, wakeup: false, exact: true, rescheduleOnReboot:true).then((val) => print(val));

    final Uint8List markerIcon =
        await getBytesFromAsset('assets/images/cab-yellow.png', 100);

    Position position = await Geolocator()
        .getCurrentPosition(desiredAccuracy: LocationAccuracy.high);
    final Marker marker = Marker(
        position: LatLng(position.latitude, position.longitude),
        markerId: MarkerId("phaka"),
        icon: BitmapDescriptor.fromBytes(markerIcon));

    setState(() {
      _markers[MarkerId('phuka')] = marker;
    });
  }

How can I make the alarm fire after 1  minute without failure even if the device is no awake.

This does not change even when i set wakeup:true
I am using android_alarm_manager: ^0.4.3

Issue #32164 documents progress on background execution (ie, when the device is in sleep mode), but that may not be exactly relevant for you. Just an FYI.

Hi @phanuelayuka
Using official example using modification in release mode with screen off without cable and usb debugging off
  static Future<void> callback() async {
    print('Alarm fired!');

    // Get the previous cached count and increment it.
    final prefs = await SharedPreferences.getInstance();
    int currentCount = prefs.getInt(countKey);
    await prefs.setInt(countKey, currentCount + 1);

    // This will be null if we're running in the background.
    uiSendPort ??= IsolateNameServer.lookupPortByName(isolateName);
    uiSendPort?.send(null);

    await AndroidAlarmManager.oneShot(
      const Duration(seconds: 10),
      // Ensure we have a unique alarm ID.
      Random().nextInt(pow(2, 31)),
      callback,
      exact: true,
      wakeup: true,
    );
  }

flutter doctor -v
[✓] Flutter (Channel dev, 1.19.0-1.0.pre, on Mac OS X 10.15.5 19F96, locale en-GB)
    • Flutter version 1.19.0-1.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision 456d80b9dd (3 weeks ago), 2020-05-11 11:45:03 -0400
    • Engine revision d96f962ca2
    • Dart version 2.9.0 (build 2.9.0-7.0.dev 092ed38a87)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (3 available)
    • macOS      • macOS      • darwin-x64     • Mac OS X 10.15.5 19F96
    • Web Server • web-server • web-javascript • Flutter Tools
    • Chrome     • chrome     • web-javascript • Google Chrome 83.0.4103.61

• No issues found!

Can you please provide your flutter doctor -v? This could be device specific, which device you tested on?
Thank you

Hi @phanuelayuka
please follow up on https://github.com/flutter/flutter/issues/58263,
I'm closing the current one as duplicate.
If you disagree please write in the comments and I will reopen it


Added badges on readme

Added badges on README file for:

Travis CI build status
last jar's version published

Thanks so much!


track leads: build initial pipeline

[ ] Reach out to anyone who you accepted for your track - that way, they can start preparing for the conference
[ ] find speakers
[ ] start thinking who else is good for your track
[ ] https://airtable.com/appn1cAuh9f9I0ru0/tblh0dMxhS2m8yx57/viw7SK6wiTjpyjTJL?blocks=hide

For the item regarding "Reach out to anyone who you accepted for your track" - are there specific logistics items we can share with them: how much time they have to present, which day/time they will present?
Could we start a Slack channel to ask presenters to join for the latest logistics information? Or should we communicate with them via email?


Verify that client-sdk refuses to accept private keys outside of [0,p) range

Generate random 256-bit buffers and base58 encode them and feed them to the client sdk instead of using the client-sdk's private key generate function.
See what happens -- failing fast with a nice error message is a good solution if it's accepted.

@imeckler to provide some more information based on debugging
@mrmr1993  to add some boundary checks in the sdk

we're talking about signString here right?

there's also signStakeDelegation


[ROADMAP] Remove addressed issues

This is the first iteration for #4205. I have removed addressed issues.
@mpontikes please have a look and merge if you are happy with it.
The next iteration would be to add the issues currently addressed in the next branch.
I'm gonna need @nathanmarks help for this one. Or we could rely on the milestone system and just explain the core idea behind what we are working one.

Awesome! @oliviertassinari, and I also agree that we should add what we are doing in the 'next' branch. Also, should we add what is upcoming in the 0.16.0 and the 0.15.x release?

Also, should we add what is upcoming in the 0.16.0 and the 0.15.x release?

0.16.0 will probably be the next branch and the 0.15.x will be about bug fixes. I don't know much more. It's really depending on people's contributions.


Fixed grammar

Proposed changes
Minor grammar change: read to => read from and write from => write to.

Sorry, but these YAML files are artifacts generated from the source code in the docker/docker-cli repository and can't be edited here. You'd need to change the contents under the ### Examples headings of the relevant files there. For instance, https://github.com/docker/cli/blob/master/docs/reference/commandline/service_create.md.

Thanks, I opened it in the appropriate repo: https://github.com/docker/cli/pull/446


Mac OS X El Capitan pip install OSError: [Errno 13] Permission denied

Hi,
Sorry to bother you but I can't manage to install your program (it looks awesome by the way, I would love to have it !)
I tried to use the command pip install youtube-dl but I get the following
MacBook-Pro-de-lukitsa:~ lukitsa$ pip install youtube-dl
Collecting youtube-dl
  Using cached youtube_dl-2016.12.22-py2.py3-none-any.whl
Installing collected packages: youtube-dl
Exception:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py", line 377, in move_wheel_files
    clobber(source, dest, False, fixer=fixer, filter=filter)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
**OSError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/2.7/share/doc/youtube_dl'**

Is there anyone who can help me with this ? By the way I am on Mac OS X 10.11.6 El Capitan and unfortunately I can't use any other installation way like Homebrew because of my work. They use program and didn't allow you to change any main architecture of your mac (unless you don't want support anymore.. sorry)
Many thanks in advance for your help

Read FAQ and copy paste pip command from there.

Thank you for your reply but that's what I did. They say that you have to use sudo but I can't use this command. Is there any other way ?

pip install youtube-dl --user and add $HOME/Library/Python/2.7/bin to $PATH

Thanks for helping @yan12125 but I don't have the folder /Library/Python/2.7/bin, I only have /Library/Python/2.7 and in there, there is only a site-packages folder.. Sorry I really am a beginner in programming and stuff

$HOME/Library/Python/2.7/bin, not /Library/Python/2.7/bin. You can also use ~/Library/Python/2.7/bin

Okay thanks but where do I add $HOME/Library/Python/2.7/bin to path ? I'm really sorry I know you just gave me the answer but I can't figure out exactly what I have to write in the terminal.

Like this:
export PATH="$HOME/Library/Python/2.7/bin:$PATH"


Adapt to the newest Pandas release (v1.4.0)

The Pandas devs released a new (and breaking) version of Pandas over the weekend (https://pypi.org/project/pandas/1.4.0/). We should see what level of effort is needed to support it (https://pandas.pydata.org/docs/whatsnew/index.html#version-1-4)
Given that xarray is strongly tied to pandas, we should be testing against it in at least one of our CI builds.

I'm concerned we're going to spend a considerable amount of time tracking regressions in pandas. I suggest we pin pandas < 1.4 and wait for 1.4.1 before looking into this. Hopefully some of the upstream issues will have been resolved by then.

Looking quickly at the failed tests, it indeed seems that the broken things are in xarray? And it seems all the bugs are related to the same issue ("Prefix not defined"). As such, I would suggest at least waiting for a diagnostic before pinning pandas in a xclim release.

https://github.com/pandas-dev/pandas/issues/45595


Prevent SIGPIPE signals

More cross-platform mess 😩 . Fixes https://github.com/armanbilge/epollcat/issues/35.
I was unable to write a test, and based on the blog in https://github.com/armanbilge/epollcat/issues/35#issuecomment-1249966881 it seems writing such a test is very difficult. So I did not further waste my time on the matter.
Lee, thanks for putting me onto this issue, and I'm sorry that I didn't listen sooner!

@lolgab I published a snapshot of this branch. If you have a moment, would be great to confirm if this solves your problem.
https://s01.oss.sonatype.org/content/repositories/snapshots/com/armanbilge/epollcat_native0.4_2.13/0.1.0-10-f577392-SNAPSHOT/
Thanks again for reporting this with such a great reproducer!

Tested in my machine and the snapshot dependency fixes the problem. Thank you!

I am late to the party. Things move quickly, good to see.
I read the code late last night and could see no
obvious concerns.  Good to see @lolgab 's confirmation from the field.
Hi, Lorenzo!


Use ogg files directly instead of converting wav files

Hello, I'm trying to modify the multiencoder to take directly the ogg files, but the problem that persist is that the sound doesn't come up in game (the scd work, just the name of the tracks are different).
Can you tell me if the game need the ogg to be encoded by a specific version of oggencoder or if you know what possibly cause the problem ?
To tell what I have done :
The program search for 1.ogg file if it exist the line WavtoOGG(wavpath, LoopStart_Sample, Total_Samples, Quality); doesn't run.
The program wipe the 'TRACKNUMBER=1' and 'TITLE=1' in hexadecimal in the ogg files.
But still in the metadata there is a STREAM_NAME in the scd.
I have tried to write the 4 bytes in 0x0C and in 0x46 to 0 (because the ogg coming from the oggencoder have theses bytes at 0) but the scd isn't readable after that.

Hello, Ogg files have a field called stream serial number, most audio converters set the value of this field to 1, but it turns out the game only plays the file if the stream serial number is set to 0, if you are using oggencoder.exe you can set that field to 0 using this command line argument "-s 0", this condition that the game has to play the file was one of the reasons i discarded the option of letting the user directly inputting the ogg instead of inputting a wav

Oh, I have already thought about this but I don't find the serial number in hexadecimal, I thought it was at the address 0C and 46 do you know if it is possible to change the serial number just in hexadecimal ?

The stream number is from 14 to 17 on each oggs, not 12 to 15, here is the official documentation https://xiph.org/vorbis/doc/framing.html

Okay now when writing the "entry" variable the sound doesn't play in game like this and there's still the name of the tracks that are different.
But when writing the "ogg" variable the scd isn't readable.

I dont know about that name of the track field you are talking about, try replacing line 70 with  string wavpath = Path.Combine(Path.GetDirectoryName(AppContext.BaseDirectory), (i + 1 - dummy_entries) + ".ogg"); , and comment line 75

Th issue is the checksum field, when the stream number is changed, the checksum also has to be changed, if it isnt changed foobar2000 refuses to read the page, i think it also applies to the game

Th issue is the checksum field, when the stream number is changed, the checksum has to be recalculated, if it isnt changed foobar2000 refuses to read the page, i think it also applies to the game

I think it is this problem too

Hi there, just adding another voice interested in using Ogg files directly, numerous games seem to use it for their internal sound files, which means they generally already have loop metadata. Alternatively, if we can't make direct Ogg input work, as silly as it is, could anyone share a successful method for converting Ogg files to Wav with the loop metadata intact? This is a step I've been struggling with, most conversion methods I've tried have removed them.


Math.cbrt() not supported in IE

This appears to be an issue with cube root not being supported in older browsers

Looks like Math.pow(a,(1.0/3.0)) will work in all browsers, so going to change to that ref

Test Notes: Just confirm that everything renders as expected in IE and Firefox for dev-v1.0.0

Expected Result: Opened Codebook in Firefox and IE, all functionality works as expected
Outcome: Pass


C "memcpy" shim: ensure the pointers are valid

Also add tests for some other shims that already behave correctly
Fixes https://github.com/rust-lang/miri/issues/2966

@bors r+

:pushpin: Commit 262586548fddbc923ca7a0db152a6088f9eba042 has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 262586548fddbc923ca7a0db152a6088f9eba042 with merge b220309961204fe2dd0c1ddf08e8a13726d27ca9...

:broken_heart: Test failed - checks-actions

I don't get this CI failure. memrchr exists (it works locally, and it doesn't have any cargo features/cfgs/anything).

Ooooh, that wasn't clear from the ui_test annotation: this is for a cross compilation target.

@bors r=RalfJung,oli-obk

:pushpin: Commit 06136890e9b6d4313c6bdbf1cc3ceea67e09a9c4 has been approved by RalfJung,oli-obk
It is now in the queue for this repository.

:hourglass: Testing commit 06136890e9b6d4313c6bdbf1cc3ceea67e09a9c4 with merge fc6bd08d6ce2bfe642399834ab69ef20f2fe7532...

Btw, what is this in the test output?
   error file=tests/fail/shims/memrchr_null.stderr,line=0,title=actual output differs from expected::```diff%0A1 unchanged lines skipped%0A-error: Undefined Behavior: memory access failed: null pointer is a dangling pointer (it has no provenance)%0A+error[E0425]: cannot find function `memrchr` in crate `libc`%0A   --> $DIR/memrchr_null.rs:LL:CC%0A    |%0A LL |         libc::memrchr(ptr::null(), 0, 0);%0A-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: null pointer is a dangling pointer (it has no provenance)%0A+   |               ^^^^^^^%0A    |%0A-   = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior%0A-   = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information%0A-   = note: BACKTRACE:%0A-   = note: inside `main` at $DIR/memrchr_null.rs:LL:CC%0A+  ::: CARGO_REGISTRY/.../mod.rs:LL:CC%0A+   |%0A+LL |     pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;%0A+   |     -------------------------------------------------------------------- similarly named function `memchr` defined here%0A+   |%0A+help: a function with a similar name exists%0A+   |%0A+LL |         libc::memchr(ptr::null(), 0, 0);%0A+   |               ~~~~~~%0A+help: consider importing this function%0A+   |%0A+LL + use core::slice::memchr::memrchr;%0A+   |%0A+help: if you import `memrchr`, refer to it directly%0A+   |%0A+LL -         libc::memrchr(ptr::null(), 0, 0);%0A+LL +         memrchr(ptr::null(), 0, 0);%0A+   |%0A %0A-note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace%0A-%0A error: aborting due to previous error%0A %0A+For more information about this error, try `rustc --explain E0425`.%0A %0A```

That's a very long line repeating the entire diff... some kind of debug output?

yea 🤦 I forgot to bless normally again
@bors r=RalfJung,oli-obk

:pushpin: Commit a9773f5909fac1da0acd84bd4167ecf23e957faa has been approved by RalfJung,oli-obk
It is now in the queue for this repository.

:hourglass: Testing commit a9773f5909fac1da0acd84bd4167ecf23e957faa with merge ee6623fcc8a0602adb2f15267dae44d34cdc81e0...

:pushpin: Commit 852d74f80173e8191e2868cbe015d7ec8e98c1ee has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 852d74f80173e8191e2868cbe015d7ec8e98c1ee with merge 8b9be80cf7cac1be160e6c1d7b04ea00b6538763...

No need to have that wrong bless in the history at all...

the gh pr checkout command does not allow force pushing 🙃

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 8b9be80cf7cac1be160e6c1d7b04ea00b6538763 to master...


Automatic distance sensing switch between speaker and receiver

Can be added according to the distance sensor automatically switch between the speaker and the receiver

Are there any device APIs for this?


Use as_json instead of to_json

If you use require cfndsl in a project that is also using activesupport
then our to_json is overwritten and the objects prefixed with underscore
start appearing.
Fix as per
http://stackoverflow.com/questions/6879589/using-custom-to-json-method-in-nested-objects

I refactored out the common bits. But I also noticed that all those files I've touched apart from some comments are almost identical. Should we just create a new base class they all inherit from and just jave zero content?

Rebased on top of rubocop branch

Good catch, +1

@johnf could you rebase this against master now and I'll look at getting it merged

@stevenjack now rebased

👍


feat(pd): find alerts by service

this will allow finding related alerts by a service

/lgtm
/approve


CLI should have clean and separate concerns for global flags, config flags, and commands that are not relevant to global flags

At present, the following global flags are available for every command:
Global Flags:
      --config-file string   config file (default is $HOME/.otdfctl.yaml)
      --host string          host:port of the Virtru Data Security Platform gRPC server (default "localhost:8080")
      --json                 output single command in JSON (overrides configured output format)
      --log-level string     log level (debug, info, warn, error, fatal, panic) (default "info")

The host and log-level can be moved to the config file and config CLI commands, and the json flag is not relevant to several commands. We should also ensure their values are read.
We should employ a helper function and the pflags MarkHidden functionality to hide the global flags not relevant to a given set of subcommands so a user is not confused.

Closing in favor of #171


How to list all the users

Hey sorry, it's not actually an issue. I don't know how to reach you in person.I am using your base app Its really amazing thank you
I have to do the list all the users from the database and show their details, could you guide me the best possible way to do this as of now admin has all the power to CRUD the user but I need to have the show and index action for the nonadmin user. And have to use all the powers of pundit.
I know it's not related to your repository but  It could really help me. Thanks in advance

Hi @shashankshandilyav,
I'm glad you liked the app.
To achieve what you want, you should move UsersController outside of the admin namespace then edit app/policies/user_policy.rb to allow non-admin users to access specific actions of that controller. Wish I had more time to provide greater details.


Update melt docker image to current latest build.

Given the license requirements of MELT, this image is not built and pushed to container registries using the GitHub actions. Hence, the latest builds of this image should be manually kept in synch between GCR and ACR. The image currently referenced for ACR is an older build than the image on GCR, and it does not include samtools. This PR updates the Docker image tag of MELT on ACR to the current latest tag on GCR.

Thanks @mwalker174!


OLS-567 update bundle version to 0.1.0

Description

Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[x] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue # OLS-567
Closes #

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

/lgtm

EC checks find a violation from RAG image
"name": "lightspeed-rag-content",
            "containerImage": "quay.io/redhat-user-workloads/crt-nshift-lightspeed-tenant/ols/lightspeed-rag-content@sha256:4b46fb88f34d3b76261df86da309790a29d834a83b6503f0ccf08de45ff49c3b",
            "source": {
                "git": {
                    "url": "https://github.com/openshift/lightspeed-rag-content",
                    "revision": "808644eaffb7967b42480c751666e3e2d8ad738e",
                    "context": "./",
                    "dockerfileUrl": "Containerfile"
                }
            },
            "violations": [
                {
                    "msg": "Base images information is missing",
                    "metadata": {
                        "code": "base_image_registries.base_image_info_found",
                        "collections": [
                            "minimal",
                            "redhat"
                        ],
                        "depends_on": [
                            "attestation_type.known_attestation_type"
                        ],
                        "description": "Verify the expected information was provided about which base images were used during the build process.The list of base images is a combination of two sources. One is extracted from the SLSA Provenance in the form of Tekton Task result called BASE_IMAGES_DIGESTS. The other comes from the components in the `formulation` attribute of any associated CycloneDX SBOMs. To exclude this rule add \"base_image_registries.base_image_info_found\" to the `exclude` section of the policy configuration.",
                        "solution": "Either a Tekton task must exist that emits a result named BASE_IMAGES_DIGESTS, or a CycloneDX SBOM must be associated with the image.",
                        "title": "Base images provided"
                    }
                },

/override "Red Hat Konflux / ols-enterprise-contract / bundle"
/override "Red Hat Konflux / ols-e2e-tests-rosa / bundle"

/approve

/test ci/prow/bundle-e2e-4-16

/test bundle-e2e-4-16


Unable to install on Windows

When I run the installer (v1.6.0), the progress bar appears for a few seconds and it seems like the install finishes and the window closes. But after that this pops up.

If I close it, nothing happens. But if I ignore it for about 10 seconds or so another shortcut problem window appears.

This lead me to the C:\Users\macal\AppData\Local folder where I only found a folder named homeassistant-desktop-updater with an installer.exe in it (which has the same behavior when launched).
I'm pretty sure the shortcut the dialogs are referring to is in C:\Users\macal\AppData\Roaming\Microsoft\Windows\Start Menu\Programs and it indeed is a dead shortcut. If I ignore all the dialogs I'm able to look at the properties of the shortcut and find out it's pointing to C:\Users\macal\AppData\Local\Programs\homeassistant-desktop\Home Assistant Desktop.exe. Which sadly only contains the uninstaller.
My Windows 11 version is 23H2 (build 22631.4602).
I'm not sure what's going on here but I hope someone has a clue because this looks like a cool app I'd love to use :)
Edit: Tried the installer v1.5.4 and that works so far.

Hey there, glad 1.5.4 works for you at least. I tested the install on my own W11 box (26100.2605) and couldn't replicate your issue, unusual one though, haven't seen it before. I'll test on another W11 machine to be sure. You are correct in that the executable should be in %USERPROFILE%\appdata\local\Programs\homeassistant-desktop, along with all the other config files.
From what I gather it seems this may be a bug with Electron Builder. There's some suggestion building on a Windows machine may help this (I built on a Mac) so I'll see if that can make a difference. You could also try upgrading to 24H2 to see if that makes any difference, it may be a bug in Electron that only affects specific versions of Windows, as my testing hasn't had that issue.


Add DictionaryArray::try_new() to create dictionaries from pre existing arrays

~Draft as it builds on https://github.com/apache/arrow-rs/pull/1263~
Which issue does this PR close?
Closes https://github.com/apache/arrow-rs/issues/1299
Rationale for this change
Inspired by the challenge writing tests on https://github.com/apache/arrow-rs/pull/1263 from @viirya
Otherwise known as "no one should have to write the following to work with DictionaryArrays":

Click to expand!
  fn get_dict_arraydata(
        keys: Buffer,
        key_type: DataType,
        value_data: ArrayData,
    ) -> ArrayData {
        let value_type = value_data.data_type().clone();
        let dict_data_type =
            DataType::Dictionary(Box::new(key_type), Box::new(value_type));
        ArrayData::builder(dict_data_type)
            .len(3)
            .add_buffer(keys)
            .add_child_data(value_data)
            .build()
            .unwrap()
    }

    #[test]
    fn test_eq_dyn_dictionary_i8_array() {
        let key_type = DataType::Int8;
        // Construct a value array
        let value_data = ArrayData::builder(DataType::Int8)
            .len(8)
            .add_buffer(Buffer::from(
                &[10_i8, 11, 12, 13, 14, 15, 16, 17].to_byte_slice(),
            ))
            .build()
            .unwrap();

        let keys1 = Buffer::from(&[2_i8, 3, 4].to_byte_slice());
        let keys2 = Buffer::from(&[2_i8, 4, 4].to_byte_slice());
        let dict_array1: DictionaryArray<Int8Type> = Int8DictionaryArray::from(
            get_dict_arraydata(keys1, key_type.clone(), value_data.clone()),
        );
        let dict_array2: DictionaryArray<Int8Type> =
            Int8DictionaryArray::from(get_dict_arraydata(keys2, key_type, value_data));

        let result = eq_dyn(&dict_array1, &dict_array2);
        assert!(result.is_ok());
        assert_eq!(result.unwrap(), BooleanArray::from(vec![true, false, true]));
    }

What changes are included in this PR?

Add DictionaryArray::try_new() function
Tests
Doc tests
Update tests from https://github.com/apache/arrow-rs/pull/1263 to use the new API

Looks good. The double validation for the dictionary values is a bit unfortunate, but since this is mostly a convenience feature that should be fine.

Looks good. The double validation for the dictionary values is a bit unfortunate, but since this is mostly a convenience feature that should be fine.

I agree it is unfortunately
I'll see if I can make a new_unchecked() and then also minimize the checking in try_new() to only verify that all indexes are within the range of the dictionary, which Ido think is required for this to be a safe API.

Filed https://github.com/apache/arrow-rs/issues/1313 to track performance improvement

Thanks for the comments and review @jhorstmann  and @viirya


Body Fragment

Replace the main tag at the application root with the body tag
The body tag will be a fragment alias but will reflect the attributes in the DOM body allowing the programmer to control the body directly.
However, the application code will still be inside the "#application" div but this time without the main root

Hey, @Mortaro, hope everything is fine!
Been reading through these and would like to know what's the big deal about this one.
Wrote like this in master's Application.njs:
<body
  class={true ? "my-app" : "none"}
  style={false ? "background: red;" : ''}
>
  <h1> {project.name} </h1>

These attributes bind to DOM body, and even the content (h1) go below div#application.
This body's control is what this expects? Am I losing something there?

The idea is basically that. Nullstack application lives in a  currently the user has no access to the body.
The application boilerplate is generated with a  tag as root, but I wanna leave that decision to the user.
To solve both problems a  tag should be used, but that would not create a second body inside #application, but instead become a parentless fragment inside the div, and the attributes in the body tag should be attached reactively in the real body both in client and server times

done in extremely-unstable-next (⌐■_■)


Test case failures in iree-run-module with signed/unsigned/signless types

Seeing a large number of ONNX tests failing like this:
EXEC @test_constantofshape_int_shape_zero
[FAILED] result[0]: metadata is 0xi32; expected that the view matches 0xsi32; expected that the view is equal to contents of a view of 0xsi32
  expected:
0xsi32=
  actual:
0xi32=

EXEC @test_constantofshape_int_zeros
[FAILED] result[0]: metadata is 10x6xi32; expected that the view matches 10x6xsi32; expected that the view is equal to contents of a view of 10x6xsi32
  expected:
10x6xsi32=[0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0]
  actual:
10x6xi32=[0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0][0 0 0 0 0 0]

Probably needs a fix to the expected output handling in iree-run-module somewhere

I also ran into this here: https://github.com/openxla/iree/pull/15918#discussion_r1425956156
// Buffer values can be read from binary files with<EMAIL_ADDRESS>//   * numpy npy files from numpy.save or previous tooling output can be read to
//     provide 1+ values.
//   * Some data types may be converted (i32 -> si32 here)

// RUN: iree-compile --iree-hal-target-backends=vmvx %s -o %t.vmfb
//
// RUN: iree-run-module --device=local-sync --module=%t.vmfb --function=npy_round_trip \
// RUN:   --input="2xi32=11 12" --input="3xi32=1 2 3"<EMAIL_ADDRESS>--output=+%t.npy
//
// RUN: iree-run-module --device=local-sync --module=%t.vmfb --function=npy_round_trip \
// RUN<EMAIL_ADDRESS>| \
// RUN: FileCheck --check-prefix=INPUT-NPY_FILES %s

// INPUT-NPY_FILES-LABEL: EXEC @npy_round_trip
func.func @npy_round_trip(%arg0: tensor<2xi32>, %arg1: tensor<3xi32>) -> (tensor<2xi32>, tensor<3xi32>) {
  // INPUT-NPY_FILES: result[0]: hal.buffer_view
  // INPUT-NPY_FILES-NEXT: 2xsi32=11 12
  // INPUT-NPY_FILES: result[1]: hal.buffer_view
  // INPUT-NPY_FILES-NEXT: 3xsi32=1 2 3
  return %arg0, %arg1 : tensor<2xi32>, tensor<3xi32>
}

Moving the update from #16916, here
Stdout diagnostics:
EXEC @test_add_uint8

[FAILED] result[0]: metadata is 3x4x5xi8; expected that the view matches 3x4x5xui8; expected that the view is equal to contents of a view of 3x4x5xui8

expected:
3x4x5xui8=[[18 24 22 22 20][14 38 44 14 27][30 14 20 12 20][36 25 31 6 8]][[28 30 19 7 18][26 33 23 34 19][29 39 14 32 44][26 25 18 28 24]][[24 36 16 28 25][16 23 22 20 39][27 20 34 19 26][16 17 8 16 11]]
  actual:
3x4x5xi8=[[18 24 22 22 20][14 38 44 14 27][30 14 20 12 20][36 25 31 6 8]][[28 30 19 7 18][26 33 23 34 19][29 39 14 32 44][26 25 18 28 24]][[24 36 16 28 25][16 23 22 20 39][27 20 34 19 26][16 17 8 16 11]]

Compiled with: iree-compile model.mlir --iree-hal-target-backends=llvm-cpu -o model_cpu_llvm_sync_test.vmfb

Run with: iree-run-module --module=model_cpu_llvm_sync_test.vmfb --device=local-sync --flagfile=test_data_flags.txt

MLIR :
module {
 func.func @test_add_uint8(%arg0: !torch.vtensor<[3,4,5],ui8>, %arg1: !torch.vtensor<[3,4,5],ui8>) -> !torch.vtensor<[3,4,5],ui8> attributes {torch.onnx_meta.ir_version = 7 : si64, torch.onnx_meta.opset_version = 17 : si64, torch.onnx_meta.producer_name = "backend-test", torch.onnx_meta.producer_version = ""} {
   %none = torch.constant.none
   %0 = torch.operator "onnx.Add"(%arg0, %arg1) : (!torch.vtensor<[3,4,5],ui8>, !torch.vtensor<[3,4,5],ui8>) -> !torch.vtensor<[3,4,5],ui8>
   return %0 : !torch.vtensor<[3,4,5],ui8>
 }
}

iree-compiler  and runtime versions : 20240326.843

Looking at the mlir-after-all dump (attached)
Until FuncConversion (torch-iree-func-conversion) Pass
the result type is casted to ui8 and after the extracting the method the output type is recasted to i8 to return as a hal.buffer.view
// -----// IR Dump After FuncConversion (torch-iree-func-conversion) //----- //
#executable_target_embedded_elf_arm_64_ = #hal.executable.target<"llvm-cpu", "embedded-elf-arm_64", {cpu = "generic", cpu_features = "+reserve-x18", data_layout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", native_vector_size = 16 : i64, target_triple = "arm64-unknown-unknown-eabi-elf"}>
#map = affine_map<(d0, d1, d2) -> (d0, d1, d2)>
#device_target_llvm_cpu = #hal.device.target<"llvm-cpu", [#executable_target_embedded_elf_arm_64_]>
module attributes {hal.device.targets = [#device_target_llvm_cpu]} {
  ml_program.global private mutable @global_seed(dense<0> : tensor<i64>) : tensor<i64>
  util.func public @test_add_uint8$async(%arg0: !hal.buffer_view, %arg1: !hal.buffer_view, %arg2: !hal.fence, %arg3: !hal.fence) -> !hal.buffer_view attributes {inlining_policy = #util.inline.never, iree.abi.model = "coarse-fences", iree.abi.stub} {
    %0 = hal.tensor.import wait(%arg2) => %arg0 : !hal.buffer_view -> tensor<3x4x5xi8>
    %1 = torch_c.from_builtin_tensor %0 : tensor<3x4x5xi8> -> !torch.vtensor<[3,4,5],ui8>
    %2 = hal.tensor.import wait(%arg2) => %arg1 : !hal.buffer_view -> tensor<3x4x5xi8>
    %3 = torch_c.from_builtin_tensor %2 : tensor<3x4x5xi8> -> !torch.vtensor<[3,4,5],ui8>
    %4 = torch_c.to_builtin_tensor %1 : !torch.vtensor<[3,4,5],ui8> -> tensor<3x4x5xi8>
    %5 = torch_c.to_builtin_tensor %3 : !torch.vtensor<[3,4,5],ui8> -> tensor<3x4x5xi8>
    %6 = tensor.empty() : tensor<3x4x5xi8>
    %7 = linalg.generic {indexing_maps = [#map, #map, #map], iterator_types = ["parallel", "parallel", "parallel"]} ins(%4, %5 : tensor<3x4x5xi8>, tensor<3x4x5xi8>) outs(%6 : tensor<3x4x5xi8>) {
    ^bb0(%in: i8, %in_0: i8, %out: i8):
      %12 = arith.addi %in, %in_0 : i8
      linalg.yield %12 : i8
    } -> tensor<3x4x5xi8>
    %8 = torch_c.from_builtin_tensor %7 : tensor<3x4x5xi8> -> !torch.vtensor<[3,4,5],ui8>
    %9 = torch_c.to_builtin_tensor %8 : !torch.vtensor<[3,4,5],ui8> -> tensor<3x4x5xi8>
    %10 = hal.tensor.barrier join(%9 : tensor<3x4x5xi8>) => %arg3 : !hal.fence
    %11 = hal.tensor.export %10 : tensor<3x4x5xi8> -> !hal.buffer_view
    util.return %11 : !hal.buffer_view
  }
  util.func public @test_add_uint8(%arg0: !hal.buffer_view, %arg1: !hal.buffer_view) -> !hal.buffer_view attributes {iree.abi.stub} {
    %c-1_i32 = arith.constant -1 : i32
    %c0 = arith.constant 0 : index
    %device_0 = hal.devices.get %c0 : !hal.device
    %0 = util.null : !hal.fence
    %fence = hal.fence.create device(%device_0 : !hal.device) flags("None") : !hal.fence
    %1 = util.call @test_add_uint8$async(%arg0, %arg1, %0, %fence) : (!hal.buffer_view, !hal.buffer_view, !hal.fence, !hal.fence) -> !hal.buffer_view
    %status = hal.fence.await until([%fence]) timeout_millis(%c-1_i32) : i32
    util.return %1 : !hal.buffer_view
  }
}

ir-after-all.mlir.txt

I'd start by fixing the npy round tripping (e.g. in https://github.com/openxla/iree/blob/main/tools/test/iree-run-module-inputs.mlir). Can't fix the higher level programs if the low level tools are broken too.
Another thing we could do would be to allow ignoring some metadata when checking outputs, but that would just be a bandaid and not a robust fix.

The internals of the compiler have always been "signless integers". These are neither signed nor unsigned. Higher level tooling cares about the distinction but low level tools like iree-run-module just do what they are told.
My personal opinion is that a check tool, when confronted with a module that returns signless values and having an expected value that is sign-carrying, is well within its rights to re-interpret the result with its expecting sign semantics.

Agreed - internally we allow this signedness casting because it doesn't matter:
https://github.com/openxla/iree/blob/d884c5450ff89073d56f579ba3097a290d18b61b/runtime/src/iree/modules/hal/utils/buffer_diagnostics.c#L120-L129
Ideally bindings should at most be saying e.g. "I expect this to be ui32" and then comparing what it gets back to see if it's compatible (i32, si32, ui32, etc) instead of precisely trying to match what it gets back with enum equality. Outside of tests or really sloppy runners (of which we may be one in some cases :) there's not many realistic use cases where the invoker of a function has no idea what it's getting back or how to interpret it but also cares enough to fail if it doesn't exactly match.
w.r.t. numpy files: we will never be able to round-trip things correctly as numpy can't represent all of the types we can. it's also developer tooling and I don't think we really care to try to make it a source of truth for tests as it'll never be sufficient for all the tests we need to write. e.g., can't support i4, bf16, f8, etc in numpy files or any fun blocked/packed formats and we'll have to store them as opaque byte arrays and then we're back at needing the same fuzzy matching/casting as above ("do you have enough bytes/the right shape and are the bytes correct" and ignoring everything else).
A good litmus test for whether a generic test runner is depending on things it shouldn't is whether it will fail if a buffer view is returned with an IREE_HAL_ELEMENT_TYPE_OPAQUE_* element type and/or IREE_HAL_ENCODING_TYPE_OPAQUE. It's legal for the compiler/runtime to return every buffer view like that (and we will on stateless programs once we have a way to mark which state is private to the program so that we can avoid packing/unpacking state args/results between invocations).

https://github.com/nod-ai/SHARK-TestSuite/pull/146 proposed switching the comparison approach from using iree-run-module ... --expected_output= to using iree-run-module ... --output= and then loading the output into Python to use numpy comparison routines.
Looking at the C/C++ code in IREE, I think we can instead relax the metadata check here: https://github.com/openxla/iree/blob/05ff73f3b4298fb63f81f5038d33bda585165694/runtime/src/iree/tooling/buffer_view_matchers.c#L267-L273 , possibly gated behind a new flag defined here: https://github.com/openxla/iree/blob/05ff73f3b4298fb63f81f5038d33bda585165694/runtime/src/iree/tooling/comparison.cc#L21-L26 like
IREE_FLAG(
    bool, expected_allow_signedness_mismatches, true,
    "Allow mismatches between signless and signed types (e.g. si32 and i32)");

Another option would be switching from numpy reference output files to binary files

binary files are going to be best because of numpy not supporting all types as then you can pass in the exact types you expect per output instead of having to round-trip through numpy.

(the advantage of expected_output is that we can get reproducers that are easy to run/verify in debuggers/etc without having to use the test framework - if we dump files and then require the test runner to perform the match we'll make it harder to get standalone reproducers)

(the advantage of expected_output is that we can get reproducers that are easy to run/verify in debuggers/etc without having to use the test framework - if we dump files and then require the test runner to perform the match we'll make it harder to get standalone reproducers)

Yep! I gave similar feedback on https://github.com/nod-ai/SHARK-TestSuite/pull/146.

binary files are going to be best because of numpy not supporting all types as then you can pass in the exact types you expect per output instead of having to round-trip through numpy.

Sounds good. Switching test files from npy to bin would involve changing https://github.com/nod-ai/SHARK-TestSuite/blob/9464d503ddf37e658cf267254ac65a3d1f143344/iree_tests/onnx/import_tests.py#L132-L152 , possibly using code from https://github.com/nod-ai/SHARK-TestSuite/blob/9464d503ddf37e658cf267254ac65a3d1f143344/e2eshark/run.py#L255-L279. @PhaneeshB do you want to give that a try?

added changes here to keep using expected output with bin files to have finer control over output dtype
https://github.com/nod-ai/SHARK-TestSuite/pull/212


Unify crate pages

Same as before but with a fix for the 404 pages and a test to avoid regressions.
EDIT: Back to tab style but the "documentation" tab is now a button:

Now that I think about this more, I'm not sure about this change ... it makes the /crate page very inconsistent with respect to the release pages, e.g. https://docs.rs/releases/stars.

It's voluntary and I proposed to discussed about it. Discussion is still open. :)

Yeah, I think chasing the rustdoc styling for docs.rs is not the best choice, especially if we want to eventually make docs.rs in line with the website styling.

Agreed, that's why when we're still in "crate focus", we have a sidebar simply because the tab system is just not adapted. However, for the release pages, it totally makes sense (in my opinion).

Except that the current tab style is not appropriate for the crate pages because the behavior of the tabs isn't consistent.

I think having the button be more visible should help:

Looks good! Two notes:

Let's add some margin between the description and the button, to avoid having the ellipsis so close to the button itself.
I'd add a bit more padding to the button (dunno, 10px 15px?).

Also, it seems a bit off-centered.

Also, it seems a bit off-centered.

A bit more of precision on this one please. :laughing: (I'll implement the other remarks in the meantime)

I think the best solution to fix this is to put everything in a flexbox (not just the description) and have all the contents of the header on the left and the button on the right-

Mostly looks good now! The only two changes I'd make:

There are merge conflicts :)
There should be some padding-bottom on mobile below the crate name, ideally the same as the padding-top. Currently it's too close to the tabs.

Done!

I'm unsure about this change too :P I like making 'Documentation' a separate button, because it takes you to a whole new page. I don't like though that it's over on the right side of the screen - it's harder to find if you're looking in the old place and it's also away from the main focus, which is the crate title.
Maybe we could put it in the center instead (literally front and center ;)? Then it would be easier to find.

It's quite difficult to miss it though. But just by curiosity, where would you put it? (screenshot done with gimp please!)

This changed the 'about' page to look rather strange, I think I prefered it before:

Then it's a bug! I'll fix it.

About is fixed:

But releases are still broken:

We should really think about #996 :/
I'll review the rest in the meantime so you can fix bugs in parallel ;)

Fixed release page as well and fixed the nits.

We should really think about #996 :/

Yep but it's a tricky thing to do... We can use the same system we use in rustdoc but we still have the issue with getting the screenshot differences. But in here, I think this problem would be very limited considering that the build is quite small in comparison.

Thanks for working on this!


feat(Whimsical): Add Whimsical component

Fixes #179.
@spences10 Sorry I couldn't take the time to implement unit & integration tests 😢

Codecov Report

Merging #180 into main will decrease coverage by 1.07%.
The diff coverage is 37.50%.

@@            Coverage Diff             @@
##             main     #180      +/-   ##
==========================================
- Coverage   79.24%   78.17%   -1.08%
==========================================
  Files          76       78       +2
  Lines         607      623      +16
  Branches      109      117       +8
==========================================
+ Hits          481      487       +6
- Misses         99      105       +6
- Partials       27       31       +4

Impacted Files
Coverage Δ

...s/mdx-embed/src/components/whimsical/whimsical.tsx
28.57% <28.57%> (ø)

...ed/src/components/mdx-embed-provider/components.ts
100.00% <100.00%> (ø)

src/components/pinterest/pin.tsx
60.00% <0.00%> (ø)

src/components/mdx-embed-provider/components.ts
100.00% <0.00%> (ø)

src/components/whimsical/whimsical.tsx
28.57% <0.00%> (ø)

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 b69da84...6b02523. Read the comment docs.

@spences10 TY for merging this!
@amercier Thanks for this, excellent job by the way! That getPadding util is particularly brilliant. We'll probably look to replace the existing one... but as you say best not mess with it too much in case it breaks something. Perhaps once all the tests are in place we can make decisions like this without fear of breaking other things.
Nice one, and thanks for contributing!


Formation of the CGR, Share Exchange, Token Exchange, Stock Value calculation, New Share Limits

Formation of the CGR, Share Exchange, Token Exchange, Stock Value calculation, New Share Limits

Breakdown of CGR Formation setup with a separate Milestone.

See separate breakdown in Milestones.  About 96% completed.


Yaml from languagegraph and attackgraph

Sth that I noticed when working with an instance model of about 2M lines is that yaml is 10x or more slower to parse the yml file. A JSON version of the same file loads in 2 seconds instead.


Check dependabot alert about "path-parse"

Details:
https://github.com/EOSC-synergy/eosc-perf/security/dependabot/frontend_client/package-lock.json/path-parse/open

The link is dead

you have to login to github to see it.
but the alert seems to be for the "master" branch, i.e. might be not relevant, please, check

that one : https://github.com/EOSC-synergy/eosc-perf/security/dependabot  ?


Added charts for distance and RSSI

Added charts for distance and RSSI for Physical Web beacons.
It will be available when debug mode is turned on.
It's triggered when choosing any beacon in the list.
review: @mmocny

TBR.


错误: 找不到或无法加载主类 org.bcos.web3j.console.Runner ending .


The SCSS contents are returned instead of the compiled CSS

Hello,
I am trying to migrate from encore, and need to support some previous Bootstrap SASS modifications, so I found this library.
Problem:

The CSS file served to the browser contains the original SCSS-content instead of the compiled CSS. The filetype is .css though.

Troubleshooting:

bin/console sass:build does output compiled CSS to var/sass/admin.output.css
var/dart-sass/sass assets/styles/admin.scss returns compiled CSS
running bin/console sass:build and then asset-map:compile works, the browser gets loadable CSS
there are no error messages produced by bin/console sass:build -v

The missing step is that which I underlined from the documentation below:

My environment, relevant code snippets:

I am running the app in Docker to reflect my prod environment.  In development I bind-mount everything in the project folder into the Symfony container. (NOTE: I have also run bin/console sass:build from within the container; it produces the files, but the browser still receives SCSS content that it can't parse.)

Since admin.scss is not the default filename, I have configured it like:

# config/asset_mapper.yaml
framework:
    asset_mapper:
        # The paths to make available to the asset mapper.
        paths:
            - assets/
symfonycasts_sass:
  root_sass:
    - 'assets/styles/app.scss'
    - 'assets/styles/admin.scss'

In my twig template, I "import" the SCSS file directly.

{# admin.html.twig #}
...
  {% block stylesheets %}
  <link rel="stylesheet" href="{{ asset('styles/admin.scss') }}">
  {% endblock %}
...

The contents of the assets/styles/admin.scss files start with

/* assets/styles/admin.scss
@import "./helper/_variables";
@import "../../vendor/twbs/bootstrap/scss/bootstrap";
@import "./components/gedmo-history";

$navbarwidth: 13rem;
$sidebarbutton: 40px;
$sidebartransition: 0.4s;

.text-grey-0 { color: $grey-0 !important; }

...

Output of dart-sass and contents of var/sass/admin.output.css correctly inserted the imports shown above

** My thoughts **
So the missing step (swapping the compiled CSS contents upon request) seems to be where something is going wrong (?). But looking in this repo, I am not sure how that mechanism works. If someone could point me in the right direction that would be great.
Thanks

Tried looking some more at where this swap mechanism happens, but can't find it.
I tried downloading the LAST Stack symfonycasts code and installed this package and got it working quickly.
I also tried running my application using symfony serve outside of docker. Same issue as above.

Hi, I'm facing the exact same issue. Did you find a solution? Thanks.

Same here.

It seems to work when i add %kernel.project_dir%
symfonycasts_sass:
  root_sass:
    - '%kernel.project_dir%/assets/styles/app.scss'
    - '%kernel.project_dir%/assets/styles/admin.scss'

Hi, I'm facing the exact same issue. Did you find a solution? Thanks.

I stopped trying, intending to revisit in the future.

Hi, I'm facing the exact same issue. Did you find a solution? Thanks.

I stopped trying, intending to revisit in the future.

symfonycasts_sass

I have the same issue, testing multiple possibilities but not working for me :(

symfonycasts_sass

I have the same issue, testing multiple possibilities but not working for me :(

Have you added %kernel.project_dir% to the root_sass setting?

Hello,
i have same problem, i run bin/console asset-map:compile and it's working for me ;)

After tumbling on the problem I think this issue is actually a duplicate of https://github.com/SymfonyCasts/sass-bundle/issues/8.
Relative paths are not fully working because of how the bundle check if assets are supported (the default value is a full path).
This is why it's working fine with a full path as suggested by @nanotronic.

Good catch, @wryk ! Yeah, seems related to #8 . If the docs mislead it - we need to fix it, I suppose with %kernel.project_dir% is the best? Any volunteer for this? But with a longer perspective, I think we we should support relative paths as well, we probably could check if the path starts with / or no - if it starts with /- I would suppose it should be full path already. If no start / - then it's relative to %kernel.project_dir% path, and we should prepend %kernel.project_dir% to it. Any PRs are welcome!

I'm closing it in favor of #64 - v0.6.0 should fix it. Feel free to reopen if the issue still persists


Adding descriptions for filters

I think with the recent merge into dev, this has broken this PR. Are you able to resolve the conflicts please @rubyimrie  - then I will take a look. Thank you


Disposal Units not allowing Player entry

Description
Noticed today that players cannot enter disposal units anymore. There is a loading bar, option in the menu UI to do so, but once the action completes the player remains where they were.
Reproduction

Make funny trash loop to Captain's room
Try to get in
Notice that you cannot get in
Seethe

Additional context
My clown content has gone down 50% since this has happened.


New Feature - Entity detection

Added checks to ensure entities do not obstruct block placements
Added weights to make paths with entities in the way less favorable
Fixed various problems with the movement logic

Thanks for this, As it is a bit long I'll need some time to review it properly, but from a quick glance it looks fine. Can you run the linter (npm run fix) to fix the formatting and make the tests happy ?

Thanks for this, As it is a bit long I'll need some time to review it properly, but from a quick glance it looks fine. Can you run the linter (npm run fix) to fix the formatting and make the tests happy ?

Sure thing, sorry i'm new to node stuff and my IDE's settings were all wacked up. Those fixes will be committed momentarily

let's finish it ?

I think it is ready but I have absolutely no time to test it. Its a quite large change and should be at least checked for behavior and performances in some scenarios. Wouldn't be an issue if we had proper test, but i got no time to do that either.

Any news on this? @Karang

@IceTank do you feel like reviewing this?

I might have to redo this now that it is a quite a few commits behind (I probably should have split it up a little more). I do agree that having some unit tests would be useful but, I have no clue on what the best way of doing that is. If what you mean by unit tests is checking to make sure the bot can actually complete the paths it finds, simulating the world seems like it would not cover everything and there would be countless scenarios. Otherwise if you mean to test whether it finds the correct path through a test course then that is much simpler but, I don't know if there is an efficient way to create, load, run and measure so many test courses.

Have you tested this performance wise? It looks like the bot while look through ever entity loaded to check if it intersects with a given position whenever getBlock is called. This looks like it will really tank performance especially with many entities around. Maybe try and see if the bot can still move around when there are 500+ entities in render distance.
A better way to handle this would be to make an array that indexes entities by there floored x, y, z coordinates.
There are also some changes that do not directly have anything to do with the change you want to make. For instance in index.js. Idk how @Karang wants to handle this but a cleaner solution would be to make a separate pull request for those changes.

Have you tested this performance wise? It looks like the bot while look through ever entity loaded to check if it intersects with a given position whenever getBlock is called. This looks like it will really tank performance especially with many entities around. Maybe try and see if the bot can still move around when there are 500+ entities in render distance. A better way to handle this would be to make an array that indexes entities by there floored x, y, z coordinates.

I have not done any extensive performance testing but, the bot still functioned fine in a standardly generated world. I imagine that it does cost quite a bit though.
Indexing the entities would be ideal but I think there are a few reasons why I didn't do that. One reason is that most entities move quite a bit so you would still need to update the index fairly often. Another reason is that entities take up more than one block worth of space depending on their bounding box which matters on a sub-block level.
It has been a while since I touched this but, I think there were a few entity update events that could be tied into for updating such an index. Could also just update the entities from a chunk update. So the main issue is dealing with the bounding boxes. Probably the best solution is just to find every block the entity occupies and place it under those blocks in the index.

There are also some changes that do not directly have anything to do with the change you want to make. For instance in index.js. Idk how @Karang wants to handle this but a cleaner solution would be to make a separate pull request for those changes.

And as I said before, I should have split it up a bit more and it is now a little dated. It would probably be better if I just redo everything using the current branch.

Pathfinder and the path calculations are designed to run within one single tick. So you do not expect entities to move around while calculating a path. You could index all entities into an array at the start of the calculations and then use that instead of going through ever entity on every block that has to be checked. I think it is also save to assume that most entities do not move around when calculating the path. So in my opinion it is unnecessary to add the velocity to there position. Even for entities that do move around they wont get very far in one tick.
If you do want to remake this or make some changes you should also consider adding a system to the movements to check if the current path or the next few path nodes contain entities. You should expect other entities to move around if the bot is also moving around.

Continued in #281


Ship with ligature font

Let's ship with Fira or something, and have it automatically installed so ligatures work out of the box.
Suggest some free ligature fonts that we can include.

This is the first thing I've done after I've installed VimBox

Maybe consider using a patched font with ligatures? That way people would have support for devicons out of the box.

Another thought I had, was that we can auto-patch the user's font, and install it as a second version of their font (if it's not already patched). That way you could guarantee that people had the devicons / airline symbols regardless of font.


Get rid of the caasp_cmd.run state (bsc#1127036)

Get rid of the caasp_cmd.run state, as the retry is now part of the standard Salt cmd.run state (and it was messing with it).
Add an interval for the http.wait_for_sucessful_query

bsc#1127036
This SHOULD be ported to 3.0.

it was a race condition on terraform-libvirt :/

@mjura can you look at the orch.update failure?

failed : http://jenkins.caasp.suse.net/blue/organizations/jenkins/salt.integration/detail/PR-754/3/
rerunning to see if we fail always

@jordimassaguerpla  this time the Pipeline failed on boostrap orch  :name_badge:  we will need to wait next week to investiage more the other race condition. i will retrigger to see if it pass after failure :(

1 run passed, retriggering

2nd run was ok too. let's retrigger 3 times in a row

+ ./velum-interactions --update-minions --environment /srv/jenkins/workspace/salt.integration_PR-754/environment.json

/usr/bin/ruby

>>> [velum-bootstrap] Running Velum Interactions

update minion nodes

>>> User logs in

  User updates the cluster (FAILED - 1)

Failures:

  1) update minion nodes User updates the cluster

     Failure/Error: visit "/users/sign_in"

     Capybara::Poltergeist::JavascriptError:

       One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).

       ReferenceError: Can't find variable: jQuery

       ReferenceError: Can't find variable: jQuery

           at https://admin.devenv.caasp.suse.net/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1:555 in global code

       Error: Bootstrap's JavaScript requires jQuery

       Error: Bootstrap's JavaScript requires jQuery

           at https://admin.devenv.caasp.suse.net/assets/bootstrap.min.self-504d59678f10d79a661b6cecdce5b8c1d5bfd98e860614584c0a40399552d61f.js?body=1:7 in global code

     # ./.bundler/ruby/2.5.0/gems/poltergeist-1.15.0/lib/capybara/poltergeist/browser.rb:377:in `command'

     # ./.bundler/ruby/2.5.0/gems/poltergeist-1.15.0/lib/capybara/poltergeist/browser.rb:36:in `visit'

     # ./.bundler/ruby/2.5.0/gems/poltergeist-1.15.0/lib/capybara/poltergeist/driver.rb:97:in `visit'

     # ./.bundler/ruby/2.5.0/gems/capybara-2.14.4/lib/capybara/session.rb:269:in `visit'

     # ./.bundler/ruby/2.5.0/gems/capybara-2.14.4/lib/capybara/dsl.rb:50:in `block (2 levels) in <module:DSL>'

     # ./spec/support/helpers.rb:20:in `block in login'

     # ./spec/support/helpers.rb:11:in `with_status_ok'

     # ./spec/support/helpers.rb:19:in `login'

     # ./spec/features/05-upgrade-minions.rb:8:in `block (2 levels) in <top (required)>'

     # ./spec/spec_helper.rb:154:in `block (3 levels) in <top (required)>'

     # ./spec/spec_helper.rb:154:in `block (2 levels) in <top (required)>'

Finished in 2.25 seconds (files took 0.6118 seconds to load)

1 example, 1 failure

Failed examples:

rspec ./spec/features/05-upgrade-minions.rb:17 # update minion nodes User updates the cluster

script returned exit code 1

retriggered


Missing device configuration: Zooz ZEN37

Checklist

[X] It is not in the configuration DB

[X] It was not merged recently or has a pending PR

[X] The device was interviewed completely and has no missing or undefined IDs

Which device is missing?
Zooz ZEN37
Manufacturer ID
0x027a
Product Type
0x7000
Product ID
0xf003
Firmware Version
1.0.0
Is the device listed on the Z-Wave Alliance website?
No
Do you have a manual?
https://cdn.shopify.com/s/files/1/0218/7704/files/zooz-800-series-z-wave-long-range-wall-remote-zen37-800lr-manual.pdf

I'll submit this config I have this device now.


Images transition

This is a style issue. It would be quite nice to have an animation effect when an image is loaded. Just the regular fadeIn (like Jquery) would be fair enough. There is an example with canvas here.
I was trying to implement it myself but I found out that this actually happens in libpannellum.js and is quite complex.

Right now, after some fixes you made, the images transition does not work. Even setting the value to null. It appears a black image.
As far as I saw, removing the line 1343 in pannellum.js (where init() function is called)it solves the issue.
But I think this init function is doing a lot of stuff which I guess is useful. I kept testing, and I see that after the renderer (line 209) is reasigned, the image shown turns black. It looks like is something messed up with that renderer instance (when changing the hotspots).

I am unable to reproduce this; the image transitions still work fine for me. Is it black just for the fade, or does it stay black? I'm guessing nothing is printed to the console. While I don't think it will make a difference in this case, set things to undefined instead of null as this is what the code compares against.

If I don't put the option sceneFadeDuration, when I change the image, it shows a black image. The hotspots are there, and they're moving when I drag. But not the image.

I was able to track down the issue. With autoLoad specified in a tour, the autoLoad code was executed when each scene was loaded. This should never have happened, but it didn't affect anything before. A change I made caused this bug to manifest itself and break things; the extra call caused a second canvas to be created off-screen that displayed the image, while the on-screen canvas was blank. Now that I fixed it, things should work again.

Yes now is solved. Thanks!


Fix generation and metageneration

I was getting this odd errors where preconditions were failing on requests sent to the fake GCS server:
time=2024-09-23T12:27:05.260Z level=INFO msg="<IP_ADDRESS> - - [23/Sep/2024:12:27:05 +0000] \"POST /upload/storage/v1/b/tf-controller-lock/o?alt=json&ifGenerationMatch=0&name=helloworld-oci-auto-approve.lock&prettyPrint=false&projection=full&uploadType=multipart HTTP/1.1\" 412 149\n"

This does not seem to be an issue when talking to GCS from what I understand, considering the lock is in production, however it does not seem like the preconditions are set correctly.
According to docs the metagenerations start with 1, hence I changed that in the default new lock.
They also mention that "The metageneration property has no meaning without the generation property and should be used only in conjunction with it; it's meaningless to compare metadata generations of two object versions.", and that both can be used in preconditions, which seems to fit our use case. Added that in there to pair it up with metageneration, which seems to have solved the GCS server responding only with 412 (it still drops some 412s, but seems like the client knows how to recover now) to any refresh of locks.
Not sure if we need changes in tests for this apart from testing the field is not defaulting to zero? Seems like that comes from the the attributes, so as long as it gets changed we should be good?

Reference blog post https://www.joyfulbikeshedding.com/blog/2021-05-19-robust-distributed-locking-algorithm-based-on-google-cloud-storage.html


more platfroms in getBuildTarget

probably this is will be good idk

there isnt ios support for psych but

there's

there isnt ios support for psych but

What's stopping someone from making it then the variable could be useful to them if they do

You're missing a few afaik such as electron

electron = browser

Isn't lime test electron a thing iirc? So wouldn't it have its own target define?

https://lime.openfl.org/docs/getting-started/targets/

huh odd


Fixed typos, cmake requirement bumping to 3.24

A cleaned up version of former pull request (which is now a draft).

ignore it


GEODE-6989: Cache OQL Authorized Methods

The MethodDispatch and AttributeDescriptor classes now use the
QueryExecutionContext to cache the result of already authorized
methods; thus preventing the OQL engine from invoking the authorizer
for every object traversed and, instead, only invoke it once in the
lifetime of a query for every new method seen.
Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[X] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[X] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[X] Is your initial contribution a single, squashed commit?

[X] Does gradlew build run cleanly?

[X] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

@DonalEvans

I've just found a bug in this PR while working on GEODE-7283, so please don't review it yet.
Long story short, the key used to cache the authorization doesn't use the actual method authorized, allowing untrusted methods to be executed.
As an example, SELECT o.toSring(), o.getClass() FROM /region o will successfully authorize o.toString() (valid method) and store true into the cache with a fixed key, causing that all subsequents method invocations for the query (even forbidden ones like getClass()) to be wrongly allowed.

@DonalEvans @agingade @jhuynh1 @nabarunnag
This is ready for review now, cheers.


Is there any Problem while transfering file

I/r_gemma_example(22300): Compiler allocated 6489KB to compile void android.view.ViewRootImpl.performTraversals()
F/native  (22300): F0000 00:00:1723190524.790431   22300 llm_inference_engine.cc:92] Failed to get LLM params: INVALID_ARGUMENT: LLM model file is null
F/native  (22300): terminating.
F/native  (22300): F0000 00:00:1723190524.790431   22300 llm_inference_engine.cc:92] Failed to get LLM params: INVALID_ARGUMENT: LLM model file is null
F/native  (22300): terminating.
F/libc    (22300): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 22300 (r_gemma_example), pid 22300 (r_gemma_example)
Process name is dev.flutterberlin.flutter_gemma_example, not key_process

Hi! Did you upload the model following the instruction?

yes @DenisovAV we have to transfer model.bin
please change in documentation  .
adb push output_path /data/local/tmp/llm/model.bin
instead of output_path we need to push model.bin

@DenisovAV Also it hangs the app , app performace come down any solution

I updated the manual, about uploading the model, please take a look


Modularize geometry category

Description

modularizes the geometry category

Checklist:

[ ] Set target branch to main (current release) or v.next (next release)
[ ] Request a reviewer
[ ] Assign a reviewer
[ ] Tag reviewer in comment

Ready for review @Luiy0


Clarify idea for improvement 1.

When I was working through this, I found it not completely clear what was meant by 'instead of "6"'. I assumed the document refers to the move numbers in the move list, so that's what this change clarifies.

Looks like there's a merge conflict (prob b'c of PR #102). Rebase?

Rebased. Should work now...

Thanks~


new 6.X.X release

Feature Request
Is a 6.X.X release planned soon on npm? latest release was done more than a year ago (6.0.0 in august 2021) and a lot of code has been merged to master since then.

Any updates?

https://www.npmjs.com/package/cordova-plugin-camera


Add code coverage report to appveyor build.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ab8c7f0). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #11   +/-   ##
=========================================
  Coverage          ?   77.04%
=========================================
  Files             ?        9
  Lines             ?      318
  Branches          ?       48
=========================================
  Hits              ?      245
  Misses            ?       73
  Partials          ?        0

Impacted Files
Coverage Δ

set-login-build-task/set-login.ts
100% <ø> (ø)

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 ab8c7f0...22f3ae7. Read the comment docs.

PTAL


feat: Support shapes for queues and DBs

I've missed the point of adding theme support. Was there no support before but now at least basic support is added, right? Is there a way to use themes provided within structurizr itself?

I moved to use a theme to support shapes for tagged elements. Before this change, the shape was injected into the JSON model in a fragile way that broke after some time.
The theme approach should prove more stable. It should be possible to define your own themes either inline or with an external reference in your DSL file. There might be some limits as to what actual theme support is rendered with the C4-PlantUML exporter in use.