MMTool method creates unusable bios, UEFITool OC issue.

System

Motherboard: ASUS ROG Maximus VII Ranger
BIOS Version: 3503
GPU: ASUS RX6600
[x] CSM is turned off
[x] 4G decoding is enabled
[x] UEFIPatch is applied (see Using UEFIPatch for more information). On some motherboards DSDT Patching is also needed
[x] I have read Common issues (and fixes)

Description
Unfortunately, this is one of those motherboards that will break overclocking and post issues when the bios get modified by UEFITool. I first found out when I used UBU Tool to update microcode and other firmwares in the past and since just used the 3503 provided by ASUS ROG (original).
I found out about ReBar to add support for my newly acquired RX6600 and went with the normal method of using UEFITool and UEFIPatch. The bios flashes successfully and ReBar works, except overclocking now doesn't work (which is quite essential on DDR3 ram in my case).
I used MMTool <IP_ADDRESS> and <IP_ADDRESS> and they both modify the bios in the exact same way (but different to UEFITool of course). After successfully applying the patches with UEFIPatch, the system rejects the bios as an update via the EZ Update tool, nor does it accept via the flashback method (the indicator stays turned on instead of blinking).
Did I miss any step when using MMTool (I followed the steps in the wiki)? Or am I supposed to use MMTool v4.x instead?

It was fixed here https://winraid.level1techs.com/t/asus-z97-maximus-vii-hero-readjustable-bar/90930/38
@Koekieezz do you remember how you fixed this ? Want to add it to the guide

Yes! The keyboard bug was indeed present as well on my end as well.

Have you tried other versions of MMTool ?

It seems that MMTool 4.50.023 generates a different output than <IP_ADDRESS> (which does the same as <IP_ADDRESS>).
I'll try to flash that later today.

@FPSUsername don't replace any modules
follow the method in UEFIPatch wiki page so only MMTool is used on the final BIOS, preventing any corruption.

@FPSUsername NvramSmi patch is done by UEFIPatch, you don't need to do anything but follow the written pad file workaround in the guide.

Unfortunately the bios is rejected when patching with MMTool 4.50.023 and using UEFIPatch afterwards.
I attached the original, modified and patched bios files.
VII Ranger 3503 ReBar MMTool 4.50.023.zip

@FPSUsername You should NOT run UEFIPatch directly on the BIOS you're going to flash because it will cause issues like what you have with OC.
https://github.com/xCuri0/ReBarUEFI/wiki/Using-UEFIPatch#pad-file-issue-workaround this is what you should do so the BIOS you flash only get's touched by MMTool, and make sure you insert ReBarDxe with MMTool too
Use version 4.5.023 it's what others have been successful with

@xCuri0 It doesn't seem to matter. I created the patched bios files with MMTool 4.50 and UEFITool v28 method and both generate the exact same file before patching with UEFIPatch. The hashes are the same, pad file is not altered.
So it seems like the VII Ranger is not affected by the bug, however, the OC issue still stands.
Continuing from the pad file workaround, I extracted the PciBus and PciHostBridge from the patched bios and replaced the PciBus and PciHostBridge from the bios with ReBar injection via MMTool and just to try, also the stock bios.
Reopening the bios files in UEFITool to verify, the PciBus full size and body size is different on the files with the patched ffs injected via MMTool. I'll try to flash both and see what happens.
To clarify, ReBar does work, but altering the bios in any way breaks overclocking and adds the no keyboard bug found in the VII Hero motherboard, before Kookieezz found a solution.

@FPSUsername It's a know issue that UEFITool causes stuff like this.
If you can figure out how to flash the MMTool BIOS it will most likely work

@FPSUsername Your issue is not NvramSmi, that module only handles NVRAM like ReBarState and gets fixed by UEFIPatch.
If you do MMTool 4.5 like I said you're BIOS will probably work with OC and everything, not just Z97 I saw this exact issue on a Z170 board too fixed by using MMTool exclusively.

I've used this bios as a base (as it's updated and it works with overclocking), then did the following:

Add ReBar to the PCIe bus with MMTool v4.50.023
Ran UEFIPatch with the patch.txt from this repo
Opened the .patched bios in UEFITool A67 and extracted "as is" the PCIeBus and PCIeHostBridge
Opened the ReBar bios (from step 1) in MMTool v4.50.23 and replaced the PCIeBus and PCIeHostBridge with the extracted ffs files.
Save as M7R.CAP and flash
Overclocking works, rebar doesn't as it shows not enabled in BIOS.

@FPSUsername You have to do the same thing you did with PciBus to NvramSmi.
It will work then

Also later once you have it all working can you test using UEFITool for the first step only (adding ReBarDxe) and the same MMTool steps for the rest ?
I want to know if I have to update first step of guide to say use MMTool on ASUS.

I had to do the same to NvramSmi to get ReBar working. Overclock & ReBar.
I did get the no keyboard bug. I'll investigate it later and also using UEFITool. The issue I believe is UEFIPatch, because UEFITool makes identical files compared to MMTool 4.50.23.
So a preliminary conclusion: for ASUS motherboards, you'll have to replace the modules with MMTool after extracting them from a patched version.

I'll investigate it later and also using UEFITool. The issue I believe is UEFIPatch, because UEFITool makes identical files compared to MMTool 4.50.23.

If that's the case then there's no need to do what I said.
About the keyboard bug did you apply this patch

It modifies PciBus btw, so you will need to apply both patches before extracting the PciBus module for using in MMTool

@xCuri0 Thank you for guiding me through, it worked!
To make things easier in the future, I believe the trick is as following:

Inject/update/do anything with UEFITool/MMTool/UBU and save the bios
Apply patches with UEFIPatch
Extract what's patched and the NvramSmi using UEFITool from the patched bios
Open the BIOS from step 1 with MMTool 4.50.023 and replace the modules with the extracted ffs modules

So this bios can also be added to the list:

User
Motherboard
GPU
BAR size tested
UEFIPatch req (Y/N)
Notes

@FPSUsername
ASUS VII Ranger
RX 6600 8GB
8GB
Y
Need to extract PCIeBus, PCIeHostBridge and NvramSmi from the UEFIPatch patched bios and replace the modules in an unpatched bios. BdwUSB3.txt patch must also be included.

As a treat, here is the modified ReBar bios with the following changes (Thanks to voron00 for updating the BIOS in 2019 with pretty much the final updates).
Modules:

OROM IRST RAID for SATA v<IP_ADDRESS>5 -> v<IP_ADDRESS>7
EFI IRST RAID for SATA v<IP_ADDRESS>5 -> v<IP_ADDRESS>7
EFI GOP Driver HSW-BDW v5.5.1024 -> v5.5.1034
OROM Intel Boot Agent GE v1.5.47 -> v1.5.62
EFI Intel PRO/1000 UNDI v6.0.03 -> v6.6.04
ReBarDxe -> 0.3

Microcode:

Haswell: 27 - cpu306C3_plat32_ver00000027_2019-02-26_PRD_4F5914B9.bin
Broadwell: 20 - cpu40671_plat22_ver00000020_2019-03-07_PRD_5246E87E.bin

MAXIMUS-VII-RANGER-ASUS-3503-REBAR.zip

@FPSUsername Hey, how are you doing? I was trying to flash the 3503 rebar bios you uploaded here but i get the error saying "Selected File is not a proper BIOS". Do you know what could it be?

You need to flash it via the emergency flasher.
Note the following:

The file needs to be renamed using the rename tool. For this specific motherboard it's M7R.CAP.
The file should be placed on a FAT32 formatted USB stick.
The motherboard doesn't accept all USB sticks. I used an old 2GB stick that works, my other 16GB stick didn't work. (You'll see the light flicker constantly when it's flashing. If it doesn't, it's not working).

The strange thing is that i could flash another bios with the same usb stick on fat32. I'll try again but with the flashback button as you said. Thank you!

@FPSUsername I think i managed to install it with the flashback button but i don't see the rebar option in the bios. Do you know where is that located?

If you didn't flash the bios by voron00 and use the latest provided by Asus, then try the following.
With one of the bad tools from Asus, you can read the current bios on your system (I assume you already have it as you tried to flash it the normal way first).
Make a backup/readout of your current installed bios. Then open it in UBU tool and see if the modules have older versions than what I posted in this comment. Note that they're the same as the bios provided by voron00. All I did was take his bios and add rebar.
I don't exactly remember how the light is supposed to react, but I think it blinks 3 times, then starts flashing rapidly till the BIOS is flashed. If it continues doing the same slow flashing pattern, then it's waiting for a device with the BIOS .

@FPSUsername I installed the one you uploaded on November 25 2023. https://github.com/xCuri0/ReBarUEFI/files/13465265/MAXIMUS-VII-RANGER-ASUS-3503-REBAR.zip is this the right one?

There's no new option in the bios. Run the rebar tool in your operating system and set rebar to 8GB. Reboot and check.

Oh i think i missed that step, i'm sorry. I'm gonna check it and inform you later.

@FPSUsername what value should i set for it to be 8192mb?

2^13 = 8192.
It's simple math

Yeah you are right.  Now i got to squeeze the last bit of juice of this old system

You need a compatible GPU to make use of ReBar, for now it's enabled on the motherboard, but it will do nothing (aa BAR1 is still at 256MB).
Once you get a compatible GPU, set the rebar size to the same size as the GPU (mine is 8GB so I chose 8GB).
From ny understanding (and correct me if I'm wrong), ReBar allows the CPU to grab chunks of data from the GPU,  by default limited to 256MB. Increasing it to 8GB makes it possible to grab all data at once, reducing the need of grabbing multiple chunks, freeing up CPU time.
So I think you'll see massive improvements if a system is bottlenecked by the CPU (as is with mine, the RX6600 was however the best bang for the buck, it didn't make sense to settle with less for only a 20 euro difference).

RX Vega supports Resizable BAR, just make sure to enable it in registry. BAR0 is what's used for the VRAM on AMD

I'm currently using a Rx Vega 64 with 8gb vram so i set that bar size. Its as xCuri0 said so it should work fine with my gpu. I'm not sure how much performance I may able to gain, but I wanted to try this since i've heard old cpus take more advantage from this (mine is an i7 4790k).

@xCuri0 Thank you for guiding me through, it worked!
To make things easier in the future, I believe the trick is as following:

Inject/update/do anything with UEFITool/MMTool/UBU and save the bios
Apply patches with UEFIPatch
Extract what's patched and the NvramSmi using UEFITool from the patched bios
Open the BIOS from step 1 with MMTool 4.50.023 and replace the modules with the extracted ffs modules

So this bios can also be added to the list:
User	Motherboard	GPU	BAR size tested	UEFIPatch req (Y/N)	Notes
@FPSUsername	ASUS VII Ranger	RX 6600 8GB	8GB	Y	Need to extract PCIeBus, PCIeHostBridge and NvramSmi from the UEFIPatch patched bios and replace the modules in an unpatched bios. BdwUSB3.txt patch must also be included.
As a treat, here is the modified ReBar bios with the following changes (Thanks to voron00 for updating the BIOS in 2019 with pretty much the final updates).
Modules:

OROM IRST RAID for SATA v<IP_ADDRESS>5 -> v<IP_ADDRESS>7
EFI IRST RAID for SATA v<IP_ADDRESS>5 -> v<IP_ADDRESS>7
EFI GOP Driver HSW-BDW v5.5.1024 -> v5.5.1034
OROM Intel Boot Agent GE v1.5.47 -> v1.5.62
EFI Intel PRO/1000 UNDI v6.0.03 -> v6.6.04
ReBarDxe -> v0.3

Microcode:

Haswell: 27 - cpu306C3_plat32_ver00000027_2019-02-26_PRD_4F5914B9.bin
Broadwell: 20 - cpu40671_plat22_ver00000020_2019-03-07_PRD_5246E87E.bin

MAXIMUS-VII-RANGER-ASUS-3503-REBAR.zip
SHA256 from M7R.CAP 4CCCB56ABB490E7A0745E1D2C8F90EB9B4BA582169524754314F32F06ECBD9AF

Hey can I ask for clarification for the steps? I am trying to add Rebar to an Asus Rampage V Edition 10 which according to the supported motherboard list requires this method your showed.
Specifically I want to ask what do you mean in step 3 by extract what's patched? Then for step 4 you put the patched modules back in to the bios that was already modified in step 1?
Any help is appreciated. Thanks!

You need to extract the patched modules using MMTool. Then open the modified bios (before it was run with UEFIPatch for rebar) inMMTool and there replace the modules with the extracted patched modules.
Don't forget the USB patch if the keyboard doesn't work.


Add description to README

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Fixed issues
#19

👍


ninja crash when running

version :1.5.3

Which OS? Do you have repro steps?

This is not actionable.


Cannot run MuseWrapper when using Interactive Python (IPython) IDEs

There is an issue when I try to use the MuseWrapper class when I am on Spyder or Jupyter. The issue seems to be the asyncio package.

To use uvicmuse python library in the IPython environments do the following:

Install nest-asyncio using pip: pip install nest_asyncio
add these two lines after import asyncio:

import nest_asyncio
nest_asyncio.apply()


[Supernova] Distinguish between greenhouse internal and external URLs when parsing urls in alert description

In Supernova we parse the alert description for urls that have been added to the description in a specific pattern and turn these into clickable html links with target="_blank". This has been fine for now because the links were always external links to something outside of Supernova. However we now have new alerts that contain deep links into doop. So these are Greenhouse internal links that wouldn't need to open in a new tab.

Let's check if we can find a generic way to figure out whether the link is greenhouse internal or not and if internal leave out the target="_blank"
Also check if there is a better way to do the parsing stuff so that the output can be a React component instead of plain html. That would make it easier to do something like adding an icon to links that open in a new tab.

This might not really make sense. Closing for now until we are more sure what exactly we want to do with links.


Error while exporting when using PostgreSQL

after select more than one record and take action, this message appear
SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for integer: "22,21" (SQL: select * from "orders" where "orders"."id" = 22,21 limit 1)

Gotta have more information than this to be able to help you.  I only see it going through a App\Nova\DnaRequest request, which is unrelated to this package.

when use this package in users resource, it works fine, but the problem happened when using in a resource using join query in index.
maybe this help?

How did you solve the problem?


Do you have implemented task-aware spatial disentanglement (TSD)

Recently we are working on task-aware spatial disentanglement. In the paper "Revisiting the SiblingHeadinObjectDetector", the code implemented by the author has not been found. Do you have implemented task-aware spatial disentanglement (TSD)

https://github.com/Sense-X/TSD.


Not compiling for T3.6

Build options changed, rebuilding all
/Users/z/Documents/Arduino/libraries/TeensyThreads/TeensyThreads.cpp: In member function 'int Threads::setMicroTimer(int)':
/Users/z/Documents/Arduino/libraries/TeensyThreads/TeensyThreads.cpp:358:3: error: 'context_timer' was not declared in this scope
   context_timer.priority(255);
   ^
Error compiling for board Teensy 3.6.

but actually compiles fine for T3.2

That was a mistake in an #ifdef. Fixed by latest commit.

outstanding!


initial commit of ydn refactor code to the present

Adding code to calculate page margins and refactor ydn image processing

Some additions to factorized code:
get_article_clips(article_clip):
add condition type == ‘uc’   (vs. ‘normal’)
get_clip_coords(article_clip)
add condition ‘inpage’ == pageid.
How to retrieve article parts from other pages if our main loops over jp2 files?
(Looping over corpora: creating out_folders for the corpus, each paper, and each page)
Does the jp2 cropping implement the new normalization according to the "histogram margins"?
What I have for retrieving article pages:
#execute in a paper_folder. return dict of {inpage : filejp2}
#pseudo code:
# ls in paper_folder for all "*.articles.xml" files
#for each, reach in, get inpage/id, append id: filejp2 into dict
#return dict
def paper_page_to_filejp2():
#find filenames
files =  subprocess.check_output(['ls']).decode('utf-8').split('\n')
filexmls = [x for x in files if x.find('articles.xml') != -1]
page_to_jp2_dict = {}
#for each xml, find its id.
for xml in filexmls:
DOMTree = parse(xml)
inpage_ele = DOMTree.getElementsByTagName('page')[0]
inpage = inpage_ele.getAttribute('id')
#store into dict
page_to_jp2_dict[inpage] = xml.replace('articles.xml', 'jp2')
return page_to_jp2_dict
For writing articles with slices from different pages:
#pseudo code:
# when getting article coords, record the coord 'inpage' and bucket accordingly
# when cropping articles from jp2s, use page_to_jp2_dict to load the right jp2 file

Thanks @Datinor I definitely agree that looping over images one by one won't allow us to deal with rectangles printed on page 2 that continue articles printed on page 1. I spent the afternoon working to generate a data structure that will allow for such rectangles.
On that front, I just sent a branch that loops over all xml files in a specified set of directories and generates a json file that allows us to identify all rectangles, the pages on which they appear, and the pages and articles to which those rectangles belong. Check it out: https://github.com/YaleDHLab/image-segmentation/blob/map-issue-to-pages-to-rectangles/segment_ydn_image.py#L375
Tomorrow I'll continue with this branch to get the max XML width and height among pages in a newspaper issue, so we can evaluate whether those max values give us a useful baseline for converting XML offset values into jp2 pixel offset values...


WIP: Lib3hUri wrapper for use of Url

PR summary
Review checklist

[ ] The story has unit or integration tests
[ ] No new bugs, and any tech-debt is identified and justified
[ ] There is enough API documentation (how to use)
[ ] There is enough code documentation (how the code works)

work moved to #379


Fix the polyfill for JSDOM

Yeah it actually just doesn't work:
[info] org.scalajs.macrotaskexecutor.MacrotaskExecutorSuite:
[info]   + sequence a series of 10,000 recursive executions without clamping 25.78s
[info]   + preserve fairness with setTimeout 0.11s
[info]   + execute a bunch of stuff in 'parallel' and ensure it all runs 13.14s

"without clamping"
If we can fix this, we can uncomment the assertion which ensures that we're actually not being clamped.

Update on this: I tried 2 things.

Fixing the postMessage detection stuff, since postMessage does appear to be implemented in JSOM. This gets us:

/workspace/scala-js-macrotask-executor/node_modules/jsdom/lib/jsdom/living/helpers/events.js:15
const event = createAnEvent(e, target._globalObject, eventInterface, attributes);
                                      ^

TypeError: Cannot read property '_globalObject' of undefined
  at fireAnEvent (/workspace/scala-js-macrotask-executor/node_modules/jsdom/lib/jsdom/living/helpers/events.js:15:41)
  at Timeout._onTimeout (/workspace/scala-js-macrotask-executor/node_modules/jsdom/lib/jsdom/living/post-message.js:36:7)

Implementing the IE polyfill which relies on <script>. This doesn't work because of JSDOM security measures:

The jsdom sandbox is not foolproof, and code running inside the DOM's

Update on 2: it seems the JSDOM env for JS already disables that security measure. So, my implementation of the polyfill is broken then or something else weird is going on.

Ok, here's another fun experiment. Turns out that setImmediate is defined on JSDOM, just our conditional check is broken for whatever reason. If we hardcode it:
diff --git a/core/src/main/scala/org/scalajs/macrotaskexecutor/MacrotaskExecutor.scala b/core/src/main/scala/org/scalajs/macrotaskexecutor/MacrotaskExecutor.scala
index 33ac1b4..6be8ab8 100644
--- a/core/src/main/scala/org/scalajs/macrotaskexecutor/MacrotaskExecutor.scala
+++ b/core/src/main/scala/org/scalajs/macrotaskexecutor/MacrotaskExecutor.scala
@@ -35,7 +35,7 @@ object MacrotaskExecutor extends ExecutionContextExecutor {
     cause.printStackTrace()

   private[this] val setImmediate: (() => Unit) => Unit = {
-    if (js.typeOf(js.Dynamic.global.setImmediate) == Undefined) {
+    if (false || js.typeOf(js.Dynamic.global.setImmediate) == Undefined) {
       var nextHandle = 1
       val tasksByHandle = mutable.Map[Int, () => Unit]()
       var currentlyRunningATask = false

It runs, but it's still clamped 😠

Also worth nothing that the postMessage implementation in JSDOM itself uses setTimeout:
https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/post-message.js#L35-L37

Also worth nothing that the postMessage implementation in JSDOM itself uses setTimeout:

Wtf… Seriously?

How is it that we don't have access to setImmediate in jsdom? It's a node environment, and they seem to use it internally: https://github.com/jsdom/jsdom/blob/9dae17bf0ad09042cfccd82e6a9d06d3a615d9f4/lib/jsdom/living/xhr/xhr-utils.js#L410

How is it that we don't have access to setImmediate in jsdom

IDK, they do some sandboxing to make the global scope behave like a browser scope.
However, the README alludes to someway to access Node:

The jsdom sandbox is not foolproof, and code running inside the DOM's

if it tries hard enough

JK. Maybe we should just give up on jsdom. The polyfill is functional on that platform, it's just slow.

🙃 Let's keep this issue and maybe mark it help wanted? Who knows, inspiration may strike.
In the meantime, I can disable the clamping test for only JSDOM so we can run it in the other environments.

In the meantime, I can disable the clamping test for only JSDOM so we can run it in the other environments.

I think that's the right approach.


little cleanup

format
allow palettedstorage to use NbtLittleEndianNetwork, will be used in chunk packets
remove printlns
ignore levelname.txt

I would recommend that you switch to using the bedrock core crate instead of byte_order for reading/writing nums

I don't think LE::read() should return LE I feel that it's duplicated information. For writing it makes more sense because you don't have to deal with the LE wrapper twice, you just put it in and forget about it
I'm working on switching it over to bedrock_core now, but the LE and BE thing also doesn't make sense for u8 and i8s so I'm gonna stick to byte order for that

This ready to merge?

seems good!


Background tasks for creating/updating/deleting groups

receive group id, name and visibility
create collection and roles, assign permissions
send back 200 with collection url slug


Design Options grayed out

Helllo,
I have the issue that all options in the Design tab are grayed out, besides "Phantom Design Panel".
I can activate them by adding e.g.
"handles.rf_uimenu.Enable = 'on';"
in the SimuPanel_OpeningFcn. But the rfDesignPanel is not usable as the execution of e.g. rfSinc gives the following error message

"ERROR!!! rf exectution process aborted. Reference to non-existent field "ISO"

Also other uimenues are grayed out like for example in tab Tools the "Spin Evolution" option. Is this done on purpose?
Best,
Luca

Problem Solved, I was following the steps described in 2.3 Gradient Echo: Start A Simple Scan in the MRiLab_v1.3_User_Guide


Optionally disable registration of not nessecary data

Like TopicEvent and ConsumedSubscriptionEvent and perhaps even FailedSubscriptionEvent.

Logging can be enabled on Topic (for TopicEvent) and Subscription (separate settings for ConsumedSubscriptionEvent and FailedSubscriptionEvent). Implemented in v0.8.0.


Database configuration

Hi, how can I configure the DB?

I am seeing the same problem
root@ed9104e7f2e7:/var/www/html# php artisan koel:init
Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙  https://koel.phanan.net/docs
App key exists -- skipping
Generating JWT secret
SQLSTATE[HY000] [2002] No such file or directory
Koel cannot connect to the database. Let's set it up.
Your DB driver of choice [MySQL/MariaDB]:
[mysql     ] MySQL/MariaDB
[pgsql     ] PostgreSQL
[sqlsrv    ] SQL Server
[sqlite-e2e] SQLite

Hi @Damix48
This container does not have its own database. It needs a separate database container.
For example, you can start a separate mysql container. In this container, you need to create

A user (for example "koel")
A password for that user
A database (for example "koel")

See the docker-compose.yml file included as an example. Here, I use mysql/mysql-server:5.7 and I pass it environment variables so the container creates a user and a database by itself when it starts.
The easiest way to run koel is to use docker-compose so that koel and the database are on the same network and can communicate.

Thank you so much.

I've updated the README to better explain how to run this container alongside another MySQL container.


Autoscale not shutting down unused desktop

I've setup the autoscale solution and it is now shutting down my unused session hosts.  I have two session hosts and no users logged in and it does not shut down the second host when it should.  Here is the output of the script when it runs:
2020-09-15 08:52:19 [339] Request params:
AADTenantId                   :
BeginPeakTime                 : 8:00
ConnectionAssetName           : AzureRunAsConnection
EndPeakTime                   : 18:00
HostPoolName                  : Clinic Desktop
LimitSecondsToForceLogOffUser : 300
LogAnalyticsPrimaryKey        :
LogAnalyticsWorkspaceId       :
LogOffMessageBody             : Loging out due to after hours load balancing please login again if you need to continue
working
LogOffMessageTitle            : Loging out due to after hours load balancing please loging again if you need to
continue working
MaintenanceTagName            :
MinimumNumberOfRDSH           : 1
ResourceGroupName             : WVD
SessionThresholdPerCPU        : 2
SubscriptionId                :
TimeDifference                : -4
UseARMAPI                     : @{IsPresent=True}
2020-09-15 08:52:19 [352] Get auto connection from asset: 'AzureRunAsConnection'
2020-09-15 08:52:28 [367] Successfully authenticated with Azure using service principal:
Name               :
Account            :
Environment        : AzureCloud
Subscription       :
Tenant             :
TokenCache         : Microsoft.Azure.Commands.Common.Authentication.Core.ProtectedFileTokenCache
VersionProfile     :
ExtendedProperties : {}
2020-09-15 08:52:28 [394] Get Hostpool info of 'Clinic Desktop' in resource group 'WVD'
2020-09-15 08:52:30 [409] Get all session hosts
2020-09-15 08:52:31 [417] Get number of user sessions in Hostpool
2020-09-15 08:52:31 [429] HostPool info:
ApplicationGroupReference                  : {/subscriptions//resourcegroups/WVD/pro
viders/Microsoft.DesktopVirtualization/applicationgroups/Clinic Desktop}
CustomRdpProperty                          :
Description                                :
FriendlyName                               :
HostPoolType                               : Pooled
Id                                         : /subscriptions//resourcegroups/WVD/prov
iders/Microsoft.DesktopVirtualization/hostpools/Clinic Desktop
LoadBalancerType                           : BreadthFirst
Location                                   : eastus
MaxSessionLimit                            : 15
Name                                       : Clinic Desktop
PersonalDesktopAssignmentType              :
PreferredAppGroupType                      : Desktop
RegistrationInfoExpirationTime             :
RegistrationInfoRegistrationTokenOperation : None
RegistrationInfoToken                      :
Ring                                       :
SsoContext                                 :
Tag                                        : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.Track
edResourceTags
Type                                       : Microsoft.DesktopVirtualization/hostpools
VMTemplate                                 :
ValidationEnvironment                      : False
2020-09-15 08:52:31 [430] Number of session hosts in the HostPool: 2
2020-09-15 08:52:31 [452] Using current time: 2020-09-15 08:52:31, begin peak time: 2020-09-15 08:00:00, end peak time: 2020-09-15 18:00:00
2020-09-15 08:52:31 [456] In peak hours
2020-09-15 08:52:32 [485] Get all VMs, check session host status and get usage info
2020-09-15 08:52:34 [506] Session host: 'clinicdesktop1.', power state: 'VM running', status: 'Available', update state: 'Succeeded', sessions: 0, allow new session: True
2020-09-15 08:52:34 [509] Get all VM sizes in location: eastus
2020-09-15 08:52:35 [506] Session host: 'clinicdesktop2', power state: 'VM running', status: 'Available', update state: 'Succeeded', sessions: 0, allow new session: True
2020-09-15 08:52:35 [556] Number of running session hosts: 2 of total 2
2020-09-15 08:52:35 [557] Number of user sessions: 0 of total allowed 30
2020-09-15 08:52:35 [558] Number of user sessions per Core: 0, threshold: 2
2020-09-15 08:52:35 [559] Minimum number of running session hosts required: 1
2020-09-15 08:52:35 [672] No need to start/stop any session hosts
2020-09-15 08:52:36 [673] End

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

ID: 24a6c4e2-702f-2b17-3e2d-c86f33b13beb
Version Independent ID: 1e7811d8-668a-db98-34ca-eaf4d7ee8c1f
Content: Scale session hosts Azure Automation - Azure
Content Source: articles/virtual-desktop/set-up-scaling-script.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

Thanks for the feedback! We are currently investigating and will update you shortly.

@langer318 Sorry for the delay on this.
It looks like you have set the minsessionhost to 1 meaning that the script will always leave 1 host running 24x7. If you don't want to have 1 host available then you would need to change the parameter to 0.
i.e.  - MinimumNumberOfRDSH : 0
Let me know if you have further questions.

We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.

The issue is I have it set to 1 but it is running 2 hosts even with no users logged in during work hours.

I have the exact same issue!
2020-11-17 17:25:59 [567] Number of running session hosts: 2 of total 2
2020-11-17 17:25:59 [568] Number of user sessions: 0 of total allowed 30
2020-11-17 17:25:59 [569] Number of user sessions per Core: 0, threshold: 3
2020-11-17 17:25:59 [570] Minimum number of running session hosts required: 1
2020-11-17 17:25:59 [683] No need to start/stop any session hosts
Why is it not stopping the second host?

I found the 'issue'. The script only shuts down VM's during Off-Peak hours.


A single name conflict between two libraries forces prefixes for all references to one of the libraries.

A single name conflict between two libraries forces prefixes for all references to one of the libraries.
For example, user defined library contains a class named Point and dart:html contains a class named Point.  Currently this has caused some users to abandon using dart:html altogether to avoid having to reference all types in dart:html with a prefixed name.
It would be better if only the conflicting names had to be prefixed rather than requiring all names to be prefixed.

error: The name 'User' is defined in the libraries 'package:firebase_auth/firebase_auth.dart' and 'package:tunein/models/user.dart'. (ambiguous_import at [tunein] lib/resources/firebase_methods.dart:48)
I've defined user in user.dart but but it is defined in firebase_auth.dart please help I want to use it  from 'user.dart'.

We'll take a look and try and come up with something that works for people.
Added Accepted label.

error: The name 'User' is defined in the libraries 'package:firebase_auth/firebase_auth.dart' and 'package:tunein/models/user.dart'. (ambiguous_import at [tunein] lib/resources/firebase_methods.dart:48)
I've defined user in user.dart but but it is defined in firebase_auth.dart please help I want to use it  from 'user.dart'.

@goc20, check out section Using libraries, and in particular the subsection 'Importing only part of a library'.
import 'package:firebase_auth/firebase_auth.dart' hide User;
import 'package:firebase_auth/firebase_auth.dart' as firebase show User;
import 'package:tunein/models/user.dart';

void main() {
  firebase.User user1 = ...; // Declaration in firebase_auth.dart.
  User user2 = ...; // Declaration in user.dart.
}


Add release metadata file to source-build release pipeline

Contributes to https://github.com/dotnet/arcade-services/issues/2673
Current implementation of the pipeline relies on a set of release metadata being passed around from the pre-release stage onto other stages and their respective scripts.
Combining this information into a single file that is then available as a pipeline artifact should:

shorten the amount of variables the pipeline works with. Moreover, with the switch tor ReleaseCLI there could be a single re-usable logic to deal with the file for any command relying on it
simplify validation of release metadata - a user can simply download the file and inspect it manually to make sure the information is valid / to debug any issues encountered

PR - https://dev.azure.com/dnceng/internal/_git/dotnet-release/pullrequest/35888

PR merged, closing as Done


starting to work on a more user friendly ui?

I get tabular form of data is slightly harder to make presentable but we can start working on design over figma, and then we could start developing that later.
I would love to help with this

Hi @Tanmay09516 ❤ thanks for the good ide 🤩 please join discord workshop->aica channel we can work on this


startRecording() always returns started

I am using react-native-record-screen to record screen in my APP.
I want two type of rendering according to state of recording permission that means if user grant the recording permission then show video and give option to share that but I he denies then I want on state to be false so that I can provide another option to APP user but the problem is ** the promise startRecording() always returns started for all three option on iOS permission prompt**
I am sharing a ScreenShot of the permission dialogue box there are three options and for all three the response of permission is started and the type is string

Any update on this ?


Does pinch even work?

This is what my code looks like
var hammerTime = new Hammer(canvas, { });
hammerTime.get('pinch').set({ enable: true });
hammerTime.on('pinchstart', function(e) {
console.log(e.distance);
});
Does pinch work in chrome dev tools? Pressing SHITF-KEY + mouse?
Or this always requires a device to test it on.

@chitgoks I think it used to work on older devtools. Firefox doesn't seem to be able to do it also.
But what I'm doing now is using Xcode simulator + safari devtools just for the touch events testing/developing. Well, there is always the possibility to test on an actual device through ADB bridge or ios equivalent.


Provide MSI installer

We are looking to migrate away all products from Oracle Java to OpenJDK.
To be able to deploy OpenJDK and OpenJRE in enterprise we need MSI installers. Currently I only see a ZIP file as download.
Can you create an MSI setup, please?

For whomever picks this up, see openjdk-installer project for existing resources to do this.

I guess you mean https://github.com/AdoptOpenJDK/openjdk-installer

I can pick this issue.
I‘m currently only confused by the project here... is this the officially OpenJDK or a fork?

This is not a source fork (we don't make any source code changes from OpenJDK or OpenJ9 upstreams).  We are one of several OpenJDK binary providers, but we're a bit unique in that this is a collaborative community and vendor effort attempting to cover all platforms and variants :-).
Have you joined our slack at adoptopenjdk.net/slack.html?
You raise a good question about where the installer code should live.  I think openjdk-installer repo is the right place to put a pull request into.  But it's worth discussing in the #build channel in slack.
Thanks for your support!

I've also invited you to this GitHub org

we can already build .exe installers if these are okay for you?

EXE installers are not okay. EXE should RIP. These cannot deployed via Active Directory. Use MSI only and your are done with installers for both enterprise and end users.
I'm close to finish the MSI installer code... At latest tomorrow it is ready and tested I think.
Not that I need EXE setup, but where are you hiding them and the code? So I can review this code and may migrate missing parts to MSI.

@alexhass I sense a lot of confusion on the whole story, as Oracle has made the situation quite complex. People at Karakun and Azul have made good explanations, you should take a look to these pages:

https://dev.karakun.com/jdks/
https://www.azul.com/how-do-we-define-java/
https://www.azul.com/eliminating-java-update-confusion/

Note the Windows CPL mainly aims at configuring Java WebStart, which has been killed by Oracle and not open-sourced in OpenJDK. Karakun guys are looking for funding to implement an open source successor to Java WebStart, which could then be packaged here, in AdoptOpenJDK builds:

https://dev.karakun.com/webstart/

Yeah. On the end Oracle rip you if you are a company. The term "production use" could be read quite flexible. If I run Eclipse on developers machines to develop C++, PHP, JS code I could argue that this is production use. I do not understand how this can be free as developers use an application (Eclipse) in production to develop a website. If I have other end user applications that require java on a desktop I need a payed license, too. I think this is still an application in production.
On servers I think it is a bit easier if you know a server is a development/staging/production server. I would argue that a development server is clearly non-production, but it could also be a mix as some development servers are often abused as 5% production in-house.
With staging systems I could say this is pre-production (last-line of test/development verification system) and therefore more development, but Oracle could say this is production.
I'm not sure, but they tryed to drive me nuts with Java 8. The MSI changed dramatically mid 8.x and was no longer deployable without manipulating many many areas in the MSI. I managed this myself with many articles on the net. In Java 9 they made the MSI more hidden... now you need to install into a VM with snapshot and grab the MSI from Windows\Installer folder. This all suxxx.
I got an offer (mid 2017) for a yearly contract of ~75.000 EUR for 300 computers - only to get the MSI enterprise installer and a management suite I do not want. Now this seems to become cheaper (~25.000 EUR)... but still a lot of money. Oracle seems for sure the Axis of Evil and we need to find ways to get rid of them and/or Java where possible.

Speaking of Eclipse IDE. They're planning on shipping with OpenJ9 in the future.
See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=506244
https://twitter.com/mmilinkov/status/1008694123413598208?s=19

Hi @alexhass - A quick note to say that AdoptOpenJDK is working with Oracle, IBM and other OpenJDK providers to offer folks more choice.  This isn't an appropriate place to discuss pros and cons of particular vendors.
On a philosophical point - people do need to put roofs over their heads and food on the table and so I don't think it's unreasonable to charge licensing fees or otherwise monetize software :-).  That said, if a particular vendor's offering doesn't suit then AdoptOpenJDK could be a viable alternative.
In terms of producing JREs we do plan to do so for 9-11 (https://github.com/AdoptOpenJDK/openjdk-build/issues/356 and https://github.com/AdoptOpenJDK/openjdk-build/issues/411) - but the option to easily build JRE's may be going away in future versions of OpenJDK (jlink is the appropriate mechanism for your custom deployments).
Thanks again for helping produce an MSI installer - it's much appreciated!
@gdams So we can land this.  I don't see the production of exe's in the openjdk-build project?  Is the code for it here?

Can someone tell me how the release cycle of OpenJDK works today? Do you need to build a setup independently for "Hotspot" and "Eclipse OpenJ9" or are both build the same time?
I create a pull against openjdk-installer later or tomorrow.
@karianna: Others have no longer a house and no food in January 2019+ because of the java runtime library they need to pay for yearly; if they cannot get rid of every java application they use.
MS (and others) also do not require me to license VC redist runtime libraries for extreme lot of money. This is 100% the same like Java that is the runtime library I need to run the dependend software.
Oracle seems to destroy Java adoption and they are on the right way. Only this is what is going to happen! Everyone migrates away from Java in browser to HTML5 interfaces. Oracle Java may be used on servers as people cannot change everything within next 6 months, but no longer on clients and the adoption will drop dramatically soon. The lack of MSI is just a plus to speed up the process.

The AdoptOpenJKD release cycle is fairly complicated.  In short we mirror the Hotspot based OpenJDK repos from mercurial into Github (for ease of processing and maintaining some of our own patches) and we pull directly from Eclipse OpenJ9.  Those are the two main sources we build from both nightly and on a release schedule (usually matching Oracle's release schedule for Oracle JDK).  We also test other people's binaries like SAPMachine and RedHat's Aarch64 port.

https://github.com/AdoptOpenJDK/openjdk-installer/pull/6

Demo installers can be downloaded from https://www.hass.de/content/openjdk-msi-package-enterprise-deployment-available

@karianna : How are things going with the build server?

Apologies - it's a bit stuck in my queue after the git-hg work and 11.0.1 release we need to get out.  Hopefully, we'll dig ourselves out of the hole this week and get onto installers next week.  Appreciate your patience!

@alexhass  - thank you for creating these demo installersI'm looking into providing autoupdaters for openjdk-openj9 builds.  I've downloaded and run the openjdk8-jdk_x64_windows_openj9-<IP_ADDRESS>.msi and have a few observations and questions:

The jdk is installed to C:\Program Files\AdoptOpenJDK\jdk-<IP_ADDRESS>  (OK by me)
This entry is created in the Registry: HKEY_LOCAL_MACHINE\SOFTWARE\AdoptOpenJDK\Java Development Kit\<IP_ADDRESS>\MSI\Path = C:\Program Files\AdoptOpenJDK\jdk-<IP_ADDRESS>

As you have already asked, I also have concerns about the legality of using "Java" in the key.  @karianna, can you provide guidance?
For reference, this is Oracle's doc on the registry keys they update (for Java 9. I can't see any reference of registry entries for Java 11 in the Oracle doc, though I assume they're being created?) : https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-microsoft-windows-platforms.htm#GUID-47C269A3-5220-412F-9E31-4B8C37A82BFB

The install has no equivalent of the Oracle C:Windows\System32\java.exe file.  Personally I never liked that 'feature' anyway (on the grounds that it's not actually a shortcut), but existing applications might expect it to be there which would be a migration issue for moving to AdoptOpenJDK.
The license presented is the Eclipse Openj9 project's EPLv2 license.  This wouldn't be the correct license to present - at a minimum the build includes OpenJDK which is taken under GPLv2 with Classpath Exception.  Perhaps @karianna could provide guidance on what license (if any) the user needs to agree to?

@alexhass - fyi, there is now an 'installer' slack channel at https://adoptopenjdk.slack.com/messages/C9C272Z1T

Another observation:
JAVA_HOME=C:\Program Files\AdoptOpenJDK\jdk-<IP_ADDRESS>\bin
should not include the bin directory
Raised https://github.com/AdoptOpenJDK/openjdk-installer/pull/21 to fix

karianna - said I need to use the eclipse license.
Oracle is not installing a file to „C:Windows\System32\java.exe„ since 7.x if I remember correctly. They moved to programdata with strange mklink‘s folders and hash subfolders and a path rule like I implemented - that points to this folder.  I‘m not aware of issues with my much cleaner solution. As I have no interrest in bad custom action like they are doing, I cleaned this up.
About „Java“ in registry. I can change at sny time, but honestly this is first not a product name and second - JDK is just an abbreviation and means „Java Development Kit“. No idea why we may not allowed to remove abbreviation when it makes sense.

@alexhass - regarding "As I have no interest in bad custom action like they are doing, I cleaned this up."
Are you saying that your installer only adds \bin to PATH and sets up JAVA_HOME by design?  I am just trying to understand possible implications for users migrating from Oracle java releases to AdoptOpenJDK releases.

karianna - said I need to use the eclipse license.

That was my assumption, but @lumpfish is actually correct, my apologies for putting you wrong there!

About „Java“ in registry. I can change at sny time, but honestly this is first not a product name and second - JDK is just an abbreviation and means „Java Development Kit“. No idea why we may not allowed to remove abbreviation when it makes sense.

I'll need to look into this, I'll try to be quick!

It might be interesting to take a look at what Amazon does with @corretto.
They provide a preview MSI installer which installs OpenJDK to C:\Program Files\Amazon Corretto\. There we get two folders jdk1.8.0_192 and jre8. The Windows registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Amazon\Amazon Corretto\<IP_ADDRESS>\MSI. So it seems they avoid "Java" completely.

It might be interesting to take a look at what Amazon does with @corretto.
They provide a preview MSI installer which installs OpenJDK to C:\Program Files\Amazon Corretto\. There we get two folders jdk1.8.0_192 and jre8. The Windows registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Amazon\Amazon Corretto\<IP_ADDRESS>\MSI. So it seems they avoid "Java" completely.

Thinking about this further it probably is safest to have:
HKEY_LOCAL_MACHINE\SOFTWARE\AdoptOpenJDK\AdoptOpenJDK\<IP_ADDRESS>\MSI\Path = C:\Program Files\AdoptOpenJDK\jdk-<IP_ADDRESS>
@alexhass Does that impact the way you deal with JDK vs JRE?

@alexhass - regarding "As I have no interest in bad custom action like they are doing, I cleaned this up."
Are you saying that your installer only adds \bin to PATH and sets up JAVA_HOME by design? I am just trying to understand possible implications for users migrating from Oracle java releases to AdoptOpenJDK releases.

Sorry, that was a misunderstanding... my mobile screen was too small and I thought for unknown reason you talked about the path. So you found a bug... I will fix asap JAVA_HOME path and not only this - after your note I have seen for JRE it need to be JRE_HOME. This requires another small change.

It might be interesting to take a look at what Amazon does with @corretto.
They provide a preview MSI installer which installs OpenJDK to C:\Program Files\Amazon Corretto\. There we get two folders jdk1.8.0_192 and jre8. The Windows registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Amazon\Amazon Corretto\<IP_ADDRESS>\MSI. So it seems they avoid "Java" completely.

Thinking about this further it probably is safest to have:
HKEY_LOCAL_MACHINE\SOFTWARE\AdoptOpenJDK\AdoptOpenJDK\<IP_ADDRESS>\MSI\Path = C:\Program Files\AdoptOpenJDK\jdk-<IP_ADDRESS>
@alexhass Does that impact the way you deal with JDK vs JRE?

I will change to:
HKEY_LOCAL_MACHINE\SOFTWARE\AdoptOpenJDK\JDK\<IP_ADDRESS>\MSI\Path = C:\Program Files\AdoptOpenJDK\jdk-<IP_ADDRESS> HKEY_LOCAL_MACHINE\SOFTWARE\AdoptOpenJDK\JRE\<IP_ADDRESS>\MSI\Path = C:\Program Files\AdoptOpenJDK\jre-<IP_ADDRESS>
The key need to be unique and we cannot use "AdoptOpenJDK". I need to make sure JRE and JDK do not override each others registry keys.

Perfect thank you!

Hopefully we can get the MSIs out of the door now.

Regarding Oracle's use of symbolic links to the latest installed java via C:\ProgramData\Oracle\Java\javapath - can you confirm that AdoptOpenJDK does not plan to mimic that behaviour?
(@alexhass - thanks for pointing out java.exe is no longer put into c:\Windows\System32!  Shows how often I actually install java (rather than unzipping / untarring!))

I analyzed what they are doing and do not see a single technical reason why they are doing this. As said a few time they are doing bad things and I will not mimic bullsh**.
I guess they are doing it to break the current end user msi setup intentionally if manually extracted by admins. I can show you the mst to repair their setup... it is shocking. And this only to force customers to license the enterprise msi for $100K or more that is not public available.

Regarding the End User License Agreement to be presented when installing openjdk-openj9 builds, this should be the license from the Extensions for OpenJDK8 for Eclipse OpenJ9 repository: https://github.com/ibmruntimes/openj9-openjdk-jdk8/blob/openj9/LICENSE (GPLv2 with Classpath Exception) not the Eclipse/openj9 license: https://github.com/eclipse/openj9/blob/master/LICENSE.


[Feature] Ability to configure different validations to run at different times

I would like to be able to configure the form to have certain validations run at different times than other validations.
For example, one validation may make sense only to run on submit, while others should run on input for real-time feedback to the user.
A simple use case is the required validation, which feels natural to apply on submit, but feels aggressive when it throws an error if the user is working their way through the form and may have touched a field but is not yet ready to submit.
In other cases, immediate feedback about the input value is important, such as limiting the input to a certain maximum and giving the user immediate feedback so they can correct it while they are working on that field, rather than needing to go back and fix it upon submission.
Hope that makes sense!  Thanks for all you do to create and maintain this library!

Thank you for creating this issue. For simple forms you can manually trigger validate for specific fields as a workaround. Don't expect a quick response to this issue as I am currently focused on my other library Valibot.


Feat: Making a functional page for fruits

Describe the feature

Earlier page of fruits did not look appealing and also , it did not have option to add to cart
I made a page of fruits , matching the theme of the project along with the functionality of add to cart , making it more user friendly

Add ScreenShots
Before:
https://github.com/Anushkabh/krishiconnect/assets/162733812/6ade9c10-96d6-42af-b907-ff6644fad010
After:
https://github.com/Anushkabh/krishiconnect/assets/162733812/9a59bafe-f958-4639-bfe8-a2a8d7ee3b9c
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@himanshu-03 @RitiChandak I feel , this would look nice , I want to work on it , please assign it to me

Great @Maana-Ajmera !
You can start working on this issue.
happy coding ✨

@himanshu-03 doing it


Latest patch breaks server side rendering.

In the latest patch there are document and window calls. This makes the library impossible to use with SSR.

Eh, sorry for that - forgot about SSR support on this one. Gonna fix in half an hour.

@main-kun please check now. Everything should be alright once again. Sorry for regression.

Yeah, everything is fine now. Thank you.

Thanks for the confirmation! I hope the broken version didnt get deployed anywhere to the production.


I can't build the app on android

I am trying to build android app i run ionic cordova build android command on mac but it tells me
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT = undefined (recommended setting)
ANDROID_HOME = / Users / denisvasquez / Library / Android / sdk (DEPRECATED)
Requirements check failed for JDK 8 ('1.8. *')! Detected version: 11.0.5
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
[ERROR] An error occurred while running subprocess cordova.

        cordova build android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more
        information.

additionally I have the following environment variables
Create a JAVA_HOME variable, determined dynamically
export JAVA_HOME=$(/usr/libexec/java_home)
Add that to the global PATH variable
export PATH=${JAVA_HOME}/bin:$PATH
Set Android_HOME
export ANDROID_HOME=~/Library/Android/sdk/
export ANDROID_SDK_ROOT=~/Library/Android/sdk/
Add the Android SDK to the ANDROID_HOME variable
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_SDK_ROOT:$PATH
I also have the gradle with version installed

Gradle 6.2.2
Build time:   2020-03-04 08:49:31 UTC
Revision:     7d0bf6dcb46c143bcc3b7a0fa40a8e5ca28e5856
Kotlin:       1.3.61
Groovy:       2.5.8
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          11.0.5 (Oracle Corporation 11.0.5+10-LTS)
OS:           Mac OS X 10.15.3 x86_64
and I don't know what the problem really is
ionic info
Ionic:
Ionic CLI                     : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework               : @ionic/angular 4.8.1
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics    : 8.1.3
@angular/cli                  : 8.1.3
@ionic/angular-toolkit        : 2.0.0
Cordova:
Cordova CLI       : 9.0.0<EMAIL_ADDRESS>Cordova Platforms : android 8.1.0, ios 5.1.1
Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 9 other plugins)
Utility:
cordova-res (update available: 0.11.0) : 0.9.0
native-run                             : 0.3.0
System:
Android SDK Tools : 26.1.1 (/Users/denisvasquez/Library/Android/sdk/)
ios-sim           : 8.0.2
NodeJS            : v12.13.0 (/usr/local/bin/node)
npm               : 6.12.0
OS                : macOS Catalina
Xcode             : Xcode 11.3.1 Build version 11C504
Ionic version:
5.4.16
Mac version:
10.15.3

the JDK version must be "1.8", but your mac current version is "11.0.5", so build failed, try to change the version to '1.8.0'


Basic Parallelization

Parallelized, array add, array multiply and negative, very basic openMP usage

i'm thinking of having 2 files smolar.c (for serial execution) and smolar_parallel.c with your additions residing in the later file, since i want this repository to be cloned and ran without any setup.
can you update this PR like that, it would be great and also would resolve the conflicts.
also it would be great if you can show the execution time difference between serial and parallelized code.

yeah I will, slighly busy this week so wont be able to get to it immediately. I was also working on adding an optimized matmul and convolution with im2col, will do it by end of next week

also I saw that you want to add more dtype support. I was working on that but will need to emulate generics for it i think, is there any standard you want to set for it? generics in C can get very ugly with all the macros

moved the simd code to smolar-simd.c, I moved the apply function implementation there too. maybe move that without the openmp pragmas to the smolar.c if you want

thank you! maybe matmul and convolution can be added first and then after that we can talk about the support for more dtypes and structure for generics, awesome work 🫡


Make .get_path generic

Similar to #302 but for a different API

@drewcrawford I remember having to deal with this some time ago. The TryFrom<Value>::Error is specified by stdweb but (memory is a bit hazy here) its visibility, from what I remember, wasn't meant to be public. That was why we made a homemade version of the ConversionError.
What do we get by changing it this way?

I think you are referring to this issue https://github.com/koute/stdweb/issues/280, which is a case where the implementation of the type conversion is statically known (and I believe it is also ourselves in that example, although I may be mistaken...)
The underlying problem here involves when the conversion implementation is unknown, and the type is a usertype.   There is one case with repro steps in this comment although that's get (#302), this is for get_path. Specific to this case, types that are :JsSerialize have a conversion to Value with error stdweb::ecosystem::serde::ConversionError but in this method signature we require error to be stdweb::webcore::value::ConversionError (the expansion of ConversionError in this context), so that will not pass typecheck.
More broadly, for the purposes of getting an arbitrary user type out of memory, it doesn't really matter whether the typeconversion implementation we use is serde's, stdweb's, or some homebrew TryInto with &'static str a fancy boutique error type.  Ultimately we just need to return whatever error encountered so the caller can panic perform appropriate handling.


Replace the missing hook warning with a helpful error

@vladciobanu I thought we could get away with a warning here, but the backend makes a spectacle of itself if a hook is missing. Sorry for pushing you to do that. At least it helped refine the logging interface. :frowning:

Reviewer checklist

[ ] Test coverage: stack test --coverage
[ ] Public API documentation: stack haddock

sorry I didn't test it better but it seemed to work reasonably on trivial cases.

It's not your fault, it had nothing to do with the warning itself: When faced with the missing KRYPTO.sha256 hook, the backend tried to continue executing symbolically as far as it could. In the Beacon Chain spec, that hook is used as an argument of a recursive call... without a concrete string, the backend can't decide when to stop recursing.


chore(deps): Update dependencies

Please note that most updates are minor except macOS: 12 (2022) to 13 (2023).
In any case, even in 12 there would be a much newer (default) Xcode 14.2 available, why has the release been downgraded to 13.4 recently by 2 major versions? I could only see a pull request, but no issue... 🤔
https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode
And CUDA 12.4 would seem like a low hanging fruit (11.3 is from 2021)... but the server version doesn't matter for performance? 😅

Hi @reneleonhardt thanks so much for the PR. Most of this has been updated by now and the build process has changed, and so it's probably best to revisit any version changes in a new PR. Sorry for not reviewing sooner.


Why appeared reset problem after Multiply the camera clock ？

My project's idf is esp-idf-v2.0.
But it has some problems now.
If camera pclk is 10MHZ,and set i2s clkm_div_num = 2 ,it can normal work.
This is the set i2s mclk code,the camera's pclk was seen with a logic analyzer and is 10MHZ.
I2S0.clkm_conf.clkm_div_a = 1;
I2S0.clkm_conf.clkm_div_b = 0;
I2S0.clkm_conf.clkm_div_num = 2;
But if set camera pclk is 20MHZ,and set i2s clkm_div_num = 1,there are aproblem .It will print the following and reset .
Guru Meditation Error of type LoadProhibited occurred on core  0. Exception was unhandled.
Register dump:
PC      : 0x400fcb8d  PS      : 0x00060f30  A0      : 0x800f1d74  A1      : 0x3ffd8390
A2      : 0x00000000  A3      : 0x3ffdfd88  A4      : 0x00000058  A5      : 0x3ffdfdb8
A6      : 0x3ff42000  A7      : 0x00000000  A8      : 0x800fcb6d  A9      : 0x3ffd8376
A10     : 0x3ffdfdf0  A11     : 0x00000058  A12     : 0x00000058  A13     : 0x00000058
A14     : 0xdbefe9e9  A15     : 0x999f21a2  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c
EXCVADDR: 0x999f21be  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0x00000000
Backtrace: 0x400fcb8d:0x3ffd8390 0x400f1d71:0x3ffd83c0 0x400f1ae2:0x3ffd83e0 0x400eb72a:0x3ffd8410 0x400ed3c0:0x3ffd8470 0x400efbcf:0x3ffd84b0 0x400efc4d:0x3ffd84d0 0x400edd14:0x3ffd84f0 0x400edd33:0x3ffd8530 0x400ef883:0x3ffd8550 0x400ef966:0x3ffd8570 0x400f86fb:0x3ffd8590
This is the set i2s mclk code,the camera's pclk was seen with a logic analyzer and is 20MHZ.
I2S0.clkm_conf.clkm_div_a = 1;
I2S0.clkm_conf.clkm_div_b = 0;
I2S0.clkm_conf.clkm_div_num = 1;
I don't why doubling the rate of both will cause problems ?
If i want to improve the camera's acquisition rate,How do I set up I2S ?

I have just checked and setting div_num=1 will not work — div_num=2 is the lowest setting which the hardware supports.
Sampling at 20MHz can only be achieved (as this is done in this project) by setting I2S0.fifo_conf.rx_fifo_mod to 0 (defined as SM_0A0B_0B0C in the source code). Please read this comment: https://github.com/igrr/esp32-cam-demo/issues/29#issuecomment-307871635, especially the paragraph starting from "Why do we need this odd SM_0A0B_0B0C mode though?".
With regards to why the exception happens, i can not say — the backtrace contains useful information which you should be able to interpret if you use make monitor or if you enable GDB stub.  With GDB you can also figure out which variable/memory location was corrupted. Good luck.

Thank you for your answer.


Create a copr build timeout exception

It just creates a new Exception to be used in packit-service.
Related to packit/packit#1450
Merge before packit/packit-service#1632

Exception moved in packit-service


Broken Link: Familiar

This should be fixed in 0.3.4

I need to look into this some more.

Will be fixed in the next version.


Improve the default configuration

+1 for these fixes.

Merged in warrior and master
c7e0ba56..60e61ea2  master -> master
c7e0ba56..60e61ea2  warrior -> warrior


Use cocotb with 32 bits modelsim on 64 bits machine

I have several machines having several versions of modelsim/questa. Versions provided by Mentor allow to run 64 bits and i have no issues. However, the modelsim version provided by Altera in the Quartus bundle is 32 bits only.
**** If i run one test with top of repository i get in modelsim (32 bits):
Loading /userselec/chevillot/Projects/ATLAS/git/cocotb/build/libs/x86_64/libvpi.so
** Error: (vsim-125) The shared library /userselec/chevillot/Projects/ATLAS/git/cocotb/build/libs/x86_64/libvpi.so being loaded was built on a 64-bit machine. A 64-bit shared library cannot be loaded in a 32-bit simulation. Please use compatible machines to build and load the library
** Error (suppressible): (vsim-3197) Load of "/userselec/chevillot/Projects/ATLAS/git/cocotb/build/libs/x86_64/libvpi.so" failed: /userselec/chevillot/Projects/ATLAS/git/cocotb/build/libs/x86_64/libvpi.so: wrong ELF class: ELFCLASS64.
** Error (suppressible): (vsim-PLI-3002) Failed to load PLI object file "/userselec/chevillot/Projects/ATLAS/git/cocotb/build/libs/x86_64/libvpi.so".
**** If i uncomment the ARCH:=i686 in Makefile.modelsim i get while compiling cocotb library:
In file included from /userselec/chevillot/tools/include/python2.7/Python.h:58,
from gpi_logging.c:30:
/userselec/chevillot/tools/include/python2.7/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
**** If i use a local compiled version of python for 32 bits, i get:
Unable to open lib libpython2.7.so (libpython2.7.so: wrong ELF class: ELFCLASS64)
-.--ns INFO     cocotb.gpi                                GpiCommon.cpp:91   in gpi_print_registered_impl       VPI registered
Traceback (most recent call last):
File "/userselec/chevillot/Projects/ATLAS/git/cocotb/cocotb/init.py", line 35, in
import logging
File "/userselec/chevillot/tools/python2.7_m32/lib/python2.7/logging/init.py", line 26, in
import sys, os, time, cStringIO, traceback, warnings, weakref, collections
ImportError: /userselec/chevillot/tools/python2.7_m32/lib/python2.7/lib-dynload/time.so: undefined symbol: PyExc_ValueError
--> maybe i'm close to get it working.. but i would hope i don't need a local 32 bits python version of my own to be running the cocotb...
Have you made some tests on your side?

@chevillotn sadly a 32-bit version of Python is required to run with Modelsim 32-bit, however this is usually available via your distribution package manager.  For example, the following commands should let you use Cocotb in 32-bit mode on Ubuntu:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y gcc-multilib g++-multilib lib32z1 lib32stdc++6 lib32gcc1 expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 libgtk-3-0:i386 libcanberra0:i386 libpng12-0:i386 libice6:i386 libsm6:i386 libncurses5:i386 zlib1g:i386 libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386 libxt6:i386 libxtst6:i386

Then make SIM=modelsim ARCH=i686 should work with the Altera version of Modelsim.

@chiggs I tried proposed commands, but it didn't help to use cocotb with Modelsim 32-bit on Ubuntu 14.04 x64.
I was afraid of installation 32-bit version python2.7:i386 into system, because of long removed packages list and possible system breaking.
After a lot of attempts I solved problem using pyenv

Install 32-bit python version in local dir
env CFLAGS="-m32" LDFLAGS="-m32" PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 2.7.13
Create symbol link to python sources
sudo ln -s ~/.pyenv/versions/2.7.13/include/python2.7 /usr/include/i386-linux-gnu/python2.7
Run make with path to local libpython2.7.so
LIBRARY_PATH=/home/adun/.pyenv/versions/2.7.13/lib/ make SIM=modelsim ARCH=i686

I had to do the following additional step for vsim to find the pli files
cp /cocotbtest/cocotb/build/libs/i686/* sim_build/

I had to do the following additional step for vsim to find the pli files
cp /cocotbtest/cocotb/build/libs/i686/* sim_build/

Commit b2b1ddb0ecdc3a89b2be4718e779bf4ad2e2cac7 broke my modelsim runs. It seems if I make USER_DIR=$(SIM_ROOT) it fixes it. The problem is associated with it trying to make some symbolic links and getting protocol error. Is this a bug or are we doing something wrong ?

@lcapossio please open a new issue for your problem as it is not related to this issue.

@themperek, I assume this can be closed?

It should be solved now. Please follow instructions and reopen if the issue is still there.


Cell navigation: next, previous, named.

It would be nice to be able to jump to previous/next cell with a single command.
It would also help if the string after # %% were considered "cell's name" in appeared in the file's symbol list, but since atom doesn't seem to have a built-in notion of symbols, I think it's rather hard.

There's a command for "run cell and move down"

Yes, there is. But no command for 'Move Cursor Cell Up' and 'Move Cursor Cell Down', i.e. like in Jupyter where you can navigate on cell level (without executing the cells).

@alendit @mpjuers Something like this could  be done using the atom api, then either put in your init script or into a published hydrogen plugin.
Some of the code in code manager might give you some ideas.
Here is a quick example that will search for a python comment that you can start with.  Try this in your atom devtools console or init script:
atom.commands.add("atom-text-editor", "custom:jump-back-cell", () => {
  const editor = atom.workspace.getActiveTextEditor();
  const position = editor.getCursorBufferPosition();

  editor.buffer.backwardsScanInRange(
    /^# %%/m,
    new Range([0, 0], [position.row - 1, position.column]),
    m => editor.setSelectedBufferRange(m.range)
  );
});

Thanks for this. I'm getting reserved word 'const'.

I'm having some trouble to get the above snippet to work. Basically, I get no response when I send the command from the finder or use my keymap. My apologies if this is a simple fix; I've never used JavaScript.

1 for this feature. Navigating between cells using keyboard shortcuts are super handy in Jupyter / Jupyerlab. Look forward to see that in Hydrogen too.

following the hints from @BenRussert, just wrote a coffee script for the previous and next cell command:
Range = require('atom').Range

atom.commands.add "atom-text-editor", "custom:prevous-cell", ->
  editor = atom.workspace.getActiveTextEditor()
  position = editor.getCursorBufferPosition()
  editor.buffer.backwardsScanInRange(
    /^# %%/m
    new Range([0, 0], [position.row - 1, position.column]),
    (m) -> editor.setCursorBufferPosition([m.range.start.row + 1, 0])
  )

atom.commands.add "atom-text-editor", "custom:next-cell", ->
  editor = atom.workspace.getActiveTextEditor()
  cursorPos = editor.getCursorBufferPosition()
  endPos = editor.buffer.getEndPosition()
  editor.buffer.scanInRange(
    /^# %%/m
    new Range(cursorPos, endPos),
    (m) ->
      cellRow = m.range.start.row
      if cellRow + 1 <= endPos.row
        editor.setCursorBufferPosition([cellRow + 1, 0])
  )

@mpjuers you may try putting the script in .atom/init.coffee and then assign keymaps for the them. Note that you got no response from the previous script because you have to import the Range  object from the atom module first.

Hey guys, just created a plugin for cell navigation, moving and selection. Please check it out:
https://atom.io/packages/cell-navigation

@hoishing
Seems cool !
Do you feel like you want to integrate these features into Hydrogen itself ?
I'm not sure whether other maintainers think about this integration, but I personally happy if we can use those features inside of Hydrogen.
/cc @BenRussert @kylebarron

My original idea was to use these features with Hydrogen, but later I found that Jupytext is another use case. Thats why I made it as a separate plugin.
Of course I would like to see it integrated into Hydrogen, but not sure what is the proper way of doing so. Say shall we just make it as a dependency instead of putting it into Hydrogen code base? Because cell navigation / moving is indeed pure text manipulation, which has no interaction with the jupyter kernel at all.

@hoishing

but later I found that Jupytext is another use case. Thats why I made it as a separate plugin.

Understand. So is there maybe another plugin for Jupytext that may want to use these features ?
If you think you almost always use Hydrogen when you edit Jupytext (like connecting to the Jupyter kernel and check the result in Atom), then the integration might be better idea.
For integration, I'm not sure adding as a dependency is the best way.
Hydrogen codebase has utilities like detecting cell deliminator for different grammars and so, and if you find them useful too to enhance your features, then migrating your code into Hydrogen would be better choice.
Possible drawbacks of migrating your code into Hydrogen would be, you have to activate Hydrogen first even when you just want to use those features. This is because Hydrogen delays its activation for better starting up, and that's why the first Hydrogen command takes seconds.
Thus even if you just want to use these cell manitpulations, you need to activate other Hydrogen features, and you may find this  annoying.

@aviatesk sorry for the late reply.
As you said, simple cell manipulation need to activation Hydrogen after migrating it into Hydrogen. Its a bit annoying... I prefer just keep it as a separate plugin at the moment.

@hoishing
Okay !
You can add your plugin to this section if you want :)
https://github.com/nteract/hydrogen#plugins-for-hydrogen

@aviatesk
just opened a PR for updating the README plugin section, please take a look :)

Really cool package @hoishing! I love that it works for more than just hydrogen too!
I'll close the issue and refer anyone else to https://atom.io/packages/cell-navigation


add n-party millionaires' problem example

I added an n-party millionair´s problem example based on an unpublished 2-party version authored by @dd23.
Two points need mention:

If comparison in src/examples/millionairs_problem/common/millionair.cpp:62 is used for both following Mux operations, the program deadlocks. This is why I had to duplicate the comparison.
I had to create an explicitly typed temporary ShareWrapper& in src/examples/millionairs_problem/common/millionair.cpp:70 to avoid a wrong template type deduction.

Thanks for the nice example @TKussel!


display evset as table in notebook

TODOs

[x] set max number of features, max number of timestamps, and max number of indexes, max number of chars in a cell
[x] allow configuring those ☝🏼 in some way (like pd.set_option('display.max_columns', ...))

(Braulio) Moved options to config.py, can be changed through env vars or at runtime: config.max_display_events = 3 (we should define an object and check types in a following PR).

[x] test

@achoum this is ready to re-review. Changes since your last review:

Moved display methods to separate file
Using xml.dom.minidom instead of raw html, checked that it prevents html injection
Setting limit=0 will disable limit (show all index or feats, events).


update owners

Plz help add me to OWNERS
Signed-off-by: haoqing0110<EMAIL_ADDRESS>

/assign @itdove

/lgtm


Warn on characters that aren't available and give users the choice to switch to another font that has the missing characters

Hello @KyleKun,
long time no see.
When traveling I encountered the following issue:

Hey, thanks for reporting!
I'll try to find a similar font that supports all characters.

Some of the integrated Android fonts probably support most of them

Is the ability for users to change the font on the roadmap?

Thanks for the reply. I'm not sure about other users but I'm thinking about switching over from the 1se.co app as the experience for non-pro users has really degraded recently.
To that end, Agilita Bold Italic would be very helpful to keep a consistent look. I believe it supports all the character shown in the initial issue screenshot. Otherwise for future development I'd be keen to see custom don't support.

Maybe just adding a regular font selector for the currently installed fonts would help to fix this?
Otherwise Roboto and Noto are always preinstalled on Android as far as I am aware.

Maybe just adding a regular font selector for the currently installed fonts would help to fix this?
Otherwise Roboto and Noto are always preinstalled on Android as far as I am aware.

I think @jpanged suggestion might be better, ffmpeg takes a font file to render the text, meaning that if we want multiple fonts we probably can't simply use Android ones, but will have to slightly increase app size to add them all to the assets...

Is there any ETA on this? :pleading_face:

Unfortunately I have now quite a few clips with the ugly font replacement.
Is there any ETA on this? :pleading_face:
Btw Noto family (Google Fonts) was intentionally made for this. It supports pretty much every language and has all the emojis.
And Roboto is also pretty nice.
I'd even prefer it in the UI. :wink:
You could probably even use this Flutter package to let the user download and use fonts.

Thanks for sharing, apologies for the late reply. ETA: Soon™ (this year).

Is the ability for users to change the font on the roadmap?

What about a menu in the settings to choose your font (both UI and the one displayed on snippets) ? I'm interessted on this, so maybe I can look at it and make a pull request. What do you think @KyleKun ?
We could for example use this package.

Is the ability for users to change the font on the roadmap?

What about a menu in the settings to choose your font (both UI and the one displayed on snippets) ? I'm interessted on this, so maybe I can look at it and make a pull request. What do you think @KyleKun ?
We could for example use this package.

Sounds promising! Only thing is that you have to save the font so you can pass the path to ffmpeg use it.


test(vrt): update visual snapshots for issue-2364 [skip ci]

This PR was generated based on visual changes detected in #2375. Please verify that the updated snapshots look correct before merging this PR into issue-2364.

Visual changes have been resolved. This PR will be closed and issue-2364--vrt will be deleted. If future commits on issue-2364 trigger visual changes, a new snapshot branch will be created and a new PR will be opened.


Is this plugin compatible for ES6 or Typescript support ?

First congrats for release this plugin.
I don't know this is ES6 (because this is project requirement), nuxt or typescript issue, but I try to use your plugin on latest nuxt release
I'm using nuxt-tailwind module, and the config on tailwind.config.ts, here my script :
import type { Config } from 'tailwindcss';
import primeUi from 'tailwindcss-primeui';

export default <Partial<Config>>{
  content: ['./shareds/**/*.{js,vue,ts}', 'presets/**/*.{js,vue,ts}'],
  plugins: [primeUi]
};

But give me error

Is my implementation is wrong ?

There are currently no declared types in this package. To remove the error, I do the following:
import type { Config } from 'tailwindcss'
// @ts-expect-error no declared types at this time
import primeui from 'tailwindcss-primeui'

export default <Partial<Config>>{
  darkMode: 'class',
  corePlugins: {
    preflight: false,
  },
  plugins: [primeui],
}

Solution is temporary, when the types show up, then I'll just delete the comment

+1 for declared types please.
I know V4 and this plugin are new, but PrimeVue advertises itself as having Top-notch support for Typescript with types and tooling assistance so having declared types is very much needed.


[BUG] No UI available

Prerequisites

[X] I have read the documentation.
[X] I have checked other issues for similar problems.

Backend
Local
Interface Used
CLI
CLI Command
autotrain app --port 8080 --host <IP_ADDRESS>
UI Screenshots & Parameters

Error Logs
autotrain app --port 8080 --host <IP_ADDRESS>
Your installed package nvidia-ml-py is corrupted. Skip patch functions nvmlDeviceGet{Compute,Graphics,MPSCompute}RunningProcesses. You may get incorrect or incomplete results. Please consider reinstall package nvidia-ml-py via pip3 install --force-reinstall nvidia-ml-py nvitop.
Your installed package nvidia-ml-py is corrupted. Skip patch functions nvmlDeviceGetMemoryInfo. You may get incorrect or incomplete results. Please consider reinstall package nvidia-ml-py via pip3 install --force-reinstall nvidia-ml-py nvitop.
INFO     | 2024-05-09 15:07:07 | autotrain.app::33 - Starting AutoTrain...
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: batch_size, train_split, username, logging_steps, lora_alpha, evaluation_strategy, text_column, save_total_limit, model_max_length, valid_split, token, rejected_text_column, data_path, scheduler, push_to_hub, trainer, warmup_ratio, prompt_text_column, weight_decay, max_grad_norm, use_flash_attention_2, model, gradient_accumulation, optimizer, auto_find_batch_size, lr, lora_r, dpo_beta, project_name, seed, merge_adapter, disable_gradient_checkpointing, lora_dropout, model_ref, max_prompt_length, add_eos_token
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: batch_size, epochs, train_split, username, weight_decay, max_grad_norm, logging_steps, model, evaluation_strategy, text_column, save_total_limit, gradient_accumulation, optimizer, auto_find_batch_size, lr, valid_split, token, project_name, seed, max_seq_length, data_path, scheduler, push_to_hub, target_column, warmup_ratio
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: batch_size, username, epochs, train_split, weight_decay, max_grad_norm, image_column, logging_steps, model, evaluation_strategy, save_total_limit, gradient_accumulation, optimizer, auto_find_batch_size, lr, valid_split, token, project_name, seed, data_path, scheduler, push_to_hub, target_column, warmup_ratio
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: max_target_length, batch_size, username, train_split, epochs, logging_steps, lora_alpha, evaluation_strategy, text_column, save_total_limit, valid_split, peft, max_seq_length, data_path, scheduler, push_to_hub, target_column, warmup_ratio, weight_decay, max_grad_norm, model, gradient_accumulation, optimizer, auto_find_batch_size, lr, quantization, lora_r, project_name, seed, lora_dropout, token
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: id_column, username, train_split, num_trials, model, time_limit, numerical_columns, valid_split, task, project_name, seed, data_path, push_to_hub, categorical_columns, target_columns, token
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: adam_weight_decay, pre_compute_text_embeddings, validation_epochs, epochs, text_encoder_use_attention_mask, username, image_path, scale_lr, adam_epsilon, adam_beta1, checkpoints_total_limit, dataloader_num_workers, checkpointing_steps, prior_preservation, scheduler, lr_power, push_to_hub, validation_images, local_rank, logging, revision, resume_from_checkpoint, tokenizer_max_length, num_class_images, max_grad_norm, model, class_image_path, xl, validation_prompt, rank, class_prompt, adam_beta2, prior_generation_precision, warmup_steps, project_name, seed, class_labels_conditioning, prior_loss_weight, num_validation_images, center_crop, allow_tf32, sample_batch_size, num_cycles, token, tokenizer
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: batch_size, epochs, train_split, username, weight_decay, max_grad_norm, logging_steps, model, evaluation_strategy, save_total_limit, gradient_accumulation, optimizer, auto_find_batch_size, tags_column, lr, valid_split, token, project_name, seed, tokens_column, max_seq_length, data_path, scheduler, push_to_hub, warmup_ratio
WARNING  | 2024-05-09 15:07:07 | autotrain.trainers.common:init:174 - Parameters not supplied by user and set to default: batch_size, epochs, train_split, username, weight_decay, max_grad_norm, logging_steps, model, evaluation_strategy, text_column, save_total_limit, gradient_accumulation, optimizer, auto_find_batch_size, lr, valid_split, token, project_name, seed, max_seq_length, data_path, scheduler, push_to_hub, target_column, warmup_ratio
INFO     | 2024-05-09 15:07:10 | autotrain.app::157 - AutoTrain started successfully
Additional Information
After successful start of the application, no UI available.
running environment, WSL

is the screenshot from <IP_ADDRESS>:8080 ?

is the screenshot from <IP_ADDRESS>:8080 ?

Yes, the screenshot is correct and it is from  <IP_ADDRESS>:8080 .

any idea ...

did you export HF_TOKEN before autotrain app command?

HF_TOKEN I have put in my .bashrc, but after your question I did explicitly export prior running autotrain app command.
The result is the same, no UI.

we made an update to the ui. can you update autotrain and see if you still have this issue?

hello @abhishekkrthakur, it seems is working now. I am doing the training locally now with some test data and hope soon will have more to continue with playing.
Thx,
D.

good to know. ill close this issue in that case :)


GSoD participation

Google Season of Docs 2020 was announced this week in case you’d like to participate.
https://developers.google.com/season-of-docs

OBF didn’t participate the last season though so maybe you could tell them as well, so you can join with them I think.

I'm open to this, I'm just not sure SIMDe is a good fit.  This would be great for a user-facing project, but the type of documentation we need really requires a programmer with fairly specialized knowledge and would be really hard for most technical writers.  I'll leave it open for a while in case anyone has some ideas, though.
@mr-c, maybe you can think of some other projects that could benefit from this?

I guess nobody else has any ideas, either.  Closing, but if anyone thinks of anything please feel free to reopen or comment.
Anyways, thanks for letting us know about this, Fares!  Please don't be shy about suggestions like this in the future :)


How to work with dynamic rows / rows that i do not know

Is there a way to use  mysql::from_row(row) for tables that i do not know?
Basically i want to show whats in a certain database, without knowing the structure and number of columns it has. (i therefore can not implement from_row for my struct)

You can get column names of dynamic row using QueryResult::column_indexes.
Also you can get column types using QueryResult::columns_ref.
Also raw row (i.e. sequence of column values) could be unwrapped using Row::unwrap.


COD-Q123-7 - Current Password Not Required When Performing A Password Change

"Current Password" field added to Account Settings page.
The new field is NOT shown - and required - if:

user has facebook / google / etc login method - since in these cases they could login even without a password, maybe they don't even have one
user just logged in with temporary password requested by "forgotten password" button. In this case we set the newPasswordRequired flag on the user to know that they won't need the old password for setting a new one.

@smallst thanks for your comment, I didn't thought about spying by myself. modifications pushed to both client and backend.


Feature/users middleware

Setting up middleware and init in preparation of upgrading the user routes.

Resolves #490
DCO 1.1 Signed-off-by: Scott Nath<EMAIL_ADDRESS>

@Snugug all changes in. Please re-review.


Missing boilerplate code for exercises?

Some of the exercises don't have a boilerplate code, just the first 3 (http://exercism.io/languages/javascript/exercises)

Thanks @jsgilberto for your feedback.  This issue has been discussed before on this track, but has recently come up again here: https://github.com/exercism/javascript/issues/424
I'm going to close this issue as a duplicate of that one.


[SQL] Add swagger changes for zone redundancy property to databases, elastic pools and editions

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/1813

Codecov Report

Merging #1546 into master will decrease coverage by <.01%.
The diff coverage is 60%.

@@            Coverage Diff             @@
##           master    #1546      +/-   ##
==========================================
- Coverage   54.24%   54.24%   -0.01%
==========================================
  Files        3585     3585
  Lines       88224    88236      +12
==========================================
+ Hits        47854    47860       +6
- Misses      40370    40376       +6

Impacted Files
Coverage Δ

...-sql/azure/mgmt/sql/models/service_tier_advisor.py
20% <ø> (ø)
:arrow_up:

.../mgmt/sql/operations/database_usages_operations.py
93.75% <ø> (ø)
:arrow_up:

...-sql/azure/mgmt/sql/models/encryption_protector.py
38.46% <ø> (ø)
:arrow_up:

...s/database_threat_detection_policies_operations.py
27.45% <ø> (ø)
:arrow_up:

...ure/mgmt/sql/models/transparent_data_encryption.py
62.5% <ø> (ø)
:arrow_up:

...mt/sql/models/backup_long_term_retention_policy.py
55.55% <ø> (ø)
:arrow_up:

...e/mgmt/sql/operations/restore_points_operations.py
37.5% <ø> (ø)
:arrow_up:

...l/azure/mgmt/sql/models/sync_group_schema_table.py
66.66% <ø> (ø)
:arrow_up:

...zure/mgmt/sql/operations/sync_groups_operations.py
9.46% <ø> (ø)
:arrow_up:

...l/operations/elastic_pool_activities_operations.py
37.5% <ø> (ø)
:arrow_up:

... and 87 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 8918213...6ee7667. Read the comment docs.

Broken PR from a broken rebase


Corrections in dem parameter handler

Change the parameter name "density" to "density particle" in DEM to avoid possible interference with CFD parameters
Define multiple particle types, floating walls and moving boundaries using loops in parameter handler
Move unnecessary headers from dem.h to dem.cc

Can you rebase @shahabgol  ? :)

Can you rebase @shahabgol ? :)

Done! :)

@shahabgol Can you update the insert_llist test to pass with your syntax change? :)

@shahabgol Can you update the insert_llist test to pass with your syntax change? :)

The comments are applied.

@shahabgol it's very good. Can you update the files in lethe/examples?
Once you do that, i'll merge

Done! :)


Add Async Interceptors

Feature Request
Interceptor trait should support async functions.
Crates
tonic
Motivation
I would like to write an authentication interceptor which needs to make API calls to validate the incoming request, and it would be great if these could be async.

@matthauck do these API calls need to happen on each request or is this a case of refreshing a token? The reason I ask is because intentionally inteceptors were designed to not be async to make them simpler. We still provide the ability to use tower layers to intercept the whole HTTP2 request.

Yeah, something like refreshing. Not necessarily every request, but potentially I suppose? Will look into intercepting at the tower layer.

So one suggestion is to actually use something from the arc-swap crate and spawn a background task to refresh a token. If you don't need to do some specific of async work per request, this method works well and its totally fine to load the arcswap in the sync interceptor fn.

Okay, great. thanks! we can close this issue then. "by design" :)

Are the async interceptors still open for consideration at some point (e.g. enough people request the feature)? I'd also like to be able to perform API calls (need to be immediate, so background call does not suffice).

@blaind yes, it will be done via tower. I have not had much time to explore this but should hopefully soon :)


calico-kube-controller pod is restarting : : Unauthorized

Calico kube controller pod is going to crashloopback and restarting
Error
2022-05-19 13:33:46.822 [INFO][1] main.go 92: Loaded configuration from environment config=&config.Config{LogLevel:"info", WorkloadEndpointWorkers:1, ProfileWorkers:1, PolicyWorkers:1, NodeWorkers:1, Kubeconfig:"", DatastoreType:"kubernetes"}
W0519 13:33:46.828542       1 client_config.go:615] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
2022-05-19 13:33:46.831 [INFO][1] main.go 113: Ensuring Calico datastore is initialized
2022-05-19 13:33:46.856 [ERROR][1] client.go 261: Error getting cluster information config ClusterInformation="default" error=connection is unauthorized: Unauthorized
2022-05-19 13:33:46.856 [FATAL][1] main.go 118: Failed to initialize Calico datastore error=connection is unauthorized: Unauthorized
Context
Kubernetes is installed with calico cni. All pods are up and running. System is kept idle for 7days.
We have observed that calico is restarting multiple time with the an error
[ERROR][1] client.go 261: Error getting cluster information config ClusterInformation="default" error=connection is unauthorized: Unauthorized
[FATAL][1] main.go 118: Failed to initialize Calico datastore error=connection is unauthorized: Unauthorized
Environment

Calico version: v3.19.2
K8s Version: v1.21.5
Operating System and version: Ubuntu

2022-05-19 13:33:46.856 [ERROR][1] client.go 261: Error getting cluster information config ClusterInformation="default" error=connection is unauthorized: Unauthorized

I'd recommend checking your API server logs to see if they contain more information as to why the connection was deemed unauthorized.

2022-05-19 13:33:46.856 [ERROR][1] client.go 261: Error getting cluster information config ClusterInformation="default" error=connection is unauthorized: Unauthorized

I'd recommend checking your API server logs to see if they contain more information as to why the connection was deemed unauthorized.

Thanks a lot for the response.
Below is the error in the apiserver log:
E0519 13:34:15.705018       1 claims.go:126] unexpected validation error: *errors.errorString
E0519 13:34:15.705174       1 authentication.go:63] "Unable to authenticate the request" err="[invalid bearer token, Token could not be validated.]"
Could you please provide me pointers, when this can happen. Cluster was in this state for sometime. Later calico-kube-controller pod went to up and running.
What might have gone wrong during that time ?

It's hard to say, Calico kube-controllers just uses the token provided to it by Kubernetes, so if we were using an invalid token it's probably because Kubernetes failed to update the token mounted into the pod or because the kubernetes client code failed to notice that the token was updated.

It's hard to say, Calico kube-controllers just uses the token provided to it by Kubernetes, so if we were using an invalid token it's probably because Kubernetes failed to update the token mounted into the pod or because the kubernetes client code failed to notice that the token was updated.

We have brought up this setup using kubespray and kept idle for few days. Suddenly, we observed that calico kube-controller pod is going down with this error and coming back to running after sometime.

I think kubespray might provide its own version of the Calico manifests? Could you try reinstalling Calico (either the same version or a later one) with our manifests from https://projectcalico.docs.tigera.io/about/about-calico and see if that might change any instability?

@mgleung @caseydavenport,
when the calico binary starts, it will initialize cluster information using calicoclient object.
that object will have the calico env variable and kubeconfig(if not present, it will use in cluster config). what is this in cluster config? where it is defined?
use that object, i could see it is creating by default cluster configuration
clusterInfo, err := c.ClusterInformation().Get(ctx, globalClusterInfoName, options.GetOptions{}) with datastoreType as kubernetes.
`
if err != nil {
// Create the default config if it doesn't already exist.
if _, ok := err.(cerrors.ErrorResourceDoesNotExist); ok {
newClusterInfo := v3.NewClusterInformation()
newClusterInfo.Name = globalClusterInfoName
newClusterInfo.Spec.CalicoVersion = calicoVersion
newClusterInfo.Spec.ClusterType = clusterType
newClusterInfo.Spec.ClusterGUID = fmt.Sprintf("%s", hex.EncodeToString(uuid.NewV4().Bytes()))
datastoreReady := true
newClusterInfo.Spec.DatastoreReady = &datastoreReady
_, err = c.ClusterInformation().Create(ctx, newClusterInfo, options.SetOptions{})
if err != nil {
if _, ok := err.(cerrors.ErrorResourceAlreadyExists); ok {
log.Info("Failed to create global ClusterInformation; another node got there first.")
time.Sleep(1 * time.Second)
continue
}
log.WithError(err).WithField("ClusterInformation", newClusterInfo).Errorf("Error creating cluster information config")
return err
}
} else {
log.WithError(err).WithField("ClusterInformation", globalClusterInfoName).Errorf("Error getting cluster information config")
return err
}
break
}
`

The key / certs / token used by kube-controllers are all injected into the container by the kubelet on the system, and then interpreted by the Kubernetes golang client when creating a connection. The go client automatically handles any rotation of those credentials once the projection into the container is updated.

You should check the token within the pod to make sure that it's valid. We use in-cluster configuration as described here: https://github.com/kubernetes/client-go/tree/master/examples/in-cluster-client-configuration#authenticating-inside-the-cluster
Given the API server logs are complaining about the token, it might be worth verifying that the token mounted at /var/run/secrets/kubernetes.io/serviceaccount is actually valid, since that's the token the Calico code will use.

@cpsrujana Any updates?

I'm going to close this for now due to inactivity but please feel free to reopen this issue if you're still experiencing this issue and have diags to provide.

@lmm, can you please reopen the issue? we are still debugging and facing the issue

@caseydavenport,
Hi, i've tried checking the token validity from the path "
/var/lib/kubelet/pods/5cc9962f-818f-4ff1-9824-801963d15893/../token"
path: where pods has mounted the /var/run/secrets/kubernetes.io/serviceaccount is mounted.
I could the see the token validity is for 1yr from the day it got created. Then, why token is invalid or unauthorized? Our deployment is running from past 48d and we are seeing 172 restarts.
{   "aud": [     "https://kubernetes.default.svc.cluster.local"   ],   "exp":<PHONE_NUMBER>,   "iat":<PHONE_NUMBER>,   "iss": "https://kubernetes.default.svc.cluster.local",   "kubernetes.io": {     "namespace": "kube-system",     "pod": {       "name": "calico-kube-controllers-76758f8d4c-6l2dr",       "uid": "5cc9962f-818f-4ff1-9824-801963d15893"     },     "serviceaccount": {       "name": "calico-kube-controllers",       "uid": "6d8ba93f-ceaf-47f3-a90b-02e7c1d55745"     },     "warnafter":<PHONE_NUMBER>   },   "nbf":<PHONE_NUMBER>,   "sub": "system:serviceaccount:kube-system:calico-kube-controllers" }

Env: EKS
K8s: v1.24
Calico: 3.25.1 via tigera-operator via terraform helm
Background
I installed the helm chart successfully (all objects came up successfully) without terraform the other day just using helm. I then uninstalled Calico from the cluster and restarted all of my nodes. I'm now trying to reinstall it with terraform when I hit this error.
Logs
@caseydavenport

You should check the token within the pod to make sure that it's valid.

I can't seem to check whether serviceAccountName: calico-node is valid since the calico-node pods continually crash. Do you have any suggestions on a path forward for this? The calico-nodes are the only objects that don't seem to start in the calico-system Namespace.
My calico-node pods throw a similar error in this issue:
2023-08-09 20:35:54.391 [WARNING][8] startup/startup.go 444: Connection to the datastore is unauthorized error=connection is unauthorized: Unauthorized
2023-08-09 20:35:54.391 [WARNING][8] startup/utils.go 48: Terminating
Calico node failed to start

This is the error log I get from the api-server:
time="2023-08-09T19:50:26Z" level=warning msg="access denied" client="<IP_ADDRESS>:44042" error="input token was not properly formatted: token is missing expected \"k8s-aws-v1.\" prefix" method=POST path=/authenticate


Increase Chat character limit

I've run into the character limit of 300 characters per chat message fairly frequently. It allows for maybe two to three sentences, which is simply too short to answer any question in depth. I'd consider a limit of at least 1000 characters the bare minimum.
Can we increase it? Can we at least exclude admins from it? Or could we even allow the course admins to set the limit for each course individually?

While #774 remains a draft, could we just do this until the beginning of the winter semester?

@joschahenningsen We should also remove You are sending messages too fast. Please wait a bit. for moderators and admins at this point.