Add brew link --HEAD

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

Closes #11224.
Currently, if the head and stable versions of a formula are both installed, it isn't possible to link the head version of the formula. This PR adds the --HEAD flag to link the head version of a formula.
I had to revise the link command to use to_formulae_and_casks(only: :formula, method: :kegs) rather than to_kegs (which calls to_formulae_and_casks(only: :formula, method: :keg) to get both the head and stable kegs. I may have inadvertently created an issue if multiple non-head kegs can be installed. My modifications make the link command attempt to link any non-head kegs unless --HEAD is given.
I would appreciate it if a maintainer weighed in on this.

typecheck is currently failing because to_formulae_and_casks doesn't return an array of kegs like to_kegs does. Going to wait to fix this until someone weighs in on issue I outlined in previous message.

Nice work again so far @cnnrmnn!

I may have inadvertently created an issue if multiple non-head kegs can be installed

Yes, you can have multiple non-head kegs installed 😭. Let me know if you need a hand with how to progress.

I may have inadvertently created an issue if multiple non-head kegs can be installed

Yes, you can have multiple non-head kegs installed 😭. Let me know if you need a hand with how to progress.

Do you know why to_kegs is named to_kegs despite using method: :keg when calling to_formulae_and_casks? I'm considering defining a similar method that uses method: :kegs to correct the current type issue.

Do you know why to_kegs is named to_kegs despite using method: :keg when calling to_formulae_and_casks? I'm considering defining a similar method that uses method: :kegs to correct the current type issue.

My guess is just it's pluralised like to_formulae_and_casks is. I agree the naming is a little confusing in this case and would be fine with it being changed.

My guess is just it's pluralised like to_formulae_and_casks is. I agree the naming is a little confusing in this case and would be fine with it being changed.

It was called to_kegs because it converted each of the named arguments to kegs (same reason as to_formulae_and_casks, as you suggested).

The code doesn't work in its current state. Main issue is that brew link <formula> (without --HEAD) will link the head version of the formula if

It's the only installed version of the formula. This may or may not be behavior we want.
If it is the most recently installed version of the formula and is thus linked in HOMEBREW_PREFIX/opt and HOMEBREW_LINKED_KEGS. This is obviously undesirable since it leaves no way to link a non-head version of the formula if the head version of the formula is the most recently installed version of the formula.

It's the only installed version of the formula. This may or may not be behavior we want.

I think this is desirable 👍🏻

2. If it is the most recently installed version of the formula and is thus linked in HOMEBREW_PREFIX/opt and HOMEBREW_LINKED_KEGS. This is obviously undesirable since it leaves no way to link a non-head version of the formula if the head version of the formula is the most recently installed version of the formula.

I think this would be OK, actually, we could output a message staging that brew unlink is required first.

Why do both HOMEBREW_PREFIX/opt and HOMEBREW_LINKED_KEGS both exist? They seem to mirror each other.

opt links should always be present for any installed formula. HOMEBREW_LINKED_KEGS indicates a formula has been brew linked (either by default on installation or through brew link --force afterwards).

Another strange behavior I noticed is that installing the head version of a formula uninstalls any non-head versions of that formula that are installed. However, installing a non-head version of a formula does not uninstall the head version of the formula if it's installed.
Also, if there are multiple non-head versions of a formula installed, there's no way to control which one gets linked by brew link.

I think this would be OK, actually, we could output a message staging that brew unlink is required first.

brew unlink wouldn't solve the problem. If the head version of a formula is the most recently installed version, it is linked in HOMEBREW_PREFIX/opt and HOMEBREW_LINKED_KEGS. Calling brew unlink unlinks it in HOMEBREW_LINKED_KEGS, but not in HOMEBREW_PREFIX/opt. to_keg (called when using brew link without --HEAD), uses the link in HOMEBREW_PREFIX/opt to get the keg .
Example (formula is initially unlinked):

I think the main question here is if the link in HOMEBREW_PREFIX can't be used to determine which version of the formula should be linked by brew link, what should we use?

Also, if there are multiple non-head versions of a formula installed, there's no way to control which one gets linked by brew link.

I think the answer should ideally address this as well.
Perhaps a version flag should be added to brew link so that user can optionally choose the version to be linked. Default could be linking highest installed version of the formula or the head version of the formula if no non-head versions are installed.

Another strange behavior I noticed is that installing the head version of a formula uninstalls any non-head versions of that formula that are installed. However, installing a non-head version of a formula does not uninstall the head version of the formula if it's installed.

I don't know if there's a reason for this but I can't think of one off the top of my head. It seems to me that what a user would expect when installing is that whatever version they've most recently installed is the one that's linked. I don't see why installing a stable version shouldn't wipe the HEAD version but installing HEAD does wipe the stable. If anything, I would think it should be the opposite because a new stable version might now match the HEAD version.

Perhaps a version flag should be added to brew link so that user can optionally choose the version to be linked. Default could be linking highest installed non-head version of the formula or the head version of the formula if no non-head versions are installed.

In what situation are there two versions installed, other than a HEAD and a stable version? I don't know of a way to cause this to happen when it isn't a mistake, but I guess I could be missing something.

In what situation are there two versions installed, other than a HEAD and a stable version? I don't know of a way to cause this to happen when it isn't a mistake, but I guess I could be missing something.

I can't think of any off of the top of my head, but @MikeMcQuaid mentioned earlier in this PR that it is possibly to have multiple non-head kegs installed:

Yes, you can have multiple non-head kegs installed 😭. Let me know if you need a hand with how to progress.

I guess my thinking is that even if it's possible for there to be multiple we don't need to support doing anything with the non-(head-or-latest-version) keg.
So I think just autodetecting the latest version is the way to go; no need to add any new flags. Same goes for brew list in my opinion
Let's hear from Mike and see if he has a different opinion.

I guess my thinking is that even if it's possible for there to be multiple we don't need to support doing anything with the non-(head-or-latest-version) keg.

I agree, especially if there's no way to end up with more than one non-head keg using only brew commands.

So I think just autodetecting the latest version is the way to go; no need to add any new flags. Same goes for brew list in my opinion

Since it is possible to have a head keg and a non-head keg installed, I think there should be a --HEAD flag on brew link and potentially on brew list <formula> as well. If we feel that you shouldn't be able to have head and non-head versions simultaneously installed, then some changes should be made and brew link and brew list could stay as-is.

Another strange behavior I noticed is that installing the head version of a formula uninstalls any non-head versions of that formula that are installed. However, installing a non-head version of a formula does not uninstall the head version of the formula if it's installed.

Either way, the inconsistency above should be addressed (unless I'm missing something).

I can't think of any off of the top of my head, but @MikeMcQuaid mentioned earlier in this PR that it is possible to have multiple non-head kegs installed:

Yup, set HOMEBREW_NO_INSTALL_CLEANUP and there will be multiple installed on an upgrade until you run brew cleanup manually.

So I think just autodetecting the latest version is the way to go; no need to add any new flags. Same goes for brew list in my opinion

Agreed. We don't want to support operating on the non-latest keg in any way but do want to support it optionally not being removed.

syntax is currently failing because style doesn't like duplicate branch bodies with :default_kegs and to-be-deprecated :keg.


Rerun vndr with newest version

This excludes things marked with "// +build ignore".
Signed-off-by: Ian Campbell<EMAIL_ADDRESS>

Codecov Report

Merging #1159 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1159   +/-   ##
=======================================
  Coverage   31.78%   31.78%
=======================================
  Files          27       27
  Lines        2168     2168
=======================================
  Hits          689      689
  Misses       1331     1331
  Partials      148      148

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 d173454...412d455. Read the comment docs.

hmm, added console_linux.go file looks unexpected. It should be added when we bumped the version previously.

it should have indeed, but it's not in master at the moment, so this looks correct to me.

I missed the new file, I guess someone forgot a git add at some point in the past.

I could update the commit message to mention the added file if folks wants.

LGTM
@ijc i dont mind the commit as is :smile:, just wonder if it was a mistake or there is a bug somewhere :thinking:


Teamnado 3858

Promoting updated "moment" package to stage-stable

Codecov Report

Merging #53 (a07c7bd) into main-stable (29ef6e7) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@               Coverage Diff               @@
##           main-stable      #53      +/-   ##
===============================================
+ Coverage        88.19%   88.20%   +0.01%
===============================================
  Files               42       42
  Lines              669      670       +1
  Branches           124      124
===============================================
+ Hits               590      591       +1
  Misses              79       79

Impacted Files
Coverage Δ

src/components/Authentication/Authentication.tsx
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29ef6e7...a07c7bd. Read the comment docs.


Any change to pp_od_clk_voltage results in severe throttling

Kernel: 5.0-rc2
GPU: Vega 64 (MSI 8G OC one)
Even slight change to voltage (e.g. just +/-1mV is enough) for any power level results in severe throttling.
E.g. when running Unigine Superposition w/ default pp_table I get ~40fps while maintaining sclk about 1400 and mclk=945.
If I run this, however:
DEV=/sys/class/drm/card0/device
echo "manual" > $DEV/power_dpm_force_performance_level
echo "s 0 852 800" > $DEV/pp_od_clk_voltage #800 -- commented are the default values
echo "s 1 991 900" > $DEV/pp_od_clk_voltage #900
echo "s 2 1084 950" > $DEV/pp_od_clk_voltage #950
echo "s 3 1138 1000" > $DEV/pp_od_clk_voltage #1000
echo "s 4 1200 1050" > $DEV/pp_od_clk_voltage #1050
echo "s 5 1401 1100" > $DEV/pp_od_clk_voltage #1100
echo "s 6 1576 1150" > $DEV/pp_od_clk_voltage #1150
echo "s 7 1663 1199" > $DEV/pp_od_clk_voltage #1200 <---- note the -1mV difference
echo "c" > $DEV/pp_od_clk_voltage
echo "m 0 167 800" > $DEV/pp_od_clk_voltage #800
echo "m 1 500 800" > $DEV/pp_od_clk_voltage #800
echo "m 2 800 950" > $DEV/pp_od_clk_voltage #950
echo "m 3 945 1100" > $DEV/pp_od_clk_voltage #1100
echo "c" > $DEV/pp_od_clk_voltage

sclk immediately drops to ~1300. After a couple of seconds it drops further down below ~1200, fps drops to about 20, and mclk starts to randomly oscillate between 200 and 945 every few dozen ms. Power consumption and GPU load stay the same.
If I change the 1199 back to 1200, then the performance and frequencies go back to normal.
The same behavior is observed with changing any other voltage (for memory too) by any other amount.
The behavior is the same if the voltage is changed using the rock_smi.py util instead of the custom command above.
Other notes:

kernel parameters: amd_iommu=on vfio-pci.ids=10de:1005,10de:0e1a,1912:0014,1106:3483 iommu=pt vfio-pci.disable_vga=1 hpet=disable nohpet amdgpu.ppfeaturemask=0xfffd7fff amdgpu.gpu_recovery=1 pcie_aspm=off zfs_arc_max=4294967296
at idle sclk is at level 3 (1138MHz), mclk stays at max, power draw is ~40W. (the same config on windows stays at min levels with just 20W)
I am unable to properly dump the video bios of this card on Linux. It is truncated to 60928 bytes, and the contents seem to be slightly different by a few bytes here and there from the dump extracted on Windows. (there's a dozen of "No more image in the PCI ROM" lines in dmesg when the BIOS is being dumped)
I'm doing this in a (still futile) attempt to mitigate "ring gfx timeout" issue that this GPU has been randomly experiencing since forever. It is hardly related to the issue being reported here, but for context: the timeout happens at random (it can be stable for weeks, and then hang several times in one evening). It often happens either when using OBS for streaming, or when running some heavy raytracing shader e.g. from shadertoy, or when doing some opencl load, or even when GPU is completely idle, but CPU is busy (Threadripper 1950X compiling a huge C++ codebase in 32 threads). Sometimes it timeouts right away (10sec - 20min of load), but sometimes it can survive for many consecutive hours. The same hw doesn't seem to be unstable on Windows, at least while doing limited stress tests, so it doesn't look like a hardware issue.
amdgpu recovery doesn't work and a hard reset is needed (soft reset e.g. by ssh hangs).

I concur with above my reference Vega 64 with Morpheus II on 5.0.8 & 4.20.6. The only way to improve performance is to modify HBM clock
echo "m 3 1100 1000" > /sys/class/drm/card0/device/pp_od_clk_voltage
without confirming by sending
echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage
core GPU clock seems to boost only with increased power limit. touching anything else does not seem to matter and driver sets high voltages leading to thermal throttling. Typical Vega undervolt/overclock does not work.

Is this still an issue?  if not, can we please close it?  Thanks!

This issue is no longer relevant for me, I'm not using that Vega 64 card anymore.


log4j system initialization problem

Hello, I have an issue when using this plugin to output data to ElasticSearch.
My Logstash conf is the following :
input {
  dynamodb {
    _type => "dev_organizations"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_organizations"
  }
  dynamodb {
    _type => "dev_automations"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_automations"
  }
  dynamodb {
    _type => "dev_bags"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_bags"
  }
  dynamodb {
    _type => "dev_billings"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_billings"
  }
  dynamodb {
    _type => "dev_boxes"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_boxes"
  }
  dynamodb {
    _type => "dev_collects"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_collects"
  }
  dynamodb {
    _type => "dev_items"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_items"
  }
  dynamodb {
    _type => "dev_locations"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_locations"
  }
  dynamodb {
    _type => "dev_notifications"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_notifications"
  }
  dynamodb {
    _type => "dev_organizations"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_organizations"
  }
  dynamodb {
    _type => "dev_packers"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_packers"
  }
  dynamodb {
    _type => "dev_parcels"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_parcels"
  }
  dynamodb {
    _type => "dev_settings"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_settings"
  }
  dynamodb {
    _type => "dev_templates"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_templates"
  }
  dynamodb {
    _type => "dev_transactions"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_transactions"
  }
  dynamodb {
    _type => "dev_users"
    endpoint => "http://dynamodb:8000"
    streams_endpoint => "http://dynamodb:8000"
    view_type => "new_and_old_images"
    aws_access_key_id => "MY_ACCESS_KEY"
    aws_secret_access_key => "MY_SECRET"
    table_name => "dev_users"
  }
}
filter {
  dynamodb {}
  mutate {
    remove_field => ["message", "host", "eventName", "keys"]
  }
}
output {
  elasticsearch {
    hosts => ["http://elasticsearch:9200"]
    index => "%{[_type]}"
    document_id => "%{[id]}"
  }
  stdout {}
}

When I run Logstash, I got the following output :
Settings: Default pipeline workers: 4
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Pipeline main started

Now if I try to insert item in my table, Logstash dont do anything (Dont capture the streams ?)...
But if I restart Logstash, the initial scan actually found the changes in tables and output them to ElasticSearch.
Any idea on why I got this behaviour ?

@yomansk8 run logstash in debug mode (-D) and paste the output here

@marcosnils This is what it gives me :
Reading config file {:config_file=>"/usr/conf/logstash.conf", :level=>:debug, :file=>"logstash/config/loader.rb", :line=>"69", :method=>"local_config"}
Plugin not defined in namespace, checking for plugin file {:type=>"input", :name=>"dynamodb", :path=>"logstash/inputs/dynamodb", :level=>:debug, :file=>"logstash/plugin.rb", :line=>"86", :method=>"lookup"}
Unknown setting '_type' for dynamodb {:level=>:error, :file=>"logstash/config/mixin.rb", :line=>"330", :method=>"validate_check_invalid_parameter_names"}
fetched an invalid config {:config=>"...MYCONFIGFILEHERE...", :reason=>"Something is wrong with your configuration.", :level=>:error, :file=>"logstash/agent.rb", :line=>"448", :method=>"create_pipeline"}
starting agent {:level=>:info, :file=>"logstash/agent.rb", :line=>"213", :method=>"execute"}

Do you think that it can be caused by the unknown parameter _type ?

@yomansk8 IDK, but as the log states, something is wrong in the config

@marcosnils I've tried to change the _type parameter to type. No more error in config file, but I got the same behavior as before... Nothing is triggered by Logstash and nothig is output to ElasticSearch until I restart Logstash.

Try inserting a record in dynamo after that. Verbose logging should show a lot of info.

I've tried, but nothing is logged when I insert a record in dynamo.
The only thing that I see is a loop of this :
Flushing buffer at interval {:instance=>"#<LogStash::Outputs::ElasticSearch::Buffer:0x43f049 @operations_mutex=#<Mutex:0xe840e31>, @max_size=500, @operations_lock=#<Java::JavaUtilConcurrentLocks::ReentrantLock:0xabb9b39>, @submit_proc=#<Proc:0x5067640c@/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.7.1-java/lib/logstash/outputs/elasticsearch/common.rb:57>, @logger=#<Cabin::Channel:0x7e3c0db7 @metrics=#<Cabin::Metrics:0x2808331a @metrics_lock=#<Mutex:0x2f96fb45>, @metrics={}, @channel=#<Cabin::Channel:0x7e3c0db7 ...>>, @subscriber_lock=#<Mutex:0x443abdbf>, @level=:debug, @subscribers={13568=>#<Cabin::Subscriber:0x330c399d @output=#<Cabin::Outputs::IO:0x2bd8a06a @io=#<IO:fd 1>, @lock=#<Mutex:0x3a1e27eb>>, @options={}>}, @data={}>, @last_flush=2017-01-05 13:33:22 +0000, @flush_interval=1, @stopping=#<Concurrent::AtomicBoolean:0x4a125d03>, @buffer=[], @flush_thread=#<Thread:0x1880450d run>>", :interval=>1, :level=>:debug, :file=>"logstash/outputs/elasticsearch/buffer.rb", :line=>"90", :method=>"interval_flush"}
Pushing flush onto pipeline {:level=>:debug, :file=>"logstash/pipeline.rb", :line=>"458", :method=>"flush"}

And when I restart Logstash, he found my previously created records and output them to ElasticSearch producing the following logs :
output received {:event=>{"@version"=>"1", "@timestamp"=>"2017-01-05T13:33:13.088Z", "type"=>"dev_organizations", "signature"=>false, "printer"=>"A6", "active"=>true, "typ"=>"ORGA", "services"=>"PickShip", "logoUrl"=>"mulogourl", "billing"=>"987654321", "receptionMode"=>"BAG", "updateBy"=>"456789123", "name"=>"My awesome company", "logo"=>"mylogo.png", "id"=>"123456789", "logoKey"=>"mylogokey", "crn"=>"crn-123", "updateWhen"=>"1483546492043", "tva"=>"tva-123"}, :level=>:debug, :file=>"(eval)", :line=>"138", :method=>"output_func"}
2017-01-05T13:33:13.088Z %{host} %{message}

@yomansk8 seems like logstash is working as it scans your tables when it starts. When you created your dynamodb tables, did you enable the stream option for those tables?

Yes, the stream option is enable on those tables.
I've created all of them with the following parameters :
"StreamSpecification": {
  "StreamEnabled": true,
  "StreamViewType": "NEW_AND_OLD_IMAGES"
}

I agree that it seems like a stream problem, but I cant figure out where is he !


Update docs for feat(otlp): initial OTLP trace support

A document change request is generated from
https://github.com/GreptimeTeam/greptimedb/pull/2627

We will revisit this after our refactor on OTLP traces.


Customer needs help

I have a Microsoft customer who needs Support help from the TEOC team, and this is impacting C-suite, 911, Fire dept and other hospital Executive's for case<PHONE_NUMBER>008132 at [PPI]. Business Issue: Users at [PPI] are not able to create new incidents report using Emergency Operation Center (TEOC) and this is now directly impacting the health and safety of a hospital. Please advise.

Hi @jugaraka ,
Can you please share us the console logs and the network trace to figure out the root cause of the error they are receiving in TEOC app?
To get a console logs, please try to access the TEOC application in the browser version of MS Teams and open Developer tools from browser (or press Ctrl + Shift + I , this will open the console window) and replicate the error by creating new incident then right click on the logs to Save it as a log file.

To get Network trace, Open the network window and Export the log trace as HAR file.

Please share us these logs and HAR files to further investigate on this issue. Thanks.

Thank you for the help here. We are on call with the customer currently/Troubleshooting at this time.
Justin J. Garakanian
Incident Manager - US Public Sector
<EMAIL_ADDRESS>Hours: M-F 7 am to 4 pm - Central
Office: +1<PHONE_NUMBER>
@.***
Microsoft Services Support:
https://serviceshub.microsoft.comhttps://serviceshub.microsoft.com/
Support (24/7): +1<PHONE_NUMBER>
Support (US NAT): +1<PHONE_NUMBER>
Support (GCC High): +1<PHONE_NUMBER>
From: v-prigunasek @.>
Sent: Thursday, August 17, 2023 10:50 AM
To: OfficeDev/microsoft-teams-emergency-operations-center @.>
Cc: Justin Garakanian @.>; Mention @.>
Subject: Re: [OfficeDev/microsoft-teams-emergency-operations-center] Customer needs help (Issue #133)
Hi @jugarakahttps://github.com/jugaraka ,
Can you please share us the console logs and the network trace to figure out the root cause of the error they are receiving in TEOC app?
To get a console logs, please try to access the TEOC application in the browser version of MS Teams and open Developer tools from browser (or press Ctrl + Shift + I , this will open the console window) and replicate the error by creating new incident then right click on the logs to Save it as a log file.
[image]https://user-images.githubusercontent.com/98514691/261363168-05eee429-a29a-45c1-8dea-32a0cde44b77.png
[image]https://user-images.githubusercontent.com/98514691/261363239-9eb160cf-85ff-45b9-b2b6-6871b1407041.png
To get Network trace, Open the network window and Export the log trace as HAR file.
[image]https://user-images.githubusercontent.com/98514691/261363280-19c1d2d4-b307-479e-acfe-1bf372524103.png
Please share us these logs and HAR files to further investigate on this issue. Thanks.

Reply to this email directly, view it on GitHubhttps://github.com/OfficeDev/microsoft-teams-emergency-operations-center/issues/133#issuecomment-1682518990, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB7KXQJG3DLGTFMGY74UGB3XVY4SFANCNFSM6AAAAAA3UHD3BU.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

In the call with customer, the issue was identified, and it was due to the group creation setting in the tenant that is set to NO
(Azure Portal --> Groups --> Settings-->General -> Users can create Microsoft 365 groups in Azure portals, API or PowerShell" )
To workaround this, asked them to follow this documentation to  Manage who can create Microsoft 365 Groups | Microsoft Learn.
Issue was resolved after implementing the solution provided in the documentation. Hence closing this ticket.


: Error: Switch case may fall through to the next case.

I using fvm to switch my project with a different flutter version.
I want to switch 2.8.1 version to 1.22.6, but get this error
: Error: Switch case may fall through to the next case.
../…/selection/select_nearest.dart:109
      case SelectionTrigger.tap:
      ^
: Error: Switch case may fall through to the next case.
../…/selection/select_nearest.dart:113
      case SelectionTrigger.tapAndDrag:
      ^
: Error: Switch case may fall through to the next case.
../…/selection/select_nearest.dart:121

      case SelectionTrigger.pressHold:
      ^
: Error: Switch case may fall through to the next case.
../…/selection/select_nearest.dart:129
      case SelectionTrigger.longPressHold:
      ^
: Error: Switch case may fall through to the next case.
../…/selection/select_nearest.dart:280

      case SelectionTrigger.tap:
      ^
2

FAILURE: Build failed with an exception.

* Where:
Script '[C:\Users\nick_\fvm\versions\1.22.6\packages\flutter_tools\gradle\flutter.gradle]()' line: 904

@tony123S this seems to be a code-specific error, not FVM, it could be that the code is not compatible with version 1.22.6

Closed as this seems to be a code error. Please feel free to reopen if you have info that suggests otherwise


✨ add msg::detail::bitset

bitset can be used to efficiently iterate over indices of set bits

this is one part of a larger task to implement the low-latency msg::indexed_handler

this pull request now covers the full indexed_handler implementation


System Model

This module relies on the electricity and exiobase data to be in the rdf database. As well as the availability of concordances between entso and exiobase (both region and electricity source) as well as unit correspondences (e.g. kWh/Joules etc)


vscode missing libGLESv2.so, gpu accel disabled

Describe the bug
With the last PR that fixed wayland gpu acceleration for vscode, gpu acceleration broke for non-wayland.
Error code:
Failed to load GLES library: /nix/store/pj28fgr2jj4wn5az6x26px6dsbgc09p7-vscodium-<IP_ADDRESS>09/lib/vscode/libGLESv2.so

I can confirm that I have gpu acceleration working when I pin vscode nixpkgs to https://github.com/NixOS/nixpkgs/commit/e8d56b900b2fb1d2237b5511d8a6e1d544943744 which is the parent commit of https://github.com/NixOS/nixpkgs/pull/245705.
I also tried the following, linking libglvnd's libGLESv2 into vscode directory. The error changed and terminal rendering completely broke with a black screen:
  postInstall = ''
    ln -sf ${pkgs.libglvnd}/lib/libGLESv2.so $out/lib/vscode/libGLESv2.so
  '';

Steps To Reproduce
Steps to reproduce the behavior:

Start VScode with the --verbose flag, so it outputs details about the startup and other stuff
Notice how it complains about missing libGLESv2.so library.
Run code --status to see check that it's indeed using software rendering.

Expected behavior
VSCode uses gpu acceleration.
Additional context
See https://github.com/NixOS/nixpkgs/issues/243372
Notify maintainers
@eadwu @Synthetica9 @maxeaubrey @bobby285271 @Enzime
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.43, NixOS, 23.05 (Stoat), 23.05.20230807.011567f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos"`
 - channels(aanar): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

In general when you are not loading bundled/vendor libraries, then all the libraries ideally should be loaded from the system (especially if they are related) otherwise you run into problems.
Try doing what you did in postInstall but also for libEGL.so which is provided by the libGL package. I think libGL also provides libGLESv2.so for that matter.

Almost works. There is a different error now. code --status says enabled_readback for gpu accel instead of disabled.
[28792:0810/105035.591542:ERROR:gl_display.cc(508)] EGL Driver message (Error) eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing
[28792:0810/105035.591691:ERROR:gl_display.cc(508)] EGL Driver message (Error) eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing
[28792:0810/105035.591806:ERROR:gl_context_egl.cc(370)] eglCreateContext failed with error EGL_BAD_MATCH
[28792:0810/105035.591920:ERROR:gles2_command_buffer_stub.cc(336)] ContextResult::kFatalFailure: Failed to create context.

Maybe I should go ahead and do the same for libvulkan, libvk_swiftshader, libffmpeg too.

Try:
postInstall = ''
  patchelf --add-needed ${lib.getLib libglvnd}/lib/libGLESv2.so.2 $out/lib/vscode/code
'';

It's still looking for a /lib/vscode/libGLESv2.so after patchelf --add-needed either libGLESv2.so or libGLESv2.so.2.
Failed to load GLES library: /nix/store/ljjryfkpg6j7a6dn8awwfh1kcrd31zs4-vscode-1.80.2/lib/vscode/libGLESv2.so: /nix/store/ljjryfkpg6j7a6dn8awwfh1kcrd31zs4-vscode-1.80.2/lib/vscode/libGLESv2.so: cannot open shared object file: No such file or directory

Would it make sense to bring bundled /lib/vscode/libGLESv2.so back so that it works for everybody? Would bringing it back break https://github.com/NixOS/nixpkgs/pull/245705?

I think if you have the patchelf --add-needed it should continue to work for Wayland, and if you remove the rm it should work for X11 (it seems to explicitly try to load the bundled library). If you can test that and it does actually work it is probably a good enough solution.


Resizing the browser does not cause the the svg in the VisualizationSurface to resize

Describe the problem
Looking at the code in the VisualizationSurface, I can see that ReactMeasure is used which triggers an onMeasure callback when the browser is resized.
  const onMeasure = React.useMemo(
    () =>
      _.debounce<any>(
        action((contentRect: { client: { width: number; height: number } }) => {
          controller.getGraph().setDimensions(new Dimensions(contentRect.client.width, contentRect.client.height));
        }),
        100,
        { leading: true, trailing: true }
      ),
    [controller]
  );

The onMeasure function is triggered but the svg does not resize.
How do you reproduce the problem?
In this repo run:

yarn install
yarn workspace demo-app-ts run start:demo-app
go to http://localhost:3000/topology-pipelines-demo-nav-link and resize the browser, only the sidebar will change.

Expected behavior
The svg should resize to the new contentRect passed to the onMeasure callback.
Is this issue blocking you?
No
Screenshots
https://github.com/patternfly/react-topology/assets/118328/edba556f-2c49-4148-9d24-cc8814ec33dc
What is your environment?

OS: OSX ventura
Browserchrome
version 113

What is your product and what release date are you targeting?
Any other information?

@dagda1 The graph does resize but the elements do not change their scale or location. If you try the Topology package demo, you can see that the fit to screen control button does fit to the appropriate size when the browser is resized. If you inspect the graph, you can see it's size update as you resize the window.

Thank you for the quick response.  I am looking a the Topology package demo and I had to look at the source to find the button and cancel some styles to make it visible but even with that clicked, the svg does not redraw after a browser resize.
Apologies if i am missing something obvious, I'm new to this package.
Is there a way for the nodes to recalculate or redraw after a resize?
https://github.com/patternfly/react-topology/assets/118328/87c89727-9330-48d4-93eb-408379ef72c0

The graph surface does resize, the nodes do not (the scale remains the same). The graph origin remains the same as well. So, the graph does not redraw but shows the portion of the graph that remains in view. After resize, a fit to screen would then update the scale and origin such that the entire graph fits on the visible surface. The purpose of the measure is only to know the size of the surface in order for the graph.fit() function to perform properly.

It does sound like it is possible in theory to do what I want through the API.
What would it look like in code for this to happen as it is not happening automatically.
I have set controller.setFitToScreenOnLayout(true);
Should I use a ResizeObserver or something and call controller.getGraph().fit() or something like that to make this happen.

or even
controller.getGraph().reset();
controller.getGraph().layout();

Yes, fit() would keep the layout intact (node positions would remain the same). If you were to reset and layout, you would recompute node positions each time it was resized (losing any user drags and such).

I think I am missing why not repositioning the nodes is a good thing.
Would it be possible to know why that is preferable.  It seems bad to me that nodes are no longer visible after a resize

Thank you for taking the time to answer the questions.

I think that in general users prefer an automatic re-layout on a resize of the graph canvas, without a manual action.  But I respect that the default behavior may not do it.  I think it would be good to add something like an onResize callback for the graph, so that we could easily make it happen without having to add our own resize-detector.


pkg/report/linux.go: slice bounds out of range in extractGuiltyFile()

Hi!
During linux kernel fuzzing on Debian 12, I get the error "slice bounds out of range" on kernel version 4.19.
Error log:
panic: runtime error: slice bounds out of range [131292:211]

goroutine 1 [running]:
github.com/google/syzkaller/pkg/report.(*linux).extractGuiltyFile(...)
        /kernel/syzkaller/pkg/report/linux.go:701
github.com/google/syzkaller/pkg/report.(*linux).Symbolize(0xc000558f20, 0xc008a282a0)
        /kernel/syzkaller/pkg/report/linux.go:388 +0x1ce
github.com/google/syzkaller/pkg/report.(*Reporter).Symbolize(0xc0006fd680, 0xc008a282a0)
        /kernel/syzkaller/pkg/report/report.go:219 +0x44
main.(*Manager).saveCrash(0xc003c824e0, 0xc001862e10)
        /kernel/syzkaller/syz-manager/manager.go:863 +0x4c
main.(*Manager).vmLoop(0xc003c824e0)
        /kernel/syzkaller/syz-manager/manager.go:424 +0x7e8
main.RunManager(0xc000ed2000)
        /kernel/syzkaller/syz-manager/manager.go:276 +0x92c
main.main()
        /kernel/syzkaller/syz-manager/manager.go:161 +0x12a

The error keeps repeating constantly after several hours of running the fuzzer.
For some reason, the borders of the report are being calculated incorrectly.

Interesting. I've looked at the pkg/report/linux.go code once more, but I still don't see where we could have reached such a state.

The newly added assertions have fired on my local syzkaller instance:
panic: invalid reportPrefixLen after symbolize: prefix 186651 -> 186651, report len: 186776 -> 274, report: crash: SYZFATAL: executor NUM failed NUM times: executor NUM: EOF

So this code is making the report much much shorter
https://github.com/google/syzkaller/blob/c8349e48534ea6d8f01515335d95de8ebf5da8df/pkg/report/linux.go#L414-L426

A bit too early to close it yet :)

ok, understood :)


New command: aad group recyclebinitem list

Usage
m365 aad group recyclebinitem list [options]
Description
Lists groups from the tenant recycle bin
Options

Option
Description

--type [type]
Filter the results to only groups of a given type: microsoft365, security, distribution, mailEnabledSecurity. By default, all groups are listed.

Examples
List all removed groups from the tenant recycle bin
m365 aad group recyclebinitem list

List all removed security groups from the tenant recycle bin
m365 aad group recyclebinitem list --type security

Default properties
No response
Additional Info
Remarks for docs
I assume that the needed roles to run this command are: Groups Administrator, User Administrator, Privileged Role Administrator, or Global Administrator. LET'S DOUBLE CHECK THIS
Remarks for development
Curious if we can use the same filters for type as we do in #5424.
https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-list?view=graph-rest-1.0&tabs=http

Closing because of https://github.com/pnp/cli-microsoft365/issues/5427#issuecomment-1699887546


Support for using regex in the $field parameter of Form_validation::set_rules(), issue#1812

Made some changes to have this "Support for using regex in the $field parameter of Form_validation::set_rules() , issue#1812" work, hope it's good to go.
Regards,

Please let me know if it's fine or if i need to change something, and also should we close the issue#1812?
Kind regards


Audio HIP PR7 - Spectrogram HIP Support

Adds support for Spectrogram in HIP Backend
Adds relevant qa tests and performance test support

@r-abishek
Added the changes discussed in morning call

Added in documentation about windowFn
Added in header file w.r.t max size required for spectrogram and done validation checks
Added in main readme about list of audio functions supported
Moved constant compute of numTiles, outside the kernel
Modified the comments for index checking to make it more clear for fft kernel
Used srcIdx, dstIdx for the coefficient compute kernel
Removed t * hipBlockDim_x and used a loop counter
Added comment for vertical in fft kernel

For adding spectrogram output image

Actually spectrogram jupyter notebook is not yet merged in rocAL TOT

It is issued to opensource but not yet approved and merged
https://github.com/ROCm/rocAL/pull/181
So i have not added the spectrogram output image in readme for now

I have also incremented the MINOR_VERSION_NUMBER in rpp
https://github.com/sampath1117/rpp/blob/sr/spectrogram_hip/include/rpp_version.h#L42
Lakshmi said, we need to increment this version number for every new feature we add in RPP
For audio, she mentioned once all audio PR's are merged we can increment the version number


Fix memory leak with SwiftyRequest

This pull request fixes the memory leak caused by creating multiple URLSessions when making requests. There are three cases where URLSession holds on to memory:

When creating a URLSession, Every session will create an SSL cache associated to your app, which takes 10 minutes to clear, regardless of it you clear the session. For this reason you are not intended to create a new session for each request. For requests without a delegate, I have fixed this by using URLSession.shared. This uses a shared singleton session for all the requests.

When creating a URLSession with a delegate:
"The session object keeps a strong reference to the delegate until your app exits or explicitly invalidates the session. If you do not invalidate the session by calling the invalidateAndCancel() or finishTasksAndInvalidate() method, your app leaks memory until it exits."
To solve this I have added a call to the session finishTasksAndInvalidate() to the RestRequest deinitialiser. (For URLSession.shared, this call doesn't do anything)

When using Circuit Breaker, The rest request is never deallocated .
As raises in issue #59, When you use a CircuitBreaker in the RestRequest references circuit breaker that references handleInvocation that references the request meaning it isn't deallocated. This Leak will be address in a future PR.

Looks like URLSession.shared.finishTasksAndInvalidate() is having an effect on Linux (contrary to the documentation).
This is probably because in Foundation, finishTasksAndInvalidate was implemented first (https://github.com/apple/swift-corelibs-foundation/pull/640) and shared was more recent (https://github.com/apple/swift-corelibs-foundation/pull/1365), and I guess this subtlety may have been missed.
In the meantime we should be able to keep track of whether we're using the shared session or not, and just avoid calling the function if so.

Can you raise an SR for finishTasksAndInvalidate() on .shared? We should fix that - @pushkarnk?

Can we use invalidateAndCancel() instead?  Looks like that might work properly on Linux:
https://github.com/apple/swift-corelibs-foundation/blob/dffdfe6b7ab472648669742166fa9ee3e24c1bb6/Foundation/URLSession/URLSession.swift#L324

I have added a check to see if we are using a shared session before calling finishTasksAndInvalidate().
I have also added to check for Swift 4.0 before using .shared since it was not implemented on linux then.
Finally I have made the reference from CircuitBreaker to RestRequest (Via the handleInvocation closure) Weak which breaks the retain cycle and allows RestRequest to be deallocated.
This fixes issue #59 and has stopped the memory leaks in testing.

The travis tests for this PR are currently failing due to the API key for the external endpoints no longer being considered valid. This has been raised previously in issue #55.


Bubble Sort in (JS)

Bubble Sort:
Language: Javascript
Im working on it!

Thank you for taking an interest in the project.


Hook into ESP-IDF log backend

@sam-golioth I have updated the PR with the suggested changes. For modus_toolbox, I have added a new file port/modus_toolbox/golioth_sys_modus.c to handle golioth_sys_client_connected() differently than ESP, but I couldn't verify it.

@rashmivaidya72 Can we rebase this PR and resolve the conflicts so that CI will run?


Preventing state drift changes across different operating systems when no changes have been made

The archive_file data source can generate state drift due to different umask values in different operating systems, even when no changes have been made. However, there's a solution to this problem: using output_file_mode parameter to handle OS discrepancies and output_path output instead of path.module to build the path.

Note: These changes have already been tested on both Linux and OSx systems.

References

https://github.com/hashicorp/terraform-provider-archive/issues/34
https://github.com/hashicorp/terraform-provider-archive/issues/53

Great improvement! Thanks for your contribution!


[5.9 🍒][Dependency Scanning] Record header dependencies of binary Swift module dependencies

When we encounter a pre-built Swift binary module dependency (without an interface file), such module may have been built with a bridging header, which must still be present and is referenced by the binary .swiftmodule as either a .h or, more-likely, a pre-built .pch in a fully-explicit build.
Clients must be able to know about such header dependencies in order to be able to import this binary module, because this binary module may be referencing types brought in via its bridging header. The build-system client (swift-driver) will then ensure these header dependencies are fed as inputs to all requiring compilation tasks.

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test Windows platform

@swift-ci test


Nothing is logged on DEBUG build

Platform: Android
Plugins versions:
cordova-background-geolocation-lt 3.0.0 "BackgroundGeolocation"
cordova-background-geolocation-firebase 0.0.1 "CDVBackgroundGeolocationFirebase"
cordova (Cordova CLI) : 9.0.0<EMAIL_ADDRESS>Cordova Platforms     : android 8.0.0
Cordova Plugins       : cordova-plugin-ionic 5.3.0, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 13 other plugins)
Im running on a debug build without a license
Getting no logs on configure
Noting is recorded to the collections i set on configure
Getting "License failed" notice on app launch - i guess this plugin is supposed to work without license on debug builds?
What could that be?

BackgroundGeolocation.ready({
  reset: true,
  logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
  .
  .
  .
});

Closed for lack of feedback.


Enhance Configurable Entities Documentation for 7.0

This ticket is regarding updates to this page/section:
https://wiki.lyrasis.org/display/DSDOC7x/Configurable+Entities
Currently, the documentation is minimal for Entities, primarily describing how the feature works at a high level.  More detailed documentation exists in https://docs.google.com/document/d/1wEmHirFzrY3qgGtRr2YBQwGOvH1IuTVGmxDIdnqvwxM/edit which should be migrated into the Wiki.
Additionally, we should document:

How to setup a Collection to accept a specific type of Entity (and generally the reason why sites might want different collections for different entity types)
Examples of how to setup the current models for Journals & Research Entities.

Closing this, as I've updated the Docs to likely be "good enough".  They still are not perfect though, and some technical aspects are still only in the Google Doc.  That said, the basics of configuring & adding Entities is now in the Wiki at https://wiki.lyrasis.org/display/DSDOC7x/Configurable+Entities
I'd still recommend @benbosman or @artlowel or someone at Atmire consider reviewing what I've documented to ensure it's all accurate. (And enhance it as well, if there's places to do so!)


Are there any checks if uptime kuma is down itself?

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
Does Uptime Kuma have a built-in mechanism to determine if it itself is offline when it detects that a service is down or unreachable?
E.g. by setting "northstars" hosts like <IP_ADDRESS> or <IP_ADDRESS>, and if a certain percentage of those northstars if unreachable, UK assumes the connection issue is on its side.
📝 Error Message(s) or Log
No response
🐻 Uptime-Kuma Version
N/A
💻 Operating System and Arch
N/A
🌐 Browser
N/A
🐋 Docker Version
No response
🟩 NodeJS Version
No response

No such a mechanism is not supported.

I think this is a duplicate of https://github.com/louislam/uptime-kuma/issues/774
If you agree, could you please close this Issue, as duplicates only create immortal zombies and are really hard to issue-manage?
If not, what makes this issue unique enough to require an additional issue? ^^


update own dcaf

I rule and have completed some work on Case Manager that's ready for review!
(brief, plain english overview of your changes here)
This pull request makes the following changes:

(your change here)
(another change here)
(etc)

(If there are changes to the views, please include a screenshot so we know what to look for!)
It relates to the following issue #s:

Fixes #X
Bumps #Y

Shoot, did base/head in the wrong order, can someone delete this?


even/odd footers flipped on /print vs /share pages

https://homebrewery.naturalcrit.com/share/n_qEpe-cH__4
I have a bit of an issue. When I attempt to save my homebrewery document as a pdf, it seems to either insert or remove a phantom page, and completely messes up the page count. [The footer graphic that] had once been on the left side of the page is now on the right and vice versa. This doesn't appear while viewing the document on the Homebrewery, only when printing to PDF.

Could this also be related to why Firefox renders a blank page at the start of a brew when going to Print to PDF?  I don't think it is...but mentioning it just in case it is.  I've always had Firefox generate an extra blank page in the Print dialog (but not on the /print/ page).  No issue with Chrome.


Can't send email from Docker container

Hello,
I'm unable to send emails from the latest docker container of huginn/huginn (pulled last night). I'm receiving the error: "535-5.7.8 Username and Password not accepted" which I believe to be erroneous.  My email host provides detailed access logs and it shows no failed SMTP attempts. Attempts to validate the username and password outside of huginn work as expected and appear in the SMTP access logs.
Here are the environmental variables I passed to the container:
SMTP_USER_NAME=first.last%domain
SMTP_PASSWORD=somepassword
SMTP_SERVER=mail.runbox.com
SMTP_PORT=465
SMTP_AUTHENTICATION=login
SMTP_ENABLE_STARTTLS_AUTO=true
SEND_EMAIL_IN_DEVELOPMENT=true
EMAIL_FROM_ADDRESS=email@domain
I've tried fidgeting with the port and authentication settings per issue #676 with no luck (the same settings work in an email client).
Any thoughts on what I could be doing wrong?

Hi,
the configuration looks valid to me, what sounds odd is that your provider does not show any login requests. Can you try a different provider? Here is my configuration that works with sendgrind:
SMTP_USER_NAME=username
SMTP_PASSWORD=password
SMTP_SERVER=smtp.sendgrid.net
SMTP_PORT=587
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true

Hi dsander,
Thanks. Per your suggestion, I configured another, this time an Apple iCloud account. I haven't found a setting to view failed attempts in iCloud, but it once again failed with settings that work outside the container. I've already tried that configuration with my Runbox account. I can ping both of the smtp servers from bash sessions in the container.
Regards
-Brad

Hmm, that is odd, can you share how you are starting your container?

I'm starting it via the Docker service on Synology DSM (fully patched). It's a busy box based OS if memory serves. Going to try and run the container via docker on my Mac after work.

So, it seems that having /etc/localtime mounted in ro mode was the root cause. I removed that and added the TZ environmental variable. That resolved the issue. Thanks for your help!


error with diagram's creation from mysql with lastest release

Hi
Great tool,  thank you !
There is a bug with mysql connection
.  ..___.__ .  ..___.__ .__
|\/|[__ [__)|\/|[__ [__)|  \
|  |[___|  \|  |[___|  \|__/ (dev)

Create MermaidJs diagrams from your database

? Choose a schema: VIRO_NGS_COVID
? Choose tables: ALIAS_DICT, [...snip...]
[                    ]Getting columns and constraintsError 1054: Unknown column 'c.TABLE_NAME' in 'on clause'

X Something went wrong!

A small typo in a query  c.TABLE_NAME -> kc.TABLE_NAME
Here, diff after bug fix from master branch
diff --git a/database/mysql.go b/database/mysql.go
index 82d1226..7ff4699 100644
--- a/database/mysql.go
+++ b/database/mysql.go
@@ -113,7 +113,7 @@ func (c mySqlConnector) GetConstraints(tableName string) ([]ConstraintResult, er
                                   from information_schema.KEY_COLUMN_USAGE kc
                                                        left join information_schema.KEY_COLUMN_USAGE kc2
                                                                          ON kc.COLUMN_NAME = kc2.COLUMN_NAME AND kc2.CONSTRAINT_NAME = 'PRIMARY' AND
-                                                                                kc2.TABLE_NAME = c.TABLE_NAME
+                                                                                kc2.TABLE_NAME = kc.TABLE_NAME
                                   where kc.CONSTRAINT_NAME = c.CONSTRAINT_NAME
                           ) "isPrimary",
                           (

A new build  and it works :)
✓ Diagram was created successfully (result.mmd)

Regards

Hey,
thanks for the input, I am glad the tool finds it use.
Strange issue, the TABLE_NAME should be present in this table. The integration tests and my local setup use the MySQL version 8.0 and it works just fine, maybe its a version issue?
Regardless of the version and the issue, your suggested fix makes perfect sense and I applied the change.
Your fix is available with the new 0.1.0 version, you can now get it via go install github.com/KarnerTh/mermerd@latest


Crash on TCA Test Support

Describe the bug
I'm getting a crash because of "Simultaneous accesses to state", apparently this is the culprit:
public func assert() {
  func runReducer(state: inout State, action: Action) {
      let effect = self.reducer.callAsFunction(&state, action, self.environment)
  ...
  }
 ...
 runReducer(state: &self.state, action: receivedAction)
 ...
}

I did this change in the assert function. by avoiding passing the state to the inner function the crash not longer happens.
    func runReducer(action: Action) {
        let effect = self.reducer.callAsFunction(&self.state, action, self.environment)
...
}

runReducer(action: self.fromLocalAction(action))

Here is the console log
Simultaneous accesses to 0x600003bbd780, but modification requires exclusive access.
Previous access (a modification) started at ComposableArchitectureTestSupport`TestStore<>.assert(_:file:line:) + 4049 (0x108adde81).
Current access (a read) started at:
0    libswiftCore.dylib                 0x00007fff51b80590 swift_beginAccess + 568
1    ComposableArchitectureTestSupport  0x0000000108ae0410 runReducer #1 <A, B, C, D, E>(state:action:) in TestStore<>.assert(_:file:line:) + 375
2    ComposableArchitectureTestSupport  0x0000000108adceb0 TestStore<>.assert(_:file:line:) + 4096

To Reproduce
import ComposableArchitectureTestSupport
import ComposableArchitecture
import XCTest

class ComposableArchitectureTests: XCTestCase {
    struct State: Equatable {}
    enum Action: Equatable { case didTap }
    struct Environment {}

    let reducer = Reducer<State, Action, Environment> {
        _, _, _ in

        return .none
    }

    func testComposableArchitecture() {
        let store = TestStore(
            initialState: State(),
            reducer: reducer,
            environment: Environment()
        )

        store.assert(
            .send(.didTap)
        )
    }
}

Expected behavior
This Should not crash.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment

OS: iOS
Version: 13.0

Additional context
Add any other context about the problem here.

Wow, good find!
I'm not quite sure why this happens. It seems like a bug in Swift, because it only happens when State is an empty struct. If you add a field to State the crash mysteriously goes away 🤔
Your fix looks good though. Would you be interested in PR'ing it? Otherwise I can do it, no problem.
Thanks!

Sure! @mbrandonw
https://github.com/pointfreeco/swift-composable-architecture/pull/50

This has now been merged, so closing. Thanks again!


User stats and profile page

Some kind of badge and stats system that shows how many votes a user has received for content, but also how much they've contributed to the source,

Just to update this: we've added the contributions to user profiles (pull requests and issues). I looked into showing a list of items a user has upvoted, and I think it's going to be a pretty expensive lookup especially if we're going to go across news items, discussions, and issues.


We should adopt Yarp 2.0

One of the main reasons we care about this is because Yarp 2.0 supports net7.0
This will involve:

[ ] Update tooling
[ ] Update to use map-forwarder
[ ] Update config.

https://microsoft.github.io/reverse-proxy/articles/direct-forwarding.html
AddReverseProxy becomes services.AddHttpForwarder();
MapReverseProxy becomes app.MapForwarder("/{**catch-all}", app.Configuration["ProxyTo"]);
All of the config gets replaced by the top level key: "ProxyTo" : "https://localhost:10000/"


会适配1.9.0版本吗

如题，请问是否会继续适配

@r9000x 有时间会

This issue is stale because it has been open for 14 days with no activity.

This issue was closed because it has been inactive for 3 days since being marked as stale.


v1 to v2 migration path

We have a few deployments of openshift-acme still running with v1. Is there a migration path to run v2 there or will it just work with the existing routes and secrets removing the v1 deployments, services, etc and installing the v2 ones?
Related to #119
Thx for all the work here, @tnozicka. Great stuff!

The migration from v1 to v2 doesn't require any action except replacing the deployment resources.
Always apply the deployment together with other resources (like serviceaccount, roles, ..) from the same version and delete resources that are no longer there like the imagestream.

Thx, @tnozicka


Add example of integration with iron-form (sign-in form)

It would be nice to have an example of iron-form inside vaadin-form-layout.
The sign-in form should contain:

vaadin-text-field element - username
vaadin-email-field element - email
vaadin-password-field element - password
vaadin-button which is disabled by default and become enabled if all fields are valid
proper way to show validation errors without using document.getElemtntById()

(This is the DX tests finding)

Polymer elements are in the maintenance mode now. So we are not going to use them in demos.
We have already removed iron-form from other components demos so I'm closing this issue.


how to use csv dataset

i have my own dataset, how to use it

`filename_queue = tf.train.string_input_producer(["file0.csv", "file1.csv"])
reader = tf.TextLineReader()
key, value = reader.read(filename_queue)`
There is a good example in Tensorflow documentation please see that: documentation_link


Configure doctest options through DTConfig

@ev-br

can we tack a DTConfig instance to pytest's own config object?

You were right about this, it's only a single line of code for each attribute:
def pytest_configure(config):
    """
    Allow plugins and conftest files to perform initial configuration.
    """
    config.nameerror_after_exception = dt_config.nameerror_after_exception
    config.user_context_mgr = dt_config.user_context_mgr

then you can pass the config instance wherever. I have tried it and it works.

I think it's safer to have a dt_config attribute of pytest config object

Hmmm, not sure I understand.
Like this?
config.dt_config = dt_config

Indeed! This way, in the pytest layer there is only pytest config, in the doctesting layer, there is only DTConfig.


Contributions / sponsorship?

It would be nice to have a way to contribute to this project. Is there any plans to set up a funding page / sponsorship? Or would that cause issues with Spotify then considering it to be commercial?
Perhaps something like open collective could be good - for example - https://opencollective.com/reviewdog

I second this. I would love to give money to keep this project updated

I second this. I would love to give money to keep this project updated

It's great to hear that you'd like to support the project. Whilst I can't speak for everyone, The reason I personally haven't looked to add sponsorship to this project is primarily due to the fact that money is not so much the issue as time; myself and the other maintainers are all, I believe, pretty fully occupied, and thus this project can only ever be a hobby project currently. Whilst learning rust properly is something that I would like to do at some point, the fact of the matter is that I haven't really had any time to tend to the issues on this repo reliably, much less learn the language to a degree that is sufficient to rearchitect the application to solve some of the core issues such as session reconnection. There is then the secondary problem of having to reverse engineer the Spotify app, itself a time consuming process, not helped by the fact that their infrastructure appears to be a chaotic mess that lacks any sort of stable APIS outside of the publicly documented ones, and that they go out of their way to make it difficult to use their private ones.
If there were an experienced rust developer that wanted to spend time maintaining this project, and a contribution/sponsorship option helped that, I'd be all in favour of adding it. But as it stands, it would feel like taking money for not doing very much, whilst creating other issues such as how one distributed funds in a fair manner. What might work is some sort of Bountysource solution for important features/bugs, I'd be interested to hear from anyone who has thoughts on that.

It's great to hear that you'd like to support the project. Whilst I can't speak for everyone, The reason I personally haven't looked to add sponsorship to this project is primarily due to the fact that money is not so much the issue as time; myself and the other maintainers are all, I believe, pretty fully occupied, and thus this project can only ever be a hobby project currently. Whilst learning rust properly is something that I would like to do at some point, the fact of the matter is that I haven't really had any time to tend to the issues on this repo reliably, much less learn the language to a degree that is sufficient to rearchitect the application to solve some of the core issues such as session reconnection. There is then the secondary problem of having to reverse engineer the Spotify app, itself a time consuming process, not helped by the fact that their infrastructure appears to be a chaotic mess that lacks any sort of stable APIS outside of the publicly documented ones, and that they go out of their way to make it difficult to use their private ones.
If there were an experienced rust developer that wanted to spend time maintaining this project, and a contribution/sponsorship option helped that, I'd be all in favour of adding it. But as it stands, it would feel like taking money for not doing very much, whilst creating other issues such as how one distributed funds in a fair manner. What might work is some sort of Bountysource solution for important features/bugs, I'd be interested to hear from anyone who has thoughts on that.

I would be fine with doing bug bounties or something like that. I very much want/need this library to continue being updated

I would be fine with doing bug bounties or something like that. I very much want/need this library to continue being updated

Have had a look at bountysource, and on second thoughts their terms and conditions don't look so great. Open Collective doesn't seem like a bad idea in that it could potentially provide a bit of a slush fund to pay people to work on more challenging features/bugs that would otherwise go unattended. Would that be of interest?


How can we save the prediction results on valid during training?

❓ Questions and Help
Before asking:

search the issues.
done
search the docs.
donee

What is your question?
Code

What have you tried?
What's your environment?

fairseq Version (e.g., 1.0 or master):
PyTorch Version (e.g., 1.0)
OS (e.g., Linux):
How you installed fairseq (pip, source):
Build command you used (if compiling from source):
Python version:
CUDA/cuDNN version:
GPU models and configuration:
Any other relevant information:

This isn't supported currently, but if you wanted you could modify valid_step and reduce_metrics in the relevant Task to do this.
It's not directly comparable, but you can see how we compute validation BLEU for the translation task to see how to do this: https://github.com/pytorch/fairseq/blob/master/fairseq/tasks/translation.py#L266-L316

https://github.com/pytorch/fairseq/blob/adb5b9c71f7ef4fe2f258e0da102d819ab9920ef/fairseq/tasks/translation.py#L368
At this line the first sample of a batch is logged and printed. Couldn't you just print or log everything into a specific file at this point?

Just hijacking this issue for a related question/bug!
I use the validation with BLEU on my own task (sub-class of translation, only loading a different dataset) and consistently get lower bleu scores for validation during training (~14), than I get when I run fairseq-generate on the same task and validation dataset (~23).
Any idea on that @myleott , or should I open a new issue?

Any idea on that @myleott , or should I open a new issue?

New issue please?


Swift Package Manager Support

Support for SPM

Changes file structure to support SPM

Adds Package file

Adds 2 new Travis targets (SPM on Mac and Linux)

Removes usage of NSNull & NSObject - Please check if this is ok.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@7088d80). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master      #76   +/-   ##
=========================================
  Coverage          ?   58.31%
=========================================
  Files             ?       26
  Lines             ?      818
  Branches          ?        0
=========================================
  Hits              ?      477
  Misses            ?      341
  Partials          ?        0

Impacted Files
Coverage Δ

Tests/JSONCodableTests/PropertyItem.swift
100% <ø> (ø)

Tests/JSONCodableTests/ImageAsset.swift
100% <ø> (ø)

Tests/JSONCodableTests/MirrorTests.swift
100% <ø> (ø)

Tests/JSONCodableTests/Company.swift
100% <ø> (ø)

Source/JSONString.swift
0% <ø> (ø)

Tests/JSONCodableTests/ArrayTests.swift
70.96% <ø> (ø)

Tests/JSONCodableTests/HelperTests.swift
100% <ø> (ø)

Tests/JSONCodableTests/ClassInheritanceTests.swift
86.66% <ø> (ø)

Source/JSONEncodable+Mirror.swift
100% <ø> (ø)

Source/JSONHelpers.swift
31.25% <ø> (ø)

... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7088d80...f77d5ac. Read the comment docs.


Request for Spark! Tech Resources for BPS Policy Chat Bot/Wheelock

Project Name
BPS Policy Chat Bot/Wheelock
Project Type
Data Science / Machine Learning
Team Members + Emails
Akshat Gurbuxani<EMAIL_ADDRESS>Abhaya Shukla<EMAIL_ADDRESS>Mounika Chowdary Akuraju<EMAIL_ADDRESS>Duoduo Xu<EMAIL_ADDRESS>Detailed List of Resources Needed
I need OpenAI API key for the following models.

API key to communicate with the 'gpt-4o-mini' model.
API key to create embeddings with the 'text-embedding-3-small' model.

The price break-up is shared below.
Link: OpenAI API Pricing
Description of Resource Usage
No response
Course Deadlines (if applicable)
No response

@akshatgurbuxani  I added the entire team using the emails you provided, please accept the invite. Let me know if there are any issues.


Access user password or custom defined variables (i.e. named values).

Hi! I'm in a situation where on the profile page (applications template to be more specific) I need to have access to the users' password or named values (or other sort of custom defined variable). Is that possible or is this something that you guys plan to introduce in the near future?
Many thanks.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fde13527-d1e6-5cbe-6b39-2b1ab1643d36
Version Independent ID: 55eaabcc-dd63-496a-6646-042baee4e6ad
Content: User profile templates in Azure API Management
Content Source: articles/api-management/api-management-user-profile-templates.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

Hi @PhilipCotan Thank you for your feedback! We will investigate and get back to you with our findings.


IE 11 Login Input Icon Dislocation

Issue Summary
SVG icon dislocation on login page.

Works fine if I add width: 14px to .gh-input-icon svg (Was width: auto;)

Technical details:

Ghost Version: 1.0 Alpha 21
Node Version: 6.10.3
Browser/OS: IE11/ Windows 10
Database: SQLite

Hey @JimmehCai! 👋
Thanks for taking the time to create this bug report and thanks for following our guidelines.
The IE11 icon bug was already reported, see #8384.
And it was already fixed via https://github.com/TryGhost/Ghost-Admin/commit/43a18115ba12b825295b6f363cb1fe9a2b44dc2f. The fix will be available in the next release 🎊


[cherry-pick][branch-2.3] some bugfix cherry pick

[ ] https://github.com/StarRocks/starrocks/pull/10680
[ ] https://github.com/StarRocks/starrocks/pull/11866

run all


Do we have a good way to incorporate OpenSSL / BoringSSL with CPM?

I have not tried myself but for non CMake projects a wrapper approach is commonly used. First one I spotted is this one which may be of help?   https://github.com/viaduck/openssl-cmake
You 'should' be able to pull this using CPM but as it may be using bare FetchContent calls the cache behavior may not be ideal - making a issue/pull to that repo to use CPM could be one approach or find alternative wrappers.

Just a quick word of caution, I tried to use a similar cmake openssl project recently, and it got all the compiler options wrong it seemed (like no assembly was used, for computing AES for example), so the code was much slower. So make sure your openssl-cmake wrapper works well in this respect.

Thank you for your response!
It turns out that the CMakeLists.txt comes with BoringSSL can perfectly fit CPM, though in general BoringSSL isn't recommended for non-Google projects, and it doesn't have release / LTS versions. However, it solves my problem, and my projects runs!


Upgrade to Angular 16

PR Checklist
Please check if your PR fulfills the following requirements:

[ x ] The commit message follows our guidelines: CONTRIBUTING.md#commit
[ x ] Tests for the changes have been added (for bug fixes / features)
[ x ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ x ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the new behavior?

Upgraded lib to support Angular 16
Upgraded all dependencies to latest stable version

Does this PR introduce a breaking change?
[  ] Yes
[ x ] No

@NetanelBasal I also need the lib without @angular/material #82  dependency, any thoughts about how to go about it ? Should I directly remove it from dependencies ?

@NetanelBasal would appreciate any inputs here, please

Sure

@NetanelBasal it is done, after new changes the modal looks like this.

Can you please follow the commit guidance and add a breaking change?

@NetanelBasal sorry for inconvenience, I think I have added a breaking change. Can you please check now ?

I don't see. Please use npm run commit and follow the questions

I don't see. Please use npm run commit and follow the questions

Thank you for showing me the way npm run commit , I was not used to committing like this earlier, good to know that there's a package for handling these kind of things. Nice learning 💡 for me. I think it should be good to go now.

Looks like the tests are failing, I will try to fix them

@NetanelBasal can you please check now, I have fixed the tests

Thanks for the quick action @netanel-utila & @NetanelBasal , could you please publish the 1.4.x version ? I couldn't able to find it on releases ?

done


test: 100% coverage

:tada: This PR is included in version 1.3.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fix header.

Remove unwanted character.

@alexandair : Thanks for your contribution! The author, @neilpeterson, has been notified to review your proposed change.

#sign-off


icon colors do not match clr-ui dark mode colors

Describe the bug
Clarity icon colors do not match clarity UI colors for dark mode
How to reproduce
https://stackblitz.com/edit/clarity-dark-theme-v1-0-ccmxax
Steps to reproduce the behavior:

Icon colors in dark mode should match the clarity UI colors in dark mode - the check mark in the example above should be #60B515 instead of #2F8400

Expected behavior
Icon colors in dark mode should match the clarity UI colors in dark mode
Versions
App

Clarity: 1.0

Device:

Type: MacBook
Browser: Chrome

Additional notes
None

I investigated it and i see that you cant overwrite the style for these icons ( in this case, the .is-success class) from the dark theme style file. Im thinking of adding a class .dark in the icons style which should apply the correct color in the dark theme.

A better approach might be to add a block of CSS at the bottom of the dark theme that ties the colors into the expected dark theme variables. It's trivial to override these colors in CSS.

@mathisscott i tried that and it doesnt work. the clr icon style is separated from clr angular style. dark theme file overrides just variables from clr angular components. so, what would be the right approach here if there s no dependency between them?

@AlexMarcuBytex
CSS works regardless of whether it's in the dark-theme.scss file or the icons.css file.
You may need to up the specificity of what you are potentially adding to the dark theme (to override the icons CSS if it is loaded later).
But it's literally....

@mathisscott why was this closed? The PR appears to be open?

we closed it in the leads meeting. the PR is for a backport, iirc. i'll move it back. thanks!

This was backported, closing as resolved.


Milk recipe consumes bucket

Description: The cooking pot recipe that takes one water bucket, two walnuts (from Ecologics), and one sugar and requires an empty bucket as an output item to craft one milk bucket does not also return the bucket from the initial water bucket when it consumes the ingredients.
To reproduce: Place the relevant ingredients in the pot and and heat to craft the milk. The milk appears in the output but requires another bucket to extract.
Expected behavior: When the recipe consumed the other ingredients, the bucket should be left behind, or it should use that bucket as the output item.
Versions: Delightful 2.6, Farmer's Delight 1.2, and Forge 40.1.70 on Minecraft 1.18.2.

Hmm, in testing I see this doesn't happen in 1.19 but definitely does in 1.18. Seems there's some disparity between how FD handles Ingredients with containers between these two versions. I'll look into it more

If this issue still exists, I do not believe it is fixable on my end


v-html binding for

Vue.js version
2.0.7
Reproduction Link
http://jsfiddle.net/0n8m1akb/2/

The <template> element has special semantics when used in Vue templates, e.g. when used for v-if, v-for and as a slot container.
What is your use case for this?

I just wanted to output HTML without wrapping in an extra div.
My structure is something like this:

    <template v-if="item.someValue">
          ...
    </template>
    <template v-else v-html="item"></template>

Unfortunately that's not supported. v-html must be used on a normal element because it's just an alias for innerHTML, it doesn't make sense for an abstract container like <template>.

vue 要求必须一个顶层容器的形式我觉得有太多浪费，比如一个 vue-router 的单页应用，页面首先要一个 div 之类的做主容器，然后窗口里放页面也是 vue 实例，这个 vue 页面也要有一个顶层容器，很多非必要的情况下会强制浪费掉两层嵌套。对于常规的DOM树来说，这两层完全无必要。
再比如这里的 v-html 实例，不能使用 template 这种抽象的元素来放，导致必须又得有一个容器存放，某些特殊的情况，会导致浪费三层DOM，想要做到不浪费，即使再怎么精心设计都多多少少还是没法避免这些情况。
我觉得应该想办法改进这些东西。

I do have a different use case that I may need it.
I have a custom input component that works with <datalist>. As I try to support IE9 (as a polyfill), I need to have my HTML as following:
  <datalist>

        <slot ref="options"></slot>

    </datalist>

The reason for this is because IE9 won't render <datalist>, and thus the <select> element is needed in IE9. However, as much as I try, I can't find a way to render HTML comment. v-html directive seems to be the way to go, but I can't use it on any HTML element.

You can use this, its worked for me in modal, when loading data to body
<template id="some-template">

  <slot name="header"></slot>
  <slot name="body"></slot>
  <slot name="footer"></slot>

</template>

 <some>

 </some>

Hi,
Using vue.js I need to create an index.vue page for product and people, where number of text box and drop down list are not fixed, I mean some product has 5 props other may have 10.
I tried to add all html element using v-html, but it seems not a wise way.
Some offered to use components, it sounds little complicated or confusing.
I am looking for a sample or good example.
Thanks in advance.

Couldn't this be potentially implemented by inserting a comment node where you do a replaceWith?

Hi,
In my case, I am replacing a link on top of paragraph element using v-html
Please find the code snippet as follows

where, websiteHTML: '''Google'
The  tag is being rendered with Google but doesn't have hyperlink to navigate to https://www.google.com/
Could you please help in finding the error
Thank you

I don't see why we couldn't have a special case where a <template> with a v-html would replace itself with a text node or the contents of the parsed html in the parent node.
My case I'm trying to replace <template>{{ computedPropThatHasHtmlCharacters }}</template> with <template v-html="computedPropThatHasHtmlCharacters"></template>, because the former escapes the characters and you get & printed to the DOM.

I don't see why we couldn't have a special case where a <template> with a v-html would replace itself with a text node or the contents of the parsed html in the parent node.
My case I'm trying to replace <template>{{ computedPropThatHasHtmlCharacters }}</template> with <template v-html="computedPropThatHasHtmlCharacters"></template>, because the former escapes the characters and you get & printed to the DOM.
I understand that it's a departure from a DOM elements' innerHtml though.

@mix3d - I wanted v-html in a template for similar reasons, and ended up using a filter that looks like
  filters: {
    decodeEntities: function (value) {
      if (!value) return '';
      value = value.toString();
      const parsed = new DOMParser().parseFromString(value, "text/html");
      return parsed.documentElement.textContent;
    }
  },

then calling something like <template>{{ computedPropThatHasHtmlCharacters | decodeEntities }}</template>

Why on earth did Vue stop supporting the triple-brace syntax for outputting raw HTML?  And then not replace it with any equivalent?  Anyone know?


Importing modules from same dir broken

After updating to 0.12.0 I am not able to import a python module I wrote (it sits in the same directory as the executed script). Firing up an ipython interpreter in the terminal and importing said module works like a charm though. I am on OS X 10.11.6, atom 1.9.6.
apm --version gives this output:
app  1.10.0
nam  2.13.3
node 0.10.40
python 3.5.2
git 2.7.4

I am using python from within an anaconda virtual environment, in case this might play a role.

+1
apm  1.10.0
npm  2.13.3
node 0.10.40
python 2.7.12
git 2.9.2

same
apm  1.9.2
npm  2.13.3
node 0.10.40
python 2.7.11
git 2.7.4

Sorry about this regression. We've just released Hydrogen v0.12.1 to fix it.

Thank you!  I can confirm it works.


Submit custom GraphQL queries from Provider

Currently we interact with GraphQL endpoints supplied by the node via wrapped operations provided by graphql-codegen, these are then exposed to SDK consumers via wrapped provider functions (Provider.getVersion(), Provider.getBlockNumber() etc). This potentially restricts the information we are providing to consumers or means they have to go around the SDK to query the node. We should provide a way for consumers to submit their own custom queries.
Potential implmentation in Provider
/**
 * Passes a custom document and variables via the provider
 */
async customQuery(query: DocumentNode, variables: Record<string, unknown>): Promise<unknown> {
  return this.operations.query(query, variables);
}

In #3047 I reused a lot of what we already have in the SDK to create a custom query, we could do something similar but more flexibly. Have a public function on the provider that takes a document and variables and passes the whole thing to requester, similarly to how we already build our operations.

SDK Query Optimization Issue Documentation
Current Problem
Public Auto-Generated GraphQL Client

The SDK's auto-generated GraphQL client, provider.operations, is currently a public property.
This client serves two purposes:

Internal needs of the SDK
Usage by frontend applications

Breaking Changes

Removing any queried field is considered a breaking change.
Reason: External consumers might be directly using the auto-generated client and relying on specific fields.

Ideal Solution
Make provider.operations Private

This change would allow for non-breaking optimizations within the SDK.

Alternative Options for Consumers
Two proposed alternatives for SDK consumers:

Auto-generate Their Own Clients

Consumers would create clients tailored to their specific querying needs.
This approach mimics the SDK's current method.

Implement Ad-hoc Type-safe Queries

Allow consumers to write custom queries through the TypeScript SDK.
Example usage:provider.client.query('chain', {
  name: true,
  consensusParameters: {
    chainId: true
  }
});

Challenges with Implementation
Previous Discussions

The second approach (ad-hoc type-safe queries) has been discussed internally multiple times.

Proof of Concept Attempt

A proof of concept was implemented for the ad-hoc query approach.
Findings:

Implementation might be possible but would be a significant undertaking.
Main challenge: Ensuring correct API functionality and type inference for all GraphQL query types.

Complexity Levels

Implementing type safety for nested queries is relatively achievable.
Supporting more complex GraphQL features (e.g., union types) is significantly more challenging.

Lack of Existing Solutions

No suitable library was found that could automatically handle all required functionalities.

Conclusion
The current structure of the SDK's GraphQL client presents a barrier to query optimization. While potential solutions have been identified, implementation remains complex and resource-intensive. Further research and development may be necessary to find a balance between maintaining backwards compatibility and enabling more efficient query structures.

Any thoughts on this @FuelLabs/frontend?

graphql-zeus looks really promising and might be the library that would enable both this and #1570 in one go.


Autostart in background

Hi, could you please add a feature to choose between autostart in foreground or background?
cheers

Hi!
Don't know, what's the autostart in background speaking about Android activity-based app? How does it look like?

I think launch app on boot and minimize it to background.

IMHO, minimizing an app is a separate action not to be covered in this ANE.


Provide support for EncodeBase64 / DecodeBase64

Sometimes values are encoded in Base64. After parsing file there is a need to decode such value. It would be nice if JsonDataObjects library provided function to decode the value.

In Delphi 2009/2010/XE there is unit EncdDecd.pas (Soap.EncdDecd.pas for Delphi XE2) containing the functions EncodeBase64 and DecodeBase64.

Thanks for the info, I knew that there are many implementation of these functions altough I didn't know that Delphi itself has one.


[aes] Switch to packed array types

This PR switches the types of both data and key signals from unpacked to packed array types, and replaces some rather trivial wiring logic by function calls.
I successfully tested the RTL as well as the DPI calls using my Verilator test framwork.
This PR replaces the old WIP PR #471 (I cannot update the old one as it is from before opening the repo).

@rasmus-madsen this is probably relevant for you as the DPI calls are updated.

Thanks for your feedback @sjgitty and @msfschaffner , I am merging this now.


the "2x3 PH2.0" Connector is nowhere to be found

the "2x3 PH2.0" Connector is nowhere to be found, checked eBay... Google doesnt know it too. only 2 pin PH2.0 Connectors

For future reference the connector name is actually PHD2.0, PH is single row (I found this out in a super random PDF after hours of searching, that was fun)
This is one of the listings that I found for it. Haven't received it yet, but 2x3P should be correct. Will post a picture when I do... if I don't forget.

Promised a follow up, so here it is ;)
The connector totally works! I currently can't test it electrically, but the fit seems quite good.

The only small thing that requires modification is the guides on the side, but that was only about 30 seconds with a sharp blade (it's reaaally soft plastic).

Happy tinkering!