cannot build example on bare metal and general questions

compute library version: 18.08
Platform: armv7a
Compiles on: Linux

Problem description:
Hi,
I try to build the neon convolution example on bare metal using Xilinx SDK 2017.1. The compiler I'm using is arm-none-eabi-g++ 6.2.1 (also tried 6.3.1). And it always pops up error like
undefined reference to std::thread
undefined reference to std::condition_variable

which looks like arm-none-eabi-g++ doesn't support c++11 and pthread. I add -std=c++11 and -lpthread. But it doesn't help. I was wondering is there by any chance I could build the example in bare metal? Or can I build a one without those multithread features without compromising the convolution performance?
Thanks,
Yifan

I'm confused, why does "Operating System" says Linux ? Or is that the host ?
What scons command line did you use ?

@AnthonyARM  By linux I mean I use a linux operating system to compile the neon convolution example to a ELF file to run on the armv7a CPU. The compiler is arm-none-eabi-g++. I want the example to run on bare metal mode without a operating system on ARM CPU.
No, I didn't use scons to build. I compile Utils.cpp and neon_convolution.cpp to .o file. And then I use arm-none-eabi-g++'s linker to link Utils.o, neon_convolution.o, libarm_compute-static.a, libarm_compute_core-static.a and libarm_compute_graph-static.a (in dir /lib/linux-armv7a-neon) to generate the final .elf file. Every time I tried to link the error pops out (in my last post).
When I switch to compiler arm-linux-gnueabihf-g++ to compile and link, it built .elf successfully. This compiler is target for linux system on ARM (it's not bare metal). So I think at least my flow is correct. It's just the issue with arm-none-eabi-g++ compiler for bare metal.
Thanks,
Yifan

Hi @Yang-YiFan
Didn't you use scons to build the library for bare metal? Where did you get the static libraries from?
You should first compile the library with scons, ie: scons Werror=0 -j8 debug=1  os=bare_metal and then try and link with the example you want.
You can find more information in the documentation here: https://arm-software.github.io/ComputeLibrary/v18.08/index.xhtml#S3_4_bare_metal
Keep in mind that we've only tested bare metal with arm-eabi ans not arm-none-eabi.

Hi @mpekatsoula ,
I get it now. I just use the static library provided in the v18.08 release. I will recompile it. I still have 2 questions.

if I compile with bare metal, does it support multi-threading?
I have already build the neon convolution example using arm-linux-gnueabihf-g++. I was wondering does the neon convolution kernel automatically handles the multi-threading stuff or I have write it in the example src file?
Thanks,
Yifan

@Yang-YiFan

Unfortunately bare metal builds do not support multi-threading.
All the functions support multi-threading and run on all the available CPU cores. You don't have to make any changes.

@mpekatsoula
2. To be more specific, I'm using neon_convolution.cpp and neon_cnn.cpp examples. Do you mean I don't need to add any code and the examples can automatically run on all of the available cores?
3. Add 2more question, is there a efficient way to copy data from a C array to arm_conpute::Tensor? I have looked into the neon_copy_objects.cpp, but it still needs to iterate over different rows which is not efficient for a small feature map.
4. It seems like I can't copy tensor b to tensor a by just calling a=b. The compiler indicates that this method is deleted. So how exactly can I copy a tensor to another?
Thanks,
Yifan

@Yang-YiFan
2. Yes that's correct, the library will take care of the multi threading.
3. Because you don't know how much padding the tensor will require the correct way to copy data is like in the neon_copy_objects example.
4. You can use the CLCopy/NECopy functions in order to copy two tensors.

Closing this, reopen if needed.


Enable package auto discovery

This PR enables Laravel's package discovery for this package.

Build seems to fail though I'm not quite sure why 🤔 From the output it doesn't look like it has anything with this changeset.

lgtm


[Support] More than XXX errors were encountered in a row

Paste of Logs:
[11/02/2022, 5:11:44 pm] [Cmd4] More than *50* errors were encountered in a row for "Aircon" getValue. Last error found Getting: "TargetTemperature". Perhaps you should run in debug mode to find out what the problem might be.
[11/02/2022, 5:12:05 pm] [Cmd4] Setting Cinema On 0
[11/02/2022, 5:12:31 pm] [Cmd4] More than *50* errors were encountered in a row for "Aircon" getValue. Last error found Getting: "TargetHeatingCoolingState". Perhaps you should run in debug mode to find out what the problem might be.
[11/02/2022, 5:12:37 pm] [Cmd4] *** All characteristics are now being polled
[11/02/2022, 5:12:53 pm] [Cmd4] More than *100* errors were encountered in a row for "Aircon" getValue. Last error found Getting: "CurrentTemperature". Perhaps you should run in debug mode to find out what the problem might be.
[11/02/2022, 5:13:14 pm] [Cmd4] More than *150* errors were encountered in a row for "Aircon" getValue. Last error found Getting: "CurrentHeatingCoolingState". Perhaps you should run in debug mode to find out what the problem might be.
[11/02/2022, 5:13:35 pm] [Cmd4] More than *200* errors were encountered in a row for "Aircon" getValue. Last error found Getting: "TargetTemperature". Perhaps you should run in debug mode to find out what the problem might be.
[11/02/2022, 5:13:46 pm] [Cmd4] More than *250* errors were encountered in a row for "Aircon" getValue. Last error found Getting: "CurrentTemperature". Perhaps you should run in debug mode to find out what the problem might be.

Cmd4 Config:

Screenshots:

Advantage Air System:

Control Unit: e-zone
Temperature Sensors:  No

Homebridge Environment:

Node.js Version: v16.14.0
NPM Version: 8.3.1
Homebridge Version: 1.4.0
homebridge-cmd4 Version: homebridge-cmd4 v6.1.1
homebridge-cmd4-AdvantageAir Version: homebridge-cmd4-advantageair v3.2.0
Operating System: Raspbian

I've seen that someone else had this issue and it has been closed. Some of the troubleshooting that I have done is to revert to previous versions of both Cmd4 & Advantage Air Cmd4 since I never had this issue before. I have also completely removed both plugins and reinstalled. No luck.
I'm on a raspberry pi 4 and running homebridge as a standalone program and not in docker. My plugins are in the /usr/lib/node_modules/ folder.

I would say if you have been on v3.2.0 of homebridge-cmd4-advantageair since before the issue experienced today then that means it is not a bug in our code. Same with if you have been on v6.1.1 of homebridge-cmd4. The beta for these was extensively tested before release and was found to cause no issues. If you can let me know if you have done absolutely anything new to your RPi prior to this problem, otherwise I think it is your Advantage Air control tablet on the wall that has frozen up.

The biggest change was that I moved my setup from a Mac to a raspberry pi and restored the settings.
However, everything was working great even through our beta test sessions and these were done on the RPi, so I don't think its that.
Another change was that the Advantage Air app was updated recently and I think this is what broke it, at least on my end.
I've restarted the wall tablet but no luck! I will try removing and reinstalling again.

Another change was that the Advantage Air app was updated recently and I think this is what broke it, at least on my end.

This will not be the problem as mine update and I have no issue :)

The biggest change was that I moved my setup from a Mac to a raspberry pi and restored the settings.

Bingo! I think we have the issue :D did you refollow the the installation instructions? I would like to guess that maybe you did not install 'jq' and 'curl'. Also, have you used the shell check tool, that will usually tell you if you are missing something in your install?

Yes I did.
I can query both jq and curl with the --help argument

Bugger was hoping it was just that simple... Can you try the shell check too please as detailed in step 9 and onwards and let me know what error it comes up with?

The shell check passed.

Hmmm and there is still an issue after the shell check passed? Are the errors only for Aircon and not the other accessories?

Yeah its just for the Aircon..everything else is fine.
I am getting a 'google play services' has stopped error constantly on the tablet now but don't know if it has anything to do with anything!
Another change I remembered was that I had added EZone integration to Home Assistant to try out. I tried that instance now and it seems to be working fine. I have since stopped that service on Home Assistant thinking that it might be interfering but not so. Still getting the errors in Homebridge.
Weird!

I am getting a 'google play services' has stopped error constantly on the tablet now but don't know if it has anything to do with anything!

I would not expect that to be causing any issues, if it was you would have issues using the main app on your phone.

Another change I remembered was that I had added EZone integration to Home Assistant to try out.

I really cant speak for their integrations and how it might affect mine... For example I have a similar integration like this for my Hisense TV and I thought I would try someone else's actual plugin for it. I could not get theirs to work and it completely broke my set up through cmd4 for my Hisense TV. I had to uninstall all of the tools and re-install them to get it working again in the end. I am hoping this is not your issue.
Before we suspect that though, can I see your config for just the Aircon? I have one last hunch, but never thought it would cause the issue in the latest version.

Sure:
{
"platform": "Cmd4",
"name": "Cmd4",
"outputConstants": false,
"statusMsg": true,
"timeout": 5000,
"stateChangeResponseTime": 0,
"constants": [
{
"key": "${IP}",
"value": "<IP_ADDRESS>"
}
],
"queueTypes": [
{
"queue": "A",
"queueType": "WoRm"
}
],
"accessories": [
{
"type": "Lightbulb",
"displayName": "Cinema",
"on": "FALSE",
"brightness": 50,
"name": "Cinema",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "brightness"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "z02 ${IP}"
},
{
"type": "Lightbulb",
"displayName": "Study",
"on": "FALSE",
"brightness": 50,
"name": "Study",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "brightness"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "z03 ${IP}"
},
{
"type": "Lightbulb",
"displayName": "Master",
"on": "FALSE",
"brightness": 50,
"name": "Master",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "brightness"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "z04 ${IP}"
},
{
"type": "Lightbulb",
"displayName": "Xxxxxx",
"on": "FALSE",
"brightness": 50,
"name": "Dylans",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "brightness"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "z05 ${IP}"
},
{
"type": "Lightbulb",
"displayName": "Guest",
"on": "FALSE",
"brightness": 50,
"name": "Guest",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "brightness"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "z06 ${IP}"
},
{
"type": "Lightbulb",
"displayName": "Spare",
"on": "FALSE",
"brightness": 50,
"name": "Spare",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "brightness"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "z07 ${IP}"
},
{
"type": "Fan",
"displayName": "Fan",
"on": "FALSE",
"rotationSpeed": 100,
"name": "Fan",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "rotationSpeed"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP}"
},
{
"type": "Thermostat",
"displayName": "Aircon",
"currentHeatingCoolingState": "OFF",
"targetHeatingCoolingState": "OFF",
"currentTemperature": 24,
"targetTemperature": 24,
"temperatureDisplayUnits": "CELSIUS",
"name": "Aircon",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "currentHeatingCoolingState"
},
{
"characteristic": "targetHeatingCoolingState"
},
{
"characteristic": "currentTemperature"
},
{
"characteristic": "targetTemperature"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP} noSensors",
"linkedTypes": [
{
"type": "Fan",
"displayName": "Fan Speed",
"on": "FALSE",
"rotationSpeed": 100,
"name": "Fan Speed",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "rotationSpeed"
}
],
"state_cmd": "'/usr/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP} fanSpeed"
}
]
}
]
}

Sweet, I thought so and hope this isn't the cause haha... Can you remove noSensors  from the "state_cmd_suffix" of your Thermostat? The latest version no longer requires it anymore and the release notes would have told you to remove it from your config when you updated; keeping it was not meant break anything though...

Dammit that it is still a problem, but good to know that was not the issue... Are the other accessories working in HomeKit, the Lightbulb zones and the Fan?
If you have not already, can you please delete the Homebridge UI cache for the Thermostat like I had you do once before for the Lightbulb accessories?

Only the main Aircon setting seems to be working.
Deleted the cache as earlier.
No change.

When you say the 'main Aircon', do you mean setting it to cool/heat/off is the only part working? It may then mean we do have an issue with the latest version in how it handles the set and get for the temperature. We suspected some issues that we are working on at the moment, but we have not seen it actually affect anyone yet...

However if that was the case, going back a version of homebridge-cmd4-advantageair and adding noSensors back in would fix the issue; which sounds like did not work for you... I need to have a bit of a think, fault finding from work is always hard haha...

Yeah... I was just going to say that...
No stress mate...not mission critical for me...we can chip at it slowly if it helps...

I just hate leaving people hanging with a broken system haha... So just last sanity checks, out of all accessories and their functions; what is working in this list?

Lightbulb:

On/Off
Brightness (%)

Fan:

On/Off
Rotation Speed (%)

Thermostat:

Cool/Heat/Off
Set Temperature
Get Temperature (reading value returned)

Last two sanity checks:

Is the IP address in your config correct your new RPi?
What is returned from the command bash -V?

No dramas mate.
I’m glad you’ve done this much for the community.
I’ve disabled it for the time being but will get back to you tomorrow with the checklist below.
Have a good night at work 😉😑
Kind regards,
Denny Philip
On 11 Feb 2022, at 20:25, Mitch Williams @.***> wrote:

I just hate leaving people hanging with a broken system haha... So just last sanity checks, out of all accessories and their functions; what is working in this list?
Lightbulb:
On/Off
Brightness (%)
Fan:
On/Off
Rotation Speed (%)
Thermostat:
Cool/Heat/Off
Set Temperature
Get Temperature (reading value returned)
Last two sanity checks:
Is the IP address in your config correct your new RPi?
What is returned from the command bash -V?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.

No dramas mate.
I’m glad you’ve done this much for the community.
I’ve disabled it for the time being but will get back to you tomorrow with the checklist below.
Have a good night at work 😉
On 11 Feb 2022, at 20:25, Mitch Williams @.***> wrote:

I just hate leaving people hanging with a broken system haha... So just last sanity checks, out of all accessories and their functions; what is working in this list?
Lightbulb:
On/Off
Brightness (%)
Fan:
On/Off
Rotation Speed (%)
Thermostat:
Cool/Heat/Off
Set Temperature
Get Temperature (reading value returned)
Last two sanity checks:
Is the IP address in your config correct your new RPi?
What is returned from the command bash -V?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.

No worries Denny, have a good night and let us know how you go :)

I just hate leaving people hanging with a broken system haha... So just last sanity checks, out of all accessories and their functions; what is working in this list?

Lightbulb:     Not working at all

On/Off.
Brightness (%)

Fan:                All working

On/Off
Rotation Speed (%)

Thermostat:      All working

Cool/Heat/Off
Set Temperature
Get Temperature (reading value returned)

Last two sanity checks:

Is the IP address in your config correct your new RPi?    Checked ok
What is returned from the command bash -V?
bash: -V: invalid option
Usage:  bash [GNU long option] [option] ...
bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--pretty-print
--rcfile
--restricted
--verbose
--version
Shell options:
-ilrsD or -c command or -O shopt_option         (invocation only)
-abefhkmnptuvxBCHP or -o option

One thing I've noticed is that the commands keep sending rather than send once and stop. Is it probably cause there's no feedback?
[12/02/2022, 10:35:18 am] [Cmd4] Setting Fan Speed RotationSpeed 100
[12/02/2022, 10:35:28 am] [Cmd4] More than 50 errors were encountered in a row for "Fan Speed" getValue. Last error found Getting: "RotationSpeed". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 10:35:29 am] [Cmd4] Setting Fan Speed On 1
[12/02/2022, 10:35:44 am] [Cmd4] More than 50 errors were encountered in a row for "Study" getValue. Last error found Getting: "Brightness". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 10:35:54 am] [Cmd4] Setting Fan Speed RotationSpeed 100
[12/02/2022, 10:35:54 am] [Cmd4] More than 100 errors were encountered in a row for "Fan Speed" setValue. Last error found Setting: "RotationSpeed".  Last error found Getting: "Brightness". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 10:36:47 am] [Cmd4] More than 100 errors were encountered in a row for "Master" getValue. Last error found Getting: "Brightness".  Last error found Getting: "Brightness". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 10:37:32 am] [Cmd4] Setting Fan Speed RotationSpeed 100
[12/02/2022, 10:37:44 am] [Cmd4] More than 50 errors were encountered in a row for "Spare" getValue. Last error found Getting: "Brightness". Perhaps you should run in debug mode to find out what the problem might be.

No worries.
That is correct, I used the sudo apt-get install.
Have a good shift.

Sweet, can you use sudo apt remove For both jq and curl and then reinstall them? Next can you check bash -V for me as well?

Done.
bash -V still gives me:
`bash:`` -V: invalid option
Usage:	bash [GNU long option] [option] ...
bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--pretty-print
--rcfile
--restricted
--verbose
--version
Shell options:
-ilrsD or -c command or -O shopt_option		(invocation only)
-abefhkmnptuvxBCHP or -o option
'

No change
[12/02/2022, 5:46:51 pm] [Cmd4] More than 50 errors were encountered in a row for "Xxxxx" getValue. Last error found Getting: "On". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:47:31 pm] [Cmd4] More than 100 errors were encountered in a row for "Fan Speed" getValue. Last error found Getting: "RotationSpeed". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:48:03 pm] [Cmd4] More than 150 errors were encountered in a row for "Study" getValue. Last error found Getting: "On". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:48:13 pm] [Cmd4] *** All characteristics are now being polled
[12/02/2022, 5:48:45 pm] [Cmd4] More than 200 errors were encountered in a row for "Master" getValue. Last error found Getting: "On". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:49:16 pm] [Cmd4] More than 250 errors were encountered in a row for "Study" getValue. Last error found Getting: "Brightness". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:49:58 pm] [Cmd4] More than 300 errors were encountered in a row for "Spare" getValue. Last error found Getting: "On". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:50:29 pm] [Cmd4] More than 350 errors were encountered in a row for "Spare" getValue. Last error found Getting: "On". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:51:10 pm] [Cmd4] More than 400 errors were encountered in a row for "Xxxxx" getValue. Last error found Getting: "Brightness". Perhaps you should run in debug mode to find out what the problem might be.
[12/02/2022, 5:51:50 pm] [Cmd4] More than 450 errors were encountered in a row for "Fan Speed" getValue. Last error found Getting: "On". Perhaps you should run in debug mode to find out what the problem might be.

The last time I have this kind of errors was later found to be jq command not found.  I wonder this could be the case for @coolcaper777 as well.
can you do which jq
if is /usr/bin/jq or /usr/local/bin/jq then it should be good and the error is not due to jq command not foune.  If it is something else, for example /opt/homebrew/Cellar/....., then it is the jq problem

hi @uswong,
which jq
returns
/usr/bin/jq

bash -V still gives me:

I had the command wrong by the looks but that still means bash is installed.
@uswong you beat me to the punch, I had only just thought of that but had to get my burger order in for last night shift take away night lol

/usr/bin/jq

Looks like we are good for that then and not the issue you faced Ung Sing.

@uswong you beat me to the punch, I had only just thought of that but had to get my burger order in for last night shift take away night lol

yum

I am really damn stumped over this one... I have had a user transfer from mac to RPi in the past who had issues but that ended up some of things we have already tried. Denny, which Raspbian image are you using? The Homebridge one, the standard Raspbian or Raspbian Lite?

Cool. jq is good then. One suspect eliminated :)

Ung Sing, thanks for jumping into this one and helping out. Do have any other ideas for anything we can try? If you have read through this all, config is good, the applications are installed, it passes the shell check tool, control tablet is not frozen...
Actually Denny, can you try the following command from your RPi terminal? Just change it out for you IP adresss:
curl http://<IP_ADDRESS>:2025/getSystemData | jq '.aircon.ac1.zones.z01.measuredTemp'

I am really damn stumped over this one... I have had a user transfer from mac to RPi in the past who had issues but that ended up some of things we have already tried. Denny, which Raspbian image are you using? The Homebridge one, the standard Raspbian or Raspbian Lite?

Its the standard Raspbian one..the arm64 version.
Hang on.....I might have something

The next suspect I can think of is an incomplete json file from the aircon system.  can you have a look at the directory /tmp and you should find a lot AirconError-*.txt files, open one of them.  If my suspicion is true it will most likely look like this:
Get Study Brightness
jq failed
return code: 4
result:
data1:{"aircons":{"ac1":{"info":{"aaAutoFanModeEnabled"..........
data2:.aircons.aci.info.z0x.value
If this turns up to be the case then the solution is to increase the "timeout": 5000 in your config to something huge like "timeout": 60000, then reboot homebridge.
If this turns up not to be the case, another suspect will be  eliminated.

Hang on.....I might have something

Drum roll...

If this turns up to be the case then the solution is to increase the "timeout": 5000 in your config to something huge like "timeout": 60000, then reboot homebridge.

Very good point Ung Sing! You are starting to know more about this project that me hahaha...

Gents, I think it was a messed up homebridge config file.
After I removed the no sensors part from the Thermostat yesterday, as you instructed @mitch7391 , I noticed that it never showed up in the error list anymore.
Now, I removed the space from one of the zones in the state_cmd_suffix": "z07 ${IP} between the z07 and the $, saved it, added the space back, saved it and restarted homebridge. Needless to say, that zone never showed up again in the error list!!!
Did the same with the other zones and it all looks GREAT now!! Not an error in sight at the moment and I can control it from HomeKit.
I am sure there is an easier way to do it but this worked for me :)
I did as @uswong suggested and it seems that the IP address of the aircon did not pass through as the results show below of the AirconError txt file:
Get Guest On
curl faicurl failed
return code: 3
result:
data1: http://:2025/getSystemData
data2:

After I removed the no sensors part from the Thermostat yesterday, as you instructed @mitch7391 , I noticed that it never showed up in the error list anymore.

Oh! I just assumed you had only shown me a snippet of the logs that just did not have that in it anymore...

Now, I removed the space from one of the zones in the state_cmd_suffix": "z07 ${IP} between the z07 and the $, saved it, added the space back, saved it and restarted homebridge. Needless to say, that zone never showed up again in the error list!!!

Hmmmmm errrrr.... This should not be a problem or be the case lol mine and Ung Sing's have a space between them... I wonder if something is up with the latest version of homebridge-cmd4, as the patch release for that was to fix some errors with using spaces. You can read it here.
That being said I am so glad to hear you have it working!

Oh! I just assumed you had only shown me a snippet of the logs that just did not have that in it anymore...

I did. I thought it was a generic error and nothing to do with a specific zone or anything like that.

Hmmmmm errrrr.... This should not be a problem or be the case lol mine and Ung Sing's have a space between them... I wonder if something is up with the latest version of homebridge-cmd4, as the patch release for that was to fix some errors with using spaces. You can read it here.

Mitch, I don't really think it had anything to do with the spaces 'cause I added them back. I think it might be more of an error with the config file not saving properly or something along those lines. I have read that these SD cards are famous for read/write errors. Maybe time to look for an SSD or something!

That being said I am so glad to hear you have it working!

Thank you again for sacrificing your time and patience to help me sort this out. If you're in Perth, I'd love to buy you a beverage of your choice or even contribute something towards the project!
Thanks Ung Sing for your tips as well!

@uswong I have just had another user report this issue and once again it has started with just the Thermostat; they also are a set up with no sensors. I am trying to remember back to some things John said, our stable version currently still uses this method:
         # Check if any zones have "rssi" value != 0 and != "null", if so, set noSensors=false
         for (( a=0;a<=9;a++ ))
         do
         parseMyAirDataWithJq '.aircons.ac1.zones.'${zoneArray[a]}'.rssi'
            if [ $jqResult != 0 ] && [ $jqResult != "null" ]; then
               noSensors=false
               break
            fi
         done

Which if I recall correctly, John says should not work or would have issues? I know we have gone a different route in the beta I will release today. I am thinking it is that or all the shell warnings we have now fixed. Thoughts?

What John said was not referring to this one he was referring to the version under testing.
The stable version as above is working fine.


Picture Image Base64

Hi,
My webapi return this json sctructure

this name-value "marca" image is in base64 format, works perfectly when converting and also works in fastreport when using TextRenderType = HtmlTags property

First problem:

fastreport community renders the image but doesn't respect the html width and heigth tags so I can resize the image, detail that the object is a text and not a picture
Obs: works fine on webreport
Second problem:
Simply placing the object formatted by the designer in the report generates the following error:

In CrystalReport(SAP) when I made this bind I used the picture object (fastreport don't work),
as it is today, I have to manipulate the image to upload it to be right in the report

Hi you might already found a solution for yourself, but I want to add mine just in case. You can actually Right click on the JSON table then click on new Calculated Column and on the property panel of the new calculated column, set DataType to Byte[], expand the Expression popup editor and type in
Convert.FromBase64String([JSON.item.Image]) whereas JSON.item.Image is your Base64 string column


cmake: Fix zephyr_interface getter functions to return lists

The cmake functions for extracting zephyr_interface information, such as
include directories and compile definitions, are supposed to support
returning lists, however their use of $JOIN:, caused them to always
return strings. This caused problems when refactoring MicroPython to
build as a cmake target, therefore we rework these functions to return
lists as expected.
Signed-off-by: Maureen Helm<EMAIL_ADDRESS>This is needed for micropython/micropython#6542

The cmake functions for extracting zephyr_interface information, such as
include directories and compile definitions, are supposed to support
returning lists, however their use of $JOIN:, caused them to always
return strings.

It is not only the join that might be an issue here.
More the fact that includes / compile flags might contain CMake generator expressions.
Generator has several advantages, one major is that the are not CMake order processing dependent, that means flags added later during CMake configure stage is still taken into consideration. (before this was changed, the commands in use could risk to not include ALL Zephyr build flags)
Unfortunately, the use of generator expression means that it cannot be treated as a plain string.
But that is fine as long as they are used on CMake functions acception generator expressions (which must functions related to target does).

This caused problems when refactoring MicroPython to
build as a cmake target, therefore we rework these functions to return
lists as expected.

I would be happy to assist, if you can provide a little bit more info on what problem you see / how to reproduce.

@MaureenHelm please check if this https://github.com/zephyrproject-rtos/zephyr/pull/30155 fixes the issue you see in https://github.com/micropython/micropython/pull/6542


xUnit reporter produces file names in an invalid format

XUnit files that the reporter produces are identical due to invisible UTF characters.

This should be fixed with the latest version of WebdriverIO


Add Cognitive complexity sniff

Ref #787

I gonna study it today.

This is working? I seems good. I can test this tomorrow.

What do you mean "PDF"? What is the PDF?

He means the pdf linked in the docblock. It's the paper this is based on.
https://www.sonarsource.com/docs/CognitiveComplexity.pdf
@TomasVotruba Nice work. I skimmed through the pdf and this indeed looks much more intuitive than cyclomatic complexity. Looking forward to discover too complex parts of code using this.

@edobarnas it all in the description of the PR. There is issue reference, check it.

@enumag Thank you! I'm happy IT finally meets psychology :)
It opened another door to me, to "coherent cognitive complexity".
Imagine you have:

5 methods of complexity 2
and 5 methods of complexty 10

Brains jumps from easy to complex, back and forth and is quickly exhausted. Imagine you'd watch a movie, than a short video, movie than a short video...
Better to "consume" would be:

10 methods of complexty 5

Easy, consistent, brain is stimulated with one level. This of course related to code reading.

I already understand. Thanks.

@EdoBarnas My point was to check the PR description first. You can find more info about the PR there. At least I link to the source and all related informations.

I've just added 5 code test cases from the PDF, all passes well

I wonder if the CyclomaticComlexitySniff hsa now any value


Pressing space key activating GUI buttons instead of writing a space.

If I added a page or went to a page, pressing space will activate the GUI button last pressed instead of adding a space in the text I'm writing. I have to click the up/down arrow at the top left of the screen to put the cursor back on the page. Seems like this would be an easy fix by just refocusing the text field after a button is pressed.
Edit: this is for Minecraft v1.20 using Fabric. version 3.0.0 of the notebook mod

Yeah, this is an issue with 1.20+ when using the arrow keys.
I noticed it in development but it's proving quite difficult to fix, I'm not 100% sure how to override the game's default behaviour.
Hopefully will be fixed soon, just depends how long it takes for me to figure out what part of Minecraft's code controls the button highlighting.

Fixed in this latest commit, not the best fix but a fix nonetheless


Adds capability to provide DisplayNameProvider for derived RecordType

-Added Capability to pass DisplayNameProvider to RecordType via Constructor
-Added Test that passes Implementation of DisplayNameProvider to RecordType and verified it is working as expected.

:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Connectors.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Core.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Interpreter.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.LanguageServerProtocol.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Transport.Attributes.dll

:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Connectors.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Core.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Interpreter.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.LanguageServerProtocol.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Transport.Attributes.dll

:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Connectors.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Core.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Interpreter.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.LanguageServerProtocol.dll
:heavy_check_mark: No Binary Compatibility issues for Microsoft.PowerFx.Transport.Attributes.dll


Add ability to serialize the JMESPath AST

This allows the JMESPath AST to be parsed, then modified, then reserialized. Use cases include things like being able to modify
JMESPath expressions found in waiters so that field extraction matches any normalization changes code generators make to object keys (e.g., using snake_case in Ruby as opposed to the member names provided in the model).
To test, every valid expression from the jmespath test suite is parsed, serialized, and reparsed. The originally parsed AST is compared against the reparsed AST to ensure they are equal. Every JMESPath expression used in AWS waiters is included as a test case too.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Nice!


Is it possible to implement worker in JerryScript?

Is it possible to implement worker(like web worker) in JerryScript?
if it's available, where can I get some examples or guides?

Hi, please check the following example: https://github.com/jerryscript-project/jerryscript/blob/master/docs/02.API-REFERENCE.md#jerry_context_alloc

thanks!
I see, so JerryScript can create multi-threads.
But I am still confused about the details.
How can I implement postMessage,addEventListener,removeEventListener...in JerryScript? @rerobika

I see, so JerryScript can create multi-threads.
Nope, JerryScript cannot create threads. The linked example only shows that the engine is able to work in a multi threaded context. Please note that those independent contexts cannot pass value to each other.

If I were you I'd definitely use Promises or async functions to build and own event queue to handle the listener events. However, it's still single threaded, but the jobs can communicate with each other.


Clustering crashes: ValueError("Columns must be same length as key") - too little input text maybe?

Hi!
I was able to reproduce the example at: https://microsoft.github.io/graphrag/posts/get_started/
However when I switch to use the exact same method but with some shorter fictional stories, it crashes during the clustering part.
Text input:
The input text is that I paste this into a txt: https://gist.github.com/simoncelinder/0fbb9aaebed1e21801ab6c6e11a0dda5
Error:
When then running the python -m graphrag.index --root ./ragtest I get (where my added printouts suggest that the cluster_graph function gets empty list input):

Maybe less relevant since downstream from this problem - inspecting the log files suggest shape mismatch:

21:21:04,371 graphrag.index.run ERROR error running workflow create_base_entity_graph
Traceback (most recent call last):
File "/Users/simon/git/quick-exp/.pyenv/lib/python3.11/site-packages/graphrag/index/run.py", line 323, in run_pipeline
result = await workflow.run(context, callbacks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/simon/git/quick-exp/.pyenv/lib/python3.11/site-packages/datashaper/workflow/workflow.py", line 369, in run
timing = await self._execute_verb(node, context, callbacks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/simon/git/quick-exp/.pyenv/lib/python3.11/site-packages/datashaper/workflow/workflow.py", line 410, in _execute_verb
result = node.verb.func(**verb_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/simon/git/quick-exp/.pyenv/lib/python3.11/site-packages/graphrag/index/verbs/graph/clustering/cluster_graph.py", line 102, in cluster_graph
output_df[[level_to, to]] = pd.DataFrame(
~~~~~~~~~^^^^^^^^^^^^^^^^
File "/Users/simon/git/quick-exp/.pyenv/lib/python3.11/site-packages/pandas/core/frame.py", line 4299, in setitem
self._setitem_array(key, value)
File "/Users/simon/git/quick-exp/.pyenv/lib/python3.11/site-packages/pandas/core/frame.py", line 4341, in _setitem_array
check_key_length(self.columns, key, value)
File "/Users/simon/git/quick-exp/.pyenv/lib/python3.11/site-packages/pandas/core/indexers/utils.py", line 390, in check_key_length
raise ValueError("Columns must be same length as key")
ValueError: Columns must be same length as key

So to reproduce this problem one would just put the text example in the input file (input/book.txt) and execute exactly as in the guide. I tried tweaking some params in settings.yaml as I assumed the problem was with the shorter input text, like various lengths, chunk sizes, max num clusters etc but without any luck so far.
My versions:

Python: 3.11.9
Graphrag: 0.1.1
OS: MacOS Sonoma 14.5

Any ideas? :-)
Thanks in advance and this seems like a really nice tool!

I was not able to reproduce the error you've faced. The process completed successfully on my end, and I can see the communities generated, with their summaries. In my setup, I use GPT4-o, otherwise it's based on the standard library.
If you explore the folder structure in outputs, you can find artefacts, as well as interesting logs outputs\{timestamp}\reports\ .
For example, make sure that you are not hitting some rate limits that prevent you from proceeding further down in the pipeline process.
You can also find the artifacts of each step generated in a parquet file in the artifacts folder. I use tad to explore the contents of the files.
PS: Writing part of the story in 1st person is ingenious if you ask me - I wonder if you need to modify your prompt or entity configuration to make sure the LLM retrieves the narrator as an entity.

Ok will try again with GPT4-o!
(The main idea is to test the capability to combine together stories told from different perspectives also “about” the central person, hence not always first person perspective, thanks for the input about checking the prompt though 👍🏻.)

Seems to work now, maybe it was just my project what was in some weird state or the env variables having comments, other variables in .env or not names exactly right. Works with all the defaults incl default LLM. Thanks for the help! 💪🏻

So the short input was not a problem?
Can you please list the changes you made from the non working config to produce the working config?
You mentioned using gpt4o - was this a change you made? I'm getting this error trying to run with a locally hosted llama3 model.

I had same issue and I was using vLLM like https://github.com/microsoft/graphrag/issues/357
The problem got solved after pip install git+https://github.com/microsoft/graphrag

environment:
python:3.,11
system: ubuntu
model: llama3：8b&nomic
配置 ： 3090&24G显存
learn url : https://blog.stoeng.site/20240707.html
运行下面的命令创建pipe报错
python -m graphrag.index --root ./ragpdf
error:
{"type": "error", "data": "Community Report Extraction Error", "stack": "Traceback (most recent call last):\n  File "/home/fox/ai/graphrag/graphrag/index/graph/extractors/community_reports/community_reports_extractor.py", line 58, in call\n    await self._llm(\n  File "/home/fox/ai/graphrag/graphrag/llm/openai/json_parsing_llm.py", line 34, in call\n    result = await self._delegate(input, **kwargs)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/ai/graphrag/graphrag/llm/openai/openai_token_replacing_llm.py", line 37, in call\n    return await self._delegate(input, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/ai/graphrag/graphrag/llm/openai/openai_history_tracking_llm.py", line 33, in call\n    output = await self._delegate(input, **kwargs)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/ai/graphrag/graphrag/llm/base/caching_llm.py", line 104, in call\n    result = await self._delegate(input, **kwargs)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/ai/graphrag/graphrag/llm/base/rate_limiting_llm.py", line 177, in call\n    result, start = await execute_with_retry()\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/ai/graphrag/graphrag/llm/base/rate_limiting_llm.py", line 159, in execute_with_retry\n    async for attempt in retryer:\n  File "/home/fox/rag2_env/lib/python3.11/site-packages/tenacity/asyncio/init.py", line 166, in anext\n    do = await self.iter(retry_state=self._retry_state)\n         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/rag2_env/lib/python3.11/site-packages/tenacity/asyncio/init.py", line 153, in iter\n    result = await action(retry_state)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/rag2_env/lib/python3.11/site-packages/tenacity/_utils.py", line 99, in inner\n    return call(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^\n  File "/home/fox/rag2_env/lib/python3.11/site-package
在win上和mac上均创建管道失败，help me! please!

Hi!
Sorry for late reply!

I did not change LLM, only using default
I made a new .env file from scratch that ONLY had the credential for graph_rag nothing else
Kept the short text in my example
Did not change any prompts
I made sure to nuke the entire folder every time trying something new, for this process I made a bash script to help (can provide if someone wants it)

Here is the bash script I use now if of use to someone
`echo deleting ragtest folder
rm -rf ./ragtest
echo creating ragtest folder
mkdir -p ./ragtest/input
echo copying input text file with only GRAPHRAG_API_KEY=
cp book.txt ./ragtest/input/
echo initializing index / creating project
python -m graphrag.index --init --root ./ragtest
echo copying .env file
cp .env ./ragtest/
echo running pipeline
python -m graphrag.index --root ./ragtest`

Hello, I also encounter same error below

Descriptions about error:

39  aa8d2310a206001404282ddb3fd645aa  .C. The Project Gutenberg Literary Archive Fou...  ...       1200
40  0ddc17ea5e566006c000b4013f2181a5   charge a reasonable fee for copies of or prov...  ...       1200
41  cd4234ed6caba8f15d09a2e3ee604b2a  . The invalidity or\nunenforceability of any p...  ...       1055

[42 rows x 5 columns]
🚀 create_base_extracted_entities
                                        entity_graph
0  <graphml xmlns="http://graphml.graphdrawing.or...
🚀 create_summarized_entities
                                        entity_graph
0  <graphml xmlns="http://graphml.graphdrawing.or...
❌ create_base_entity_graph
None
⠇ GraphRAG Indexer
├── Loading Input (text) - 1 files loaded (0 filtered) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:00:00
├── create_base_text_units
├── create_base_extracted_entities
├── create_summarized_entities
└── create_base_entity_graph
❌ Errors occurred during the pipeline run, see logs for more details.

Parameters:
LLM=Ollama (gemma2)
Embedding LLM = vllm (e5-mistral-7b-instruct)

Observation:
** note: relative discussion at #443 and #414
take a look at file <workfolder>/prompts/entity_extraction.txt
prompts tell LLM to output as format like:

Example 1:
Entity_types: [person, technology, mission, organization, location]
Text:
while Alex clenched his jaw, the buzz of frustration dull against the backdrop of ...
################
Output:
("entity"{tuple_delimiter}"<name>"{tuple_delimiter}"<Entity_types>"{tuple_delimiter}"Alex is a character who experiences frustration and is observant of the dynamics among other characters."){record_delimiter}

Then file at <workfolder>/cache/entity_extration/chat-xxxx
expect format: "entity"{tuple_delimiter}"<name>"{tuple_delimiter}"<Entity_types>"{tuple_delimiter}"
I got:

Reason and Solution:
LLM seems doesn't understand what prompt says.It may be various reasons such like LLM's max context window, or just services is not working as expect.
So I try lower chunk size from 1200 to 300, and it works sucessfully.
Here is my new chat-xxxx

Hope it will help you!

Seems to work now, maybe it was just my project that was in some weird state or the env variables having comments, other variables in .env or not names exactly right. Works with all the defaults incl default LLM. Thanks for the help! 💪🏻

How did you solve this problem?

Sorry for late reply!

I did not change LLM, only using default
I made a new .env file from scratch that ONLY had the credential for graph_rag nothing else
Kept the short text in my example
Did not change any prompts
I made sure to nuke the entire folder every time trying something new, for this process I made a bash script to help (can provide if someone wants it)

is that method？

Sorry for late reply!

I did not change LLM, only using default
I made a new .env file from scratch that ONLY had the credential for graph_rag nothing else
Kept the short text in my example
Did not change any prompts
I made sure to nuke the entire folder every time trying something new, for this process I made a bash script to help (can provide if someone wants it)

is that method？

Yes!

Hello, I also encounter same error below

Descriptions about error:

39  aa8d2310a206001404282ddb3fd645aa  .C. The Project Gutenberg Literary Archive Fou...  ...       1200
40  0ddc17ea5e566006c000b4013f2181a5   charge a reasonable fee for copies of or prov...  ...       1200
41  cd4234ed6caba8f15d09a2e3ee604b2a  . The invalidity or\nunenforceability of any p...  ...       1055

[42 rows x 5 columns]
🚀 create_base_extracted_entities
                                        entity_graph
0  <graphml xmlns="http://graphml.graphdrawing.or...
🚀 create_summarized_entities
                                        entity_graph
0  <graphml xmlns="http://graphml.graphdrawing.or...
❌ create_base_entity_graph
None
⠇ GraphRAG Indexer
├── Loading Input (text) - 1 files loaded (0 filtered) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:00:00
├── create_base_text_units
├── create_base_extracted_entities
├── create_summarized_entities
└── create_base_entity_graph
❌ Errors occurred during the pipeline run, see logs for more details.

Parameters: LLM=Ollama (gemma2) Embedding LLM = vllm (e5-mistral-7b-instruct)

Observation:
** note: relative discussion at [Bug] "ValueError: Columns must be same length as key" - Entity extraction fails due to invalid format returned by API #443 and Error executing verb "cluster_graph" in create_base_entity_graph: Columns must be same length as key #414
take a look at file <workfolder>/prompts/entity_extraction.txt
prompts tell LLM to output as format like:

Example 1:
Entity_types: [person, technology, mission, organization, location]
Text:
while Alex clenched his jaw, the buzz of frustration dull against the backdrop of ...
################
Output:
("entity"{tuple_delimiter}"<name>"{tuple_delimiter}"<Entity_types>"{tuple_delimiter}"Alex is a character who experiences frustration and is observant of the dynamics among other characters."){record_delimiter}

Then file at <workfolder>/cache/entity_extration/chat-xxxx expect format: "entity"{tuple_delimiter}"<name>"{tuple_delimiter}"<Entity_types>"{tuple_delimiter}" I got:

Reason and Solution:
LLM seems doesn't understand what prompt says.It may be various reasons such like LLM's max context window, or just services is not working as expect.
So I try lower chunk size from 1200 to 300, and it works sucessfully.
Here is my new chat-xxxx

Hope it will help you!

try lower chunk size from 1200 to 300, and it works sucessfully.

Hi everyone,
I'm encountering the same issue with entity extraction using llama 3 (via Ollama).
KeyError: "['type', 'description'] not in index"
I've tried all the suggestions listed in the forum, but no success so far. Here are the details of my setup:
System config:

llama 3 (through Ollama)
Python: 3.12.4
GraphRAG: 0.3.6
macOS: Sequoia v15.0

LLM config:

llama 3
Chunk size: 300
Chunk overlap: 100
tokens_per_minute: 15,000
requests_per_minute: 10,000
type: openai_embedding
model: nomic_embed_text
Metal buffer size: 4156.00 MiB
CPU buffer size: 281.81 MiB

I've tried multiple file formats with different file sizes (csv, txt, pdf), but the issue persists. I suspect it could be running out of memory or hitting some kind of threshold.
I've also run the example from the GraphRAG documentation with the same result. Has anyone faced similar issues, or does anyone have suggestions on how to resolve this? Is there a known memory limit or something I might be missing?
Thanks in advance for your help!

did anyone use llama3.2 and faced similar issue
pls tell how you solved this


Nested Resolves Are Called Even When Parent Grant Condition Not Resolved

I have a simple setup where a grant is used to make sure the user is logged in before proceeding:
  grant.addTest('loggedIn', function(grant){
    return Parse.User.current();
  });

This is used on an abstract route to prevent children from being reached without first being logged in:
  .state('app', {
    url: '/app',
    abstract: true,
    templateUrl: 'templates/app/menu.html',
    controller: 'AppCtrl',
    resolve: {
      loggedIn: function(grant) {
        return grant.only({test: 'loggedIn', state: 'login'});
      }
    }
  })
  .state('app.students', {
    url: '/students',
    views: {
      'menuContent': {
        templateUrl: 'templates/app/students.html',
        controller: 'StudentsCtrl'
      }
    },
    resolve: {
      students: function(StudentService, $ionicLoading) {
        return StudentService.getStudents(); //this breakpoint still reached if user not logged in
      }
    }
  })

The problem is, the resolve on the app.students state, students is being evaluated even if the user is not logged in. If I type /app/students in the url box and hit enter, the breakpoint for the students resolve is hit. It seems like no part of the route should be executed if the grant is not resolved positively.

The problem is that resolves are not necessarily handled synchronously or in the order they are listed. In order to ensure that the loggedIn test is run before the students resolve you need to pass the result of the loggedIn resolve as parameter to the students resolve.
So your student resolve would look like this. I have added loggedIn as a param to the students resolve function.
.state('app.students', {
    url: '/students',
    views: {
      'menuContent': {
        templateUrl: 'templates/app/students.html',
        controller: 'StudentsCtrl'
      }
    },
    resolve: {
      students: function(loggedIn, StudentService, $ionicLoading) {
        return StudentService.getStudents(); //this breakpoint still reached if user not logged in
      }
    }
  })

I go over this in more detail in the Working with nested states. Here's the example I use:
.state('parent', {
  abstract: true,
  template: '<div ui-view></div>',
  resolve: {
    member: function(grant) {
      return grant.only({test: 'member', state: 'denied'});
    }
  }
})

  .state('parent.child1', {
    url: '/nested',
    templateUrl: 'partials/nested.html',
    resolve: {
      admin: function(grant, member) {
        // by injecting the member resolve key from the 'parent' state
        // we ensure that the member grant test will be completed before
        // the admin test executes in the 'parent.child1' state.
        return grant.only({test: 'admin', state: 'denied'});
      }
    }
  })

Let me know if this works. In all honesty it's been a while since I've worked with the project.

Thank you. Everything you say is correct. I'm using Ionic in my particular case, and it turns out that a route resolve that is rejected does not necessarily prevent the state from changing. It does, however, trigger the $stateChangeError event, that has to be caught manually using and global event watcher:
$rootScope.$on("$stateChangeError", function(event, toState, toParams, fromState, fromParams, error) {
  if(toState.name == "app.whatever") {
    $state.go('login');
  }
});

That's what I ended up going with. I'm using grant in another simpler web app and it works great!


socket from mobile issue

hi muaz , there is a black screen on video instead of real streaming view , and video timer is going normally, i noticed that this problem occurred only when socket is open from mobile browser
( streaming on this mobile works fine ) but when a new socket open from this browser the problem happens ,, thats in one2many project

same issue

same here in oneway mode..


link-to-file-in-file-history only works for latest commit

Link: https://github.com/sindresorhus/refined-github/commits/master/source/options.css
Screenshot:

Might be regression from #2731

Duplicate of #2871

Ah, my bad.


Remove fixed host header api.keptn in CLI

Right now when trying to use the CLI to contact the Keptn Api, the CLI always overwrites the host header with api.keptn (regardless of the hostname of the api).
This is also part of the virtualservice/ingress objects that we create.
The behaviour is sub-optimal in case we have multiple installations of Keptn on the same Kubernetes cluster, as only one of them can be reached via the hostname api.keptn.
This was introduced in #1167.
The http library we use in the background will automatically set the hostname as part of the HTTP request, for instance: https://api.keptn.<IP_ADDRESS>.xip.io:31234 would set the host header to api.keptn.<IP_ADDRESS>.xip.io, which is also resolved by the ingress gateway on Kubernetes.
Definition of Done

[ ] Remove the fixed host header api.keptn in go-utils and CLI
[ ] Remove the fixed host header in our manifests (installer, configure domain, upgrader, ...)
[ ] Ensure that this still works for nginx ingress, istio ingress, AWS loadbalancer, GKE loadbalancer

@agrimmer I know that we initially introduced this to support some kind of --gateway=NodePort installation on Rancher. Let's check if we still need the old behaviour, or if we can use the default http host header.


[test] Update affinity and stream checks

Codecov Report

Merging #2035 (ba7d49c) into master (24321bb) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head ba7d49c differs from pull request most recent head 52be060. Consider uploading reports for the commit 52be060 to get more accurate results

@@           Coverage Diff           @@
##           master    #2035   +/-   ##
=======================================
  Coverage   87.48%   87.48%
=======================================
  Files          50       50
  Lines        8851     8851
=======================================
  Hits         7743     7743
  Misses       1108     1108

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 24321bb...52be060. Read the comment docs.

Hello @jjotero, Thank you for updating!

In the file cscs-checks/prgenv/affinity_check.py:

Line 15:1: E302 expected 2 blank lines, found 1

Do see the ReFrame Coding Style Guide

@jenkins-cscs retry daint

@jenkins-cscs retry daint


pretrained_model

can you share your pretrained_model?

An impressive work! Could you share the weights of the model (pretrained version and pretrained + meta-trained version)

how to test on  a new image？

Thanks for your interests! I'll need to figure out the internal code permission for the checkpoint release. Stay tuned :)
To test with a DINO-small version, please check our gradio demo: https://huggingface.co/spaces/hushell/pmf_with_gis

Thanks for your interests! I'll need to figure out the internal code permission for the checkpoint release. Stay tuned :)
To test with a DINO-small version, please check our gradio demo: https://huggingface.co/spaces/hushell/pmf_with_gis

thank you , can not wait.

Hi guys, sorry for late! Please find a few checkpoints for Meta-Dataset: https://huggingface.co/hushell/pmf_metadataset_dino

Hi guys, sorry for late! Please find a few checkpoints for Meta-Dataset: https://huggingface.co/hushell/pmf_metadataset_dino

Sorry but the link above is missing, got a 404 error on huggingface. Could you help check?
Thanks in advance.

@andylin12 Oops... forgot to make the repo public :p


[10.x] Add Sleep::while helper

This adds a Sleep::while feature creating a more functional approach to sleeping in while waiting on a resource to become available or state to change.
This is similar to the retry function, but it is not expecting exceptions.
Imagine you are waiting on state to change in the database...
use Illuminate\Support\Sleep;
use Illuminate\Support\Facades\Auth;

// before...

while (Auth::user()->payment()->doesntExist()) {
    Sleep::for(100)->milliseconds();
}

// after...

Sleep::for(100)->milliseconds()->while(fn () => Auth::user()->payment()->doesntExist());

Or for a API to have processed something async...
use Illuminate\Support\Sleep;
use Illuminate\Support\Facades\Http;

// before...

while (Http::withToken($token)->get('https::/example.com/entity')->json('entity.is_processing')) {
    Sleep::for(30)->seconds();
}

// after...

Sleep::for(30)->seconds()->while(fn () => Http::withToken($token)
    ->get('https::/example.com/entity')
    ->json('entity.is_processing'));

The closure accepts the number of times it has slept - which on the first execution will be 0.
use Illuminate\Support\Sleep;
use Illuminate\Support\Facades\Http;
use RuntimeException;

// before...

$sleeps = 0;

while (true) {
    $isProcessing = match (true) {
        $sleeps === 10 => throw new RuntimeException('Never became ready.'),
        default => Http::withToken($token)
            ->get('https::/example.com/entity')
            ->json('entity.is_processing')
    };

    if ($isProcessing) {
        Sleep::for(30)->seconds();

        $sleep++;
    }
}

// after...

Sleep::for(30)->seconds()->while(fn (int $sleeps) => match (true) {
    $sleeps === 10 => throw new RuntimeException('Never became ready.'),
    default => Http::withToken($token)
        ->get('https::/example.com/entity')
        ->json('entity.is_processing')
});

You can also return a Sleep instance to create a backoff strategy by returning a sleep instance...
use Illuminate\Support\Sleep;
use Illuminate\Support\Facades\Http;

// before...

$sleeps = 0;

while (true) {
    $isProcessing = Http::withToken($token)
        ->get('https::/example.com/entity')
        ->json('entity.is_procesing');

    if ($isProcessing) {
       break;
    }

    match (true) {
        $sleeps === 10 => throw new RuntimeException('Never became ready.'),
        $sleeps > 1 => Sleep::for($sleeps * 30)->seconds(), // incremental backoff
        default => Sleep::for(30)->seconds(),
    };

    $sleep++;
}

// after...

Sleep::for(30)->seconds()->while(function ($sleeps) {
    $isProcessing = Http::withToken($token)
        ->get('https::/example.com/entity')
        ->json('entity.is_procesing');

    if ($isProcessing) {
       return true;
    }

    return match (true) {
        $sleeps === 10 => throw new RuntimeException('Never became ready.'),
        $sleeps > 1 => Sleep::for($sleeps * 30)->seconds(), // incremental backoff
        default => false,
    };
});

While I like the idea of a shorter way of doing things, I am not sure if I would understand what's going when encountering your example in code. For me, reading them out loud there are logical differences.

The while loop: "While user does not exist, sleep for 100ms and try again"
The new "while" method: "Sleep for 100ms while the user doesn't exist"

Not sure if it's just my brain, but the current naming makes me expect different outcomes for some reason.
The latter doesn't immediately indicate that it will try over and over again until it succeeds. It feels more like a one-time thing.
Not sure what other name could fit though 🤔
Anyway - just my two cents, cheers!

What happens if the $result is not truthy? Does it run forever and ignore the sleep duration?

Agree with spaceemotion. Perhaps "waitingFor" would be better.

Not really excited by this. Gonna close it for now.


Two junit tests failed

[x] I have searched the issues of this repository and believe that this is not a duplicate.
[x] I have checked the FAQ of this repository and believe that this is not a duplicate.

Steps to reproduce this issue
Run AbstractMonitorFactoryTest.testMonitorFactoryGroupCache() or DubboMonitorTest.testCount() many times(may be less than 10 is enough), you will get junit test failed.
Cause Analysis

AbstractMonitorFactoryTest.testMonitorFactoryGroupCache()

In AbstractMonitorFactory.getMonitor(), if we call thenRunAsync() first, then call FUTURES.put(),
in MonitorListener.run, FUTRUE.get() may get null, then the junit test failed.

DubboMonitorTest.testCount()

In DubboMonitor constructor, we starter a schedule that call send() every 20 milliseconds!!
In testCount(), we collect() first, then send(), and send() every 20 milliseconds backend, but we will reset data in send() everytime, so let's consider this sequence: we call collect(), and then call send(), and  before Assertions.assertEquals... , call send() backend by the schedule to reset the statisticsMap.

I describe it in Chinese again:
这个问题是偶现的, 但是可以通过多次执行testCount()来复现(执行最多10次一般就能复现出来), 原因是, 在构造Du bboMonitor 的时候, 会启动一个定时器, 每个20毫秒来执行send()方法, 且在send()设置值以后, 就会reset 全局的statisticsMap, testCount()中考虑这么一个执行顺序: 先执行collect(), 在执行send(), 然后在执行诸多的Assertions.assertEquals之前, 可能会执行每20毫秒执行一次的send(), 在这个send()方法执行完成后, statisticsMap就会被重置, 导致junit test失败

This issue has been fixed.


[Web Canvaskit] Severe glitch when running app on Safari (macOS Monterey)

Steps to Reproduce

Be on macOS Monterey
Execute flutter run -d web-server on the code sample
Open the given url in Safari

Output

Expected Output (Chrome)

Actual Output (Safari)

Sample code

https://github.com/Rexios80/safari_bad
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData.dark(),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Safari bad'),
      ),
      body: ListView.builder(
        itemCount: 1000,
        itemBuilder: (context, index) => Text('This is index $index'),
      ),
    );
  }
}

Logs

rexios@Aarons-iMac safari_web_test % flutter run --verbose
[ +139 ms] executing: sysctl hw.optional.arm64
[  +31 ms] Exit code 0 from: sysctl hw.optional.arm64
[   +3 ms] hw.optional.arm64: 1
[   +8 ms] executing: [/Users/rexios/dev/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +39 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18116933e77adc82f80866c928266a5b4f1ed645
[   +1 ms] executing: [/Users/rexios/dev/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[  +49 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] 2.5.3
[  +12 ms] executing: [/Users/rexios/dev/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +19 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Users/rexios/dev/flutter/] git ls-remote --get-url origin
[  +17 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +132 ms] executing: [/Users/rexios/dev/flutter/] git rev-parse --abbrev-ref HEAD
[  +27 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[   +9 ms] executing: sw_vers -productName
[  +22 ms] Exit code 0 from: sw_vers -productName
[        ] macOS
[        ] executing: sw_vers -productVersion
[  +22 ms] Exit code 0 from: sw_vers -productVersion
[        ] 12.0.1
[        ] executing: sw_vers -buildVersion
[  +18 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 21A559
[  +63 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +54 ms] executing: /Users/rexios/Library/Android/sdk/platform-tools/adb devices -l
[  +22 ms] executing: sysctl hw.optional.arm64
[  +12 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ +142 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[        ] Xcode 13.1
           Build version 13A1030d
[   +4 ms] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 2
[   +6 ms] /usr/bin/arch -arm64e xcrun simctl list --json devices
[        ] executing: /usr/bin/arch -arm64e xcrun simctl list --json devices
[   +6 ms] executing: /usr/bin/arch -arm64e xcrun simctl list
^C[+12431 ms] Exit code -2 from: /usr/bin/arch -arm64e xcrun simctl list
[   +1 ms] Install Started
rexios@Aarons-iMac safari_web_test % flutter run --verbose -d web-server
[ +131 ms] executing: sysctl hw.optional.arm64
[  +32 ms] Exit code 0 from: sysctl hw.optional.arm64
[   +2 ms] hw.optional.arm64: 1
[   +8 ms] executing: [/Users/rexios/dev/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +31 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18116933e77adc82f80866c928266a5b4f1ed645
[   +1 ms] executing: [/Users/rexios/dev/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[  +65 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] 2.5.3
[  +13 ms] executing: [/Users/rexios/dev/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +18 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Users/rexios/dev/flutter/] git ls-remote --get-url origin
[  +22 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +144 ms] executing: [/Users/rexios/dev/flutter/] git rev-parse --abbrev-ref HEAD
[  +29 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[   +9 ms] executing: sw_vers -productName
[  +24 ms] Exit code 0 from: sw_vers -productName
[   +1 ms] macOS
[        ] executing: sw_vers -productVersion
[  +17 ms] Exit code 0 from: sw_vers -productVersion
[        ] 12.0.1
[        ] executing: sw_vers -buildVersion
[  +19 ms] Exit code 0 from: sw_vers -buildVersion
[   +1 ms] 21A559
[  +61 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +58 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +35 ms] executing: sysctl hw.optional.arm64
[  +12 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ +114 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[        ] Xcode 13.1
           Build version 13A1030d
[  +88 ms] Skipping pub get: version match.
[ +157 ms] Launching lib/main.dart on Web Server in debug mode...
[ +156 ms] Updating assets
[  +70 ms] Waiting for connection from debug service on Web Server...
[ +112 ms] <- reset
[   +8 ms] /Users/rexios/dev/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Users/rexios/dev/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/rexios/dev/flutter/bin/cache/flutter_web_sdk/ --incremental
--target=dartdevc --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /var/folders/yc/vsrv7_gd6mb03mbn7xbd_qdm0000gn/T/flutter_tools.FdsZTA/flutter_tool.At1oMv/app.dill --libraries-spec
file:///Users/rexios/dev/flutter/bin/cache/flutter_web_sdk/libraries.json --packages /Users/rexios/repos/safari_web_test/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-root
/var/folders/yc/vsrv7_gd6mb03mbn7xbd_qdm0000gn/T/flutter_tools.FdsZTA/flutter_tools.HvI55c --filesystem-scheme org-dartlang-app --initialize-from-dill build/b1b715402d823b7fd5c2b68d2edcb2ce.cache.dill.track.dill --platform
file:///Users/rexios/dev/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk_sound.dill --sound-null-safety
[  +34 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+12484 ms] Waiting for connection from debug service on Web Server... (completed in 12.6s)
[   +5 ms] Synced 26.2MB.
[   +1 ms] <- accept
[        ] Caching compiled dill
[  +15 ms] lib/main.dart is being served at http://localhost:61923
[        ] The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
[  +10 ms] 🔥  To hot restart changes while running, press "r" or "R".
[   +2 ms] For a more detailed help message, press "h". To quit, press "q".

rexios@Aarons-iMac safari_web_test % flutter analyze
Analyzing safari_web_test...
No issues found! (ran in 1.5s)

rexios@Aarons-iMac ~ % flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-arm, locale
    en-US)
    • Flutter version 2.5.3 at /Users/rexios/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (11 days ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/rexios/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio
      Preview.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.11.2

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

[✓] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

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

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11
      (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 12.0.1
      21A559 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome
      95.0.4638.54

• No issues found!

We are also experiencing this for lots of users of Safari...
All running on macOS Monterey using Safari, switching to Chrome helped for all of them!
But this is no option to suggest this to every user!
And this is actually independent of the processor, it happens for both M1 and Intel Macs.

I can confirm upgrading to safari 15.2 fixed this issue.


Update site config for l10n teams and 1.10 info

/ref #10666
This PR updates release-1.10 with site support and ownership for l10n teams (#10485).
/assign @tfogo

/approve


add keys in JSON2CSV

I added an array variable keys in JSON2CSV
In this way, I can filter the columns that I need to save and save them in order, which can reduce the workload of processing the data
for instance：
jsPsych.data.get().csv()
# "\"success\",\"hhhh\",\"trial_type\",\"trial_index\",\"time_elapsed\",\"internal_node_id\"
# \"true\",\"123\",\"fullscreen\",\"0\",\"1881\",\"0.0-0.0\"

jsPsych.data.get().csv(["hhhh", "success"])
# "\"hhhh\",\"success\"
# \"123\",\"true\"

It's easier to present，and i think it can work better with the code jsPsych.data.get().uniqueNames()

Hi @mupsycho !
Thanks for this suggestion. I like the concept a lot.
Since .csv() will only return the columns in the DataCollection it is being called on, something like this is already possible by using the .ignore() function. For example, removing the internal_node_id column from the CSV:
jsPsych.data.get().ignore('internal_node_id').csv()

But there's currently no inverse function of ignore that would allow you to select a subset of columns. Are you interested in refactoring your solution here to move it out of the JSON2CSV function and into it's own method on the DataCollection?

Thanks for giving me a good idea
Now I think i have achieved that, i add new function .filterColumns，And the keys of json2csv are deleted
and jsPsych.data.get().filterColumns() will return a DataCollection,so we can do more with it
jsPsych.data.get().filterColumns(["hhhh", "success"])

In addition, I made a brief introduction in docs/core_library/jspsych-data.md

We will need to resolve the merge issues with the 7.0 update, but I think this should be included in 7.2

Implemented in #2407


Windows server 2012 didn't include vc++ runtime you default

In my customer's case,
I just put the vc Core dll to wkhtmltopdf's folder.
Because they don't wanna install the package by their policy.

what dll did you put in the rotating directory?

I'm not sure (the project is end long times)
but I think it's like msvcppxxx.dll


Update README.md

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is ordered alphabetically
[x] My submission has a useful description
[x] The description does not have more than 100 characters
[x] The description does not end with punctuation
[x] Each table column is padded with one space on either side
[x] I have searched the repository for any relevant issues or pull requests
[x] Any category I am creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

Hi @aydinnyunus
Thanks for your contribution ;)
We have some problems with Public APIs, so we won't be able to review/add this improvement right now.
Read this issue for more information, please: https://github.com/public-apis/public-apis/issues/3104


Warning during add api about missing package

Bug Report

When adding a new api via
operator-sdk add api --api-version=hello.k8spatterns.io/v1alpha1 --kind=Hello

on a freshly created project, I get the following output:
INFO[0000] Generating api version hello.k8spatterns.io/v1alpha1 for kind Hello.
INFO[0002] Created pkg/apis/hello/v1alpha1/hello_types.go
INFO[0002] Created pkg/apis/addtoscheme_hello_v1alpha1.go
INFO[0002] Created pkg/apis/hello/v1alpha1/register.go
INFO[0002] Created pkg/apis/hello/v1alpha1/doc.go
INFO[0002] Created deploy/crds/hello_v1alpha1_hello_cr.yaml
W0611 10:29:21.440169   56433 parse.go:239] Ignoring child directory github.com/k8spatterns/hello-operator/pkg/apis/hello: unable to import "github.com/k8spatterns/hello-operator/pkg/apis/hello": go/build: importGo github.com/k8spatterns/hello-operator/pkg/apis/hello: exit status 1
can't load package: package github.com/k8spatterns/hello-operator/pkg/apis/hello: unknown import path "github.com/k8spatterns/hello-operator/pkg/apis/hello": cannot find module providing package github.com/k8spatterns/hello-operator/pkg/apis/hello

INFO[0013] Created deploy/crds/hello_v1alpha1_hello_crd.yaml
INFO[0018] Running deepcopy code-generation for Custom Resource group versions: [hello:[v1alpha1], ]
INFO[0023] Code-generation complete.
INFO[0025] Running OpenAPI code-generation for Custom Resource group versions: [hello:[v1alpha1], ]
2019/06/11 10:29:38 Code for OpenAPI definitions generated
INFO[0030] Created deploy/crds/hello_v1alpha1_hello_crd.yaml
INFO[0030] Code-generation complete.
INFO[0030] API generation complete.

It looks like it succeeded and the directory pkg/apis/hello has been created eventually:
ls pkg/apis/hello
v1alpha1

However, the warning is a bit disturbing. Also I was wondering why I was ask for my GitHub credentials during the process (looks like a read-write checkout of some GitHub repo)

Here the full output with --verbose:

operator-sdk add api --api-version=hello.k8spatterns.io/v1alpha1 --kind=Hello --verbose
DEBU[0000] Debug logging is set
INFO[0000] Generating api version hello.k8spatterns.io/v1alpha1 for kind Hello.
INFO[0002] Created pkg/apis/hello/v1alpha1/hello_types.go
INFO[0002] Created pkg/apis/addtoscheme_hello_v1alpha1.go
INFO[0002] Created pkg/apis/hello/v1alpha1/register.go
INFO[0002] Created pkg/apis/hello/v1alpha1/doc.go
INFO[0002] Created deploy/crds/hello_v1alpha1_hello_cr.yaml
W0611 10:36:35.669666   61132 parse.go:239] Ignoring child directory github.com/k8spatterns/hello-operator/pkg/apis/hello: unable to import "github.com/k8spatterns/hello-operator/pkg/apis/hello": go/build: importGo github.com/k8spatterns/hello-operator/pkg/apis/hello: exit status 1
Fetching https://github.com?go-get=1
Parsing meta tags from https://github.com?go-get=1 (status code 200)
can't load package: package github.com/k8spatterns/hello-operator/pkg/apis/hello: unknown import path "github.com/k8spatterns/hello-operator/pkg/apis/hello": cannot find module providing package github.com/k8spatterns/hello-operator/pkg/apis/hello

INFO[0053] Created deploy/crds/hello_v1alpha1_hello_crd.yaml
DEBU[0053] Running []string{"go", "build", "-o", "/Users/roland/Development/go/workspace/src/github.com/k8spatterns/hello-operator/build/_output/bin/client-gen", "./cmd/client-gen"}
DEBU[0054] Running []string{"go", "build", "-o", "/Users/roland/Development/go/workspace/src/github.com/k8spatterns/hello-operator/build/_output/bin/lister-gen", "./cmd/lister-gen"}
DEBU[0055] Running []string{"go", "build", "-o", "/Users/roland/Development/go/workspace/src/github.com/k8spatterns/hello-operator/build/_output/bin/informer-gen", "./cmd/informer-gen"}
DEBU[0056] Running []string{"go", "build", "-o", "/Users/roland/Development/go/workspace/src/github.com/k8spatterns/hello-operator/build/_output/bin/deepcopy-gen", "./cmd/deepcopy-gen"}
INFO[0057] Running deepcopy code-generation for Custom Resource group versions: [hello:[v1alpha1], ]
DEBU[0057] Running []string{"/Users/roland/Development/go/workspace/src/github.com/k8spatterns/hello-operator/build/_output/bin/deepcopy-gen", "--input-dirs", "github.com/k8spatterns/hello-operator/pkg/apis/hello/v1alpha1", "--output-file-base", "zz_generated.deepcopy", "--bounding-dirs", "github.com/k8spatterns/hello-operator/pkg/apis", "--go-header-file", "/var/folders/bh/fw5xsjw531n6crvdz9tgv_380000gn/T/984914475"}
INFO[0063] Code-generation complete.
DEBU[0063] Running []string{"go", "build", "-o", "/Users/roland/Development/go/workspace/src/github.com/k8spatterns/hello-operator/build/_output/bin/openapi-gen", "./cmd/openapi-gen"}
INFO[0064] Running OpenAPI code-generation for Custom Resource group versions: [hello:[v1alpha1], ]
DEBU[0064] Running []string{"/Users/roland/Development/go/workspace/src/github.com/k8spatterns/hello-operator/build/_output/bin/openapi-gen", "--input-dirs", "github.com/k8spatterns/hello-operator/pkg/apis/hello/v1alpha1", "--output-package", "github.com/k8spatterns/hello-operator/pkg/apis/hello/v1alpha1", "--output-file-base", "zz_generated.openapi", "--go-header-file", "/var/folders/bh/fw5xsjw531n6crvdz9tgv_380000gn/T/367750542"}
2019/06/11 10:36:51 Code for OpenAPI definitions generated
INFO[0069] Created deploy/crds/hello_v1alpha1_hello_crd.yaml
INFO[0069] Code-generation complete.
INFO[0069] API generation complete.

Environment

operator-sdk version:

operator-sdk version: v0.8.1, commit: 33b3bfe10176f8647f5354516fff29dea42b6342

go version:

go version go1.12.5 darwin/amd64

The question about the warnings has come up a couple of times. See this PR for details: https://github.com/operator-framework/operator-sdk/pull/1401
I'm not sure about the GitHub credentials dialog, but my guess would be that it happens as part of the compilation of the generator binaries when go build is executed with Go modules enabled. Does the dialog come up around the following lines?
Fetching https://github.com?go-get=1
Parsing meta tags from https://github.com?go-get=1 (status code 200)

@rhuss: @joelanford is correct, go/build package parsing causes this error.
This issue relates to #1502. For a temporary fix, try the following before running operator-sdk add api:
$ mkdir -p pkg/apis/hello && echo "package hello" > pkg/apis/hello/stub.go

PR #1401 should fix this once merged.


Access trough WAN IF blocked

Access trough WAN Interface is blocked despite the "correct" settings in: Interfaces:WAN Block private Networs is "unchecked" and Block bogon Networks as well unchecked.
SW:<IP_ADDRESS>
Regards Jakob

I'm assuming you have a LAN too. WAN only setups work due to the anti-lockout rules being moved to the WAN interface. These are probably needed on top of the "Block private networks". I'll report back in a bit.

Hi Jakob, WAN traffic to the GUI is blocked by a default drop all rule, which is expected. You do not want to disable the private network drop in order to gain access. Instead, add a rule that passes IPv4 TCP for destination "WAN Network" with port 443 (and 80 if you want the HTTP redirect to work). Is it alright to close the issue?

Assuming this is resolved. :)


feat(product): add option to match by only one attr (#327)

Summary
Fixes https://github.com/sphereio/sphere-node-sdk/issues/327

Coverage increased (+0.005%) to 97.73% when pulling 9d6588f0c93b73f4d9ba51d0d9178108bd151a8c on 327-match-variant-by-attr into 8af7290d14abd7db6c253db8a12353a126941642 on master.


'Voting Configuration' always shows as 'Custom'

No matter which preset you choose (Easy, Normal, Critical) the selected one is always displayed as custom.
The configuration still changes accordingly, the selection bar just doesn't update properly.

The reason why it always displays 'Custom' is because whenever user selects a config(Easy, Normal, Critical) its not setting properly form.preset.
https://github.com/dOrgTech/DAOcreator/blob/d9efd7ee344194c0465317d08d00444cb4566673/src/components/common/dao/GenesisProtocolPresetEditor.tsx#L96
In fact form.preset it always returns undefined even after users selects a different config.
https://github.com/dOrgTech/DAOcreator/blob/d9efd7ee344194c0465317d08d00444cb4566673/src/components/common/dao/GenesisProtocolPresetEditor.tsx#L55
I think i have a solution on a FormLevel for it to display the proper config selected, but I am not sure if it affects the config from a StateLevel. I am gonna give it a try.

Fix is in PR: https://github.com/dOrgTech/DAOcreator/pull/218


[Question!] Show 16 bits integer in an array (micrologix 1400)

Hello, first, thanks for this, I'm working on a HMI with NodeJS and this is perfect, my question is when i'm showing the data of the PLC, in the taglookup function I have this:
switch (tag) {             case 'TEST':             return 'N3:0/0,8'; }
this show the right values, but, when i change the function:
switch (tag) {             case 'TEST':             return 'N3:0/0,16'; }
this show bad and undefined values, also i tried with this:
switch (tag) {             case 'TEST':             return 'N3:0/8,8'; }
but the same result bad and undefined values. is there a way to call the 16 bits of an integer ?
Thank You

I solved already... Thanks

How did solved, @Jotan?

Hi @joaomello, in the module of nodepccc (nodepccc.js) I modified some lines of codes...here are (with the number of every line):
Real
1559. if ((((arrayIndex + theItem.bitOffset + 1) % 8) == 0) || (arrayIndex == theItem.arrayLength - 1)){
Modified to:
1559. if ((((arrayIndex + theItem.bitOffset + 1) % 16) == 0) || (arrayIndex == theItem.arrayLength - 1)){
As you can see I change the 8 value to 16 thats take 16 bits instead of 8, then you must change all the case X value format, I'll show you on the next lines:
Real
1614.theItem.value.push(((theItem.byteBuffer.readUInt8(thePointer) >> (bitShiftAmount)) & 1) ? true : false);
Modified to:
1614.theItem.value.push(((theItem.byteBuffer.readUInt16LE(thePointer) >> (bitShiftAmount)) & 1) ? true : false);
Real
1650. if ((((arrayIndex + theItem.bitOffset + 1) % 8) == 0) || (arrayIndex == theItem.arrayLength - 1)){
Modified to:
1650. if ((((arrayIndex + theItem.bitOffset + 1) % 16) == 0) || (arrayIndex == theItem.arrayLength - 1)){
Real
1782. theItem.writeBuffer.writeUInt8(theByte, thePointer);
Modified to:
1782. theItem.writeBuffer.writeUInt16LE(theByte, thePointer);
Real
1818. if ((((arrayIndex + theItem.bitOffset + 1) % 8) == 0) || (arrayIndex == theItem.arrayLength - 1)){
Modified to:
1818.if ((((arrayIndex + theItem.bitOffset + 1) % 16) == 0) || (arrayIndex == theItem.arrayLength - 1)){
Real
1847. theItem.writeBuffer.writeUInt8(((theItem.writeValue) ? 1 : 0), thePointer);  // checked ===true but this caused problems if you write 1
Modified to:
1847. theItem.writeBuffer.writeUInt16LE(((theItem.writeValue) ? 1 : 0), thePointer);  // checked ===true but this caused problems if you write 1
With that changes you can get and write data like "N16:0/0,32"
I hope it helps you.

Thank you for this I have integrated it into the package now.  Finally.  PR's are always welcome.
Note there was a bug affecting writing non-zero values to bit arrays > length 16 that is fixed in 0.1.5 as well.

Thanks to you for this Library :)


Refactor grid API

[x] Groups should define plots. No need to apply_grid afterwards.
[x] s/apply_grid/set_grid
[x] s/gridify/set_grid(auto=True)

[ ] set_grid(None) to plot everything in the same plot

@eliemichel Reworked the grid API. What do you think?

I don't like the figure.set_grid(auto={"ignore_groups": True}). Why didn't you stick with some figure.set_grid(auto=True, ignore_groups=True)? Same for height, width, etc.
And for set_grid(["abc"]), a shortcut like set_grid("abc") would be nice. ;)
Would this work?
figure.set_grid(["aaa",
                     "bbc",
                     "bbc"])

For extra params, I don't like having height, width and ignore_groups params that take effect only if auto is True.
Done for set_grid.
And concerning your example, sure it will work. Why not?

I don't know, I did not check the implementation. ;)
What about:
figure.set_grid(["aaa",
                 "bcc",
                 "bbb"])

And you could set auto to True whenever one of height, width, ignore_groups is provided. It would thus include the previous behavior. ;)

Your latest example will be rejected because "b" does not have a rectangular shape.
About setting auto to True, I'm not convinced as height/width/ignore_groups is not related to auto behavior (in standard language, not in this API).

I think that when I say "I want it to have two rows", it tacitly means "I don't care about the grid previously provided, just give me my two rows."

And actually, in which case will one have to explicitely say auto=True?

See https://github.com/Phyks/replot/blob/master/Examples.ipynb, "In [27]" for instance.
3 defined groups (actually 2 defined groups and the default group). I want an auto layout, but I do not want to care about it at all.

What happens without the line figure.set_grid(auto=True)?

Same thing, see "In [23]" :)

My point ;)
If it's the same, in which case do we really need it? What I want to show, is that it makes sens to use height, width, etc. because auto will be just an advanced trick to get back to the default behavior in some weird situation.

Agreed :)


is it possible to show stationary number of  dots as default?

hello, thanks for the amazing PageControl first,
I would like to ask,
when numberOfPages greater than displayCount
the default dots only display for 3 dots, others are hidden/clear color
is it possible to set always 5 dots?
it my config below
static let pageControlConfig = FlexiblePageControl.Config(
displayCount: 5,
dotSize: 6,
dotSpace: 4,
smallDotSizeRatio: 0.5,
mediumDotSizeRatio: 0.7
)

flexiblePageControl.numberOfPages = count
here flexiblePageControl is the instance of FlexiblePageControl and count is your desired number of pages

Hi, @hungwei0331! Did you find a solution to your case?

@jmuseyibli
this libary dispay page number start with  -2 when itemCount >= displayCount
so I set displayCount to 7 work around

Thanks


simplify recent activity on admin page

Why was this change made? 🤔
Fixes #2567 - simplify recent activity tables in admin interface
Note: we are also simplifying the query and ignoring events, and just using the "last_updated" column on the work/collection versions, which means we will consider even a change to a title as a recent activity.  This required adding some hooks to ensure the updated_at column is touched when any bits of metadata in associated tables are changed.
Also, use title presenters for works and collections so that those in draft states and/or without entered titles will display correctly in the tables (e.g. they will show a linked "No title" instead of a URL or blank row).
How was this change tested? 🤨
Localhost

Oops, missed the second bullet point.  I can have a look at that too.

Please do a rebase on this PR.

Rebased from main and squashed all commits in this PR.  Split out adding of pry-rails gem into new PR #2607


image still not showing up in open sea still

I'm still trying to figure out why my image is not showing up on opensea.
Anyone get theirs to show up?
Hi,
I'm having the same issue. Although I changed the code to use my own image. I can't seem to get the image to show up in opensea and it's been longer than 20 minutes.
Here it shows the set_uri was successful:
https://rinkeby.etherscan.io/address/0xeb6df80433b81fd866e67ef5b13bb9a283cb46b9
on this contract:
https://rinkeby.etherscan.io/address/0xb64ca1f58824f14ba29245dd2291a156c5d8247f
You can see the uri for token 0 as : https://gateway.pinata.cloud/ipfs/QmQ4L8uAZNnBGTe1two4iHTzDYrZ1bA1adBCxmvCMUMa1m
tokenId (uint256)
0
string
[ tokenURI(uint256) method Response ]
string :  https://gateway.pinata.cloud/ipfs/QmQ4L8uAZNnBGTe1two4iHTzDYrZ1bA1adBCxmvCMUMa1m
and I'm able to get to the image, but on opensea, it's not showing up:
https://testnets.opensea.io/assets/0xb64cA1f58824f14Ba29245dd2291a156C5D8247F/0
Is this expected? How long has it been taking for the images to show up on the opensea testnet?
thanks
Originally posted by @ptn77 in https://github.com/smartcontractkit/full-blockchain-solidity-course-py/discussions/1380#discussioncomment-2563374

I had checked on mine 20 mins after... 2 hours after, still no go.... refreshed the page before I went to bed and it showed up... it took a really long time.


video appearing issue

when I open stream or do live video chat the video that is rending in that mirroring is happening. can anyone help me with this?

Hello!
Can you send me a screenshot?

Hello!
Can you send me a screenshot?

means if i look on side then on screen i am looking on left side

Thus, you only have to rotate the video with CSS, with that it will be enough to accommodate the local videos.

Example:
video.local{
    transform: scaleX(-1);
}

Example:
video.local{
    transform: scaleX(-1);
}

i will check this and let you know

Example:
video.local{
    transform: scaleX(-1);
}

it works like a charm thanks for your help

No problem, I wish you luck!