Android incorrect aspect ratio while animating from placeholder to actual image

I have the following code in place:
<ContentPage.Content>
	<Grid>
		<ScrollView IsVisible="{Binding HasData}">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="260" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<forms:CachedImage Aspect="AspectFill"
								   LoadingPlaceholder="{x:Static projectX:AppConstants.DetailsFallbackImage}"
								   Source="{Binding ImageUrl}" />
				<controls:Gradient Grid.Row="0" Aspect="AspectFill" />
			</Grid>
		</ScrollView>
	</Grid>
</ContentPage.Content>

The first time the image control is shown the loading image is shown and is then faded to the actual image. However, the aspect ratio of the actual image is not correct (see image). If I re-open the same page again the aspect ratio is correct, so I guess it has something to do with replacing the loading image with the actual image, since it doesn't show the loading image the second time due to the caching of the actual image. Is there any way to fix this?
NOTE: The image used is a panorama which causes it to be squashed.

What version of FFImageLoading are you using?

Could you test v2.2.2 and see if it solves your issue?

I updated to v2.2.2 but unfortunately the issue still remains. I did some further testing and found that the issue doesn't occur when I set FadeAnimationEnabled="False". Maybe there is something wrong with the animated transition between the LoadingPlaceHolder and the actual image?

Could you make a reproduction? Thanks.

The source of the problem is here:

https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Droid/Drawables/FFBitmapDrawable.cs#L122-L154 (returns drawable size)
https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Droid/Drawables/FFBitmapDrawable.cs#L94-L97 (animation ends)

Somehow, drawable is not invalidated correctly after animation ends. Any ideas how could we fix this?
There are some new modifications to this in 2.1.3 (prerelease). Could you test it?

I tested the v2.2.3-pre-197 but the issue still remains. I created a repro case (using v2.2.3) which you can find here.
Steps to reproduce:

Start the app on Android
Click the Navigate button
A page will be shown which shows a fallback image (square) and then fades to the actual image (wide) with the incorrect aspect ratio.
Click the back button
Click the Navigate button
The page will now show the actual image with the correct aspect ratio

Please let me know if there is anything else I can do to help.

I made some initial changes for that: https://github.com/luberda-molinet/FFImageLoading/commit/c048b7b838af5c702cd580ffbdc3b880c63377ae
We're going to switch to using TransitionDrawable internally, just the same as Glide library for Android does it. It should solve those issues.

Nice! When can we expect the fix on NuGet?

I tested v2.2.4 and the actual image is now shown with the proper aspect ratio after fading. However, I now see that, while fading from the fallback image to the actual image, the fallback image aspect ratio quickly changes to the actual image fallback ratio (thus distorting the fallback image) before fading. I've updated the repro case to illustrate the issue.

Hi @wouterroos Thanks for debugging.

Hi @wouterroos, Thanks for debugging. The cause is here: https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Droid/Drawables/FFBitmapDrawable.cs#L109-L121
Any ideas how to improve that?

@daniel-luberda thx, help! But i still have problem with 2.3.5 . Please watch my video file, thx!
placeholder image

video file
gg.mp4.zip

Fixed


Chocolatey package v0.22

This is not a real issue regarding code, but the Chocolatey package for v0.22 is missing. The README is a bit misleading, where it talks about the most recent version and afterwards about the ways to obtain this great tool (where going the Chocolatey way installs v0.21.2).

I have fixed that!

Thanks!!


Architecture diagram template?

Is there any chance to have the architecture diagram template uploaded into the assets as well?

Hi @YungBinary, it was generated on the fly using https://www.cloudcraft.co/ which scans your current architecture using tags etc. You can use a free trial to get one generated on your side.
Hope that helps!


puller, pullsync: fix outstanding tasks

#329

Would appreciate a PR description :)

@Eknir once the PR is no longer in progress.... patience


updated addon formulation to exclude default conversion factor set to 1

Please confirm that this PR has done the following:

[ ] Tests Added
[ ] Documentation Added
[x] Description in RELEASE_NOTES.md Added

Adding to RELEASE_NOTES.md
Please add a single line in the release notes similar to the following:
- (#XX)[http://link-to-pr.com] Added feature which does something

@OFR-IIASA This should be included in the add-on commit correct? Once this passes, I will rebase it into that commit to keep every feature addition to one commit (assuming @danielhuppmann agrees).

So does this mean that for an addon technology to be "active" it must be declared and have a conversion factor?

yes


Segfault once maxRecords is reached

We are running Trafficserver 9.2.3 and ran into an issue where trafficserver reached the maximum amount of  stats and records which is set by maxRecords.
The reason for this is that we are also running podman containers on the same server. Every new container and every restart of a container causes a change of the virtual network interfaces. A new container get's a new interface and a restarted container removes it's current interfaces and gets a new one, with a new name. Every interface creates new records
plugin.system_stats.net.vethfb0aaa00.speed 10000
plugin.system_stats.net.vethfb0aaa00.collisions 0
plugin.system_stats.net.vethfb0aaa00.multicast 0
plugin.system_stats.net.vethfb0aaa00.rx_bytes 71171126
plugin.system_stats.net.vethfb0aaa00.rx_compressed 0
plugin.system_stats.net.vethfb0aaa00.rx_crc_errors 0
plugin.system_stats.net.vethfb0aaa00.rx_dropped 0
plugin.system_stats.net.vethfb0aaa00.rx_errors 0
plugin.system_stats.net.vethfb0aaa00.rx_fifo_errors 0
plugin.system_stats.net.vethfb0aaa00.rx_frame_errors 0
plugin.system_stats.net.vethfb0aaa00.rx_length_errors 0
plugin.system_stats.net.vethfb0aaa00.rx_missed_errors 0
plugin.system_stats.net.vethfb0aaa00.rx_nohandler 0
plugin.system_stats.net.vethfb0aaa00.rx_over_errors 0
plugin.system_stats.net.vethfb0aaa00.rx_packets 983190
plugin.system_stats.net.vethfb0aaa00.tx_aborted_errors 0
plugin.system_stats.net.vethfb0aaa00.tx_bytes 133071338
plugin.system_stats.net.vethfb0aaa00.tx_carrier_errors 0
plugin.system_stats.net.vethfb0aaa00.tx_compressed 0
plugin.system_stats.net.vethfb0aaa00.tx_dropped 0
plugin.system_stats.net.vethfb0aaa00.tx_errors 0
plugin.system_stats.net.vethfb0aaa00.tx_fifo_errors 0
plugin.system_stats.net.vethfb0aaa00.tx_heartbeat_errors 0
plugin.system_stats.net.vethfb0aaa00.tx_packets 1912343
plugin.system_stats.net.vethfb0aaa00.tx_window_errors 0

This would not be an issue if we either could purge the records, not only the values, from time to time (without restarting trafficserver), or the creation of new stats would just not be possible anymore with a corresponding log message. Unfortunately once the value of maxRecords is reached the trafficserver segfaults and does not recover by itself since the traffic_manager process is not getting killed so systemd is not able to handle it with the restart=on-failure directive.
Is this a known issue, or is this the expected bevahiour? Is it save to increase the maxRecords limit to a huge number? What might be the drawbacks?
I attached the crashlogs from systemd and trafficserver
systemd.log
crash-2023-11-28-164715.log
Thanks in advance

Setting --maxRecords  leads to other issues and causes the system_stats and remap_stats plugin to stop reporting at all.

have you tried with -m instead of --maxRecords
i.e. ExecStart=/opt/trafficserver/bin/traffic_manager -m 4096 ? We hit the max a couple months back and yea you start to see weird things happen and things breaking, but I used -m in our systemd script to increase the amount and it's been happy with that. Just throwing it out there, maybe some others will have better input :)

Thank you @ezelkow1 . Your comment got me into the right direction. Both -m and --maxRecords seem to work.
The issue was that my value was too high and my test was invalid. After each modification I checked for the existence of remap_stats in the stats output - but those are only being populated once a request hits a remap rule. Since the server I was testing with is not active in the loadbalancing right now remap_stats where never getting populated... testing with system_stats worked.

@mat1010 Did you get this issue resolved?  If so, can you please close it.

@bryancall The main issue, mentioned in my first post, still exists. I'm not sure if segfaulting should be an expected result in case the maxRecords limit is reached.


NFLStreams.!! ways to watch Week 9 NFL Week 9 Live NFL Streams Reddit - nflstreamz.net

NFL 2024 Week 9: How to watch every football game this season
The 2024 NFL season continues this week with match ups between the Dolphins and Bills, Cowboys and Falcons, Broncos and Ravens, Buccaneers and Chiefs and many more. The complete 18-week regular 2024 NFL season schedule is out now, so if you still feel like you're playing catch up on where to watch/stream games this year, you can look ahead to find out the best ways for you to watch the 2024-25 NFL season.
CLICK HERE TO WATCH LIVE STREAM
CLICK HERE TO WATCH LIVE STREAM
CLICK HERE TO WATCH LIVE STREAM
This year NFL games are airing across 10+ channels and streaming platforms. If you're worried about the challenge of following your favorite team through the upcoming season (or daunted by the price tag attached to NFL Sunday Ticket), Yahoo Sports has you covered. In case you're late to the football party this year, here's your playbook for how to watch NFL games this year, starting with Week 9!
Tampa Bay Buccaneers vs. Kansas City Chiefs, 8:15 p.m (ESPN, ABC, ESPN+)
Many NFL preseason games are broadcast on local channels, so if you're looking to catch an in-market game, it may be as simple as turning on your TV (or setting up a digital TV antenna) or finding a live TV streaming service that carries the correct RSN (Regional Sports Network). If you want to watch out-of-market games, a $5 monthly subscription to NFL+ will let you watch every out-of-market-game local and primetime game in the season (and preseason) on your phone — but only a select few games on your TV. You could also spring for the uber-expensive NFL Sunday Ticket package to get every out-of-market Sunday game of the season.
When it comes to nationally broadcast games, NFL games typically air across ESPN, NBC, CBS, Fox, ABC and NFL Network. Thursday Night Football games stream exclusively on Amazon Prime Video, select football games will stream exclusively on Peacock, games on CBS will stream live on Paramount+ with SHOWTIME and select games will stream on ESPN+ this season. That's six channels and four streaming platforms to keep up with this season — and that's not counting your local RSN's for in-market games and an NFL+ or NFL Sunday Ticket subscription for out-of-market games. Plus, Netflix is currently in talks to become the exclusive spot to watch the NFL's Christmas Day games this year.
Overwhelmed? You're not alone. Here's a breakdown of the platforms we recommend checking out ahead of the 2024 NFL season, so that come game time, tuning into your favorite team's games will be as easy as simply turning on the TV....
(Fubo)
Best overall sports streamer
Fubo TV
Fubo TV gives you access to ESPN, NFL Network, Fox, ABC, CBS, NBC and 100+ more live channels. Starting at $80/month, the live TV streaming service is definitely pricey (but certainly not the most expensive option on this list), but offers nearly every channel you'll need to watch both the NFL preseason and regular season, and still leaves you with major savings compared to a traditional cable package. Fubo subscribers also get 1000 hours of cloud DVR storage.
The platform also offers a free trial period, so you can catch some games risk-free. And right now, you can also get $20 off your first month of any Fubo tier after the free trial ends!
Pros
Full package free trial available
1000 hours of cloud DVR storage
Cons
Cost
Try free at Fubo
(DirecTV)
Best free trial for football
DirecTV Stream
DirecTV Stream is currently offering its Entertainment tier (typically $109/month) plus one free month of DirecTV Sports Pack ($14.99/month) bundled together for $87.99/month (plus tax) for your first month. DirecTV Stream gets you access to all the usual football suspects: NFL Network, ESPN, ABC, NBC, CBS and Fox. The Sports Pack add-on will get you ACC Network, Big Ten Network, SEC Network and plenty of local RSNs. The best part is, currently you can try all this out free. So if you're interested in trying out a live TV streaming service for football season, but aren't ready to commit, we recommend starting with DirecTV Stream.
You'll also get unlimited Cloud DVR storage included in whatever DirecTV package you choose.
Pros
Full package free trial available
Many local RSNs included
Unlimited Cloud DVR
Cons
Cost
Try free at DirecTV
(YouTube)
Best for the football super fan who wants to watch every game
YouTube TV + NFL Sunday Ticket
YouTube TV gets you nearly every channel you'll need for the 2024 NFL season, including Fox, NBC, ABC, CBS, ESPN and NFL Network. Plus, YouTube TV is the home of NFL Sunday Ticket this season! The Sunday Ticket package, while pricey on its own ($479.99/season), gets you ALL the Sunday out-of-market games (160+ games per season).
If you bundle Sunday Ticket with YouTube TV, you can get them both for $146.49/month for four months (that's $586 for the season). Now, you'll have to keep paying for YouTube TV to keep your access to NFL Sunday Ticket package. Right now, you can get your first three months of YouTube TV for $52.99/month for your first four months. The cost then hikes up to $72.99/month.
Another pro to this option, YouTube will throw in four months of Max with the YouTube TV + NFL Sunday Ticket bundle.
One thing to note, YouTube TV livestreams have a tendency to run on a slight delay, which isn't great if you're trying to keep up with the live game down to the exact second.
Pros
Offers NFL Sunday Ticket bundle
Offers almost every channel you need for NFL games
Cons
Cost
Locked in for the entire year if you bundle Sunday Ticket
$146.49/month for four months at YouTube
Stream live local and primetime games on mobile
NFL+
A basic $6.99 per month (or $40 annually) NFL+ subscription will get you live local and primetime regular season NFL games exclusively on your phone or tablet, plus live audio for every game of the season across supported devices and access to NFL Network. NFL+ Premium, while a little pricier at $14.99 per month (or $80 annually) also includes access to NFL RedZone, plus full and condensed replays of every game across supported devices. NFL+ also offers a 7-day free trial.
Starting at $8/month, a Peacock subscription will get you access to some exclusive games. Plus, get NFL games on NBC, select college football games, Premier League matches, and access thousands of hours of shows and movies, including beloved sitcoms such as Parks and Recreation and The Office. For $14 monthly you can upgrade to an ad-free subscription which includes live access to your local NBC affiliate (not just during designated sports and events) and the ability to download select titles to watch offline.
Paramount+ offers subscribers access to NFL games on CBS. Plus, the platform is great for fans of Champions League soccer, Star Trek, Survivor, The Challenge and so much more.
Unlike a lot of other streaming services these days, Paramount+ still offers a one-week free trial — so new subscribers can sign up to watch this weekend and check out the rest of the Paramount+ library totally free for seven days.
Amazon Prime Video is the exclusive home for the NFL's Thursday Night Football games. On top of Amazon Prime Video, an Amazon Prime subscription includes free shipping, exclusive deals, access to the Prime Day 2024 sale event, Amazon Music, a year of free GrubHub+ and more. A standard Amazon Prime subscription is $15 monthly or $139 annually, but discounts are available for students and those on qualified government assistance. You can try Amazon Prime free for 30 days.
Wait, a flat TV antenna? Aren't these things supposed to have long, telescoping metal rods (aka rabbit ears)? Nope, this new design (which you'll see in countless other brands) works just as well, and it's not meant to sit atop your TV. Rather, you mount it on a wall or window using included sticky pads, with either the black or white side facing in to better match your décor.
The aptly named Flatenna really is flat like a piece of paper. You just screw one end of the 12-foot cord into the bottom and the other end into your TV's coax input.
Channel Master promises range of up to 35 miles, but of course that depends on a variety of factors. As noted above, optimal placement — as high and unobstructed as possible — makes all the difference.
The big news here is price: At just $29, the Flatenna is quite affordable and a good place to start your antenna journey — assuming you're OK with a black or white rectangle stuck to your wall or window.
$29 at Amazon
Every way to watch NFL games this season:
To recap, here's all the ways you can watch NFL games in 2024.


Make train intersections and tees automatic rather than unique blocks

I suspect @small-jeeper (Adeon on the forum for those wondering) might already do this in his pending work introducing mine carts but wanted to split out the issue from an older item so we don't forget :-)
We have three train track blocks currently, a generic one that'll adjust according to its adjacent neighbors but tee and normal intersections have unique blocks. They already adjust some to neighbor blocks but it is probably possible to just have a single block with behavior determining which gets displayed
If somebody else wants to do this please check with @small-jeeper first to avoid conflicts :-)

Closing as obsolete, Rails has had lots of updates since this issue was created :-)
Hi @small-jeeper if you get a notification from this! Come check out the latest version sometime!


display nested exception causes

fixes #2044

Duplicate of #2074 .  :(

Thanks for the effort, I am going to go with #2074 for now but we appreciate the though!

@rubysolo sorry I noticed your branch after doing all of the work :(

No worries!


MedSAM2_pretrain.pth (pretrained weights) and which .yaml file?

Hello there,
I try to get familiar with the model and I wanted to know, if for example you do:
python train_2d.py -net sam2 -exp_name REFUGE_MedSAM2 -vis 1 -sam_ckpt ./checkpoints/sam2_hiera_small.pt -sam_config sam2_hiera_s -image_size 1024 -out_size 1024 -b 4 -val_freq 1 -dataset REFUGE -data_path ./data/REFUGE
the logical thing is to put -sam_ckpt -> sam2_hiera_small.pt and -sam_config -> sam2_hiera_s (which I think is the .yaml file from sam2_train folder). Also in this folder I donwloaded 2 more files from sam2 model (sam2_hiera_l.yaml and sam2_hiera_base_plus.yaml) because they were missing...I don't know if this is correct. Now, my question is, if you do:
python train_2d.py -net sam2 -exp_name REFUGE_MedSAM2 -vis 1 -sam_ckpt ./checkpoints/MedSAM2_pretrain.pth -sam_config ??????????? -image_size 1024 -out_size 1024 -b 4 -val_freq 1 -dataset REFUGE -data_path ./data/REFUGE
what do you put in place of the question marks? Nothing, or one of the existing .yaml files in the sam2_train folder?

Also -train_vis 1 (to visualize the training) doesn't work for some reason...What I can see is (which I see it anyway with the default command) is the validation and epoch proccesses. I don't know what more is shown with the -train_vis set to 1, but I can't see it.

were you able to figure anything out?

Hello brother!
I've red that medsam2 is based on Sam 2, which is on github too. I went to Sam2's link on github, went through the folders and also downloaded sam2_hiera_l.yaml, sam2_hiera_b+.yaml (that were missing from the sam2_train folder, of medsam2 model). Also, in the checkpoints folder I have all the .pt files (small, tiny, large, base_plus) and I also have the pretrained weights MedSAM2_pretrained.pth (I found it on the readme file of medsam2 on github). Also, I try to make the model to stop with ctrl+C and then continue from where it left (like a checkpoint) and I've noticed that when you resume training you shouldn't put the pretrained weights again, because it gets confused and the dice index goes from 0.87 for example, to 0.17. Sometimes this happens even if you do it all right. I'm trying to understand the logic behind, and the only solution may be to just study about neural networks...😬
I'm runnning it on Windows 10, through WSL2 and VS Code, on a laptop with an RTX 2060 6GB mobile, and I had to do some modifications on the train_2d.py and write os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:512" to reduce the load on the gpu by allocating the memory. I'm new to this, I don't even know if what I say is 100% right...


Teste1

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


Doc-HTTP-Methods

New How To from backlog work. Can merge at any time.
Alex reviewed.

Deploy preview for calico ready!
Built with commit 43d16c56edb69a5d28968912ce24c7beb02e5ff5
https://deploy-preview-2670--calico.netlify.com


#203 Redirect back to MyTripsFragment

Description
Added StartActivityForResult in MyTrips Adapter
Fixes #203
Type of change
Just put an x in the [] which are valid.

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes.

[ ] ./gradlew assembleDebug assembleRelease
[ ] ./gradlew checkstyle

Checklist:

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

@f71uday There are merge conflicts. Fix those

@f71uday I added a new commit in the master branch which removes add trip icon from adapter & has created a new floating action button for the same purpose. You changes are messing up that commit.

Do you want to close this one?

yes


Absolute paths for database

Hi, I'm having some problems using it when passing absolute path instead of relative...
The line at https://github.com/Synerzip/loopback-connector-sqlite/blob/master/lib/sqlite3db.js#L59
var file_name = ((self.file_name != null) ? ("./" + self.file_name) : ":memory:");

Could be better to prepend "./" only when the self.file_name does not start with require('path').sep? Or requiring developer to insert it?
Sounds reasonable to you?
I can pull request...

@marcominetti Your suggestion seems good. I guess I will remove the "./" from that statement and update the readme for the support of absolute path and those who want to use project's directory to keep/generate the SQLite file then they will need to add "./" to the file_name itself.
I think putting in conditions to check for the presence of path separator is not that necessary as absolute paths in OS like windows doesn't start with a (/) separator

Great! Thanks!


[codemod] Fix jss-to-styled to support multiple withStyles

close #29363
It's hard to review the implementation, so focusing on the test files should be enough.

[x] I have followed (at least) the PR section of the contributing guide.

cc @michaldudak feel free to merge if it looks good to you. 😊


test: Fix docs test, used wrong namespace

We did import OpenImageIO as oiio then instead of using oiio, we used OpenImageIO.
This was failing sometimes. Frankly, I'm not sure why it ever worked.
Maybe it works on some versions of Python but not others?
I dunno. But this fixes it everywhere and is clearly correct.

Look ok other than that quibble?


[REQ] Translation improvements for categories

Currently the categories have this option for translation:
"skins": {
        "choose_weapon": "Choose your {{label}}",
        "choose_weapon_default": "Skin",
        "categories": {
            "knifes": "Knife",
            "pistols": "Pistol",
            "rifles": "Rifle",
            "smg": "SMG",
            "machine_guns": "Machine Guns",
            "sniper_rifles": "Sniper Rifles",
            "shotguns": "Shotguns",
            "gloves": "Gloves",
            "agents": {
                "label": "Agents",
                "ct": "Counter Terrorist",
                "t": "Terrorist"
            }
        },

        "choose_weapon": "Choose your {{label}}",

The problem is that this translation would not be the same for other languages, at least in Portuguese-BR Choose your can have two translations, masculine and feminine.
Currently this really isn't a big problem, but would it be possible to implement the option to translate category by category?

Choose your Skin
Choose your Knife
Choose your Agents

So everyone can translate individually.

you dont have in your language the ability to choose label for all categories?

you dont have in your language the ability to choose label for all categories?

Unfortunately no, you think in a complicated language... hahaha
Choose your can be translated into both masculine and feminine gender.


Can't import in Android Studio

When try to import using android studio 0.3.1
Got this error
No such property: SONATYPE_USERNAME for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

I have the latest version and make the same mistake of 1412


making clean initialization

changing the initialization method of dictionary from {}
to dict() to make it easier to understand

@googlebot I signed it!


AYS should prevent creating a gw with two nics with the same name

The following payload will ask AYS to create a gateway with two nics with the same name, AYS will create the GW and return 201 after that AYS will through an error.
{
  "name":"gw_22",
  "domain":"tester",
  "nics":[
    {
      "name":"public",
      "type":"vlan",
      "id":"0",
      "config":{
        "cidr":"<IP_ADDRESS>/24",
        "gateway":"<IP_ADDRESS>"
      }
    },
    {
      "name":"private",
      "type":"vxlan",
      "id":"100",
      "config":{
        "cidr":"<IP_ADDRESS>/24"
      },
      "dhcpserver":{
        "nameservers":[
          "<IP_ADDRESS>"
        ],
        "hosts":[
          {
            "macaddress":"00:A0:C9:14:C8:29",
            "hostname":"sarah",
            "ipaddress":"<IP_ADDRESS>"
          }
        ]
      }
    },

		 {
      "name":"private",
      "type":"vxlan",
      "id":"110",
      "config":{
        "cidr":"<IP_ADDRESS>/24"
      },
      "dhcpserver":{
        "nameservers":[
          "<IP_ADDRESS>"
        ],
        "hosts":[
          {
            "macaddress":"00:A0:C9:14:C8:29",
            "hostname":"sarah",
            "ipaddress":"<IP_ADDRESS>"
          }
        ]
      }
    }
  ]
}

AYS log
init done
blueprint done
2017-06-07 09:48:55 - (network)[INFO][<IP_ADDRESS>:55850]: POST http://<IP_ADDRESS>:5000/ays/repository/orchestrator-server/blueprint/gateway_gw_22_install_1496828927  200 61
INFO:network:
[Wed07 09:48] - Job.py              :66  :j.core.jobcontroller.job.810741810020ad4cfa9b3d07a1719749 - INFO     - job job: container!gw_22 (monitor) done sucessfuly
2017-06-07 09:48:55 - (network)[INFO][<IP_ADDRESS>:55854]: POST http://<IP_ADDRESS>:5000/ays/repository/orchestrator-server/aysrun  200 531
INFO:network:
[Wed07 09:48] - RunStep.py          :69  :j.atyourservice.server         - INFO     - execute job: container!gw_22 (install)
2017-06-07 09:48:57 - (network)[INFO][<IP_ADDRESS>:55854]: PUT http://<IP_ADDRESS>:5000/ays/repository/orchestrator-server/blueprint/gateway_gw_22_install_1496828927/archive  200 61
INFO:network:
[Wed07 09:48] - Job.py              :56  :j.core.jobcontroller.job.02e229571df3356ce6618f00b9ebd0c6 - ERROR    - Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/container/ab96dd5ea8390c4b68aa42c6681f424a.py", line 133, in start
    container.start()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 168, in start
    self._create_container()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 161, in _create_container
    raise RuntimeError('failed to create container %s' % result.data)
RuntimeError: failed to create container "name 'private' is passed twice in the container"
[Wed07 09:48] - Job.py              :56  :j.core.jobcontroller.job.1c29a906ed8af2f3d67babad94909f7b - ERROR    - Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/container/ab96dd5ea8390c4b68aa42c6681f424a.py", line 116, in install
    j.tools.async.wrappers.sync(job.service.executeAction('start'))
  File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/tools/async/Wrappers.py", line 12, in sync
    return loop.run_until_complete(coro)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 674, in executeAction
    return await self.executeActionJob(action, args)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 699, in executeActionJob
    result = await job.execute()
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/container/ab96dd5ea8390c4b68aa42c6681f424a.py", line 133, in start
    container.start()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 168, in start
    self._create_container()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 161, in _create_container
    raise RuntimeError('failed to create container %s' % result.data)
RuntimeError: failed to create container "name 'private' is passed twice in the container"
[Wed07 09:48] - RunStep.py          :84  :j.atyourservice.server         - INFO     - runstep 1: error
[Wed07 09:48] - Run.py              :108 :j.atyourservice.server         - ERROR    - error during execution of step 1 in run e903edf8215e9a62b5418041f36f6baf
Error of job: container!gw_22 (install):
*TRACEBACK*********************************************************************************
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/container/ab96dd5ea8390c4b68aa42c6681f424a.py", line 116, in install
    j.tools.async.wrappers.sync(job.service.executeAction('start'))
  File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/tools/async/Wrappers.py", line 12, in sync
    return loop.run_until_complete(coro)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 674, in executeAction
    return await self.executeActionJob(action, args)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 699, in executeActionJob
    result = await job.execute()
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/container/ab96dd5ea8390c4b68aa42c6681f424a.py", line 133, in start
    container.start()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 168, in start
    self._create_container()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 161, in _create_container
    raise RuntimeError('failed to create container %s' % result.data)
RuntimeError: failed to create container "name 'private' is passed twice in the container"
[Wed07 09:49] - RunStep.py          :84  :j.atyourservice.server         - INFO     - runstep 1: error
[Wed07 09:49] - Run.py              :108 :j.atyourservice.server         - ERROR    - error during execution of step 1 in run e903edf8215e9a62b5418041f36f6baf
Error of job: container!gw_22 (install):
*TRACEBACK*********************************************************************************
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/container/ab96dd5ea8390c4b68aa42c6681f424a.py", line 116, in install
    j.tools.async.wrappers.sync(job.service.executeAction('start'))
  File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/tools/async/Wrappers.py", line 12, in sync
    return loop.run_until_complete(coro)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 674, in executeAction
    return await self.executeActionJob(action, args)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/Service.py", line 699, in executeActionJob
    result = await job.execute()
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/tmp/actions/container/ab96dd5ea8390c4b68aa42c6681f424a.py", line 133, in start
    container.start()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 168, in start
    self._create_container()
  File "/usr/local/lib/python3.5/dist-packages/zeroos/orchestrator/sal/Container.py", line 161, in _create_container
    raise RuntimeError('failed to create container %s' % result.data)
RuntimeError: failed to create container "name 'private' is passed twice in the container"

List containers
	{
		"flist": "https://hub.gig.tech/gig-official-apps/g8osgw.flist",
		"hostname": "",
		"name": "gw_22",
		"status": "halted"
	}

throw an error not through an error

Add input validation in gw service

software version
orchestrator : master : db68214


Update Leave-related documentation in User Guide and Developer Guide

Update leave-related functionality in user guide (resolves #25)
Add leave-related use cases to Developer Guide (resolves #24)
Create personal portfolio page

Codecov Report

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

@@            Coverage Diff            @@
##             master      #37   +/-   ##
=========================================
  Coverage          ?   72.15%
  Complexity        ?      399
=========================================
  Files             ?       70
  Lines             ?     1232
  Branches          ?      125
=========================================
  Hits              ?      889
  Misses            ?      311
  Partials          ?       32

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 ba53b8c...dc3e459. Read the comment docs.


gcp: using Virtual Private Cloud (VPC) peering

Related to https://github.com/aiven/devportal/issues/796

There's an upcoming change on the Aiven console related to VPC peering (specific to the target VPC peering information). This change is expected to go live by August 26th. I suggest we wait for this change to go in so that we can capture the up-to-date information in our docs.

This will be resolved via https://github.com/aiven/devportal/pull/1310


[Feature Request]: Log thread ID in built-in loggers

Is your feature request related to a problem? Please describe.
Currently the built-in loggers do not log the current thread ID. This makes it difficult to differentiate between logs from different threads.

will there be a way to differentiate between the different threads chat completions? Id need to be able to query the sqlite db for all chat completions of a single thread
by @Nathan-Intergral

Describe the solution you'd like
In SQLiteLogger and FileLogger (#2596), add thread ID to each logged event. Obtain thread ID through:
import threading
current_thread_id = threading.get_native_id()
print(f"Current thread ID (native): {current_thread_id}")

Additional context
#2617

This is merged, can we close this ticket.

it is not yet in the SQLIteLogger.

If I understand correctly, this threadId logging functionality is available in the FileLogger but not the SQLiteLogger. Is that right, @ekzhu ?

If I understand correctly, this threadId logging functionality is available in the FileLogger but not the SQLiteLogger. Is that right, @ekzhu ?

Yes

Hi, i have had to work on other projects for a while but i am back working with autogen again. Was this ever progressed?

@Nathan-Intergral It is available now in autogen-agentchat~=0.2

Closing this for now as team is focusing on v0.4 release.
You are welcome to open a new feature request issue under for the new logger handlers -- currently SQLite log handler is not supported. We can discuss whether this should be included in the core library, as an extension module, or a community package.


Data Grid with Virtualize and ItemsProvider causes double loading of data set

Using latest release.
If you create a data grid with a ItemsProvider and virtualize = true, it causes double requests of the underlying provider.
Taking the code for Remote:
https://www.fluentui-blazor.net/DataGrid#remotedata
and setting virtualized seems to cause the code GridItemsProvider to be called twice.
Is virtualize and ItemsProvider supposed to work together? or must code similar to the manual code for Items in the Virtualized section be used?

Hi,
While we recognize this might be a valid issue, there are no reprodcution steps provided. We have too much things going on to completely start from the top with every issue we receive.
As you are raising in issue (which we appreciate!), you clearly have an interest in making the library better for everyone. Please help us doing that by creating a clear and complete reproduction scenario. If needed, accompanied with a ready to run repository. Thanks!

@vnbaaij in general should itemsProvider work with virtualize with a single api call in initial load?  If yes, I am happy to provide a reproducer

I really don't know that from the top of my head. Would need to dive into the code for that. But it is working and used together in the sample you mentioned.
I'm assuming you have tried it locally? If so, was that on Client or Server project?
If server, than it might just be a case of prerendering taking place and the mehod is called twice because of that.
If client, let me know where in the sample I need to put a breakpoint to see it happen. I tried to set one on line 32 in DataGridRemoteData.razor but only saw that one being called once

Understood. Will setup a reproducer for you.

Closing due to inactivity. Can be re-opened once reproduction is available.

Hi,
i have the same problem so i take a look on code and at first glance, the problem seems to be that the SetParametersAsync method on ColumnsCollectedNotifier is invoked, which in turn invokes RefreshDataCoreAsync, but at that moment _virtualizeComponent (which should contain the reference to Virtualize) is not initialised.
As I understand it, the reference set occurs on OnAfterRenderAsync and that is when the second refresh is triggered as soon as Virtualize component is rendered.
I will try to investigate further but at the moment i didn't find a solution

Snippet to reproduce the error:

<FluentDataGrid Virtualize="true" ItemSize="120" OnRowFocus="HandleRowClick" TGridItem="Person" ItemsProvider="PeopleData">
                <PropertyColumn Property="@(p => p.PersonId)" Sortable="true" />
                <PropertyColumn Property="@(p => p.Name)" Sortable="true" />
                <PropertyColumn Property="@(p => p.BirthDate)" Format="yyyy-MM-dd" Sortable="true" />
</FluentDataGrid>

@code {

    private GridItemsProvider<Workspace>? _workspaces;
    bool _isItemsLoaded;

    record Person(int PersonId, string Name, DateOnly BirthDate);

    List<Person> people =
    [
        new Person(10895, "Jean Martin", new DateOnly(1985, 3, 16)),
        new Person(10944, "António Langa", new DateOnly(1991, 12, 1)),
        new Person(11203, "Julie Smith", new DateOnly(1958, 10, 10)),
        new Person(11205, "Nur Sari", new DateOnly(1922, 4, 27)),
        new Person(11898, "Jose Hernandez", new DateOnly(2011, 5, 3)),
        new Person(12130, "Kenji Sato", new DateOnly(2004, 1, 9))
    ];

    GridItemsProvider<Person>? PeopleData;

    protected override Task OnInitializedAsync()
    {
        PeopleData = async req =>
        {
            Console.WriteLine("Data Gathered!");
            return GridItemsProviderResult.From(
                items: people,
                totalItemCount: people.Count());
        };
    }
}

You will see "Data Gathered" run twice on page load

FluentDataGrid is based on QuickGrid.  Since QuickGrid is using ChildContent as a way of collecting the list of columns, the assumption is it's free to render that as often as it wants.
In order to discover when columns are added/removed, it has to be able to invoke ChildContent on each render. Because of this, it is possible that you will see your message printed twice.

@vnbaaij but in practice a result of the data grid provider would be through the calling of a http client, and so api call is made twice on grid load.
How can we prevent the double call of the http client when being used within the grid data provider?

You would need to solve that on either the API side (if possible) or create something in between the OnInitialized and the request to the griditemsproviderresult

Can we leave this open or transfer into a discussion then ? @vnbaaij
This double load behaviour occurs only with the virtualized impl and really acts/feels like a bug to users.
one must imagine that double loading is not the intended behaviour of quick grid and its implementations.


typo in rollup docs: array destructuring

https://github.com/windicss/docs/blob/892c3ce5f720c91458a3b16a17bc15572f1f6341/integrations/rollup.md?plain=1#L17-L25
should be WindiCSS()

confusing confusing ...
https://github.com/windicss/vite-plugin-windicss/issues/265 says it must be ...WindiCSS()

This is supported by rollup after v3.1.0
https://github.com/rollup/rollup/pull/4657


Update awatch.js

Sorry I made it too fast So I made errors

I have got the errors when I deleted some file while observing all the files in the folder


Provide an option to not escape unicode characters

This is a fix for #42
All needed functionality was already defined in the library but wasn't exposed in a PPrinter API.
I added escapeUnicode flag to a Walker. By default, I set it as false. This is an arguable decision because previously all unicode characters were automatically escaped. But I don't see any good reason, why by default we need to escape unicode characters. So I decided to change the default behavior.
Also, I added tests.

Superseded by https://github.com/com-lihaoyi/PPrint/pull/71


Eq. 3.1 typo

Book downloaded Aug 20th 2022.
The integrand in the denominator of the Bayes Rule should be $p(\mathcal D|\mathbf\theta')p(\theta')$ instead of $p(\mathcal D, \theta')p(\theta')$

fixed


[Bug]: failed to debug a pl that contains a sql costing more than 10 minutes

ODC version
4.2.4
OB version
not related
What happened?

create a pl that contains a sql costing more that 10 mintues
try to debug this pl
debug will timeout at this sql

What did you expect to happen?
we can increase the timeout setting using session init script
How can we reproduce it (as minimally and precisely as possible)?
follow 'What happened'
Anything else we need to know?
No response

delete from tbl where 1=1 will cost too much time. the default timeout settings is 10 min and we can debug this pl if we don't modify the timeout setting.

and then I modify the timeout settings to 1 secs:

and I debug it again:

as you can see the delete statement is timeout which means that out timeput settings has overwritten the default timeout settings~

I changed ob_query_timeout for the data source to 1s, debug timeout.Then, I adjusted to 10 minutes, it can debug completed


:robot: Add SBOM artifacts to CI pipelines

What this PR does / why we need it: This PR introduces generated images SBOM to our releases
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Part of #51
This PR introduces https://github.com/anchore/syft generating a SBOM which is attached at the end of the image build process. It also adds the SBOM to the uploaded artifacts (jobs and releases)
Example generated SBOM files: core-debian-v1.6.0-14-g193c740-dirty-sbom.s.zip

Codecov Report

Merging #998 (a32e908) into master (193c740) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head a32e908 differs from pull request most recent head 08ecb29. Consider uploading reports for the commit 08ecb29 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##           master     #998   +/-   ##
=======================================
  Coverage   22.79%   22.79%
=======================================
  Files          22       22
  Lines        1610     1610
=======================================
  Hits          367      367
  Misses       1179     1179
  Partials       64       64

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Geographic plots

If a system already has latitude/longitude coordinates, you might want to plot that (with a coordinate transformation) rather than as x/y.
Vegalite requires the position for a geo plot to be lat/lon/lat2/lon2 rather than x/y.  Can this be done via a keyword argument to vega_plot? Does it need to pass to a separate plotting function for geographic data?

Maybe use setfield and have some functions
cartesian2geo(plot)
cartesian2geo(pm_data)
geo2cartesian(plot)
geo2cartesian(pm_data)
Likely the only one that is needed at first is cartesian2geo(plot).  This function would use setfield to make each layer's x->lon, y->lat and add a geographic projection to the 0 layer.


Request: adding only tasks with a certain tag to the calendar

Hi, thanks a lot for the plugin, loving it so far. I would like to be able to limit calendar presentation only to the tasks with a certain tag (e.g. description includes #milestone). I use tasks a lot, so the calendar ends up quite crowded.

which is your prefer? In setting or just select it in Calendar view?

I think just selecting would be OK! Thank you for quick reply


Wrap the edit icon on the draft page as a button

This PR wraps the edit icon in a button element so that it appears as a button. This will enable focus and hover:cursor-pointer by itself (+ has an added benefit of focusing by tab).
Fixes #579.

Thanks, @chartgerink! I applied your changes 👍

Hm I don't see changes here @nsunami - did something maybe go wrong in pushing the changes to remote? I still see the onClick even on the icon level.

@chartgerink Sorry I forgot to push my change! It should be here now.


Update chart.js.
Thanks for this! I think this is an important one to get done. It's also the first time that we've hit this situation (though, I think it'll be fairly common): where we are bumping the dependency of a JavaScript library a full version.
In a perfect world, we would have 2 controllers (for awhile at least) - a Chartjs v2 version and a Chartjs v3 version - and automatically (at build time) "toggle" between them based on which version of chartjs is installed. This is easy in theory (it's just an if statement), but Webpack doesn't like conditional imports like this :). You CAN do something like this (taken from React):
if (process.env.NODE_ENV === 'production') {
  module.exports = require('./cjs/react.production.min.js');
} else {
  module.exports = require('./cjs/react.development.js');
}

But I don't believe you can add a more complex conditional that checks what version of Chart.js is installed (at least, we can't do this without requiring the user to add some extra fanciness to their webpack config, which we can't do).
So, another solution would be to make 2 controllers (for v2 chartjs and v3) and then make the user toggle between them. That would be done by adding a 2nd controller here - https://github.com/symfony/ux/blob/351538011587680660c1fe0b09d4038200abad6b/src/Chartjs/Resources/assets/package.json#L8-L13 - probably called chartv3. Then, to avoid the user having BOTH activated when you install the package, you would set the original controller to enabled: false.
The downside of this would be that, if you use chartv3, then that is literally the new name of the controller (so the documentation would have to be tweaked to show that you need to use one or the other based on your situation).
A third solution, which isn't possible right now, would be to allow users to have an extra key in their controller.json file that would point to which specific file (e.g. dist/controller-v3.js) in the package that should be imported. Then we could keep the old one (but deprecate it), and make sure that this new key (e.g. file: 'dist/controller-v3.js') is included in new installs.
OR, hopefully I'm missing some cool idea :)

Yo @gbere!
Thanks for this! I think this is an important one to get done. It's also the first time that we've hit this situation (though, I think it'll be fairly common): where we are bumping the dependency of a JavaScript library a full version.
In a perfect world, we would have 2 controllers (for awhile at least) - a Chartjs v2 version and a Chartjs v3 version - and automatically (at build time) "toggle" between them based on which version of chartjs is installed. This is easy in theory (it's just an if statement), but Webpack doesn't like conditional imports like this :). You CAN do something like this (taken from React):
if (process.env.NODE_ENV === 'production') {
  module.exports = require('./cjs/react.production.min.js');
} else {
  module.exports = require('./cjs/react.development.js');
}

But I don't believe you can add a more complex conditional that checks what version of Chart.js is installed (at least, we can't do this without requiring the user to add some extra fanciness to their webpack config, which we can't do).
So, another solution would be to make 2 controllers (for v2 chartjs and v3) and then make the user toggle between them. That would be done by adding a 2nd controller here -
https://github.com/symfony/ux/blob/351538011587680660c1fe0b09d4038200abad6b/src/Chartjs/Resources/assets/package.json#L8-L13

probably called chartv3. Then, to avoid the user having BOTH activated when you install the package, you would set the original controller to enabled: false.
The downside of this would be that, if you use chartv3, then that is literally the new name of the controller (so the documentation would have to be tweaked to show that you need to use one or the other based on your situation).

A third solution, which isn't possible right now, would be to allow users to have an extra key in their controller.json file that would point to which specific file (e.g. dist/controller-v3.js) in the package that should be imported. Then we could keep the old one (but deprecate it), and make sure that this new key (e.g. file: 'dist/controller-v3.js') is included in new installs.
OR, hopefully I'm missing some cool idea :)

I think the best way to switch between major versions of chartjs dependency is increase the major version of symfony / ux-chartjs. But seeing that all ux- packages share version, I understand that they have another usage.
Any suggestions how to pass the tests?

@gbere Yea, this is really tricky.
After thinking about this more, I think we should attempt to combine solutions 1 & 3.
This would require work in https://github.com/symfony/stimulus-bridge. The general idea is this:
A) That library contains a webpack "loader" that's responsible for parsing the controllers.json file and then generating a "JavaScript source string" that contains import statements for all the files. Most of that work is done in this file: https://github.com/symfony/stimulus-bridge/blob/ed4434c4a80a603ada2fb648c8d2aa8924df7565/src/webpack/create-controllers-module.js#L14 - this line specifically reads the "main" key from the package's package.json file to complete the filename that should be imported - https://github.com/symfony/stimulus-bridge/blob/ed4434c4a80a603ada2fb648c8d2aa8924df7565/src/webpack/create-controllers-module.js#L59
B) I think we need add a "hook" in this process where an end-user library could have a module that exports a function that the above code calls. The purpose of this function would be to dynamically resolve this file should ultimately be imported.
For example, let's think about chart.js. It currently has a package.json file that specifies exactly which one file to load when the user's controllers.json file points to it: https://github.com/symfony/ux/blob/main/src/Chartjs/Resources/assets/package.json#L9
Instead of having a main key, we could optionally allow packages to have a resolveMain key, which points to a file in the package (e.g. dist/resolve_main.js). This would export a function that would return the file to import - e.g.:
export default () => {
    return 'dist/controller.js';
}

Of course, if your use-case is this simple, then you would continue to specify the main key and not create this function. BUT, you could then include conditional code in this callback:
export default () => {
    let chartVersion = null;
    try {
        chartMajorVersion = Math.floor(require(`chart.js/package.json`).version);
    } catch (e) {
        throw new Error('Please make sure that chartjs is installed. Run yarn ...');
    }

    switch (chartMajorVersion) {
        case 2:
            return 'dist/controller.js';
        case 3:
            return 'dist/controller-v3.js';
        default:
            throw new Error(`chart.js version ${chartMajorVersion} is not supported`);
    }
}

This would allow the library - ux-chatjs - to intelligently toggle which of the 2 controllers to import without extra config needed from the user (since it detects which version is available).

Hi! For information chart.js is now at version 3.6.1. Can't wait to enjoy it! Thank you for your work :)

I've rebased (after all of our build changes) over on #185


Missing license

I don't see a LICENSE file or other indication of what the license of the @flatfile/api package is - could you add one? If there isn't a license I can't use the package.

Yes we can! @ashleygmulligan2 will a MIT License work for Flatfile?

Yes, that works!

Do you have a timeline for when the license will be added?


WIP: Add Rust implementation for DABA

This PR builds on #23 and adds a Rust implementation for DABA. It does not however yet add an implementation for the chunked array queue. Instead it uses Rust's std::collections::VecDeque.  It will be interesting to see the performance difference.

Something to keep in mind is that (I believe) std::collections::VecDeque has worst-case O(n) operations, which means that DABA would no longer be worst-case O(1). That probably wouldn't show up in the throughput (although I'm curious!) but I'm confident it would show up in the latency.
Comparing the latency and throughput of VecDeque and the chunked-array queue should be very interesting. We can't do it easily in our C++ implementations because operations on std::deque invalidate iterators.
We have compared performance of std::deque with our implementation of the chunked array queue for Two-Stacks, and the throughput difference was negligible. We did not, however, look at latency

The implementation of ChunkedArrayQueue looks promising - the only part I can't reason through yet are the unsafe operations. But that's my lack of understanding Rust. I think some simple unit tests which push a bunch of chunks, and then drain them completely, checking full contents after every operation could help a lot.
By the way, I assume that when you're confident the implementation is correct you'll remove the "WIP"?

The implementation of ChunkedArrayQueue looks promising - the only part I can't reason through yet are the unsafe operations. But that's my lack of understanding Rust. I think some simple unit tests which push a bunch of chunks, and then drain them completely, checking full contents after every operation could help a lot.

The implementation is getting closer to working but there are some small problems still that I need to fix. The unsafe operations are mostly needed for maintaining multiple cursors simultaneously which can mutate the queue. In safe Rust there can only be one mutable reference (&mut) to a memory address at a time. Safe Rust also requires all memory to be initialised before it is used. I'm using unsafe in some places to get around this so chunks can be initialised without having to initialise their elements to some default value.

By the way, I assume that when you're confident the implementation is correct you'll remove the "WIP"?

Sure, will do 👍

If it is ok, I will initially create two separate implementations, one for VecDeque and one for ChunkedArrayQueue, they have very slight differences in their interfaces I believe.


Fail install module after install luasocket

This is travis job with LR 2.2.0beta1.
This works with LR 2.1.0

Maybe... LR can check the protocol. If it has luasocket installed but not luasec,
it should fall back to wget.

We do this, by now. I just forgot to close the issue.


Problem: detailed fetch stats section displays on Storage Service record page load

The stats should be collapsed and hidden. They appear when a user clicks on the "i" icon.

Fixed in #147


Fixed bug with ModuleName param for Find-PSResource, added tests for it

Bug would arise when using the Find-PSResource cmdlet with ModuleName parameter (and Version parameter along with it) for an incorrect resource type (i.e script resource). It would still return a resource. Resolved this bug and added error message in this current change.

Fixed ModuleName bug


Bug: unable to mock component directives

Consider following code, typical for VTU v1:
  const createComponent = (propsData = { items }) => {
    wrapper = mount(Breadcrumb, {
      directives: { GlTooltip: createMockDirective('gl-tooltip') },
    });

In VTU v1 v-gl-tooltip will be mocked with our configuration.
However we can't achieve that with VTU v2 ATM. Usage of global.directives will not work in same way - it will register directive at app level, and in Vue3 lookup (obviously) have priority at instance level.
After quick look I think we could fix that by messing with directives in transformVNodeArgs.
However, if we will look into global.directives inside tranformVNodeArgs this might create confusing behavior when global.directives behave not like app.directives being the only difference among global options.
So the question is do we want to treat this like a bug, and hook global.directives to mocking directive behavior or more like a missing feature and add new option somewhere in mount config for mocking?
WDYT @cexbrayat @lmiller1990?

@xanf Interesting. If I understand correctly, I think I would expect to define a mock directive in stubs. I think directives and components should behave the same (registering a global component/directive) and not mess with stubs/mocks.
I would expect something like this to work:
wrapper = mount(Breadcrumb, {
  stubs: { GlTooltip: true }
});

Maybe we should implement that, if that's doable.

@cexbrayat I find differentiating between components and directives inside stubs confusing.
we could probably utilize the way '

So you would like:
wrapper = mount(Breadcrumb, {
  stubs: { vGlTooltip: true }
});

If so, I agree 👍

OK, I'll draft an MR :)


Bug: cannot use captureAWSv3Client with the latest Tracer and AWS SDKs

Expected Behaviour
When using Tracer, I expect to be able to use the captureAWSv3Client function with any of the official SDKs.
Current Behaviour
When trying to use captureAWSv3Client with GlueClient (or any other client), TypeScript complains with the following error:

I'm using TypeScript version 4.9.5.
Tested on DynamoDBClient and GlueClient, both at version 3.431.0
Code snippet
import {Tracer} from '@aws-lambda-powertools/tracer';
import {GlueClient} from '@aws-sdk/client-glue';

const tracer = new Tracer({serviceName: 'myService'});
tracer.captureAWSv3Client(new GlueClient({}));

Steps to Reproduce
Just use the provided code snippet.
Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
16.x
Packaging format used
npm
Execution logs
No response

Hi @danielsitnik, thanks for taking the time to open this issue.
Based on the screenshot you have shared the type error appears to be coming from a file called dependency-container.d.ts at line 31, column 5. The project doesn't have any file with that name and you can verify this by searching the repo.
To try to isolate the issue, I have also tried to reproduce the error you describe using the versions you listed but was not able to. You haven't specified the version of Powertools Tracer you're using, so I have assumed the latest (1.14.0).
I have also created a sample repository with my setup, which you can find here: https://github.com/dreamorosi/repro-1763
After cloning that repository, please run npm ci to install the dependencies and then npm run build to compile it. In my case I was able to do so without error. Likewise, the IDE doesn't show any error.
If you can, please try to clone the repo I have shared and see if you see the error in that one as well.

Ohhh my bad!
I didn't notice it was coming from dependency-container.d.ts, this is from tsyringe.
I have been using it with the AWS SDKs for over a year without any problems.
I guess the latest versions of the SDK changed something in the clients constructor that is causing this incompatibility now. 😞
Sorry, I'll take this issue over to the tsyringe team.


Swift 3.0 with 2.x Compatability

Migrated to 3.0 and added backward compatibility to 2.x where applicable.
TODOs:

[x] Migrate to swift 3
[x] Support for swift 2.3
[x] Support for 2.x and iOS 9

@ateliercw Just updated it with the feedback you did a while ago. Trying to push this through so we can start using it next week if you can help out :)


Filezilla installation return a 403 Forbidden error

Bug Report
Filezilla:
Current Behaviour
1 - scoop install filezilla
2 - The link to the zip file is right but Scoop return a 403 Forbidden error

Expected Behaviour
Filezilla can be installed
Additional context/output
1 - Maybe similar to issue #9075 3 days ago
2 - Clicking the link open the web browser and the file can be downloaded

Scoop Configuration
Scoop is up-to-date as well as the Extras bucket.
No issue with other package.

I'm encountering the same issue on running scoop update --all:

This stops the update completely and exits scoop which prevents other apps from updating unless doing so one by one.

Maybe need have an option in the scoop manifest to change the user-agent download header

Same issue here, reporting to bring attention to this.


Custom HTML that retains styles into default value props ReactQuill Component?

Hello, my problem is relatively straight forward but I cannot find any info on populating Quill Editor with custom templates with custom styles.
I basically want my Quill Editor to populate with a template consisting of an image at full width and a respectable height, and a div bar below it that contains two pieces of basic string data. So Basically one div tag with a few embedded divs and img tag.
So wondering if there are ways to have complex default values, or is this something I should rather keep outside of the editor ?
I have tried passing this string below into 'DefaultValue' props on ReactQuill.
cosnt textDocument =

TITLE TEMP

Paragraph and fake stuyff happening here oh yea boy....
,

But the ReactQuill seems to parse out some information.

TITLE TEMP

Paragraph and fake stuyff happening here oh yea boy....

I know this approach above is likely very, very far from ideal, but I don't know this editor well and have found nothing on feeding Quill more complex HTML default values for general templates. But it seems a lot is parsed out including divs even.
Any help is appreciated. Cheers !

I think there are limitations when it comes to dynamically inserting HTML tags into the Quill editor. With the release of the new react-quill-new version, it might be worth trying again, but for now, it still seems challenging.

Yeah, doesn't seem supported right now without massive workarounds.


Fix feedback component accessibility issues

Changes in response to accessibility review of the feedback component
Issues addressed:

2, expanded the input component used by the feedback component to include an aria-describedby attribute, then set to the id of the describing paragraph. Have only tested this in VO on Safari.
3, have set focus back to the initial 'is something wrong' prompt on form close.
5, can't do much against the GOV.UK font mixins, but I've removed the explicit definition on the initial 'is something wrong' text so it's at least consistent compared with the links next to it (i.e. all of them are now resizable)

I don't currently have fixes for the remaining issues, @selfthinker happy to discuss further.

The commit message for 90f93c4820ebf6a6a28796b8df98ddc332acdd50 should say aria-describedby, not aria-labelledby.

@selfthinker commit message updated, good spot, thanks.
Regarding shifting the focus on clicks, unfortunately we haven't done any user testing on this component. I have raised this, and work will be ongoing. It would be really good if someone could push for this while I'm away.

I also wanted to add that I agree changing the mixins is out of scope for this, but it's good that you have investigated and found what's easily possible.
Although it would generally be good to fix the mixins, as the new frontend and design system are under way, it's probably not feasible to do it from that perspective either.


Out of order Websocket request handling

Expected Behavior
Websocket requests from the same client should be handled in the order they are sent in.
Actual Behavior
If multiple Websocket requests are sent in rapid succession, the order in which they are processed is not the order in which they were received.
It could be a mutex that is locked in this async function or possibly others. When multiple requests are trying to acquire this mutex, one of them will arbitrarily acquire it, which might not necessarily be in the correct order the requests came in.
Steps to Reproduce the Problem

Run the following example:

use async_graphql::*;
use futures_channel::mpsc;
use futures_util::{stream::StreamExt, SinkExt};

struct Query;

#[Object]
impl Query {
    // Example query doing some processing
    async fn value(&self, input: i32) -> Result<i32, Error> {
        tokio::time::sleep(std::time::Duration::from_millis(100)).await;
        println!("{:?}", input);
        Ok(input)
    }
}

#[tokio::main]
async fn main() {
    let schema = Schema::new(Query, EmptyMutation, EmptySubscription);

    let (mut tx, rx) = mpsc::unbounded();
    let mut stream = http::WebSocket::new(schema, rx, http::WebSocketProtocols::GraphQLWS);

    tx.send(
        "{
            \"type\": \"connection_init\"
        }"
        .to_owned(),
    )
    .await
    .unwrap();

    // Send 10 requests in rapid succession
    for i in 0..10 {
        let mut tx_clone = tx.clone();
        tx_clone
            .send(format!(
                "{{
                    \"type\": \"start\",
                    \"id\": \"{i}\",
                    \"payload\": {{
                        \"query\": \"query {{ value(input: {i}) }}\"
                    }}
                }}"
            ))
            .await
            .unwrap();
    }

    // Handle responses
    while let Some(msg) = stream.next().await {
        println!("{:?}", msg.unwrap_text());
    }
}

The output will likely not be in the order the requests were sent in.

Specifications

Version: 4.0.8
Platform: Linux x86

This is not a bug, and there is no need to ensure that the order of request and response is exactly the same.

Alright, then I'll have to find another solution. Thanks for your time.


[NOT ISSUE] Can you make conversational type python script

What i simply mean is that if we can do continuous conversation with it rather than just getting response for once and script ends. I have seen and used some conversational type scripts which use langchain so if you have deeper understanding of its implication with tools and other stuff then please make one or two scripts for that and add it in example :-))

I am upgrading the entire repository into a new library. I anticipate that the feature you requested will be incorporated in the next weekly update, either this week or the following. I will certainly notify you upon its completion and invite you to review it. I would greatly appreciate your feedback.


Underscores in URLs sometimes break the (markdown?) link parser

The following URLs in markdown files in my repo are being parsed incorrectly by v0.7.0:

My URL
Is getting parsed as

https://upload.wikimedia.org/wikipedia/commons/6/6d/Arahats_-_Flickr_-_odako1.jpg
https://upload.wikimedia.org/wikipedia/commons/6/6d/Arahats

https://upload.wikimedia.org/wikipedia/commons/e/ec/%28Above%29_sBed-byed_%28Gopaka%29%2C_holding_a_book%3B_Wellcome_V0018272_%28cropped%29.jpg
https://upload.wikimedia.org/wikipedia/commons/e/ec/%28Above%29_sBed-byed

https://upload.wikimedia.org/wikipedia/commons/5/56/P5290155_%2814971680537%29.jpg
https://upload.wikimedia.org/wikipedia/commons/5/56/P5290155

https://upload.wikimedia.org/wikipedia/commons/5/54/Monks_in_Wat_Phra_Singh_-_Chiang_Mai.jpg
https://upload.wikimedia.org/wikipedia/commons/5/54/Monks_in_Wat_Phra_Singh

http://www.ahandfulofleaves.org/documents/The%20Buddhist%20Religion%20A%20Historical%20Introduction_%20Robinson.pdf
http://www.ahandfulofleaves.org/documents/The%20Buddhist%20Religion%20A%20Historical%20Introduction

http://www.karunabv.org/uploads/1/2/6/3/12630738/__applying_compassion_bbodhi_110312.mp3
http://www.karunabv.org/uploads/1/2/6/3/12630738/

http://www.karunabv.org/uploads/1/2/6/3/12630738/chanting-kbv__2_.pdf
http://www.karunabv.org/uploads/1/2/6/3/12630738/chanting-kbv__2

http://home.ubalt.edu/ntygfit/ai_01_pursuing_fame/ai_01_tell/jd_morality_.htm
http://home.ubalt.edu/ntygfit/ai_01_pursuing_fame/ai_01_tell/jd_morality

Here is a simple markdown file which demonstrates the bug: underscore_urls.md

Thanks for reporting @buddhist-uni.
The underscores (_) have a special meaning in Markdown and emphasize the enclosed text, so _hello_ becomes  hello.
As a result, our Markdown parser emits separate events for the different sections of the URL:
example.org/_hello_ would emit MDEvent::Text("example.org") and MDEvent::Text("hello") as individual events; so by the time the text reaches the link parser, it is already split up.
There are a few ways to solve the issue:

Use proper Markdown links. This should work: [example](example.org/_hello_).
Use txt file extension: underscore_urls.txt will use our plaintext parser and work as expected.

We could also add a --fuzzy flag to lychee, which would always use the plaintext parser (no matter the file extension), but it sounds like a hack.

@mre
Would underscore break reference link?
[title][id]

[id]: www.example.com

Thanks for the reply!
I understand that _'s mean italics in Markdown, but not in the_middle_of strings: only at the ends of words.
Here is one of those links, happily parsed correctly by GitHub Markdown:

http://www.karunabv.org/uploads/1/2/6/3/12630738/chanting-kbv__2_.pdf

As far as I'm concerned, if you're parsing md in a way that's different from everyone else: that's a bug.
I'm using Jekyll with front matter, so changing the extension is not possible nor is it feasible in this case to wrap the links in brackets/parentheses (as I'd then have to write a custom liquid tag to undo that operation in the templates).
I agree that a fuzzy flag is a bit of a hack: why not just parse markdown the same way as everyone else?

@buddhist-uni
I agree with @mre that you should use standard links, either inline links or reference links.
See https://spec.commonmark.org/0.29/

As far as I'm concerned, if you're parsing md in a way that's different from everyone else: that's your bug, even if your way is technically compatible with the original spec.

No. What's incompatible is GitHub, or more specifically GFM.
The parsing is stricy complicated to common mark.

we'd provide an optional feature to support gfm via https://lib.rs/crates/comrak
this is not always desirable, so it should be optional.

GitHub, or more specifically GFM

and Kramdown, which I'm using, and others.
In any case, since I'm not going to be the last person to use nonstandard markdown, a flag to turn off the markdown parser might be a good idea. :)

Yeah, the problem is that Jekyll's "markdown" files aren't really markdown (even though they have the .md extension): they're actually Kramdown files with Yaml/json (!) on top 😞 That yaml is where I'm storing most of my links, and that's the reason I can't just wrap them in brackets.

you can always generate HTML first and then check the links.
This is easier for both of us.

Yes: I have ways to get around this bug if you'd rather not fix it. It's your project. Perhaps you should add a "GitHub / Jekyll Markdown Files" column to your README chart with an ❌ if you're not planning on supporting them? 🤷♂
But, I am curious what cases your md parser handles correctly that the naive parser doesn't, because it occurs to me that the current behavior isn't even correct for CommonMark:
https://site.with/a_surprise_.php (not wrapped in link brackets): assuming our commonmark user intended to italicize "surprise", they would probably hope that Lychee would check "https://site.with/asurprise.php", right? They certainly did not intend "https://site.with/a"
But yes I understand it's easier for both of us if I just go away and figure this out myself and stop trying to give unwanted feedback 😂

there is no rule to exclude  blocks yet

Now we're talking!
That would fix it for me, though I'm afraid it might break other people who want to parse a code block?
Perhaps a runtime flag: --exclude-tag=code could let users specify any tag types they want to skip? Like --exclude-tag=script might be popular too.
In the (distant) future, that option might even be extended to support --exclude-tag=#id and --exclude-tag=.class. What do you think? 🙂

Mixed feelings.
This would surely allow fine-grained control over lychee's behavior.
On the other hand, users have to be aware of the underlying issue first and then know about the parameter, which can resolve it.
The entire parsing topic is a rabbit-hole. 🐰
Supporting different (Markdown) parsers sounds like a good alternative to me. We should at consider one that supports Github Flavored Markdown as that is quite a popular variant.

2. Use txt file extension: underscore_urls.txt will use our plaintext parser and work as expected

Just to follow up, I did this hack and indeed it worked as expected. So, for any future people having this issue, I added this step to my workflow:
- name: Rename .md files to .txt
  run: |
   cd $GITHUB_WORKSPACE
   sudo apt-get install -y rename
   find . -name "*.md" -exec rename 's/\.md$/.txt/' {} +

then ran lychee on **/*.txt instead of .md

A generic solution would be hard to pull off, but I'm glad you found a workaround so I guess we can close this.


bhramaravilasita and Apte

@danbalogh :

I have added bhramaravilasita to the prosodicPatterns, with two small questions for you in the xml file. You probably want to add this meter to EGD as well.

If you have time, could you add all the Apte references to the prosodicPatterns file, making sure the same pattern of ` @unit  is applied throughout?

Thanks! Arlo

I've sorted Bhramaravilasita out. My replies are in comments in the file, plus two more comments on the other changes I've made there. Please delete all comments when you've seen them, unless you disagree with something in them.
I'll add the Apte references, but unless it's urgent, I'd rather leave it till after Easter and the spring break. I'm setting myself a reminder, but do let me know if you'd rather have them sooner.


connect to AWS MQTT broker

Hi,
I am facing with a problem that happens from time to time.
I am trying to connect AWS MQTT broker,  but I receive '+MQTTDISCONNECTED:0'
I don't know the reason, but attached is a log :
module_name:WROOM-32
max tx power=78,ret=0
2.4.0
BLUFI BLE is not connected yet
all parameters are ready
ca len:1187
cert len:1220
key len:1679
E (16073) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700
E (16073) esp-tls: Failed to open new connection
E (16074) TRANS_SSL: Failed to open a new connection
E (16084) MQTT_CLIENT: Error transport connect
MQTT ERROR
MQTT DISCONNECTED
As you can see, there is an error, what does it mean and I can I solve it?

The sequence that I am running from tera-term is:
:start
sendln 'AT+RST'
waitln 'OK' 'WIFI DISCONNECT'
pause (3)
sendln 'ATE0'
waitln 'OK'
pause (0)
sendln 'AT+SYSLOG=1'
waitln 'OK'
pause  (1)
sendln 'AT+CWMODE=1'
waitln 'OK'
pause (1)
sendln 'AT+CWJAP="asas_f1","xxxxxx"'
waitln 'OK' 'ready'
pause (0)
:mqttError
pause (5)
sendln 'AT+MQTTUSERCFG=0,5,"esp32","espressif","1234567890",0,0,""'
waitln 'OK'
pause (3)
sendln 'AT+MQTTCONN=0,"xxxxxxxxx-ats.iot.eu-central-1.amazonaws.com",8883,1'
wait '+MQTTCONNECTED' '+MQTTDISCONNECTED' 'ERROR'
if result=1 goto mqttOK
if result=2 goto mqttError
if result=3 goto mqttError
:mqttOK
pause (2)
sendln 'AT+MQTTCLEAN=0'
waitln 'OK'
goto start
sendln 'AT+MQTTSUB=0,"esp32/espressif",1'
waitln 'OK'
while (1)
sendln 'AT+MQTTPUB=0,"esp32/espressif","hello12345",0,0'
waitln 'OK'
pause (3)
endwhile
Thanks, in advance
Avi

Yes, my code is based on this example
Avi
בתאריך יום ו׳, 31 במרץ 2023 ב-5:42 מאת ustccw @.***>:

@aviasaf https://github.com/aviasaf Have you followed the example here
to complete all the steps.
https://docs.espressif.com/projects/esp-at/en/latest/esp32/AT_Command_Examples/mqtt-at-examples-for-cloud.html
—
Reply to this email directly, view it on GitHub
https://github.com/espressif/esp-at/issues/699#issuecomment-1491214021,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHHFGQL53TBF6PS6E2DA4U3W6ZADDANCNFSM6AAAAAAV5LOB7U
.
You are receiving this because you were mentioned.Message ID:
@.***>

Could you please enable the debug log and see what happened.

./build.py menuconfig -> Component config -> Log output -> Default log verbosity -> Debug
./build.py menuconfig -> Component config -> mbedTLS -> Enable mbedTLS debugging -> Set mbedTLS debugging level -> Verbose

and could you please use other mqtt client tools to test if the configuration is ready for connection.
such as mosquitto.

Closing due to inactivity. Please feel free to re-open or file a new issue if you have any more questions.


Creating NewsArticle - Times out

When creating a new NewsArticle page i get the spinning wheel and it times out, throwing an error.
It times out in "sapphire/thirdparty/Zend/locale/Format.php on line 665.

If you run in development mode (isDev=1 on the end of your url should trigger that), do you get a backtrace at all?

Nope, no backtrace at all. So i can't track what is really causing the error

What version of SS are you running it on?

Also, do you have any other modules installed? What settings do you have on your NewsHolder (specifically, File into, File by and 'Is primary')

I'm running 2.4.5
Tried it with a clean, fresh installation. Same problem. The settings on the NewsHolder are the default ones(No filing, Created and Checked)

What DB are you running on? Do you mind zipping up your SS install and
sending through to me as I can't reproduce it at all with my local system
Cheers,
Marcus
On Fri, Nov 4, 2011 at 9:56 PM, JonasFromell <
<EMAIL_ADDRESS>
I'm running 2.4.5
Tried it with a clean, fresh installation. Same problem. The settings on
the NewsHolder are the default ones(No filing, Created and Checked)

Reply to this email directly or view it on GitHub:
https://github.com/nyeholt/silverstripe-news/issues/7#issuecomment-2629261

I'm running MySQL for the DB. Here's the link to my zipped installation.
http://www.4shared.com/file/tyGj3RvW/silverstripe.html

What version of PHP are you running? I've just tried your source package and it works fine for me regardless, on php 5.3. I've checked the module on a PHP5.2 system and it runs fine too. What's your PHP memory_limit set to?
Is there any other info in your PHP error log (or apache error log)? The error you mentioned earlier, is it always failing at that point? The only other thing that could help track this down is if you've got a debugger to be able to step back through things to where it might be getting stuck in a loop of some sort.


chore(master): release 1.2.51

:robot: I have created a release beep boop
1.2.51 (2023-08-31)
Bug Fixes

deps: update dependency friendsofphp/php-cs-fixer to v3.25.0 (1ac6766)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/php-cs-fixer-config/releases/tag/v1.2.51 :sunflower:


Ability to use a custom distribution URL

Hey there GraalVM team,
I'm testing against GVM master for a few bugs which are anticipated to be fixed in the upcoming Sept release. While I could figure out how to use a dev release, I couldn't find a way to use a custom distribution URL (in case testing needs to be done against a completely custom GVM distribution).
I wanted to humbly request a way to do this, and I intend to offer a PR as well shortly.

While I could figure out how to use a dev release.

java-version: 'dev' is what you need to use a GraalVM dev build. If this is not clear enough in the README.md, maybe you have an idea how we can improve the docs?

I intend to offer a PR as well shortly.

Thank you! Generally, I'm not against distribution_url but if your only use case is to use a dev build, then I'm not sure this is the right thing to do. The main reason for this is that GraalVM dev builds are volatile: we only keep the last N builds around. This means that whatever URL you decide to use, it will become unavailable and break your builds within a few weeks. java-version: 'dev', on the other hand, always pulls the latest dev build.


Failed to save Settings

I got this error, when I close the Downloader:

It only happen, when I hide the Main Folder and execute the downloader over the shortcut.

It looks like it can't have settings because the directory you put it in has write protection.


Dataset a good fit for Foundry?

@blaiszik
https://github.com/MLMI2-CSSI/foundry
Right now the dataset is on figshare, and have thought about getting it onto matminer. For now, it works downloading from figshare, but it seemed like more code than might be necessary to download, make sure I'm not getting an incomplete download, etc.

An alternative to look into might be also https://github.com/cthoyt/pystow (for mofdscribe I currently have Zenodo archives and pull from there, because it allows for nice versioning)

@kjappelbaum pystow is actually what I'm using already, thanks to your suggestion on xtal2png I'm pretty sure :) For this, I'm using figshare instead of zenodo. Part of considering matminer and foundry is getting it onto materials-specific platforms for better visibility, though this introduces an issue with keeping the copies across different platforms in-sync. For now, pystow + figshare is functional, though recently I've liked zenodo better. I'm using pystow+zenodo with an API for a more recent project https://github.com/sparks-baird/matsci-opt-benchmarks


Remove applicant id from URL for review action

Description
Please explain the changes you made here.
Release notes
The title of the pull request will be used as the default release notes description. If more detail is needed to communicate to partners the scope of the PR's changes, use this release notes section.
Checklist
General
Read the full guidelines for PRs here

[ ] Added the correct label: < feature | enhancement | bug | dependencies | infrastructure | ignore-for-release | database >
[ ] Assigned to a specific person, civiform/developers, or a more specific round-robin list.
[ ] Created unit and/or browser tests which fail without the change (if possible)
[ ] Performed manual testing (Chrome and Firefox if it includes front-end changes)
[ ] Extended the README / documentation, if necessary

User visible changes

[ ] Followed steps to internationalize new strings
[ ] Wrote browser tests using the validateAccessibility method
[ ] Tested on mobile view. See mobile device mode
[ ] Manually tested at 200% size
[ ] Manually evaluated tab order

New Features

[ ] Add new FeatureFlag env vars to server/conf/helper/feature-flags.conf
[ ] Conditioned new functionality on a FeatureFlag
[ ] Wrote browser tests with the feature flag off and on, etc.

Instructions for manual testing
If instructions are needed for manual testing by reviewers, include them here.
Issue(s) this completes
Fixes #<issue_number>; Fixes #<issue_number>...

Current dependencies on/for this PR:

main

PR #6181

PR #5946

PR #6115

PR #6199

PR #6216   👈

PR #6060
PR #5979
PR #5905

This stack of pull requests is managed by Graphite.


feat: port Analysis.Calculus.Monotone

[x] depends on: #4790

This PR/issue depends on:

leanprover-community/mathlib4#4790
By Dependent Issues (🤖). Happy coding!

This PR/issue depends on:

leanprover-community/mathlib4#4790
By Dependent Issues (🤖). Happy coding!


Publish v6 to npm - to publish v5.11 and v6 to npm after wrapping up

@kensoh When are you publishing v6 to npm?

Hi @gauravgandhi15 we are still wrapping up loose ends for v6, after that my colleague @siowyisheng will be looking to publish both v5.11 and v6 to npm.

Hi @gauravgandhi15! there is some bug we found in v6. Will try to fix before publishing on npm
In the meantime, can you tell us your use case for TagUI using npm? Note that it is not really a npm package to use in Node.js, it's there for easier installation only.
Also, because npm can't provision PHP automatically as a dependency, the npm package only works for macOS and Linux as they have PHP by default (except Ubuntu).

Also, visual automation will not work from npm distribution, because there isn't an up-to-date SikuliX package on npm that can be auto-installed. The latest on was 3 years ago -
https://www.npmjs.com/package/sikuli

@gauravgandhi15 will hear more from you the use case, to figure out if we should deprecate it.
It does seem like given the developments and increased usage of visual automation, maintaining an npm package for distribution for TagUI does not make sense. It will confuse users when visual automation is not available, and it does not work on Windows and Ubuntu due to no npm PHP package.

Of course, in a future v7 release, where TagUI is planned for migration to NodeJS, then distribution as a npm package other than a direct zip makes perfect sense.

Hi @gauravgandhi15, closing issue for now until further inputs


waitForText method doesn't handle the error

Im trying to use waitForText method with text and locator arguments without sec because its already declared in codecept.conf
AND it just freezes. No error, exception and etc.
But if I clearly write sec all will be fine.
its like  I.waitForText(text, 6, locator) - work
 I.waitForText(text, locator) - doesn't work
Details

CodeceptJS version: 2.6.0
NodeJS Version: 12.0
Operating System: macOS
puppeteer

I.waitForText doesn't support calling with text and locator only, because sec isn't the last parameter: https://codecept.io/helpers/Puppeteer/#waitfortext
If you don't want to specify sec and take it from your config, you can do it this way (I use it with WebDriver, but I guess it will work will Puppeteer too if you change the helper's name):
Test_test.js:
I.waitForText(text, commonStep.getWaitTimeoutInSec(), locator)

Common.js:
module.exports = {
    getWaitTimeoutInSec() {
        return require("codeceptjs").config.get().helpers.WebDriver.waitForTimeout / 1000;
    }
};


when tree-select has many leaf nodes, no scroll bar is displayed

Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-4clgvs
Steps to reproduce

Construct a two-layer tree
Tree has many leaf nodes

What is expected?
Show scroll bar
What is actually happening?
Don't show scroll bar, the leaf nodes not full displayed

Environment
Info

ng-zorro-antd
7.3.3

Browser
chrome

@tangjwt  You can set the max-height in  [nzDropdownStyle].
 <nz-tree-select [nzDropdownStyle]="{ 'max-height': '300px' }"></nz-tree-select>


'config' command does not have a help message

Consequently, luarocks help config crashes:
LuaRocks scm, a module deployment system for Lua

NAME

Error: LuaRocks scm bug (please report at https://github.com/keplerproject/luarocks/issues).
/usr/local/share/lua/5.3/luarocks/help.lua:106: attempt to concatenate a nil value (field 'help_summary')
stack traceback:
	/usr/local/share/lua/5.3/luarocks/help.lua:106: in function 'luarocks.help.run'
	(...tail calls...)
	[C]: in function 'xpcall'
	/usr/local/share/lua/5.3/luarocks/command_line.lua:202: in function 'luarocks.command_line.run_command'
	/usr/local/bin/luarocks:34: in main chunk
	[C]: in ?

What do people think of the wording?

Bikeshedding: maybe in summary Queries information should be changed to Query information? Most commands use this form.

Merged. Also, special thanks for resyncing testing.lua too. I've been completely sidetracked away from that project, and couldn't devote any time into it. I will get back to it eventually, but it's low in my priorities list right now.

You're welcome. I'd like to run actual tests on Windows someday. I'll try
to fill in the blanks when time permits.


Allow typescript usage

It solves this issue: https://github.com/dotansimha/graphql-code-generator/issues/318
To do such thing babel-extract-comments should use babylon 7.
This PR needs to be accepted first: https://github.com/jonschlinkert/babel-extract-comments/pull/4
Then this project should be updated.
Thanks for your work :)

not sure, but is there a way to use this lib with typescript?


Wide characters are cut off

Any way to fix this?

any updates on this issue?
thanks.

your issue report could be improved by providing font used, text string and expected result (in which terminal it works as expected)

I also face the same problem, though I only use a unicode glyph in one place:

If I add 2 spaces to the place I'm defining it:
zsh export ZSH_PLUGINS_ALIAS_TIPS_TEXT=$'\033[01;33m💡  ', then it outputs correctly.

On kitty it shows as:

And on alacritty:

It occurs with any font. With or without escape chars.

weird, i can't reproduce this:

hmm, I've tried:
Iosevka
DejaVu Sans Mono
Noto Sans Mono
Liberation Mono
FreeMono
Monofur Nerd Font
Nimbus Mono L

And all require two spaces after the glyph to render correctly. What emoji font are you using? I have noto-fonts-emoji-20180810 & twemoji

  <family>monospace</family>
  <prefer>
   <family>Fantasque Sans Mono</family>
   <family>Emoji One Color</family>
</prefer>

but with different monospace fonts it also works, so i guess the problem is with emoji font, what it's not setting what chars should be double-width:

I think there are 2 problems here:
noto-fonts-emoji requires 2 spaces. twemoji(the successor to Emoji One) needs 1 space but only on st.
On alacritty and kitty, it shows correctly without a space. (I tried it with twemoji and font-symbola). But st needs the space. Presumably because it's placing a two cell width char in a single cell

because your double-width are loading not directly from your font, but from the font's fallback, you need to manually add that fallback font to font_fallback section and set appropriate font size to adjust the width, see the guide here: https://github.com/gnotclub/xst/wiki/Color-Emojis


python39Packages.denonavr: 0.10.10 -> 0.10.11

Description of changes
https://github.com/ol-iver/denonavr/releases/tag/0.10.11

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

3 packages built:

home-assistant-component-tests.denonavr
python310Packages.denonavr
python39Packages.denonavr


Increase worker streaming register timeout

Fixes #15156
What changes are proposed in this pull request?
Enlarge the worker streaming register timeout for millions of blocks.
Why are the changes needed?
When worker has millions of blocks, 1 min timeout is not enough
Does this PR introduce any user facing changes?
NA

alluxio-bot, merge this please


Performance - Load the SignWriting font locally

I'm building an app that uses sgnw-components.
It seems like that when registering the custom elements here, two requests go out to load the fonts from a third party domain:

https://cdn.jsdelivr.net/npm/<EMAIL_ADDRESS>https://cdn.jsdelivr.net/npm/<EMAIL_ADDRESS>
This is a bit problematic, as requests to an external domain create a new SSL handshake (as indicated by the purple), and are more difficult to set a service-worker cache policy for.
Additionally, loading these fonts from a third party might make the app unusable in offline mode.
See waterfall chart of the app loading time: (these fonts take the majority of the time)

One possible solution:
For apps using a build process (angular apps, stencil apps, etc), they install the library using:
npm install @sutton-signwriting/sgnw-components --save
This also installs the @sutton-signwriting/font-ttf as a dependency.
In the font-ttf library, add to the font directory a font.css file:
@font-face {
    font-family: SuttonSignWritingLine;
    src: url("SuttonSignWritingLine.ttf") format("truetype");
}
@font-face {
    font-family: SuttonSignWritingFill;
    src: url("SuttonSignWritingFill.ttf") format("truetype");
}

For everyone using the library with a script tag, they would need to do:
<script<EMAIL_ADDRESS><link rel="stylesheet"<EMAIL_ADDRESS>
But in Angular, for example, I would add something like this to the config, and angular should correctly resolve the paths:
"assets": [
  "src/assets",
  {
    "glob": "**/*",
    "input": "./node_modules/@sutton-signwriting/font-ttf/font",
    "output": "./assets/fonts/signwriting/"
  }
],
"styles": [
  "src/theme/styles.scss",
  "assets/fonts/signwriting/font.css"
],

Thanks for all of your hard work on this Steve!

There are three scenarios here.  They can all be handled by the SignWriting fonts.  Some assembly required.

Fonts installed on local computer already  (Windows, Mac, Linux, iOS)
Fonts packaged with the website/application
Fonts available on the internet.

For the @sutton-signwriting/font-ttf package function font.cssAppend, it will always handle scenarios 1 and 3.  For scenario 2, you will need to pass the font.cssAppend function the location of the locally available font files, or you will need to create the CSS font-face yourself.
See: https://sutton-signwriting.github.io/font-ttf/#fontcssappend

Thanks Steve!
Final code:
Copy ttf files:
{
  "glob": "*.ttf",
  "input": "./node_modules/@sutton-signwriting/font-ttf/font",
  "output": "./assets/fonts/signwriting/"
}

Set directory:
import {font} from<EMAIL_ADDRESS>
font.cssAppend('assets/fonts/signwriting/');

Waterfall